

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.
Swap 25 USDC for sUSDS on Spark

1·Swap exact in
Swapping exactly 25 USDC into the Spark PSM, this action returns at least [min_out] sUSDS at the PSM's fixed conversion rate, with the minimum output guarding against receiving less than expected.
More on Spark PSM · 3