

Acts onchain
Swaps an exact amount of one side of a BaiBai market for the other against the market maker's posted curve. The socket approves the entrypoint and calls swapExactAmountIn with the min_amount_out floor: the quote token buys the base off the asks, the base sells into the bids, the whole amount fills or the swap reverts, and the action returns the amount received. Reach for it to take a maker's price on Base 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.
Swap 1 USDC for WETH on Bai Bai

1·Swap exact amount in
Swapping an exact 1 USDC into the BaiBai market, this step trades against the maker's posted curve and will revert unless it returns at least 0.0004 WETH, the floor that bounds slippage.
More on BaiBai · 1