@defisaver/positions-sdk 2.1.111 → 2.1.113-pt-oct-dev
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/cjs/helpers/eulerHelpers/index.js +6 -6
- package/cjs/markets/aave/marketAssets.js +1 -1
- package/cjs/moneymarket/moneymarketCommonService.js +1 -1
- package/cjs/staking/staking.js +3 -1
- package/esm/helpers/eulerHelpers/index.js +6 -6
- package/esm/markets/aave/marketAssets.js +1 -1
- package/esm/moneymarket/moneymarketCommonService.js +1 -1
- package/esm/staking/staking.js +3 -1
- package/package.json +2 -2
- package/src/helpers/eulerHelpers/index.ts +7 -7
- package/src/markets/aave/marketAssets.ts +1 -1
- package/src/moneymarket/moneymarketCommonService.ts +1 -1
- package/src/staking/staking.ts +2 -1
|
@@ -188,21 +188,21 @@ const getApyAfterValuesEstimationEulerV2 = (actions, provider, network) => __awa
|
|
|
188
188
|
const data = {};
|
|
189
189
|
for (let i = 0; i < numOfActions; i += 1) {
|
|
190
190
|
// @ts-ignore
|
|
191
|
-
const _interestRate = res[numOfActions]
|
|
191
|
+
const _interestRate = res[numOfActions][i].toString();
|
|
192
192
|
// @ts-ignore
|
|
193
|
-
const vaultInfo = res[i]
|
|
194
|
-
const decimals = vaultInfo.decimals;
|
|
193
|
+
const vaultInfo = res[i];
|
|
194
|
+
const decimals = vaultInfo.decimals.toString();
|
|
195
195
|
const borrowRate = (0, exports.getEulerV2BorrowRate)(_interestRate);
|
|
196
196
|
const amount = new decimal_js_1.default(actions[i].amount).mul(Math.pow(10, decimals)).toString();
|
|
197
197
|
const action = actions[i].action;
|
|
198
198
|
const isBorrowOperation = constants_1.borrowOperations.includes(action);
|
|
199
199
|
const { liquidityAdded, liquidityRemoved } = getLiquidityChanges(action, amount, isBorrowOperation);
|
|
200
|
-
const totalBorrows = new decimal_js_1.default(vaultInfo.totalBorrows).add(isBorrowOperation ? liquidityRemoved : '0').sub(isBorrowOperation ? liquidityAdded : '0').toString();
|
|
201
|
-
const totalAssets = new decimal_js_1.default(vaultInfo.totalAssets).add(isBorrowOperation ? '0' : liquidityAdded).sub(isBorrowOperation ? '0' : liquidityRemoved).toString();
|
|
200
|
+
const totalBorrows = new decimal_js_1.default(vaultInfo.totalBorrows.toString()).add(isBorrowOperation ? liquidityRemoved : '0').sub(isBorrowOperation ? liquidityAdded : '0').toString();
|
|
201
|
+
const totalAssets = new decimal_js_1.default(vaultInfo.totalAssets.toString()).add(isBorrowOperation ? '0' : liquidityAdded).sub(isBorrowOperation ? '0' : liquidityRemoved).toString();
|
|
202
202
|
const utilizationRate = (0, exports.getUtilizationRate)(totalBorrows, totalAssets);
|
|
203
203
|
data[vaultInfo.vaultAddr.toLowerCase()] = {
|
|
204
204
|
borrowRate,
|
|
205
|
-
supplyRate: (0, exports.getEulerV2SupplyRate)(borrowRate, utilizationRate, vaultInfo.interestFee),
|
|
205
|
+
supplyRate: (0, exports.getEulerV2SupplyRate)(borrowRate, utilizationRate, vaultInfo.interestFee.toString()),
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
return data;
|
|
@@ -18,7 +18,7 @@ exports.aaveV3AssetsDefaultMarketOpt = [
|
|
|
18
18
|
exports.aaveV3AssetsDefaultMarketArb = ['DAI', 'LINK', 'USDC.e', 'WBTC', 'ETH', 'USDT', 'AAVE', 'EURS', 'wstETH', 'MAI', 'rETH', 'LUSD', 'USDC', 'FRAX', 'ARB', 'weETH', 'GHO', 'ezETH', 'rsETH', 'tBTC'];
|
|
19
19
|
exports.aaveV3AssetsDefaultMarketBase = ['ETH', 'cbETH', 'USDbC', 'wstETH', 'USDC', 'weETH', 'cbBTC', 'ezETH', 'GHO', 'wrsETH', 'LBTC', 'EURC', 'AAVE', 'tBTC', 'syrupUSDC'];
|
|
20
20
|
exports.aaveV3AssetsDefaultMarketLinea = ['ETH', 'USDC', 'weETH', 'ezETH', 'USDT', 'wstETH', 'wrsETH', 'WBTC', 'mUSD'];
|
|
21
|
-
exports.aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'XPL', 'PT USDe Apr', 'PT sUSDe Apr', 'GHO', 'PT sUSDe June', 'PT USDe June'];
|
|
21
|
+
exports.aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'XPL', 'PT USDe Apr', 'PT sUSDe Apr', 'GHO', 'PT sUSDe June', 'PT USDe June', 'PT sUSDe Oct'];
|
|
22
22
|
// @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
|
|
23
23
|
exports.aaveV3AssetsDefaultMarket = {
|
|
24
24
|
[common_1.NetworkNumber.Eth]: exports.aaveV3AssetsDefaultMarketEth,
|
|
@@ -33,7 +33,7 @@ exports.STABLE_ASSETS = [
|
|
|
33
33
|
'USDe', 'sUSDe', 'USDS', 'sUSDS', 'USR', 'EURC', 'BOLD', 'BOLD Legacy', 'RLUSD', 'PT sUSDe July', 'PT eUSDe May',
|
|
34
34
|
'USDtb', 'eUSDe', 'PT USDe July', 'PT eUSDe Aug', 'PT sUSDe Sep', 'PT USDe Sep', 'PT sUSDe Nov', 'PT USDe Nov', 'PT sUSDe Jan', 'PT USDe Jan',
|
|
35
35
|
'PT sUSDe Feb', 'PT USDe Feb', 'PT sUSDe Apr', 'PT USDe Apr', 'PT sUSDe May', 'PT USDe May', 'PT srUSDe Apr', 'frxUSD', 'PT sUSDe June',
|
|
36
|
-
'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov',
|
|
36
|
+
'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov', 'PT sUSDe Oct',
|
|
37
37
|
];
|
|
38
38
|
const isLeveragedPos = (usedAssets, dustLimit = 5) => {
|
|
39
39
|
let borrowUnstable = 0;
|
package/cjs/staking/staking.js
CHANGED
|
@@ -73,7 +73,7 @@ exports.STAKING_ASSETS = [
|
|
|
73
73
|
'ezETH', 'ETHx', 'rsETH', 'pufETH', 'wrsETH', 'wsuperOETHb', 'sUSDS', 'tETH', 'PT sUSDe Sep', 'PT USDe Sep',
|
|
74
74
|
'PT sUSDe Nov', 'PT USDe Nov', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'syrupUSDC', 'wstUSR',
|
|
75
75
|
'PT sUSDe Feb', 'PT USDe Feb', 'PT sUSDe Apr', 'PT USDe Apr', 'PT sUSDe May', 'PT USDe May', 'PT srUSDe Apr', 'GHO',
|
|
76
|
-
'PT sUSDe June', 'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov',
|
|
76
|
+
'PT sUSDe June', 'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov', 'PT sUSDe Oct',
|
|
77
77
|
];
|
|
78
78
|
exports.getStakingApy = (0, memoizee_1.default)((asset_1, ...args_1) => __awaiter(void 0, [asset_1, ...args_1], void 0, function* (asset, network = common_1.NetworkNumber.Eth) {
|
|
79
79
|
try {
|
|
@@ -151,6 +151,8 @@ exports.getStakingApy = (0, memoizee_1.default)((asset_1, ...args_1) => __awaite
|
|
|
151
151
|
return yield getApyFromDfsApi('PT srUSDe Jun', network);
|
|
152
152
|
if (asset === 'PT sUSDe June')
|
|
153
153
|
return yield getApyFromDfsApi('PT sUSDe June', network);
|
|
154
|
+
if (asset === 'PT sUSDe Oct')
|
|
155
|
+
return yield getApyFromDfsApi('PT sUSDe Oct', network);
|
|
154
156
|
if (asset === 'PT USDe June')
|
|
155
157
|
return yield getApyFromDfsApi('PT USDe June', network);
|
|
156
158
|
if (asset === 'PT USDG May')
|
|
@@ -177,21 +177,21 @@ export const getApyAfterValuesEstimationEulerV2 = (actions, provider, network) =
|
|
|
177
177
|
const data = {};
|
|
178
178
|
for (let i = 0; i < numOfActions; i += 1) {
|
|
179
179
|
// @ts-ignore
|
|
180
|
-
const _interestRate = res[numOfActions]
|
|
180
|
+
const _interestRate = res[numOfActions][i].toString();
|
|
181
181
|
// @ts-ignore
|
|
182
|
-
const vaultInfo = res[i]
|
|
183
|
-
const decimals = vaultInfo.decimals;
|
|
182
|
+
const vaultInfo = res[i];
|
|
183
|
+
const decimals = vaultInfo.decimals.toString();
|
|
184
184
|
const borrowRate = getEulerV2BorrowRate(_interestRate);
|
|
185
185
|
const amount = new Dec(actions[i].amount).mul(Math.pow(10, decimals)).toString();
|
|
186
186
|
const action = actions[i].action;
|
|
187
187
|
const isBorrowOperation = borrowOperations.includes(action);
|
|
188
188
|
const { liquidityAdded, liquidityRemoved } = getLiquidityChanges(action, amount, isBorrowOperation);
|
|
189
|
-
const totalBorrows = new Dec(vaultInfo.totalBorrows).add(isBorrowOperation ? liquidityRemoved : '0').sub(isBorrowOperation ? liquidityAdded : '0').toString();
|
|
190
|
-
const totalAssets = new Dec(vaultInfo.totalAssets).add(isBorrowOperation ? '0' : liquidityAdded).sub(isBorrowOperation ? '0' : liquidityRemoved).toString();
|
|
189
|
+
const totalBorrows = new Dec(vaultInfo.totalBorrows.toString()).add(isBorrowOperation ? liquidityRemoved : '0').sub(isBorrowOperation ? liquidityAdded : '0').toString();
|
|
190
|
+
const totalAssets = new Dec(vaultInfo.totalAssets.toString()).add(isBorrowOperation ? '0' : liquidityAdded).sub(isBorrowOperation ? '0' : liquidityRemoved).toString();
|
|
191
191
|
const utilizationRate = getUtilizationRate(totalBorrows, totalAssets);
|
|
192
192
|
data[vaultInfo.vaultAddr.toLowerCase()] = {
|
|
193
193
|
borrowRate,
|
|
194
|
-
supplyRate: getEulerV2SupplyRate(borrowRate, utilizationRate, vaultInfo.interestFee),
|
|
194
|
+
supplyRate: getEulerV2SupplyRate(borrowRate, utilizationRate, vaultInfo.interestFee.toString()),
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
return data;
|
|
@@ -15,7 +15,7 @@ export const aaveV3AssetsDefaultMarketOpt = [
|
|
|
15
15
|
export const aaveV3AssetsDefaultMarketArb = ['DAI', 'LINK', 'USDC.e', 'WBTC', 'ETH', 'USDT', 'AAVE', 'EURS', 'wstETH', 'MAI', 'rETH', 'LUSD', 'USDC', 'FRAX', 'ARB', 'weETH', 'GHO', 'ezETH', 'rsETH', 'tBTC'];
|
|
16
16
|
export const aaveV3AssetsDefaultMarketBase = ['ETH', 'cbETH', 'USDbC', 'wstETH', 'USDC', 'weETH', 'cbBTC', 'ezETH', 'GHO', 'wrsETH', 'LBTC', 'EURC', 'AAVE', 'tBTC', 'syrupUSDC'];
|
|
17
17
|
export const aaveV3AssetsDefaultMarketLinea = ['ETH', 'USDC', 'weETH', 'ezETH', 'USDT', 'wstETH', 'wrsETH', 'WBTC', 'mUSD'];
|
|
18
|
-
export const aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'XPL', 'PT USDe Apr', 'PT sUSDe Apr', 'GHO', 'PT sUSDe June', 'PT USDe June'];
|
|
18
|
+
export const aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'XPL', 'PT USDe Apr', 'PT sUSDe Apr', 'GHO', 'PT sUSDe June', 'PT USDe June', 'PT sUSDe Oct'];
|
|
19
19
|
// @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
|
|
20
20
|
export const aaveV3AssetsDefaultMarket = {
|
|
21
21
|
[NetworkNumber.Eth]: aaveV3AssetsDefaultMarketEth,
|
|
@@ -22,7 +22,7 @@ export const STABLE_ASSETS = [
|
|
|
22
22
|
'USDe', 'sUSDe', 'USDS', 'sUSDS', 'USR', 'EURC', 'BOLD', 'BOLD Legacy', 'RLUSD', 'PT sUSDe July', 'PT eUSDe May',
|
|
23
23
|
'USDtb', 'eUSDe', 'PT USDe July', 'PT eUSDe Aug', 'PT sUSDe Sep', 'PT USDe Sep', 'PT sUSDe Nov', 'PT USDe Nov', 'PT sUSDe Jan', 'PT USDe Jan',
|
|
24
24
|
'PT sUSDe Feb', 'PT USDe Feb', 'PT sUSDe Apr', 'PT USDe Apr', 'PT sUSDe May', 'PT USDe May', 'PT srUSDe Apr', 'frxUSD', 'PT sUSDe June',
|
|
25
|
-
'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov',
|
|
25
|
+
'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov', 'PT sUSDe Oct',
|
|
26
26
|
];
|
|
27
27
|
export const isLeveragedPos = (usedAssets, dustLimit = 5) => {
|
|
28
28
|
let borrowUnstable = 0;
|
package/esm/staking/staking.js
CHANGED
|
@@ -67,7 +67,7 @@ export const STAKING_ASSETS = [
|
|
|
67
67
|
'ezETH', 'ETHx', 'rsETH', 'pufETH', 'wrsETH', 'wsuperOETHb', 'sUSDS', 'tETH', 'PT sUSDe Sep', 'PT USDe Sep',
|
|
68
68
|
'PT sUSDe Nov', 'PT USDe Nov', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'syrupUSDC', 'wstUSR',
|
|
69
69
|
'PT sUSDe Feb', 'PT USDe Feb', 'PT sUSDe Apr', 'PT USDe Apr', 'PT sUSDe May', 'PT USDe May', 'PT srUSDe Apr', 'GHO',
|
|
70
|
-
'PT sUSDe June', 'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov',
|
|
70
|
+
'PT sUSDe June', 'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov', 'PT sUSDe Oct',
|
|
71
71
|
];
|
|
72
72
|
export const getStakingApy = memoize((asset_1, ...args_1) => __awaiter(void 0, [asset_1, ...args_1], void 0, function* (asset, network = NetworkNumber.Eth) {
|
|
73
73
|
try {
|
|
@@ -145,6 +145,8 @@ export const getStakingApy = memoize((asset_1, ...args_1) => __awaiter(void 0, [
|
|
|
145
145
|
return yield getApyFromDfsApi('PT srUSDe Jun', network);
|
|
146
146
|
if (asset === 'PT sUSDe June')
|
|
147
147
|
return yield getApyFromDfsApi('PT sUSDe June', network);
|
|
148
|
+
if (asset === 'PT sUSDe Oct')
|
|
149
|
+
return yield getApyFromDfsApi('PT sUSDe Oct', network);
|
|
148
150
|
if (asset === 'PT USDe June')
|
|
149
151
|
return yield getApyFromDfsApi('PT USDe June', network);
|
|
150
152
|
if (asset === 'PT USDG May')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/positions-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.113-pt-oct-dev",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@defisaver/tokens": "
|
|
24
|
+
"@defisaver/tokens": "1.7.38-pt-oct-dev",
|
|
25
25
|
"@types/lodash": "^4.17.15",
|
|
26
26
|
"@types/memoizee": "^0.4.12",
|
|
27
27
|
"decimal.js": "^10.6.0",
|
|
@@ -173,7 +173,7 @@ export const getApyAfterValuesEstimationEulerV2 = async (actions: { action: stri
|
|
|
173
173
|
});
|
|
174
174
|
|
|
175
175
|
const res = await Promise.all([
|
|
176
|
-
...actions.map(({ vaultAddress }) => eulerV2ViewContract.read.getVaultInfoFull([vaultAddress])),
|
|
176
|
+
...actions.map(({ vaultAddress }) => eulerV2ViewContract.read.getVaultInfoFull([vaultAddress])) as any,
|
|
177
177
|
// @ts-ignore
|
|
178
178
|
eulerV2ViewContract.read.getApyAfterValuesEstimation([apyAfterValuesEstimationParams]),
|
|
179
179
|
]);
|
|
@@ -181,10 +181,10 @@ export const getApyAfterValuesEstimationEulerV2 = async (actions: { action: stri
|
|
|
181
181
|
const data: any = {};
|
|
182
182
|
for (let i = 0; i < numOfActions; i += 1) {
|
|
183
183
|
// @ts-ignore
|
|
184
|
-
const _interestRate = res[numOfActions]
|
|
184
|
+
const _interestRate = res[numOfActions][i].toString();
|
|
185
185
|
// @ts-ignore
|
|
186
|
-
const vaultInfo = res[i]
|
|
187
|
-
const decimals = vaultInfo.decimals;
|
|
186
|
+
const vaultInfo = res[i];
|
|
187
|
+
const decimals = vaultInfo.decimals.toString();
|
|
188
188
|
const borrowRate = getEulerV2BorrowRate(_interestRate);
|
|
189
189
|
|
|
190
190
|
const amount = new Dec(actions[i].amount).mul(10 ** decimals).toString();
|
|
@@ -192,12 +192,12 @@ export const getApyAfterValuesEstimationEulerV2 = async (actions: { action: stri
|
|
|
192
192
|
const isBorrowOperation = borrowOperations.includes(action);
|
|
193
193
|
const { liquidityAdded, liquidityRemoved } = getLiquidityChanges(action, amount, isBorrowOperation);
|
|
194
194
|
|
|
195
|
-
const totalBorrows = new Dec(vaultInfo.totalBorrows).add(isBorrowOperation ? liquidityRemoved : '0').sub(isBorrowOperation ? liquidityAdded : '0').toString();
|
|
196
|
-
const totalAssets = new Dec(vaultInfo.totalAssets).add(isBorrowOperation ? '0' : liquidityAdded).sub(isBorrowOperation ? '0' : liquidityRemoved).toString();
|
|
195
|
+
const totalBorrows = new Dec(vaultInfo.totalBorrows.toString()).add(isBorrowOperation ? liquidityRemoved : '0').sub(isBorrowOperation ? liquidityAdded : '0').toString();
|
|
196
|
+
const totalAssets = new Dec(vaultInfo.totalAssets.toString()).add(isBorrowOperation ? '0' : liquidityAdded).sub(isBorrowOperation ? '0' : liquidityRemoved).toString();
|
|
197
197
|
const utilizationRate = getUtilizationRate(totalBorrows, totalAssets);
|
|
198
198
|
data[vaultInfo.vaultAddr.toLowerCase()] = {
|
|
199
199
|
borrowRate,
|
|
200
|
-
supplyRate: getEulerV2SupplyRate(borrowRate, utilizationRate, vaultInfo.interestFee),
|
|
200
|
+
supplyRate: getEulerV2SupplyRate(borrowRate, utilizationRate, vaultInfo.interestFee.toString()),
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
return data;
|
|
@@ -20,7 +20,7 @@ export const aaveV3AssetsDefaultMarketBase = ['ETH', 'cbETH', 'USDbC', 'wstETH',
|
|
|
20
20
|
|
|
21
21
|
export const aaveV3AssetsDefaultMarketLinea = ['ETH', 'USDC', 'weETH', 'ezETH', 'USDT', 'wstETH', 'wrsETH', 'WBTC', 'mUSD'];
|
|
22
22
|
|
|
23
|
-
export const aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'XPL', 'PT USDe Apr', 'PT sUSDe Apr', 'GHO', 'PT sUSDe June', 'PT USDe June'];
|
|
23
|
+
export const aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'XPL', 'PT USDe Apr', 'PT sUSDe Apr', 'GHO', 'PT sUSDe June', 'PT USDe June', 'PT sUSDe Oct'];
|
|
24
24
|
|
|
25
25
|
// @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
|
|
26
26
|
export const aaveV3AssetsDefaultMarket = {
|
|
@@ -25,7 +25,7 @@ export const STABLE_ASSETS = [
|
|
|
25
25
|
'USDe', 'sUSDe', 'USDS', 'sUSDS', 'USR', 'EURC', 'BOLD', 'BOLD Legacy', 'RLUSD', 'PT sUSDe July', 'PT eUSDe May',
|
|
26
26
|
'USDtb', 'eUSDe', 'PT USDe July', 'PT eUSDe Aug', 'PT sUSDe Sep', 'PT USDe Sep', 'PT sUSDe Nov', 'PT USDe Nov', 'PT sUSDe Jan', 'PT USDe Jan',
|
|
27
27
|
'PT sUSDe Feb', 'PT USDe Feb', 'PT sUSDe Apr', 'PT USDe Apr', 'PT sUSDe May', 'PT USDe May', 'PT srUSDe Apr', 'frxUSD', 'PT sUSDe June',
|
|
28
|
-
'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov',
|
|
28
|
+
'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov', 'PT sUSDe Oct',
|
|
29
29
|
];
|
|
30
30
|
|
|
31
31
|
export const isLeveragedPos = (usedAssets: MMUsedAssets, dustLimit = 5) => {
|
package/src/staking/staking.ts
CHANGED
|
@@ -65,7 +65,7 @@ export const STAKING_ASSETS = [
|
|
|
65
65
|
'ezETH', 'ETHx', 'rsETH', 'pufETH', 'wrsETH', 'wsuperOETHb', 'sUSDS', 'tETH', 'PT sUSDe Sep', 'PT USDe Sep',
|
|
66
66
|
'PT sUSDe Nov', 'PT USDe Nov', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'syrupUSDC', 'wstUSR',
|
|
67
67
|
'PT sUSDe Feb', 'PT USDe Feb', 'PT sUSDe Apr', 'PT USDe Apr', 'PT sUSDe May', 'PT USDe May', 'PT srUSDe Apr', 'GHO',
|
|
68
|
-
'PT sUSDe June', 'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov',
|
|
68
|
+
'PT sUSDe June', 'PT USDe June', 'PT srUSDe Jun', 'PT USDG May', 'PT sUSDS Nov', 'PT sUSDe Oct',
|
|
69
69
|
];
|
|
70
70
|
|
|
71
71
|
export const getStakingApy = memoize(async (asset: string, network: number = NetworkNumber.Eth) => {
|
|
@@ -107,6 +107,7 @@ export const getStakingApy = memoize(async (asset: string, network: number = Net
|
|
|
107
107
|
if (asset === 'PT srUSDe Apr') return await getApyFromDfsApi('PT srUSDe Apr', network);
|
|
108
108
|
if (asset === 'PT srUSDe Jun') return await getApyFromDfsApi('PT srUSDe Jun', network);
|
|
109
109
|
if (asset === 'PT sUSDe June') return await getApyFromDfsApi('PT sUSDe June', network);
|
|
110
|
+
if (asset === 'PT sUSDe Oct') return await getApyFromDfsApi('PT sUSDe Oct', network);
|
|
110
111
|
if (asset === 'PT USDe June') return await getApyFromDfsApi('PT USDe June', network);
|
|
111
112
|
if (asset === 'PT USDG May') return await getApyFromDfsApi('PT USDG May', network);
|
|
112
113
|
if (asset === 'PT sUSDS Nov') return await getApyFromDfsApi('PT sUSDS Nov', network);
|