Platform: Code4rena
Start Date: 09/12/2022
Pot Size: $36,500 USDC
Total HM: 9
Participants: 69
Period: 3 days
Judge: Picodes
Total Solo HM: 2
Id: 190
League: ETH
Rank: 35/69
Findings: 1
Award: $210.78
🌟 Selected for report: 0
🚀 Solo Findings: 0
210.7761 USDC - $210.78
when periods use code is vulnarable to withdraw which exceed limit amount.
in withdrawHook there is no requirement for exceed user or global limit just record how much money withdrawed by this way anybody who want to withdraw when global and user limit has finished.When they started a new time period they dont face to any limit about withdraw amount. https://github.com/merteren1234/prepo-typescript-test this is the test which I use. and in the below it shows it is correct.
In 59-62 and 66-69 lines in github line which ı mentioned to affected code, should be insert requirement like require(_amountBeforeFee<globalWithdrawLimitPerPeriod) and require(_amountBeforeFee<userWithdrawLimitPerPeriod)
#0 - hansfriese
2022-12-13T15:25:34Z
duplicate of #310
#1 - Picodes
2022-12-13T19:09:43Z
Your finding is great, but:
#2 - c4-judge
2022-12-13T19:09:53Z
Picodes marked the issue as duplicate of #310
#3 - c4-judge
2023-01-01T17:19:39Z
Picodes marked the issue as satisfactory