|
| 1 | +// projects/pumpspace/index.js |
| 2 | +const ADDRESSES = require('../helper/coreAssets.json') |
| 3 | +const { staking } = require('../helper/staking') |
| 4 | +const { getUniTVL } = require('../helper/unknownTokens'); |
| 5 | +const { getTridentTVL } = require('../helper/sushi-trident') |
| 6 | +const sdk = require('@defillama/sdk') |
| 7 | + |
| 8 | +const CHAIN = 'avax' |
| 9 | + |
| 10 | +// --- FACTORIES / CONTRACTS --- |
| 11 | +const PUMP_FACTORY = '0x26B42c208D8a9d8737A2E5c9C57F4481484d4616' // V2 |
| 12 | +const PUMP_V3 = '0xE749c1cA2EA4f930d1283ad780AdE28625037CeD' // V3/Trident |
| 13 | + |
| 14 | +// If you later expose staking for other MasterChefs, add here |
| 15 | +const MASTERCHEFS = [ |
| 16 | + '0x40a58fc672F7878F068bD8ED234a47458Ec33879', // SHELL |
| 17 | + '0x56b54a1384d35C63cD95b39eDe9339fEf7df3E42', // KRILL |
| 18 | + '0x06C551B19239fE6a425b3c45Eb8b49d28e8283C6', // PEARL |
| 19 | +] |
| 20 | + |
| 21 | +// --- TOKENS (project/local wrappers + protocol tokens) --- |
| 22 | +const TOKENS = { |
| 23 | + SHELL: '0xaD4CB79293322c07973ee83Aed5DF66A53214dc6', |
| 24 | +} |
| 25 | + |
| 26 | + |
| 27 | +module.exports = { |
| 28 | + misrepresentedTokens: true, |
| 29 | + methodology: ` |
| 30 | + TVL is computed by summing reserves across PumpSpace V2 and V3 (Trident) factories on Avalanche. |
| 31 | + Single-asset staking (if enabled) reflects tokens deposited in the respective MasterChef contracts. |
| 32 | + `, |
| 33 | + avax: { |
| 34 | + tvl: sdk.util.sumChainTvls([ |
| 35 | + // v2FactoryTVL, |
| 36 | + // v3FactoryTVL, |
| 37 | + getUniTVL({ factory: PUMP_FACTORY, useDefaultCoreAssets: true }), |
| 38 | + getTridentTVL({ chain: CHAIN, factory:PUMP_V3 }), |
| 39 | + ]), |
| 40 | + staking: sdk.util.sumChainTvls([ |
| 41 | + // If you later add KRILL/PEARL single-asset staking, append similar lines here. |
| 42 | + staking([MASTERCHEFS[0]], [TOKENS.SHELL]), |
| 43 | + ]) |
| 44 | + }, |
| 45 | +} |
0 commit comments