Swap exact in

Swap exact in on Spark PSM

Base
Base

Acts onchain

Swaps an exact amount of one Spark PSM asset for another at the PSM's fixed conversion. The socket approves the PSM and calls swapExactIn with the min_out floor: the two dollar assets convert one to one, the savings token converts at the live savings rate, there is no fee, and the action returns the amount received. Reach for it to move between cash, dollars and the savings rate at par 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.

More on Spark PSM · 3