liquidation-manager
calculate-user-global-data
: Calculates the global data of a user across all assets.liquidation-call
: Performs a liquidation call on an undercollateralized position.calculate-available-collateral-to-liquidate
: Calculates the available collateral that can be liquidated.
calculate-user-global-data
calculate-user-global-data
Calculates the global data of a user across all assets.
Parameter | Type | Description |
---|---|---|
|
| The user for whom the data is being calculated. |
|
| A list of assets to include in the calculation. |
liquidation-call
liquidation-call
Performs a liquidation call on an undercollateralized position.
Parameter | Type | Description |
---|---|---|
|
| A list of assets involved in the liquidation. |
|
| The LP token associated with the collateral. |
|
| The collateral asset to be liquidated. |
|
| The debt asset to be repaid. |
|
| The oracle for the collateral asset. |
|
| The oracle for the debt asset. |
|
| The borrower's address. |
|
| The amount of debt the liquidator wants to repay. |
|
| Whether the liquidator wants to receive aTokens. |
calculate-available-collateral-to-liquidate
calculate-available-collateral-to-liquidate
Calculates the available collateral that can be liquidated.
Parameter | Type | Description |
---|---|---|
|
| The collateral asset. |
|
| The principal asset for which the debt is owed. |
|
| The oracle for the collateral asset. |
|
| The oracle for the principal asset. |
|
| The amount of debt to liquidate. |
|
| The user's balance of the collateral asset. |
Last updated