简体   繁体   English

ERC721 合约:1 个以太币 = 1 个用于部署网络的代币?

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

I am new to Solidity and looking over an ERC721 NFT contract.我是 Solidity 的新手,正在查看 ERC721 NFT 合约。

I see in the code they set variables of prices to things like uint256 public MINT_PRICE = 1.5 ether;我在代码中看到他们将价格变量设置为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?这是否意味着如果将此合约部署到基础代币为 AVAX 的 Avalanche 网络上,价格将是 AVAX 的 1.5?

Thanks!谢谢!

calculations are done in the base units for a token.计算是在令牌的基本单位中完成的。

   uint256 public MINT_PRICE = 1.5 avax;

People uses "ether" for placeholder人们使用“ether”作为占位符

Note that gas fees are always paid in "ether" if your contract is on ethereum.请注意,如果您的合约是在以太坊上的,那么汽油费总是以“以太”支付。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM