@curvefi/api 2.32.0 → 2.33.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.
Files changed (59) hide show
  1. package/lib/boosting.js +385 -135
  2. package/lib/constants/aliases.js +22 -11
  3. package/lib/constants/coins/arbitrum.js +5 -5
  4. package/lib/constants/coins/aurora.js +5 -5
  5. package/lib/constants/coins/avalanche.js +6 -6
  6. package/lib/constants/coins/celo.js +5 -5
  7. package/lib/constants/coins/ethereum.js +10 -9
  8. package/lib/constants/coins/fantom.js +7 -7
  9. package/lib/constants/coins/kava.js +5 -5
  10. package/lib/constants/coins/moonbeam.js +5 -5
  11. package/lib/constants/coins/optimism.js +5 -5
  12. package/lib/constants/coins/polygon.js +6 -6
  13. package/lib/constants/coins/xdai.js +5 -5
  14. package/lib/constants/pools/arbitrum.js +1 -1
  15. package/lib/constants/pools/aurora.js +1 -1
  16. package/lib/constants/pools/avalanche.js +1 -1
  17. package/lib/constants/pools/celo.js +1 -1
  18. package/lib/constants/pools/ethereum.js +1 -1
  19. package/lib/constants/pools/fantom.js +1 -1
  20. package/lib/constants/pools/kava.js +1 -1
  21. package/lib/constants/pools/moonbeam.js +1 -1
  22. package/lib/constants/pools/optimism.js +1 -1
  23. package/lib/constants/pools/polygon.js +1 -1
  24. package/lib/constants/pools/xdai.js +1 -1
  25. package/lib/constants/utils.js +19 -18
  26. package/lib/curve.js +506 -282
  27. package/lib/external-api.js +132 -45
  28. package/lib/factory/common.js +3 -3
  29. package/lib/factory/constants-crypto.js +21 -21
  30. package/lib/factory/constants.js +32 -31
  31. package/lib/factory/deploy.js +336 -176
  32. package/lib/factory/factory-api.js +256 -180
  33. package/lib/factory/factory-crypto.js +309 -163
  34. package/lib/factory/factory.d.ts +1 -1
  35. package/lib/factory/factory.js +336 -186
  36. package/lib/index.js +98 -44
  37. package/lib/interfaces.d.ts +5 -0
  38. package/lib/pools/PoolTemplate.js +2879 -1468
  39. package/lib/pools/mixins/common.js +106 -22
  40. package/lib/pools/mixins/depositBalancedAmountsMixins.js +131 -48
  41. package/lib/pools/mixins/depositMixins.js +413 -144
  42. package/lib/pools/mixins/depositWrappedMixins.js +223 -72
  43. package/lib/pools/mixins/poolBalancesMixin.js +98 -22
  44. package/lib/pools/mixins/swapMixins.js +347 -125
  45. package/lib/pools/mixins/swapWrappedMixins.js +270 -88
  46. package/lib/pools/mixins/withdrawExpectedMixins.js +104 -23
  47. package/lib/pools/mixins/withdrawImbalanceMixins.js +316 -97
  48. package/lib/pools/mixins/withdrawImbalanceWrappedMixins.js +187 -51
  49. package/lib/pools/mixins/withdrawMixins.js +385 -122
  50. package/lib/pools/mixins/withdrawOneCoinExpectedMixins.js +88 -16
  51. package/lib/pools/mixins/withdrawOneCoinMixins.js +386 -123
  52. package/lib/pools/mixins/withdrawOneCoinWrappedExpectedMixins.js +62 -8
  53. package/lib/pools/mixins/withdrawOneCoinWrappedMixins.js +185 -53
  54. package/lib/pools/mixins/withdrawWrappedMixins.js +185 -50
  55. package/lib/pools/poolConstructor.js +25 -5
  56. package/lib/pools/utils.js +488 -299
  57. package/lib/router.js +675 -212
  58. package/lib/utils.js +675 -354
  59. package/package.json +1 -2
@@ -1,68 +1,155 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ 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;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
1
37
  import axios from "axios";
2
38
  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
