Skip to content

Commit

Permalink
Merge pull request #18 from TLX-Protocol/remove-locked-from-circulating
Browse files Browse the repository at this point in the history
πŸ› Fix Issue with Locker ABI
  • Loading branch information
chase-manning authored May 16, 2024
2 parents 258ed1e + 471cfdb commit 218f073
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 218f073

Please sign in to comment.