No slippage protection as amountOutMinimum
hardcoded to 0 and deadline
is hardcoded to block.timestamp
when the deadline
is hardcoded to block.timestamp
that means whenever the validator decides to include the txn in a block, it will be valid at that time, since block.timestamp will be the current timestamp.a malicious validator can hold the transaction and there is no slippage control because amountOutMinimum
hardcoded to 0 , caller may receive very suboptimal amount
No slippage protection and ineffective deadline check
VsCode
https://code4rena.com/reports/2022-11-paraspace#m-13-interactions-with-amms-do-not-use-deadlines-for-operations
Add amountOutMinimum
and deadline
as params to the sellProfits() function
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.