FluidVaultFeeRewardsAuth ​
Inherits:Constants, Error, Events
Functions ​
onlyMultisig ​
Validates that an address is the team multisig
modifier onlyMultisig();
updateSupplyRate ​
updates the supply rate for a given SMART COL vault.
function updateSupplyRate(address smartColVault_, int256 newSupplyRate_) external onlyMultisig;
Parameters
Name | Type | Description |
---|---|---|
smartColVault_ | address | The address of the SMART COL vault to update |
newSupplyRate_ | int256 | The new supply rate to set. Input in 1e2 (1% = 100, 100% = 10_000). If positive then incentives else charging |
updateBorrowRate ​
updates the borrow rate for a given SMART DEBT vault.
function updateBorrowRate(address smartDebtVault_, int256 newBorrowRate_) external onlyMultisig;
Parameters
Name | Type | Description |
---|---|---|
smartDebtVault_ | address | The address of the SMART DEBT vault to update |
newBorrowRate_ | int256 | The new borrow rate to set. Input in 1e2 (1% = 100, 100% = 10_000). If positive then charging else incentives |
updateSupplyRateMagnifier ​
Sets the supply rate magnifier for a given NORMAL COL vault.
function updateSupplyRateMagnifier(address normalColVault_, uint256 newMagnifier_) external onlyMultisig;
Parameters
Name | Type | Description |
---|---|---|
normalColVault_ | address | The address of the NORMAL COL vault to update. |
newMagnifier_ | uint256 | The new supply rate magnifier value to set. |
updateBorrowRateMagnifier ​
Sets the borrow rate magnifier for a given NORMAL DEBT vault.
function updateBorrowRateMagnifier(address normalDebtVault_, uint256 newMagnifier_) external onlyMultisig;
Parameters
Name | Type | Description |
---|---|---|
normalDebtVault_ | address | The address of the NORMAL DEBT vault to update. |
newMagnifier_ | uint256 | The new borrow rate magnifier value to set. |
getVaultType ​
Get the type of a vault (assumes valid Fluid vault address is passed in)
function getVaultType(address vault_) public view returns (bool isSmartCol_, bool isSmartDebt_);
Parameters
Name | Type | Description |
---|---|---|
vault_ | address | The address of the vault. |
Returns
Name | Type | Description |
---|---|---|
isSmartCol_ | bool | True if the vault is a SMART COL vault, false otherwise. |
isSmartDebt_ | bool | True if the vault is a SMART DEBT vault, false otherwise. |
currentSupplyRateMagnifier ​
returns the currently configured supply rate magnifier at the vault_
function currentSupplyRateMagnifier(address normalColVault_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
normalColVault_ | address | The address of the NORMAL COL vault to query. |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The current supply rate magnifier value. |
currentBorrowRateMagnifier ​
returns the currently configured borrow rate magnifier at the vault_
function currentBorrowRateMagnifier(address normalDebtVault_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
normalDebtVault_ | address | The address of the NORMAL DEBT vault to query. |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The current borrow rate magnifier value. |
currentSupplyRate ​
returns the currently configured supply rate at the vault_
function currentSupplyRate(address smartColVault_) public view returns (int256 supplyRate_);
Parameters
Name | Type | Description |
---|---|---|
smartColVault_ | address | The address of the SMART COL vault to query. |
Returns
Name | Type | Description |
---|---|---|
supplyRate_ | int256 | The current supply rate value. |
currentBorrowRate ​
returns the currently configured borrow rate at the vault_
function currentBorrowRate(address smartDebtVault_) public view returns (int256 borrowRate_);
Parameters
Name | Type | Description |
---|---|---|
smartDebtVault_ | address | The address of the SMART DEBT vault to query. |
Returns
Name | Type | Description |
---|---|---|
borrowRate_ | int256 | The current borrow rate value. |