- }, {
39
+ export var _getPoolsFromApi = memoize(function (network, poolType) { return __awaiter(void 0, void 0, void 0, function () {
40
+ var url, response;
41
+ var _a;
42
+ return __generator(this, function (_b) {
43
+ switch (_b.label) {
44
+ case 0:
45
+ url = "https://api.curve.fi/api/getPools/".concat(network, "/").concat(poolType);
46
+ return [4 /*yield*/, axios.get(url, { validateStatus: function () { return true; } })];
47
+ case 1:
48
+ response = _b.sent();
49
+ return [2 /*return*/, (_a = response.data.data) !== null && _a !== void 0 ? _a : { poolData: [], tvl: 0, tvlAll: 0 }];
50
+ }
51
+ });
52
+ }); }, {
8
53
  promise: true,
9
54
  maxAge: 5 * 60 * 1000, // 5m
10
55
  });
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
- }, {
56
+ export var _getSubgraphData = memoize(function (network) { return __awaiter(void 0, void 0, void 0, function () {
57
+ var url, response;
58
+ var _a, _b, _c, _d;
59
+ return __generator(this, function (_e) {
60
+ switch (_e.label) {
61
+ case 0:
62
+ url = "https://api.curve.fi/api/getSubgraphData/".concat(network);
63
+ return [4 /*yield*/, axios.get(url, { validateStatus: function () { return true; } })];
64
+ case 1:
65
+ response = _e.sent();
66
+ return [2 /*return*/, {
67
+ poolsData: (_a = response.data.data.poolList) !== null && _a !== void 0 ? _a : [],
68
+ totalVolume: (_b = response.data.data.totalVolume) !== null && _b !== void 0 ? _b : 0,
69
+ cryptoVolume: (_c = response.data.data.cryptoVolume) !== null && _c !== void 0 ? _c : 0,
70
+ cryptoShare: (_d = response.data.data.cryptoShare) !== null && _d !== void 0 ? _d : 0,
71
+ }];
72
+ }
73
+ });
74
+ }); }, {
21
75
  promise: true,
22
76
  maxAge: 5 * 60 * 1000, // 5m
23
77
  });
24
78
  // Moonbeam and Aurora only
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];
79
+ export var _getLegacyAPYsAndVolumes = memoize(function (network) { return __awaiter(void 0, void 0, void 0, function () {
80
+ var url, data, result;
81
+ return __generator(this, function (_a) {
82
+ switch (_a.label) {
83
+ case 0:
84
+ if (network === "kava" || network === "celo")
85
+ return [2 /*return*/, {}]; // Exclude Kava and Celo
86
+ url = "https://api.curve.fi/api/getMainPoolsAPYs/" + network;
87
+ return [4 /*yield*/, axios.get(url, { validateStatus: function () { return true; } })];
88
+ case 1:
89
+ data = (_a.sent()).data;
90
+ result = {};
91
+ Object.keys(data.apy.day).forEach(function (poolId) {
92
+ result[poolId] = { apy: { day: 0, week: 0 }, volume: 0 };
93
+ result[poolId].apy.day = data.apy.day[poolId] * 100;
94
+ result[poolId].apy.week = data.apy.week[poolId] * 100;
95
+ result[poolId].volume = data.volume[poolId];
96
+ });
97
+ return [2 /*return*/, result];
98
+ }
36
99
  });
37
- return result;
38
- }, {
100
+ }); }, {
39
101
  promise: true,
40
102
  maxAge: 5 * 60 * 1000, // 5m
41
103
  });
