Swap
Swap

WOOFi · Acts onchain

Swaps an exact amount of one token for another at WOOFi's oracle price. The socket approves WooRouterV2 and calls swap with the min_out floor: the pool prices the input at the price its market maker posts to the Wooracle, less the posted spread and a slippage that grows with the size of the trade, reverts if that pays less than the floor, and the action returns the amount received. Reach for it to trade a major against the dollar, or one major for another, at a market maker's price in one step, coiling the received amount into whatever comes next.

On other protocols · 3