Below code is added in mint()
function inside PerpetualVault.sol
contract which might not work properly as it will mint more than required shares.
If amount is 10, totalShares is 100 and TotalAmountBefore is 1 then shares which will be minted will be 1000 (amount * totalshares)
More than required shares will be provided
Manual review
Update to this code
No proof when this can happen: Most of the time totalAmountBefore equals 0 (balance minus amount sent), it means totalShares equals 0. If it could happen with very specific conditions, report with that tag didn't add the needed details to be validated.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.