Skip to content

Commit cdc97b1

Browse files
IguanaDEXstyliann-ethg1nt0ki
authored
IguanaDEX & IguanaDEX v2 (DefiLlama#11454)
Co-authored-by: styliann-eth <[email protected]> Co-authored-by: g1nt0ki <[email protected]>
1 parent 0e9f1be commit cdc97b1

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

projects/helper/uniswapV3.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ function uniV3Export(config) {
4444
return exports
4545
}
4646

47-
function uniV3GraphExport({ blacklistedTokens = [], graphURL, name, minTVLUSD = 10,}) {
47+
function uniV3GraphExport({ blacklistedTokens = [], graphURL, name, minTVLUSD = 0,}) {
4848
return async (api) => {
4949
const size = 1000
5050
// let lastId = ''
5151
// let pools
5252

53+
const minTvlFilter = minTVLUSD ? `totalValueLockedUSD_gt: ${minTVLUSD}` : ''
54+
5355
const graphQueryPagedWithBlock = `
5456
query poolQuery($lastId: String, $block: Int) {
5557
pools(block: { number: $block } first:${size} where: {id_gt: $lastId totalValueLockedUSD_gt: ${minTVLUSD}}) {
@@ -61,7 +63,7 @@ function uniV3GraphExport({ blacklistedTokens = [], graphURL, name, minTVLUSD =
6163
`
6264
const graphQueryPagedWithoutBlock = `
6365
query poolQuery($lastId: String) {
64-
pools(first:${size} where: {id_gt: $lastId totalValueLockedUSD_gt: ${minTVLUSD}}) {
66+
pools(first:${size} where: {id_gt: $lastId ${minTvlFilter}}) {
6567
id
6668
token0 { id }
6769
token1 { id }

projects/iguana-v2/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const { uniTvlExports } = require('../helper/unknownTokens')
2+
module.exports = uniTvlExports({
3+
'etlk': '0x3eebf549D2d8839E387B63796327eE2C8f64A0C4'
4+
})

projects/iguana-v3/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const { uniV3GraphExport } = require("../helper/uniswapV3");
2+
3+
4+
module.exports.etlk = { tvl: uniV3GraphExport({ name: 'iguana-etlk', graphURL: 'https://api.studio.thegraph.com/query/86688/exchange-v3-etherlink/version/latest' }) }

projects/umamifinance/abi.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

projects/wagmi-com/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = uniV3Export({
1212
base: { factory: '0x576A1301B42942537d38FB147895fE83fB418fD4', fromBlock: 14250787, },
1313
})
1414

15-
module.exports.kava = { tvl: uniV3GraphExport({ name: 'wagmi-kava', graphURL: 'https://kava.graph.wagmi.com/subgraphs/name/v3', minTVLUSD: 0 }) }
15+
module.exports.kava = { tvl: uniV3GraphExport({ name: 'wagmi-kava', graphURL: 'https://kava.graph.wagmi.com/subgraphs/name/v3' }) }
1616

1717
const stakingConfig = {
1818
metis: { swagmi: '0x5fb3983adc4dcc82a610a91d2e329f6401352558', wagmi: '0xaf20f5f19698f1d19351028cd7103b63d30de7d7', },

0 commit comments

Comments
 (0)