From b793538d48d1776603e0193fdae3f7d7865e18bd Mon Sep 17 00:00:00 2001 From: 0x0Louis Date: Thu, 28 Dec 2023 14:21:04 +0100 Subject: [PATCH] remove masterchef locked tokens from the circulation supply --- api/supply/index.js | 2 ++ constants.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/supply/index.js b/api/supply/index.js index 7ea0abe..70903a2 100644 --- a/api/supply/index.js +++ b/api/supply/index.js @@ -6,6 +6,7 @@ const { BURN_ADDRESS, JOE_ADDRESS, TEAM_TREASURY_WALLETS, + MASTER_CHEF_ADDRESS, LOCKING_WRAPPER_ADDRESS, } = require("../../constants"); const { web3Factory } = require("../../utils/web3"); @@ -68,6 +69,7 @@ class Cache { this.getTotalSupply(), ...teamTreasuryBalances, lockingBalance(), + getBalanceOf(MASTER_CHEF_ADDRESS), ]); let circulatingSupply = new BN(results[0]); diff --git a/constants.js b/constants.js index 9674c9d..d78333d 100644 --- a/constants.js +++ b/constants.js @@ -21,6 +21,7 @@ const WAVAX_USDT_ADDRESS = "0xeD8CBD9F0cE3C6986b22002F03c6475CEb7a6256"; const WAVAX_USDC_ADDRESS = "0xA389f9430876455C36478DeEa9769B7Ca4E3DDB1"; const TOTALSUPPLYANDBORROW_ADDRESS = "0x8E94d4C235bb07301A07956ddd50aa7f13be2b53"; +const MASTER_CHEF_ADDRESS = "0xd6a4F121CA35509aF06A0Be99093d08462f53052"; const TEAM_TREASURY_WALLETS = [ "0xaFF90532E2937fF290009521e7e120ed062d4F34", // 1st Team vesting contract @@ -49,6 +50,7 @@ module.exports = { BN_2, JOE_ADDRESS, JOEFACTORY_ADDRESS, + MASTER_CHEF_ADDRESS, TEAM_TREASURY_WALLETS, LOCKING_WRAPPER_ADDRESS, TOTALSUPPLYANDBORROW_ADDRESS,