forked from DefiLlama/DefiLlama-Adapters
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
519 changed files
with
13,490 additions
and
3,273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const { getUniTVL } = require('../helper/unknownTokens') | ||
|
||
module.exports = { | ||
misrepresentedTokens: true, | ||
methodology: "Factory addresses (0x3a0Fa7884dD93f3cd234bBE2A0958Ef04b05E13b for PulseChain) is used to find the LP pairs. TVL is equal to the liquidity on the AMM.", | ||
pulse: { | ||
tvl: getUniTVL({ | ||
factory: '0x3a0Fa7884dD93f3cd234bBE2A0958Ef04b05E13b', | ||
useDefaultCoreAssets: true, | ||
}), | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const { uniV3Export } = require('../helper/uniswapV3') | ||
|
||
module.exports = uniV3Export({ | ||
pulse: { factory: '0xe50dbdc88e87a2c92984d794bcf3d1d76f619c68', fromBlock: 18942139, } , | ||
base: { factory: '0x7b72C4002EA7c276dd717B96b20f4956c5C904E7', fromBlock: 15754625, } | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
const { sumTokensExport } = require("../helper/chain/ton"); | ||
const ADDRESSES = require("../helper/coreAssets.json"); | ||
|
||
const ownersList = [ | ||
"EQB6rkS8xt3Ey4XugdVqQDe1vt4KJDh813_k2ceoONTCBnyD", | ||
"EQCwIIRKpuV9fQpQxdTMhLAO30MNHa6GOYd00TsySOOYtA9n", | ||
"EQA2OzCuP8-d_lN2MYxLv5WCNfpLH1NUuugppOZBZgNYn-aa", | ||
"EQCgGUMB_u1Gkrskw2o407Ig8ymQmfkxWuPW2d4INuQoPFJO", | ||
"EQA6Xba1d30QeSTVW7-cIAq-WHD9ZBFg90dQ7CB8mQ2Cxx25", | ||
"EQADnjMkZBCS7-zKAPGHwFXGdd8b85m3bRDm52AX__ORLey-" | ||
]; | ||
|
||
module.exports = { | ||
methodology: 'Counts Delea smartcontract balance as TVL.', | ||
misrepresentedTokens: true, | ||
ton: { | ||
tvl: sumTokensExport({ owners: ["EQB6rkS8xt3Ey4XugdVqQDe1vt4KJDh813_k2ceoONTCBnyD", "EQCwIIRKpuV9fQpQxdTMhLAO30MNHa6GOYd00TsySOOYtA9n", "EQA2OzCuP8-d_lN2MYxLv5WCNfpLH1NUuugppOZBZgNYn-aa", "EQCgGUMB_u1Gkrskw2o407Ig8ymQmfkxWuPW2d4INuQoPFJO"], tokens: [ADDRESSES.null]}), | ||
tvl: sumTokensExport({ owners: ownersList, tokens: [ADDRESSES.null]}), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const { sumTokens } = require('../helper/chain/cosmos') | ||
|
||
const chain = 'neutron' | ||
|
||
async function tvl(api) { | ||
return sumTokens({ | ||
chain, | ||
owner: 'neutron1n58mly6f7er0zs6swtetqgfqs36jaarqlplf59', | ||
}) | ||
} | ||
|
||
module.exports = { | ||
timetravel: false, | ||
methodology: 'TVL in Duality module.', | ||
neutron: { | ||
tvl | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const { uniV3Export } = require("../helper/uniswapV3"); | ||
|
||
const SWAPX_ALGEBRA_FACTORY = "0x8121a3F8c4176E9765deEa0B95FA2BDfD3016794" | ||
|
||
module.exports = uniV3Export({ | ||
sonic: { | ||
factory: SWAPX_ALGEBRA_FACTORY, | ||
fromBlock: 1440914, | ||
isAlgebra: true | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
const { transformDexBalances } = require("../helper/portedTokens"); | ||
const { getLogs } = require("../helper/cache/getLogs"); | ||
|
||
const SWAPX_V2_FACTORY = "0x05c1be79d3aC21Cc4B727eeD58C9B2fF757F5663" | ||
const PAIR_CREATED_TOPIC_1 = "0xc4805696c66d7cf352fc1d6bb633ad5ee82f6cb577c453024b6e0eb8306c6fc9"; // keccak256 hash of the event signature | ||
const PAIR_CREATED_EVENT_ABI_1 = "event PairCreated(address indexed token0, address indexed token1, bool stable, address pair, uint)"; | ||
const fromBlock = 1333667; | ||
const erc20Abi = "erc20:balanceOf"; | ||
|
||
async function tvl(api) { | ||
const getPairs = (logs) => { | ||
return logs.map(log => ({ | ||
token0: log.token0, | ||
token1: log.token1, | ||
pair: log.pair | ||
})); | ||
} | ||
|
||
const logs = getPairs(await getLogs({ | ||
api, | ||
target: SWAPX_V2_FACTORY, | ||
fromBlock, | ||
topic: PAIR_CREATED_TOPIC_1, | ||
onlyArgs: true, | ||
eventAbi: PAIR_CREATED_EVENT_ABI_1 | ||
})); | ||
|
||
const tok0Bals = await api.multiCall({ abi: erc20Abi, calls: logs.map(log => ({ target: log.token0, params: log.pair })) }) | ||
const tok1Bals = await api.multiCall({ abi: erc20Abi, calls: logs.map(log => ({ target: log.token1, params: log.pair })) }) | ||
|
||
return transformDexBalances({ | ||
chain: api.chain, | ||
data: logs.map((log, i) => ({ | ||
token0: log.token0, | ||
token0Bal: tok0Bals[i], | ||
token1: log.token1, | ||
token1Bal: tok1Bals[i], | ||
})) | ||
}) | ||
} | ||
|
||
module.exports = { | ||
misrepresentedTokens: true, | ||
sonic: { | ||
tvl | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.