mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Reset to original state
This commit is contained in:
parent
36e5642f24
commit
95691770ab
|
@ -153,9 +153,7 @@ export const getAllMockedTokens = async () => {
|
||||||
const tokens: MockTokenMap = await Object.keys(TokenContractId).reduce<Promise<MockTokenMap>>(
|
const tokens: MockTokenMap = await Object.keys(TokenContractId).reduce<Promise<MockTokenMap>>(
|
||||||
async (acc, tokenSymbol) => {
|
async (acc, tokenSymbol) => {
|
||||||
const accumulator = await acc;
|
const accumulator = await acc;
|
||||||
console.log("getAllMockedTokens: got accumulator, next token:", tokenSymbol.toUpperCase());
|
|
||||||
const address = db.get(`${tokenSymbol.toUpperCase()}.${DRE.network.name}`).value().address;
|
const address = db.get(`${tokenSymbol.toUpperCase()}.${DRE.network.name}`).value().address;
|
||||||
console.log("getAllMockedTokens: Initialized address for %s, address: %s", tokenSymbol, address);
|
|
||||||
accumulator[tokenSymbol] = await getMintableERC20(address);
|
accumulator[tokenSymbol] = await getMintableERC20(address);
|
||||||
return Promise.resolve(acc);
|
return Promise.resolve(acc);
|
||||||
},
|
},
|
||||||
|
@ -177,8 +175,6 @@ export const getPairsTokenAggregator = (
|
||||||
const aggregatorAddressIndex = Object.keys(aggregatorsAddresses).findIndex(
|
const aggregatorAddressIndex = Object.keys(aggregatorsAddresses).findIndex(
|
||||||
(value) => value === tokenSymbol
|
(value) => value === tokenSymbol
|
||||||
);
|
);
|
||||||
//console.log("getPairsTokenAggregator: tokenSymbol:", tokenSymbol);
|
|
||||||
//console.log("getPairsTokenAggregator: aggregatorsAddresses:\n\n", aggregatorsAddresses);
|
|
||||||
const [, aggregatorAddress] = (Object.entries(aggregatorsAddresses) as [
|
const [, aggregatorAddress] = (Object.entries(aggregatorsAddresses) as [
|
||||||
string,
|
string,
|
||||||
tEthereumAddress
|
tEthereumAddress
|
||||||
|
|
Loading…
Reference in New Issue
Block a user