@gearbox-protocol/sdk 0.0.15 → 0.0.18
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/core/priceFeeds.js +36 -23
- package/package.json +1 -1
- package/src/core/priceFeeds.ts +36 -23
package/lib/core/priceFeeds.js
CHANGED
|
@@ -8,27 +8,32 @@ exports.priceFeedsByNetwork = {
|
|
|
8
8
|
"1INCH": {
|
|
9
9
|
priceFeedETH: {
|
|
10
10
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
11
|
-
address: "0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8"
|
|
11
|
+
address: "0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8",
|
|
12
|
+
kovan: "0x5b65757C2d37c4FDc3c029ECb8F2C7AD3FD361C9"
|
|
12
13
|
},
|
|
13
14
|
priceFeedUSD: {
|
|
14
15
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
15
|
-
address: "0xc929ad75B72593967DE83E7F7Cda0493458261D9"
|
|
16
|
+
address: "0xc929ad75B72593967DE83E7F7Cda0493458261D9",
|
|
17
|
+
kovan: "0xb32946c38C4F2e3e44Ce2aB059BfFec163816A4E"
|
|
16
18
|
}
|
|
17
19
|
},
|
|
18
20
|
AAVE: {
|
|
19
21
|
priceFeedETH: {
|
|
20
22
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
21
|
-
address: "0x6Df09E975c830ECae5bd4eD9d90f3A95a4f88012"
|
|
23
|
+
address: "0x6Df09E975c830ECae5bd4eD9d90f3A95a4f88012",
|
|
24
|
+
kovan: "0x3e12e9aE09F4ce9D5809E4b863bF4eef16f9949C"
|
|
22
25
|
},
|
|
23
26
|
priceFeedUSD: {
|
|
24
27
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
25
|
-
address: "0x547a514d5e3769680Ce22B2361c10Ea13619e8a9"
|
|
28
|
+
address: "0x547a514d5e3769680Ce22B2361c10Ea13619e8a9",
|
|
29
|
+
kovan: "0xF1594a023a3e061765c11af09EC6B7c63e2e9Ab5"
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
COMP: {
|
|
29
33
|
priceFeedETH: {
|
|
30
34
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
31
|
-
address: "0x1B39Ee86Ec5979ba5C322b826B3ECb8C79991699"
|
|
35
|
+
address: "0x1B39Ee86Ec5979ba5C322b826B3ECb8C79991699",
|
|
36
|
+
kovan: "0x2d2fAc1CBf67b24d3643ce084f3758115b1dCFe0"
|
|
32
37
|
},
|
|
33
38
|
priceFeedUSD: {
|
|
34
39
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
@@ -39,11 +44,13 @@ exports.priceFeedsByNetwork = {
|
|
|
39
44
|
CRV: {
|
|
40
45
|
priceFeedETH: {
|
|
41
46
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
42
|
-
address: "0x8a12Be339B0cD1829b91Adc01977caa5E9ac121e"
|
|
47
|
+
address: "0x8a12Be339B0cD1829b91Adc01977caa5E9ac121e",
|
|
48
|
+
kovan: "0x57F80b54722B294F0C1942AA70468Bb46437AD19"
|
|
43
49
|
},
|
|
44
50
|
priceFeedUSD: {
|
|
45
51
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
46
|
-
address: "0xcd627aa160a6fa45eb793d19ef54f5062f20f33f"
|
|
52
|
+
address: "0xcd627aa160a6fa45eb793d19ef54f5062f20f33f",
|
|
53
|
+
kovan: "0x55fe324Ece17b6902c2b3776c1baB1095Eb5deB0"
|
|
47
54
|
}
|
|
48
55
|
},
|
|
49
56
|
DAI: {
|
|
@@ -61,27 +68,32 @@ exports.priceFeedsByNetwork = {
|
|
|
61
68
|
DPI: {
|
|
62
69
|
priceFeedETH: {
|
|
63
70
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
64
|
-
address: "0x029849bbc0b1d93b85a8b6190e979fd38F5760E2"
|
|
71
|
+
address: "0x029849bbc0b1d93b85a8b6190e979fd38F5760E2",
|
|
72
|
+
kovan: "0x4c1b676445935dA58a48b6dA8B2564684d80fAEE"
|
|
65
73
|
},
|
|
66
74
|
priceFeedUSD: {
|
|
67
75
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
68
|
-
address: "0xD2A593BF7594aCE1faD597adb697b5645d5edDB2"
|
|
76
|
+
address: "0xD2A593BF7594aCE1faD597adb697b5645d5edDB2",
|
|
77
|
+
kovan: "0x39EcBDd1069C795e65Aa3355cC42F3acD29797d8"
|
|
69
78
|
}
|
|
70
79
|
},
|
|
71
80
|
FEI: {
|
|
72
81
|
priceFeedETH: {
|
|
73
82
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
74
|
-
address: "0x7f0d2c2838c6ac24443d13e23d99490017bde370"
|
|
83
|
+
address: "0x7f0d2c2838c6ac24443d13e23d99490017bde370",
|
|
84
|
+
kovan: "0x1E13BFc6e358410f4F94EAC84C1008A138FB115B"
|
|
75
85
|
},
|
|
76
86
|
priceFeedUSD: {
|
|
77
87
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
78
|
-
address: "0x31e0a88fecb6ec0a411dbe0e9e76391498296ee9"
|
|
88
|
+
address: "0x31e0a88fecb6ec0a411dbe0e9e76391498296ee9",
|
|
89
|
+
kovan: "0x9FE550626246234EF48a1176e8e2452A14CbbA24"
|
|
79
90
|
}
|
|
80
91
|
},
|
|
81
92
|
GUSD: {
|
|
82
93
|
priceFeedUSD: {
|
|
83
94
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
84
|
-
address: "0xa89f5d2365ce98B3cD68012b6f503ab1416245Fc"
|
|
95
|
+
address: "0xa89f5d2365ce98B3cD68012b6f503ab1416245Fc",
|
|
96
|
+
kovan: "0x36AD5755A58c5faB253D5e40e7F0f86293d6A5f9"
|
|
85
97
|
}
|
|
86
98
|
},
|
|
87
99
|
LINK: {
|
|
@@ -111,17 +123,20 @@ exports.priceFeedsByNetwork = {
|
|
|
111
123
|
SUSHI: {
|
|
112
124
|
priceFeedETH: {
|
|
113
125
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
114
|
-
address: "0xe572CeF69f43c2E488b33924AF04BDacE19079cf"
|
|
126
|
+
address: "0xe572CeF69f43c2E488b33924AF04BDacE19079cf",
|
|
127
|
+
kovan: "0x6A8b2Aae8bf973EdA172C1f0e450c9D4e3C2E360"
|
|
115
128
|
},
|
|
116
129
|
priceFeedUSD: {
|
|
117
130
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
118
|
-
address: "0xcc70f09a6cc17553b2e31954cd36e4a2d89501f7"
|
|
131
|
+
address: "0xcc70f09a6cc17553b2e31954cd36e4a2d89501f7",
|
|
132
|
+
kovan: "0x40D447115370C4B65A0d8C63275033C54A3ed61F"
|
|
119
133
|
}
|
|
120
134
|
},
|
|
121
135
|
UNI: {
|
|
122
136
|
priceFeedETH: {
|
|
123
137
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
124
|
-
address: "0xD6aA3D25116d8dA79Ea0246c4826EB951872e02e"
|
|
138
|
+
address: "0xD6aA3D25116d8dA79Ea0246c4826EB951872e02e",
|
|
139
|
+
kovan: "0x006A9A6c0A6b5230d89f05eb1e4603AA6B1508BE"
|
|
125
140
|
},
|
|
126
141
|
priceFeedUSD: {
|
|
127
142
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
@@ -156,7 +171,8 @@ exports.priceFeedsByNetwork = {
|
|
|
156
171
|
WBTC: {
|
|
157
172
|
priceFeedETH: {
|
|
158
173
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
159
|
-
address: "0xdeb288F737066589598e9214E782fa5A8eD689e8"
|
|
174
|
+
address: "0xdeb288F737066589598e9214E782fa5A8eD689e8",
|
|
175
|
+
kovan: "0xB4F231198CAA3446fd4623e59f2EF27e7A58A54b"
|
|
160
176
|
},
|
|
161
177
|
priceFeedUSD: {
|
|
162
178
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
@@ -174,7 +190,8 @@ exports.priceFeedsByNetwork = {
|
|
|
174
190
|
YFI: {
|
|
175
191
|
priceFeedETH: {
|
|
176
192
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
177
|
-
address: "0x7c5d4F8345e66f68099581Db340cd65B078C41f4"
|
|
193
|
+
address: "0x7c5d4F8345e66f68099581Db340cd65B078C41f4",
|
|
194
|
+
kovan: "0x29d651D233ffFdec4Df5244a9cE842FB253fAA09"
|
|
178
195
|
},
|
|
179
196
|
priceFeedUSD: {
|
|
180
197
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
@@ -193,9 +210,9 @@ exports.priceFeedsByNetwork = {
|
|
|
193
210
|
}
|
|
194
211
|
},
|
|
195
212
|
FTM: {
|
|
196
|
-
|
|
213
|
+
priceFeedETH: {
|
|
197
214
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
198
|
-
address: "
|
|
215
|
+
address: "0x2de7e4a9488488e0058b95854cc2f7955b35dc9b"
|
|
199
216
|
}
|
|
200
217
|
},
|
|
201
218
|
CVX: {
|
|
@@ -251,10 +268,6 @@ exports.priceFeedsByNetwork = {
|
|
|
251
268
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
252
269
|
address: "0x91e9331556ed76c9393055719986409e11b56f73"
|
|
253
270
|
},
|
|
254
|
-
priceFeedUSD: {
|
|
255
|
-
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
256
|
-
address: "0xd660db62ac9dfafdb401f24268eb285120eb11ed"
|
|
257
|
-
}
|
|
258
271
|
},
|
|
259
272
|
yvDAI: {
|
|
260
273
|
priceFeedETH: {
|
package/package.json
CHANGED
package/src/core/priceFeeds.ts
CHANGED
|
@@ -8,29 +8,34 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
8
8
|
"1INCH": {
|
|
9
9
|
priceFeedETH: {
|
|
10
10
|
type: OracleType.CHAINLINK_ORACLE,
|
|
11
|
-
address: "0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8"
|
|
11
|
+
address: "0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8",
|
|
12
|
+
kovan: "0x5b65757C2d37c4FDc3c029ECb8F2C7AD3FD361C9"
|
|
12
13
|
},
|
|
13
14
|
priceFeedUSD: {
|
|
14
15
|
type: OracleType.CHAINLINK_ORACLE,
|
|
15
|
-
address: "0xc929ad75B72593967DE83E7F7Cda0493458261D9"
|
|
16
|
+
address: "0xc929ad75B72593967DE83E7F7Cda0493458261D9",
|
|
17
|
+
kovan: "0xb32946c38C4F2e3e44Ce2aB059BfFec163816A4E"
|
|
16
18
|
}
|
|
17
19
|
},
|
|
18
20
|
|
|
19
21
|
AAVE: {
|
|
20
22
|
priceFeedETH: {
|
|
21
23
|
type: OracleType.CHAINLINK_ORACLE,
|
|
22
|
-
address: "0x6Df09E975c830ECae5bd4eD9d90f3A95a4f88012"
|
|
24
|
+
address: "0x6Df09E975c830ECae5bd4eD9d90f3A95a4f88012",
|
|
25
|
+
kovan: "0x3e12e9aE09F4ce9D5809E4b863bF4eef16f9949C"
|
|
23
26
|
},
|
|
24
27
|
priceFeedUSD: {
|
|
25
28
|
type: OracleType.CHAINLINK_ORACLE,
|
|
26
|
-
address: "0x547a514d5e3769680Ce22B2361c10Ea13619e8a9"
|
|
29
|
+
address: "0x547a514d5e3769680Ce22B2361c10Ea13619e8a9",
|
|
30
|
+
kovan: "0xF1594a023a3e061765c11af09EC6B7c63e2e9Ab5"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
|
|
30
34
|
COMP: {
|
|
31
35
|
priceFeedETH: {
|
|
32
36
|
type: OracleType.CHAINLINK_ORACLE,
|
|
33
|
-
address: "0x1B39Ee86Ec5979ba5C322b826B3ECb8C79991699"
|
|
37
|
+
address: "0x1B39Ee86Ec5979ba5C322b826B3ECb8C79991699",
|
|
38
|
+
kovan: "0x2d2fAc1CBf67b24d3643ce084f3758115b1dCFe0"
|
|
34
39
|
},
|
|
35
40
|
priceFeedUSD: {
|
|
36
41
|
type: OracleType.CHAINLINK_ORACLE,
|
|
@@ -42,11 +47,13 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
42
47
|
CRV: {
|
|
43
48
|
priceFeedETH: {
|
|
44
49
|
type: OracleType.CHAINLINK_ORACLE,
|
|
45
|
-
address: "0x8a12Be339B0cD1829b91Adc01977caa5E9ac121e"
|
|
50
|
+
address: "0x8a12Be339B0cD1829b91Adc01977caa5E9ac121e",
|
|
51
|
+
kovan: "0x57F80b54722B294F0C1942AA70468Bb46437AD19"
|
|
46
52
|
},
|
|
47
53
|
priceFeedUSD: {
|
|
48
54
|
type: OracleType.CHAINLINK_ORACLE,
|
|
49
|
-
address: "0xcd627aa160a6fa45eb793d19ef54f5062f20f33f"
|
|
55
|
+
address: "0xcd627aa160a6fa45eb793d19ef54f5062f20f33f",
|
|
56
|
+
kovan: "0x55fe324Ece17b6902c2b3776c1baB1095Eb5deB0"
|
|
50
57
|
}
|
|
51
58
|
},
|
|
52
59
|
|
|
@@ -66,29 +73,34 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
66
73
|
DPI: {
|
|
67
74
|
priceFeedETH: {
|
|
68
75
|
type: OracleType.CHAINLINK_ORACLE,
|
|
69
|
-
address: "0x029849bbc0b1d93b85a8b6190e979fd38F5760E2"
|
|
76
|
+
address: "0x029849bbc0b1d93b85a8b6190e979fd38F5760E2",
|
|
77
|
+
kovan: "0x4c1b676445935dA58a48b6dA8B2564684d80fAEE"
|
|
70
78
|
},
|
|
71
79
|
priceFeedUSD: {
|
|
72
80
|
type: OracleType.CHAINLINK_ORACLE,
|
|
73
|
-
address: "0xD2A593BF7594aCE1faD597adb697b5645d5edDB2"
|
|
81
|
+
address: "0xD2A593BF7594aCE1faD597adb697b5645d5edDB2",
|
|
82
|
+
kovan: "0x39EcBDd1069C795e65Aa3355cC42F3acD29797d8"
|
|
74
83
|
}
|
|
75
84
|
},
|
|
76
85
|
|
|
77
86
|
FEI: {
|
|
78
87
|
priceFeedETH: {
|
|
79
88
|
type: OracleType.CHAINLINK_ORACLE,
|
|
80
|
-
address: "0x7f0d2c2838c6ac24443d13e23d99490017bde370"
|
|
89
|
+
address: "0x7f0d2c2838c6ac24443d13e23d99490017bde370",
|
|
90
|
+
kovan: "0x1E13BFc6e358410f4F94EAC84C1008A138FB115B"
|
|
81
91
|
},
|
|
82
92
|
priceFeedUSD: {
|
|
83
93
|
type: OracleType.CHAINLINK_ORACLE,
|
|
84
|
-
address: "0x31e0a88fecb6ec0a411dbe0e9e76391498296ee9"
|
|
94
|
+
address: "0x31e0a88fecb6ec0a411dbe0e9e76391498296ee9",
|
|
95
|
+
kovan: "0x9FE550626246234EF48a1176e8e2452A14CbbA24"
|
|
85
96
|
}
|
|
86
97
|
},
|
|
87
98
|
|
|
88
99
|
GUSD: {
|
|
89
100
|
priceFeedUSD: {
|
|
90
101
|
type: OracleType.CHAINLINK_ORACLE,
|
|
91
|
-
address: "0xa89f5d2365ce98B3cD68012b6f503ab1416245Fc"
|
|
102
|
+
address: "0xa89f5d2365ce98B3cD68012b6f503ab1416245Fc",
|
|
103
|
+
kovan: "0x36AD5755A58c5faB253D5e40e7F0f86293d6A5f9"
|
|
92
104
|
}
|
|
93
105
|
},
|
|
94
106
|
|
|
@@ -121,18 +133,21 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
121
133
|
SUSHI: {
|
|
122
134
|
priceFeedETH: {
|
|
123
135
|
type: OracleType.CHAINLINK_ORACLE,
|
|
124
|
-
address: "0xe572CeF69f43c2E488b33924AF04BDacE19079cf"
|
|
136
|
+
address: "0xe572CeF69f43c2E488b33924AF04BDacE19079cf",
|
|
137
|
+
kovan: "0x6A8b2Aae8bf973EdA172C1f0e450c9D4e3C2E360"
|
|
125
138
|
},
|
|
126
139
|
priceFeedUSD: {
|
|
127
140
|
type: OracleType.CHAINLINK_ORACLE,
|
|
128
|
-
address: "0xcc70f09a6cc17553b2e31954cd36e4a2d89501f7"
|
|
141
|
+
address: "0xcc70f09a6cc17553b2e31954cd36e4a2d89501f7",
|
|
142
|
+
kovan: "0x40D447115370C4B65A0d8C63275033C54A3ed61F"
|
|
129
143
|
}
|
|
130
144
|
},
|
|
131
145
|
|
|
132
146
|
UNI: {
|
|
133
147
|
priceFeedETH: {
|
|
134
148
|
type: OracleType.CHAINLINK_ORACLE,
|
|
135
|
-
address: "0xD6aA3D25116d8dA79Ea0246c4826EB951872e02e"
|
|
149
|
+
address: "0xD6aA3D25116d8dA79Ea0246c4826EB951872e02e",
|
|
150
|
+
kovan: "0x006A9A6c0A6b5230d89f05eb1e4603AA6B1508BE"
|
|
136
151
|
},
|
|
137
152
|
priceFeedUSD: {
|
|
138
153
|
type: OracleType.CHAINLINK_ORACLE,
|
|
@@ -170,7 +185,8 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
170
185
|
WBTC: {
|
|
171
186
|
priceFeedETH: {
|
|
172
187
|
type: OracleType.CHAINLINK_ORACLE,
|
|
173
|
-
address: "0xdeb288F737066589598e9214E782fa5A8eD689e8"
|
|
188
|
+
address: "0xdeb288F737066589598e9214E782fa5A8eD689e8",
|
|
189
|
+
kovan: "0xB4F231198CAA3446fd4623e59f2EF27e7A58A54b"
|
|
174
190
|
},
|
|
175
191
|
priceFeedUSD: {
|
|
176
192
|
type: OracleType.CHAINLINK_ORACLE,
|
|
@@ -190,7 +206,8 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
190
206
|
YFI: {
|
|
191
207
|
priceFeedETH: {
|
|
192
208
|
type: OracleType.CHAINLINK_ORACLE,
|
|
193
|
-
address: "0x7c5d4F8345e66f68099581Db340cd65B078C41f4"
|
|
209
|
+
address: "0x7c5d4F8345e66f68099581Db340cd65B078C41f4",
|
|
210
|
+
kovan: "0x29d651D233ffFdec4Df5244a9cE842FB253fAA09"
|
|
194
211
|
},
|
|
195
212
|
priceFeedUSD: {
|
|
196
213
|
type: OracleType.CHAINLINK_ORACLE,
|
|
@@ -211,9 +228,9 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
211
228
|
},
|
|
212
229
|
|
|
213
230
|
FTM: {
|
|
214
|
-
|
|
231
|
+
priceFeedETH: {
|
|
215
232
|
type: OracleType.CHAINLINK_ORACLE,
|
|
216
|
-
address: "
|
|
233
|
+
address: "0x2de7e4a9488488e0058b95854cc2f7955b35dc9b"
|
|
217
234
|
}
|
|
218
235
|
},
|
|
219
236
|
|
|
@@ -273,10 +290,6 @@ export const priceFeedsByNetwork: Record<SupportedTokens, TokenPriceFeedData> =
|
|
|
273
290
|
type: OracleType.CHAINLINK_ORACLE,
|
|
274
291
|
address: "0x91e9331556ed76c9393055719986409e11b56f73"
|
|
275
292
|
},
|
|
276
|
-
priceFeedUSD: {
|
|
277
|
-
type: OracleType.CHAINLINK_ORACLE,
|
|
278
|
-
address: "0xd660db62ac9dfafdb401f24268eb285120eb11ed"
|
|
279
|
-
}
|
|
280
293
|
},
|
|
281
294
|
|
|
282
295
|
yvDAI: {
|