The deposit()
function performs incorrect validation between minShares
and actual shares due to potential decimal mismatch.
The deposit()
function accepts minShares
parameter in 18 decimals but compares it directly with shares that may have different decimals based on the vault's index token:
As a result, the validation wouldn't work as intended if the vault's index token has a different decimal precision than 18.
Users may experience failed transactions or receive fewer shares than expected due to incorrect decimal comparison between minShares
and actual shares.
Convert both minShares
and ctx.shares
to the same decimal format before performing the comparison.
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.