When minting a new RAACNFT, the amount of stable token (USDC) is compared with USD. This comparison can lead to incorrect pricing if the stablecoin depegs.
When mint token the specific token price is fetched from racc_hp.
From the comment we can see the return vaule is in USD.
And from mint function:
The amount is in stable token eg:USDC.
if the stablecoin depegs above comparation can lead to price error , minter use less or more assets than expected.
price error when stablecoin depegs
Eye
should convet stablecoin to USD before compare those two amount
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.