Reputation: 188
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?
Upvotes: 0
Views: 103
Reputation: 49182
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.
Upvotes: 1