You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.
sherlock-admin opened this issue
Mar 27, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
Rollover users are being minted previous epoch amounts instead of entitled share amount.
Summary
When premium vault users who have won the epoch and also chose to roll over into the next epoch will loose their profit, as during mintRollover() call, their asset amount is being rollover to the next epoch instead of entitled shares.
Moreover, these users won't be able to call withdraw function as their assets are burnt during mintRollover() call.
Resulting in a loss of their profit
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
warRoom
high
Rollover users are being minted previous epoch amounts instead of entitled share amount.
Summary
When premium vault users who have won the epoch and also chose to roll over into the next epoch will loose their profit, as during mintRollover() call, their asset amount is being rollover to the next epoch instead of entitled shares.
Moreover, these users won't be able to call withdraw function as their assets are burnt during mintRollover() call.
Resulting in a loss of their profit
Vulnerability Detail
Where : In Carousel.sol- function mintRollover()
When : During mintRollover() execution.
Description :
POC
Impact
Code Snippet
https://github.com/sherlock-audit/2023-03-Y2K/blob/main/Earthquake/src/v2/Carousel/Carousel.sol#L395-L445
Tool used
Manual Review
Recommendation
Mint the (entiltledShares-relayerFee) for the next epoch in mintRollover() function.
Duplicate of #163
The text was updated successfully, but these errors were encountered: