recoveryAdmin
recoveryAdminCanditate
recoveryAdminKeyHash
admin
timelockPeriod
losslessTurnOffTimestamp
isLosslessTurnOffProposed
isLosslessOn
lossless
transferRecoveryAdminOwnership
function.transferRecoveryAdminOwnership
function.transferRecoveryAdminOwnership
function.setLosslessAdmin
function.proposeLosslessTurnOff
function. This variable is a product of block.timestamp + timelockPeriod
.proposeLosslessTurnOff
function.executeLosslessTurnOff
function.transfer
function has lssTransfer
modifier. There's a unique modifier for each public ERC20 function. This is the complete modifiers list that enables lossless functionality for the ERC20 token:lssAprove
lssTransfer
lssTransferFrom
lssIncreaseAllowance
lssDecreaseAllowance
onlyRecoveryAdmin
lss
prefix use the same pattern:isLosslessOn == true
).lssTransfer
calls lossless.beforeTransfer
before executing the original function call and then later on call lossless.afterTransfer
after executing the original function call. However, none of these methods are called when the lossless is turned off for the particular token.recoveryAdmin
. It is used in these privileged methods: setLosslessAdmin, transferRecoveryAdminOwnership, proposeLosslessTurnOff, executeLosslessTurnOn.
Functions
admin
of the token.from
admin
wallet address.newAdmin
recoveryAdminCanditate
and recoveryAdminKeyHash.
This is the first step in transferring the ownership of the recoveryAdmin
candidate
keyHash
recoveryAdminCanditate
to accept the ownership of recoveryAdmin
by providing a key
that has a hash equal to recoveryAdminKeyHash
.key
key
that has to have a hash equal to recoveryAdminKeyHash
losslessTurnOffTimestamp
and isLosslessTurnOffProposed
.proposeLosslessTurnOff
is called first and the losslessTurnOffTimestamp
has passed.