Comparing version 1.9.0 to 1.9.1
# Versions | ||
## 1.9.0 | ||
## 1.9.1 | ||
@@ -5,0 +5,0 @@ - `hopsFromChannels`, `routeFromChannels`, `routeFromHops`: Add support for |
@@ -31,3 +31,3 @@ { | ||
}, | ||
"version": "1.9.0" | ||
"version": "1.9.1" | ||
} |
@@ -51,7 +51,7 @@ const none = '0'; | ||
// Exit early when the discount drowns out the fee | ||
if (-discount > fee) { | ||
if (discount > fee) { | ||
return {fee_mtokens: none}; | ||
} | ||
return {fee_mtokens: (fee + discount).toString()}; | ||
return {fee_mtokens: (fee - discount).toString()}; | ||
}; |
@@ -39,4 +39,4 @@ const strictSame = require('node:assert').strict.deepStrictEqual; | ||
fee_rate: 1, | ||
inbound_base_discount_mtokens: '-1', | ||
inbound_rate_discount: -1, | ||
inbound_base_discount_mtokens: '1', | ||
inbound_rate_discount: 1, | ||
}, | ||
@@ -53,4 +53,4 @@ }, | ||
fee_rate: 1, | ||
inbound_base_discount_mtokens: '-10', | ||
inbound_rate_discount: -1, | ||
inbound_base_discount_mtokens: '10', | ||
inbound_rate_discount: 1, | ||
}, | ||
@@ -57,0 +57,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104337