Description: In the liquidity_operations::provide_liquidity
function, only the amount of token A is specified, and token B amount is calculated based on the current ratio. This can lead to unexpected slippage if the pool ratio changes between transaction submission and execution.
Impact: Users might provide more token B than expected, leading to financial losses.
Recommended Mitigation: Add a maximum token B parameter to the provide_liquidity
function to protect users from unexpected price movements:
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.