@gearbox-protocol/sdk 10.2.5 → 10.2.6
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.
|
@@ -72,7 +72,7 @@ const CHARTS_BACKEND_ADDRESSES = {
|
|
|
72
72
|
[TESTNET_CHAINS.Optimism]: "https://opttest.gearbox.foundation"
|
|
73
73
|
// !& new chains
|
|
74
74
|
};
|
|
75
|
-
const STATIC_TOKEN = "https://static.gearbox.
|
|
75
|
+
const STATIC_TOKEN = "https://static.gearbox.finance/tokens/";
|
|
76
76
|
const LEADERBOARD_APIS = {
|
|
77
77
|
...Object.values(import_chain.chains).reduce((acc, chain) => {
|
|
78
78
|
acc[chain.id] = "https://gpointbot.fly.dev";
|
|
@@ -102,11 +102,11 @@ class GearboxBackendApi {
|
|
|
102
102
|
static getStaticTokenUrl = () => STATIC_TOKEN;
|
|
103
103
|
static getRewardsMerkleUrl = (network, root, account) => {
|
|
104
104
|
const path = `${network}_${root.slice(2)}/${account.slice(2, 4)}`;
|
|
105
|
-
const url = `https://am.gearbox.
|
|
105
|
+
const url = `https://am.gearbox.finance/${path.toLowerCase()}.json`;
|
|
106
106
|
return url;
|
|
107
107
|
};
|
|
108
108
|
static getNFTMerkleUrl = (network, root) => {
|
|
109
|
-
const url = `https://dm.gearbox.
|
|
109
|
+
const url = `https://dm.gearbox.finance/${network.toLowerCase()}_${root}.json`;
|
|
110
110
|
return url;
|
|
111
111
|
};
|
|
112
112
|
static getLeaderboardUrl = (url, chainId) => {
|
|
@@ -43,7 +43,7 @@ const CHARTS_BACKEND_ADDRESSES = {
|
|
|
43
43
|
[TESTNET_CHAINS.Optimism]: "https://opttest.gearbox.foundation"
|
|
44
44
|
// !& new chains
|
|
45
45
|
};
|
|
46
|
-
const STATIC_TOKEN = "https://static.gearbox.
|
|
46
|
+
const STATIC_TOKEN = "https://static.gearbox.finance/tokens/";
|
|
47
47
|
const LEADERBOARD_APIS = {
|
|
48
48
|
...Object.values(CHAINS).reduce((acc, chain) => {
|
|
49
49
|
acc[chain.id] = "https://gpointbot.fly.dev";
|
|
@@ -73,11 +73,11 @@ class GearboxBackendApi {
|
|
|
73
73
|
static getStaticTokenUrl = () => STATIC_TOKEN;
|
|
74
74
|
static getRewardsMerkleUrl = (network, root, account) => {
|
|
75
75
|
const path = `${network}_${root.slice(2)}/${account.slice(2, 4)}`;
|
|
76
|
-
const url = `https://am.gearbox.
|
|
76
|
+
const url = `https://am.gearbox.finance/${path.toLowerCase()}.json`;
|
|
77
77
|
return url;
|
|
78
78
|
};
|
|
79
79
|
static getNFTMerkleUrl = (network, root) => {
|
|
80
|
-
const url = `https://dm.gearbox.
|
|
80
|
+
const url = `https://dm.gearbox.finance/${network.toLowerCase()}_${root}.json`;
|
|
81
81
|
return url;
|
|
82
82
|
};
|
|
83
83
|
static getLeaderboardUrl = (url, chainId) => {
|