Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: high
Valid

Incorrect amount send to beneficiaries when buyOutEstateNFT is called

Vulnerability Details

  • The Vulnerability is in this line.

  • To calculate the amount, that we need to send to other beneficiaries, we divide finalAmount by divisor. This is incorrect we have to divide finalAmount by multiplier instead.

Impact

Beneficiaries will get less amount than the amuont they deserve and part of the finalAmount which was not to them will be stuck in the contract.

Tools Used

Manual Review

Recommendations

--- IERC20(assetToPay).safeTransfer(beneficiaries[i], finalAmount / divisor);
+++ IERC20(assetToPay).safeTransfer(beneficiaries[i], finalAmount / multiplier);
Updates

Lead Judging Commences

0xtimefliez Lead Judge 5 months ago
Submission Judgement Published
Validated
Assigned finding tags:

buyOutNFT has wrong denominator

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.