The addLiquidity()
function does not implement any locking mechanisms or checks to prevent duplicate calls adding liquidity concurrently.
If two transactions both call addLiquidity() at the same time, both could succeed, effectively depositing the combined amounts rather than the intended individual amounts.
Reproduction Steps:
Have two unrelated accounts call addLiquidity() simultaneously
Verify liquidity totals include duplicate amounts
Actual liquidity levels may exceed recorded amounts
Manual Review
Actual liquidity levels may exceed recorded amounts
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.