Skip to content

Commit

Permalink
Add LUSD
Browse files Browse the repository at this point in the history
  • Loading branch information
bingen committed Aug 18, 2022
1 parent 988ece8 commit da26a70
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
5 changes: 4 additions & 1 deletion helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export interface iAssetBase<T> {
REN: T;
ENJ: T;
xSUSHI: T;
LUSD: T;
}

export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
Expand Down Expand Up @@ -234,6 +235,7 @@ export type iAavePoolAssets<T> = Pick<
| 'REN'
| 'ENJ'
| 'xSUSHI'
| 'LUSD'
>;

export type iMultiPoolsAssets<T> = iAssetCommon<T> | iAavePoolAssets<T>;
Expand Down Expand Up @@ -264,7 +266,8 @@ export enum TokenContractId {
YFI = 'YFI',
UNI = 'UNI',
ENJ = 'ENJ',
xSUSHI = 'xSUSHI'
xSUSHI = 'xSUSHI',
LUSD = 'LUSD',
}

export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {
Expand Down
4 changes: 4 additions & 0 deletions markets/aave/commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export const CommonsConfig: ICommonConfiguration = {
ENJ: '0xfaDbe2ee798889F02d1d39eDaD98Eff4c7fe95D4',
KNC: '0xb8E8130d244CFd13a75D6B9Aee029B1C33c808A7',
LINK: '0x3Af8C569ab77af5230596Acf0E8c2F9351d24C38',
LUSD: ZERO_ADDRESS,
MANA: '0x1b93D8E109cfeDcBb3Cc74eD761DE286d5771511',
MKR: '0x0B156192e04bAD92B6C1C13cf8739d14D78D5701',
REN: '0xF1939BECE7708382b5fb5e559f630CB8B39a10ee',
Expand All @@ -225,6 +226,7 @@ export const CommonsConfig: ICommonConfiguration = {
ENJ: ZERO_ADDRESS,
KNC: '0x19d97ceb36624a31d827032d8216dd2eb15e9845',
LINK: '0xb8c99b98913bE2ca4899CdcaF33a3e519C20EeEc',
LUSD: ZERO_ADDRESS,
MANA: '0xDab909dedB72573c626481fC98CEE1152b81DEC2',
MKR: '0x811B1f727F8F4aE899774B568d2e72916D91F392',
REN: ZERO_ADDRESS,
Expand All @@ -247,6 +249,7 @@ export const CommonsConfig: ICommonConfiguration = {
ENJ: '0x24D9aB51950F3d62E9144fdC2f3135DAA6Ce8D1B',
KNC: '0x656c0544eF4C98A6a98491833A89204Abb045d6b',
LINK: '0xDC530D9457755926550b59e8ECcdaE7624181557',
LUSD: '0x60c0b047133f696334a2b7f68af0b49d2F3D4F72',
MANA: '0x82A44D92D6c329826dc557c5E1Be6ebeC5D5FeB9',
MKR: '0x24551a8Fb2A7211A25a17B1481f043A8a8adC7f2',
REN: '0x3147D7203354Dc06D9fd350c7a2437bcA92387a4',
Expand All @@ -269,6 +272,7 @@ export const CommonsConfig: ICommonConfiguration = {
ENJ: '0x24D9aB51950F3d62E9144fdC2f3135DAA6Ce8D1B',
KNC: '0x656c0544eF4C98A6a98491833A89204Abb045d6b',
LINK: '0xDC530D9457755926550b59e8ECcdaE7624181557',
LUSD: '0x60c0b047133f696334a2b7f68af0b49d2F3D4F72',
MANA: '0x82A44D92D6c329826dc557c5E1Be6ebeC5D5FeB9',
MKR: '0x24551a8Fb2A7211A25a17B1481f043A8a8adC7f2',
REN: '0x3147D7203354Dc06D9fd350c7a2437bcA92387a4',
Expand Down
6 changes: 6 additions & 0 deletions markets/aave/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
strategyWETH,
strategyYFI,
strategyXSUSHI,
strategyLUSD,
} from './reservesConfigs';

// ----------------
Expand Down Expand Up @@ -55,6 +56,7 @@ export const AaveConfig: IAaveConfiguration = {
YFI: strategyYFI,
ZRX: strategyZRX,
xSUSHI: strategyXSUSHI,
LUSD: strategyLUSD,
},
ReserveAssets: {
[eEthereumNetwork.buidlerevm]: {},
Expand All @@ -81,6 +83,7 @@ export const AaveConfig: IAaveConfiguration = {
WETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
YFI: '0xb7c325266ec274fEb1354021D27FA3E3379D840d',
ZRX: '0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C',
LUSD: '0x0b02b94638daa719290b5214825dA625af08A02F',
},
[EthereumNetwork.ropsten]: {
AAVE: '',
Expand All @@ -103,6 +106,7 @@ export const AaveConfig: IAaveConfiguration = {
WETH: '0xc778417e063141139fce010982780140aa0cd5ab',
YFI: ZERO_ADDRESS,
ZRX: '0x02d7055704EfF050323A2E5ee4ba05DB2A588959',
LUSD: '0x99Fda92878c1d2f1e0971D1937C50CC578A33E3D',
},
[EthereumNetwork.main]: {
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
Expand All @@ -126,6 +130,7 @@ export const AaveConfig: IAaveConfiguration = {
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',
LUSD: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
},
[EthereumNetwork.tenderlyMain]: {
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
Expand All @@ -149,6 +154,7 @@ export const AaveConfig: IAaveConfiguration = {
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',
LUSD: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
},
},
};
Expand Down
14 changes: 13 additions & 1 deletion markets/aave/reservesConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,4 +357,16 @@ export const strategyXSUSHI: IReserveParams = {
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '3500',
};
};

export const strategyLUSD: IReserveParams = {
strategy: rateStrategyStableTwo,
baseLTVAsCollateral: '0',
liquidationThreshold: '0',
liquidationBonus: '0',
borrowingEnabled: true,
stableBorrowRateEnabled: false,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000',
};

0 comments on commit da26a70

Please sign in to comment.