Lack of check for NFT price lastUpdateTimestamp
, it might cause calculation for collateral have a wrong result because of stale price
Collateral value of the user is determined from the price of RAACNFT.sol
. This value is obtained by calling the function getUserCollateralValue()
-> getNFTPrice()
.
Problem arise when reading the NFT price data, the main problem is that there is no check whether the price is the most updated price or a stale price because based on information from the protocol team, the NFT price will be updated at least 2-3 times a year.
In this way, the use of stale price can cause miscalculation for collateral value for user and can be detrimental to them (in worst case leading to the user being liquidated).
Miscalculation for collateral value for user
Manual Review
Consider add check for lastUpdateTimestamp
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.