Skip to content

IFluidDexT1Admin ​

Git Source

Functions ​

updateUserSupplyConfigs ​

solidity
function updateUserSupplyConfigs(AdminModuleStructs.UserSupplyConfig[] memory userSupplyConfigs_) external;

updateUserBorrowConfigs ​

solidity
function updateUserBorrowConfigs(AdminModuleStructs.UserBorrowConfig[] memory userBorrowConfigs_) external;

updateMaxBorrowShares ​

solidity
function updateMaxBorrowShares(uint256 maxBorrowShares_) external;

updateMaxSupplyShares ​

solidity
function updateMaxSupplyShares(uint256 maxSupplyShares_) external;

updateUserWithdrawalLimit ​

sets a new withdrawal limit as the current limit for a certain user

solidity
function updateUserWithdrawalLimit(address user_, uint256 newLimit_) external;

Parameters

NameTypeDescription
user_addressuser address for which to update the withdrawal limit
newLimit_uint256new limit until which user supply can decrease to. Important: input in raw. Must account for exchange price in input param calculation. Note any limit that is < max expansion or > current user supply will set max expansion limit or current user supply as limit respectively. - set 0 to make maximum possible withdrawable: instant full expansion, and if that goes below base limit then fully down to 0. - set type(uint256).max to make current withdrawable 0 (sets current user supply as limit).