DittoETH

Ditto
DeFiFoundryOracle
55,000 USDC
View results
Submission Details
Severity: medium
Invalid

The user cannot specify the minimum amount to receive eth

Summary

The user cannot control the amount of ethers he will receive. He may get less due to slashing

Vulnerability Details

During the slashing period, the amount of ether is reduced in the contract balance and the user will receive less ether than ,if he call function during a non-slashing period. If the user knew about this, he might have called the function later, when there would have been enough ether - so as not to lose funds. During the slashing period, the amount of ether is calculated proportionally. If later there is more ether again, the user will not be able to take back the lost portion

Impact

The user cannot control the amount of ethers he will receive. He may get less due to slashing

Tools Used

Manual review

Recommendations

Add new parameter minAmountOut in function withdraw()

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.