Rounding errors can lead to wrong voting power #255
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
low quality report
This report is of especially low quality
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
The text was updated successfully, but these errors were encountered: