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

  1. Navigate to your smart contract on polygonscan.com. You can do this by clicking on the contract address provided on your collection homepage.

  2. Select the "Contract" tab and then click on "Write as Proxy".

  3. 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.

  1. Click on "14. setBaseCost".

  2. 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).

  3. Click "Write".

  4. Verify the transaction in your wallet.

  5. 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.

  1. Click on "16.setMaxSupply".

  2. Enter the desired amount.

  3. Click "Write".

  4. Verify the transaction in your wallet.

  5. 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.

  1. Click on "17.setPriceRange".

  2. 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.

  3. Click "Write".

  4. Verify the transaction in your wallet.

  5. 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