mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
minor fix
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
const { uniV3Export } = require("../helper/uniswapV3");
|
||||
const { mergeExports } = require('../helper/utils')
|
||||
|
||||
module.exports = mergeExports([
|
||||
uniV3Export({ blast: { factory: "0x9792FaeA53Af241bCE57C7C8D6622d5DaAD0D4Fc", fromBlock: 693561, }, }),
|
||||
])
|
||||
module.exports = uniV3Export({ blast: { factory: "0x9792FaeA53Af241bCE57C7C8D6622d5DaAD0D4Fc", fromBlock: 693561, }, })
|
||||
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
const { uniTvlExport, } = require('../helper/unknownTokens')
|
||||
const { getUniTVL, } = require('../helper/unknownTokens')
|
||||
const { staking } = require('../helper/staking')
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
|
||||
module.exports = uniTvlExport('core', '0x3e723c7b6188e8ef638db9685af45c7cb66f77b9', { uStaking: ['0x6bf16B2645b13db386ecE6038e1dEF76d95696fc', '0xb3A8F0f0da9ffC65318aA39E55079796093029AD']})
|
||||
module.exports = {
|
||||
misrepresentedTokens: true,
|
||||
core: {
|
||||
tvl: getUniTVL({ useDefaultCoreAssets: true, factory: '0x3e723c7b6188e8ef638db9685af45c7cb66f77b9'}),
|
||||
staking: staking("0x6bf16B2645b13db386ecE6038e1dEF76d95696fc", "0xb3A8F0f0da9ffC65318aA39E55079796093029AD"),
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
const { uniV3Export } = require("../helper/uniswapV3")
|
||||
const { mergeExports } = require("../helper/utils")
|
||||
|
||||
const uniV3Tvl = uniV3Export({
|
||||
module.exports = uniV3Export({
|
||||
taiko: { factory: '0x0526521166748a61A6fd24effa48FEF98F34b9e4', fromBlock: 868506 }
|
||||
})
|
||||
|
||||
module.exports = mergeExports([uniV3Tvl])
|
||||
@@ -1,9 +1,3 @@
|
||||
const sdk = require('@defillama/sdk')
|
||||
const { uniV3Export } = require("../helper/uniswapV3");
|
||||
const { mergeExports } = require('../helper/utils')
|
||||
|
||||
module.exports = mergeExports([
|
||||
uniV3Export({ blast: { factory: "0x1A8027625C830aAC43aD82a3f7cD6D5fdCE89d78", fromBlock: 4308657, }, }),
|
||||
])
|
||||
|
||||
module.exports.blast.tvl = sdk.util.sumChainTvls([module.exports.blast.tvl])
|
||||
module.exports = uniV3Export({ blast: { factory: "0x1A8027625C830aAC43aD82a3f7cD6D5fdCE89d78", fromBlock: 4308657, }, })
|
||||
@@ -12,7 +12,7 @@ const stakingHelper = require('./staking')
|
||||
|
||||
function uniTvlExports(config, commonOptions = {}) {
|
||||
const exportsObj = {
|
||||
misrepresentedTokens: true,
|
||||
misrepresentedTokens: !commonOptions.useDefaultCoreAssets,
|
||||
}
|
||||
Object.keys(config).forEach(chain => {
|
||||
exportsObj[chain] = uniTvlExport(chain, config[chain],commonOptions )[chain]
|
||||
@@ -256,12 +256,9 @@ async function yieldHelper({ chain = 'ethereum', block, coreAssets = [], blackli
|
||||
|
||||
function uniTvlExport(chain, factory, options = {}) {
|
||||
const exportsObj= {
|
||||
misrepresentedTokens: true,
|
||||
misrepresentedTokens: !options.useDefaultCoreAssets,
|
||||
[chain]: { tvl: getUniTVL({ chain, factory, useDefaultCoreAssets: true, ...options }) }
|
||||
}
|
||||
if (Array.isArray(options.uStaking)) {
|
||||
exportsObj[chain].staking = stakingHelper.staking(...options.uStaking)
|
||||
}
|
||||
return exportsObj
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user