QA: ConstantProduct2::calcRate()
- it's not obvious to all users/callers that i
& j
represent a specific sequence.
It's important to make it clear that they represent not only a specific sequence, but represent two tokens to be swapped. Reserve token i
being swapped for reserve token j
, i.e. to calc their exchange rate before a swap.
Risk: It's easy enough to make the mistake to calculate exchage rate for a swap from i
to j
, but then swap from j
to i
, or vice versa.
Recommendation:
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.