Skip to content

Commit 25b56c1

Browse files
committed
Add study notes for 2025-08-14
1 parent a79941c commit 25b56c1

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

kuove.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ web2转型web3,希望学习测试与开发
1515
## Notes
1616

1717
<!-- Content_START -->
18+
# 2025-08-14
19+
20+
参加了王首豪老师的技术分享,内容很多正在慢慢消化
21+
22+
把defi-fixed-yield-course中剩下的两个合约看了一下,总结了作用
23+
24+
MockERC20.sol
25+
26+
模仿ERC20的mint
27+
28+
RewardToken.sol
29+
作用:允许指定的金库或账户 mint 奖励代币给用户。
30+
31+
主要功能:
32+
- 继承自 ERC20 标准和 Ownable,支持标准代币操作和权限管理。
33+
- 通过 isMinter 映射,合约拥有者可以授权或取消任意账户的铸币权限。
34+
- 只有被授权的 minter 或合约 owner 才能调用 mint 方法。
35+
1836
# 2025-08-13
1937

2038
nonReentrant关键字

0 commit comments

Comments
 (0)