Platform: Code4rena
Start Date: 24/03/2023
Pot Size: $49,200 USDC
Total HM: 20
Participants: 246
Period: 6 days
Judge: Picodes
Total Solo HM: 1
Id: 226
League: ETH
Rank: 202/246
Findings: 1
Award: $11.13
🌟 Selected for report: 0
🚀 Solo Findings: 0
11.1318 USDC - $11.13
In cases like:
a)After SafEth
is deployed and there is no derivative added yet
b)derivate weights set to 0, accidentally set or malicious owners
stakers would receive mintAmount
of 0 while spending at least minAmount
ETH. Stakers can not withdraw this amount of ETH
spec file
rule stakers_funds_locked() { env e; require derivativeCount() == 0 || totalWeight() == 0; require e.msg.sender != currentContract; require e.msg.value > 0; uint256 balance = balanceOf(e.msg.sender); stake(e); uint256 balanceAfter = balanceOf(e.msg.sender); assert balanceAfter == balance; }
Certora
Add require(mintAmount > 0);
#0 - c4-pre-sort
2023-04-03T14:22:08Z
0xSorryNotSorry marked the issue as low quality report
#1 - c4-pre-sort
2023-04-04T19:27:33Z
0xSorryNotSorry marked the issue as duplicate of #363
#2 - c4-judge
2023-04-21T16:32:05Z
Picodes marked the issue as satisfactory