import { Signer } from '@ethersproject/abstract-signer' import { Contract } from '@ethersproject/contracts' import { Provider } from '@ethersproject/providers' import { abis } from '../config' import * as contract from '../utils/contract' const getInstance = async (fromAddress: string, signerOrProvider: Provider | Signer): Promise => { return contract.getContract(fromAddress, abis.IUniswapV2PairLike, signerOrProvider) } export { getInstance }