pool-reserve-data
set-flashloan-fee-protocol
: Sets the protocol fee for flash loans for a given asset.get-flashloan-fee-protocol
: Retrieves the protocol fee for flash loans for a given asset.set-health-factor-liquidation-threshold
: Sets the health factor liquidation threshold.get-health-factor-liquidation-threshold
: Gets the health factor liquidation threshold.set-protocol-treasury-addr
: Sets the address of the protocol treasury.get-protocol-treasury-addr
: Gets the address of the protocol treasury.set-reserve-vault
: Sets the reserve vault address.get-reserve-vault
: Gets the reserve vault address.set-user-reserve-data
: Sets the reserve data for a user.delete-user-reserve-data
: Deletes the reserve data for a user.get-user-reserve-data
: Gets the reserve data for a user.set-user-assets
: Sets the user's assets.delete-user-assets
: Deletes a user's assets.get-user-assets
: Gets a user's assets.set-reserve-state
: Sets the state of a reserve.delete-reserve-state
: Deletes the state of a reserve.get-reserve-state
: Gets the state of a reserve.set-user-index
: Sets the user index for an asset.delete-user-index
: Deletes the user index for an asset.get-user-index
: Gets the user index for an asset.set-assets
: Sets the list of assets in the protocol.get-assets
: Gets the list of assets in the protocol.set-isolated-assets
: Sets whether an asset is isolated.delete-isolated-assets
: Deletes the isolated status of an asset.get-isolated-assets
: Gets the isolated status of an asset.set-borroweable-isolated
: Sets the list of assets that can be borrowed using isolated assets as collateral.get-borroweable-isolated
: Gets the list of assets that can be borrowed using isolated assets as collateral.set-optimal-utilization-rate
: Sets the optimal utilization rate for an asset.get-optimal-utilization-rate
: Gets the optimal utilization rate for an asset.set-base-variable-borrow-rate
: Sets the base variable borrow rate for an asset.get-base-variable-borrow-rate
: Gets the base variable borrow rate for an asset.set-variable-rate-slope-1
: Sets the first slope of the variable borrow rate for an asset.get-variable-rate-slope-1
: Gets the first slope of the variable borrow rate for an asset.set-variable-rate-slope-2
: Sets the second slope of the variable borrow rate for an asset.get-variable-rate-slope-2
: Gets the second slope of the variable borrow rate for an asset.set-liquidation-close-factor-percent
: Sets the liquidation close factor percentage for an asset.get-liquidation-close-factor-percent
: Gets the liquidation close factor percentage for an asset.set-origination-fee-prc
: Sets the origination fee percentage for an asset.get-origination-fee-prc
: Gets the origination fee percentage for an asset.set-reserve-factor
: Sets the reserve factor for an asset.get-reserve-factor
: Gets the reserve factor for an asset.set-contract-owner
: Sets the owner of the contract.get-contract-owner
: Gets the owner of the contract.is-contract-owner
: Checks if a given principal is the contract owner.set-approved-contract
: Approves or revokes a contract's access to modify protected state variables.delete-approved-contract
: Deletes an approved contract from the list of approved contracts.is-approved-contract
: Checks if a contract is approved.
set-flashloan-fee-protocol
set-flashloan-fee-protocol
Sets the protocol fee for flash loans for a given asset.
Parameter | Type | Description |
---|---|---|
|
| The asset for which the fee is set. |
|
| The fee amount. |
get-flashloan-fee-protocol
get-flashloan-fee-protocol
Retrieves the protocol fee for flash loans for a given asset.
Parameter | Type | Description |
---|---|---|
|
| The asset for which the fee is retrieved. |
set-health-factor-liquidation-threshold
set-health-factor-liquidation-threshold
Sets the health factor liquidation threshold.
Parameter | Type | Description |
---|---|---|
|
| The health factor liquidation threshold value. |
get-health-factor-liquidation-threshold
get-health-factor-liquidation-threshold
Gets the health factor liquidation threshold.
set-protocol-treasury-addr
set-protocol-treasury-addr
Sets the address of the protocol treasury.
Parameter | Type | Description |
---|---|---|
|
| The new protocol treasury address. |
get-protocol-treasury-addr
get-protocol-treasury-addr
Gets the address of the protocol treasury.
set-reserve-vault
set-reserve-vault
Sets the reserve vault address.
Parameter | Type | Description |
---|---|---|
|
| The new reserve vault address. |
get-reserve-vault
get-reserve-vault
Gets the reserve vault address.
set-user-reserve-data
set-user-reserve-data
Sets the reserve data for a user.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
|
| The reserve identifier. |
|
| The reserve data for the user. |
delete-user-reserve-data
delete-user-reserve-data
Deletes the reserve data for a user.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
|
| The reserve identifier. |
get-user-reserve-data
get-user-reserve-data
Gets the reserve data for a user.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
|
| The reserve identifier. |
set-user-assets
set-user-assets
Sets the user's assets.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
|
| The assets data for the user. |
delete-user-assets
delete-user-assets
Deletes a user's assets.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
get-user-assets
get-user-assets
Gets a user's assets.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
set-reserve-state
set-reserve-state
Sets the state of a reserve.
Parameter | Type | Description |
---|---|---|
|
| The reserve identifier. |
|
| The state data for the reserve. |
delete-reserve-state
delete-reserve-state
Deletes the state of a reserve.
Parameter | Type | Description |
---|---|---|
|
| The reserve identifier. |
get-reserve-state
get-reserve-state
Gets the state of a reserve.
Parameter | Type | Description |
---|---|---|
|
| The reserve identifier. |
set-user-index
set-user-index
Sets the user index for an asset.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
|
| The asset identifier. |
|
| The index data. |
delete-user-index
delete-user-index
Deletes the user index for an asset.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
|
| The asset identifier. |
get-user-index
get-user-index
Gets the user index for an asset.
Parameter | Type | Description |
---|---|---|
|
| The user's identifier. |
|
| The asset identifier. |
set-assets
set-assets
Sets the list of assets in the protocol.
Parameter | Type | Description |
---|---|---|
|
| The list of asset identifiers. |
get-assets
get-assets
Gets the list of assets in the protocol.
set-isolated-assets
set-isolated-assets
Sets whether an asset is isolated.
Parameter | Type | Description |
---|---|---|
|
| The reserve identifier. |
|
| Whether the asset is isolated. |
delete-isolated-assets
delete-isolated-assets
Deletes the isolated status of an asset.
Parameter | Type | Description |
---|---|---|
|
| The reserve identifier. |
get-isolated-assets
get-isolated-assets
Gets the isolated status of an asset.
Parameter | Type | Description |
---|---|---|
|
| The reserve identifier. |
set-borroweable-isolated
set-borroweable-isolated
Sets the list of assets that can be borrowed using isolated assets as collateral.
Parameter | Type | Description |
---|---|---|
|
| The list of asset identifiers. |
get-borroweable-isolated
get-borroweable-isolated
Gets the list of assets that can be borrowed using isolated assets as collateral.
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. |
get-optimal-utilization-rate
get-optimal-utilization-rate
Gets the optimal utilization rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
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. |
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. |
set-variable-rate-slope-1
set-variable-rate-slope-1
Sets the first slope of the variable borrow rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The first slope rate. |
get-variable-rate-slope-1
get-variable-rate-slope-1
Gets the first slope of the variable borrow rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
set-variable-rate-slope-2
set-variable-rate-slope-2
Sets the second slope of the variable borrow rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The second slope rate. |
get-variable-rate-slope-2
get-variable-rate-slope-2
Gets the second slope of the variable borrow rate for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
set-liquidation-close-factor-percent
set-liquidation-close-factor-percent
Sets the liquidation close factor percentage for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The liquidation close factor percentage. |
get-liquidation-close-factor-percent
get-liquidation-close-factor-percent
Gets the liquidation close factor percentage for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
set-origination-fee-prc
set-origination-fee-prc
Sets the origination fee percentage for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The origination fee percentage. |
get-origination-fee-prc
get-origination-fee-prc
Gets the origination fee percentage for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
set-reserve-factor
set-reserve-factor
Sets the reserve factor for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
|
| The reserve factor. |
get-reserve-factor
get-reserve-factor
Gets the reserve factor for an asset.
Parameter | Type | Description |
---|---|---|
|
| The asset identifier. |
set-contract-owner
set-contract-owner
Sets the owner of the contract.
Parameter | Type | Description |
---|---|---|
|
| The new contract owner. |
get-contract-owner
get-contract-owner
Gets the owner of the contract.
is-contract-owner
is-contract-owner
Checks if a given principal is the contract owner.
Parameter | Type | Description |
---|---|---|
|
| The caller to check. |
set-approved-contract
set-approved-contract
Approves or revokes a contract's access to modify protected state variables.
Parameter | Type | Description |
---|---|---|
|
| The contract to approve or revoke. |
|
|
|
delete-approved-contract
delete-approved-contract
Deletes an approved contract from the list of approved contracts.
Parameter | Type | Description |
---|---|---|
|
| The contract to delete. |
is-approved-contract
is-approved-contract
Checks if a contract is approved.
Parameter | Type | Description |
---|---|---|
|
| The contract to check. |