This is a protocol template for an ERC20-pricing contract. Any custom-made pricing contract that intends to be protocol compliant must implement the IProtocolERC20Pricing interface, and follow the price format guideline.This template is available for developers to quickly get their pricing modules up and running.
To upgrade the pricing contracts, ensure your new pricing contract is deployed to the same network your Application Handler is deployed to. Next, you will call the appropriate function setERC20Pricing or setNFTPricing from the Application Handler contract.
Copy
Ask AI
function setERC20PricingAddress(address _address) external ruleAdministratorOnly(appManagerAddress)
Copy
Ask AI
function setNFTPricingAddress(address _address) external ruleAdministratorOnly(appManagerAddress)