Submitted by adeolu
https://github.com/code-423n4/2023-06-lybra/blob/7b73ef2fbb542b569e182d9abf79be643ca883ee/contracts/lybra/pools/base/LybraEUSDVaultBase.sol#L124 https://github.com/code-423n4/2023-06-lybra/blob/7b73ef2fbb542b569e182d9abf79be643ca883ee/contracts/lybra/pools/base/LybraEUSDVaultBase.sol#L126
The mint functions in LybraEUSDVaultBase have no checks for when the supplied amount to mint is more than 10% if circulation reaches 10,000,000, as specified in the comments explaining the logic of the function.
Lets have a look at mint() code in the LybraEUSDVaultBase contract:
From the code above, we can see there is no check prevent mint amount from being greater than 10% of 10,000,000 or more if the poolTotalEUSDCirculation is 10,000,000 or more as specified in the comments.
VS CODE
Add checks to the mint() to revert if mint amount is greater than 10% of the total supply, if total supply is >= 10,000,000.
Error
LybraFinance acknowledged
0xean (judge) decreased severity to Medium and commented:
