Swap with allowances
Swap with allowances

Tessera · Acts onchain

Swaps against Tessera, Wintermute's on-chain market-making venue, at the price its engine quotes this block. With the input exact, the socket sells exactly amount_in and the swap reverts unless it receives at least amount_out; with the output exact, it buys exactly amount_out and reverts if that costs more than amount_in. The socket approves TesseraSwap for amount_in, the venue pays the socket, and the action returns the amount received and the amount spent. Reach for it to trade a pair the market maker quotes in size, such as a major against USDC, coiling the amount received into whatever comes next.