pool-0-reserve

Core Functions

  1. set-flashloan-fee-total

    • Sets the total fee for flash loans for a specific asset.

  2. set-flashloan-fee-protocol

    • Sets the protocol fee for flash loans for a specific asset.

  3. set-origination-fee-prc

    • Sets the origination fee percentage for a specific asset.

  4. set-health-factor-liquidation-treshold

    • Sets the health factor liquidation threshold.

  5. set-user-reserve-data

    • Sets user reserve data for a specific user and reserve.

  6. set-user-assets

    • Sets user assets data for a specific user.

  7. update-state-on-deposit

    • Updates the state when a user deposits assets.

  8. update-state-on-flash-loan

    • Updates the state after a flash loan is executed.

  9. update-state-on-repay

    • Updates the state when a user repays a loan.

  10. update-state-on-redeem

    • Updates the state when a user redeems assets.

  11. update-state-on-liquidation

    • Updates the state during the liquidation process.

  12. update-state-on-borrow

    • Updates the state when a user borrows assets.

  13. transfer-to-user

    • Transfers assets to a user.

  14. set-user-reserve-as-collateral

    • Sets a user's reserve as collateral.

  15. mint-to-treasury

    • Mints assets to the treasury.

  16. transfer-to-reserve

    • Transfers assets to the reserve.

  17. set-user-index

    • Sets the user index for a specific user and asset.

  18. calculate-user-global-data

    • Calculates global data for a specific user.

  19. aggregate-user-data

    • Aggregates user data for calculating global parameters.

  20. update-reserve-interest-rates-and-timestamp

    • Updates the reserve interest rates and timestamp.

  21. update-cumulative-indexes

    • Updates cumulative indexes for a specific asset.

Input Parameters

1. set-flashloan-fee-total

2. set-flashloan-fee-protocol

set-origination-fee-prc

Sets the origination fee percentage for a specific asset.

get-health-factor-liquidation-threshold

Gets the health factor liquidation threshold.

No input parameters

set-health-factor-liquidation-treshold

Sets the health factor liquidation threshold.

set-user-reserve-data

Sets the reserve data for a user.

set-user-assets

Sets the assets for a user.

set-configurator

Sets the configurator address.

set-lending-pool

Sets the lending pool address.

set-liquidator

Sets the liquidator address.

set-admin

Sets the admin address.

set-approved-contract

Sets an approved contract status.

set-optimal-utilization-rate

Sets the optimal utilization rate for an asset.

set-base-variable-borrow-rate

Sets the base variable borrow rate for an asset.

set-variable-rate-slope-1

Sets the variable rate slope 1 for an asset.

set-variable-rate-slope-2

Sets the variable rate slope 2 for an asset.

set-liquidation-close-factor-percent

Sets the liquidation close factor percent for an asset.

get-optimal-utilization-rate

Gets the optimal utilization rate for an asset.

get-base-variable-borrow-rate

Gets the base variable borrow rate for an asset.

get-variable-rate-slope-1

Gets the variable rate slope 1 for an asset.

get-variable-rate-slope-2

Gets the variable rate slope 2 for an asset.

is-borroweable-isolated

Checks if an asset is borrowable in isolation mode.

get-borroweable-isolated

Gets the list of assets borrowable in isolation.

No input parameters

is-isolated-type

Checks if an asset is an isolated type.

set-borroweable-isolated

Sets the assets that can be borrowed in isolation mode.

remove-isolated-asset

Removes an asset from the isolated assets list.

set-isolated-asset

Sets an asset as an isolated asset.

is-borrowing-assets

Checks if a user is borrowing any assets.

is-in-isolation-mode

Checks if a user is in isolation mode.

get-assets-used-as-collateral

Gets the assets used as collateral by a user.

get-isolated-asset

Gets the isolated asset for a user in isolation mode.

add-supplied-asset-ztoken

Adds an asset to the supplied assets list for a user when a zToken is involved.

remove-supplied-asset-ztoken

Removes an asset from the supplied assets list for a user when a zToken is involved.

update-state-on-deposit

Updates the state of a reserve based on a deposit action.

update-state-on-flash-loan

Updates the state after a flash loan operation.

update-state-on-repay

Updates the state of a reserve based on a repay action.

update-state-on-redeem

Updates the state of a reserve based on a redeem action.

update-state-on-liquidation

Updates the state of reserves involved in a liquidation process.

Last updated