

Acts onchain
Repays debt in a Spark market using the spTokens your supply minted instead of wallet funds. The pool burns spTokens of the same asset and cancels the matching variable debt, returning the amount repaid. No transfer or approval is needed, and because the position only gets healthier the pool allows it even when the health factor would block a withdrawal. Pick Repay all to repay the full debt. The pool burns the spTokens and cancels the debt of whoever sends the call, and has no form that acts on another account's behalf, so the repay runs as a plug of its own that your wallet sends directly. Reach for it to deleverage a looped position in one step, or to close debt against a supply of the same asset without touching wallet balance, ahead of a withdraw that is then no longer constrained.
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 · 25


























On other protocols · 1