Browse Source
Tolerates discrepancies in the swap amount crosschecks. To ensure we calculate the send/receive amounts correctly we apply a check, using amount inversion. The inversion is not exact up to +-1 due to used floor and ceil functions in the methods. They are not invertible, which is why we relax the check to off-by-ones.patch-4
bitromortac
4 years ago
1 changed files with 7 additions and 6 deletions
Loading…
Reference in new issue