@gearbox-protocol/sdk 2.1.20 → 2.1.22
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: UNLICENSED
|
|
2
|
-
// Gearbox
|
|
3
|
-
// (c) Gearbox Foundation, 2023
|
|
4
|
-
pragma solidity ^0.8.
|
|
2
|
+
// Gearbox. Generalized leverage protocol that allows to take leverage and then use it across other DeFi protocols and platforms in a composable way.
|
|
3
|
+
// (c) Gearbox Foundation, 2023
|
|
4
|
+
pragma solidity ^0.8.17;
|
|
5
5
|
|
|
6
6
|
enum AdapterType {
|
|
7
7
|
ABSTRACT,
|
|
@@ -1171,6 +1171,54 @@ contract PriceFeedDataLive {
|
|
|
1171
1171
|
compoundV2PriceFeedsByNetwork[42161].push(
|
|
1172
1172
|
GenericLPPriceFeedData({lpToken: Tokens.cWETH, underlying: Tokens.WETH})
|
|
1173
1173
|
);
|
|
1174
|
+
|
|
1175
|
+
// ------------------------ MKR ------------------------
|
|
1176
|
+
chainlinkPriceFeedsByNetwork[1].push(
|
|
1177
|
+
ChainlinkPriceFeedData({
|
|
1178
|
+
token: Tokens.MKR,
|
|
1179
|
+
priceFeed: 0xec1D1B3b0443256cc3860e24a46F108e699484Aa,
|
|
1180
|
+
stalenessPeriod: 86400
|
|
1181
|
+
})
|
|
1182
|
+
);
|
|
1183
|
+
chainlinkPriceFeedsByNetwork[42161].push(
|
|
1184
|
+
ChainlinkPriceFeedData({
|
|
1185
|
+
token: Tokens.MKR,
|
|
1186
|
+
priceFeed: 0xdE9f0894670c4EFcacF370426F10C3AD2Cdf147e,
|
|
1187
|
+
stalenessPeriod: 86400
|
|
1188
|
+
})
|
|
1189
|
+
);
|
|
1190
|
+
|
|
1191
|
+
// ------------------------ RPL ------------------------
|
|
1192
|
+
chainlinkPriceFeedsByNetwork[1].push(
|
|
1193
|
+
ChainlinkPriceFeedData({
|
|
1194
|
+
token: Tokens.RPL,
|
|
1195
|
+
priceFeed: 0x4E155eD98aFE9034b7A5962f6C84c86d869daA9d,
|
|
1196
|
+
stalenessPeriod: 86400
|
|
1197
|
+
})
|
|
1198
|
+
);
|
|
1199
|
+
chainlinkPriceFeedsByNetwork[42161].push(
|
|
1200
|
+
ChainlinkPriceFeedData({
|
|
1201
|
+
token: Tokens.RPL,
|
|
1202
|
+
priceFeed: 0xF0b7159BbFc341Cc41E7Cb182216F62c6d40533D,
|
|
1203
|
+
stalenessPeriod: 86400
|
|
1204
|
+
})
|
|
1205
|
+
);
|
|
1206
|
+
|
|
1207
|
+
// ------------------------ APE ------------------------
|
|
1208
|
+
chainlinkPriceFeedsByNetwork[1].push(
|
|
1209
|
+
ChainlinkPriceFeedData({
|
|
1210
|
+
token: Tokens.APE,
|
|
1211
|
+
priceFeed: 0xD10aBbC76679a20055E167BB80A24ac851b37056,
|
|
1212
|
+
stalenessPeriod: 86400
|
|
1213
|
+
})
|
|
1214
|
+
);
|
|
1215
|
+
chainlinkPriceFeedsByNetwork[42161].push(
|
|
1216
|
+
ChainlinkPriceFeedData({
|
|
1217
|
+
token: Tokens.APE,
|
|
1218
|
+
priceFeed: 0x221912ce795669f628c51c69b7d0873eDA9C03bB,
|
|
1219
|
+
stalenessPeriod: 86400
|
|
1220
|
+
})
|
|
1221
|
+
);
|
|
1174
1222
|
}
|
|
1175
1223
|
|
|
1176
1224
|
function chainlinkPriceFeeds(uint256 index) external view returns (ChainlinkPriceFeedData memory) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: UNLICENSED
|
|
2
|
-
// Gearbox
|
|
3
|
-
// (c) Gearbox Foundation, 2023
|
|
4
|
-
pragma solidity ^0.8.
|
|
2
|
+
// Gearbox. Generalized leverage protocol that allows to take leverage and then use it across other DeFi protocols and platforms in a composable way.
|
|
3
|
+
// (c) Gearbox Foundation, 2023
|
|
4
|
+
pragma solidity ^0.8.17;
|
|
5
5
|
|
|
6
6
|
enum PriceFeedType {
|
|
7
7
|
CHAINLINK_ORACLE,
|
package/contracts/Tokens.sol
CHANGED
package/contracts/TokensData.sol
CHANGED
|
@@ -278,6 +278,30 @@ contract TokensDataLive {
|
|
|
278
278
|
tokenType: TokenType.NORMAL_TOKEN
|
|
279
279
|
})
|
|
280
280
|
);
|
|
281
|
+
tokenDataByNetwork[1].push(
|
|
282
|
+
TokenData({
|
|
283
|
+
id: Tokens.MKR,
|
|
284
|
+
addr: 0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2,
|
|
285
|
+
symbol: "MKR",
|
|
286
|
+
tokenType: TokenType.NORMAL_TOKEN
|
|
287
|
+
})
|
|
288
|
+
);
|
|
289
|
+
tokenDataByNetwork[1].push(
|
|
290
|
+
TokenData({
|
|
291
|
+
id: Tokens.RPL,
|
|
292
|
+
addr: 0xB4EFd85c19999D84251304bDA99E90B92300Bd93,
|
|
293
|
+
symbol: "RPL",
|
|
294
|
+
tokenType: TokenType.NORMAL_TOKEN
|
|
295
|
+
})
|
|
296
|
+
);
|
|
297
|
+
tokenDataByNetwork[1].push(
|
|
298
|
+
TokenData({
|
|
299
|
+
id: Tokens.APE,
|
|
300
|
+
addr: 0x4d224452801ACEd8B2F0aebE155379bb5D594381,
|
|
301
|
+
symbol: "APE",
|
|
302
|
+
tokenType: TokenType.NORMAL_TOKEN
|
|
303
|
+
})
|
|
304
|
+
);
|
|
281
305
|
tokenDataByNetwork[1].push(
|
|
282
306
|
TokenData({
|
|
283
307
|
id: Tokens._3Crv,
|
|
@@ -791,11 +791,11 @@ exports.priceFeedsByToken = {
|
|
|
791
791
|
feeds: {
|
|
792
792
|
Mainnet: {
|
|
793
793
|
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
794
|
-
address: "
|
|
794
|
+
address: "0xec1D1B3b0443256cc3860e24a46F108e699484Aa",
|
|
795
795
|
},
|
|
796
796
|
Arbitrum: {
|
|
797
797
|
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
798
|
-
address: "
|
|
798
|
+
address: "0xdE9f0894670c4EFcacF370426F10C3AD2Cdf147e",
|
|
799
799
|
},
|
|
800
800
|
},
|
|
801
801
|
},
|
|
@@ -804,11 +804,11 @@ exports.priceFeedsByToken = {
|
|
|
804
804
|
feeds: {
|
|
805
805
|
Mainnet: {
|
|
806
806
|
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
807
|
-
address: "
|
|
807
|
+
address: "0x4E155eD98aFE9034b7A5962f6C84c86d869daA9d",
|
|
808
808
|
},
|
|
809
809
|
Arbitrum: {
|
|
810
810
|
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
811
|
-
address: "
|
|
811
|
+
address: "0xF0b7159BbFc341Cc41E7Cb182216F62c6d40533D",
|
|
812
812
|
},
|
|
813
813
|
},
|
|
814
814
|
},
|
|
@@ -817,11 +817,11 @@ exports.priceFeedsByToken = {
|
|
|
817
817
|
feeds: {
|
|
818
818
|
Mainnet: {
|
|
819
819
|
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
820
|
-
address: "
|
|
820
|
+
address: "0xD10aBbC76679a20055E167BB80A24ac851b37056",
|
|
821
821
|
},
|
|
822
822
|
Arbitrum: {
|
|
823
823
|
type: pricefeedType_1.PriceFeedType.CHAINLINK_ORACLE,
|
|
824
|
-
address: "
|
|
824
|
+
address: "0x221912ce795669f628c51c69b7d0873eDA9C03bB",
|
|
825
825
|
},
|
|
826
826
|
},
|
|
827
827
|
},
|