

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.
Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.
USDC to WETH on WOO Fi


1·Query swap
First, the plug reads what WOOFi would currently pay to swap 100 USDC into WETH, capturing the live quote.
2·Multiply then divide
Taking that quoted amount, it multiplies by 995 and divides by 1000 rounding down, which sets a floor at 99.5 percent of the quote and leaves room for slippage.
3·Swap
Finally, it swaps 100 USDC for WETH at WOOFi's oracle price, requiring at least the computed floor so the trade reverts if the output falls short.
More on WOOFi · 1
On other protocols · 3