Skip to content

Commit

Permalink
🐛 locker abi broken
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-manning committed May 16, 2024
1 parent 4b66107 commit 471cfdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/supply.ts
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down

0 comments on commit 471cfdb

Please sign in to comment.