mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fix LP market asset mismatch
This commit is contained in:
parent
01a662680f
commit
e5274928cc
|
@ -137,7 +137,7 @@ export async function initializeMakeSuite() {
|
|||
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 wethAddress = reservesTokens.find((token) => token.symbol === 'UniWETH')?.tokenAddress;
|
||||
const wethAddress = reservesTokens.find((token) => token.symbol === 'WETH')?.tokenAddress;
|
||||
|
||||
if (!aDaiAddress || !aWEthAddress) {
|
||||
process.exit(1);
|
||||
|
|
|
@ -1237,6 +1237,10 @@ export const calcExpectedInterestRates = (
|
|||
): BigNumber[] => {
|
||||
const { reservesParams } = configuration;
|
||||
|
||||
// Fixes WETH - UniWETH mock token symbol mismatch
|
||||
if(reserveSymbol === 'WETH') {
|
||||
reserveSymbol = 'UniWETH';
|
||||
}
|
||||
const reserveIndex = Object.keys(reservesParams).findIndex((value) => value === reserveSymbol);
|
||||
const [, reserveConfiguration] = (Object.entries(reservesParams) as [string, IReserveParams][])[
|
||||
reserveIndex
|
||||
|
|
Loading…
Reference in New Issue
Block a user