Swap exact in
Swap exact in

Spark PSM · 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.