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` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
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` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
cccz
medium
When finalTVL == 0, the emissionsToken in the vault will be locked
Summary
When finalTVL == 0, the emissionsToken in the vault cannot be claimed and will be locked in the contract
Vulnerability Detail
When the vault is created, emissionsTokens are sent to the vault, and when the epoch ends, users can claim these emissionsTokens.
However, if the finalTVL is 0, then these emissionsTokens will not be claimed and will be locked in the contract
Impact
If the finalTVL is 0, then these emissionsTokens will not be claimed and will be locked in the contract
Code Snippet
https://github.com/sherlock-audit/2023-03-Y2K/blob/main/Earthquake/src/v2/Carousel/CarouselFactory.sol#L148-L152
https://github.com/sherlock-audit/2023-03-Y2K/blob/main/Earthquake/src/v2/Carousel/Carousel.sol#L630-L636
Tool used
Manual Review
Recommendation
Consider transferring the emissionsToken out of the contract when finalTVL == 0 in resolveEpoch
Duplicate of #122
The text was updated successfully, but these errors were encountered: