How to Change Price and Supply in the Collection Smart Contract on Polygon
In order to modify various parameters of your smart contract, including the base cost, max supply, and price range, follow these steps:
Accessing Your Smart Contract
Navigate to your smart contract on polygonscan.com. You can do this by clicking on the contract address provided on your collection homepage.
Select the "Contract" tab and then click on "Write as Proxy".
Connect your wallet. Note that your wallet must have been added as a manager wallet by Mintmade's team for you to be able to make changes.
Setting the Base Cost
The base cost is the initial price of every NFT.
Click on "14. setBaseCost".
Enter the desired amount in the field. Note that the amount is in
uint256
format and is denoted in the native currency (MATIC). So, to set the price to 100 MATIC per NFT, you would need to enter "100000000000000000000" (essentially adding 18 additional zeros after the desired amount).Click "Write".
Verify the transaction in your wallet.
Once the transaction is complete, check the website to ensure everything is correct.
Setting the Max Supply
The max supply is the number of copies (editions) available for each article.
Click on "16.setMaxSupply".
Enter the desired amount.
Click "Write".
Verify the transaction in your wallet.
Once the transaction is complete, check the website to confirm everything is correct.
Setting the Price Range
The price range is the scale at which each subsequent copy of the article will be more expensive than the previous one.
Click on "17.setPriceRange".
Write a string in the following format:
[100,200,400]
. Each number represents the percentage of the base cost. For example, if the base price is 100 MATIC and the supply is 3 copies, then the first copy will cost 100 MATIC, the second will cost 200 MATIC, and the third will cost 400 MATIC.Click "Write".
Verify the transaction in your wallet.
Once the transaction is complete, check the website to make sure everything is correct.
Remember, if you have any questions or encounter any difficulties, you can reach out to Mintmade's support at hello@mintmade.io.
Last updated