Skip to content

FluidVaultFeeRewardsAuth ​

Git Source

Inherits:Constants, Error, Events

Functions ​

onlyMultisig ​

Validates that an address is the team multisig

solidity
modifier onlyMultisig();

updateSupplyRate ​

updates the supply rate for a given SMART COL vault.

solidity
function updateSupplyRate(address smartColVault_, int256 newSupplyRate_) external onlyMultisig;

Parameters

NameTypeDescription
smartColVault_addressThe address of the SMART COL vault to update
newSupplyRate_int256The 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.

solidity
function updateBorrowRate(address smartDebtVault_, int256 newBorrowRate_) external onlyMultisig;

Parameters

NameTypeDescription
smartDebtVault_addressThe address of the SMART DEBT vault to update
newBorrowRate_int256The 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.

solidity
function updateSupplyRateMagnifier(address normalColVault_, uint256 newMagnifier_) external onlyMultisig;

Parameters

NameTypeDescription
normalColVault_addressThe address of the NORMAL COL vault to update.
newMagnifier_uint256The new supply rate magnifier value to set.

updateBorrowRateMagnifier ​

Sets the borrow rate magnifier for a given NORMAL DEBT vault.

solidity
function updateBorrowRateMagnifier(address normalDebtVault_, uint256 newMagnifier_) external onlyMultisig;

Parameters

NameTypeDescription
normalDebtVault_addressThe address of the NORMAL DEBT vault to update.
newMagnifier_uint256The new borrow rate magnifier value to set.

getVaultType ​

Get the type of a vault (assumes valid Fluid vault address is passed in)

solidity
function getVaultType(address vault_) public view returns (bool isSmartCol_, bool isSmartDebt_);

Parameters

NameTypeDescription
vault_addressThe address of the vault.

Returns

NameTypeDescription
isSmartCol_boolTrue if the vault is a SMART COL vault, false otherwise.
isSmartDebt_boolTrue if the vault is a SMART DEBT vault, false otherwise.

currentSupplyRateMagnifier ​

returns the currently configured supply rate magnifier at the vault_

solidity
function currentSupplyRateMagnifier(address normalColVault_) public view returns (uint256);

Parameters

NameTypeDescription
normalColVault_addressThe address of the NORMAL COL vault to query.

Returns

NameTypeDescription
<none>uint256The current supply rate magnifier value.

currentBorrowRateMagnifier ​

returns the currently configured borrow rate magnifier at the vault_

solidity
function currentBorrowRateMagnifier(address normalDebtVault_) public view returns (uint256);

Parameters

NameTypeDescription
normalDebtVault_addressThe address of the NORMAL DEBT vault to query.

Returns

NameTypeDescription
<none>uint256The current borrow rate magnifier value.

currentSupplyRate ​

returns the currently configured supply rate at the vault_

solidity
function currentSupplyRate(address smartColVault_) public view returns (int256 supplyRate_);

Parameters

NameTypeDescription
smartColVault_addressThe address of the SMART COL vault to query.

Returns

NameTypeDescription
supplyRate_int256The current supply rate value.

currentBorrowRate ​

returns the currently configured borrow rate at the vault_

solidity
function currentBorrowRate(address smartDebtVault_) public view returns (int256 borrowRate_);

Parameters

NameTypeDescription
smartDebtVault_addressThe address of the SMART DEBT vault to query.

Returns

NameTypeDescription
borrowRate_int256The current borrow rate value.