


Acts onchain
Swaps one token for another through the solver over indexed liquidity. The input amount is transferred to the solver's executor, the route settles, and the socket's balance of the output token before and after is compared; the action requires amount_out meets the min_out floor or the transaction reverts, and returns amount_out. Native ETH works on either side. The floor is the whole of what the solver is held to. The route is the solver's to build and the executor rides the unsigned channel, so nothing obliges a fill to deliver more than the floor even when the liquidity is there. Whatever does arrive lands in the socket and amount_out is that realized delta, but the floor is the only part of it the signature holds anyone to, which makes it the amount being agreed to rather than a safety margin under a larger expectation. A floor set loose is not caution; it is how much of the fill has been signed away. Reach for it to convert between assets mid-strategy, coiling amount_out into the deposit, repay, or transfer that follows.
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.
Swap 0.005 ETH for weETH at the Ether.fi Rate



1·Get exchange rate
Reading the current ether.fi rate for weETH to learn how much eETH one whole weETH is worth right now.
2·Multiply then divide
Taking 0.005 and multiplying by 1, then dividing by that fetched rate and rounding down, converting the ETH amount into a weETH figure.
3·Multiply then divide
From that converted weETH figure, multiplying by 995 and dividing by 1000 rounded down, which trims the amount to allow a slippage margin.
4·Swap tokens
Finally swapping 0.005 ETH for at least that trimmed weETH amount through the solver, using the prior result as the minimum received.
Borrow on Base · 7 plugs
Earn yield on Base · 12 plugs
Stake on Base · 9 plugs
Provide liquidity on Base · 6 plugs
Dollar-cost average on Base · 4 plugs
Posts · 6
More on Plug · 6
On other protocols · 4