From 4be5c0ea0ff5679011507d793b862fc75d942177 Mon Sep 17 00:00:00 2001 From: Lasse Herskind <16536249+LHerskind@users.noreply.github.com> Date: Thu, 14 Oct 2021 14:02:45 +0100 Subject: [PATCH] fix: Remove unused imports --- .../static-atoken-liquidity-mining-rewards.spec.ts | 12 ++++-------- .../static-atoken-liquidity-mining.spec.ts | 8 +------- .../static-atoken-liquidity-mining-rewards.spec.ts | 12 ++++-------- .../static-atoken-liquidity-mining.spec.ts | 6 +----- 4 files changed, 10 insertions(+), 28 deletions(-) diff --git a/test-suites/test-aave/mainnet/static-atoken-lm-no-incentives-controller/static-atoken-liquidity-mining-rewards.spec.ts b/test-suites/test-aave/mainnet/static-atoken-lm-no-incentives-controller/static-atoken-liquidity-mining-rewards.spec.ts index 8ba58a39..5d6b9190 100644 --- a/test-suites/test-aave/mainnet/static-atoken-lm-no-incentives-controller/static-atoken-liquidity-mining-rewards.spec.ts +++ b/test-suites/test-aave/mainnet/static-atoken-lm-no-incentives-controller/static-atoken-liquidity-mining-rewards.spec.ts @@ -1,17 +1,14 @@ -import rawDRE, { ethers } from 'hardhat'; +import rawDRE from 'hardhat'; import { LendingPoolFactory, - WETH9Factory, ATokenFactory, ERC20, LendingPool, StaticATokenLMFactory, ERC20Factory, - WETH9, AToken, StaticATokenLM, InitializableAdminUpgradeabilityProxyFactory, - StaticAToken, } from '../../../../types'; import { impersonateAccountsHardhat, @@ -19,16 +16,15 @@ import { waitForTx, evmRevert, evmSnapshot, - timeLatest, advanceTimeAndBlock, } from '../../../../helpers/misc-utils'; import { BigNumber, providers, Signer, utils } from 'ethers'; -import { MAX_UINT_AMOUNT, USD_ADDRESS } from '../../../../helpers/constants'; -import { AbiCoder, formatEther, verifyTypedData } from 'ethers/lib/utils'; +import { MAX_UINT_AMOUNT } from '../../../../helpers/constants'; +import { formatEther } from 'ethers/lib/utils'; import { _TypedDataEncoder } from 'ethers/lib/utils'; -import { expect, use } from 'chai'; +import { expect } from 'chai'; import { zeroAddress } from 'hardhat/node_modules/ethereumjs-util'; //use(solidity); diff --git a/test-suites/test-aave/mainnet/static-atoken-lm-no-incentives-controller/static-atoken-liquidity-mining.spec.ts b/test-suites/test-aave/mainnet/static-atoken-lm-no-incentives-controller/static-atoken-liquidity-mining.spec.ts index 16dd03df..9ad8b6dc 100644 --- a/test-suites/test-aave/mainnet/static-atoken-lm-no-incentives-controller/static-atoken-liquidity-mining.spec.ts +++ b/test-suites/test-aave/mainnet/static-atoken-lm-no-incentives-controller/static-atoken-liquidity-mining.spec.ts @@ -3,16 +3,12 @@ import bnjs from 'bignumber.js'; import { solidity } from 'ethereum-waffle'; import { LendingPoolFactory, - WETH9Factory, - StaticATokenFactory, ATokenFactory, ERC20, LendingPool, StaticATokenLMFactory, ERC20Factory, - WETH9, AToken, - StaticAToken, StaticATokenLM, InitializableAdminUpgradeabilityProxyFactory, } from '../../../../types'; @@ -23,10 +19,8 @@ import { waitForTx, evmRevert, evmSnapshot, - timeLatest, - advanceTimeAndBlock, } from '../../../../helpers/misc-utils'; -import { BigNumber, providers, Signer, utils } from 'ethers'; +import { BigNumber, providers, utils } from 'ethers'; import { rayDiv, rayMul } from '../../../../helpers/ray-math'; import { MAX_UINT_AMOUNT, ZERO_ADDRESS } from '../../../../helpers/constants'; import { tEthereumAddress } from '../../../../helpers/types'; diff --git a/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining-rewards.spec.ts b/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining-rewards.spec.ts index 238fd6e3..463455a8 100644 --- a/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining-rewards.spec.ts +++ b/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining-rewards.spec.ts @@ -1,4 +1,4 @@ -import rawDRE, { ethers } from 'hardhat'; +import rawDRE from 'hardhat'; import { LendingPoolFactory, WETH9Factory, @@ -13,25 +13,21 @@ import { InitializableAdminUpgradeabilityProxyFactory, } from '../../../../types'; import { - impersonateAccountsHardhat, DRE, waitForTx, evmRevert, evmSnapshot, - timeLatest, advanceTimeAndBlock, } from '../../../../helpers/misc-utils'; import { BigNumber, providers, Signer, utils } from 'ethers'; -import { MAX_UINT_AMOUNT, USD_ADDRESS } from '../../../../helpers/constants'; -import { AbiCoder, formatEther, verifyTypedData } from 'ethers/lib/utils'; +import { MAX_UINT_AMOUNT } from '../../../../helpers/constants'; +import { formatEther } from 'ethers/lib/utils'; import { _TypedDataEncoder } from 'ethers/lib/utils'; -import { expect, use } from 'chai'; +import { expect } from 'chai'; import { zeroAddress } from 'ethereumjs-util'; -//use(solidity); - const DEFAULT_GAS_LIMIT = 10000000; const DEFAULT_GAS_PRICE = utils.parseUnits('100', 'gwei'); diff --git a/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts b/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts index 47c6e4ef..beee4ce9 100644 --- a/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts +++ b/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts @@ -4,7 +4,6 @@ import { solidity } from 'ethereum-waffle'; import { LendingPoolFactory, WETH9Factory, - StaticATokenFactory, ATokenFactory, ERC20, LendingPool, @@ -12,7 +11,6 @@ import { ERC20Factory, WETH9, AToken, - StaticAToken, StaticATokenLM, InitializableAdminUpgradeabilityProxyFactory, } from '../../../../types'; @@ -23,10 +21,8 @@ import { waitForTx, evmRevert, evmSnapshot, - timeLatest, - advanceTimeAndBlock, } from '../../../../helpers/misc-utils'; -import { BigNumber, providers, Signer, utils } from 'ethers'; +import { BigNumber, providers, utils } from 'ethers'; import { rayDiv, rayMul } from '../../../../helpers/ray-math'; import { MAX_UINT_AMOUNT, ZERO_ADDRESS } from '../../../../helpers/constants'; import { tEthereumAddress } from '../../../../helpers/types';