The InheritanceManager::buyOutEstateNFT
function performs division before multiplication when calculating finalAmount
. This leads to precision loss due to truncation in Solidity, as division operations discard fractional results. As a result, the calculated finalAmount
may be less than the intended value, leading to incorrect payments and potential loss of funds for beneficiaries.
Loss of funds as the beneficiaries will receive less than their fair share due to the truncation error.
Manual Review
Perform the multiplication first before division. This ensures that the intermediate result retains as much precision as possible before truncation occurs.
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.