Skip to content

Commit 218f073

Browse files
Merge pull request #18 from TLX-Protocol/remove-locked-from-circulating
🐛 Fix Issue with Locker ABI
2 parents 258ed1e + 471cfdb commit 218f073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/src/supply.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Contract, Interface, JsonRpcProvider } from "ethers";
22
import { Airdrop, AmmDistributor, Bonding, GenesisLocker, MAX_SUPPLY, OPTIMISM_RPC, TLX, Vesting } from "./constants";
33

4-
import lockerAbi from "./abis/locker-abi.json";
54
import bigintToNumber from "./helpers/bigint-to-number";
65

76
const provider = new JsonRpcProvider(OPTIMISM_RPC);
87
const erc20abi = new Interface(["function balanceOf(address) view returns (uint256)"]);
98
const tlx = new Contract(TLX, erc20abi, provider);
9+
const lockerAbi = new Interface(["function totalStaked() view returns (uint256)"]);
1010
const locker = new Contract(GenesisLocker, lockerAbi, provider);
1111

1212
export const getCirculatingSupply = async () => {

0 commit comments

Comments
 (0)