WJU 包装代币
合约实现
基本信息
contract WJU is IWJU {
string public constant override name = "Wrapped JU";
string public constant override symbol = "WJU";
uint8 public constant override decimals = 18;
uint public override totalSupply;
mapping(address => uint) public override balanceOf;
mapping(address => mapping(address => uint)) public override allowance;
}核心功能
包装功能(Deposit)
解包装功能(Withdraw)
ERC-20标准实现
转账功能
授权转账功能
授权功能
事件系统
Deposit事件
Withdrawal事件
ERC-20标准事件
在JAMM DEX中的应用
Router集成
JU代币交易
流动性管理
使用示例
基本包装/解包装
查询余额
监听事件
安全考虑
合约安全
使用安全
Last updated