TSwapPoolTokens:sellPoolTokens()
is called by user expecting protocol to give him weth by taking in his pool tokens i.e., he is trying to see pool tokens. instead, the sellPoolTokens
is calling swapExactOutput()
instead of swapExactInput
considering user is inputing exact input tokens he wants to sell.
Also, the function should have a slippage protection additionally to protect user's from MEV attacks or any inflationary/deflationary attacks to help user get the value what he's expecting to get.
Make below code changes in TSwapPool.sol
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.