PatrickAlphaC / hardhat-nft-fcc

100 stars 139 forks source link

Update DynamicSvgNft.sol #75

Closed kiraliwhite closed 1 year ago

kiraliwhite commented 1 year ago

Modify the price unit conversion (ether to wei) of the if condition in the tokenURI function.

Because the unit used for calculation in the if conditional is wei.

PatrickAlphaC commented 1 year ago

Ah, so we'd have to adjust some of the scripts as well for this!

But right now, it's assumed that you have the high price and the low price set to have 8 decimal places.