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