How to develop under Anyswap ERC20 standards
This article would help you develop and deploy your own tokens compatible with our bridge
Compaitibility requirements:
function mint(address to, uint256 amount) external onlyAuth returns (bool) {
_mint(to, amount);
return true;
}function burn(address from, uint256 amount) external onlyAuth returns (bool) {
require(from != address(0), "AnyswapV3ERC20: address(0x0)");
_burn(from, amount);
return true;
}address public immutable underlying;Development Methods
If your token is completely new/new on certain chains:
Commonly asked questions:
1. Which router address should I give minting right to?
2. Who do I set as owner for the token?
3. There are a lot of functions in AnyswapV6ERC20. Which ones can I safely remove?
4. What do I set as vault, underlying?
Last updated