LP 代币机制
概述
JAMMERC20合约实现
基本信息
// from JAMMERC20.sol
contract JAMMERC20 is IJAMMERC20 {
string public constant name = "JAMM LPs";
string public constant symbol = "JAMM-LP";
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
mapping(address => mapping(address => uint)) public allowance;
// ...
}EIP-2612 Permit支持
LP代币的生命周期
铸造(Mint)
销毁(Burn)
最小流动性机制
永久锁定
Permit功能详解
签名授权的优势
在Router中的应用
使用示例
查询LP代币信息
使用Permit移除流动性
Last updated