diff --git a/helpers/contracts-getters.ts b/helpers/contracts-getters.ts index 21e61006..aa96553f 100644 --- a/helpers/contracts-getters.ts +++ b/helpers/contracts-getters.ts @@ -172,10 +172,10 @@ export const getPairsTokenAggregator = ( }, aggregatorsAddresses: { [tokenSymbol: string]: tEthereumAddress } ): [string[], string[]] => { - const { ETH, USD, WETH, UniWETH, ...assetsAddressesWithoutEth } = allAssetsAddresses; + const { ETH, USD, WETH, LpWETH, ...assetsAddressesWithoutEth } = allAssetsAddresses; const pairs = Object.entries(assetsAddressesWithoutEth).map(([tokenSymbol, tokenAddress]) => { - //if (true/*tokenSymbol !== 'WETH' && tokenSymbol !== 'ETH' && tokenSymbol !== 'UniWETH'*/) { + //if (true/*tokenSymbol !== 'WETH' && tokenSymbol !== 'ETH' && tokenSymbol !== 'LpWETH'*/) { const aggregatorAddressIndex = Object.keys(aggregatorsAddresses).findIndex( (value) => value === tokenSymbol ); diff --git a/helpers/types.ts b/helpers/types.ts index 3e56a1aa..63295895 100644 --- a/helpers/types.ts +++ b/helpers/types.ts @@ -205,25 +205,25 @@ export interface iAssetBase { USD: T; REN: T; ENJ: T; - UniWETH: T; - UniWBTC: T; - UniDAI: T; - UniUSDC: T; - UniUSDT: T; - UniDAIWETH: T; - UniWBTCWETH: T; - UniAAVEWETH: T; - UniBATWETH: T; - UniUSDCDAI: T; - UniCRVWETH: T; - UniLINKWETH: T; - UniMKRWETH: T; - UniRENWETH: T; - UniSNXWETH: T; - UniUNIWETH: T; - UniUSDCWETH: T; - UniWBTCUSDC: T; - UniYFIWETH: T; + LpWETH: T; + LpWBTC: T; + LpDAI: T; + LpUSDC: T; + LpUSDT: T; + LpDAIWETH: T; + LpWBTCWETH: T; + LpAAVEWETH: T; + LpBATWETH: T; + LpUSDCDAI: T; + LpCRVWETH: T; + LpLINKWETH: T; + LpMKRWETH: T; + LpRENWETH: T; + LpSNXWETH: T; + LpUNIWETH: T; + LpUSDCWETH: T; + LpWBTCUSDC: T; + LpYFIWETH: T; } export type iAssetsWithoutETH = Omit, 'ETH'>; @@ -256,25 +256,25 @@ export type iAavePoolAssets = Pick< export type iLpPoolAssets = Pick< iAssetsWithoutUSD, - | 'UniDAI' - | 'UniUSDC' - | 'UniUSDT' - | 'UniWBTC' - | 'UniWETH' - | 'UniDAIWETH' - | 'UniWBTCWETH' - | 'UniAAVEWETH' - | 'UniBATWETH' - | 'UniUSDCDAI' - | 'UniCRVWETH' - | 'UniLINKWETH' - | 'UniMKRWETH' - | 'UniRENWETH' - | 'UniSNXWETH' - | 'UniUNIWETH' - | 'UniUSDCWETH' - | 'UniWBTCUSDC' - | 'UniYFIWETH' + | 'LpDAI' + | 'LpUSDC' + | 'LpUSDT' + | 'LpWBTC' + | 'LpWETH' + | 'LpDAIWETH' + | 'LpWBTCWETH' + | 'LpAAVEWETH' + | 'LpBATWETH' + | 'LpUSDCDAI' + | 'LpCRVWETH' + | 'LpLINKWETH' + | 'LpMKRWETH' + | 'LpRENWETH' + | 'LpSNXWETH' + | 'LpUNIWETH' + | 'LpUSDCWETH' + | 'LpWBTCUSDC' + | 'LpYFIWETH' >; export type iMultiPoolsAssets = iAssetCommon | iAavePoolAssets; @@ -305,25 +305,25 @@ export enum TokenContractId { YFI = 'YFI', UNI = 'UNI', ENJ = 'ENJ', - UniWETH = 'UniWETH', - UniWBTC = 'UniWBTC', - UniDAI = 'UniDAI', - UniUSDC = 'UniUSDC', - UniUSDT = 'UniUSDT', - UniDAIWETH = 'UniDAIWETH', - UniWBTCWETH = 'UniWBTCWETH', - UniAAVEWETH = 'UniAAVEWETH', - UniBATWETH = 'UniBATWETH', - UniUSDCDAI = 'UniUSDCDAI', - UniCRVWETH = 'UniCRVWETH', - UniLINKWETH = 'UniLINKWETH', - UniMKRWETH = 'UniMKRWETH', - UniRENWETH = 'UniRENWETH', - UniSNXWETH = 'UniSNXWETH', - UniUNIWETH = 'UniUNIWETH', - UniUSDCWETH = 'UniUSDCWETH', - UniWBTCUSDC = 'UniWBTCUSDC', - UniYFIWETH = 'UniYFIWETH', + LpWETH = 'LpWETH', + LpWBTC = 'LpWBTC', + LpDAI = 'LpDAI', + LpUSDC = 'LpUSDC', + LpUSDT = 'LpUSDT', + LpDAIWETH = 'LpDAIWETH', + LpWBTCWETH = 'LpWBTCWETH', + LpAAVEWETH = 'LpAAVEWETH', + LpBATWETH = 'LpBATWETH', + LpUSDCDAI = 'LpUSDCDAI', + LpCRVWETH = 'LpCRVWETH', + LpLINKWETH = 'LpLINKWETH', + LpMKRWETH = 'LpMKRWETH', + LpRENWETH = 'LpRENWETH', + LpSNXWETH = 'LpSNXWETH', + LpUNIWETH = 'LpUNIWETH', + LpUSDCWETH = 'LpUSDCWETH', + LpWBTCUSDC = 'LpWBTCUSDC', + LpYFIWETH = 'LpYFIWETH', } export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams { diff --git a/markets/aave/commons.ts b/markets/aave/commons.ts index be9ae7e5..69d820ab 100644 --- a/markets/aave/commons.ts +++ b/markets/aave/commons.ts @@ -23,25 +23,25 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = { WBTC: oneEther.multipliedBy('47.332685').toFixed(), YFI: oneEther.multipliedBy('22.407436').toFixed(), ZRX: oneEther.multipliedBy('0.001151').toFixed(), - UniDAI: oneEther.multipliedBy('0.00369068412860').toFixed(), - UniUSDC: oneEther.multipliedBy('0.00367714136416').toFixed(), - UniUSDT: oneEther.multipliedBy('0.00369068412860').toFixed(), - UniWBTC: oneEther.multipliedBy('47.332685').toFixed(), - UniWETH: oneEther.toFixed(), - UniDAIWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniAAVEWETH: oneEther.multipliedBy('0.003620948469').toFixed(), - UniBATWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniUSDCDAI: oneEther.multipliedBy('22.407436').toFixed(), - UniCRVWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniLINKWETH: oneEther.multipliedBy('0.009955').toFixed(), - UniMKRWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniRENWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniSNXWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniUNIWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniUSDCWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), - UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpDAI: oneEther.multipliedBy('0.00369068412860').toFixed(), + LpUSDC: oneEther.multipliedBy('0.00367714136416').toFixed(), + LpUSDT: oneEther.multipliedBy('0.00369068412860').toFixed(), + LpWBTC: oneEther.multipliedBy('47.332685').toFixed(), + LpWETH: oneEther.toFixed(), + LpDAIWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpAAVEWETH: oneEther.multipliedBy('0.003620948469').toFixed(), + LpBATWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpUSDCDAI: oneEther.multipliedBy('22.407436').toFixed(), + LpCRVWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpLINKWETH: oneEther.multipliedBy('0.009955').toFixed(), + LpMKRWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpRENWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpSNXWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpUNIWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpUSDCWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), + LpYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), USD: '5848466240000000', }; diff --git a/markets/lp/commons.ts b/markets/lp/commons.ts index a74338bc..aaca1cf0 100644 --- a/markets/lp/commons.ts +++ b/markets/lp/commons.ts @@ -23,25 +23,25 @@ const MOCK_CHAINLINK_AGGREGATORS_PRICES = { WBTC: oneEther.multipliedBy('47.332685').toFixed(), YFI: oneEther.multipliedBy('22.407436').toFixed(), ZRX: oneEther.multipliedBy('0.001151').toFixed(), - UniDAI: oneEther.multipliedBy('0.00369068412860').toFixed(), - UniUSDC: oneEther.multipliedBy('0.00367714136416').toFixed(), - UniUSDT: oneEther.multipliedBy('0.00369068412860').toFixed(), - UniWBTC: oneEther.multipliedBy('47.332685').toFixed(), - UniWETH: oneEther.toFixed(), - UniDAIWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniAAVEWETH: oneEther.multipliedBy('0.003620948469').toFixed(), - UniBATWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniUSDCDAI: oneEther.multipliedBy('22.407436').toFixed(), - UniCRVWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniLINKWETH: oneEther.multipliedBy('0.009955').toFixed(), - UniMKRWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniRENWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniSNXWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniUNIWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniUSDCWETH: oneEther.multipliedBy('22.407436').toFixed(), - UniWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), - UniYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpDAI: oneEther.multipliedBy('0.00369068412860').toFixed(), + LpUSDC: oneEther.multipliedBy('0.00367714136416').toFixed(), + LpUSDT: oneEther.multipliedBy('0.00369068412860').toFixed(), + LpWBTC: oneEther.multipliedBy('47.332685').toFixed(), + LpWETH: oneEther.toFixed(), + LpDAIWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpWBTCWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpAAVEWETH: oneEther.multipliedBy('0.003620948469').toFixed(), + LpBATWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpUSDCDAI: oneEther.multipliedBy('22.407436').toFixed(), + LpCRVWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpLINKWETH: oneEther.multipliedBy('0.009955').toFixed(), + LpMKRWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpRENWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpSNXWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpUNIWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpUSDCWETH: oneEther.multipliedBy('22.407436').toFixed(), + LpWBTCUSDC: oneEther.multipliedBy('22.407436').toFixed(), + LpYFIWETH: oneEther.multipliedBy('22.407436').toFixed(), USD: '5848466240000000', }; // ---------------- @@ -71,61 +71,61 @@ export const CommonsConfig: ICommonConfiguration = { }, // TODO: reorg alphabetically, checking the reason of tests failing LendingRateOracleRatesCommon: { - UniWETH: { + LpWETH: { borrowRate: oneRay.multipliedBy(0.03).toFixed(), }, - UniDAI: { + LpDAI: { borrowRate: oneRay.multipliedBy(0.039).toFixed(), }, - UniUSDC: { + LpUSDC: { borrowRate: oneRay.multipliedBy(0.039).toFixed(), }, - UniUSDT: { + LpUSDT: { borrowRate: oneRay.multipliedBy(0.035).toFixed(), }, - UniWBTC: { + LpWBTC: { borrowRate: oneRay.multipliedBy(0.03).toFixed(), }, - UniDAIWETH: { + LpDAIWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniWBTCWETH: { + LpWBTCWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniAAVEWETH:{ + LpAAVEWETH:{ borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniBATWETH: { + LpBATWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniUSDCDAI: { + LpUSDCDAI: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniCRVWETH: { + LpCRVWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniLINKWETH: { + LpLINKWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniMKRWETH: { + LpMKRWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniRENWETH: { + LpRENWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniSNXWETH: { + LpSNXWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniUNIWETH: { + LpUNIWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniUSDCWETH: { + LpUSDCWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniWBTCUSDC: { + LpWBTCUSDC: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, - UniYFIWETH: { + LpYFIWETH: { borrowRate: oneRay.multipliedBy(0.05).toFixed(), }, }, @@ -214,68 +214,68 @@ export const CommonsConfig: ICommonConfiguration = { [eEthereumNetwork.hardhat]: {}, [eEthereumNetwork.buidlerevm]: {}, [EthereumNetwork.kovan]: { - UniUSDT: '0x0bF499444525a23E7Bb61997539725cA2e928138', - UniWBTC: '0xF7904a295A029a3aBDFFB6F12755974a958C7C25', - UniUSDC: '0x64EaC61A2DFda2c3Fa04eED49AA33D021AeC8838', - UniDAI:'0x22B58f1EbEDfCA50feF632bD73368b2FdA96D541', - UniDAIWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', // Mock oracles - UniWBTCWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniAAVEWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniBATWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniUSDCDAI: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniCRVWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniLINKWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniMKRWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniRENWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniSNXWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniUNIWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniUSDCWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniWBTCUSDC: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', - UniYFIWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpUSDT: '0x0bF499444525a23E7Bb61997539725cA2e928138', + LpWBTC: '0xF7904a295A029a3aBDFFB6F12755974a958C7C25', + LpUSDC: '0x64EaC61A2DFda2c3Fa04eED49AA33D021AeC8838', + LpDAI:'0x22B58f1EbEDfCA50feF632bD73368b2FdA96D541', + LpDAIWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', // Mock oracles + LpWBTCWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpAAVEWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpBATWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpUSDCDAI: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpCRVWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpLINKWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpMKRWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpRENWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpSNXWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpUNIWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpUSDCWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpWBTCUSDC: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', + LpYFIWETH: '0x90B86B501BF4d800a7F76E551952E214Cc58Fba3', USD: '0x9326BFA02ADD2366b30bacB125260Af641031331', }, [EthereumNetwork.ropsten]: { }, [EthereumNetwork.main]: { - UniUSDT: '0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46', - UniWBTC: '0xdeb288F737066589598e9214E782fa5A8eD689e8', - UniUSDC: '0x986b5E1e1755e3C2440e960477f25201B0a8bbD4', - UniDAI:'0x773616E4d11A78F511299002da57A0a94577F1f4', - UniDAIWETH: '0xf4071801C4421Db7e63DaC15B9432e50C44a7F42', - UniWBTCWETH: ZERO_ADDRESS, - UniAAVEWETH: ZERO_ADDRESS, - UniBATWETH: ZERO_ADDRESS, - UniUSDCDAI: ZERO_ADDRESS, - UniCRVWETH: ZERO_ADDRESS, - UniLINKWETH: ZERO_ADDRESS, - UniMKRWETH: ZERO_ADDRESS, - UniRENWETH: ZERO_ADDRESS, - UniSNXWETH: ZERO_ADDRESS, - UniUNIWETH: ZERO_ADDRESS, - UniUSDCWETH: ZERO_ADDRESS, - UniWBTCUSDC: ZERO_ADDRESS, - UniYFIWETH: ZERO_ADDRESS, + LpUSDT: '0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46', + LpWBTC: '0xdeb288F737066589598e9214E782fa5A8eD689e8', + LpUSDC: '0x986b5E1e1755e3C2440e960477f25201B0a8bbD4', + LpDAI:'0x773616E4d11A78F511299002da57A0a94577F1f4', + LpDAIWETH: '0xf4071801C4421Db7e63DaC15B9432e50C44a7F42', + LpWBTCWETH: ZERO_ADDRESS, + LpAAVEWETH: ZERO_ADDRESS, + LpBATWETH: ZERO_ADDRESS, + LpUSDCDAI: ZERO_ADDRESS, + LpCRVWETH: ZERO_ADDRESS, + LpLINKWETH: ZERO_ADDRESS, + LpMKRWETH: ZERO_ADDRESS, + LpRENWETH: ZERO_ADDRESS, + LpSNXWETH: ZERO_ADDRESS, + LpUNIWETH: ZERO_ADDRESS, + LpUSDCWETH: ZERO_ADDRESS, + LpWBTCUSDC: ZERO_ADDRESS, + LpYFIWETH: ZERO_ADDRESS, USD: '0x9326BFA02ADD2366b30bacB125260Af641031331', }, [EthereumNetwork.tenderlyMain]: { - UniUSDT: '0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46', - UniWBTC: '0xdeb288F737066589598e9214E782fa5A8eD689e8', - UniUSDC: '0x986b5E1e1755e3C2440e960477f25201B0a8bbD4', - UniDAI:'0x773616E4d11A78F511299002da57A0a94577F1f4', - UniDAIWETH: ZERO_ADDRESS, - UniWBTCWETH: ZERO_ADDRESS, - UniAAVEWETH: ZERO_ADDRESS, - UniBATWETH: ZERO_ADDRESS, - UniUSDCDAI: ZERO_ADDRESS, - UniCRVWETH: ZERO_ADDRESS, - UniLINKWETH: ZERO_ADDRESS, - UniMKRWETH: ZERO_ADDRESS, - UniRENWETH: ZERO_ADDRESS, - UniSNXWETH: ZERO_ADDRESS, - UniUNIWETH: ZERO_ADDRESS, - UniUSDCWETH: ZERO_ADDRESS, - UniWBTCUSDC: ZERO_ADDRESS, - UniYFIWETH: ZERO_ADDRESS, + LpUSDT: '0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46', + LpWBTC: '0xdeb288F737066589598e9214E782fa5A8eD689e8', + LpUSDC: '0x986b5E1e1755e3C2440e960477f25201B0a8bbD4', + LpDAI:'0x773616E4d11A78F511299002da57A0a94577F1f4', + LpDAIWETH: ZERO_ADDRESS, + LpWBTCWETH: ZERO_ADDRESS, + LpAAVEWETH: ZERO_ADDRESS, + LpBATWETH: ZERO_ADDRESS, + LpUSDCDAI: ZERO_ADDRESS, + LpCRVWETH: ZERO_ADDRESS, + LpLINKWETH: ZERO_ADDRESS, + LpMKRWETH: ZERO_ADDRESS, + LpRENWETH: ZERO_ADDRESS, + LpSNXWETH: ZERO_ADDRESS, + LpUNIWETH: ZERO_ADDRESS, + LpUSDCWETH: ZERO_ADDRESS, + LpWBTCUSDC: ZERO_ADDRESS, + LpYFIWETH: ZERO_ADDRESS, USD: '0x9326BFA02ADD2366b30bacB125260Af641031331', }, }, diff --git a/markets/lp/index.ts b/markets/lp/index.ts index 556eb515..55d44e86 100644 --- a/markets/lp/index.ts +++ b/markets/lp/index.ts @@ -33,62 +33,62 @@ export const lpConfig: ILpConfiguration = { MarketId: 'Aave LP market', ProviderId: 2, ReservesConfig: { - UniWETH: strategyWETH, - UniDAI: strategyDAI, - UniUSDC: strategyUSDC, - UniUSDT: strategyUSDT, - UniWBTC: strategyWBTC, - UniDAIWETH: strategyDAIWETH, - UniWBTCWETH: strategyWBTCWETH, - UniAAVEWETH: strategyAAVEWETH, - UniBATWETH: strategyBATWETH, - UniUSDCDAI: strategyUSDCDAI, - UniCRVWETH: strategyCRVWETH, - UniLINKWETH: strategyLINKWETH, - UniMKRWETH: strategyMKRWETH, - UniRENWETH: strategyRENWETH, - UniSNXWETH: strategySNXWETH, - UniUNIWETH: strategyUNIWETH, - UniUSDCWETH: strategyUSDCWETH, - UniWBTCUSDC: strategyWBTCUSDC, - UniYFIWETH: strategyYFIWETH, + LpWETH: strategyWETH, + LpDAI: strategyDAI, + LpUSDC: strategyUSDC, + LpUSDT: strategyUSDT, + LpWBTC: strategyWBTC, + LpDAIWETH: strategyDAIWETH, + LpWBTCWETH: strategyWBTCWETH, + LpAAVEWETH: strategyAAVEWETH, + LpBATWETH: strategyBATWETH, + LpUSDCDAI: strategyUSDCDAI, + LpCRVWETH: strategyCRVWETH, + LpLINKWETH: strategyLINKWETH, + LpMKRWETH: strategyMKRWETH, + LpRENWETH: strategyRENWETH, + LpSNXWETH: strategySNXWETH, + LpUNIWETH: strategyUNIWETH, + LpUSDCWETH: strategyUSDCWETH, + LpWBTCUSDC: strategyWBTCUSDC, + LpYFIWETH: strategyYFIWETH, }, ReserveAssets: { [eEthereumNetwork.buidlerevm]: {}, [eEthereumNetwork.hardhat]: {}, [eEthereumNetwork.coverage]: {}, [EthereumNetwork.kovan]: { - UniDAI: '0xFf795577d9AC8bD7D90Ee22b6C1703490b6512FD', - UniUSDC: '0xe22da380ee6B445bb8273C81944ADEB6E8450422', - UniUSDT: '0x13512979ADE267AB5100878E2e0f485B568328a4', - UniWBTC: '0xD1B98B6607330172f1D991521145A22BCe793277', - UniWETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c', - UniDAIWETH: '0x7d3A67ab574abD3F9849e5fcDa48c19939d032b4', + LpDAI: '0xFf795577d9AC8bD7D90Ee22b6C1703490b6512FD', + LpUSDC: '0xe22da380ee6B445bb8273C81944ADEB6E8450422', + LpUSDT: '0x13512979ADE267AB5100878E2e0f485B568328a4', + LpWBTC: '0xD1B98B6607330172f1D991521145A22BCe793277', + LpWETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c', + LpDAIWETH: '0x7d3A67ab574abD3F9849e5fcDa48c19939d032b4', uniWBTCWETH: '0x342e78bf229Cd2a750E80D7D7c2C185455979b91', // Other assets }, [EthereumNetwork.ropsten]: { }, [EthereumNetwork.main]: { - UniDAI: '0x6B175474E89094C44Da98b954EedeAC495271d0F', - UniUSDC: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', - UniUSDT: '0xdAC17F958D2ee523a2206206994597C13D831ec7', - UniWBTC: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', - UniWETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', - UniDAIWETH: '0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11', - UniWBTCWETH: '0xBb2b8038a1640196FbE3e38816F3e67Cba72D940', - UniAAVEWETH: '0xDFC14d2Af169B0D36C4EFF567Ada9b2E0CAE044f', - UniBATWETH: '0xB6909B960DbbE7392D405429eB2b3649752b4838', - UniUSDCDAI: '0xAE461cA67B15dc8dc81CE7615e0320dA1A9aB8D5', - UniCRVWETH: '0x3dA1313aE46132A397D90d95B1424A9A7e3e0fCE', - UniLINKWETH: '0xa2107FA5B38d9bbd2C461D6EDf11B11A50F6b974', - UniMKRWETH: '0xC2aDdA861F89bBB333c90c492cB837741916A225', - UniRENWETH: '0x8Bd1661Da98EBDd3BD080F0bE4e6d9bE8cE9858c', - UniSNXWETH: '0x43AE24960e5534731Fc831386c07755A2dc33D47', - UniUNIWETH: '0xd3d2E2692501A5c9Ca623199D38826e513033a17', - UniUSDCWETH: '0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc', - UniWBTCUSDC: '0x004375Dff511095CC5A197A54140a24eFEF3A416', - UniYFIWETH: '0x2fDbAdf3C4D5A8666Bc06645B8358ab803996E28', + LpDAI: '0x6B175474E89094C44Da98b954EedeAC495271d0F', + LpUSDC: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', + LpUSDT: '0xdAC17F958D2ee523a2206206994597C13D831ec7', + LpWBTC: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', + LpWETH: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', + LpDAIWETH: '0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11', + LpWBTCWETH: '0xBb2b8038a1640196FbE3e38816F3e67Cba72D940', + LpAAVEWETH: '0xDFC14d2Af169B0D36C4EFF567Ada9b2E0CAE044f', + LpBATWETH: '0xB6909B960DbbE7392D405429eB2b3649752b4838', + LpUSDCDAI: '0xAE461cA67B15dc8dc81CE7615e0320dA1A9aB8D5', + LpCRVWETH: '0x3dA1313aE46132A397D90d95B1424A9A7e3e0fCE', + LpLINKWETH: '0xa2107FA5B38d9bbd2C461D6EDf11B11A50F6b974', + LpMKRWETH: '0xC2aDdA861F89bBB333c90c492cB837741916A225', + LpRENWETH: '0x8Bd1661Da98EBDd3BD080F0bE4e6d9bE8cE9858c', + LpSNXWETH: '0x43AE24960e5534731Fc831386c07755A2dc33D47', + LpUNIWETH: '0xd3d2E2692501A5c9Ca623199D38826e513033a17', + LpUSDCWETH: '0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc', + LpWBTCUSDC: '0x004375Dff511095CC5A197A54140a24eFEF3A416', + LpYFIWETH: '0x2fDbAdf3C4D5A8666Bc06645B8358ab803996E28', }, [EthereumNetwork.tenderlyMain]: { DAI: '0x6B175474E89094C44Da98b954EedeAC495271d0F', diff --git a/test-suites/test-aave/__setup.spec.ts b/test-suites/test-aave/__setup.spec.ts index c099facd..bd284dee 100644 --- a/test-suites/test-aave/__setup.spec.ts +++ b/test-suites/test-aave/__setup.spec.ts @@ -165,25 +165,25 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => { REN: mockTokens.REN.address, UNI: mockTokens.UNI.address, ENJ: mockTokens.ENJ.address, - UniDAI: mockTokens.UniDAI.address, - UniUSDC: mockTokens.UniUSDC.address, - UniUSDT: mockTokens.UniUSDT.address, - UniWBTC: mockTokens.UniWBTC.address, - UniWETH: mockTokens.UniWETH.address, - UniDAIWETH: mockTokens.UniDAIWETH.address, - UniWBTCWETH: mockTokens.UniWBTCWETH.address, - UniAAVEWETH: mockTokens.UniAAVEWETH.address, - UniBATWETH: mockTokens.UniBATWETH.address, - UniUSDCDAI: mockTokens.UniUSDCDAI.address, - UniCRVWETH: mockTokens.UniCRVWETH.address, - UniLINKWETH: mockTokens.UniLINKWETH.address, - UniMKRWETH: mockTokens.UniMKRWETH.address, - UniRENWETH: mockTokens.UniRENWETH.address, - UniSNXWETH: mockTokens.UniSNXWETH.address, - UniUNIWETH: mockTokens.UniUNIWETH.address, - UniUSDCWETH: mockTokens.UniUSDCWETH.address, - UniWBTCUSDC: mockTokens.UniWBTCUSDC.address, - UniYFIWETH: mockTokens.UniYFIWETH.address, + LpDAI: mockTokens.LpDAI.address, + LpUSDC: mockTokens.LpUSDC.address, + LpUSDT: mockTokens.LpUSDT.address, + LpWBTC: mockTokens.LpWBTC.address, + LpWETH: mockTokens.LpWETH.address, + LpDAIWETH: mockTokens.LpDAIWETH.address, + LpWBTCWETH: mockTokens.LpWBTCWETH.address, + LpAAVEWETH: mockTokens.LpAAVEWETH.address, + LpBATWETH: mockTokens.LpBATWETH.address, + LpUSDCDAI: mockTokens.LpUSDCDAI.address, + LpCRVWETH: mockTokens.LpCRVWETH.address, + LpLINKWETH: mockTokens.LpLINKWETH.address, + LpMKRWETH: mockTokens.LpMKRWETH.address, + LpRENWETH: mockTokens.LpRENWETH.address, + LpSNXWETH: mockTokens.LpSNXWETH.address, + LpUNIWETH: mockTokens.LpUNIWETH.address, + LpUSDCWETH: mockTokens.LpUSDCWETH.address, + LpWBTCUSDC: mockTokens.LpWBTCUSDC.address, + LpYFIWETH: mockTokens.LpYFIWETH.address, USD: USD_ADDRESS, }, fallbackOracle diff --git a/test-suites/test-lp/__setup.spec.ts b/test-suites/test-lp/__setup.spec.ts index 8acdbf33..47285ee0 100644 --- a/test-suites/test-lp/__setup.spec.ts +++ b/test-suites/test-lp/__setup.spec.ts @@ -66,7 +66,7 @@ const deployAllMockTokens = async (deployer: Signer) => { const lpConfigData = getReservesConfigByPool(AavePools.lp); for (const tokenSymbol of Object.keys(TokenContractId)) { - if (tokenSymbol === 'UniWETH') { + if (tokenSymbol === 'LpWETH') { tokens[tokenSymbol] = await deployWETHMocked(); await registerContractInJsonDb('WETH', tokens[tokenSymbol]); continue; @@ -165,25 +165,25 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => { REN: mockTokens.REN.address, UNI: mockTokens.UNI.address, ENJ: mockTokens.ENJ.address, - UniDAI: mockTokens.UniDAI.address, - UniUSDC: mockTokens.UniUSDC.address, - UniUSDT: mockTokens.UniUSDT.address, - UniWBTC: mockTokens.UniWBTC.address, - UniWETH: mockTokens.UniWETH.address, - UniDAIWETH: mockTokens.UniDAIWETH.address, - UniWBTCWETH: mockTokens.UniWBTCWETH.address, - UniAAVEWETH: mockTokens.UniAAVEWETH.address, - UniBATWETH: mockTokens.UniBATWETH.address, - UniUSDCDAI: mockTokens.UniUSDCDAI.address, - UniCRVWETH: mockTokens.UniCRVWETH.address, - UniLINKWETH: mockTokens.UniLINKWETH.address, - UniMKRWETH: mockTokens.UniMKRWETH.address, - UniRENWETH: mockTokens.UniRENWETH.address, - UniSNXWETH: mockTokens.UniSNXWETH.address, - UniUNIWETH: mockTokens.UniUNIWETH.address, - UniUSDCWETH: mockTokens.UniUSDCWETH.address, - UniWBTCUSDC: mockTokens.UniWBTCUSDC.address, - UniYFIWETH: mockTokens.UniYFIWETH.address, + LpDAI: mockTokens.LpDAI.address, + LpUSDC: mockTokens.LpUSDC.address, + LpUSDT: mockTokens.LpUSDT.address, + LpWBTC: mockTokens.LpWBTC.address, + LpWETH: mockTokens.LpWETH.address, + LpDAIWETH: mockTokens.LpDAIWETH.address, + LpWBTCWETH: mockTokens.LpWBTCWETH.address, + LpAAVEWETH: mockTokens.LpAAVEWETH.address, + LpBATWETH: mockTokens.LpBATWETH.address, + LpUSDCDAI: mockTokens.LpUSDCDAI.address, + LpCRVWETH: mockTokens.LpCRVWETH.address, + LpLINKWETH: mockTokens.LpLINKWETH.address, + LpMKRWETH: mockTokens.LpMKRWETH.address, + LpRENWETH: mockTokens.LpRENWETH.address, + LpSNXWETH: mockTokens.LpSNXWETH.address, + LpUNIWETH: mockTokens.LpUNIWETH.address, + LpUSDCWETH: mockTokens.LpUSDCWETH.address, + LpWBTCUSDC: mockTokens.LpWBTCUSDC.address, + LpYFIWETH: mockTokens.LpYFIWETH.address, USD: USD_ADDRESS, }, fallbackOracle @@ -268,7 +268,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => { await deployWalletBalancerProvider(); - await deployWETHGateway([mockTokens.UniWETH.address, lendingPoolAddress]); + await deployWETHGateway([mockTokens.LpWETH.address, lendingPoolAddress]); console.timeEnd('setup'); }; diff --git a/test-suites/test-lp/atoken-transfer.spec.ts b/test-suites/test-lp/atoken-transfer.spec.ts index 268302e3..7e7c029b 100644 --- a/test-suites/test-lp/atoken-transfer.spec.ts +++ b/test-suites/test-lp/atoken-transfer.spec.ts @@ -33,7 +33,7 @@ makeSuite('AToken: Transfer', (testEnv: TestEnv) => { const name = await aDai.name(); - expect(name).to.be.equal('Aave interest bearing UniDAI'); + expect(name).to.be.equal('Aave interest bearing LpDAI'); const fromBalance = await aDai.balanceOf(users[0].address); const toBalance = await aDai.balanceOf(users[1].address); diff --git a/test-suites/test-lp/helpers/make-suite.ts b/test-suites/test-lp/helpers/make-suite.ts index fd78ae6f..10499ecc 100644 --- a/test-suites/test-lp/helpers/make-suite.ts +++ b/test-suites/test-lp/helpers/make-suite.ts @@ -128,15 +128,15 @@ export async function initializeMakeSuite() { testEnv.helpersContract = await getAaveProtocolDataProvider(); const allTokens = await testEnv.helpersContract.getAllATokens(); - const aDaiAddress = allTokens.find((aToken) => aToken.symbol === 'aUniDAI')?.tokenAddress; + const aDaiAddress = allTokens.find((aToken) => aToken.symbol === 'aLpDAI')?.tokenAddress; - const aWEthAddress = allTokens.find((aToken) => aToken.symbol === 'aUniWETH')?.tokenAddress; + const aWEthAddress = allTokens.find((aToken) => aToken.symbol === 'aLpWETH')?.tokenAddress; const reservesTokens = await testEnv.helpersContract.getAllReservesTokens(); - const daiAddress = reservesTokens.find((token) => token.symbol === 'UniDAI')?.tokenAddress; - const usdcAddress = reservesTokens.find((token) => token.symbol === 'UniUSDC')?.tokenAddress; - const aaveAddress = reservesTokens.find((token) => token.symbol === 'UniAAVEWETH')?.tokenAddress; + const daiAddress = reservesTokens.find((token) => token.symbol === 'LpDAI')?.tokenAddress; + const usdcAddress = reservesTokens.find((token) => token.symbol === 'LpUSDC')?.tokenAddress; + const aaveAddress = reservesTokens.find((token) => token.symbol === 'LpAAVEWETH')?.tokenAddress; const wethAddress = reservesTokens.find((token) => token.symbol === 'WETH')?.tokenAddress; if (!aDaiAddress || !aWEthAddress) { diff --git a/test-suites/test-lp/helpers/scenarios/borrow-negatives.json b/test-suites/test-lp/helpers/scenarios/borrow-negatives.json index 6ab95c87..4ae81f1f 100644 --- a/test-suites/test-lp/helpers/scenarios/borrow-negatives.json +++ b/test-suites/test-lp/helpers/scenarios/borrow-negatives.json @@ -3,12 +3,12 @@ "description": "Test cases for the deposit function.", "stories": [ { - "description": "User 0 deposits 1000 UNIDAI, user 1 deposits 1 WETH as collateral and tries to borrow 100 UNIDAI with rate mode NONE (revert expected)", + "description": "User 0 deposits 1000 LPDAI, user 1 deposits 1 WETH as collateral and tries to borrow 100 LPDAI with rate mode NONE (revert expected)", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -17,7 +17,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -25,7 +25,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -60,7 +60,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "none", "user": "1" @@ -71,12 +71,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIDAI, user 1 deposits 1 WETH as collateral and tries to borrow 100 UNIDAI with an invalid rate mode (revert expected)", + "description": "User 0 deposits 1000 LPDAI, user 1 deposits 1 WETH as collateral and tries to borrow 100 LPDAI with an invalid rate mode (revert expected)", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -85,7 +85,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -93,7 +93,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -128,7 +128,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "invalid", "user": "1" diff --git a/test-suites/test-lp/helpers/scenarios/borrow-repay-stable.json b/test-suites/test-lp/helpers/scenarios/borrow-repay-stable.json index 4f12eb86..00596048 100644 --- a/test-suites/test-lp/helpers/scenarios/borrow-repay-stable.json +++ b/test-suites/test-lp/helpers/scenarios/borrow-repay-stable.json @@ -3,12 +3,12 @@ "description": "Test cases for the borrow function, stable mode.", "stories": [ { - "description": "User 0 deposits 1000 UNIDAI, user 1 deposits 1 WETH as collateral and borrows 100 UNIDAI at stable rate", + "description": "User 0 deposits 1000 LPDAI, user 1 deposits 1 WETH as collateral and borrows 100 LPDAI at stable rate", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -17,7 +17,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -25,7 +25,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -61,7 +61,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "stable", "user": "1", @@ -72,12 +72,12 @@ ] }, { - "description": "User 1 tries to borrow the rest of the UNIDAI liquidity (revert expected)", + "description": "User 1 tries to borrow the rest of the LPDAI liquidity (revert expected)", "actions": [ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "900", "borrowRateMode": "stable", "user": "1" @@ -88,13 +88,13 @@ ] }, { - "description": "User 1 repays half of the UNIDAI borrow after one year", + "description": "User 1 repays half of the LPDAI borrow after one year", "actions": [ { "name": "mint", - "description": "Mint 10 UNIDAI to cover the interest", + "description": "Mint 10 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "10", "user": "1" }, @@ -103,7 +103,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -111,7 +111,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "50", "user": "1", "onBehalfOf": "1", @@ -122,13 +122,13 @@ ] }, { - "description": "User 1 repays the rest of the UNIDAI borrow after one year", + "description": "User 1 repays the rest of the LPDAI borrow after one year", "actions": [ { "name": "mint", - "description": "Mint 15 UNIDAI to cover the interest", + "description": "Mint 15 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "15", "user": "1" }, @@ -137,7 +137,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -145,7 +145,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "1", "onBehalfOf": "1", @@ -156,12 +156,12 @@ ] }, { - "description": "User 0 withdraws the deposited UNIDAI plus interest", + "description": "User 0 withdraws the deposited LPDAI plus interest", "actions": [ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "0" }, @@ -170,12 +170,12 @@ ] }, { - "description": "User 1 deposits 1000 UNIDAI, user 2 tries to borrow 1000 UNIDAI at a stable rate without any collateral (revert expected) User 1 withdrawws", + "description": "User 1 deposits 1000 LPDAI, user 2 tries to borrow 1000 LPDAI at a stable rate without any collateral (revert expected) User 1 withdrawws", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -184,7 +184,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -192,7 +192,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -201,7 +201,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "borrowRateMode": "stable", "user": "2" @@ -212,7 +212,7 @@ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -221,12 +221,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIDAI, user 1,2,3,4 deposit 1 WETH each and borrow 100 UNIDAI at stable rate. Everything is repaid, user 0 withdraws", + "description": "User 0 deposits 1000 LPDAI, user 1,2,3,4 deposit 1 WETH each and borrow 100 LPDAI at stable rate. Everything is repaid, user 0 withdraws", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -235,7 +235,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -243,7 +243,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -278,7 +278,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "stable", "user": "1", @@ -315,7 +315,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "stable", "user": "2", @@ -352,7 +352,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "stable", "user": "3", @@ -389,7 +389,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "stable", "user": "4", @@ -399,9 +399,9 @@ }, { "name": "mint", - "description": "Mint 15 UNIDAI to cover the interest", + "description": "Mint 15 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "15", "user": "1" }, @@ -410,7 +410,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -418,7 +418,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "1", "onBehalfOf": "1", @@ -428,9 +428,9 @@ }, { "name": "mint", - "description": "Mint 20 UNIDAI to cover the interest", + "description": "Mint 20 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "20", "user": "2" }, @@ -439,7 +439,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "2" }, "expected": "success" @@ -447,7 +447,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "2", "onBehalfOf": "2", @@ -457,9 +457,9 @@ }, { "name": "mint", - "description": "Mint 30 UNIDAI to cover the interest", + "description": "Mint 30 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "30", "user": "3" }, @@ -468,7 +468,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "3" }, "expected": "success" @@ -476,7 +476,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "3", "onBehalfOf": "3", @@ -486,9 +486,9 @@ }, { "name": "mint", - "description": "Mint 30 UNIDAI to cover the interest", + "description": "Mint 30 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "30", "user": "4" }, @@ -497,7 +497,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "4" }, "expected": "success" @@ -505,7 +505,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "4", "onBehalfOf": "4", @@ -516,7 +516,7 @@ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "0" }, @@ -525,12 +525,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIDAI, user 1 deposits 2 WETH and borrow 100 UNIDAI at stable rate first, then 100 UNIDAI at variable rate, repays everything. User 0 withdraws", + "description": "User 0 deposits 1000 LPDAI, user 1 deposits 2 WETH and borrow 100 LPDAI at stable rate first, then 100 LPDAI at variable rate, repays everything. User 0 withdraws", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -539,7 +539,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -547,7 +547,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -582,7 +582,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "stable", "user": "1", @@ -593,7 +593,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "variable", "user": "1", @@ -603,9 +603,9 @@ }, { "name": "mint", - "description": "Mint 50 UNIDAI to cover the interest", + "description": "Mint 50 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "50", "user": "1" }, @@ -614,7 +614,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -622,7 +622,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "1", "onBehalfOf": "1", @@ -633,7 +633,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "1", "onBehalfOf": "1", @@ -644,7 +644,7 @@ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "0" }, diff --git a/test-suites/test-lp/helpers/scenarios/borrow-repay-variable.json b/test-suites/test-lp/helpers/scenarios/borrow-repay-variable.json index 482e337c..743ef2e8 100644 --- a/test-suites/test-lp/helpers/scenarios/borrow-repay-variable.json +++ b/test-suites/test-lp/helpers/scenarios/borrow-repay-variable.json @@ -3,12 +3,12 @@ "description": "Test cases for the borrow function, variable mode.", "stories": [ { - "description": "User 2 deposits 1 UNIDAI to account for rounding errors", + "description": "User 2 deposits 1 LPDAI to account for rounding errors", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1", "user": "2" }, @@ -17,7 +17,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "2" }, "expected": "success" @@ -25,7 +25,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1", "user": "2" }, @@ -34,12 +34,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIDAI, user 1 deposits 1 WETH as collateral and borrows 100 UNIDAI at variable rate", + "description": "User 0 deposits 1000 LPDAI, user 1 deposits 1 WETH as collateral and borrows 100 LPDAI at variable rate", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -48,7 +48,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -56,7 +56,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -91,7 +91,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "variable", "user": "1", @@ -102,12 +102,12 @@ ] }, { - "description": "User 1 tries to borrow the rest of the UNIDAI liquidity (revert expected)", + "description": "User 1 tries to borrow the rest of the LPDAI liquidity (revert expected)", "actions": [ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "900", "borrowRateMode": "variable", "user": "1" @@ -118,12 +118,12 @@ ] }, { - "description": "User 1 tries to repay 0 UNIDAI (revert expected)", + "description": "User 1 tries to repay 0 LPDAI (revert expected)", "actions": [ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "0", "user": "1", "onBehalfOf": "1" @@ -134,12 +134,12 @@ ] }, { - "description": "User 1 repays a small amount of UNIDAI, enough to cover a small part of the interest", + "description": "User 1 repays a small amount of LPDAI, enough to cover a small part of the interest", "actions": [ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -147,7 +147,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1.25", "user": "1", "onBehalfOf": "1", @@ -158,13 +158,13 @@ ] }, { - "description": "User 1 repays the UNIDAI borrow after one year", + "description": "User 1 repays the LPDAI borrow after one year", "actions": [ { "name": "mint", - "description": "Mint 10 UNIDAI to cover the interest", + "description": "Mint 10 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "10", "user": "1" }, @@ -173,7 +173,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "1", "onBehalfOf": "1", @@ -184,12 +184,12 @@ ] }, { - "description": "User 0 withdraws the deposited UNIDAI plus interest", + "description": "User 0 withdraws the deposited LPDAI plus interest", "actions": [ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "0" }, @@ -243,7 +243,7 @@ ] }, { - "description": "User 0 deposits 1 WETH, user 1 deposits 100 UNILINKWETH as collateral and borrows 0.5 WETH at variable rate", + "description": "User 0 deposits 1 WETH, user 1 deposits 100 LPLINKWETH as collateral and borrows 0.5 WETH at variable rate", "actions": [ { "name": "mint", @@ -274,7 +274,7 @@ { "name": "mint", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "amount": "100", "user": "1" }, @@ -283,7 +283,7 @@ { "name": "approve", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "user": "1" }, "expected": "success" @@ -292,7 +292,7 @@ { "name": "deposit", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "amount": "100", "user": "1" }, @@ -431,7 +431,7 @@ { "name": "withdraw", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "amount": "-1", "user": "1" }, @@ -441,12 +441,12 @@ }, { - "description": "User 2 deposits 1 UNIUSDC to account for rounding errors", + "description": "User 2 deposits 1 LPUSDC to account for rounding errors", "actions": [ { "name": "mint", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1", "user": "2" }, @@ -455,7 +455,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "2" }, "expected": "success" @@ -463,7 +463,7 @@ { "name": "deposit", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1", "user": "2" }, @@ -472,12 +472,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIUSDC, user 1 deposits 1 WETH as collateral and borrows 100 UNIUSDC at variable rate", + "description": "User 0 deposits 1000 LPUSDC, user 1 deposits 1 WETH as collateral and borrows 100 LPUSDC at variable rate", "actions": [ { "name": "mint", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "0" }, @@ -486,7 +486,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0" }, "expected": "success" @@ -494,7 +494,7 @@ { "name": "deposit", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "0" }, @@ -529,7 +529,7 @@ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "100", "borrowRateMode": "variable", "user": "1", @@ -540,12 +540,12 @@ ] }, { - "description": "User 1 tries to borrow the rest of the UNIUSDC liquidity (revert expected)", + "description": "User 1 tries to borrow the rest of the LPUSDC liquidity (revert expected)", "actions": [ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "900", "borrowRateMode": "variable", "user": "1" @@ -556,13 +556,13 @@ ] }, { - "description": "User 1 repays the UNIUSDC borrow after one year", + "description": "User 1 repays the LPUSDC borrow after one year", "actions": [ { "name": "mint", - "description": "Mint 10 UNIUSDC to cover the interest", + "description": "Mint 10 LPUSDC to cover the interest", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "10", "user": "1" }, @@ -571,7 +571,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "1" }, "expected": "success" @@ -579,7 +579,7 @@ { "name": "repay", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "-1", "user": "1", "onBehalfOf": "1", @@ -590,12 +590,12 @@ ] }, { - "description": "User 0 withdraws the deposited UNIUSDC plus interest", + "description": "User 0 withdraws the deposited LPUSDC plus interest", "actions": [ { "name": "withdraw", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "-1", "user": "0" }, @@ -618,12 +618,12 @@ ] }, { - "description": "User 1 deposits 1000 UNIDAI, user 3 tries to borrow 1000 UNIDAI without any collateral (revert expected)", + "description": "User 1 deposits 1000 LPDAI, user 3 tries to borrow 1000 LPDAI without any collateral (revert expected)", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -632,7 +632,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -640,7 +640,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -649,7 +649,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "borrowRateMode": "variable", "user": "3" @@ -660,7 +660,7 @@ ] }, { - "description": "user 3 deposits 0.1 WETH collateral to borrow 100 UNIDAI; 0.1 WETH is not enough to borrow 100 UNIDAI (revert expected)", + "description": "user 3 deposits 0.1 WETH collateral to borrow 100 LPDAI; 0.1 WETH is not enough to borrow 100 LPDAI (revert expected)", "actions": [ { "name": "mint", @@ -691,7 +691,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "variable", "user": "3" @@ -716,12 +716,12 @@ ] }, { - "description": "User 1 deposits 1000 UNIUSDC, user 3 tries to borrow 1000 UNIUSDC without any collateral (revert expected)", + "description": "User 1 deposits 1000 LPUSDC, user 3 tries to borrow 1000 LPUSDC without any collateral (revert expected)", "actions": [ { "name": "mint", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "1" }, @@ -730,7 +730,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "1" }, "expected": "success" @@ -738,7 +738,7 @@ { "name": "deposit", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "1" }, @@ -747,7 +747,7 @@ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "borrowRateMode": "variable", "user": "3" @@ -758,7 +758,7 @@ ] }, { - "description": "user 3 deposits 0.1 WETH collateral to borrow 100 UNIUSDC; 0.1 WETH is not enough to borrow 100 UNIUSDC (revert expected)", + "description": "user 3 deposits 0.1 WETH collateral to borrow 100 LPUSDC; 0.1 WETH is not enough to borrow 100 LPUSDC (revert expected)", "actions": [ { "name": "mint", @@ -789,7 +789,7 @@ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "100", "borrowRateMode": "variable", "user": "3" @@ -814,12 +814,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIDAI, user 6 deposits 2 WETH and borrow 100 UNIDAI at variable rate first, then 100 UNIDAI at stable rate, repays everything. User 0 withdraws", + "description": "User 0 deposits 1000 LPDAI, user 6 deposits 2 WETH and borrow 100 LPDAI at variable rate first, then 100 LPDAI at stable rate, repays everything. User 0 withdraws", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -828,7 +828,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -836,7 +836,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -871,7 +871,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "variable", "user": "6", @@ -882,7 +882,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "stable", "user": "6", @@ -892,9 +892,9 @@ }, { "name": "mint", - "description": "Mint 50 UNIDAI to cover the interest", + "description": "Mint 50 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "50", "user": "6" }, @@ -903,7 +903,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "6" }, "expected": "success" @@ -911,7 +911,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "6", "onBehalfOf": "6", @@ -922,7 +922,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "6", "onBehalfOf": "6", @@ -933,7 +933,7 @@ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "0" }, diff --git a/test-suites/test-lp/helpers/scenarios/credit-delegation.json b/test-suites/test-lp/helpers/scenarios/credit-delegation.json index 6b9ece7e..cb8e82d6 100644 --- a/test-suites/test-lp/helpers/scenarios/credit-delegation.json +++ b/test-suites/test-lp/helpers/scenarios/credit-delegation.json @@ -3,7 +3,7 @@ "description": "Test cases for the credit delegation related functions.", "stories": [ { - "description": "User 3 deposits 1000 WETH. User 0 deposits 1000 UNIDAI, user 0 delegates borrowing of 1 WETH on variable to user 4, user 4 borrows 1 WETH variable on behalf of user 0", + "description": "User 3 deposits 1000 WETH. User 0 deposits 1000 LPDAI, user 0 delegates borrowing of 1 WETH on variable to user 4, user 4 borrows 1 WETH variable on behalf of user 0", "actions": [ { "name": "mint", @@ -34,7 +34,7 @@ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -43,7 +43,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -51,7 +51,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, diff --git a/test-suites/test-lp/helpers/scenarios/deposit.json b/test-suites/test-lp/helpers/scenarios/deposit.json index 385518b8..960011e3 100644 --- a/test-suites/test-lp/helpers/scenarios/deposit.json +++ b/test-suites/test-lp/helpers/scenarios/deposit.json @@ -3,12 +3,12 @@ "description": "Test cases for the deposit function.", "stories": [ { - "description": "User 0 Deposits 1000 UNIDAI in an empty reserve", + "description": "User 0 Deposits 1000 LPDAI in an empty reserve", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -17,7 +17,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -25,7 +25,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -34,12 +34,12 @@ ] }, { - "description": "User 1 deposits 1000 UNIDAI after user 0", + "description": "User 1 deposits 1000 LPDAI after user 0", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -48,7 +48,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -56,7 +56,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -65,12 +65,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIUSDC in an empty reserve", + "description": "User 0 deposits 1000 LPUSDC in an empty reserve", "actions": [ { "name": "mint", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "0" }, @@ -79,7 +79,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0" }, "expected": "success" @@ -87,7 +87,7 @@ { "name": "deposit", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "0" }, @@ -96,12 +96,12 @@ ] }, { - "description": "User 1 deposits 1000 UNIUSDC after user 0", + "description": "User 1 deposits 1000 LPUSDC after user 0", "actions": [ { "name": "mint", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "1" }, @@ -110,7 +110,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "1" }, "expected": "success" @@ -118,7 +118,7 @@ { "name": "deposit", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "1" }, @@ -214,12 +214,12 @@ ] }, { - "description": "User 1 deposits 0 UNIDAI", + "description": "User 1 deposits 0 LPDAI", "actions": [ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "0", "user": "1" }, @@ -229,12 +229,12 @@ ] }, { - "description": "User 1 deposits 100 UNIDAI on behalf of user 2, user 2 tries to borrow 0.1 WETH", + "description": "User 1 deposits 100 LPDAI on behalf of user 2, user 2 tries to borrow 0.1 WETH", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "user": "1" }, @@ -243,7 +243,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "user": "1", "onBehalfOf": "2" diff --git a/test-suites/test-lp/helpers/scenarios/rebalance-stable-rate.json b/test-suites/test-lp/helpers/scenarios/rebalance-stable-rate.json index 32c7c9bb..6c9325ef 100644 --- a/test-suites/test-lp/helpers/scenarios/rebalance-stable-rate.json +++ b/test-suites/test-lp/helpers/scenarios/rebalance-stable-rate.json @@ -8,7 +8,7 @@ { "name": "rebalanceStableBorrowRate", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0", "target": "1" }, @@ -18,12 +18,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIUSDC, user 1 deposits 7 WETH, borrows 250 UNIUSDC at a stable rate, user 0 rebalances user 1 (revert expected)", + "description": "User 0 deposits 1000 LPUSDC, user 1 deposits 7 WETH, borrows 250 LPUSDC at a stable rate, user 0 rebalances user 1 (revert expected)", "actions": [ { "name": "mint", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "0" }, @@ -32,7 +32,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0" }, "expected": "success" @@ -40,7 +40,7 @@ { "name": "deposit", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "0" }, @@ -75,7 +75,7 @@ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "250", "borrowRateMode": "stable", "user": "1" @@ -85,7 +85,7 @@ { "name": "rebalanceStableBorrowRate", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0", "target": "1" }, @@ -100,7 +100,7 @@ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "200", "borrowRateMode": "variable", "user": "1" @@ -110,7 +110,7 @@ { "name": "rebalanceStableBorrowRate", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0", "target": "1" }, @@ -125,7 +125,7 @@ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "200", "borrowRateMode": "variable", "user": "1" @@ -135,7 +135,7 @@ { "name": "rebalanceStableBorrowRate", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0", "target": "1" }, @@ -150,7 +150,7 @@ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "280", "borrowRateMode": "variable", "user": "1" @@ -160,7 +160,7 @@ { "name": "rebalanceStableBorrowRate", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0", "target": "1" }, @@ -171,12 +171,12 @@ }, { - "description": "User 1 borrows the remaining UNIUSDC (usage ratio = 100%) at variable. User 0 rebalances user 1", + "description": "User 1 borrows the remaining LPUSDC (usage ratio = 100%) at variable. User 0 rebalances user 1", "actions": [ { "name": "borrow", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "20", "borrowRateMode": "variable", "user": "1" @@ -186,7 +186,7 @@ { "name": "rebalanceStableBorrowRate", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0", "target": "1" }, diff --git a/test-suites/test-lp/helpers/scenarios/set-use-as-collateral.json b/test-suites/test-lp/helpers/scenarios/set-use-as-collateral.json index 71a3f860..b0cee5ee 100644 --- a/test-suites/test-lp/helpers/scenarios/set-use-as-collateral.json +++ b/test-suites/test-lp/helpers/scenarios/set-use-as-collateral.json @@ -3,12 +3,12 @@ "description": "Test cases for the setUserUseReserveAsCollateral() function.", "stories": [ { - "description": "User 0 Deposits 1000 UNIDAI, disables UNIDAI as collateral", + "description": "User 0 Deposits 1000 LPDAI, disables LPDAI as collateral", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -17,7 +17,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -25,7 +25,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -34,7 +34,7 @@ { "name": "setUseAsCollateral", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0", "useAsCollateral": "false" }, @@ -43,7 +43,7 @@ ] }, { - "description": "User 1 Deposits 2 WETH, disables WETH as collateral, borrows 400 UNIDAI (revert expected)", + "description": "User 1 Deposits 2 WETH, disables WETH as collateral, borrows 400 LPDAI (revert expected)", "actions": [ { "name": "mint", @@ -83,7 +83,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "400", "borrowRateMode": "variable", "user": "1" @@ -94,7 +94,7 @@ ] }, { - "description": "User 1 enables WETH as collateral, borrows 400 UNIDAI", + "description": "User 1 enables WETH as collateral, borrows 400 LPDAI", "actions": [ { "name": "setUseAsCollateral", @@ -108,7 +108,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "400", "borrowRateMode": "variable", "user": "1" @@ -133,12 +133,12 @@ ] }, { - "description": "User 1 Deposits 10 UNILINKWETH, disables WETH as collateral. Should revert as 10 UNILINKWETH are not enough to cover the debt (revert expected)", + "description": "User 1 Deposits 10 LPLINKWETH, disables WETH as collateral. Should revert as 10 LPLINKWETH are not enough to cover the debt (revert expected)", "actions": [ { "name": "mint", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "amount": "10", "user": "1" }, @@ -147,7 +147,7 @@ { "name": "approve", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "user": "1" }, "expected": "success" @@ -155,7 +155,7 @@ { "name": "deposit", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "amount": "10", "user": "1" }, @@ -173,12 +173,12 @@ ] }, { - "description": "User 1 Deposits 640 more UNILINKWETH (enough to cover the UNIDAI debt), disables WETH as collateral", + "description": "User 1 Deposits 640 more LPLINKWETH (enough to cover the LPDAI debt), disables WETH as collateral", "actions": [ { "name": "mint", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "amount": "640", "user": "1" }, @@ -187,7 +187,7 @@ { "name": "deposit", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "amount": "640", "user": "1" }, @@ -205,12 +205,12 @@ ] }, { - "description": "User 1 disables UNILINKWETH as collateral (revert expected)", + "description": "User 1 disables LPLINKWETH as collateral (revert expected)", "actions": [ { "name": "setUseAsCollateral", "args": { - "reserve": "UNILINKWETH", + "reserve": "LPLINKWETH", "user": "1", "useAsCollateral": "false" }, diff --git a/test-suites/test-lp/helpers/scenarios/swap-rate-mode.json b/test-suites/test-lp/helpers/scenarios/swap-rate-mode.json index dcd7ac98..98011e48 100644 --- a/test-suites/test-lp/helpers/scenarios/swap-rate-mode.json +++ b/test-suites/test-lp/helpers/scenarios/swap-rate-mode.json @@ -8,7 +8,7 @@ { "name": "swapBorrowRateMode", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1", "borrowRateMode": "variable" }, @@ -23,7 +23,7 @@ { "name": "swapBorrowRateMode", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1", "borrowRateMode": "stable" }, @@ -33,12 +33,12 @@ ] }, { - "description": "User 0 deposits 1000 UNIDAI, user 1 deposits 2 WETH as collateral, borrows 100 UNIDAI at variable rate and swaps to stable after one year", + "description": "User 0 deposits 1000 LPDAI, user 1 deposits 2 WETH as collateral, borrows 100 LPDAI at variable rate and swaps to stable after one year", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -47,7 +47,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -55,7 +55,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -90,7 +90,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "variable", "user": "1", @@ -101,7 +101,7 @@ { "name": "swapBorrowRateMode", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1", "borrowRateMode": "variable" }, @@ -110,12 +110,12 @@ ] }, { - "description": "User 1 borrows another 100 UNIDAI, and swaps back to variable after one year, repays the loan", + "description": "User 1 borrows another 100 LPDAI, and swaps back to variable after one year, repays the loan", "actions": [ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "borrowRateMode": "stable", "user": "1", @@ -126,7 +126,7 @@ { "name": "swapBorrowRateMode", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1", "borrowRateMode": "stable" }, @@ -134,9 +134,9 @@ }, { "name": "mint", - "description": "Mint 50 UNIDAI to cover the interest", + "description": "Mint 50 LPDAI to cover the interest", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "50", "user": "1" }, @@ -145,7 +145,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -153,7 +153,7 @@ { "name": "repay", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "1", "onBehalfOf": "1", diff --git a/test-suites/test-lp/helpers/scenarios/withdraw-negatives.json b/test-suites/test-lp/helpers/scenarios/withdraw-negatives.json index 209a7de8..1d7ba442 100644 --- a/test-suites/test-lp/helpers/scenarios/withdraw-negatives.json +++ b/test-suites/test-lp/helpers/scenarios/withdraw-negatives.json @@ -3,12 +3,12 @@ "description": "Redeem function.", "stories": [ { - "description": "Users 0 Deposits 1000 UNIDAI and tries to redeem 0 UNIDAI (revert expected)", + "description": "Users 0 Deposits 1000 LPDAI and tries to redeem 0 LPDAI (revert expected)", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -17,7 +17,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -25,7 +25,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -35,7 +35,7 @@ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "0", "user": "0" }, @@ -45,12 +45,12 @@ ] }, { - "description": "Users 0 tries to redeem 1100 UNIDAI from the 1000 UNIDAI deposited (revert expected)", + "description": "Users 0 tries to redeem 1100 LPDAI from the 1000 LPDAI deposited (revert expected)", "actions": [ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1100", "user": "0" }, @@ -60,7 +60,7 @@ ] }, { - "description": "Users 1 deposits 1 WETH, borrows 100 UNIDAI, tries to redeem the 1 WETH deposited (revert expected)", + "description": "Users 1 deposits 1 WETH, borrows 100 LPDAI, tries to redeem the 1 WETH deposited (revert expected)", "actions": [ { "name": "mint", @@ -91,7 +91,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "user": "1", "borrowRateMode": "stable" diff --git a/test-suites/test-lp/helpers/scenarios/withdraw.json b/test-suites/test-lp/helpers/scenarios/withdraw.json index ed0d2ff7..78ec38ca 100644 --- a/test-suites/test-lp/helpers/scenarios/withdraw.json +++ b/test-suites/test-lp/helpers/scenarios/withdraw.json @@ -3,12 +3,12 @@ "description": "withdraw function.", "stories": [ { - "description": "User 0 Deposits 1000 UNIDAI in an empty reserve", + "description": "User 0 Deposits 1000 LPDAI in an empty reserve", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -17,7 +17,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "0" }, "expected": "success" @@ -25,7 +25,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -34,12 +34,12 @@ ] }, { - "description": "User 0 withdraws half of the deposited UNIDAI", + "description": "User 0 withdraws half of the deposited LPDAI", "actions": [ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "500", "user": "0" }, @@ -48,12 +48,12 @@ ] }, { - "description": "User 0 withdraws remaining half of the deposited UNIDAI", + "description": "User 0 withdraws remaining half of the deposited LPDAI", "actions": [ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "0" }, @@ -62,12 +62,12 @@ ] }, { - "description": "User 0 Deposits 1000 UNIUSDC in an empty reserve", + "description": "User 0 Deposits 1000 LPUSDC in an empty reserve", "actions": [ { "name": "mint", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "0" }, @@ -76,7 +76,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "0" }, "expected": "success" @@ -84,7 +84,7 @@ { "name": "deposit", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "0" }, @@ -93,12 +93,12 @@ ] }, { - "description": "User 0 withdraws half of the deposited UNIUSDC", + "description": "User 0 withdraws half of the deposited LPUSDC", "actions": [ { "name": "withdraw", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "500", "user": "0" }, @@ -107,12 +107,12 @@ ] }, { - "description": "User 0 withdraws remaining half of the deposited UNIUSDC", + "description": "User 0 withdraws remaining half of the deposited LPUSDC", "actions": [ { "name": "withdraw", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "-1", "user": "0" }, @@ -180,12 +180,12 @@ ] }, { - "description": "Users 0 and 1 Deposit 1000 UNIDAI, both withdraw", + "description": "Users 0 and 1 Deposit 1000 LPDAI, both withdraw", "actions": [ { "name": "mint", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -194,7 +194,7 @@ { "name": "approve", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "user": "1" }, "expected": "success" @@ -202,7 +202,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -211,7 +211,7 @@ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "1" }, @@ -220,7 +220,7 @@ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "0" }, @@ -229,7 +229,7 @@ { "name": "withdraw", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "-1", "user": "1" }, @@ -238,12 +238,12 @@ ] }, { - "description": "Users 0 deposits 1000 UNIDAI, user 1 Deposit 1000 UNIUSDC and 1 WETH, borrows 100 UNIDAI. User 1 tries to withdraw all the UNIUSDC", + "description": "Users 0 deposits 1000 LPDAI, user 1 Deposit 1000 LPUSDC and 1 WETH, borrows 100 LPDAI. User 1 tries to withdraw all the LPUSDC", "actions": [ { "name": "deposit", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "1000", "user": "0" }, @@ -252,7 +252,7 @@ { "name": "mint", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "1" }, @@ -261,7 +261,7 @@ { "name": "approve", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "user": "1" }, "expected": "success" @@ -269,7 +269,7 @@ { "name": "deposit", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "1000", "user": "1" }, @@ -304,7 +304,7 @@ { "name": "borrow", "args": { - "reserve": "UNIDAI", + "reserve": "LPDAI", "amount": "100", "user": "1", "borrowRateMode": "stable" @@ -314,7 +314,7 @@ { "name": "withdraw", "args": { - "reserve": "UNIUSDC", + "reserve": "LPUSDC", "amount": "-1", "user": "1" }, diff --git a/test-suites/test-lp/helpers/utils/calculations.ts b/test-suites/test-lp/helpers/utils/calculations.ts index f36c0c6a..317645f2 100644 --- a/test-suites/test-lp/helpers/utils/calculations.ts +++ b/test-suites/test-lp/helpers/utils/calculations.ts @@ -1237,9 +1237,9 @@ export const calcExpectedInterestRates = ( ): BigNumber[] => { const { reservesParams } = configuration; - // Fixes WETH - UniWETH mock token symbol mismatch + // Fixes WETH - LpWETH mock token symbol mismatch if(reserveSymbol === 'WETH') { - reserveSymbol = 'UniWETH'; + reserveSymbol = 'LpWETH'; } const reserveIndex = Object.keys(reservesParams).findIndex((value) => value === reserveSymbol); const [, reserveConfiguration] = (Object.entries(reservesParams) as [string, IReserveParams][])[ diff --git a/test-suites/test-lp/stable-token.spec.ts b/test-suites/test-lp/stable-token.spec.ts index 9974c5e2..58884018 100644 --- a/test-suites/test-lp/stable-token.spec.ts +++ b/test-suites/test-lp/stable-token.spec.ts @@ -29,7 +29,7 @@ makeSuite('Stable debt token tests', (testEnv: TestEnv) => { const name = await stableDebtContract.name(); - expect(name).to.be.equal('Aave stable debt bearing UniDAI'); + expect(name).to.be.equal('Aave stable debt bearing LpDAI'); await expect(stableDebtContract.burn(deployer.address, '1')).to.be.revertedWith( CT_CALLER_MUST_BE_LENDING_POOL ); diff --git a/test-suites/test-lp/upgradeability.spec.ts b/test-suites/test-lp/upgradeability.spec.ts index 771ae6ed..53050b48 100644 --- a/test-suites/test-lp/upgradeability.spec.ts +++ b/test-suites/test-lp/upgradeability.spec.ts @@ -32,7 +32,7 @@ makeSuite('Upgradeability', (testEnv: TestEnv) => { dai.address, ZERO_ADDRESS, ZERO_ADDRESS, - 'Aave Interest bearing UniDAI updated', + 'Aave Interest bearing LpDAI updated', 'aUniDAI', ]); @@ -40,7 +40,7 @@ makeSuite('Upgradeability', (testEnv: TestEnv) => { pool.address, dai.address, ZERO_ADDRESS, - 'Aave stable debt bearing UniDAI updated', + 'Aave stable debt bearing LpDAI updated', 'stableDebtUniDAI', ]); @@ -48,7 +48,7 @@ makeSuite('Upgradeability', (testEnv: TestEnv) => { pool.address, dai.address, ZERO_ADDRESS, - 'Aave variable debt bearing UniDAI updated', + 'Aave variable debt bearing LpDAI updated', 'variableDebtUniDAI', ]); @@ -108,7 +108,7 @@ makeSuite('Upgradeability', (testEnv: TestEnv) => { const tokenName = await aDai.name(); - expect(tokenName).to.be.eq('Aave Interest bearing UniDAI updated', 'Invalid token name'); + expect(tokenName).to.be.eq('Aave Interest bearing LpDAI updated', 'Invalid token name'); }); it('Tries to update the DAI Stable debt token implementation with a different address than the lendingPoolManager', async () => { @@ -168,7 +168,7 @@ makeSuite('Upgradeability', (testEnv: TestEnv) => { const tokenName = await debtToken.name(); - expect(tokenName).to.be.eq('Aave stable debt bearing UniDAI updated', 'Invalid token name'); + expect(tokenName).to.be.eq('Aave stable debt bearing LpDAI updated', 'Invalid token name'); }); it('Tries to update the DAI variable debt token implementation with a different address than the lendingPoolManager', async () => { @@ -229,6 +229,6 @@ makeSuite('Upgradeability', (testEnv: TestEnv) => { const tokenName = await debtToken.name(); - expect(tokenName).to.be.eq('Aave variable debt bearing UniDAI updated', 'Invalid token name'); + expect(tokenName).to.be.eq('Aave variable debt bearing LpDAI updated', 'Invalid token name'); }); }); diff --git a/test/__setup.spec.ts b/test/__setup.spec.ts index c59ca92a..c9be6515 100644 --- a/test/__setup.spec.ts +++ b/test/__setup.spec.ts @@ -165,25 +165,25 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => { REN: mockTokens.REN.address, UNI: mockTokens.UNI.address, ENJ: mockTokens.ENJ.address, - UniDAI: mockTokens.UniDAI.address, - UniUSDC: mockTokens.UniUSDC.address, - UniUSDT: mockTokens.UniUSDT.address, - UniWBTC: mockTokens.UniWBTC.address, - UniWETH: mockTokens.UniWETH.address, - UniDAIWETH: mockTokens.UniDAIWETH.address, - UniWBTCWETH: mockTokens.UniWBTCWETH.address, - UniAAVEWETH: mockTokens.UniAAVEWETH.address, - UniBATWETH: mockTokens.UniBATWETH.address, - UniUSDCDAI: mockTokens.UniUSDCDAI.address, - UniCRVWETH: mockTokens.UniCRVWETH.address, - UniLINKWETH: mockTokens.UniLINKWETH.address, - UniMKRWETH: mockTokens.UniMKRWETH.address, - UniRENWETH: mockTokens.UniRENWETH.address, - UniSNXWETH: mockTokens.UniSNXWETH.address, - UniUNIWETH: mockTokens.UniUNIWETH.address, - UniUSDCWETH: mockTokens.UniUSDCWETH.address, - UniWBTCUSDC: mockTokens.UniWBTCUSDC.address, - UniYFIWETH: mockTokens.UniYFIWETH.address, + LpDAI: mockTokens.LpDAI.address, + LpUSDC: mockTokens.LpUSDC.address, + LpUSDT: mockTokens.LpUSDT.address, + LpWBTC: mockTokens.LpWBTC.address, + LpWETH: mockTokens.LpWETH.address, + LpDAIWETH: mockTokens.LpDAIWETH.address, + LpWBTCWETH: mockTokens.LpWBTCWETH.address, + LpAAVEWETH: mockTokens.LpAAVEWETH.address, + LpBATWETH: mockTokens.LpBATWETH.address, + LpUSDCDAI: mockTokens.LpUSDCDAI.address, + LpCRVWETH: mockTokens.LpCRVWETH.address, + LpLINKWETH: mockTokens.LpLINKWETH.address, + LpMKRWETH: mockTokens.LpMKRWETH.address, + LpRENWETH: mockTokens.LpRENWETH.address, + LpSNXWETH: mockTokens.LpSNXWETH.address, + LpUNIWETH: mockTokens.LpUNIWETH.address, + LpUSDCWETH: mockTokens.LpUSDCWETH.address, + LpWBTCUSDC: mockTokens.LpWBTCUSDC.address, + LpYFIWETH: mockTokens.LpYFIWETH.address, USD: USD_ADDRESS, }, fallbackOracle