mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
use token labels
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const sui = require("../helper/chain/sui");
|
||||
|
||||
async function tvl(api) {
|
||||
@@ -5,7 +6,7 @@ async function tvl(api) {
|
||||
// Add TVL from SUI liquid staking
|
||||
const dsui_vault = await sui.getObject("0x85aaf87a770b4a09822e7ca3de7f9424a4f58688cfa120f55b294a98d599d402");
|
||||
let sui_staked = Number(Number(dsui_vault.fields.dsui_supply * dsui_vault.fields.sui_claimable_per_dsui / 1e9 + dsui_vault.fields.sui_to_stake).toFixed(0));
|
||||
api.add( "0x2::sui::SUI", sui_staked)
|
||||
api.add( ADDRESSES.sui.SUI, sui_staked)
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const sui = require("../helper/chain/sui");
|
||||
const { cachedGraphQuery } = require('../helper/cache');
|
||||
|
||||
@@ -22,7 +23,7 @@ async function tvl(api) {
|
||||
// Add TVL for MEME Pools
|
||||
for (const { fields } of suiMemePoolsData) {
|
||||
if ( fields.sui_available == 0) continue;
|
||||
api.add( "0x2::sui::SUI", fields.sui_available)
|
||||
api.add( ADDRESSES.sui.SUI, fields.sui_available)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ const config = {
|
||||
"stETH": [
|
||||
{
|
||||
"ethereum": {
|
||||
"baseToken": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
|
||||
"baseToken": ADDRESSES.ethereum.STETH,
|
||||
"LST": "0x684d7fd1067ed8e9686e6fd764d048b9bf92dfa9"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -19,7 +19,7 @@ const usdc_resource_account = "0x19fb80bd79fa8f7538404af85196396973e3fbbda150349
|
||||
const usdc_metadata = "0x2b3be0a97a73c87ff62cbdd36837a9fb5bbd1d7f06a73b7ed62ec15c5326c1b8";
|
||||
|
||||
const usdt_resource_account = "0xbb3c1b88599c563062e2b08fe3a92ab048d700f9aa44617c680d59a4aa69b23f";
|
||||
const usdt_metadata = "0x357b0b74bc833e95a115ad22604854d6b0fca151cecd94111770e5d6ffc9dc2b";
|
||||
const usdt_metadata = ADDRESSES.aptos.USDt;
|
||||
|
||||
const eth_resource_account = "0x38bca0c288df1e13d9a30d33c4ce8ee778333c52bd4e730b49c6c9379be39b10";
|
||||
const eth_metadata = "0xae02f68520afd221a5cd6fda6f5500afedab8d0a2e19a916d6d8bc2b36e758db";
|
||||
|
||||
@@ -102,7 +102,7 @@ const ALPHAFI_CETUS_TVL_IDS = [
|
||||
parentPoolID: "0x9e59de50d9e5979fc03ac5bcacdb581c823dbd27d63a036131e17b391f2fac88",
|
||||
investorID: "0xb0bff60783536f9dc0b38e43150a73b73b8a4f1969446f7721e187821915bd00",
|
||||
token0Type: ADDRESSES.sui.USDC_CIRCLE,
|
||||
token1Type: "0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29::eth::ETH"
|
||||
token1Type: ADDRESSES.sui.ETH
|
||||
},
|
||||
// deep sui
|
||||
{
|
||||
@@ -205,7 +205,7 @@ const ALPHAFI_NAVI_TVL_IDS = [
|
||||
},
|
||||
{
|
||||
poolID: "0xc37ec956fdef6c217505e62444ab93f833c20923755d67d1c8588c9b093ae00e",
|
||||
tokenType: "0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29::eth::ETH",
|
||||
tokenType: ADDRESSES.sui.ETH,
|
||||
expo: 8
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { sumTokensExport } = require('../helper/unwrapLPs');
|
||||
const { staking } = require('../helper/staking')
|
||||
|
||||
@@ -5,8 +6,8 @@ module.exports = {
|
||||
ethereum: {
|
||||
tvl: sumTokensExport({
|
||||
tokensAndOwners: [
|
||||
['0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0', '0xc8a12b1DB09ec5a43919906d94Fa7eeAef1131D1'], // wstETH
|
||||
['0x83F20F44975D03b1b09e64809B757c47f942BEeA', '0xf33D21137cD0B878f3A18Cc60cD74F842c59cb00'], // sDAI
|
||||
[ADDRESSES.ethereum.WSTETH, '0xc8a12b1DB09ec5a43919906d94Fa7eeAef1131D1'], // wstETH
|
||||
[ADDRESSES.ethereum.SDAI, '0xf33D21137cD0B878f3A18Cc60cD74F842c59cb00'], // sDAI
|
||||
]
|
||||
}),
|
||||
staking: staking('0x5954aB967Bc958940b7EB73ee84797Dc8a2AFbb9', '0x4d224452801ACEd8B2F0aebE155379bb5D594381')
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { sumTokensExport } = require("../helper/unwrapLPs");
|
||||
|
||||
const config = {
|
||||
ethereum: {
|
||||
poolAddress: '0x3f390dD6EF69f68f9877aACC086856a200808693',
|
||||
fbtcAddress: '0xC96dE26018A54D51c097160568752c4E3BD6C364',
|
||||
fbtcAddress: ADDRESSES.bob.FBTC,
|
||||
lfbtcAddress: '0x3119a1AD5B63A000aB9CA3F2470611eB997B93B9',
|
||||
usdaAddress: '0x0b4D6DA52dF60D44Ce7140F1044F2aD5fabd6316',
|
||||
},
|
||||
bsc: {
|
||||
poolAddress: '0xC757E47d6bC20FEab54e16F2939F51Aa4826deF7',
|
||||
fbtcAddress: '0xC96dE26018A54D51c097160568752c4E3BD6C364',
|
||||
fbtcAddress: ADDRESSES.bob.FBTC,
|
||||
lfbtcAddress: '0x3119a1AD5B63A000aB9CA3F2470611eB997B93B9',
|
||||
usdaAddress: '0x8a4bA6C340894B7B1De0F6A03F25Aa6afb7f0224',
|
||||
},
|
||||
mantle: {
|
||||
poolAddress: '0x8f778806CBea29F0f64BA6A4B7724BCD5EEd543E',
|
||||
fbtcAddress: '0xC96dE26018A54D51c097160568752c4E3BD6C364',
|
||||
fbtcAddress: ADDRESSES.bob.FBTC,
|
||||
lfbtcAddress: '0x3119a1AD5B63A000aB9CA3F2470611eB997B93B9',
|
||||
usdaAddress: '0x2BDC204b6d192921605c66B7260cFEF7bE34Eb2E',
|
||||
},
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const CONFIG = {
|
||||
bsc: [
|
||||
'0x51bd63f240fb13870550423d208452ca87c44444',
|
||||
'0xa8bb71facdd46445644c277f9499dd22f6f0a30c',
|
||||
ADDRESSES.bsc.beltBTC,
|
||||
ADDRESSES.bsc.beltBNB,
|
||||
'0xcb3346ad40c947a2228b2e224c3931a5224ba7ad',
|
||||
'0xecb589831eefbdbbc48d1f86294724c76acd3314',
|
||||
'0xaa20e8cb61299df2357561c2ac2e1172bc68bc25',
|
||||
ADDRESSES.bsc.beltETH,
|
||||
'0x9a144edd7309bcc4e106a1a04e7fc402115a0980',
|
||||
'0x5142f6857f029bed5ddf6247d8a1f75984a3a380',
|
||||
'0x1794bb186c15fddbf4aac4a3b0e2f40659e9b841',
|
||||
|
||||
@@ -27,7 +27,7 @@ module.exports = {
|
||||
ADDRESSES.arbitrum.WBTC,
|
||||
ADDRESSES.arbitrum.DAI,
|
||||
ADDRESSES.arbitrum.USDe,
|
||||
'0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2',
|
||||
ADDRESSES.arbitrum.sUSDe,
|
||||
],
|
||||
owners: ["0x475c4af369b28997b25bd756ef92797ad3f69593"],
|
||||
}),
|
||||
|
||||
@@ -49,7 +49,7 @@ module.exports = {
|
||||
"0xa70af99bff6b168327f9d1480e29173e757c7904", // crvUSDT
|
||||
"0xdad97f7713ae9437fa9249920ec8507e5fbb23d3", // crv3crypto
|
||||
ADDRESSES.polygon.WBTC, // WBTC
|
||||
"0x7ceb23fd6bc0add59e62ac25578270cff1b9f619", // WETH
|
||||
ADDRESSES.polygon.WETH_1, // WETH
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -65,7 +65,7 @@ module.exports = {
|
||||
"0xA5E0E46462970C9Ee8C2ECadcde254c483748Ec4", // b3pool
|
||||
"0xae87e5fa20f335ce14aa3b9e0616308d9ac7d4ce", // crvUSDT
|
||||
ADDRESSES.bsc.BTCB, // BTCB
|
||||
"0x2170Ed0880ac9A755fd29B2688956BD959F933F8", // ETH
|
||||
ADDRESSES.bsc.ETH, // ETH
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -96,7 +96,7 @@ module.exports = {
|
||||
"0x1337BedC9D22ecbe766dF105c9623922A27963EC", // av3crv
|
||||
"0x1daB6560494B04473A0BE3E7D83CF3Fdf3a51828", // crv3crypto
|
||||
ADDRESSES.avax.BTC_b, // BTC.b
|
||||
"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB", // WETH.e
|
||||
ADDRESSES.avax.WETH_e, // WETH.e
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -115,7 +115,7 @@ module.exports = {
|
||||
owner: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
|
||||
tokens: [
|
||||
"0x1337bedc9d22ecbe766df105c9623922a27963ec", // x3CRV
|
||||
"0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1", // WETH
|
||||
ADDRESSES.xdai.WETH, // WETH
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -124,7 +124,7 @@ module.exports = {
|
||||
owner: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
|
||||
tokens: [
|
||||
ADDRESSES.blast.WETH, // WETH
|
||||
"0x4300000000000000000000000000000000000003", // USDB
|
||||
ADDRESSES.blast.USDB, // USDB
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -133,7 +133,7 @@ module.exports = {
|
||||
owner: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
|
||||
tokens: [
|
||||
ADDRESSES.mantle.WETH, // WETH
|
||||
"0x09bc4e0d864854c6afb6eb9a9cdf58ac190d0df9", // USDC
|
||||
ADDRESSES.mantle.USDC, // USDC
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -143,7 +143,7 @@ module.exports = {
|
||||
tokens: [
|
||||
ADDRESSES.linea.WETH, // WETH
|
||||
"0x3aab2285ddcddad8edf438c1bab47e1a9d05a9b4", // WBTC
|
||||
"0x176211869cA2b568f2A7D4EE941E073a821EE1ff", // USDC.e
|
||||
ADDRESSES.linea.USDC, // USDC.e
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -152,7 +152,7 @@ module.exports = {
|
||||
owner: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
|
||||
tokens: [
|
||||
ADDRESSES.taiko.WETH, // WETH
|
||||
"0x07d83526730c7438048d55a4fc0b850e2aab6f0b", // USDC
|
||||
ADDRESSES.taiko.USDC, // USDC
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -177,7 +177,7 @@ module.exports = {
|
||||
tvl: sumTokensExport({
|
||||
owner: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
|
||||
tokens: [
|
||||
"0x919C1c267BC06a7039e03fcc2eF738525769109c", // USDt
|
||||
ADDRESSES.kava.USDt, // USDt
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -185,7 +185,7 @@ module.exports = {
|
||||
tvl: sumTokensExport({
|
||||
owner: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
|
||||
tokens: [
|
||||
"0x420000000000000000000000000000000000000a", // WETH
|
||||
ADDRESSES.metis.WETH, // WETH
|
||||
],
|
||||
}),
|
||||
},
|
||||
@@ -193,7 +193,7 @@ module.exports = {
|
||||
tvl: sumTokensExport({
|
||||
owner: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
|
||||
tokens: [
|
||||
"0x4200000000000000000000000000000000000006", // WETH
|
||||
ADDRESSES.optimism.WETH_1, // WETH
|
||||
],
|
||||
}),
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ const coins = {
|
||||
deepType: "0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP",
|
||||
suiType: "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI",
|
||||
usdcType: ADDRESSES.sui.USDC_CIRCLE,
|
||||
bethType: "0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29::eth::ETH",
|
||||
bethType: ADDRESSES.sui.ETH,
|
||||
wusdtType: ADDRESSES.sui.USDT,
|
||||
wusdcType: ADDRESSES.sui.USDC,
|
||||
nsType: "0x5145494a5f5100e645e4b0aa950fa6b68f614e8c59e17bc5ded3495123a79178::ns::NS",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
module.exports = {
|
||||
ethereum: {
|
||||
eigenConfig: "0x20b70E4A1883b81429533FeD944d7957121c7CAB",
|
||||
@@ -7,7 +8,7 @@ module.exports = {
|
||||
msteth: "0x1C1Fb35334290b5ff1bF7B4c09130885b10Fc0f4",
|
||||
egeth: "0x4bcc7c793534246BC18acD3737aA4897FF23B458",
|
||||
wsteth: "0xf0e673Bc224A8Ca3ff67a61605814666b1234833",
|
||||
weth: "0x4200000000000000000000000000000000000006",
|
||||
weth: ADDRESSES.optimism.WETH_1,
|
||||
}
|
||||
|
||||
};
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const config = require("./config");
|
||||
const sdk = require('@defillama/sdk')
|
||||
|
||||
@@ -17,7 +18,7 @@ async function tvl(api) {
|
||||
const zircuitApi = new sdk.ChainApi({ chain: 'zircuit', timestamp: api.timestamp });
|
||||
await zircuitApi.getBlock()
|
||||
const zircuitSupplies = await getZircuitSupplies(zircuitApi);
|
||||
api.add('0xae7ab96520de3a18e5e111b5eaab095312d7fe84', zircuitSupplies.zircuitMstethSupply * -1); // Adjust for msteth
|
||||
api.add(ADDRESSES.ethereum.STETH, zircuitSupplies.zircuitMstethSupply * -1); // Adjust for msteth
|
||||
api.add('0xeFEfeFEfeFeFEFEFEfefeFeFefEfEfEfeFEFEFEf', zircuitSupplies.zircuitEgethSupply * -1); // Adjust for egeth
|
||||
|
||||
// Fetch token list and their supplies
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { function_view, timestampToVersion } = require("../helper/chain/aptos");
|
||||
|
||||
async function getAllMarkets(ledgerVersion) {
|
||||
@@ -14,7 +15,7 @@ async function getAllMarkets(ledgerVersion) {
|
||||
async function tvl(api) {
|
||||
// const version = await timestampToVersion(api.timestamp, 1962588495); // this query is not working
|
||||
const tvl_amount = await getAllMarkets();
|
||||
api.add("0x1::aptos_coin::AptosCoin", tvl_amount);
|
||||
api.add(ADDRESSES.aptos.APT, tvl_amount);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { sumTokens2 } = require("../helper/unwrapLPs");
|
||||
|
||||
const STAKING_CONTRACT = "0x000000000000000000000000000000000070eac5";
|
||||
const HST = "0x00000000000000000000000000000000000ec585";
|
||||
const HST = ADDRESSES.hedera.HST;
|
||||
|
||||
const ENTITIES = [
|
||||
{
|
||||
@@ -14,7 +15,7 @@ const ENTITIES = [
|
||||
],
|
||||
},
|
||||
{
|
||||
token: "0x000000000000000000000000000000000030fb8b",
|
||||
token: ADDRESSES.hedera.STEAM,
|
||||
contracts: [
|
||||
"0x00000000000000000000000000000000005737f0",
|
||||
"0x00000000000000000000000000000000005737e1",
|
||||
@@ -25,7 +26,7 @@ const ENTITIES = [
|
||||
],
|
||||
},
|
||||
{
|
||||
token: "0x00000000000000000000000000000000005c9f70",
|
||||
token: ADDRESSES.hedera.HLQT,
|
||||
contracts: [
|
||||
"0x00000000000000000000000000000000005cb45b",
|
||||
"0x00000000000000000000000000000000005cb45f",
|
||||
|
||||
@@ -93,10 +93,10 @@ module.exports = {
|
||||
["0x1346b618dC92810EC74163e4c27004c921D446a5","0x03DB750d6212C6a0BCa9258E8cB7cf46dfD63067"],
|
||||
|
||||
// USDT
|
||||
["0x55d398326f99059ff775485246999027b3197955", "0xAd406CcF75f9E6216fA4349635B0cD77D0059b1f"],
|
||||
[ADDRESSES.bsc.USDT, "0xAd406CcF75f9E6216fA4349635B0cD77D0059b1f"],
|
||||
|
||||
//FDUSD
|
||||
["0xc5f0f7b66764f6ec8c8dff7ba683102295e16409","0x2202a491752Fee0E616F06A89E2eF416E2Fcd7e9"],
|
||||
[ADDRESSES.ethereum.FDUSD,"0x2202a491752Fee0E616F06A89E2eF416E2Fcd7e9"],
|
||||
|
||||
// sUSDX
|
||||
[
|
||||
@@ -105,7 +105,7 @@ module.exports = {
|
||||
],
|
||||
|
||||
// vUSDT, PSM - LSR
|
||||
// ["0x55d398326f99059ff775485246999027b3197955", "0x5763DDeB60c82684F3D0098aEa5076C0Da972ec7"],
|
||||
// [ADDRESSES.bsc.USDT, "0x5763DDeB60c82684F3D0098aEa5076C0Da972ec7"],
|
||||
["0xfd5840cd36d94d7229439859c0112a4185bc0255","0xf76D9cFD08dF91491680313B1A5b44307129CDa9"]
|
||||
],
|
||||
}),
|
||||
|
||||
@@ -43,7 +43,7 @@ const fixBalancesTokens = {
|
||||
// '0x83048f0bf34feed8ced419455a4320a735a92e9d': { coingeckoId: "ozonechain", decimals: 18 }, // was mapped to wrong chain
|
||||
},
|
||||
apechain: {
|
||||
'0x0000000000000000000000000000000000000000': { coingeckoId: "apecoin", decimals: 18 },
|
||||
[ADDRESSES.null]: { coingeckoId: "apecoin", decimals: 18 },
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -956,7 +956,7 @@ const BASE_REGISTRY_TOKENS = [
|
||||
"0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB",
|
||||
ADDRESSES.blast.ezETH,
|
||||
"0x1Bc71130A0e39942a7658878169764Bbd8A45993",
|
||||
"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452",
|
||||
ADDRESSES.base.wstETH,
|
||||
];
|
||||
|
||||
const BLAST_REGISTRY_TOKENS = [
|
||||
|
||||
@@ -247,7 +247,7 @@ const BASE_REGISTRY_TOKENS_WITH_UNDERLYING_ADDRESSES = {
|
||||
"0xD4a0e0b9149BCee3C920d2E00b5dE09138fd8bb7":
|
||||
ADDRESSES.optimism.WETH_1,
|
||||
"0x99CBC45ea5bb7eF3a5BC08FB1B7E56bB2442Ef0D":
|
||||
"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452",
|
||||
ADDRESSES.base.wstETH,
|
||||
"0x4e65fE4DbA92790696d040ac24Aa414708F5c0AB":
|
||||
ADDRESSES.base.USDC,
|
||||
};
|
||||
|
||||
@@ -60,8 +60,8 @@ module.exports = {
|
||||
ADDRESSES.base.USDC, //USDC
|
||||
'0x3b86ad95859b6ab773f55f8d94b4b9d443ee931f', //SolvBTC
|
||||
'0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf',//cbBTC
|
||||
'0x04c0599ae5a44757c0af6f9ec3b93da8976c150a',//weETH
|
||||
'0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452',//wstETH
|
||||
ADDRESSES.blast.weETH,//weETH
|
||||
ADDRESSES.base.wstETH,//wstETH
|
||||
] })
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { getProvider, sumTokens2 } = require("../helper/solana");
|
||||
const { PublicKey } = require("@solana/web3.js");
|
||||
const anchor = require("@project-serum/anchor");
|
||||
@@ -18,7 +19,7 @@ const idleAccount = new PublicKey("bkhAyULeiXwju7Zmy4t3paDHtVZjNaofVQ4VgEdTWiE")
|
||||
const deployedAccount = new PublicKey("6riP1W6R3qzUPWYwLGtXEC23aTqmyAEdDtXzhntJquAh");
|
||||
const multisigAccount = new PublicKey("DkPYEECBc28iute8vWvAuAU4xiM91Sht59p7FHZbmNQv");
|
||||
const pendingUnstakeAccount = new PublicKey("HTnwdgfXrA6gZRiQsnfxLKbvdcqnxdbuC2FJsmCCVMw9");
|
||||
const usdcAddress = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");
|
||||
const usdcAddress = new PublicKey(ADDRESSES.solana.USDC);
|
||||
const iscAddress = new PublicKey("J9BcrQfX4p9D1bvLzRNCbMDv8f44a9LFdeqNE4Yk2WMD");
|
||||
const usdcPoolAccount = new PublicKey("9m3wEeK3v5yyqDGMnDiDRR3FjCwZjRVB4n92pieGtTbP");
|
||||
const iscPoolAccount = new PublicKey("CrsxVEF7YNGAk9QwwbB2vuesUWoDopfgFAhA9apoCJ2z");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { getLiquityTvl } = require('../helper/liquity')
|
||||
// const { staking } = require('../helper/staking')
|
||||
const sdk = require('@defillama/sdk')
|
||||
@@ -7,7 +8,7 @@ module.exports = {
|
||||
tvl: sdk.util.sumChainTvls([
|
||||
getLiquityTvl('0x21d81DABF6985587CE64C2E8EB12F69DF2178fe2'),
|
||||
getLiquityTvl('0xAeB0B38040aDdc4a2b520919f13944D9bC944435'),
|
||||
getLiquityTvl('0xFF5F4bA96586EDae7E7D838D8770dFB3376Ec245', { nonNativeCollateralToken: true, collateralToken: "0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894" })
|
||||
getLiquityTvl('0xFF5F4bA96586EDae7E7D838D8770dFB3376Ec245', { nonNativeCollateralToken: true, collateralToken: ADDRESSES.bob.uniBTC })
|
||||
]),
|
||||
// staking: staking('0x037a2e9a464fbA409D0E55600836864B410d6Dd8', '0x6C0bf4b53696b5434A0D21C7D13Aa3cbF754913E'), // disabled as backing of WEN is already counted towards tvl
|
||||
},
|
||||
|
||||
@@ -52,19 +52,19 @@ const ezETH_ADDRESS = {
|
||||
vault: "0x0109e9f292516dAB3E15EfC61811C5e5a7FA5358",
|
||||
},
|
||||
arbitrum: {
|
||||
asset: "0x2416092f143378750bb29b79eD961ab195CcEea5",
|
||||
asset: ADDRESSES.optimism.ezETH,
|
||||
vault: "0xbEd575b0FeDa4F84b71144634693DaCc07749471",
|
||||
},
|
||||
blast: {
|
||||
asset: "0x2416092f143378750bb29b79eD961ab195CcEea5",
|
||||
asset: ADDRESSES.optimism.ezETH,
|
||||
vault: "0x8506fD66FCeD711c11F9E837EcAEC0F87C3F60A0",
|
||||
},
|
||||
linea: {
|
||||
asset: "0x2416092f143378750bb29b79eD961ab195CcEea5",
|
||||
asset: ADDRESSES.optimism.ezETH,
|
||||
vault: "0x96d6cE4e83dB947fF6bD1Ab0B377F23cd5D9ec2D",
|
||||
},
|
||||
mode: {
|
||||
asset: "0x2416092f143378750bb29b79eD961ab195CcEea5",
|
||||
asset: ADDRESSES.optimism.ezETH,
|
||||
vault: "0xbEd575b0FeDa4F84b71144634693DaCc07749471"
|
||||
}
|
||||
};
|
||||
|
||||
@@ -2,5 +2,5 @@ const { sumTokensExport } = require('../helper/unwrapLPs')
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
|
||||
module.exports = {
|
||||
reya: { tvl: sumTokensExport({ owner: '0xA763B6a5E09378434406C003daE6487FbbDc1a80', tokens: [ADDRESSES.reya.RUSD, "0x4D3fEB76ab1C7eF40388Cd7a2066edacE1a2237D", "0x809B99df4DDd6fA90F2CF305E2cDC310C6AD3C2c", "0x2339D41f410EA761F346a14c184385d15f7266c4", "0xAAB18B45467eCe5e47F85CA6d3dc4DF2a350fd42", "0x6B48C2e6A32077ec17e8Ba0d98fFc676dfab1A30"]})}
|
||||
reya: { tvl: sumTokensExport({ owner: '0xA763B6a5E09378434406C003daE6487FbbDc1a80', tokens: [ADDRESSES.reya.RUSD, "0x4D3fEB76ab1C7eF40388Cd7a2066edacE1a2237D", "0x809B99df4DDd6fA90F2CF305E2cDC310C6AD3C2c", "0x2339D41f410EA761F346a14c184385d15f7266c4", "0xAAB18B45467eCe5e47F85CA6d3dc4DF2a350fd42", ADDRESSES.reya.WETH]})}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { staking } = require('../helper/staking')
|
||||
const SENSI_TOKEN_CONTRACT = '0x63e77cf206801782239d4f126cfa22b517fb4edb'
|
||||
const SENSI_LOCKING_CONTRACT = '0xc13Aff57B67145012Ef3a4604bDB3f3dA17E114f'
|
||||
@@ -11,7 +12,7 @@ async function tvl(api) {
|
||||
const balance_of_SY = await api.call({ abi: SY_ABI.getSYPortfolio, target: SENSI_SY_CONTRACT })
|
||||
|
||||
const balance_of_SY_TVL = balance_of_SY.totalPayToken
|
||||
api.add("0x0000000000000000000000000000000000000000", balance_of_SY_TVL)
|
||||
api.add(ADDRESSES.null, balance_of_SY_TVL)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -10,7 +10,7 @@ const CONFIG = {
|
||||
blacklist: ['0x09e84205df7c68907e619d07afd90143c5763605']
|
||||
},
|
||||
xdai: {
|
||||
GNO: '0x9c58bacc331c9aa871afd802db6379a98e80cedb',
|
||||
GNO: ADDRESSES.xdai.GNO,
|
||||
sGNO: '0xA4eF9Da5BA71Cc0D2e5E877a910A37eC43420445'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const sui = require("../helper/chain/sui");
|
||||
|
||||
const SUILEND_LENDING_MARKET_ID = "0x84030d26d85eaa7035084a057f2f11f701b7e2e4eda87551becbc7c97505ece1";
|
||||
|
||||
@@ -4,7 +4,7 @@ const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const CUSTOM_ADDRESSES = {
|
||||
arbitrum: {
|
||||
WEETH: "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe",
|
||||
sUSDe: "0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2",
|
||||
sUSDe: ADDRESSES.arbitrum.sUSDe,
|
||||
tBTC: "0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const sdk = require('@defillama/sdk');
|
||||
const { nullAddress } = require("../helper/treasury");
|
||||
const { getConfig } = require('../helper/cache')
|
||||
|
||||
const API_URL = 'https://api.mantle.xyz/api/v2/treasury/tokens';
|
||||
const MNT = '0x3c3a81e81dc49a522a592e7622a7e711c06bf354';
|
||||
const USDe = '0x4c9edd5852cd905f086c759e8383e09bff1e68b3';
|
||||
const USDe = ADDRESSES.ethereum.USDe;
|
||||
const COOK = '0x9f0c013016e8656bc256f948cd4b79ab25c7b94d'
|
||||
const ethenaFarm = '0x8707f238936c12c309bfc2b9959c35828acfc512';
|
||||
const SPECIFIC_TOKENS = ['eth', 'ethena-farming-usde', 'eigen-layer-eth', 'mnt'];
|
||||
|
||||
@@ -77,7 +77,7 @@ module.exports = treasuryExports({
|
||||
'0x940181a94a35a4569e4529a3cdfb74e38fd98631', //aero
|
||||
'0x7f62ac1e974d65fab4a81821ca6af659a5f46298', //wels
|
||||
'0x78b3c724a2f663d11373c4a1978689271895256f', //tkn
|
||||
'0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452', //wsteth
|
||||
ADDRESSES.base.wstETH, //wsteth
|
||||
'0x373504da48418c67e6fcd071f33cb0b3b47613c7', //wbasedoge
|
||||
]
|
||||
},
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { nullAddress, treasuryExports } = require("../helper/treasury");
|
||||
|
||||
const owners = ['0x8f456e525ed0115e22937c5c8afac061cc697f21']
|
||||
@@ -13,7 +14,7 @@ module.exports = treasuryExports({
|
||||
mantle: {
|
||||
tokens: [
|
||||
"0xcda86a272531e8640cd7f1a92c01839911b90bb0",
|
||||
"0xc96de26018a54d51c097160568752c4e3bd6c364"
|
||||
ADDRESSES.bob.FBTC
|
||||
],
|
||||
owners,
|
||||
ownTokens: [],
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = {
|
||||
tvl: sumTokensExport({
|
||||
ownerTokens: [
|
||||
[[ADDRESSES.ethereum.WBTC], "0xbe6d2444a717767544a8b0ba77833aa6519d81cd",], //WBTC
|
||||
[["0xc96de26018a54d51c097160568752c4e3bd6c364"], "0x38d516a43f9bab90455c16f9299866217062467e",],//FBTC
|
||||
[[ADDRESSES.bob.FBTC], "0x38d516a43f9bab90455c16f9299866217062467e",],//FBTC
|
||||
]
|
||||
}),
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@ const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const defaultVault = '0xF9775085d726E782E83585033B58606f7731AB18'
|
||||
const extraVault = '0x84E5C854A7fF9F49c888d69DECa578D406C26800'
|
||||
|
||||
const fbtc0 = '0xc96de26018a54d51c097160568752c4e3bd6c364'
|
||||
const fbtc0 = ADDRESSES.bob.FBTC
|
||||
const fbtc1 = '0xd681C5574b7F4E387B608ed9AF5F5Fc88662b37c'
|
||||
|
||||
const config = {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { nullAddress } = require("../helper/tokenMapping");
|
||||
|
||||
const UNIIOTX_TOKEN_CONTRACT = '0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894';
|
||||
const UNIIOTX_TOKEN_CONTRACT = ADDRESSES.bob.uniBTC;
|
||||
const IOTX_STAKING_CONTRACT = "0x2c914Ba874D94090Ba0E6F56790bb8Eb6D4C7e5f";
|
||||
|
||||
async function tvl(api) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const anchor = require('@coral-xyz/anchor');
|
||||
const { PublicKey } = require("@solana/web3.js");
|
||||
const DRIFT_PROGRAM_ID = new PublicKey('dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH')
|
||||
@@ -5,12 +6,12 @@ const DRIFT_PROGRAM_ID = new PublicKey('dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn3
|
||||
const SPOT_MARKETS = {
|
||||
0: {
|
||||
name: 'USDC',
|
||||
mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
||||
mint: ADDRESSES.solana.USDC,
|
||||
decimals: 6
|
||||
},
|
||||
1: {
|
||||
name: 'SOL',
|
||||
mint: 'So11111111111111111111111111111111111111112',
|
||||
mint: ADDRESSES.solana.SOL,
|
||||
decimals: 9
|
||||
},
|
||||
19: {
|
||||
@@ -28,7 +29,7 @@ const SPOT_MARKETS = {
|
||||
const PERP_MARKETS = {
|
||||
0: {
|
||||
name: 'SOL-PERP',
|
||||
mint: 'So11111111111111111111111111111111111111112',
|
||||
mint: ADDRESSES.solana.SOL,
|
||||
baseDecimals: 9,
|
||||
quoteDecimals: 6
|
||||
},
|
||||
|
||||
@@ -100,7 +100,7 @@ const config = {
|
||||
"0x80d12A78EfE7604F00ed07aB2f16F643301674D5",
|
||||
],
|
||||
tokens: [
|
||||
"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452", // wstETH
|
||||
ADDRESSES.base.wstETH, // wstETH
|
||||
],
|
||||
},
|
||||
optimism: {
|
||||
|
||||
@@ -29,6 +29,7 @@ function run() {
|
||||
run()
|
||||
|
||||
const ignoredFolders = ['symbiosis-finance', 'node_modules']
|
||||
const blacklistedAddresses = new Set(['XRP'])
|
||||
|
||||
function updateFile(file) {
|
||||
if (ignoredFolders.some(s => file.includes(s))) return;
|
||||
@@ -42,10 +43,10 @@ function updateFile(file) {
|
||||
Object.entries(allLabels).forEach(([chain, mapping]) => {
|
||||
const label = ['ADDRESSES', chain]
|
||||
if (chain === 'null') {
|
||||
updateFileStr([...label].join('.'), mapping, file)
|
||||
updateFileStr([...label].join('.'), mapping)
|
||||
} else {
|
||||
Object.entries(mapping).forEach(([symbol, addr]) => {
|
||||
updateFileStr([...label, symbol].join('.'), addr, file)
|
||||
updateFileStr([...label, symbol].join('.'), addr)
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -53,7 +54,9 @@ function updateFile(file) {
|
||||
fileStr = requireStr + fileStr
|
||||
fs.writeFileSync(file, fileStr, { encoding: 'utf-8' })
|
||||
|
||||
function updateFileStr(label, address, file) {
|
||||
|
||||
function updateFileStr(label, address) {
|
||||
if (blacklistedAddresses.has(address)) return;
|
||||
if (!address || !address.length) return;
|
||||
if (!updateFile) {
|
||||
updateFile = (new RegExp(address, 'i')).test(fileStr)
|
||||
|
||||
Reference in New Issue
Block a user