pool-0-reserve
Core Functions
set-flashloan-fee-total
Sets the total fee for flash loans for a specific asset.
set-flashloan-fee-protocol
Sets the protocol fee for flash loans for a specific asset.
set-origination-fee-prc
Sets the origination fee percentage for a specific asset.
set-health-factor-liquidation-treshold
Sets the health factor liquidation threshold.
set-user-reserve-data
Sets user reserve data for a specific user and reserve.
set-user-assets
Sets user assets data for a specific user.
update-state-on-deposit
Updates the state when a user deposits assets.
update-state-on-flash-loan
Updates the state after a flash loan is executed.
update-state-on-repay
Updates the state when a user repays a loan.
update-state-on-redeem
Updates the state when a user redeems assets.
update-state-on-liquidation
Updates the state during the liquidation process.
update-state-on-borrow
Updates the state when a user borrows assets.
transfer-to-user
Transfers assets to a user.
set-user-reserve-as-collateral
Sets a user's reserve as collateral.
mint-to-treasury
Mints assets to the treasury.
transfer-to-reserve
Transfers assets to the reserve.
set-user-index
Sets the user index for a specific user and asset.
calculate-user-global-data
Calculates global data for a specific user.
aggregate-user-data
Aggregates user data for calculating global parameters.
update-reserve-interest-rates-and-timestamp
Updates the reserve interest rates and timestamp.
update-cumulative-indexes
Updates cumulative indexes for a specific asset.
Input Parameters
1. set-flashloan-fee-total
Parameter | Type | Description |
---|---|---|
asset | principal | The asset to set the fee for. |
fee | uint | The fee amount to set. |
2. set-flashloan-fee-protocol
Parameter | Type | Description |
---|---|---|
asset | principal | The asset to set the protocol fee for. |
fee | uint | The protocol fee amount to set. |
set-origination-fee-prc
set-origination-fee-prc
Sets the origination fee percentage for a specific asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The origination fee. |
get-health-factor-liquidation-threshold
get-health-factor-liquidation-threshold
Gets the health factor liquidation threshold.
No input parameters
set-health-factor-liquidation-treshold
set-health-factor-liquidation-treshold
Sets the health factor liquidation threshold.
Parameter | Type | Description |
---|---|---|
|
| The health factor liquidation threshold. |
set-user-reserve-data
set-user-reserve-data
Sets the reserve data for a user.
Parameter | Type | Description |
---|---|---|
|
| The user identifier. |
|
| The reserve identifier. |
|
| The reserve data. |
set-user-assets
set-user-assets
Sets the assets for a user.
Parameter | Type | Description |
---|---|---|
|
| The user identifier. |
|
| The assets data. |
set-configurator
set-configurator
Sets the configurator address.
Parameter | Type | Description |
---|---|---|
|
| The new configurator address. |
set-lending-pool
set-lending-pool
Sets the lending pool address.
Parameter | Type | Description |
---|---|---|
|
| The new lending pool address. |
set-liquidator
set-liquidator
Sets the liquidator address.
Parameter | Type | Description |
---|---|---|
|
| The new liquidator address. |
set-admin
set-admin
Sets the admin address.
Parameter | Type | Description |
---|---|---|
|
| The new admin address. |
set-approved-contract
set-approved-contract
Sets an approved contract status.
Parameter | Type | Description |
---|---|---|
|
| The contract identifier. |
|
| The status to set. |
set-optimal-utilization-rate
set-optimal-utilization-rate
Sets the optimal utilization rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The optimal utilization rate. |
set-base-variable-borrow-rate
set-base-variable-borrow-rate
Sets the base variable borrow rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The base variable borrow rate. |
set-variable-rate-slope-1
set-variable-rate-slope-1
Sets the variable rate slope 1 for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The variable rate slope 1. |
set-variable-rate-slope-2
set-variable-rate-slope-2
Sets the variable rate slope 2 for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The variable rate slope 2. |
set-liquidation-close-factor-percent
set-liquidation-close-factor-percent
Sets the liquidation close factor percent for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The liquidation close factor percent. |
get-optimal-utilization-rate
get-optimal-utilization-rate
Gets the optimal utilization rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
get-base-variable-borrow-rate
get-base-variable-borrow-rate
Gets the base variable borrow rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
get-variable-rate-slope-1
get-variable-rate-slope-1
Gets the variable rate slope 1 for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
get-variable-rate-slope-2
get-variable-rate-slope-2
Gets the variable rate slope 2 for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
is-borroweable-isolated
is-borroweable-isolated
Checks if an asset is borrowable in isolation mode.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
get-borroweable-isolated
get-borroweable-isolated
Gets the list of assets borrowable in isolation.
No input parameters
is-isolated-type
is-isolated-type
Checks if an asset is an isolated type.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
set-borroweable-isolated
set-borroweable-isolated
Sets the assets that can be borrowed in isolation mode.
Parameter | Type | Description |
---|---|---|
|
| List of new isolated assets. |
remove-isolated-asset
remove-isolated-asset
Removes an asset from the isolated assets list.
Parameter | Type | Description |
---|---|---|
|
| The asset to be removed. |
set-isolated-asset
set-isolated-asset
Sets an asset as an isolated asset.
Parameter | Type | Description |
---|---|---|
|
| The asset to be set. |
is-borrowing-assets
is-borrowing-assets
Checks if a user is borrowing any assets.
Parameter | Type | Description |
---|---|---|
|
| The user identifier. |
is-in-isolation-mode
is-in-isolation-mode
Checks if a user is in isolation mode.
Parameter | Type | Description |
---|---|---|
|
| The user identifier. |
get-assets-used-as-collateral
get-assets-used-as-collateral
Gets the assets used as collateral by a user.
Parameter | Type | Description |
---|---|---|
|
| The user identifier. |
get-isolated-asset
get-isolated-asset
Gets the isolated asset for a user in isolation mode.
Parameter | Type | Description |
---|---|---|
|
| The user identifier. |
add-supplied-asset-ztoken
add-supplied-asset-ztoken
Adds an asset to the supplied assets list for a user when a zToken is involved.
Parameter | Type | Description |
---|---|---|
|
| The user identifier. |
|
| The asset to be added. |
remove-supplied-asset-ztoken
remove-supplied-asset-ztoken
Removes an asset from the supplied assets list for a user when a zToken is involved.
Parameter | Type | Description |
---|---|---|
|
| The user identifier. |
|
| The asset to be removed. |
update-state-on-deposit
update-state-on-deposit
Updates the state of a reserve based on a deposit action.
Parameter | Type | Description |
---|---|---|
|
| The asset being deposited. |
|
| The user making the deposit. |
|
| The amount of the asset being deposited. |
|
| Indicates if this is the user's first deposit. |
update-state-on-flash-loan
update-state-on-flash-loan
Updates the state after a flash loan operation.
Parameter | Type | Description |
---|---|---|
|
| The recipient of the flash loan. |
|
| The asset involved in the flash loan. |
|
| Available liquidity before the loan. |
|
| Income generated from the flash loan. |
|
| Protocol fee for the flash loan. |
update-state-on-repay
update-state-on-repay
Updates the state of a reserve based on a repay action.
Parameter | Type | Description |
---|---|---|
|
| The asset being repaid. |
|
| The user making the repayment. |
|
| The repayment amount minus any fees. |
|
| The origination fee that was repaid. |
|
| The increase in balance from interest. |
|
| Indicates if the whole loan was repaid. |
update-state-on-redeem
update-state-on-redeem
Updates the state of a reserve based on a redeem action.
Parameter | Type | Description |
---|---|---|
|
| The asset being redeemed. |
|
| The user performing the redemption. |
|
| The amount of the asset being redeemed. |
|
| Indicates if the user has redeemed all their assets. |
update-state-on-liquidation
update-state-on-liquidation
Updates the state of reserves involved in a liquidation process.
Parameter | Type | Description |
---|---|---|
|
| The principal reserve in the liquidation. |
|
| The collateral reserve in the liquidation. |
|
| The borrower undergoing liquidation. |
|
| The address of the liquidator. |
|
| The amount of principal being liquidated. |
|
| The amount of collateral being liquidated. |
|
| The fee associated with the liquidation. |
|
| The amount of collateral used for the fee. |
|
| The increase in balance due to interest accrual. |
|
|
Last updated