Skip to content

Commit

Permalink
提交43. 线性释放的remix的演示截图
Browse files Browse the repository at this point in the history
  • Loading branch information
李欣 committed Aug 8, 2022
1 parent 1bdede3 commit dcfea95
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
Binary file added 43_TokenVesting/img/43-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 43_TokenVesting/img/43-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 43_TokenVesting/img/43-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 43_TokenVesting/img/43-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 43_TokenVesting/img/43-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions 43_TokenVesting/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,22 @@ contract TokenVesting {

### 1. 部署[第31讲](../31_ERC20/readme.md)中的`ERC20`合约,并给自己铸造`10000`枚代币。

![部署ERC20](./img/43-2.png)

![铸造10000枚代币](./img/43-3.png)

### 2. 部署`TokenVesting`线性释放合约,输入设为自己,归属期设为`100`秒。

![部署TokenVesting](./img/43-4.png)

### 3. 将`10000``ERC20`代币转给线性释放合约。

![转移代币](./img/43-5.png)

### 4. 调用`release()`函数提取代币。

![提取代币](./img/43-6.png)

## 总结

代币短期大量解锁会对币价造成巨大压力,而约定代币归属条款可以缓解抛压,并防止团队和资本方过早躺平。这一讲,我们介绍了代币归属条款,并写了线性释放`ERC20`代币的合约。
Expand Down

0 comments on commit dcfea95

Please sign in to comment.