@curvefi/api 2.69.7 → 2.69.9
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/constants/coins/index.d.ts +1 -2
- package/lib/constants/coins/index.js +1 -2
- package/lib/constants/factory/crypto.d.ts +0 -5
- package/lib/constants/factory/crypto.js +1 -9
- package/lib/constants/factory/stable.d.ts +0 -4
- package/lib/constants/factory/stable.js +0 -20
- package/lib/constants/network_constants.js +4 -38
- package/lib/constants/pools/index.d.ts +1 -2
- package/lib/constants/pools/index.js +1 -2
- package/lib/constants/volumeNetworks.js +1 -1
- package/lib/curve.js +1 -1
- package/lib/pools/utils.js +0 -5
- package/lib/route-graph.worker.js +0 -1
- package/lib/utils.js +0 -2
- package/package.json +1 -1
- package/lib/constants/abis/factory-v2/DepositZapMetaUsd2Fantom.json +0 -197
- package/lib/constants/abis/fusdt/swap.json +0 -1221
- package/lib/constants/abis/fusdt/zap.json +0 -215
- package/lib/constants/abis/ren-fantom/swap.json +0 -868
- package/lib/constants/abis/tricrypto/swapNoZap.json +0 -1250
- package/lib/constants/coins/fantom.d.ts +0 -5
- package/lib/constants/coins/fantom.js +0 -31
- package/lib/constants/pools/fantom.d.ts +0 -2
- package/lib/constants/pools/fantom.js +0 -185
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { lowerCaseValues } from "../utils.js";
|
|
2
|
-
export const COINS_FANTOM = lowerCaseValues({
|
|
3
|
-
'crv': '0x1E4F97b9f9F913c46F1632781732927B9019C68b',
|
|
4
|
-
// --- USD ---
|
|
5
|
-
'dai': '0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e',
|
|
6
|
-
'usdc': '0x04068da6c83afcfa0e13ba15a6696662335d5b75',
|
|
7
|
-
'fusdt': '0x049d68029688eabf473097a2fc38ef61633a3c7a',
|
|
8
|
-
'idai': '0x04c762a5dF2Fa02FE868F25359E0C259fB811CfE',
|
|
9
|
-
'iusdc': '0x328A7b4d538A2b3942653a9983fdA3C12c571141',
|
|
10
|
-
'ifusdt': '0x70faC71debfD67394D1278D98A29dea79DC6E57A',
|
|
11
|
-
'gdai': '0x07e6332dd090d287d3489245038daf987955dcfb',
|
|
12
|
-
'gusdc': '0xe578c856933d8e1082740bf7661e379aa2a30b26',
|
|
13
|
-
'gfusdt': '0x940f41f0ec9ba1a34cf001cc03347ac092f5f6b5',
|
|
14
|
-
'dai+usdc': '0x27e611fd27b276acbd5ffd632e5eaebec9761e40', // LP token
|
|
15
|
-
'frax': '0xdc301622e621166bd8e82f2ca0a26c13ad0be355',
|
|
16
|
-
// --- BTC ---
|
|
17
|
-
'wbtc': '0x321162Cd933E2Be498Cd2267a90534A804051b11',
|
|
18
|
-
'renbtc': '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
|
|
19
|
-
// --- ETH ---
|
|
20
|
-
'eth': '0x74b23882a30290451A17c44f4F05243b6b58C76d',
|
|
21
|
-
});
|
|
22
|
-
export const cTokensFantom = [
|
|
23
|
-
'0x04c762a5dF2Fa02FE868F25359E0C259fB811CfE', // iDAI
|
|
24
|
-
'0x328A7b4d538A2b3942653a9983fdA3C12c571141', // iUSDC
|
|
25
|
-
'0x70faC71debfD67394D1278D98A29dea79DC6E57A', // iFUSDT
|
|
26
|
-
].map((a) => a.toLowerCase());
|
|
27
|
-
export const aTokensFantom = [
|
|
28
|
-
'0x07e6332dd090d287d3489245038daf987955dcfb', // gDAI
|
|
29
|
-
'0xe578c856933d8e1082740bf7661e379aa2a30b26', // gUSDC
|
|
30
|
-
'0x940f41f0ec9ba1a34cf001cc03347ac092f5f6b5', // gfUSDT
|
|
31
|
-
].map((a) => a.toLowerCase());
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { lowerCasePoolDataAddresses } from "../utils.js";
|
|
2
|
-
import twopoolSwapABI from '../abis/2pool/swap.json' with { type: 'json' };
|
|
3
|
-
import fusdtSwapABI from '../abis/fusdt/swap.json' with { type: 'json' };
|
|
4
|
-
import fusdtZapABI from '../abis/fusdt/zap.json' with { type: 'json' };
|
|
5
|
-
import renSwapABI from '../abis/ren-fantom/swap.json' with { type: 'json' };
|
|
6
|
-
import triCryptoSwapNoZap from '../abis/tricrypto/swapNoZap.json' with { type: 'json' };
|
|
7
|
-
import ibSwapABI from '../abis/ib/swap.json' with { type: 'json' };
|
|
8
|
-
import aaveSwapABI from '../abis/aave/swap.json' with { type: 'json' };
|
|
9
|
-
// import paaveRewardsabi from '../abis/paave/rewards.json' with { type: 'json' };
|
|
10
|
-
import gaugeChildABI from '../abis/gauge_child.json' with { type: 'json' };
|
|
11
|
-
import gaugeRewardsOnlyABI from '../abis/gauge_rewards_only.json' with { type: 'json' };
|
|
12
|
-
import streamerABI from '../abis/streamer.json' with { type: 'json' };
|
|
13
|
-
export const POOLS_DATA_FANTOM = lowerCasePoolDataAddresses({
|
|
14
|
-
'2pool': {
|
|
15
|
-
name: "2pool",
|
|
16
|
-
full_name: "2pool",
|
|
17
|
-
symbol: "2pool",
|
|
18
|
-
reference_asset: "USD",
|
|
19
|
-
swap_address: '0x27e611fd27b276acbd5ffd632e5eaebec9761e40',
|
|
20
|
-
token_address: '0x27e611fd27b276acbd5ffd632e5eaebec9761e40',
|
|
21
|
-
// old_gauge: '0x0a53FaDa2d943057C47A301D25a4D9b3B8e01e8E', // Unused
|
|
22
|
-
// old_gauge: '0x8866414733F22295b7563f9C5299715D2D76CAf4',
|
|
23
|
-
gauge_address: '0x15bB164F9827De760174d3d3dAD6816eF50dE13c',
|
|
24
|
-
is_plain: true,
|
|
25
|
-
underlying_coins: ['DAI', 'USDC'],
|
|
26
|
-
wrapped_coins: ['DAI', 'USDC'],
|
|
27
|
-
underlying_coin_addresses: [
|
|
28
|
-
'0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e',
|
|
29
|
-
'0x04068da6c83afcfa0e13ba15a6696662335d5b75',
|
|
30
|
-
],
|
|
31
|
-
wrapped_coin_addresses: [
|
|
32
|
-
'0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e',
|
|
33
|
-
'0x04068da6c83afcfa0e13ba15a6696662335d5b75',
|
|
34
|
-
],
|
|
35
|
-
underlying_decimals: [18, 6],
|
|
36
|
-
wrapped_decimals: [18, 6],
|
|
37
|
-
swap_abi: twopoolSwapABI,
|
|
38
|
-
gauge_abi: gaugeChildABI,
|
|
39
|
-
},
|
|
40
|
-
fusdt: {
|
|
41
|
-
name: "fusdt",
|
|
42
|
-
full_name: "fusdt",
|
|
43
|
-
symbol: "fusdt",
|
|
44
|
-
reference_asset: "USD",
|
|
45
|
-
swap_address: '0x92d5ebf3593a92888c25c0abef126583d4b5312e',
|
|
46
|
-
token_address: '0x92d5ebf3593a92888c25c0abef126583d4b5312e',
|
|
47
|
-
// old_gauge: '0x4f3E8F405CF5aFC05D68142F3783bDfE13811522', // Unused
|
|
48
|
-
gauge_address: '0x06e3C4da96fd076b97b7ca3Ae23527314b6140dF', // Old non-cross-chain gauge
|
|
49
|
-
deposit_address: '0xa42bd395f183726d1a8774cfa795771f8acfd777',
|
|
50
|
-
sCurveRewards_address: '0xfe1a3dd8b169fb5bf0d5dbfe813d956f39ff6310',
|
|
51
|
-
is_meta: true,
|
|
52
|
-
base_pool: '2pool',
|
|
53
|
-
underlying_coins: ['fUSDT', 'DAI', 'USDC'],
|
|
54
|
-
wrapped_coins: ['fUSDT', 'DAI+USDC'],
|
|
55
|
-
underlying_coin_addresses: [
|
|
56
|
-
'0x049d68029688eabf473097a2fc38ef61633a3c7a',
|
|
57
|
-
'0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e',
|
|
58
|
-
'0x04068da6c83afcfa0e13ba15a6696662335d5b75',
|
|
59
|
-
],
|
|
60
|
-
wrapped_coin_addresses: [
|
|
61
|
-
'0x049d68029688eabf473097a2fc38ef61633a3c7a',
|
|
62
|
-
'0x27e611fd27b276acbd5ffd632e5eaebec9761e40',
|
|
63
|
-
],
|
|
64
|
-
underlying_decimals: [6, 18, 6],
|
|
65
|
-
wrapped_decimals: [6, 18],
|
|
66
|
-
swap_abi: fusdtSwapABI,
|
|
67
|
-
gauge_abi: gaugeRewardsOnlyABI,
|
|
68
|
-
deposit_abi: fusdtZapABI,
|
|
69
|
-
sCurveRewards_abi: streamerABI,
|
|
70
|
-
},
|
|
71
|
-
ren: {
|
|
72
|
-
name: "ren",
|
|
73
|
-
full_name: "ren",
|
|
74
|
-
symbol: "ren",
|
|
75
|
-
reference_asset: "BTC",
|
|
76
|
-
is_plain: true,
|
|
77
|
-
swap_address: '0x3eF6A01A0f81D6046290f3e2A8c5b843e738E604',
|
|
78
|
-
token_address: '0x5B5CFE992AdAC0C9D48E05854B2d91C73a003858',
|
|
79
|
-
// old_gauge: '0x6600e98b71dabfD4A8Cac03b302B0189Adb86Afb',
|
|
80
|
-
// gauge_address: '0xBdFF0C27dd073C119ebcb1299a68A6A92aE607F0',
|
|
81
|
-
gauge_address: '0xbC38bD19227F91424eD4132F630f51C9A42Fa338',
|
|
82
|
-
underlying_coins: ['WBTC', 'renBTC'],
|
|
83
|
-
wrapped_coins: ['WBTC', 'renBTC'],
|
|
84
|
-
underlying_coin_addresses: [
|
|
85
|
-
'0x321162Cd933E2Be498Cd2267a90534A804051b11',
|
|
86
|
-
'0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
|
|
87
|
-
],
|
|
88
|
-
wrapped_coin_addresses: [
|
|
89
|
-
'0x321162Cd933E2Be498Cd2267a90534A804051b11',
|
|
90
|
-
'0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
|
|
91
|
-
],
|
|
92
|
-
underlying_decimals: [8, 8],
|
|
93
|
-
wrapped_decimals: [8, 8],
|
|
94
|
-
swap_abi: renSwapABI,
|
|
95
|
-
gauge_abi: gaugeChildABI,
|
|
96
|
-
},
|
|
97
|
-
tricrypto: {
|
|
98
|
-
name: "tricrypto",
|
|
99
|
-
full_name: "tricrypto",
|
|
100
|
-
symbol: "tricrypto",
|
|
101
|
-
reference_asset: "CRYPTO",
|
|
102
|
-
swap_address: '0x3a1659Ddcf2339Be3aeA159cA010979FB49155FF',
|
|
103
|
-
token_address: '0x58e57cA18B7A47112b877E31929798Cd3D703b0f',
|
|
104
|
-
// gauge_address: '0x00702BbDEaD24C40647f235F15971dB0867F6bdB',
|
|
105
|
-
gauge_address: '0x319E268f0A4C85D404734ee7958857F5891506d7',
|
|
106
|
-
is_crypto: true,
|
|
107
|
-
is_plain: true,
|
|
108
|
-
underlying_coins: ['fUSDT', 'WBTC', 'ETH'],
|
|
109
|
-
wrapped_coins: ['fUSDT', 'WBTC', 'ETH'],
|
|
110
|
-
underlying_coin_addresses: [
|
|
111
|
-
'0x049d68029688eAbF473097a2fC38ef61633A3C7A',
|
|
112
|
-
'0x321162Cd933E2Be498Cd2267a90534A804051b11',
|
|
113
|
-
'0x74b23882a30290451A17c44f4F05243b6b58C76d',
|
|
114
|
-
],
|
|
115
|
-
wrapped_coin_addresses: [
|
|
116
|
-
'0x049d68029688eAbF473097a2fC38ef61633A3C7A',
|
|
117
|
-
'0x321162Cd933E2Be498Cd2267a90534A804051b11',
|
|
118
|
-
'0x74b23882a30290451A17c44f4F05243b6b58C76d',
|
|
119
|
-
],
|
|
120
|
-
underlying_decimals: [6, 8, 18],
|
|
121
|
-
wrapped_decimals: [6, 8, 18],
|
|
122
|
-
swap_abi: triCryptoSwapNoZap,
|
|
123
|
-
gauge_abi: gaugeChildABI,
|
|
124
|
-
},
|
|
125
|
-
ib: {
|
|
126
|
-
name: "ironbank",
|
|
127
|
-
full_name: "ironbank",
|
|
128
|
-
symbol: "ib",
|
|
129
|
-
reference_asset: "USD",
|
|
130
|
-
swap_address: '0x4FC8D635c3cB1d0aa123859e2B2587d0FF2707b1',
|
|
131
|
-
token_address: '0xDf38ec60c0eC001142a33eAa039e49E9b84E64ED',
|
|
132
|
-
gauge_address: '0xDee85272EAe1aB4afBc6433F4d819BaBC9c7045A', // Old non-cross-chain gauge
|
|
133
|
-
sCurveRewards_address: '0x92bbf58c2a4514d44343b987d608627eb7d1d24f',
|
|
134
|
-
is_lending: true,
|
|
135
|
-
underlying_coins: ['DAI', 'USDC', 'fUSDT'],
|
|
136
|
-
wrapped_coins: ['iDAI', 'iUSDC', 'iFUSDT'],
|
|
137
|
-
underlying_coin_addresses: [
|
|
138
|
-
'0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E',
|
|
139
|
-
'0x04068DA6C83AFCFA0e13ba15A6696662335D5B75',
|
|
140
|
-
'0x049d68029688eAbF473097a2fC38ef61633A3C7A',
|
|
141
|
-
],
|
|
142
|
-
wrapped_coin_addresses: [
|
|
143
|
-
'0x04c762a5dF2Fa02FE868F25359E0C259fB811CfE',
|
|
144
|
-
'0x328A7b4d538A2b3942653a9983fdA3C12c571141',
|
|
145
|
-
'0x70faC71debfD67394D1278D98A29dea79DC6E57A',
|
|
146
|
-
],
|
|
147
|
-
underlying_decimals: [18, 6, 6],
|
|
148
|
-
wrapped_decimals: [8, 8, 8],
|
|
149
|
-
use_lending: [true, true, true],
|
|
150
|
-
swap_abi: ibSwapABI,
|
|
151
|
-
gauge_abi: gaugeRewardsOnlyABI,
|
|
152
|
-
sCurveRewards_abi: streamerABI,
|
|
153
|
-
},
|
|
154
|
-
geist: {
|
|
155
|
-
name: "geist",
|
|
156
|
-
full_name: "geist",
|
|
157
|
-
symbol: "geist",
|
|
158
|
-
reference_asset: "USD",
|
|
159
|
-
swap_address: '0x0fa949783947Bf6c1b171DB13AEACBB488845B3f',
|
|
160
|
-
token_address: '0xD02a30d33153877BC20e5721ee53DeDEE0422B2F',
|
|
161
|
-
// gauge_address: '0xd4F94D0aaa640BBb72b5EEc2D85F6D114D81a88E',
|
|
162
|
-
gauge_address: '0xF7b9c402c4D6c2eDbA04a7a515b53D11B1E9b2cc',
|
|
163
|
-
is_lending: true,
|
|
164
|
-
underlying_coins: ['DAI', 'USDC', 'fUSDT'],
|
|
165
|
-
wrapped_coins: ['gDAI', 'gUSDC', 'gfUSDT'],
|
|
166
|
-
underlying_coin_addresses: [
|
|
167
|
-
'0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e',
|
|
168
|
-
'0x04068da6c83afcfa0e13ba15a6696662335d5b75',
|
|
169
|
-
'0x049d68029688eabf473097a2fc38ef61633a3c7a',
|
|
170
|
-
],
|
|
171
|
-
wrapped_coin_addresses: [
|
|
172
|
-
'0x07e6332dd090d287d3489245038daf987955dcfb',
|
|
173
|
-
'0xe578c856933d8e1082740bf7661e379aa2a30b26',
|
|
174
|
-
'0x940f41f0ec9ba1a34cf001cc03347ac092f5f6b5',
|
|
175
|
-
],
|
|
176
|
-
underlying_decimals: [18, 6, 6],
|
|
177
|
-
wrapped_decimals: [18, 6, 6],
|
|
178
|
-
use_lending: [true, true, true],
|
|
179
|
-
swap_abi: aaveSwapABI,
|
|
180
|
-
gauge_abi: gaugeChildABI,
|
|
181
|
-
// sCurveRewards_abi: paaveRewardsabi,
|
|
182
|
-
// sCurveRewards_address: '0xd4f94d0aaa640bbb72b5eec2d85f6d114d81a88e',
|
|
183
|
-
// reward_token: "0xd8321aa83fb0a4ecd6348d4577431310a6e0814d",
|
|
184
|
-
},
|
|
185
|
-
});
|