From 2f391646f759e9861b65fe83552d1d7ecb1556d7 Mon Sep 17 00:00:00 2001 From: fedorovdg Date: Fri, 20 Sep 2024 00:11:02 +0300 Subject: [PATCH 1/2] fix: fix fraxtal network init --- src/constants/coins.ts | 2 ++ src/lending.ts | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/src/constants/coins.ts b/src/constants/coins.ts index 7f4033d..ad0dea5 100644 --- a/src/constants/coins.ts +++ b/src/constants/coins.ts @@ -31,3 +31,5 @@ export const COINS_ZKSYNC = lowerCaseValues({}); export const COINS_BASE = lowerCaseValues({}); export const COINS_BSC = lowerCaseValues({}); + +export const COINS_FRAXTAL = lowerCaseValues({}); diff --git a/src/lending.ts b/src/lending.ts index ca21645..82e2687 100644 --- a/src/lending.ts +++ b/src/lending.ts @@ -32,6 +32,7 @@ import { ALIASES_ZKSYNC, ALIASES_BASE, ALIASES_BSC, + ALIASES_FRAXTAL, } from "./constants/aliases.js"; import { COINS_ETHEREUM, @@ -48,6 +49,7 @@ import { COINS_ZKSYNC, COINS_BASE, COINS_BSC, + COINS_FRAXTAL, } from "./constants/coins.js"; import {L2Networks} from "./constants/L2Networks"; import { createCall, handleMultiCallResponse} from "./utils.js"; @@ -85,6 +87,11 @@ export const NETWORK_CONSTANTS: { [index: number]: any } = { ALIASES: ALIASES_FANTOM, COINS: COINS_FANTOM, }, + 252: { + NAME: 'fraxtal', + ALIASES: ALIASES_FRAXTAL, + COINS: COINS_FRAXTAL, + }, 324: { NAME: 'zksync', ALIASES: ALIASES_ZKSYNC, From e387ed02270919dc8391e341fda243aa5cf2bac1 Mon Sep 17 00:00:00 2001 From: fedorovdg Date: Fri, 20 Sep 2024 00:14:07 +0300 Subject: [PATCH 2/2] build: v2.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7dc385c..978d159 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@curvefi/lending-api", - "version": "2.2.0", + "version": "2.2.1", "description": "JavaScript library for Curve Lending", "main": "lib/index.js", "author": "Macket",