You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
For Uniswap V3 Swap simulation, the protocol needs to be incorporated.
// if the protocol fee is on, calculate how much is owed, decrement feeAmount, and increment protocolFeeif(cache.feeProtocol>0){uint256delta=step.feeAmount/cache.feeProtocol;step.feeAmount-=delta;state.protocolFee+=uint128(delta);}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For Uniswap V3 Swap simulation, the protocol needs to be incorporated.
The text was updated successfully, but these errors were encountered: