Content
@
https://warpcast.com/~/channel/uniswaphooks
0 reply
0 recast
0 reaction
Julie Shi
@julieshi
Hey guys, I have a question about sqrtPriceLimit. It seems that uniswap will do a partial swap if sqrt_p hits the sqrtPriceLimit rather than revert the whole swap - i wonder if my understanding is correct.
2 replies
0 recast
2 reactions
jeffishjeff
@jeffishjeff
Yup, your understanding is correct. Swap stops (partial swap completes) when the entire amountSpecified is consumed, or sqrtPriceLimit has been reached. Note that because sqrtPriceLimit cannot be outside of max/min tick, one'd also see partial swap if the entire pool has run out of liquidity!
0 reply
0 recast
0 reaction