We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c141951 commit 825a0dbCopy full SHA for 825a0db
contracts/libraries/Quotes.sol
@@ -57,11 +57,9 @@ library Quotes {
57
agreedAmount = quote.value + quote.callFee + quote.productFeeAmount + quote.gasFee;
58
59
60
- uint delta = agreedAmount / 10000;
61
- // transferred amount should not be lower than (agreed amount - delta),
62
- // where delta is intended to tackle rounding problems
63
- if (agreedAmount - delta > transferredAmount) {
64
- revert AmountTooLow(transferredAmount, agreedAmount - delta);
+ // transferred amount should not be lower than agreed amount
+ if (agreedAmount > transferredAmount) {
+ revert AmountTooLow(transferredAmount, agreedAmount);
65
}
66
67
0 commit comments