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 Sep 17, 2023. It is now read-only.
sherlock-admin opened this issue
Mar 13, 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
When a vault burn exceeds the currentMinted amount, the currentMinted will not be subtracted, resulting in that although the token is burned, the vault limit still has a non-zero value instead of returning to zero.
The TAU token will burn exceeds the currentMinted amount if a keeper calls SwapHandler.swapForTau().
The currentMinted[vault] still has a non-zero value instead of returning to zero.
Impact
The currentMinted[vault] still has a non-zero value, the mint quota of the vault will become less.
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
GimelSec
medium
currentMinted
doesn't return to zero.Summary
When a vault burn exceeds the
currentMinted
amount, thecurrentMinted
will not be subtracted, resulting in that although the token is burned, the vault limit still has a non-zero value instead of returning to zero.Vulnerability Detail
The
_decreaseCurrentMinted()
:The TAU token will burn exceeds the
currentMinted
amount if a keeper callsSwapHandler.swapForTau()
.The
currentMinted[vault]
still has a non-zero value instead of returning to zero.Impact
The
currentMinted[vault]
still has a non-zero value, the mint quota of the vault will become less.Code Snippet
https://github.com/sherlock-audit/2023-03-taurus/blob/main/taurus-contracts/contracts/TAU.sol#L76-L83
Tool used
Manual Review
Recommendation
Duplicate of #149
The text was updated successfully, but these errors were encountered: