@riocrypto/common-server 1.0.1224 → 1.0.1226
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.
|
@@ -97,12 +97,7 @@ const getPlatformFees = (mongoose, conversionRateToUSD, amountFiat, fiat, proces
|
|
|
97
97
|
else {
|
|
98
98
|
volume = Number(amountUSD);
|
|
99
99
|
}
|
|
100
|
-
console.log("treywey");
|
|
101
|
-
console.log(country);
|
|
102
|
-
console.log(side);
|
|
103
|
-
console.log(volume);
|
|
104
100
|
for (const range of user.platformFeeRanges[country][side]) {
|
|
105
|
-
console.log(range);
|
|
106
101
|
if (range.min <= Number(volume) && range.max >= Number(volume)) {
|
|
107
102
|
if (discount) {
|
|
108
103
|
if (discount > range.fee) {
|
|
@@ -7,7 +7,7 @@ interface InternalSwapAttrs {
|
|
|
7
7
|
destinationCrypto: Crypto;
|
|
8
8
|
amount: number;
|
|
9
9
|
exchange?: "coinbase";
|
|
10
|
-
status: "created" | "processing" | "complete" | "failed";
|
|
10
|
+
status: "created" | "processing" | "fistLegComplete" | "complete" | "failed";
|
|
11
11
|
}
|
|
12
12
|
interface InternalSwapDoc extends Document {
|
|
13
13
|
createdAt: Date;
|
|
@@ -16,7 +16,7 @@ interface InternalSwapDoc extends Document {
|
|
|
16
16
|
destinationCrypto: Crypto;
|
|
17
17
|
amount: number;
|
|
18
18
|
exchange?: "coinbase";
|
|
19
|
-
status: "created" | "processing" | "complete" | "failed";
|
|
19
|
+
status: "created" | "processing" | "fistLegComplete" | "complete" | "failed";
|
|
20
20
|
}
|
|
21
21
|
interface InternalSwapModel extends Model<InternalSwapDoc> {
|
|
22
22
|
build(attrs: InternalSwapAttrs): InternalSwapDoc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1226",
|
|
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.1120",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^0.27.2",
|
|
32
32
|
"ccxt": "^3.0.30",
|