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:
@@ -5,6 +5,6 @@ const MARKET_1155TECH_CONTRACT = '0x33b77fAf955Ed3eDAf939ae66C4D7a2D78bc30C6';
|
||||
module.exports = {
|
||||
methodology: 'Value of all Keys across all art markets is TVL in the protocol',
|
||||
canto: {
|
||||
tvl: sumTokensExport({ owner: MARKET_1155TECH_CONTRACT, tokens: ['0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503'] })
|
||||
tvl: sumTokensExport({ owner: MARKET_1155TECH_CONTRACT, tokens: [ADDRESSES.canto.NOTE] })
|
||||
}
|
||||
};
|
||||
@@ -237,7 +237,7 @@ module.exports = {
|
||||
|
||||
const weETH = {
|
||||
vault: "0x5e0a74cb0F74D57F9d69914575b972ba6A14e27c",
|
||||
reStakingToken: "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
||||
reStakingToken: ADDRESSES.ethereum.WEETH,
|
||||
oracle: "0x6869f88582D049B9968A0Ef7bFCA2609D5F0123B",
|
||||
};
|
||||
|
||||
@@ -255,7 +255,7 @@ module.exports = {
|
||||
|
||||
const weETH1x = {
|
||||
vault: "0x9320AB04E319018842BD59e2817054d19850Abc0",
|
||||
reStakingToken: "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
||||
reStakingToken: ADDRESSES.ethereum.WEETH,
|
||||
oracle: "0x6869f88582D049B9968A0Ef7bFCA2609D5F0123B",
|
||||
};
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { sumTokens2 } = require("../helper/unwrapLPs");
|
||||
|
||||
module.exports = {
|
||||
@@ -7,7 +8,7 @@ module.exports = {
|
||||
|
||||
const config = {
|
||||
fantom: '0xB458BfC855ab504a8a327720FcEF98886065529b',
|
||||
sonic: '0xe5da20f15420ad15de0fa650600afc998bbe3955',
|
||||
sonic: ADDRESSES.sonic.STS,
|
||||
}
|
||||
|
||||
Object.keys(config).forEach(chain => {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { cexExports } = require("../helper/cex");
|
||||
const bitcoinAddressBook = require("../helper/bitcoin-book/index.js");
|
||||
|
||||
@@ -59,7 +60,7 @@ const config = {
|
||||
"0x4d216d2682f3997f6c19420beee4530d08d0ea5f", // add on 27/05/2024
|
||||
"0xdbe46a02322e636b92296954637e1d7db9d5ed26", // add on 27/05/2024
|
||||
"0xbff5092f83bd810e0926068b89633bf66eaa037b",
|
||||
"0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b",
|
||||
ADDRESSES.ethereum.CVX,
|
||||
"0x80097a87a7dcde470e34c10b5cceb85abf83b531",
|
||||
"0xe4786cfe980ef5a6428a2fffafabf24f1fc79b64",
|
||||
"0x4c1d7de286d7c20df5f2ba44b3bc706c1e03bf13",
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = {
|
||||
'0x07373d112edc4570b46996ad1187bc4ac9fb5ed0',
|
||||
'0x2729868df87d062020e4a4867ff507fb52ee697c',
|
||||
'0x68879ca2af24941fc3b6eb89fdb26a98aa001fc1',
|
||||
'0xf6718b2701d4a6498ef77d7c152b2137ab28b8a3',
|
||||
ADDRESSES.swellchain.stBTC,
|
||||
'0xe277aed3ff3eb9824edc52fe7703df0c5ed8b313',
|
||||
'0xf6fa83e30c7d3978f86141016ee9471d77f48ae0',
|
||||
'0xbb0cb5c5e49d5c3903932d07831fb8c1bb1651d2',
|
||||
|
||||
@@ -14,7 +14,7 @@ const ARBITRUM_PT_EZETH_27JUNE2024 = "0x8ea5040d423410f1fdc363379af88e1db5ea1c34
|
||||
|
||||
const ETHEREUM_MAINNET_RSWETH = '0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0';
|
||||
const ETHEREUM_MAINNET_RSETH = "0xa1290d69c65a6fe4df752f95823fae25cb99e5a7";
|
||||
const ETHEREUM_MAINNET_WEETH = "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee";
|
||||
const ETHEREUM_MAINNET_WEETH = ADDRESSES.ethereum.WEETH;
|
||||
const ETHEREUM_MAINNET_EZETH = "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110";
|
||||
|
||||
const ETHEREUM_MAINNET_PENDLE_RSWETH_27JUN2024 = "0x5cb12D56F5346a016DBBA8CA90635d82e6D1bcEa";
|
||||
|
||||
@@ -9,7 +9,7 @@ const config = {
|
||||
ADDRESSES.ethereum.WSTETH,
|
||||
ADDRESSES.ethereum.RETH,
|
||||
"0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
|
||||
"0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
||||
ADDRESSES.ethereum.WEETH,
|
||||
"0xE95A203B1a91a908F9B9CE46459d101078c2c3cb",
|
||||
"0xf1C9acDc66974dFB6dEcB12aA385b9cD01190E38",
|
||||
"0xbf5495Efe5DB9ce00f80364C8B423567e58d2110",
|
||||
|
||||
@@ -8,7 +8,7 @@ const chainConfigs = {
|
||||
assets: [
|
||||
ADDRESSES.ethereum.WBTC,//WBTC
|
||||
"0x004E9C3EF86bc1ca1f0bB5C7662861Ee93350568",//uniBTC
|
||||
"0xC96dE26018A54D51c097160568752c4E3BD6C364",//FBTC
|
||||
ADDRESSES.mantle.FBTC,//FBTC
|
||||
"0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",//cbBTC
|
||||
"0x2F913C820ed3bEb3a67391a6eFF64E70c4B20b19",//M-BTC
|
||||
],
|
||||
@@ -19,7 +19,7 @@ const chainConfigs = {
|
||||
assets: [
|
||||
ADDRESSES.bsc.BTCB,//BTCB
|
||||
"0x6B2a01A5f79dEb4c2f3c0eDa7b01DF456FbD726a",//uniBTC
|
||||
"0xC96dE26018A54D51c097160568752c4E3BD6C364",//FBTC
|
||||
ADDRESSES.mantle.FBTC,//FBTC
|
||||
"0x9BFA177621119e64CecbEabE184ab9993E2ef727",//M-BTC
|
||||
],
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ const addresses = {
|
||||
NoteUSDCLP: '0x9571997a66D63958e1B3De9647C22bD6b9e7228c',
|
||||
CantoETHLP: '0x216400ba362d8FCE640085755e47075109718C8B',
|
||||
Comptroller: '0x5E23dC409Fc2F832f83CEc191E245A191a4bCc5C',
|
||||
Note: '0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503',
|
||||
Note: ADDRESSES.canto.NOTE,
|
||||
USDC: ADDRESSES.functionx.WFX,
|
||||
USDT: ADDRESSES.functionx.PUNDIX,
|
||||
ATOM: ADDRESSES.functionx.USDT,
|
||||
|
||||
@@ -12,7 +12,7 @@ module.exports = {
|
||||
tvl: sumTokensExport({
|
||||
owner: '0xB8Ce90A08bdAdd3e6e6cD3173c0661FA94Aa81c5',
|
||||
tokens: [
|
||||
'0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503',
|
||||
ADDRESSES.canto.NOTE,
|
||||
ADDRESSES.canto.WCANTO,
|
||||
...lps,
|
||||
],
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { getConfig } = require('../helper/cache');
|
||||
|
||||
const cblConfigArbitrum = {
|
||||
@@ -27,8 +28,8 @@ async function borrowedFund(api) {
|
||||
target: fundConfigPolygon.fundNavCalculator,
|
||||
excludeFailed: true,
|
||||
})
|
||||
const vaultBalance = await api.call({ abi: 'erc20:balanceOf', target: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359', params: fundConfigPolygon.liquidStoneFund })
|
||||
api.add('0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359', vaultBalance * -1)
|
||||
const vaultBalance = await api.call({ abi: 'erc20:balanceOf', target: ADDRESSES.polygon.USDC_CIRCLE, params: fundConfigPolygon.liquidStoneFund })
|
||||
api.add(ADDRESSES.polygon.USDC_CIRCLE, vaultBalance * -1)
|
||||
|
||||
fundNavResults.forEach((i) => {
|
||||
api.add(i.denominationAsset, i.nav)
|
||||
@@ -37,8 +38,8 @@ async function borrowedFund(api) {
|
||||
}
|
||||
|
||||
async function polygonTvl(api) {
|
||||
const vaultBalance = await api.call({ abi: 'erc20:balanceOf', target: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359', params: fundConfigPolygon.liquidStoneFund })
|
||||
api.add('0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359', vaultBalance)
|
||||
const vaultBalance = await api.call({ abi: 'erc20:balanceOf', target: ADDRESSES.polygon.USDC_CIRCLE, params: fundConfigPolygon.liquidStoneFund })
|
||||
api.add(ADDRESSES.polygon.USDC_CIRCLE, vaultBalance)
|
||||
}
|
||||
|
||||
async function borrowed(api) {
|
||||
|
||||
@@ -11,7 +11,7 @@ const CYGNUS_POOL_CONFIG = {
|
||||
vault: '0x7551aEa51588AaCe99B89c3FaC3CFc4108DB8094'
|
||||
},
|
||||
STBTC: {
|
||||
depositToken: '0xf6718b2701D4a6498eF77D7c152b2137Ab28b8A3',
|
||||
depositToken: ADDRESSES.swellchain.stBTC,
|
||||
vault: '0x0Ce45dd53affbb011884EF1866E0738f58AB7969'
|
||||
},
|
||||
UNIBTC: {
|
||||
|
||||
@@ -8,7 +8,7 @@ const defaultOwner = '0x6b0e12Cb3D78a931b74F51D09F3D34E3047c0E49'; // meson
|
||||
const config = {
|
||||
merlin: {
|
||||
tokens: [
|
||||
'0xB880fd278198bd590252621d4CD071b1842E9Bcd', // M-BTC
|
||||
ADDRESSES.merlin.WBTC_1, // M-BTC
|
||||
'0x93919784C523f39CACaa98Ee0a9d96c3F32b593e' // uniBTC
|
||||
],
|
||||
},
|
||||
@@ -41,7 +41,7 @@ module.exports = {
|
||||
tokens: [
|
||||
ADDRESSES.null, // 用于追踪原生 TON
|
||||
"EQCuPm01HldiduQ55xaBF_1kaW_WAUy5DHey8suqzU_MAJOR",
|
||||
"EQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT",
|
||||
ADDRESSES.ton.NOT,
|
||||
"EQCvxJy4eG8hyHBFsZ7eePxrRsUQSFE_jpptRAYBmcG_DOGS",
|
||||
"EQB4zZusHsbU2vVTPqjhlokIOoiZhEdCMT703CWEzhTOo__X",
|
||||
"EQAJ8uWd7EBqsmpSWaRdf_I-8R8-XHwh3gsNKhy-UrdrPcUo",
|
||||
|
||||
@@ -16,7 +16,7 @@ const config = {
|
||||
}
|
||||
return "0xD7588F6c99605Ab274C211a0AFeC60947668A8Cb";
|
||||
},
|
||||
weETH: "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
|
||||
weETH: ADDRESSES.ethereum.WEETH,
|
||||
zircuit: "0xF047ab4c75cebf0eB9ed34Ae2c186f3611aEAfa6",
|
||||
weETHs: "0x917ceE801a67f933F2e6b33fC0cD1ED2d5909D88",
|
||||
},
|
||||
|
||||
@@ -36,7 +36,7 @@ const HubPools = {
|
||||
},
|
||||
{ // JOE
|
||||
poolAddress: "0x5e5a2007a8D613C4C98F425097166095C875e6eE",
|
||||
tokenAddress: '0x6e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd',
|
||||
tokenAddress: ADDRESSES.avax.JOE,
|
||||
},
|
||||
],
|
||||
'ethereum': [
|
||||
|
||||
@@ -12,7 +12,7 @@ const baseTokenRate = [
|
||||
// '',
|
||||
'0x81A777c4aB65229d1Bf64DaE4c831bDf628Ccc7f',
|
||||
'0x7ceD6167b5A08111dC8d0D2f9F7E482c4Da62506',
|
||||
'0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee',
|
||||
ADDRESSES.ethereum.WEETH,
|
||||
'0xE3fF08070aB3aD7eeE7a1cab35105F27DF8EfF10',
|
||||
// '',
|
||||
'0x6Eb03222179F83126735D7E9FdE94571D716D399'
|
||||
|
||||
@@ -46,61 +46,15 @@ const fixBalancesTokens = {
|
||||
ozone: {
|
||||
// '0x83048f0bf34feed8ced419455a4320a735a92e9d': { coingeckoId: "ozonechain", decimals: 18 }, // was mapped to wrong chain
|
||||
},
|
||||
water: {
|
||||
'0xC807C5FfFf748eF435Ddb99b181846Edd1e70041': { coingeckoId: "water-3", decimals: 18 },
|
||||
},
|
||||
bittorrent: {
|
||||
[ADDRESSES.null]: { coingeckoId: "bittorrent", decimals: 18 },
|
||||
},
|
||||
dymension: {
|
||||
[ADDRESSES.null]: { coingeckoId: "dymension", decimals: 18 },
|
||||
},
|
||||
energyweb: {
|
||||
[ADDRESSES.null]: { coingeckoId: "energy-web-token", decimals: 18 },
|
||||
},
|
||||
etn: {
|
||||
[ADDRESSES.null]: { coingeckoId: "electroneum", decimals: 18 },
|
||||
},
|
||||
kopi: {
|
||||
'uasusdc': { coingeckoId: 'usd-coin', decimals: 6 },
|
||||
'ucusdc': { coingeckoId: 'usd-coin', decimals: 6 },
|
||||
'uasusdtinj': { coingeckoId: 'tether', decimals: 6 },
|
||||
'ucusdtinj': { coingeckoId: 'tether', decimals: 6 },
|
||||
},
|
||||
swellchain: {
|
||||
[ADDRESSES.null]: { coingeckoId: 'ethereum', decimals: 18 },
|
||||
[ADDRESSES.base.WETH]: { coingeckoId: 'ethereum', decimals: 18 },
|
||||
"0xb5668713E9BA8bC96f97D691663E70b54CE90b0A": { "coingeckoId": "wrapped-bitcoin-universal", "decimals": 18 },
|
||||
"0xf6718b2701D4a6498eF77D7c152b2137Ab28b8A3": { "coingeckoId": "lorenzo-stbtc", "decimals": 18 },
|
||||
"0x2826D136F5630adA89C1678b64A61620Aab77Aea": { "coingeckoId": "swell-network", "decimals": 18 },
|
||||
"0x1cf7b5f266A0F39d6f9408B90340E3E71dF8BF7B": { "coingeckoId": "swell-restaked-btc", "decimals": 8 },
|
||||
"0xFA3198ecF05303a6d96E57a45E6c815055D255b1": { "coingeckoId": "universal-btc", "decimals": 18 },
|
||||
"0xb89c6ED617f5F46175E41551350725A09110bbCE": { "coingeckoId": "tether", "decimals": 6 },
|
||||
"0x99a38322cAF878Ef55AE4d0Eda535535eF8C7960": { "coingeckoId": "usd-coin", "decimals": 6 },
|
||||
"0xA6cB988942610f6731e664379D15fFcfBf282b44": { "coingeckoId": "wrapped-eeth", "decimals": 18 },
|
||||
"0x18d33689AE5d02649a859A1CF16c9f0563975258": { "coingeckoId": "restaked-swell-eth", "decimals": 18 },
|
||||
"0x09341022ea237a4DB1644DE7CCf8FA0e489D85B7": { "coingeckoId": "sweth", "decimals": 18 },
|
||||
"0x9cb41CD74D01ae4b4f640EC40f7A60cA1bCF83E7": { "coingeckoId": "renzo-restaked-lst", "decimals": 18 },
|
||||
"0x2416092f143378750bb29b79eD961ab195CcEea5": { "coingeckoId": "renzo-restaked-eth", "decimals": 18 },
|
||||
"0xc3eACf0612346366Db554C991D7858716db09f58": { "coingeckoId": "kelp-dao-restaked-eth", "decimals": 18 },
|
||||
"0x7c98E0779EB5924b3ba8cE3B17648539ed5b0Ecc": { "coingeckoId": "wrapped-steth", "decimals": 18 },
|
||||
"0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34": { "coingeckoId": "ethena-usde", "decimals": 18 },
|
||||
"0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2": { "coingeckoId": "ethena-staked-usde", "decimals": 18 },
|
||||
"0x58538e6A46E07434d7E7375Bc268D3cb839C0133": { "coingeckoId": "ethena", "decimals": 18 },
|
||||
},
|
||||
elys: {
|
||||
'uelys': { coingeckoId: 'elys-network', decimals: 6 },
|
||||
},
|
||||
wc: {
|
||||
[ADDRESSES.null]: { coingeckoId: 'ethereum', decimals: 18 },
|
||||
},
|
||||
soneium: {
|
||||
[ADDRESSES.null]: { coingeckoId: 'ethereum', decimals: 18 },
|
||||
[ADDRESSES.optimism.WETH_1]: { coingeckoId: 'ethereum', decimals: 18 },
|
||||
'0xbA9986D2381edf1DA03B0B9c1f8b00dc4AacC369': { coingeckoId: 'usd-coin', decimals: 6 },
|
||||
'0x3A337a6adA9d885b6Ad95ec48F9b75f197b5AE35': { coingeckoId: 'tether', decimals: 6 },
|
||||
'0x2cae934a1e84f693fbb78ca5ed3b0a6893259441': { coingeckoId: 'astar', decimals: 18 },
|
||||
},
|
||||
superpositionso: {
|
||||
[ADDRESSES.null]: { coingeckoId: 'ethereum', decimals: 18 },
|
||||
'0x1fB719f10b56d7a85DCD32f27f897375fB21cfdd': { coingeckoId: 'ethereum', decimals: 18 },
|
||||
@@ -108,35 +62,9 @@ const fixBalancesTokens = {
|
||||
'0x80eFAD50D395671C13C4b1FA2969f7a7Aa9EF7b3': { coingeckoId: 'fluidity-money', decimals: 18 },
|
||||
'0x6e142cdaefa4ba7786e8d1ff74968db67c3b910d': { coingeckoId: 'wrapped-bitcoin', decimals: 8 },
|
||||
},
|
||||
odyssey: {
|
||||
[ADDRESSES.null]: { coingeckoId: 'dione', decimals: 18 },
|
||||
'0xf21cbaf7bd040d686bd390957770d2ea652e4013': { coingeckoId: 'dione', decimals: 18 },
|
||||
},
|
||||
crossfi: {
|
||||
[ADDRESSES.null]: { coingeckoId: 'crossfi-2', decimals: 18 },
|
||||
[ADDRESSES.crossfi.WXFI]: { coingeckoId: 'crossfi-2', decimals: 18 },
|
||||
},
|
||||
mantra: {
|
||||
uom: { coingeckoId: 'mantra-dao', decimals: 6 },
|
||||
},
|
||||
verus: {
|
||||
'i5w5MuNik5NtLcYmNzcvaoixooEebB6MGV': { coingeckoId: 'verus-coin', decimals: 0 },
|
||||
'iGBs4DWztRNvNEJBt4mqHszLxfKTNHTkhM': { coingeckoId: 'dai', decimals: 0 },
|
||||
'iCkKJuJScy4Z6NSDK7Mt42ZAB2NEnAE1o4': { coingeckoId: 'maker', decimals: 0 },
|
||||
'i9nwxtKuVYX4MSbeULLiK2ttVi6rUEhh4X': { coingeckoId: 'ethereum', decimals: 0 },
|
||||
'iS8TfRPfVpKo5FVfSUzfHBQxo9KuzpnqLU': { coingeckoId: 'tbtc', decimals: 0 },
|
||||
'i9oCSqKALwJtcv49xUKS2U2i79h1kX6NEY': { coingeckoId: 'tether', decimals: 0 },
|
||||
},
|
||||
unit0: {
|
||||
'0xEb19000D90f17FFbd3AD9CDB8915D928F4980fD1': { coingeckoId: 'usd-coin', decimals: 6 },
|
||||
'0xb303d80db8415FD1d3C9FED68A52EEAc9a052671': { coingeckoId: 'tether', decimals: 6 },
|
||||
'0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B': { coingeckoId: 'ethereum', decimals: 18 },
|
||||
'0x9CE808657ba90C65a2700b1cA5D943eC72834B52': { coingeckoId: 'wrapped-bitcoin', decimals: 8 },
|
||||
},
|
||||
starknet: {
|
||||
'0x20ff2f6021ada9edbceaf31b96f9f67b746662a6e6b2bc9d30c0d3e290a71f6': { coingeckoId: 'spiko-us-t-bills-money-market-fund', decimals: 5 },
|
||||
'0x4f5e0de717daa6aa8de63b1bf2e8d7823ec5b21a88461b1519d9dbc956fb7f2': { coingeckoId: 'eutbl', decimals: 5 },
|
||||
},
|
||||
}
|
||||
|
||||
ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })
|
||||
|
||||
@@ -194,7 +194,7 @@ const ETHEREUM_REGISTRY_TOKENS = [
|
||||
"0x0a3fE1d39E5c60CfdB48Ba2Dc6B7c855289Dec7C",
|
||||
"0xA27fa5E11B121277423aC0b8b372596f2805e36a",
|
||||
"0x41e5c3aD70DA89dd7b6AF9Af3cd6861FbC31eA16",
|
||||
"0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
||||
ADDRESSES.ethereum.WEETH,
|
||||
"0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
|
||||
"0xbf5495efe5db9ce00f80364c8b423567e58d2110",
|
||||
"0xD9A442856C234a39a81a089C06451EBAa4306a72",
|
||||
|
||||
@@ -20,7 +20,7 @@ module.exports = {
|
||||
'0xb0b84d294e0c75a6abe60171b70edeb2efd14a1b',//slisBNB
|
||||
'0x0782b6d8c4551b9760e74c0545a9bcd90bdc41e5',//lisUSD
|
||||
ADDRESSES.bsc.USDC, //usdc
|
||||
'0xf6718b2701d4a6498ef77d7c152b2137ab28b8a3', //stBTC
|
||||
ADDRESSES.swellchain.stBTC, //stBTC
|
||||
'0x4aae823a6a0b376de6a78e74ecc5b079d38cbcf7', //SolvBTC
|
||||
'0x2a3dc2d5daf9c8c46c954b8669f4643c6b1c081a', //uBTC
|
||||
], }) },
|
||||
|
||||
@@ -15,7 +15,7 @@ const lpBNB = "0xED166436559Fd3d7f44cb00CACDA96EB999D789e"
|
||||
|
||||
const tokens = {
|
||||
WETH: ADDRESSES.ethereum.WETH,
|
||||
weETH: "0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee",
|
||||
weETH: ADDRESSES.ethereum.WEETH,
|
||||
ezETH: "0xbf5495Efe5DB9ce00f80364C8B423567e58d2110",
|
||||
rsETH: "0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7",
|
||||
rswETH: "0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0",
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const sdk = require('@defillama/sdk');
|
||||
|
||||
async function bscTvl(api) {
|
||||
const stBTCTokenAddress = '0xf6718b2701D4a6498eF77D7c152b2137Ab28b8A3';
|
||||
const stBTCTokenAddress = ADDRESSES.swellchain.stBTC;
|
||||
const totalSupply = await api.call({
|
||||
abi: 'erc20:totalSupply',
|
||||
target: stBTCTokenAddress,
|
||||
|
||||
@@ -161,7 +161,7 @@ const config = {
|
||||
],
|
||||
[
|
||||
// stEUR Token
|
||||
"0x004626a008b1acdc4c74ab51644093b155e59a23",
|
||||
ADDRESSES.celo.STEUR,
|
||||
// OFTChipAdapter (owner)
|
||||
"0xc5e782e2a4e2cfcb7ed454cf5a7b6aa2bb424b90",
|
||||
],
|
||||
|
||||
@@ -15,7 +15,7 @@ module.exports = {
|
||||
tvl: sumTokensExport({
|
||||
owner: '0x20636bd0E15be0e1faADE1b27f568e642f59814E',
|
||||
tokens: [
|
||||
'0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503',
|
||||
ADDRESSES.canto.NOTE,
|
||||
ADDRESSES.canto.WCANTO,
|
||||
ADDRESSES.functionx.PURSE,
|
||||
ADDRESSES.functionx.WFX,
|
||||
|
||||
@@ -41,7 +41,7 @@ const uniBTC_ADDRESS = {
|
||||
|
||||
const cmETH_ADDRESS = {
|
||||
mantle: {
|
||||
asset: "0xE6829d9a7eE3040e1276Fa75293Bde931859e8fA",
|
||||
asset: ADDRESSES.mantle.cmETH,
|
||||
vault: "0x6FF000453a9c14f7d3bf381925c8cde565DbCe55",
|
||||
}
|
||||
};
|
||||
@@ -70,7 +70,7 @@ const ezETH_ADDRESS = {
|
||||
};
|
||||
|
||||
const WEETH_ADDRESS = {
|
||||
ethereum: "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
||||
ethereum: ADDRESSES.ethereum.WEETH,
|
||||
arbitrum: "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe",
|
||||
optimism: "0x346e03f8cce9fe01dcb3d0da3e9d00dc2c0e08f0",
|
||||
mode: ADDRESSES.blast.weETH,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { staking } = require("../helper/staking");
|
||||
const { gmxExports } = require("../helper/gmx");
|
||||
const { sumTokens2 } = require("../helper/unwrapLPs");
|
||||
@@ -9,7 +10,7 @@ const sonicNAVI = "0x6881B80ea7C858E4aEEf63893e18a8A36f3682f3";
|
||||
|
||||
// sonicV2
|
||||
const sonicV2Vault = "0x41cD8CaFc24A771031B9eB9C57cFC94D86045eB6";
|
||||
const sonicV2Assets = ["0x29219dd400f2bf60e5a23d13be72b486d4038894"]
|
||||
const sonicV2Assets = [ADDRESSES.sonic.USDC.e]
|
||||
|
||||
const tvl = async (api) => {
|
||||
await Promise.all([
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const DATA_URL = 'https://raw.githubusercontent.com/neutral-trade/vaults-data/main';
|
||||
|
||||
const START_TIMESTAMP = 1730419200; // 2024-11-01
|
||||
@@ -6,12 +7,12 @@ const START_TIMESTAMP = 1730419200; // 2024-11-01
|
||||
const TOKENS = {
|
||||
USDC: {
|
||||
name: 'USDC',
|
||||
mint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
||||
mint: ADDRESSES.solana.USDC,
|
||||
decimals: 6
|
||||
},
|
||||
SOL: {
|
||||
name: 'SOL',
|
||||
mint: 'So11111111111111111111111111111111111111112',
|
||||
mint: ADDRESSES.solana.SOL,
|
||||
decimals: 9
|
||||
},
|
||||
WBTC: {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { sumTokensExport } = require('../helper/unwrapLPs')
|
||||
|
||||
const config = {
|
||||
@@ -7,7 +8,7 @@ const config = {
|
||||
"0x29Ff7d778890F40ccE8E74de67D082c0e2DCc1Bc"
|
||||
],
|
||||
tokens: [
|
||||
"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"
|
||||
ADDRESSES.avax.USDt
|
||||
]
|
||||
},
|
||||
polygon: {
|
||||
@@ -17,7 +18,7 @@ const config = {
|
||||
"0xA4F335B528a24eBDeA10e5CcE14E9750929BBE34"
|
||||
],
|
||||
tokens: [
|
||||
"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"
|
||||
ADDRESSES.polygon.USDT
|
||||
]
|
||||
},
|
||||
base: {
|
||||
@@ -26,7 +27,7 @@ const config = {
|
||||
"0x29Ff7d778890F40ccE8E74de67D082c0e2DCc1Bc"
|
||||
],
|
||||
tokens: [
|
||||
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
|
||||
ADDRESSES.base.USDC
|
||||
]
|
||||
},
|
||||
bsc: {
|
||||
@@ -35,7 +36,7 @@ const config = {
|
||||
"0x29Ff7d778890F40ccE8E74de67D082c0e2DCc1Bc"
|
||||
],
|
||||
tokens: [
|
||||
"0x55d398326f99059fF775485246999027B3197955"
|
||||
ADDRESSES.bsc.USDT
|
||||
]
|
||||
},
|
||||
celo: {
|
||||
@@ -44,7 +45,7 @@ const config = {
|
||||
"0x29Ff7d778890F40ccE8E74de67D082c0e2DCc1Bc"
|
||||
],
|
||||
tokens: [
|
||||
"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"
|
||||
ADDRESSES.celo.USDT_1
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { getLogs2 } = require('../helper/cache/getLogs')
|
||||
|
||||
const config = {
|
||||
@@ -6,7 +7,7 @@ const config = {
|
||||
factoryV2: '0x70e318f5066597868a9026ecccC0e04D693d0fbD', fromBlockV2: 45094649,
|
||||
},
|
||||
}
|
||||
const USDTBridge = ["0x55d398326f99059fF775485246999027B3197955", "0xAEaF85C740C7a6ee94183E848d0e557cB7FbeA47"];
|
||||
const USDTBridge = [ADDRESSES.bsc.USDT, "0xAEaF85C740C7a6ee94183E848d0e557cB7FbeA47"];
|
||||
|
||||
Object.keys(config).forEach(chain => {
|
||||
const { factoryV1, factoryV2, fromBlockV1, fromBlockV2 } = config[chain]
|
||||
|
||||
@@ -132,7 +132,7 @@ const config = {
|
||||
WSTETH: ADDRESSES.ethereum.WSTETH,
|
||||
RETH: ADDRESSES.ethereum.RETH,
|
||||
SDAI: ADDRESSES.ethereum.SDAI,
|
||||
WEETH: "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
||||
WEETH: ADDRESSES.ethereum.WEETH,
|
||||
ETHFI: "0xfe0c30065b384f05761f15d0cc899d4f9f9cc0eb",
|
||||
LDO: ADDRESSES.ethereum.LIDO,
|
||||
EZETH: "0xbf5495efe5db9ce00f80364c8b423567e58d2110",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { sumTokensExport } = require('../helper/unwrapLPs')
|
||||
const { stakings } = require('../helper/staking')
|
||||
|
||||
@@ -7,7 +8,7 @@ module.exports = {
|
||||
["0xBeCd6b3D8B06479c83533f0d7E6DF1b0e413AeEa", "0x1260140fEa31cf920D7D890aD1de85cbAC1Fea12", "0x35Ee9e36804d358A2892FA0De336426cC3Cb18e4"],
|
||||
"0x26a6b0dcdCfb981362aFA56D581e4A7dBA3Be140"),
|
||||
tvl: sumTokensExport({
|
||||
tokens: ["0xcDA86A272531e8640cD7F1a92c01839911B90bb0"],
|
||||
tokens: [ADDRESSES.mantle.mETH],
|
||||
owners: ["0x0CC41C11878254aF8E65ca61C03DD03735F2DC6d", "0x1260140fEa31cf920D7D890aD1de85cbAC1Fea12", "0x35Ee9e36804d358A2892FA0De336426cC3Cb18e4"]
|
||||
}),
|
||||
},
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const sdk = require("@defillama/sdk");
|
||||
const { sumTokensExport } = require("../helper/unwrapLPs");
|
||||
|
||||
@@ -13,20 +14,20 @@ const config = {
|
||||
'0x3bcE5CB273F0F148010BbEa2470e7b5df84C7812',
|
||||
],
|
||||
supportedAssets: [
|
||||
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
||||
ADDRESSES.ethereum.USDC, // USDC
|
||||
'0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c', // AAVEUSDC
|
||||
'0xdAC17F958D2ee523a2206206994597C13D831ec7', // USDT
|
||||
ADDRESSES.ethereum.USDT, // USDT
|
||||
'0x23878914EFE38d27C4D67Ab83ed1b93A74D4086a', // AAVEUSDT
|
||||
'0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f', // GHO
|
||||
'0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d', // STKGHO
|
||||
'0x6B175474E89094C44Da98b954EedeAC495271d0F', // DAI
|
||||
'0x83F20F44975D03b1b09e64809B757c47f942BEeA', // SDAI
|
||||
ADDRESSES.ethereum.DAI, // DAI
|
||||
ADDRESSES.ethereum.SDAI, // SDAI
|
||||
'0xdC035D45d973E3EC169d2276DDab16f1e407384F', // USDS
|
||||
'0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD', // SUSDS
|
||||
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // WETH
|
||||
ADDRESSES.ethereum.sUSDS, // SUSDS
|
||||
ADDRESSES.ethereum.WETH, // WETH
|
||||
'0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8', // AAVEWETH
|
||||
'0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0', // WSTETH
|
||||
'0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee', // WEETH
|
||||
ADDRESSES.ethereum.WSTETH, // WSTETH
|
||||
ADDRESSES.ethereum.WEETH, // WEETH
|
||||
'0xd63070114470f685b75B74D60EEc7c1113d33a3D' // USDO MORPHO
|
||||
]
|
||||
},
|
||||
@@ -36,7 +37,7 @@ const config = {
|
||||
'0x3bcE5CB273F0F148010BbEa2470e7b5df84C7812'
|
||||
],
|
||||
supportedAssets: [
|
||||
'0x29219dd400f2Bf60E5a23d13Be72B486D4038894', // USDC
|
||||
ADDRESSES.sonic.USDC.e, // USDC
|
||||
'0x50c42dEAcD8Fc9773493ED674b675bE577f2634b', // WETH
|
||||
]
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@ const TOKENS = {
|
||||
WSTETH: ADDRESSES.ethereum.WSTETH,
|
||||
WBTC: ADDRESSES.ethereum.WBTC,
|
||||
AMPHRETH:"0x5fD13359Ba15A84B76f7F87568309040176167cd",
|
||||
WEETH: "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
||||
WEETH: ADDRESSES.ethereum.WEETH,
|
||||
WEETHS: "0x917ceE801a67f933F2e6b33fC0cD1ED2d5909D88",
|
||||
MSTETH: "0x49446A0874197839D15395B908328a74ccc96Bc0",
|
||||
STETH: ADDRESSES.ethereum.STETH,
|
||||
|
||||
@@ -5,7 +5,7 @@ const { sumTokensExport: sumTokensExportOfTon } = require("../helper/chain/ton")
|
||||
const ethereum_LBTC = "0x8236a87084f8B84306f72007F36F2618A5634494";
|
||||
const ethereum_PumpBTC = "0xF469fBD2abcd6B9de8E169d128226C0Fc90a012e";
|
||||
const base_PumpBTC = "0x23dA5F2d509cb43A59d43C108a43eDf34510eff1";
|
||||
const stBTC = "0xf6718b2701D4a6498eF77D7c152b2137Ab28b8A3";
|
||||
const stBTC = ADDRESSES.swellchain.stBTC;
|
||||
|
||||
module.exports = {
|
||||
methodology:
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { sumTokens2 } = require("../helper/unwrapLPs")
|
||||
const { getLogs } = require("../helper/cache/getLogs");
|
||||
const AssetConfigSettingEventABI = "event AssetConfigSetting(address asset,uint256 feeIn,uint256 feeOut,uint256 debtTokenMintCap,uint256 dailyMintCap,address oracle,bool isUsingOracle,uint256 swapWaitingPeriod,uint256 maxPrice,uint256 minPrice)";
|
||||
@@ -112,13 +113,13 @@ module.exports = {
|
||||
{
|
||||
address: '0x713dD0E14376a6d34D0Fde2783dca52c9fD852bA',
|
||||
aToken: '0xd6890176e8d912142AC489e8B5D8D93F8dE74D60', // aBOBWBTC
|
||||
asset: '0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3', // BOB WBTC
|
||||
asset: ADDRESSES.bob.WBTC, // BOB WBTC
|
||||
}
|
||||
],
|
||||
pellStrategyVaults: [
|
||||
{
|
||||
address: '0x04485140d6618be431D8841de4365510717df4fd',
|
||||
asset: '0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3', // BOB WBTC
|
||||
asset: ADDRESSES.bob.WBTC, // BOB WBTC
|
||||
}
|
||||
],
|
||||
}),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { nullAddress } = require("../helper/unwrapLPs");
|
||||
|
||||
const FlareUSDCe="0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6";
|
||||
const FlareUSDCe=ADDRESSES.rari.USDC_e;
|
||||
|
||||
async function FlareTvl(api) {
|
||||
const tokens = [nullAddress, FlareUSDCe];
|
||||
|
||||
@@ -12,7 +12,7 @@ const ethTokens = [
|
||||
ADDRESSES.ethereum.WETH, // WETH
|
||||
"0x9Ba021B0a9b958B5E75cE9f6dff97C7eE52cb3E6", // apxETH
|
||||
"0x04C154b66CB340F3Ae24111CC767e0184Ed00Cc6", // pxETH
|
||||
"0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee", // weETH
|
||||
ADDRESSES.ethereum.WEETH, // weETH
|
||||
"0xbf5495Efe5DB9ce00f80364C8B423567e58d2110", // ezETH
|
||||
"0xC329400492c6ff2438472D4651Ad17389fCb843a", // sym_wstETH
|
||||
"0x38B86004842D3FA4596f0b7A0b53DE90745Ab654", // sym_swETH
|
||||
@@ -38,8 +38,8 @@ const vaultTokens = [
|
||||
]
|
||||
|
||||
const swellTokens = [
|
||||
'0x18d33689AE5d02649a859A1CF16c9f0563975258', // rswETH
|
||||
'0x09341022ea237a4DB1644DE7CCf8FA0e489D85B7', // swETH
|
||||
ADDRESSES.swellchain.rswETH, // rswETH
|
||||
ADDRESSES.swellchain.swETH, // swETH
|
||||
'0xC3d33a0Ea1582410075567c589af895fcaF1127c', // tempest weeth/eth
|
||||
]
|
||||
|
||||
@@ -75,7 +75,7 @@ const ethBTCTvl = async (api) => {
|
||||
ADDRESSES.ethereum.WBTC, // WBTC
|
||||
'0x8DB2350D78aBc13f5673A411D4700BCF87864dDE', // swBTC
|
||||
'0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf', // cbBTC
|
||||
'0xC96dE26018A54D51c097160568752c4E3BD6C364', // fBTC
|
||||
ADDRESSES.mantle.FBTC, // fBTC
|
||||
'0xF469fBD2abcd6B9de8E169d128226C0Fc90a012e', // pumpBTC
|
||||
'0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa', // tBTC
|
||||
'0x8236a87084f8B84306f72007F36F2618A5634494', // LBTC
|
||||
@@ -88,8 +88,8 @@ const ethBTCTvl = async (api) => {
|
||||
const swellBTCTvl = async (api) => {
|
||||
|
||||
const swellTokens = [
|
||||
'0xf6718b2701D4a6498eF77D7c152b2137Ab28b8A3', // stBTC
|
||||
'0xFA3198ecF05303a6d96E57a45E6c815055D255b1', // uBTC
|
||||
ADDRESSES.swellchain.stBTC, // stBTC
|
||||
ADDRESSES.swellchain.uBTC_1, // uBTC
|
||||
]
|
||||
|
||||
return sumTokens2({ api, owner: earnBTCVault, tokens: swellTokens })
|
||||
|
||||
@@ -17,7 +17,7 @@ module.exports = {
|
||||
"0x49446A0874197839D15395B908328a74ccc96Bc0",
|
||||
"0xFAe103DC9cf190eD75350761e95403b7b8aFa6c0",
|
||||
"0xf951E335afb289353dc249e82926178EaC7DEd78",
|
||||
"0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
|
||||
ADDRESSES.ethereum.WEETH,
|
||||
ADDRESSES.ethereum.WETH,
|
||||
"0x8a053350ca5F9352a16deD26ab333e2D251DAd7c",
|
||||
"0x8457CA5040ad67fdebbCC8EdCE889A335Bc0fbFB",
|
||||
|
||||
@@ -370,7 +370,7 @@ module.exports = {
|
||||
{
|
||||
pool: ADDRESSES.aurora.nUSD,
|
||||
tokens: [
|
||||
'0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503',
|
||||
ADDRESSES.canto.NOTE,
|
||||
// "0xd8836af2e565d3befce7d906af63ee45a57e8f80", // nUSD
|
||||
]
|
||||
},
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { nullAddress, treasuryExports } = require("../helper/treasury");
|
||||
|
||||
|
||||
@@ -8,7 +9,7 @@ module.exports = treasuryExports({
|
||||
],
|
||||
tokens: [
|
||||
nullAddress,
|
||||
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
|
||||
ADDRESSES.base.USDC
|
||||
],
|
||||
ownTokens: [],
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ module.exports = treasuryExports({
|
||||
mantle: {
|
||||
tokens: [
|
||||
nullAddress,
|
||||
"0xcda86a272531e8640cd7f1a92c01839911b90bb0",
|
||||
ADDRESSES.mantle.mETH,
|
||||
],
|
||||
owners: ["0x940e79c49d73ce46884f57087e0c78b608da57c6"],
|
||||
ownTokens: ["0x26a6b0dcdcfb981362afa56d581e4a7dba3be140"],
|
||||
|
||||
@@ -13,7 +13,7 @@ module.exports = treasuryExports({
|
||||
},
|
||||
mantle: {
|
||||
tokens: [
|
||||
"0xcda86a272531e8640cd7f1a92c01839911b90bb0",
|
||||
ADDRESSES.mantle.mETH,
|
||||
ADDRESSES.bob.FBTC
|
||||
],
|
||||
owners,
|
||||
|
||||
@@ -63,16 +63,16 @@ const ethTokens = [
|
||||
"0xaA25cb1b10b8252480Cc6A3b17C22e6C0E00Bcb4", // sdBTCCoveredCallV2
|
||||
"0xc10B7CA0383F0357EdEED233Dc806B5229DCF4a5", // sdETHCoveredCallV2
|
||||
"0x320623b8e4ff03373931769a31fc52a4e78b5d70", // RSR
|
||||
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84", // stETH
|
||||
ADDRESSES.ethereum.STETH, // stETH
|
||||
"0x7448c7456a97769f6cd04f1e83a4a23ccdc46abd", // MAV
|
||||
"0xefc0ced4b3d536103e76a1c4c74f0385c8f4bdd3", // PYTH
|
||||
"0x8f22779662ad253844013d8e99eccb4d80e31417", // BobrCRV
|
||||
"0xb3ad645db386d7f6d753b2b9c3f4b853da6890b8", // CTR
|
||||
"0x62b9c7356a2dc64a1969e19c23e4f579f9810aa7", // cvxCRV
|
||||
ADDRESSES.ethereum.cvxCRV, // cvxCRV
|
||||
"0x34635280737b5bfe6c7dc2fc3065d60d66e78185", // cvxPRISMA
|
||||
"0x4591dbff62656e7859afe5e45f6f47d3669fbb28", // mkUSD
|
||||
"0x365accfca291e7d3914637abf1f7635db165bb09", // FXN
|
||||
"0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0", // FXS
|
||||
ADDRESSES.ethereum.FXN, // FXN
|
||||
ADDRESSES.ethereum.FXS, // FXS
|
||||
"0xe19d1c837b8a1c83a56cd9165b2c0256d39653ad", // sdFXN
|
||||
"0x402f878bdd1f5c66fdaf0fababcf74741b68ac36", // sdFXS
|
||||
"0xd1b5651e55d4ceed36251c61c50c889b36f6abb5", // sdCRV
|
||||
|
||||
@@ -94,7 +94,7 @@ async function tvl(api) {
|
||||
}
|
||||
|
||||
async function tvlMantle(api) {
|
||||
return api.sumTokens({ owner: '0x5E4ACCa7a9989007cD74aE4ed1b096c000779DCC', tokens: ['0xE6829d9a7eE3040e1276Fa75293Bde931859e8fA'] })
|
||||
return api.sumTokens({ owner: '0x5E4ACCa7a9989007cD74aE4ed1b096c000779DCC', tokens: [ADDRESSES.mantle.cmETH] })
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { sumTokens2 } = require("../helper/unwrapLPs");
|
||||
|
||||
const _target = "0xD7f9f54194C633F36CCD5F3da84ad4a1c38cB2cB"
|
||||
const gasQuery = '0x0000000000000000000000000000000000000001'
|
||||
const gasAddress = '0x0000000000000000000000000000000000000000'
|
||||
const gasQuery = ADDRESSES.linea.WETH_1
|
||||
const gasAddress = ADDRESSES.null
|
||||
|
||||
module.exports = async (api, { chainId, target = _target } = {}) => {
|
||||
const totalBalances = await sumTokens2({ api, owner: target, fetchCoValentTokens: true, balances: {} })
|
||||
|
||||
@@ -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
|
||||
},
|
||||
6: {
|
||||
@@ -48,7 +49,7 @@ const SPOT_MARKETS = {
|
||||
const PERP_MARKETS = {
|
||||
0: {
|
||||
name: 'SOL-PERP',
|
||||
mint: 'So11111111111111111111111111111111111111112',
|
||||
mint: ADDRESSES.solana.SOL,
|
||||
baseDecimals: 9,
|
||||
quoteDecimals: 6
|
||||
},
|
||||
|
||||
@@ -59,7 +59,7 @@ module.exports = {
|
||||
mantle: {
|
||||
tvl: sumTokensExport({
|
||||
owners: [mantleConfig.clearinghouse, mantleConfig.endpoint],
|
||||
tokens: ["0xcDA86A272531e8640cD7F1a92c01839911B90bb0", ADDRESSES.mantle.USDC, ADDRESSES.mantle.WETH, ADDRESSES.mantle.WMNT],
|
||||
tokens: [ADDRESSES.mantle.mETH, ADDRESSES.mantle.USDC, ADDRESSES.mantle.WETH, ADDRESSES.mantle.WMNT],
|
||||
})
|
||||
},
|
||||
sei: {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const solana = require('../helper/solana');
|
||||
const waves = require("../helper/chain/waves");
|
||||
const { sumTokens2, } = require('../helper/unwrapLPs');
|
||||
@@ -9,11 +10,11 @@ const data = {
|
||||
},
|
||||
ethereum: {
|
||||
contractAddress: "0x3AC7A6635d99F376c3c05442f7Eef62d349C3A55",
|
||||
tokens: ["0x1a920b0eaE5B49c51eBf042a61c3Fa58Dae04882", "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE", "0x6982508145454Ce325dDbE47a25d4ec3d2311933", "0x4d224452801ACEd8B2F0aebE155379bb5D594381", "0x812Ba41e071C7b7fA4EBcFB62dF5F45f6fA853Ee",]
|
||||
tokens: ["0x1a920b0eaE5B49c51eBf042a61c3Fa58Dae04882", ADDRESSES.ethereum.INU, "0x6982508145454Ce325dDbE47a25d4ec3d2311933", "0x4d224452801ACEd8B2F0aebE155379bb5D594381", "0x812Ba41e071C7b7fA4EBcFB62dF5F45f6fA853Ee",]
|
||||
},
|
||||
unit0: {
|
||||
contractAddress: "0x3AC7A6635d99F376c3c05442f7Eef62d349C3A55",
|
||||
tokens: ["0xEb19000D90f17FFbd3AD9CDB8915D928F4980fD1", "0xb303d80db8415FD1d3C9FED68A52EEAc9a052671", "0x1B100DE3F13E3f8Bb2f66FE58c1949c32E71248B", "0x9CE808657ba90C65a2700b1cA5D943eC72834B52",]
|
||||
tokens: [ADDRESSES.unit0.USDC, ADDRESSES.unit0.USDT, ADDRESSES.unit0.WETH, ADDRESSES.unit0.WBTC,]
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -80,10 +80,10 @@ const wooPPConfig = {
|
||||
mantle: [
|
||||
ADDRESSES.mantle.WMNT, // WMNT
|
||||
ADDRESSES.mantle.WETH, // WETH
|
||||
'0xcDA86A272531e8640cD7F1a92c01839911B90bb0', // mETH
|
||||
ADDRESSES.mantle.mETH, // mETH
|
||||
ADDRESSES.mantle.USDT, // USDT
|
||||
ADDRESSES.mantle.USDC, // USDC
|
||||
'0xE6829d9a7eE3040e1276Fa75293Bde931859e8fA', // cmETH
|
||||
ADDRESSES.mantle.cmETH, // cmETH
|
||||
],
|
||||
sonic: [
|
||||
ADDRESSES.sonic.wS, //wS
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
const ADDRESSES = require('../helper/coreAssets.json')
|
||||
const { getLogs2 } = require("../helper/cache/getLogs");
|
||||
|
||||
const LOANS_FROM_BLOCK = 20973423;
|
||||
@@ -12,7 +13,7 @@ const ST_STT = "0x0D45c292baCdC47CE850E4c83a2FA2e8509DEd5D";
|
||||
const ST_JTT = "0xcacdB1A5a11F824E02De4CA6E7b2D12BB278aA7c";
|
||||
|
||||
// TVL Asset
|
||||
const USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
||||
const USDC = ADDRESSES.ethereum.USDC;
|
||||
|
||||
async function borrowed(api) {
|
||||
const loansIds = await getLogs2({
|
||||
|
||||
@@ -63,7 +63,7 @@ const config = {
|
||||
ADDRESSES.mantle.WETH,//weth
|
||||
ADDRESSES.mantle.USDC, //usdc
|
||||
"0xCAbAE6f6Ea1ecaB08Ad02fE02ce9A44F09aebfA2", // WBTC
|
||||
"0xcDA86A272531e8640cD7F1a92c01839911B90bb0", // meth
|
||||
ADDRESSES.mantle.mETH, // meth
|
||||
"0x779f4E5fB773E17Bc8E809F4ef1aBb140861159a", // KTC
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user