It assumes the length of the reserves array is 2, but there is no checking for it.
If the array has a different size, it could cause unexpected behavior or errors.
It could cause unexpected behavior or errors.
Manual
Consider add the checking for the length of reserves.
or calculate the underlyingAmounts
from reserves length like this.
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.