
Compound · Acts onchain
Repays base asset debt to a Compound market from the socket's balance. The live debt is read first: an amount below it is approved and supplied as a partial repayment, while an amount at or above it, or max, repays the full debt exactly with interest included. Balance beyond the debt is not supplied. Reach for it to clear debt before withdrawing collateral, to restore collateralization when the position action reports it lost, or to settle the borrow leg after an earlier swap has produced the base asset.
On other protocols · 4