IFluidDexT1Admin ​
Functions ​
updateUserWithdrawalLimit ​
sets a new withdrawal limit as the current limit for a certain user
solidity
function updateUserWithdrawalLimit(address user_, uint256 newLimit_) external;
Parameters
Name | Type | Description |
---|---|---|
user_ | address | user address for which to update the withdrawal limit |
newLimit_ | uint256 | new 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). |