Repay

Repay on Exactly

Base
Base

Acts onchain

Repays the wallet's floating debt in an Exactly market from its own balance. The debt with interest accrued to this block is read first: an amount below it is repaid exactly, while an amount at or above it, or the Repay all option, repays the whole floating debt and nothing beyond it is pulled. Fixed-rate debt is repaid per maturity with repay at maturity. Where the Auditor answers to a firewall, as Base's does, the market serves only the accounts that firewall allows, and a call from any other account reverts; no program's socket is among them, so the wallet sends the call itself. Reach for it to clear debt before withdrawing collateral or exiting a market, to restore the account's liquidity when a read says it is running out, or to settle the borrow after an earlier swap has produced the asset.

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 Exactly · 21

On other protocols · 9