LiquidityProtectionSingleLimitStrategy
Contract that implements protection strategy using a single limit. Inherits from StrategyBase.
Contract can be found here:
Variables
protection
protection
A mapping of addresses and their protection rules.
Functions
getLimit
setLimitBatched
setLimit
removeLimits
pause
isTransferAllowed
getLimit
Returns limit info for particular protected address.
Parameters:
setLimitBatched
Sets limits for a list of addresses. Can be called only by token protection admin.
Parameters:
setLimit
Sets limit for a single address. Can be called only by token protection admin.
Parameters:
removeLimits
Removes limits for addresses in the list. Can be called only by token protection admin.
Parameters:
pause
Change limit to 0, ie, pause transfers from this address. Can be called only by token protection admin.
Parameters:
isTransferAllowed
Checks if transfer from the sender is allowed. Internally it validates if limit is not reached and updates limit info after transfer is allowed to go through.
Parameters:
Last updated