Skip to content

Commit 1e765e9

Browse files
committed
Add LUSD
1 parent 988ece8 commit 1e765e9

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

helpers/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export interface iAssetBase<T> {
205205
REN: T;
206206
ENJ: T;
207207
xSUSHI: T;
208+
LUSD: T;
208209
}
209210

210211
export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
@@ -234,6 +235,7 @@ export type iAavePoolAssets<T> = Pick<
234235
| 'REN'
235236
| 'ENJ'
236237
| 'xSUSHI'
238+
| 'LUSD'
237239
>;
238240

239241
export type iMultiPoolsAssets<T> = iAssetCommon<T> | iAavePoolAssets<T>;
@@ -264,7 +266,8 @@ export enum TokenContractId {
264266
YFI = 'YFI',
265267
UNI = 'UNI',
266268
ENJ = 'ENJ',
267-
xSUSHI = 'xSUSHI'
269+
xSUSHI = 'xSUSHI',
270+
LUSD = 'LUSD',
268271
}
269272

270273
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {

markets/aave/commons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = {
2424
YFI: oneEther.multipliedBy('22.407436').toFixed(),
2525
ZRX: oneEther.multipliedBy('0.001151').toFixed(),
2626
xSUSHI: oneEther.multipliedBy('0.00913428586').toFixed(),
27+
LUSD: oneEther.multipliedBy('0.00369068412860').toFixed(),
2728
USD: '5848466240000000',
2829
};
2930
// ----------------

markets/aave/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
strategyWETH,
2424
strategyYFI,
2525
strategyXSUSHI,
26+
strategyLUSD,
2627
} from './reservesConfigs';
2728

2829
// ----------------
@@ -55,6 +56,7 @@ export const AaveConfig: IAaveConfiguration = {
5556
YFI: strategyYFI,
5657
ZRX: strategyZRX,
5758
xSUSHI: strategyXSUSHI,
59+
LUSD: strategyLUSD,
5860
},
5961
ReserveAssets: {
6062
[eEthereumNetwork.buidlerevm]: {},
@@ -81,6 +83,7 @@ export const AaveConfig: IAaveConfiguration = {
8183
WETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
8284
YFI: '0xb7c325266ec274fEb1354021D27FA3E3379D840d',
8385
ZRX: '0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C',
86+
LUSD: '0x0b02b94638daa719290b5214825dA625af08A02F',
8487
},
8588
[EthereumNetwork.ropsten]: {
8689
AAVE: '',
@@ -103,6 +106,7 @@ export const AaveConfig: IAaveConfiguration = {
103106
WETH: '0xc778417e063141139fce010982780140aa0cd5ab',
104107
YFI: ZERO_ADDRESS,
105108
ZRX: '0x02d7055704EfF050323A2E5ee4ba05DB2A588959',
109+
LUSD: '0x99Fda92878c1d2f1e0971D1937C50CC578A33E3D',
106110
},
107111
[EthereumNetwork.main]: {
108112
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
@@ -126,6 +130,7 @@ export const AaveConfig: IAaveConfiguration = {
126130
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
127131
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
128132
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',
133+
LUSD: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
129134
},
130135
[EthereumNetwork.tenderlyMain]: {
131136
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
@@ -149,6 +154,7 @@ export const AaveConfig: IAaveConfiguration = {
149154
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
150155
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
151156
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',
157+
LUSD: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
152158
},
153159
},
154160
};

markets/aave/reservesConfigs.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,21 @@ export const strategyXSUSHI: IReserveParams = {
357357
reserveDecimals: '18',
358358
aTokenImpl: eContractid.AToken,
359359
reserveFactor: '3500',
360-
};
360+
};
361+
362+
export const strategyLUSD: IReserveParams = {
363+
optimalUtilizationRate: new BigNumber(0.8).multipliedBy(oneRay).toFixed(),
364+
baseVariableBorrowRate: '0',
365+
variableRateSlope1: new BigNumber(0.04).multipliedBy(oneRay).toFixed(),
366+
variableRateSlope2: new BigNumber(1).multipliedBy(oneRay).toFixed(),
367+
stableRateSlope1: new BigNumber(0.02).multipliedBy(oneRay).toFixed(),
368+
stableRateSlope2: new BigNumber(1).multipliedBy(oneRay).toFixed(),
369+
baseLTVAsCollateral: '0',
370+
liquidationThreshold: '0',
371+
liquidationBonus: '0',
372+
borrowingEnabled: true,
373+
stableBorrowRateEnabled: false,
374+
reserveDecimals: '18',
375+
aTokenImpl: eContractid.AToken,
376+
reserveFactor: '2000'
377+
};

0 commit comments

Comments
 (0)