
BaiBai · 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.