import { StaticJsonRpcProvider } from "@ethersproject/providers" ; import { Networks } from "../constants/blockchain" ; import { BondingCalcContract } from "../abi" ; import { ethers } from "ethers" ; import { getAddresses } from "../constants/addresses" ; export function getBondCalculator ( networkID , provider ) { const addresses = getAddresses ( networkID ) ; return new ethers . Contract ( addresses . TIME_BONDING_CALC_ADDRESS , BondingCalcContract , provider ) ; }