Search code examples
ethereumblockchainsoliditysmartcontractsether

ERC721 Contract: 1 ether = 1 token for network deployed on?


I am new to Solidity and looking over an ERC721 NFT contract.

I see in the code they set variables of prices to things like uint256 public MINT_PRICE = 1.5 ether;.

Does this mean that the price would be 1.5 of AVAX if were deploying this contract onto the Avalanche network whose base token is AVAX?


Solution

  • calculations are done in the base units for a token.

       uint256 public MINT_PRICE = 1.5 avax;
    

    People uses "ether" for placeholder

    Note that gas fees are always paid in "ether" if your contract is on ethereum.