Mainnet
Before real users begin to transact with actual funds on your dApp, it is important to take into account certain factors when launching it on Mainnet.
Here is an overview of some of the key factors to consider.
An Anryton validator, Stakely.io, runs a faucet for builders to request dust.
Deployment
You can deploy your contracts on Mainnet using the JSON-RPC.
Before you do so, have a look at the following considerations.
Security
Comprehensive tests should ensure all functions, error handling, and edge cases are covered.
Whenever possible, perform a comprehensive security audit of the smart contract code to identify and eliminate any potential vulnerabilities or weaknesses. This is especially vital for the mainnet, as the code will be accessible to everyone and any security flaws could result in substantial losses. Learn about the common vulnerabilities and contract security practices. External auditors can also help optimize your contract's performance.
Ensure proper management of contract ownership and consider implementing a multi-sig mechanism for increased security. This will allow you to maintain deployment ownership within your team instead of one specific owner that might leave the team.
Last but not least, verify that any external libraries or dependencies used by the contract are up-to-date and secure.
Contract upgradeability
Consider the possibility of upgrading the contract in the future and implement upgrade mechanisms if needed. This will enable you to make changes to the contract without having to redeploy it, creating a new contract.
Costs
Evaluate the gas costs associated with deploying and executing the smart contract, including the cost of deploying the contract and executing its functions are sufficient or efficient for end users.
Contract documentation
Provide clear and comprehensive documentation for the contract, including its purpose, functions, and potential risks. This will assist users in understanding how to use the contract and make it easier for other developers to review and contribute to the code.
Token Registration
Anryton allows for ERC-20 tokens to be used cross-chain. Once some of your tokens have been minted, you can register a token pair through governance, which will allow users to send your tokens across chains. Head over to our Academy to learn how to register your ERC-20 token.