Swap
Swap

Solidly V3 · Acts onchain

Swaps an exact amount of one token for the other through a Solidly V3 pool. The socket approves the pool and calls its swap with the min_out floor: the pool prices the input along its concentrated liquidity at the fee it charges right now, pulls the input with transferFrom, pays the output straight to the socket, and reverts if that is less than the floor. The action returns the amount received. Reach for it to trade a pair on Solidly V3's own book, its stablecoin pools above all, coiling the received amount into whatever comes next.

On other protocols · 2