FluidWithdrawLimitAuthDex ​
Inherits:Variables, Error, Events
Functions ​
validAddress ​
Validates that an address is not the zero address
solidity
modifier validAddress(address value_);onlyRebalancer ​
Validates that an address is a rebalancer (taken from reserve contract)
solidity
modifier onlyRebalancer();onlyMultisig ​
Validates that an address is the team multisig
solidity
modifier onlyMultisig();constructor ​
solidity
constructor(IFluidReserveContract reserveContract_, address multisig_)
    validAddress(address(reserveContract_))
    validAddress(multisig_);rebalanceWithdrawalLimit ​
updates the withdrawal limit for a specific user at a dex
This function can only be called by the rebalancer
solidity
function rebalanceWithdrawalLimit(address dex_, address user_, uint256 newLimit_) external onlyRebalancer;Parameters
| Name | Type | Description | 
|---|---|---|
dex_ | address | The address of the dex | 
user_ | address | The address of the user for which to set the withdrawal limit | 
newLimit_ | uint256 | The new withdrawal limit to be set | 
setWithdrawalLimit ​
Sets the withdrawal limit for a specific user at a dex
This function can only be called by team multisig
solidity
function setWithdrawalLimit(address dex_, address user_, uint256 newLimit_) external onlyMultisig;Parameters
| Name | Type | Description | 
|---|---|---|
dex_ | address | The address of the dex | 
user_ | address | The address of the user for which to set the withdrawal limit | 
newLimit_ | uint256 | The new withdrawal limit to be set | 
getUsersData ​
solidity
function getUsersData(address dex_, address[] memory users_)
    public
    view
    returns (uint256[] memory initialUsersSupply_, uint256[] memory initialWithdrawLimit_);
