Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 867 Bytes

Funds can be lost.md

File metadata and controls

25 lines (21 loc) · 867 Bytes

The sweepTimelockBalances function accepts a list of users with unlocked balances to distribute.

However, if there are duplicate users in the list, their balances will be counted multiple times when calculating the total amount to withdraw from the yield service.

Recommendation:

Consider checking for duplicate users when calculating the amount to withdraw.


Slide Screenshot

200.jpg


Slide Text

  • OpenZeppelin Audit PoolTogether V3 Finding C01
  • Data Validation
  • sweepTimelockBalances()
  • Duplicate Users -> Funds Lost
  • Check Duplicate Users

References


Tags