Timelock

In cases of account suspension or transaction reversal, if the perpetrator manages to transfer or offload all cryptocurrency promptly, it can become challenging to reverse the transaction, which may also impact recipients who believe they are engaging in legitimate trades. To mitigate this risk, a time lock will be implemented, setting a default delay of one day before tokens can be accessed. This buffer allows administrators and council members sufficient time to reverse suspicious transactions if necessary. For transactions flagged as high-risk, the time lock can be extended further.

transfer(address to, uint256 amount)
// Default locking of 86400 seconds (24 hours)



transfer(address from, address to, uint256 amount)
// Default locking of 86400 seconds (24 hours)



transfer(address to, uint256 amount, uint256 lockTime)
// Can overwrite the token lock time and set to 0 to disable



transfer(address from, address to, uint256 amount, uint256 lockTime)
// Can overwrite the token lock time and set to 0 to disable



setLockTime(uint256 newLockTime) onlyOwner
// Owner can set the default lock time of this contract

Last updated