diff --git a/helpers/types.ts b/helpers/types.ts index 4ea1ab06f..2ed93bf6e 100644 --- a/helpers/types.ts +++ b/helpers/types.ts @@ -205,6 +205,7 @@ export interface iAssetBase { REN: T; ENJ: T; xSUSHI: T; + LUSD: T; } export type iAssetsWithoutETH = Omit, 'ETH'>; @@ -234,6 +235,7 @@ export type iAavePoolAssets = Pick< | 'REN' | 'ENJ' | 'xSUSHI' + | 'LUSD' >; export type iMultiPoolsAssets = iAssetCommon | iAavePoolAssets; @@ -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 { diff --git a/markets/aave/commons.ts b/markets/aave/commons.ts index 6833e67f2..837030582 100644 --- a/markets/aave/commons.ts +++ b/markets/aave/commons.ts @@ -203,6 +203,7 @@ export const CommonsConfig: ICommonConfiguration = { ENJ: '0xfaDbe2ee798889F02d1d39eDaD98Eff4c7fe95D4', KNC: '0xb8E8130d244CFd13a75D6B9Aee029B1C33c808A7', LINK: '0x3Af8C569ab77af5230596Acf0E8c2F9351d24C38', + LUSD: ZERO_ADDRESS, MANA: '0x1b93D8E109cfeDcBb3Cc74eD761DE286d5771511', MKR: '0x0B156192e04bAD92B6C1C13cf8739d14D78D5701', REN: '0xF1939BECE7708382b5fb5e559f630CB8B39a10ee', @@ -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, @@ -247,6 +249,7 @@ export const CommonsConfig: ICommonConfiguration = { ENJ: '0x24D9aB51950F3d62E9144fdC2f3135DAA6Ce8D1B', KNC: '0x656c0544eF4C98A6a98491833A89204Abb045d6b', LINK: '0xDC530D9457755926550b59e8ECcdaE7624181557', + LUSD: '0x60c0b047133f696334a2b7f68af0b49d2F3D4F72', MANA: '0x82A44D92D6c329826dc557c5E1Be6ebeC5D5FeB9', MKR: '0x24551a8Fb2A7211A25a17B1481f043A8a8adC7f2', REN: '0x3147D7203354Dc06D9fd350c7a2437bcA92387a4', @@ -269,6 +272,7 @@ export const CommonsConfig: ICommonConfiguration = { ENJ: '0x24D9aB51950F3d62E9144fdC2f3135DAA6Ce8D1B', KNC: '0x656c0544eF4C98A6a98491833A89204Abb045d6b', LINK: '0xDC530D9457755926550b59e8ECcdaE7624181557', + LUSD: '0x60c0b047133f696334a2b7f68af0b49d2F3D4F72', MANA: '0x82A44D92D6c329826dc557c5E1Be6ebeC5D5FeB9', MKR: '0x24551a8Fb2A7211A25a17B1481f043A8a8adC7f2', REN: '0x3147D7203354Dc06D9fd350c7a2437bcA92387a4', diff --git a/markets/aave/index.ts b/markets/aave/index.ts index d60db80fd..cebb0c32c 100644 --- a/markets/aave/index.ts +++ b/markets/aave/index.ts @@ -23,6 +23,7 @@ import { strategyWETH, strategyYFI, strategyXSUSHI, + strategyLUSD, } from './reservesConfigs'; // ---------------- @@ -55,6 +56,7 @@ export const AaveConfig: IAaveConfiguration = { YFI: strategyYFI, ZRX: strategyZRX, xSUSHI: strategyXSUSHI, + LUSD: strategyLUSD, }, ReserveAssets: { [eEthereumNetwork.buidlerevm]: {}, @@ -81,6 +83,7 @@ export const AaveConfig: IAaveConfiguration = { WETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c', YFI: '0xb7c325266ec274fEb1354021D27FA3E3379D840d', ZRX: '0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C', + LUSD: '0x0b02b94638daa719290b5214825dA625af08A02F', }, [EthereumNetwork.ropsten]: { AAVE: '', @@ -103,6 +106,7 @@ export const AaveConfig: IAaveConfiguration = { WETH: '0xc778417e063141139fce010982780140aa0cd5ab', YFI: ZERO_ADDRESS, ZRX: '0x02d7055704EfF050323A2E5ee4ba05DB2A588959', + LUSD: '0x99Fda92878c1d2f1e0971D1937C50CC578A33E3D', }, [EthereumNetwork.main]: { AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9', @@ -126,6 +130,7 @@ export const AaveConfig: IAaveConfiguration = { YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e', ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498', xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272', + LUSD: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0', }, [EthereumNetwork.tenderlyMain]: { AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9', @@ -149,6 +154,7 @@ export const AaveConfig: IAaveConfiguration = { YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e', ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498', xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272', + LUSD: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0', }, }, }; diff --git a/markets/aave/reservesConfigs.ts b/markets/aave/reservesConfigs.ts index 30f094ace..e53301b3a 100644 --- a/markets/aave/reservesConfigs.ts +++ b/markets/aave/reservesConfigs.ts @@ -357,4 +357,16 @@ export const strategyXSUSHI: IReserveParams = { reserveDecimals: '18', aTokenImpl: eContractid.AToken, reserveFactor: '3500', -}; \ No newline at end of file +}; + +export const strategyLUSD: IReserveParams = { + strategy: rateStrategyStableTwo, + baseLTVAsCollateral: '0', + liquidationThreshold: '0', + liquidationBonus: '0', + borrowingEnabled: true, + stableBorrowRateEnabled: false, + reserveDecimals: '18', + aTokenImpl: eContractid.AToken, + reserveFactor: '1000', +};