Sync BEP2 and NRC20 Token Supply
Prerequisite
This NRC20 token is mirrored to a BEP2 token.
Motivation
For a NRC20 token which has been mirrored to BC, anyone can call the sync method to balance the total supply on BC and NC. Thus, the total supply among two Blockchains will remain the same.
What happens under the hood
- Verify there is already mirrored
- Check the total supply and token symbol is valid
- Send a cross-chain package to modify a BEP2 token total supply on NexDAX Chain
After syncing, the total supply on BC and NC are the same.
Fee Table
| Fee Name | Pay in NT |
|---|---|
| syncFee | it's 0.002NT on mainnet now |
| relayFee | it's 0.002NT on mainnet now |
Both syncFee and relayFee can be changed by on-chain governance
To query syncFee from system contract;
Fee= result/1e18
To query relayFee from system contract;
Fee= result/1e18
Mirror With MyEtherWallet
- Call
TokenmanagerContract
Use the latest ABI
- Select
syncfunction and fill-in with your NRC20 address
The value here should be no less than syncFee+ relayFee.
Time stamp should be greater than unix_timestamp(now()). The difference should be between 120 and 86400. It's recommended to use unix_timestamp(now())+1000
All set!