FluidRatesAuth ​
Inherits:Constants, Error, Events, Structs, Variables
Sets borrow rate for specified borrow token at Liquidity based on team multisig input.
Functions ​
onlyMultisig ​
Validates that an address is a multisig (taken from reserve auth)
solidity
modifier onlyMultisig();
constructor ​
solidity
constructor(address liquidity_, uint256 percentRateChangeAllowed_, uint256 cooldown_);
updateRateDataV1 ​
solidity
function updateRateDataV1(RateAtKinkV1 calldata rateStruct_) external onlyMultisig;
updateRateDataV2 ​
solidity
function updateRateDataV2(RateAtKinkV2 calldata rateStruct_) external onlyMultisig;
_percentDiffForValue ​
gets the percentage difference between oldValue_
and newValue_
in relation to oldValue_
solidity
function _percentDiffForValue(uint256 oldValue_, uint256 newValue_)
internal
pure
returns (uint256 configPercentDiff_);