The function is used to tokenize real estate assets. If the owner wants tokenize more than a single real estate but list it in different tokens the second one will override the previous assetToPay
value.
Likelihood: Medium. Requires the owner to create multiple NFTs with different assets, a plausible but not default scenario.
It is possible to list a real estate for 100 ETH, then involuntarily list another real estate for 200,000 USDC. This will override the previous NFT asset leading to a price of 100e12 USDC - which is infeasible.
Another scenario is when tokens have the same decimals. Again if we list for 100 ETH, but afterwards list another for 2,000,000 BNB. This means that the first property can be bought for 100 BNB which is a lot underpriced.
This test shows that it will revert because we successfully bought the NFT.
High. The incorrect type of asset can be distributed to beneficiaries, which can have huge difference in terms of USD price.
Manual Review
In the nftValue
mapping, store a struct as the value which holds the value and the asset.
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.