assetToPay
is not linked to any nftID
, it means that at each minting of an EstateNFT
, assetToPay
will be updated with a possible different address
of token.
assetToPay
not being linked to any nftID
, it means that at each minting of an EstateNFT
, assetToPay
will be updated with a possible different address of token
.
But USDC
and DAI
are not exactly at the same price. Plus, there is no restriction to assetToPay
, it means it could be other than a stablecoin it will mess with previous values.\
==>For example :
(1) we execute createEstateNFT()
with _value = 100
& _asset = USDC
.
Then (2) we execute createEstateNFT()
with _value = 200 & _asset = WETH
.
Now (1) is not worth 100 USDC but 100 WETH.
Previous price values will be unaccurate, resulting in paying higher prices or lower prices with a different token that initially intended.
Manual review, Github.
assetToPay
should be linked to a specific nftID
and not global.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.