Closed code423n4 closed 1 year ago
https://github.com/PartyDAO/party-contracts-c4/blob/3896577b8f0fa16cba129dc2867aba786b730c1b/contracts/crowdfund/Crowdfund.sol#L370-L375
The calculation of voting power in Crowdfund._getFinalContribution() can lead to loss of voting power due to rounding errors.
Crowdfund._getFinalContribution()
Manual audit
Duplicate of #114
Lines of code
https://github.com/PartyDAO/party-contracts-c4/blob/3896577b8f0fa16cba129dc2867aba786b730c1b/contracts/crowdfund/Crowdfund.sol#L370-L375
Vulnerability details
Impact
The calculation of voting power in
Crowdfund._getFinalContribution()
can lead to loss of voting power due to rounding errors.Tools Used
Manual audit