Skip to content

Commit

Permalink
update poolz
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Aug 9, 2024
1 parent 7c99d1d commit ab68df0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions projects/poolz-vesting/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
const config = {
bsc: { factory: '0xd82c03bd0543b567c9cec7b822373be2b167f00f', POOLX: '0xbAeA9aBA1454DF334943951d51116aE342eAB255' },
bsc: { factory: '0xd82c03bd0543b567c9cec7b822373be2b167f00f', POOLX: '0xbAeA9aBA1454DF334943951d51116aE342eAB255',lockedDealV2: '0x436CE2ce8d8d2Ccc062f6e92faF410DB4d397905', },
base: { factory: '0x7ff9315f538df7ec76ec4815249dd30519726460', },
arbitrum: { factory: '0x9cfd8c7834be0dfe41f3fe68c29124066d5cd13b', },
ethereum: { factory: '0x9ff1db30c66cd9d3311b4b22da49791610922b13', },
arbitrum: { factory: '0x9cfd8c7834be0dfe41f3fe68c29124066d5cd13b', lockedDealV2: '0x7Ff9315f538dF7eC76Ec4815249Dd30519726460', },
ethereum: { factory: '0x9ff1db30c66cd9d3311b4b22da49791610922b13', lockedDealV2: '0x285B4866257eF51FfBDD239c10dE5f9493413d8f', },
manta: { factory: '0x7Ff9315f538dF7eC76Ec4815249Dd30519726460', },
telos: { factory: '0x2Bb9cFF524C76eb2eA27bC6cDbB93447115D8dcC', },
polygon: { factory: '0x06fd710fD167f1f08b61e457F41D6e7c7DD9AF3D', },
polygon: { factory: '0x06fd710fD167f1f08b61e457F41D6e7c7DD9AF3D', lockedDealV2: '0x9D13B213852669077131f8A24A676f27ab0C2931', },
}

Object.keys(config).forEach(chain => {
const { factory, POOLX, blacklistedTokens = [], } = config[chain]
const { factory, POOLX, blacklistedTokens = [], lockedDealV2, } = config[chain]
module.exports[chain] = {
tvl: () => ({}),
vesting: async (api) => {
if (POOLX) blacklistedTokens.push(POOLX)
const tokens = await api.fetchList({ lengthAbi: 'totalVaults', itemAbi: 'vaultIdToTokenAddress', target: factory })
const vaults = await api.fetchList({ lengthAbi: 'totalVaults', itemAbi: 'vaultIdToVault', target: factory })
if (lockedDealV2) await api.sumTokens({ owner: lockedDealV2, tokens, blacklistedTokens, })
return api.sumTokens({ tokensAndOwners2: [tokens, vaults], blacklistedTokens })
}
}
Expand Down

0 comments on commit ab68df0

Please sign in to comment.