Skip to content

Commit 554a2ed

Browse files
authored
Merge pull request #19 from sushiswap/master
PR to list new asset: Added xSUSHI risk parameters
2 parents 2708551 + 5d6332d commit 554a2ed

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

helpers/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ export interface iAssetBase<T> {
204204
USD: T;
205205
REN: T;
206206
ENJ: T;
207+
xSUSHI: T;
207208
}
208209

209210
export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
@@ -232,6 +233,7 @@ export type iAavePoolAssets<T> = Pick<
232233
| 'UNI'
233234
| 'REN'
234235
| 'ENJ'
236+
| 'xSUSHI'
235237
>;
236238

237239
export type iMultiPoolsAssets<T> = iAssetCommon<T> | iAavePoolAssets<T>;
@@ -262,6 +264,7 @@ export enum TokenContractId {
262264
YFI = 'YFI',
263265
UNI = 'UNI',
264266
ENJ = 'ENJ',
267+
xSUSHI = 'xSUSHI'
265268
}
266269

267270
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {

markets/aave/commons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
2323
WBTC: oneEther.multipliedBy('47.332685').toFixed(),
2424
YFI: oneEther.multipliedBy('22.407436').toFixed(),
2525
ZRX: oneEther.multipliedBy('0.001151').toFixed(),
26+
xSUSHI: oneEther.multipliedBy('0.00913428586').toFixed(),
2627
USD: '5848466240000000',
2728
};
2829
// ----------------

markets/aave/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
strategyWBTC,
2323
strategyWETH,
2424
strategyYFI,
25+
strategyXSUSHI,
2526
} from './reservesConfigs';
2627

2728
// ----------------
@@ -53,6 +54,7 @@ export const AaveConfig: IAaveConfiguration = {
5354
WETH: strategyWETH,
5455
YFI: strategyYFI,
5556
ZRX: strategyZRX,
57+
xSUSHI: strategyXSUSHI,
5658
},
5759
ReserveAssets: {
5860
[eEthereumNetwork.buidlerevm]: {},
@@ -123,6 +125,7 @@ export const AaveConfig: IAaveConfiguration = {
123125
WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
124126
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
125127
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
128+
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',
126129
},
127130
[EthereumNetwork.tenderlyMain]: {
128131
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
@@ -145,6 +148,7 @@ export const AaveConfig: IAaveConfiguration = {
145148
WETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
146149
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
147150
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
151+
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',
148152
},
149153
},
150154
};

markets/aave/reservesConfigs.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,4 +340,21 @@ export const strategyZRX: IReserveParams = {
340340
reserveDecimals: '18',
341341
aTokenImpl: eContractid.AToken,
342342
reserveFactor: '2000'
343+
};
344+
345+
export const strategyXSUSHI: IReserveParams = {
346+
optimalUtilizationRate: new BigNumber(0.45).multipliedBy(oneRay).toFixed(),
347+
baseVariableBorrowRate: '0',
348+
variableRateSlope1: new BigNumber(0.07).multipliedBy(oneRay).toFixed(),
349+
variableRateSlope2: new BigNumber(3).multipliedBy(oneRay).toFixed(),
350+
stableRateSlope1: '0',
351+
stableRateSlope2: '0',
352+
baseLTVAsCollateral: '2500',
353+
liquidationThreshold: '4500',
354+
liquidationBonus: '11500',
355+
borrowingEnabled: true,
356+
stableBorrowRateEnabled: false,
357+
reserveDecimals: '18',
358+
aTokenImpl: eContractid.AToken,
359+
reserveFactor: '3500',
343360
};

0 commit comments

Comments
 (0)