Skip to content

Commit

Permalink
Merge pull request #35 from curvefi/feat/add-optimism-and-fraxtal-net…
Browse files Browse the repository at this point in the history
…works

fix: fix fraxtal network init
  • Loading branch information
fedorovdg authored Sep 19, 2024
2 parents 7267f82 + e387ed0 commit 1d126ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/constants/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ export const COINS_ZKSYNC = lowerCaseValues({});
export const COINS_BASE = lowerCaseValues({});

export const COINS_BSC = lowerCaseValues({});

export const COINS_FRAXTAL = lowerCaseValues({});
7 changes: 7 additions & 0 deletions src/lending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
ALIASES_ZKSYNC,
ALIASES_BASE,
ALIASES_BSC,
ALIASES_FRAXTAL,
} from "./constants/aliases.js";
import {
COINS_ETHEREUM,
Expand All @@ -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";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1d126ca

Please sign in to comment.