@curvefi/api 2.53.10 → 2.53.12
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.
- package/lib/utils.js +3 -0
- package/package.json +1 -1
package/lib/utils.js
CHANGED
|
@@ -720,6 +720,9 @@ export var getGasPriceFromL2 = function () { return __awaiter(void 0, void 0, vo
|
|
|
720
720
|
return __generator(this, function (_a) {
|
|
721
721
|
switch (_a.label) {
|
|
722
722
|
case 0:
|
|
723
|
+
if (curve.chainId === 42161) {
|
|
724
|
+
return [2 /*return*/, 0.1 * 1e9]; // constant 0.1 gwei
|
|
725
|
+
}
|
|
723
726
|
if (!L2Networks.includes(curve.chainId)) return [3 /*break*/, 2];
|
|
724
727
|
return [4 /*yield*/, curve.contracts[curve.constants.ALIASES.gas_oracle].contract.gasPrice()];
|
|
725
728
|
case 1:
|