@curvefi/api 2.30.1 → 2.31.1
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/boosting.js +137 -402
- package/lib/constants/abis/avaxcrypto/swap.json +1195 -0
- package/lib/constants/abis/avaxcrypto/zap.json +250 -0
- package/lib/constants/aliases.d.ts +11 -11
- package/lib/constants/aliases.js +12 -15
- package/lib/constants/coins/arbitrum.js +6 -9
- package/lib/constants/coins/aurora.js +6 -9
- package/lib/constants/coins/avalanche.js +12 -10
- package/lib/constants/coins/celo.js +6 -9
- package/lib/constants/coins/ethereum.js +10 -13
- package/lib/constants/coins/fantom.js +8 -11
- package/lib/constants/coins/kava.js +6 -9
- package/lib/constants/coins/moonbeam.js +6 -9
- package/lib/constants/coins/optimism.js +6 -9
- package/lib/constants/coins/polygon.js +7 -10
- package/lib/constants/coins/xdai.js +6 -9
- package/lib/constants/pools/arbitrum.d.ts +2 -4
- package/lib/constants/pools/arbitrum.js +22 -28
- package/lib/constants/pools/aurora.d.ts +2 -4
- package/lib/constants/pools/aurora.js +6 -12
- package/lib/constants/pools/avalanche.d.ts +2 -4
- package/lib/constants/pools/avalanche.js +51 -22
- package/lib/constants/pools/celo.d.ts +2 -4
- package/lib/constants/pools/celo.js +2 -5
- package/lib/constants/pools/ethereum.js +247 -253
- package/lib/constants/pools/fantom.d.ts +2 -4
- package/lib/constants/pools/fantom.js +28 -34
- package/lib/constants/pools/index.d.ts +11 -11
- package/lib/constants/pools/index.js +12 -25
- package/lib/constants/pools/kava.d.ts +2 -4
- package/lib/constants/pools/kava.js +2 -5
- package/lib/constants/pools/moonbeam.d.ts +2 -4
- package/lib/constants/pools/moonbeam.js +6 -12
- package/lib/constants/pools/optimism.d.ts +2 -4
- package/lib/constants/pools/optimism.js +9 -15
- package/lib/constants/pools/polygon.d.ts +2 -4
- package/lib/constants/pools/polygon.js +23 -28
- package/lib/constants/pools/xdai.d.ts +2 -4
- package/lib/constants/pools/xdai.js +25 -30
- package/lib/constants/utils.js +20 -29
- package/lib/curve.d.ts +9 -7
- package/lib/curve.js +397 -615
- package/lib/external-api.d.ts +1 -1
- package/lib/external-api.js +47 -140
- package/lib/factory/common.js +6 -10
- package/lib/factory/constants-crypto.js +48 -54
- package/lib/factory/constants.js +274 -280
- package/lib/factory/deploy.d.ts +8 -8
- package/lib/factory/deploy.js +177 -347
- package/lib/factory/factory-api.js +195 -278
- package/lib/factory/factory-crypto.js +170 -323
- package/lib/factory/factory.js +195 -350
- package/lib/index.d.ts +24 -25
- package/lib/index.js +87 -143
- package/lib/interfaces.d.ts +6 -5
- package/lib/interfaces.js +1 -2
- package/lib/pools/PoolTemplate.d.ts +1 -0
- package/lib/pools/PoolTemplate.js +1516 -2928
- package/lib/pools/index.d.ts +2 -2
- package/lib/pools/index.js +3 -7
- package/lib/pools/mixins/common.d.ts +3 -4
- package/lib/pools/mixins/common.js +23 -102
- package/lib/pools/mixins/depositBalancedAmountsMixins.d.ts +1 -1
- package/lib/pools/mixins/depositBalancedAmountsMixins.js +50 -139
- package/lib/pools/mixins/depositMixins.d.ts +1 -1
- package/lib/pools/mixins/depositMixins.js +145 -405
- package/lib/pools/mixins/depositWrappedMixins.d.ts +1 -1
- package/lib/pools/mixins/depositWrappedMixins.js +72 -227
- package/lib/pools/mixins/poolBalancesMixin.d.ts +1 -2
- package/lib/pools/mixins/poolBalancesMixin.js +25 -131
- package/lib/pools/mixins/swapMixins.d.ts +1 -1
- package/lib/pools/mixins/swapMixins.js +127 -353
- package/lib/pools/mixins/swapWrappedMixins.d.ts +1 -1
- package/lib/pools/mixins/swapWrappedMixins.js +90 -276
- package/lib/pools/mixins/withdrawExpectedMixins.d.ts +1 -2
- package/lib/pools/mixins/withdrawExpectedMixins.js +26 -154
- package/lib/pools/mixins/withdrawImbalanceMixins.d.ts +1 -1
- package/lib/pools/mixins/withdrawImbalanceMixins.js +99 -321
- package/lib/pools/mixins/withdrawImbalanceWrappedMixins.d.ts +1 -1
- package/lib/pools/mixins/withdrawImbalanceWrappedMixins.js +53 -192
- package/lib/pools/mixins/withdrawMixins.d.ts +1 -1
- package/lib/pools/mixins/withdrawMixins.js +124 -378
- package/lib/pools/mixins/withdrawOneCoinExpectedMixins.d.ts +1 -1
- package/lib/pools/mixins/withdrawOneCoinExpectedMixins.js +17 -92
- package/lib/pools/mixins/withdrawOneCoinMixins.d.ts +1 -1
- package/lib/pools/mixins/withdrawOneCoinMixins.js +125 -378
- package/lib/pools/mixins/withdrawOneCoinWrappedExpectedMixins.d.ts +1 -1
- package/lib/pools/mixins/withdrawOneCoinWrappedExpectedMixins.js +9 -66
- package/lib/pools/mixins/withdrawOneCoinWrappedMixins.d.ts +1 -1
- package/lib/pools/mixins/withdrawOneCoinWrappedMixins.js +55 -190
- package/lib/pools/mixins/withdrawWrappedMixins.d.ts +1 -1
- package/lib/pools/mixins/withdrawWrappedMixins.js +52 -191
- package/lib/pools/poolConstructor.d.ts +1 -1
- package/lib/pools/poolConstructor.js +79 -109
- package/lib/pools/utils.js +298 -500
- package/lib/router.d.ts +2 -2
- package/lib/router.js +406 -650
- package/lib/utils.d.ts +9 -9
- package/lib/utils.js +377 -731
- package/package.json +8 -8
package/lib/external-api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IExtendedPoolDataFromApi, ISubgraphPoolData, IDict, INetworkName } from "./interfaces";
|
|
2
1
|
import memoize from "memoizee";
|
|
2
|
+
import { IExtendedPoolDataFromApi, ISubgraphPoolData, IDict, INetworkName } from "./interfaces";
|
|
3
3
|
export declare const _getPoolsFromApi: ((network: INetworkName, poolType: "main" | "crypto" | "factory" | "factory-crypto") => Promise<IExtendedPoolDataFromApi>) & memoize.Memoized<(network: INetworkName, poolType: "main" | "crypto" | "factory" | "factory-crypto") => Promise<IExtendedPoolDataFromApi>>;
|
|
4
4
|
export declare const _getSubgraphData: ((network: INetworkName) => Promise<{
|
|
5
5
|
poolsData: ISubgraphPoolData[];
|
package/lib/external-api.js
CHANGED
|
@@ -1,161 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports._getHiddenPools = exports._getAllGauges = exports._getFactoryAPYsAndVolumes = exports._getLegacyAPYsAndVolumes = exports._getSubgraphData = exports._getPoolsFromApi = void 0;
|
|
43
|
-
var axios_1 = __importDefault(require("axios"));
|
|
44
|
-
var memoizee_1 = __importDefault(require("memoizee"));
|
|
45
|
-
exports._getPoolsFromApi = (0, memoizee_1.default)(function (network, poolType) { return __awaiter(void 0, void 0, void 0, function () {
|
|
46
|
-
var url, response;
|
|
47
|
-
var _a;
|
|
48
|
-
return __generator(this, function (_b) {
|
|
49
|
-
switch (_b.label) {
|
|
50
|
-
case 0:
|
|
51
|
-
url = "https://api.curve.fi/api/getPools/".concat(network, "/").concat(poolType);
|
|
52
|
-
return [4 /*yield*/, axios_1.default.get(url, { validateStatus: function () { return true; } })];
|
|
53
|
-
case 1:
|
|
54
|
-
response = _b.sent();
|
|
55
|
-
return [2 /*return*/, (_a = response.data.data) !== null && _a !== void 0 ? _a : { poolData: [], tvl: 0, tvlAll: 0 }];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}); }, {
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
import memoize from "memoizee";
|
|
3
|
+
export const _getPoolsFromApi = memoize(async (network, poolType) => {
|
|
4
|
+
const url = `https://api.curve.fi/api/getPools/${network}/${poolType}`;
|
|
5
|
+
const response = await axios.get(url, { validateStatus: () => true });
|
|
6
|
+
return response.data.data ?? { poolData: [], tvl: 0, tvlAll: 0 };
|
|
7
|
+
}, {
|
|
59
8
|
promise: true,
|
|
60
9
|
maxAge: 5 * 60 * 1000, // 5m
|
|
61
10
|
});
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return [2 /*return*/, {
|
|
73
|
-
poolsData: (_a = response.data.data.poolList) !== null && _a !== void 0 ? _a : [],
|
|
74
|
-
totalVolume: (_b = response.data.data.totalVolume) !== null && _b !== void 0 ? _b : 0,
|
|
75
|
-
cryptoVolume: (_c = response.data.data.cryptoVolume) !== null && _c !== void 0 ? _c : 0,
|
|
76
|
-
cryptoShare: (_d = response.data.data.cryptoShare) !== null && _d !== void 0 ? _d : 0,
|
|
77
|
-
}];
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}); }, {
|
|
11
|
+
export const _getSubgraphData = memoize(async (network) => {
|
|
12
|
+
const url = `https://api.curve.fi/api/getSubgraphData/${network}`;
|
|
13
|
+
const response = await axios.get(url, { validateStatus: () => true });
|
|
14
|
+
return {
|
|
15
|
+
poolsData: response.data.data.poolList ?? [],
|
|
16
|
+
totalVolume: response.data.data.totalVolume ?? 0,
|
|
17
|
+
cryptoVolume: response.data.data.cryptoVolume ?? 0,
|
|
18
|
+
cryptoShare: response.data.data.cryptoShare ?? 0,
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
81
21
|
promise: true,
|
|
82
22
|
maxAge: 5 * 60 * 1000, // 5m
|
|
83
23
|
});
|
|
84
24
|
// Moonbeam and Aurora only
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
result = {};
|
|
97
|
-
Object.keys(data.apy.day).forEach(function (poolId) {
|
|
98
|
-
result[poolId] = { apy: { day: 0, week: 0 }, volume: 0 };
|
|
99
|
-
result[poolId].apy.day = data.apy.day[poolId] * 100;
|
|
100
|
-
result[poolId].apy.week = data.apy.week[poolId] * 100;
|
|
101
|
-
result[poolId].volume = data.volume[poolId];
|
|
102
|
-
});
|
|
103
|
-
return [2 /*return*/, result];
|
|
104
|
-
}
|
|
25
|
+
export const _getLegacyAPYsAndVolumes = memoize(async (network) => {
|
|
26
|
+
if (network === "kava" || network === "celo")
|
|
27
|
+
return {}; // Exclude Kava and Celo
|
|
28
|
+
const url = "https://api.curve.fi/api/getMainPoolsAPYs/" + network;
|
|
29
|
+
const data = (await axios.get(url, { validateStatus: () => true })).data;
|
|
30
|
+
const result = {};
|
|
31
|
+
Object.keys(data.apy.day).forEach((poolId) => {
|
|
32
|
+
result[poolId] = { apy: { day: 0, week: 0 }, volume: 0 };
|
|
33
|
+
result[poolId].apy.day = data.apy.day[poolId] * 100;
|
|
34
|
+
result[poolId].apy.week = data.apy.week[poolId] * 100;
|
|
35
|
+
result[poolId].volume = data.volume[poolId];
|
|
105
36
|
});
|
|
106
|
-
|
|
37
|
+
return result;
|
|
38
|
+
}, {
|
|
107
39
|
promise: true,
|
|
108
40
|
maxAge: 5 * 60 * 1000, // 5m
|
|
109
41
|
});
|
|
110
42
|
// Moonbeam, Kava and Celo only
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return [2 /*return*/, []]; // Exclude Aurora
|
|
119
|
-
url = "https://api.curve.fi/api/getFactoryAPYs-".concat(network);
|
|
120
|
-
return [4 /*yield*/, axios_1.default.get(url, { validateStatus: function () { return true; } })];
|
|
121
|
-
case 1:
|
|
122
|
-
response = _b.sent();
|
|
123
|
-
return [2 /*return*/, (_a = response.data.data.poolDetails) !== null && _a !== void 0 ? _a : []];
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}); }, {
|
|
43
|
+
export const _getFactoryAPYsAndVolumes = memoize(async (network) => {
|
|
44
|
+
if (network === "aurora")
|
|
45
|
+
return []; // Exclude Aurora
|
|
46
|
+
const url = `https://api.curve.fi/api/getFactoryAPYs-${network}`;
|
|
47
|
+
const response = await axios.get(url, { validateStatus: () => true });
|
|
48
|
+
return response.data.data.poolDetails ?? [];
|
|
49
|
+
}, {
|
|
127
50
|
promise: true,
|
|
128
51
|
maxAge: 5 * 60 * 1000, // 5m
|
|
129
52
|
});
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
url = "https://api.curve.fi/api/getAllGauges";
|
|
136
|
-
return [4 /*yield*/, axios_1.default.get(url, { validateStatus: function () { return true; } })];
|
|
137
|
-
case 1:
|
|
138
|
-
response = _a.sent();
|
|
139
|
-
return [2 /*return*/, response.data.data];
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}); }, {
|
|
53
|
+
export const _getAllGauges = memoize(async () => {
|
|
54
|
+
const url = `https://api.curve.fi/api/getAllGauges`;
|
|
55
|
+
const response = await axios.get(url, { validateStatus: () => true });
|
|
56
|
+
return response.data.data;
|
|
57
|
+
}, {
|
|
143
58
|
promise: true,
|
|
144
59
|
maxAge: 5 * 60 * 1000, // 5m
|
|
145
60
|
});
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
url = "https://api.curve.fi/api/getHiddenPools";
|
|
152
|
-
return [4 /*yield*/, axios_1.default.get(url, { validateStatus: function () { return true; } })];
|
|
153
|
-
case 1:
|
|
154
|
-
response = _a.sent();
|
|
155
|
-
return [2 /*return*/, response.data.data];
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}); }, {
|
|
61
|
+
export const _getHiddenPools = memoize(async () => {
|
|
62
|
+
const url = `https://api.curve.fi/api/getHiddenPools`;
|
|
63
|
+
const response = await axios.get(url, { validateStatus: () => true });
|
|
64
|
+
return response.data.data;
|
|
65
|
+
}, {
|
|
159
66
|
promise: true,
|
|
160
67
|
maxAge: 5 * 60 * 1000, // 5m
|
|
161
68
|
});
|
package/lib/factory/common.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function setFactoryZapContracts(isCrypto) {
|
|
7
|
-
var basePoolIdZapDict = (isCrypto ? constants_crypto_1.CRYPTO_FACTORY_CONSTANTS : constants_1.FACTORY_CONSTANTS)[this.chainId].basePoolIdZapDict;
|
|
8
|
-
for (var basePoolId in basePoolIdZapDict) {
|
|
1
|
+
import { FACTORY_CONSTANTS } from "./constants.js";
|
|
2
|
+
import { CRYPTO_FACTORY_CONSTANTS } from "./constants-crypto.js";
|
|
3
|
+
export function setFactoryZapContracts(isCrypto) {
|
|
4
|
+
const basePoolIdZapDict = (isCrypto ? CRYPTO_FACTORY_CONSTANTS : FACTORY_CONSTANTS)[this.chainId].basePoolIdZapDict;
|
|
5
|
+
for (const basePoolId in basePoolIdZapDict) {
|
|
9
6
|
if (!Object.prototype.hasOwnProperty.call(basePoolIdZapDict, basePoolId))
|
|
10
7
|
continue;
|
|
11
|
-
|
|
8
|
+
const basePool = basePoolIdZapDict[basePoolId];
|
|
12
9
|
if (basePool.address in this.constants)
|
|
13
10
|
continue;
|
|
14
11
|
this.setContract(basePool.address, basePool.ABI);
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
|
-
exports.setFactoryZapContracts = setFactoryZapContracts;
|
|
@@ -1,92 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CRYPTO_FACTORY_CONSTANTS = exports.basePoolIdZapDictCelo = exports.basePoolIdZapDictKava = exports.basePoolIdZapDictMoonbeam = exports.basePoolIdZapDictXDai = exports.basePoolIdZapDictOptimism = exports.basePoolIdZapDictArbitrum = exports.basePoolIdZapDictAvalanche = exports.basePoolIdZapDictFantom = exports.basePoolIdZapDictPolygon = exports.basePoolIdZapDictEthereum = exports.lpTokenBasePoolIdDictCelo = exports.lpTokenBasePoolIdDictKava = exports.lpTokenBasePoolIdDictMoonbeam = exports.lpTokenBasePoolIdDictXDai = exports.lpTokenBasePoolIdDictOptimism = exports.lpTokenBasePoolIdDictArbitrum = exports.lpTokenBasePoolIdDictAvalanche = exports.lpTokenBasePoolIdDictFantom = exports.lpTokenBasePoolIdDictPolygon = exports.lpTokenBasePoolIdDictEthereum = void 0;
|
|
7
|
-
var utils_1 = require("../constants/utils");
|
|
1
|
+
import { lowerCaseKeys } from "../constants/utils.js";
|
|
8
2
|
// --- ZAPS --
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import atricrypto3ZapABI from "../constants/abis/atricrypto3/base_pool_zap.json" assert { type: 'json' };
|
|
4
|
+
import tripoolZapABI from "../constants/abis/3pool/meta_zap_crypto.json" assert { type: 'json' };
|
|
5
|
+
import fraxusdcZapABI from "../constants/abis/fraxusdc/meta_zap_crypto.json" assert { type: 'json' };
|
|
6
|
+
export const lpTokenBasePoolIdDictEthereum = lowerCaseKeys({
|
|
13
7
|
'0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490': '3pool',
|
|
14
8
|
'0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC': 'fraxusdc',
|
|
15
9
|
});
|
|
16
|
-
|
|
10
|
+
export const lpTokenBasePoolIdDictPolygon = lowerCaseKeys({
|
|
17
11
|
'0xdAD97F7713Ae9437fa9249920eC8507e5FbB23d3': 'atricrypto3',
|
|
18
12
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
export const lpTokenBasePoolIdDictFantom = lowerCaseKeys({});
|
|
14
|
+
export const lpTokenBasePoolIdDictAvalanche = lowerCaseKeys({});
|
|
15
|
+
export const lpTokenBasePoolIdDictArbitrum = lowerCaseKeys({});
|
|
16
|
+
export const lpTokenBasePoolIdDictOptimism = lowerCaseKeys({});
|
|
17
|
+
export const lpTokenBasePoolIdDictXDai = lowerCaseKeys({});
|
|
18
|
+
export const lpTokenBasePoolIdDictMoonbeam = lowerCaseKeys({});
|
|
19
|
+
export const lpTokenBasePoolIdDictKava = lowerCaseKeys({});
|
|
20
|
+
export const lpTokenBasePoolIdDictCelo = lowerCaseKeys({});
|
|
21
|
+
export const basePoolIdZapDictEthereum = {
|
|
28
22
|
'3pool': {
|
|
29
23
|
address: "0x97aDC08FA1D849D2C48C5dcC1DaB568B169b0267".toLowerCase(),
|
|
30
|
-
ABI:
|
|
24
|
+
ABI: tripoolZapABI,
|
|
31
25
|
},
|
|
32
26
|
fraxusdc: {
|
|
33
27
|
address: "0x5de4ef4879f4fe3bbadf2227d2ac5d0e2d76c895".toLowerCase(),
|
|
34
|
-
ABI:
|
|
28
|
+
ABI: fraxusdcZapABI,
|
|
35
29
|
},
|
|
36
30
|
};
|
|
37
|
-
|
|
31
|
+
export const basePoolIdZapDictPolygon = {
|
|
38
32
|
atricrypto3: {
|
|
39
33
|
address: "0x3d8EADb739D1Ef95dd53D718e4810721837c69c1".toLowerCase(),
|
|
40
|
-
ABI:
|
|
34
|
+
ABI: atricrypto3ZapABI,
|
|
41
35
|
},
|
|
42
36
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
export const basePoolIdZapDictFantom = {};
|
|
38
|
+
export const basePoolIdZapDictAvalanche = {};
|
|
39
|
+
export const basePoolIdZapDictArbitrum = {};
|
|
40
|
+
export const basePoolIdZapDictOptimism = {};
|
|
41
|
+
export const basePoolIdZapDictXDai = {};
|
|
42
|
+
export const basePoolIdZapDictMoonbeam = {};
|
|
43
|
+
export const basePoolIdZapDictKava = {};
|
|
44
|
+
export const basePoolIdZapDictCelo = {};
|
|
45
|
+
export const CRYPTO_FACTORY_CONSTANTS = {
|
|
52
46
|
1: {
|
|
53
|
-
lpTokenBasePoolIdDict:
|
|
54
|
-
basePoolIdZapDict:
|
|
47
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictEthereum,
|
|
48
|
+
basePoolIdZapDict: basePoolIdZapDictEthereum,
|
|
55
49
|
},
|
|
56
50
|
10: {
|
|
57
|
-
lpTokenBasePoolIdDict:
|
|
58
|
-
basePoolIdZapDict:
|
|
51
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictOptimism,
|
|
52
|
+
basePoolIdZapDict: basePoolIdZapDictOptimism,
|
|
59
53
|
},
|
|
60
54
|
100: {
|
|
61
|
-
lpTokenBasePoolIdDict:
|
|
62
|
-
basePoolIdZapDict:
|
|
55
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictXDai,
|
|
56
|
+
basePoolIdZapDict: basePoolIdZapDictXDai,
|
|
63
57
|
},
|
|
64
58
|
137: {
|
|
65
|
-
lpTokenBasePoolIdDict:
|
|
66
|
-
basePoolIdZapDict:
|
|
59
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictPolygon,
|
|
60
|
+
basePoolIdZapDict: basePoolIdZapDictPolygon,
|
|
67
61
|
},
|
|
68
62
|
250: {
|
|
69
|
-
lpTokenBasePoolIdDict:
|
|
70
|
-
basePoolIdZapDict:
|
|
63
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictFantom,
|
|
64
|
+
basePoolIdZapDict: basePoolIdZapDictFantom,
|
|
71
65
|
},
|
|
72
66
|
1284: {
|
|
73
|
-
lpTokenBasePoolIdDict:
|
|
74
|
-
basePoolIdZapDict:
|
|
67
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictMoonbeam,
|
|
68
|
+
basePoolIdZapDict: basePoolIdZapDictMoonbeam,
|
|
75
69
|
},
|
|
76
70
|
2222: {
|
|
77
|
-
lpTokenBasePoolIdDict:
|
|
78
|
-
basePoolIdZapDict:
|
|
71
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictKava,
|
|
72
|
+
basePoolIdZapDict: basePoolIdZapDictKava,
|
|
79
73
|
},
|
|
80
74
|
42220: {
|
|
81
|
-
lpTokenBasePoolIdDict:
|
|
82
|
-
basePoolIdZapDict:
|
|
75
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictCelo,
|
|
76
|
+
basePoolIdZapDict: basePoolIdZapDictCelo,
|
|
83
77
|
},
|
|
84
78
|
43114: {
|
|
85
|
-
lpTokenBasePoolIdDict:
|
|
86
|
-
basePoolIdZapDict:
|
|
79
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictAvalanche,
|
|
80
|
+
basePoolIdZapDict: basePoolIdZapDictAvalanche,
|
|
87
81
|
},
|
|
88
82
|
42161: {
|
|
89
|
-
lpTokenBasePoolIdDict:
|
|
90
|
-
basePoolIdZapDict:
|
|
83
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictArbitrum,
|
|
84
|
+
basePoolIdZapDict: basePoolIdZapDictArbitrum,
|
|
91
85
|
},
|
|
92
86
|
};
|