Skip to content

FluidVaultT1Admin_Not_For_Prod ​

Fluid Vault protocol Admin Module contract. Implements admin related methods to set configs such as liquidation params, rates oracle address etc. Methods are limited to be called via delegateCall only. Vault CoreModule ("VaultT1" contract) is expected to call the methods implemented here after checking the msg.sender is authorized. All methods update the exchange prices in storage before changing configs.

updateSupplyRateMagnifier ​

solidity
function updateSupplyRateMagnifier(uint256 supplyRateMagnifier_) public

updates the supply rate magnifier to supplyRateMagnifier_. Input in 1e2 (1% = 100, 100% = 10_000).

updateBorrowRateMagnifier ​

solidity
function updateBorrowRateMagnifier(uint256 borrowRateMagnifier_) public

updates the borrow rate magnifier to borrowRateMagnifier_. Input in 1e2 (1% = 100, 100% = 10_000).

updateCoreSettings ​

solidity
function updateCoreSettings(uint256 supplyRateMagnifier_, uint256 borrowRateMagnifier_, uint256 collateralFactor_, uint256 liquidationThreshold_, uint256 liquidationMaxLimit_, uint256 withdrawGap_, uint256 liquidationPenalty_, uint256 borrowFee_) public

updates the all Vault core settings according to input params. All input values are expected in 1e2 (1% = 100, 100% = 10_000).