@riocrypto/common-server 1.0.2662 → 1.0.2663
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.
|
@@ -19,7 +19,11 @@ const secret_manager_client_1 = require("./secret-manager-client");
|
|
|
19
19
|
const node_cache_1 = __importDefault(require("node-cache"));
|
|
20
20
|
const cache = new node_cache_1.default({ stdTTL: 60 });
|
|
21
21
|
const cache2 = new node_cache_1.default({ stdTTL: 10000 });
|
|
22
|
-
const
|
|
22
|
+
const POLYGON_FEE_CONFIG = {
|
|
23
|
+
maxFee: "4",
|
|
24
|
+
priorityFee: "50",
|
|
25
|
+
gasLimit: "100000",
|
|
26
|
+
};
|
|
23
27
|
const POLYGON_ASSETS = [
|
|
24
28
|
common_1.Crypto.USDCPolygon,
|
|
25
29
|
common_1.Crypto.USDTPolygon,
|
|
@@ -161,7 +165,13 @@ class FireblocksClient {
|
|
|
161
165
|
id: destination.fireblocksWalletId
|
|
162
166
|
? destination.fireblocksWalletId
|
|
163
167
|
: undefined,
|
|
164
|
-
}, amount: amountCrypto, operation: fireblocks_sdk_1.TransactionOperation.TRANSFER, note: notes }, (isPolygonAsset(crypto)
|
|
168
|
+
}, amount: amountCrypto, operation: fireblocks_sdk_1.TransactionOperation.TRANSFER, note: notes }, (isPolygonAsset(crypto)
|
|
169
|
+
? {
|
|
170
|
+
maxFee: POLYGON_FEE_CONFIG.maxFee,
|
|
171
|
+
priorityFee: POLYGON_FEE_CONFIG.priorityFee,
|
|
172
|
+
gasLimit: POLYGON_FEE_CONFIG.gasLimit,
|
|
173
|
+
}
|
|
174
|
+
: {})));
|
|
165
175
|
return response.id;
|
|
166
176
|
});
|
|
167
177
|
}
|
|
@@ -396,7 +406,13 @@ class FireblocksClient {
|
|
|
396
406
|
oneTimeAddress: {
|
|
397
407
|
address: destinationAddress,
|
|
398
408
|
},
|
|
399
|
-
}, amount: amountCrypto, operation: fireblocks_sdk_1.TransactionOperation.TRANSFER, externalTxId: rioId, note: notes }, (isPolygonAsset(crypto)
|
|
409
|
+
}, amount: amountCrypto, operation: fireblocks_sdk_1.TransactionOperation.TRANSFER, externalTxId: rioId, note: notes }, (isPolygonAsset(crypto)
|
|
410
|
+
? {
|
|
411
|
+
maxFee: POLYGON_FEE_CONFIG.maxFee,
|
|
412
|
+
priorityFee: POLYGON_FEE_CONFIG.priorityFee,
|
|
413
|
+
gasLimit: POLYGON_FEE_CONFIG.gasLimit,
|
|
414
|
+
}
|
|
415
|
+
: {})));
|
|
400
416
|
return response.id;
|
|
401
417
|
});
|
|
402
418
|
}
|