42
104
  // Moonbeam, Kava and Celo only
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
- }, {
105
+ export var _getFactoryAPYsAndVolumes = memoize(function (network) { return __awaiter(void 0, void 0, void 0, function () {
106
+ var url, response;
107
+ var _a;
108
+ return __generator(this, function (_b) {
109
+ switch (_b.label) {
110
+ case 0:
111
+ if (network === "aurora")
112
+ return [2 /*return*/, []]; // Exclude Aurora
113
+ url = "https://api.curve.fi/api/getFactoryAPYs-".concat(network);
114
+ return [4 /*yield*/, axios.get(url, { validateStatus: function () { return true; } })];
115
+ case 1:
116
+ response = _b.sent();
117
+ return [2 /*return*/, (_a = response.data.data.poolDetails) !== null && _a !== void 0 ? _a : []];
118
+ }
119
+ });
120
+ }); }, {
50
121
  promise: true,
51
122
  maxAge: 5 * 60 * 1000, // 5m
52
123
  });
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
- }, {
124
+ export var _getAllGauges = memoize(function () { return __awaiter(void 0, void 0, void 0, function () {
125
+ var url, response;
126
+ return __generator(this, function (_a) {
127
+ switch (_a.label) {
128
+ case 0:
129
+ url = "https://api.curve.fi/api/getAllGauges";
130
+ return [4 /*yield*/, axios.get(url, { validateStatus: function () { return true; } })];
131
+ case 1:
132
+ response = _a.sent();
133
+ return [2 /*return*/, response.data.data];
134
+ }
135
+ });
136
+ }); }, {
58
137
  promise: true,
59
138
  maxAge: 5 * 60 * 1000, // 5m
60
139
  });
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
- }, {
140
+ export var _getHiddenPools = memoize(function () { return __awaiter(void 0, void 0, void 0, function () {
141
+ var url, response;
142
+ return __generator(this, function (_a) {
143
+ switch (_a.label) {
144
+ case 0:
145
+ url = "https://api.curve.fi/api/getHiddenPools";
146
+ return [4 /*yield*/, axios.get(url, { validateStatus: function () { return true; } })];
147
+ case 1:
148
+ response = _a.sent();
149
+ return [2 /*return*/, response.data.data];
150
+ }
151
+ });
152
+ }); }, {
66
153
  promise: true,
67
154
  maxAge: 5 * 60 * 1000, // 5m
68
155
  });
@@ -1,11 +1,11 @@
1
1
  import { FACTORY_CONSTANTS } from "./constants.js";
2
2
  import { CRYPTO_FACTORY_CONSTANTS } from "./constants-crypto.js";
3
3
  export function setFactoryZapContracts(isCrypto) {
4
- const basePoolIdZapDict = (isCrypto ? CRYPTO_FACTORY_CONSTANTS : FACTORY_CONSTANTS)[this.chainId].basePoolIdZapDict;
5
- for (const basePoolId in basePoolIdZapDict) {
4
+ var basePoolIdZapDict = (isCrypto ? CRYPTO_FACTORY_CONSTANTS : FACTORY_CONSTANTS)[this.chainId].basePoolIdZapDict;
5
+ for (var basePoolId in basePoolIdZapDict) {
6
6
  if (!Object.prototype.hasOwnProperty.call(basePoolIdZapDict, basePoolId))
7
7
  continue;
8
- const basePool = basePoolIdZapDict[basePoolId];
8
+ var basePool = basePoolIdZapDict[basePoolId];
9
9
  if (basePool.address in this.constants)
10
10
  continue;
11
11
  this.setContract(basePool.address, basePool.ABI);
@@ -3,22 +3,22 @@ import { lowerCaseKeys } from "../constants/utils.js";
3
3
  import atricrypto3ZapABI from "../constants/abis/atricrypto3/base_pool_zap.json" assert { type: 'json' };
4
4
  import tripoolZapABI from "../constants/abis/3pool/meta_zap_crypto.json" assert { type: 'json' };
5
5
  import fraxusdcZapABI from "../constants/abis/fraxusdc/meta_zap_crypto.json" assert { type: 'json' };
6
- export const lpTokenBasePoolIdDictEthereum = lowerCaseKeys({
6
+ export var lpTokenBasePoolIdDictEthereum = lowerCaseKeys({
7
7
  '0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490': '3pool',
8
8
  '0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC': 'fraxusdc',
9
9
  });
10
- export const lpTokenBasePoolIdDictPolygon = lowerCaseKeys({
10
+ export var lpTokenBasePoolIdDictPolygon = lowerCaseKeys({
11
11
  '0xdAD97F7713Ae9437fa9249920eC8507e5FbB23d3': 'atricrypto3',
12
12
  });
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 = {
13
+ export var lpTokenBasePoolIdDictFantom = lowerCaseKeys({});
14
+ export var lpTokenBasePoolIdDictAvalanche = lowerCaseKeys({});
15
+ export var lpTokenBasePoolIdDictArbitrum = lowerCaseKeys({});
16
+ export var lpTokenBasePoolIdDictOptimism = lowerCaseKeys({});
17
+ export var lpTokenBasePoolIdDictXDai = lowerCaseKeys({});
18
+ export var lpTokenBasePoolIdDictMoonbeam = lowerCaseKeys({});
19
+ export var lpTokenBasePoolIdDictKava = lowerCaseKeys({});
20
+ export var lpTokenBasePoolIdDictCelo = lowerCaseKeys({});
21
+ export var basePoolIdZapDictEthereum = {
22
22
  '3pool': {
23
23
  address: "0x97aDC08FA1D849D2C48C5dcC1DaB568B169b0267".toLowerCase(),
24
24
  ABI: tripoolZapABI,
@@ -28,21 +28,21 @@ export const basePoolIdZapDictEthereum = {
28
28
  ABI: fraxusdcZapABI,
29
29
  },
30
30
  };
31
- export const basePoolIdZapDictPolygon = {
31
+ export var basePoolIdZapDictPolygon = {
32
32
  atricrypto3: {
33
33
  address: "0x3d8EADb739D1Ef95dd53D718e4810721837c69c1".toLowerCase(),
34
34
  ABI: atricrypto3ZapABI,
35
35
  },
36
36
  };
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 = {
37
+ export var basePoolIdZapDictFantom = {};
38
+ export var basePoolIdZapDictAvalanche = {};
39
+ export var basePoolIdZapDictArbitrum = {};
40
+ export var basePoolIdZapDictOptimism = {};
41
+ export var basePoolIdZapDictXDai = {};
42
+ export var basePoolIdZapDictMoonbeam = {};
43
+ export var basePoolIdZapDictKava = {};
44
+ export var basePoolIdZapDictCelo = {};
45
+ export var CRYPTO_FACTORY_CONSTANTS = {
46
46
  1: {
47
47
  lpTokenBasePoolIdDict: lpTokenBasePoolIdDictEthereum,
48
48
  basePoolIdZapDict: basePoolIdZapDictEthereum,
@@ -32,7 +32,7 @@ import MetaGeistUsdZapFantomABI from "../constants/abis/factory-v2/DepositZapMet
32
32
  import RenMetaZapABI from "../constants/abis/ren/meta_zap.json" assert { type: 'json' };
33
33
  import Sbtc2MetaZapABI from "../constants/abis/sbtc2/meta_zap.json" assert { type: 'json' };
34
34
  import { lowerCaseKeys } from "../constants/utils.js";
35
- export const implementationABIDictEthereum = lowerCaseKeys({
35
+ export var implementationABIDictEthereum = lowerCaseKeys({
36
36
  "0x5F890841f657d90E081bAbdB532A05996Af79Fe6": factorySwapABI,
37
37
  "0x213be373FDff327658139C7df330817DAD2d5bBE": MetaUSDABI,
38
38
  "0x55Aa9BF126bCABF0bDC17Fa9E39Ec9239e1ce7A9": MetaUSDBalancesABI,
@@ -52,6 +52,7 @@ export const implementationABIDictEthereum = lowerCaseKeys({
52
52
  "0x4A4d7868390EF5CaC51cDA262888f34bD3025C3F": Plain2OptimizedABI,
53
53
  "0xc629a01eC23AB04E1050500A3717A2a5c0701497": Plain2BasicABI,
54
54
  "0x94b4DFd9Ba5865Cc931195c99A2db42F3fc5d45B": Plain2ETHABI,
55
+ "0xb9f861B7755Ff09cFD65CfE262D19823607b1f24": Plain2BasicABI,
55
56
  "0x9B52F13DF69D79Ec5aAB6D1aCe3157d29B409cC3": Plain3BasicABI,
56
57
  "0x50b085f2e5958C4A87baf93A8AB79F6bec068494": Plain3BalancesABI,
57
58
  "0x8c1aB78601c259E1B43F19816923609dC7d7de9B": Plain3ETHABI,
@@ -61,7 +62,7 @@ export const implementationABIDictEthereum = lowerCaseKeys({
61
62
  "0x88855cdF2b0A8413D470B86952E726684de915be": Plain4ETHABI,
62
63
  "0xaD4753D045D3Aed5C1a6606dFb6a7D7AD67C1Ad7": Plain4OptimizedABI,
63
64
  });
64
- export const implementationABIDictPolygon = lowerCaseKeys({
65
+ export var implementationABIDictPolygon = lowerCaseKeys({
65
66
  "0x4fb93D7d320E8A263F22f62C2059dFC2A8bCbC4c": MetaUSDABI,
66
67
  "0x39fE1824f98CD828050D7c51dA443E84121c7cf1": MetaUSDBalancesABI,
67
68
  "0xC05EB760A135d3D0c839f1141423002681157a17": MetaBTCRenABI,
@@ -79,7 +80,7 @@ export const implementationABIDictPolygon = lowerCaseKeys({
79
80
  "0xf31bcdf0B9a5eCD7AB463eB905551fBc32e51856": Plain4ETHABI,
80
81
  "0xAc273d5b4FC06625d8b1abA3BE8De15bDFb8E39f": Plain4OptimizedABI,
81
82
  });
82
- export const implementationABIDictFantom = lowerCaseKeys({
83
+ export var implementationABIDictFantom = lowerCaseKeys({
83
84
  "0xfCE359115dFe1533a2458650123F86C454BC0213": MetaUSDABI,
84
85
  "0x09C62ad0694e3f1ad8cF8876aaBe56138C586f5F": MetaUSDBalancesABI,
85
86
  "0xC9438d8928486bD9621D326002F4672bF684187A": MetaBTCRenABI,
@@ -99,7 +100,7 @@ export const implementationABIDictFantom = lowerCaseKeys({
99
100
  "0xb11Dc44A9f981fAF1669dca6DD40c3cc2554A2ce": Plain4ETHABI,
100
101
  "0x9D7C28226AA7142cBF234ab9aa9C203D095c528B": Plain4OptimizedABI,
101
102
  });
102
- export const implementationABIDictAvalanche = lowerCaseKeys({
103
+ export var implementationABIDictAvalanche = lowerCaseKeys({
103
104
  "0xA237034249290De2B07988Ac64b96f22c0E76fE0": MetaUSDABI,
104
105
  "0xc50C05Ca1f8C2346664bd0d4a1eb6aC1Da38414f": MetaUSDBalancesABI,
105
106
  "0xa27f39E9C21b3376F43266E13Ad5A5d6E9BdB320": MetaBTCRenABI,
@@ -117,7 +118,7 @@ export const implementationABIDictAvalanche = lowerCaseKeys({
117
118
  "0x0eb0F1FaF5F509Ac53fA224477509EAD167cf410": Plain4ETHABI,
118
119
  "0xCE94D3E5b0D80565D7B713A687b39a3Dc81780BA": Plain4OptimizedABI,
119
120
  });
120
- export const implementationABIDictArbitrum = lowerCaseKeys({
121
+ export var implementationABIDictArbitrum = lowerCaseKeys({
121
122
  "0x09672362833d8f703D5395ef3252D4Bfa51c15ca": MetaUSDABI,
122
123
  "0xBE175115BF33E12348ff77CcfEE4726866A0Fbd5": MetaUSDBalancesABI,
123
124
  "0x094d12e5b541784701FD8d65F11fc0598FBC6332": MetaBTCRenABI,
@@ -137,7 +138,7 @@ export const implementationABIDictArbitrum = lowerCaseKeys({
137
138
  "0x89287c32c2CAC1C76227F6d300B2DBbab6b75C08": Plain4ETHABI,
138
139
  "0x06e3C4da96fd076b97b7ca3Ae23527314b6140dF": Plain4OptimizedABI,
139
140
  });
140
- export const implementationABIDictOptimism = lowerCaseKeys({
141
+ export var implementationABIDictOptimism = lowerCaseKeys({
141
142
  "0x78CF256256C8089d68Cde634Cf7cDEFb39286470": MetaUSDABI,
142
143
  "0xADf698e4d8Df08b3E2c79682891636eF00F6e205": MetaUSDBalancesABI,
143
144
  "0xe8269B33E47761f552E1a3070119560d5fa8bBD6": MetaFraxUSDABI,
@@ -155,7 +156,7 @@ export const implementationABIDictOptimism = lowerCaseKeys({
155
156
  "0x1AEf73d49Dedc4b1778d0706583995958Dc862e6": Plain4ETHABI,
156
157
  "0x8474DdbE98F5aA3179B3B3F5942D724aFcdec9f6": Plain4OptimizedABI,
157
158
  });
158
- export const implementationABIDictXDai = lowerCaseKeys({
159
+ export var implementationABIDictXDai = lowerCaseKeys({
159
160
  "0x4A5bF7Ab9A8202692051c19B102d3eDD62aaBAE6": MetaUSDABI,
160
161
  "0x0B4dc7A945695D11FD83e40B2DfC2B896A02395F": MetaUSDBalancesABI,
161
162
  "0x04e39EF8332e979Cf8e4f8891E64934FF65F231b": Plain2BasicABI,
@@ -171,7 +172,7 @@ export const implementationABIDictXDai = lowerCaseKeys({
171
172
  "0xc1C49622b63B961ce1D352ecb7D8261Ab5556695": Plain4ETHABI,
172
173
  "0x0E2615ce69Cd3Dc3Ff6f66a975bEa0655F3bA7b9": Plain4OptimizedABI,
173
174
  });
174
- export const implementationABIDictMoonbeam = lowerCaseKeys({
175
+ export var implementationABIDictMoonbeam = lowerCaseKeys({
175
176
  "0x6842E0412AC1c00464dc48961330156a07268d14": Plain2BasicABI,
176
177
  "0x9fAe78C4bBB649deB7b2295dDB8A03adA7eB660F": Plain2BalancesABI,
177
178
  "0xfCE359115dFe1533a2458650123F86C454BC0213": Plain2ETHABI,
@@ -185,7 +186,7 @@ export const implementationABIDictMoonbeam = lowerCaseKeys({
185
186
  "0xec9cEBE650E181079576C1b6d0d2e092B1EdfF13": Plain4ETHABI,
186
187
  "0xe8269B33E47761f552E1a3070119560d5fa8bBD6": Plain4OptimizedABI,
187
188
  });
188
- export const implementationABIDictKava = lowerCaseKeys({
189
+ export var implementationABIDictKava = lowerCaseKeys({
189
190
  "0x2632679f5ca396a1bd2647092d9dbf7ec5d7b263": Plain2BasicABI,
190
191
  "0x12f196251efcaca0fd73d5b58132b16760ba96a8": Plain2BalancesABI,
191
192
  "0xafdab4f8f6e6992b16e3906295fba390aab59ca5": Plain2ETHABI,
@@ -199,7 +200,7 @@ export const implementationABIDictKava = lowerCaseKeys({
199
200
  "0x6378dd741b24bd884f3590d7bc7555fdb2f5b003": Plain4ETHABI,
200
201
  "0x509495dfeec3a53acb2f60669985d868131ad9a5": Plain4OptimizedABI,
201
202
  });
202
- export const implementationABIDictCelo = lowerCaseKeys({
203
+ export var implementationABIDictCelo = lowerCaseKeys({
203
204
  "0xfEE7166C32Bdf6356Ef60636f43400AA55551A96": Plain2BasicABI,
204
205
  "0x183Bb362aAa53f24BDF76a5E0FE11eEEce21F44d": Plain2BalancesABI,
205
206
  "0x469CF0874E62cfbaD342AE7e11aBCfC0F08dC17d": Plain2ETHABI,
@@ -213,7 +214,7 @@ export const implementationABIDictCelo = lowerCaseKeys({
213
214
  "0x0F5390AB4C5456a769056C96E4D7C71770b52319": Plain4ETHABI,
214
215
  "0xA73b02a97B45604cd9f0BBAA153eCfe01f409350": Plain4OptimizedABI,
215
216
  });
216
- export const implementationBasePoolIdDictEthereum = lowerCaseKeys({
217
+ export var implementationBasePoolIdDictEthereum = lowerCaseKeys({
217
218
  "0x5F890841f657d90E081bAbdB532A05996Af79Fe6": "3pool",
218
219
  "0x213be373FDff327658139C7df330817DAD2d5bBE": "3pool",
219
220
  "0x55Aa9BF126bCABF0bDC17Fa9E39Ec9239e1ce7A9": "3pool",
@@ -228,13 +229,13 @@ export const implementationBasePoolIdDictEthereum = lowerCaseKeys({
228
229
  "0x008CFa89df5B0c780cA3462fc2602D7F8c7Ac315": "sbtc2",
229
230
  "0xAbc533EbCDdeD41215C46ee078C5818B5b0A252F": "sbtc2",
230
231
  });
231
- export const implementationBasePoolIdDictPolygon = lowerCaseKeys({
232
+ export var implementationBasePoolIdDictPolygon = lowerCaseKeys({
232
233
  "0x4fb93D7d320E8A263F22f62C2059dFC2A8bCbC4c": "aave",
233
234
  "0x39fE1824f98CD828050D7c51dA443E84121c7cf1": "aave",
234
235
  "0xC05EB760A135d3D0c839f1141423002681157a17": "ren",
235
236
  "0xD8336532f6ED7b94282fAF724fe41d6145E07Cfc": "ren",
236
237
  });
237
- export const implementationBasePoolIdDictFantom = lowerCaseKeys({
238
+ export var implementationBasePoolIdDictFantom = lowerCaseKeys({
238
239
  "0xfCE359115dFe1533a2458650123F86C454BC0213": "2pool",
239
240
  "0x09C62ad0694e3f1ad8cF8876aaBe56138C586f5F": "2pool",
240
241
  "0xC9438d8928486bD9621D326002F4672bF684187A": "ren",
@@ -242,13 +243,13 @@ export const implementationBasePoolIdDictFantom = lowerCaseKeys({
242
243
  "0x210C806F6AE850279f7E298dE749EC4B427d00DD": "geist",
243
244
  "0xf82162bB68aD5a168345bb7EFb2faA0EDCCA5177": "geist",
244
245
  });
245
- export const implementationBasePoolIdDictAvalanche = lowerCaseKeys({
246
+ export var implementationBasePoolIdDictAvalanche = lowerCaseKeys({
246
247
  "0xA237034249290De2B07988Ac64b96f22c0E76fE0": "aave",
247
248
  "0xc50C05Ca1f8C2346664bd0d4a1eb6aC1Da38414f": "aave",
248
249
  "0xa27f39E9C21b3376F43266E13Ad5A5d6E9BdB320": "ren",
249
250
  "0x505C34ED8dBE96d2D5C7D83158aA844887770970": "ren",
250
251
  });
251
- export const implementationBasePoolIdDictArbitrum = lowerCaseKeys({
252
+ export var implementationBasePoolIdDictArbitrum = lowerCaseKeys({
252
253
  "0x09672362833d8f703D5395ef3252D4Bfa51c15ca": "2pool",
253
254
  "0xBE175115BF33E12348ff77CcfEE4726866A0Fbd5": "2pool",
254
255
  "0x094d12e5b541784701FD8d65F11fc0598FBC6332": "ren",
@@ -256,20 +257,20 @@ export const implementationBasePoolIdDictArbitrum = lowerCaseKeys({
256
257
  "0x8DEb66a4A40E370355bEe35f12E55Fe9c755d686": "factory-v2-41",
257
258
  "0x3edE9b145F82e9e46C03f8A8F67B77aEE847b632": "factory-v2-41", // fraxbp
258
259
  });
259
- export const implementationBasePoolIdDictOptimism = lowerCaseKeys({
260
+ export var implementationBasePoolIdDictOptimism = lowerCaseKeys({
260
261
  "0x78CF256256C8089d68Cde634Cf7cDEFb39286470": "3pool",
261
262
  "0xADf698e4d8Df08b3E2c79682891636eF00F6e205": "3pool",
262
263
  "0xe8269B33E47761f552E1a3070119560d5fa8bBD6": "factory-v2-16",
263
264
  "0x114C4042B11a2b16F58Fe1BFe847589a122F678a": "factory-v2-16", // fraxusdc
264
265
  });
265
- export const implementationBasePoolIdDictXDai = lowerCaseKeys({
266
+ export var implementationBasePoolIdDictXDai = lowerCaseKeys({
266
267
  "0x4A5bF7Ab9A8202692051c19B102d3eDD62aaBAE6": "3pool",
267
268
  "0x0B4dc7A945695D11FD83e40B2DfC2B896A02395F": "3pool",
268
269
  });
269
- export const implementationBasePoolIdDictMoonbeam = lowerCaseKeys({});
270
- export const implementationBasePoolIdDictKava = lowerCaseKeys({});
271
- export const implementationBasePoolIdDictCelo = lowerCaseKeys({});
272
- export const basePoolIdZapDictEthereum = {
270
+ export var implementationBasePoolIdDictMoonbeam = lowerCaseKeys({});
271
+ export var implementationBasePoolIdDictKava = lowerCaseKeys({});
272
+ export var implementationBasePoolIdDictCelo = lowerCaseKeys({});
273
+ export var basePoolIdZapDictEthereum = {
273
274
  '3pool': {
274
275
  address: "0xA79828DF1850E8a3A3064576f380D90aECDD3359".toLowerCase(),
275
276
  ABI: factoryDepositABI,
@@ -295,7 +296,7 @@ export const basePoolIdZapDictEthereum = {
295
296
  ABI: Sbtc2MetaZapABI,
296
297
  },
297
298
  };
298
- export const basePoolIdZapDictPolygon = {
299
+ export var basePoolIdZapDictPolygon = {
299
300
  aave: {
300
301
  address: "0x5ab5C56B9db92Ba45a0B46a207286cD83C15C939".toLowerCase(),
301
302
  ABI: MetaUsdZapPolygonABI,
@@ -305,7 +306,7 @@ export const basePoolIdZapDictPolygon = {
305
306
  ABI: MetaBtcZapPolygonABI,
306
307
  },
307
308
  };
308
- export const basePoolIdZapDictFantom = {
309
+ export var basePoolIdZapDictFantom = {
309
310
  '2pool': {
310
311
  address: "0x78D51EB71a62c081550EfcC0a9F9Ea94B2Ef081c".toLowerCase(),
311
312
  ABI: MetaZapFantomABI,
@@ -319,7 +320,7 @@ export const basePoolIdZapDictFantom = {
319
320
  ABI: MetaGeistUsdZapFantomABI,
320
321
  },
321
322
  };
322
- export const basePoolIdZapDictAvalanche = {
323
+ export var basePoolIdZapDictAvalanche = {
323
324
  aave: {
324
325
  address: "0x001E3BA199B4FF4B5B6e97aCD96daFC0E2e4156e".toLowerCase(),
325
326
  ABI: MetaUsdZapPolygonABI,
@@ -329,7 +330,7 @@ export const basePoolIdZapDictAvalanche = {
329
330
  ABI: MetaBtcZapPolygonABI,
330
331
  },
331
332
  };
332
- export const basePoolIdZapDictArbitrum = {
333
+ export var basePoolIdZapDictArbitrum = {
333
334
  "2pool": {
334
335
  address: "0x7544Fe3d184b6B55D6B36c3FCA1157eE0Ba30287".toLowerCase(),
335
336
  ABI: MetaZapFantomABI,
@@ -343,7 +344,7 @@ export const basePoolIdZapDictArbitrum = {
343
344
  ABI: MetaZapFantomABI,
344
345
  },
345
346
  };
346
- export const basePoolIdZapDictOptimism = {
347
+ export var basePoolIdZapDictOptimism = {
347
348
  "3pool": {
348
349
  address: "0x167e42a1c7ab4be03764a2222aac57f5f6754411".toLowerCase(),
349
350
  ABI: factoryDepositABI,
@@ -353,16 +354,16 @@ export const basePoolIdZapDictOptimism = {
353
354
  ABI: MetaZapFantomABI,
354
355
  },
355
356
  };
356
- export const basePoolIdZapDictXDai = {
357
+ export var basePoolIdZapDictXDai = {
357
358
  "3pool": {
358
359
  address: "0x87C067fAc25f123554a0E76596BF28cFa37fD5E9".toLowerCase(),
359
360
  ABI: factoryDepositABI,
360
361
  },
361
362
  };
362
- export const basePoolIdZapDictMoonbeam = {};
363
- export const basePoolIdZapDictKava = {};
364
- export const basePoolIdZapDictCelo = {};
365
- export const FACTORY_CONSTANTS = {
363
+ export var basePoolIdZapDictMoonbeam = {};
364
+ export var basePoolIdZapDictKava = {};
365
+ export var basePoolIdZapDictCelo = {};
366
+ export var FACTORY_CONSTANTS = {
366
367
  1: {
367
368
  implementationABIDict: implementationABIDictEthereum,
368
369
  implementationBasePoolIdDict: implementationBasePoolIdDictEthereum,