Skip to content

Commit

Permalink
Merge pull request #224 from curvefi/fix/fixed-bsc-network-api
Browse files Browse the repository at this point in the history
fix: fixed getUSDRate for bsc network
  • Loading branch information
fedorovdg authored Nov 9, 2023
2 parents f1758cb + b6db8fe commit 87fe07d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/api",
"version": "2.50.9",
"version": "2.50.10",
"description": "JavaScript library for curve.fi",
"main": "lib/index.js",
"author": "Macket",
Expand Down
10 changes: 5 additions & 5 deletions src/constants/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ export const ALIASES_BASE = lowerCaseValues({

export const ALIASES_BSC = lowerCaseValues({
"crv": "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415", // <--- TODO CHANGE
"gauge_factory": "0x0000000000000000000000000000000000000000", // <-- TODO CHANGE
"gauge_factory": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
"voting_escrow": "0x0000000000000000000000000000000000000000", // <-- TODO CHANGE
"fee_distributor": "0x0000000000000000000000000000000000000000", // <-- TODO CHANGE
"gauge_controller": "0x0000000000000000000000000000000000000000", // <--- TODO CHANGE
"address_provider": "0x0000000000000000000000000000000000000000", // <--- TODO CHANGE
"router": "0x0000000000000000000000000000000000000000", // <--- TODO CHANGE
"deposit_and_stake": "0x0000000000000000000000000000000000000000", // <--- TODO CHANGE
"stable_calc": "0x0000000000000000000000000000000000000000", // <--- TODO CHANGE
"crypto_calc": '0x0000000000000000000000000000000000000000', // <--- TODO CHANGE
"router": "0x69522fb5337663d3B4dFB0030b881c1A750Adb4f",
"deposit_and_stake": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
"stable_calc": "0x0fE38dCC905eC14F6099a83Ac5C93BF2601300CF",
"crypto_calc": '0xd6681e74eEA20d196c15038C580f721EF2aB6320',
"factory": '0xEfDE221f306152971D8e9f181bFe998447975810',
"crvusd_factory": '0x0000000000000000000000000000000000000000',
"eywa_factory": '0x0000000000000000000000000000000000000000',
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export const _getUsdRate = async (assetId: string): Promise<number> => {
let chainName = {
1: 'ethereum',
10: 'optimistic-ethereum',
56: "bsc",
56: "binance-smart-chain",
100: 'xdai',
137: 'polygon-pos',
250: 'fantom',
Expand Down

0 comments on commit 87fe07d

Please sign in to comment.