9

如何实现模拟交易 以达到防止貔貅代币的功能 | 登链社区 | 技术问答

 2 years ago
source link: https://learnblockchain.cn/question/2936
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

如何实现模拟交易 以达到防止貔貅代币的功能

3 如何实现模拟交易 以达到防止貔貅代币的功能

回答问题即可获得 5 贡献值,回答被采纳后即可获得 8 学分。

image.png

_path[0]一定是WETH
filpPath为反转_path的功能,相当于卖出的path

第二版实现,考虑到balanceOf可能会拿到0,所以第二版实现
image.png

附上: 翻转path方法
image.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK