Get liquidation bonus

Get liquidation bonus on Spark

Ethereum
Ethereum

Reads onchain state

Ready to run on Base

Reads the bonus a liquidator earns when seizing an asset as collateral in a Spark market. The bonus is decoded from the reserve configuration and returned in basis points above par, so 500 means a liquidator receives collateral worth 5% more than the debt repaid. Reach for it when weighing collateral choices, since a higher bonus is a larger haircut if a position is ever liquidated, or in a liquidation strategy to compute the expected profit of repaying a borrower's debt before committing capital in the same transaction.

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 · 2