@riocrypto/common-server 1.0.1160 → 1.0.1162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,6 +20,9 @@ const getProcessorFees = (processor, amountFiat, conversionRateFromUSD) => __awa
|
|
|
20
20
|
else if (processor === common_1.Processor.Kapstar) {
|
|
21
21
|
return amountFiat * 0.006;
|
|
22
22
|
}
|
|
23
|
+
else if (processor === common_1.Processor.Interbank) {
|
|
24
|
+
return amountFiat * 0.005;
|
|
25
|
+
}
|
|
23
26
|
else if (processor === common_1.Processor.SWIFT) {
|
|
24
27
|
return 25 * conversionRateFromUSD;
|
|
25
28
|
}
|
|
@@ -6,7 +6,7 @@ interface ChainedQuoteAttrs {
|
|
|
6
6
|
crypto: Crypto;
|
|
7
7
|
originFiat: Fiat;
|
|
8
8
|
destinationFiat: Fiat;
|
|
9
|
-
expiresAt
|
|
9
|
+
expiresAt?: Date;
|
|
10
10
|
originCountry: Country;
|
|
11
11
|
destinationCountry: Country;
|
|
12
12
|
originAmountFiat: number;
|
|
@@ -24,7 +24,7 @@ interface ChainedQuoteDoc extends Document {
|
|
|
24
24
|
crypto: Crypto;
|
|
25
25
|
originFiat: Fiat;
|
|
26
26
|
destinationFiat: Fiat;
|
|
27
|
-
expiresAt
|
|
27
|
+
expiresAt?: Date;
|
|
28
28
|
originCountry: Country;
|
|
29
29
|
destinationCountry: Country;
|
|
30
30
|
originAmountFiat: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1162",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1032",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^0.27.2",
|
|
32
32
|
"ccxt": "^3.0.30",
|