@riocrypto/common-server 1.0.2662 → 1.0.2664
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,10 @@ 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
|
+
gasPrice: "15000",
|
|
24
|
+
gasLimit: "100000",
|
|
25
|
+
};
|
|
23
26
|
const POLYGON_ASSETS = [
|
|
24
27
|
common_1.Crypto.USDCPolygon,
|
|
25
28
|
common_1.Crypto.USDTPolygon,
|
|
@@ -161,7 +164,12 @@ class FireblocksClient {
|
|
|
161
164
|
id: destination.fireblocksWalletId
|
|
162
165
|
? destination.fireblocksWalletId
|
|
163
166
|
: undefined,
|
|
164
|
-
}, amount: amountCrypto, operation: fireblocks_sdk_1.TransactionOperation.TRANSFER, note: notes }, (isPolygonAsset(crypto)
|
|
167
|
+
}, amount: amountCrypto, operation: fireblocks_sdk_1.TransactionOperation.TRANSFER, note: notes }, (isPolygonAsset(crypto)
|
|
168
|
+
? {
|
|
169
|
+
gasPrice: POLYGON_FEE_CONFIG.gasPrice,
|
|
170
|
+
gasLimit: POLYGON_FEE_CONFIG.gasLimit,
|
|
171
|
+
}
|
|
172
|
+
: {})));
|
|
165
173
|
return response.id;
|
|
166
174
|
});
|
|
167
175
|
}
|
|
@@ -396,7 +404,12 @@ class FireblocksClient {
|
|
|
396
404
|
oneTimeAddress: {
|
|
397
405
|
address: destinationAddress,
|
|
398
406
|
},
|
|
399
|
-
}, amount: amountCrypto, operation: fireblocks_sdk_1.TransactionOperation.TRANSFER, externalTxId: rioId, note: notes }, (isPolygonAsset(crypto)
|
|
407
|
+
}, amount: amountCrypto, operation: fireblocks_sdk_1.TransactionOperation.TRANSFER, externalTxId: rioId, note: notes }, (isPolygonAsset(crypto)
|
|
408
|
+
? {
|
|
409
|
+
gasPrice: POLYGON_FEE_CONFIG.gasPrice,
|
|
410
|
+
gasLimit: POLYGON_FEE_CONFIG.gasLimit,
|
|
411
|
+
}
|
|
412
|
+
: {})));
|
|
400
413
|
return response.id;
|
|
401
414
|
});
|
|
402
415
|
}
|