timelock contract for ERC20 token grants – ERC20代币赠款的timelock合同区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,timelock contract for ERC20 token grants – ERC20代币赠款的timelock合同区块链毕设代写 是一篇很好的国外资料

timelock contract for ERC20 token grants

This contract grants the receiver an ERC20 token after a specified window of time.

createTimelock(token, value (value per recipient), N days unlock, K days recover);

Admin recovery of funds is allowed K+N days after the timelock grant opens.

Recipient addresses cannot be updated once created.

However, additional recipients can be added any any time to an ongoing timelock by the creator of that timelock.

This is fairly simple and gas-friendly. It’s based on block.timestamp but has a day granularity to prevent any issues with timing attacks.


ERC20代币赠款的timelock合同

此合同在指定的时间窗口后授予接收方ERC20令牌

createTimelock(令牌、值(每个收件人的值)、N天解锁、K天恢复)

在timelock授权开启后的K+N天内,允许管理员收回资金

收件人地址一旦创建就无法更新

但是,其他收件人可以随时由该时间锁的创建者添加到正在进行的时间锁中

这相当简单,而且对气体友好。它基于block.timestamp,但具有日粒度以防止任何定时攻击问题

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/23892.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » timelock contract for ERC20 token grants – ERC20代币赠款的timelock合同区块链毕设代写

提供最优质的资源集合

立即查看 了解详情