Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoujia6139 committed Mar 14, 2023
1 parent d59ae04 commit 5a4499c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/dev/12-update-eth-instant-withdraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ const updateETHInstantWithdraw = async () => {
const assetAddresses = await pool.getReservesList();
const MintableERC20 = await DRE.ethers.getContractFactory("MintableERC20");
const strategyAddresses: Record<string, tEthereumAddress> = {};
const assetAddresseMap: Record<string, tEthereumAddress> = {};
const assetAddressMap: Record<string, tEthereumAddress> = {};

for (const assetAddress of assetAddresses) {
const token = await MintableERC20.attach(assetAddress);
const tokenSymbol = await token.symbol();
const reserveIRStrategy = reservesParams[tokenSymbol].strategy;
assetAddresseMap[tokenSymbol] = assetAddress;
assetAddressMap[tokenSymbol] = assetAddress;

//2.1 deploy interest rate strategy
if (!strategyAddresses[reserveIRStrategy.name]) {
Expand Down Expand Up @@ -129,7 +129,7 @@ const updateETHInstantWithdraw = async () => {
params: string;
} = {
stableDebtTokenImpl: stableDebtTokenImplementationAddress,
underlyingAsset: assetAddresseMap[symbol],
underlyingAsset: assetAddressMap[symbol],
incentivesController: config.IncentivesController,
underlyingAssetDecimals: reservesParams[symbol].reserveDecimals,
stableDebtTokenName: `${config.StableDebtTokenNamePrefix} ${config.SymbolPrefix}${symbol}`,
Expand All @@ -148,7 +148,7 @@ const updateETHInstantWithdraw = async () => {
//3.3, enable stable borrow
encodedData = poolConfiguratorProxy.interface.encodeFunctionData(
"setReserveStableRateBorrowing",
[assetAddresseMap[symbol], true]
[assetAddressMap[symbol], true]
);
await dryRunEncodedData(poolConfiguratorProxy.address, encodedData);
} else {
Expand All @@ -163,15 +163,15 @@ const updateETHInstantWithdraw = async () => {
//3.3, enable stable borrow
await waitForTx(
await poolConfiguratorProxy.setReserveStableRateBorrowing(
assetAddresseMap[symbol],
assetAddressMap[symbol],
true,
GLOBAL_OVERRIDES
)
);
}
}

//4, udpate pool
//4, update pool
await resetPool(false);

//5. unpause pool
Expand Down

0 comments on commit 5a4499c

Please sign in to comment.