From 471cfdb61fc48997b0299b2fdca1a210cab17565 Mon Sep 17 00:00:00 2001 From: Chase Manning Date: Thu, 16 May 2024 13:20:25 +0100 Subject: [PATCH] :bug: locker abi broken --- functions/src/supply.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/src/supply.ts b/functions/src/supply.ts index a20344a..54243b4 100644 --- a/functions/src/supply.ts +++ b/functions/src/supply.ts @@ -1,12 +1,12 @@ import { Contract, Interface, JsonRpcProvider } from "ethers"; import { Airdrop, AmmDistributor, Bonding, GenesisLocker, MAX_SUPPLY, OPTIMISM_RPC, TLX, Vesting } from "./constants"; -import lockerAbi from "./abis/locker-abi.json"; import bigintToNumber from "./helpers/bigint-to-number"; const provider = new JsonRpcProvider(OPTIMISM_RPC); const erc20abi = new Interface(["function balanceOf(address) view returns (uint256)"]); const tlx = new Contract(TLX, erc20abi, provider); +const lockerAbi = new Interface(["function totalStaked() view returns (uint256)"]); const locker = new Contract(GenesisLocker, lockerAbi, provider); export const getCirculatingSupply = async () => {