Skip to content

Commit aef7896

Browse files
authored
Merge branch 'DefiLlama:main' into main
2 parents 47a78d9 + 1dc1dd3 commit aef7896

File tree

35 files changed

+497
-122
lines changed

35 files changed

+497
-122
lines changed

projects/SMARDEX-P2P-Lending/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
const headers = {
2-
origin: "https://subgraph.smardex.io",
3-
referer: "https://subgraph.smardex.io",
4-
"x-api-key": process.env.SMARDEX_SUBGRAPH_API_KEY,
5-
};
1+
const { getEnv } = require("../helper/env");
62

73
const subgraphUrl = "https://subgraph.smardex.io/ethereum/spro";
84

@@ -17,7 +13,11 @@ const getTokenMetrics = async () => {
1713

1814
const result = await fetch(subgraphUrl, {
1915
method: "POST",
20-
headers,
16+
headers: {
17+
origin: "https://subgraph.smardex.io",
18+
referer: "https://subgraph.smardex.io",
19+
"x-api-key": getEnv('SMARDEX_SUBGRAPH_API_KEY'),
20+
},
2121
body: JSON.stringify({
2222
query: tokenMetricsQuery,
2323
}),

projects/SuperHedge/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ const ADDRESSES = require('../helper/coreAssets.json')
22

33
// Vault configs
44
const vaults = [
5-
// BTC Bullish Call-Spread eUSDe
5+
// ETH Bullish Call-Spread USDe
66
{
7-
currency: '0x90d2af7d622ca3141efa4d8f1f24d86e5974cc8f',
8-
pt: '0x14Bdc3A3AE09f5518b923b69489CBcAfB238e617',
9-
vault: '0x2324bb9F7d651E0169B9df9194937759E08Acfa9'
7+
currency: '0x4c9EDD5852cd905f086C759E8383e09bff1E68B3',
8+
pt: '0xBC6736d346a5eBC0dEbc997397912CD9b8FAe10a',
9+
vault: '0xD0407E1c58Ce32a7fE672f331Af120E0C30aD45b'
1010
},
1111
// BTC Bullish Call-Spread lvlUSD
1212
{
1313
currency: '0x7c1156e515aa1a2e851674120074968c905aaf37',
1414
pt: '0x207F7205fd6c4b602Fa792C8b2B60e6006D4a0b8',
1515
vault: '0x93c318E595F58E4Ffc8779E35E574832D8d9a5Dc'
1616
},
17-
// BTC Bearish Put eUSDe
17+
// ETH Bearish Put-Spread USDe
1818
{
19-
currency: '0x90d2af7d622ca3141efa4d8f1f24d86e5974cc8f',
20-
pt: '0x14Bdc3A3AE09f5518b923b69489CBcAfB238e617',
21-
vault: '0x9021d933D1Ef4c31550201C8A9522Ab15b3e6d65'
19+
currency: '0x4c9EDD5852cd905f086C759E8383e09bff1E68B3',
20+
pt: '0xBC6736d346a5eBC0dEbc997397912CD9b8FAe10a',
21+
vault: '0x9AbbA395c4db06467B5C19A69F7e320EE962f2CB'
2222
},
2323
// BTC Bearish Put lvlUSD
2424
{

projects/avalon-finance/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const mainMarket = {
1919
duckchain: aaveExports('', '', undefined, ['0x100AC26ad2c253B18375f1dC4BC0EeeB66DEBc88'], { v3: true }), // Duckchain V3 Main
2020
taiko: aaveExports('', '', undefined, ['0x43248dF19B9B55f7b488CF68A1224308Af2D81eC'], { v3: true }), // Taiko - Main
2121
goat: aaveExports('', '', undefined, ['0x2c4aEB7C9f0D196a51136B3c7bec49cB2DBD1966'], { v3: true }), // Goat - Main
22-
plume: aaveExports('', '', undefined, ['0x522b3bc00f7DfC5657f8e195868FD062027859e8'], { v3: true }), // Plume - Main
22+
plume_mainnet: aaveExports('', '', undefined, ['0x522b3bc00f7DfC5657f8e195868FD062027859e8'], { v3: true }), // Plume - Main
2323
}
2424

2525
const innovativeMarket = {
@@ -47,7 +47,7 @@ const pumpBTCMarkets = {
4747
arbitrum: aaveExports('', '', undefined, ['0x2c4aEB7C9f0D196a51136B3c7bec49cB2DBD1966'], { v3: true }),
4848
corn: aaveExports('', '', undefined, ['0x867885c1dB3020E25A86Db7e20E35dC7b81d76A2'], { v3: true }),
4949
}
50-
//
50+
//
5151
const unibtcMarkets = {
5252
merlin: aaveExports('', '0x0024818043D04B1Cc9685233D47eF7eea6Df0A5E', undefined, ['0x623700Fee1dF64088f258e2c4DAB4D6aEac4dDA6'], { v3: true }),
5353
btr: aaveExports('', '', undefined, ['0x898D0EF6E20B7597728AEB41169c22608Fe4b234'], { v3: true }),

projects/betterbank/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const { aaveExports } = require('../helper/aave')
2+
3+
module.exports = {
4+
pulse: aaveExports(
5+
'pulse',
6+
'0x21597Ae2f941b5022c6E72fd02955B7f3C87f4Cb',
7+
undefined,
8+
['0x2369cf50ee0e5727bd971c0d2d172ea6f376edaa'],
9+
{ v3: true }
10+
),
11+
}

projects/bybit/index.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const config = {
212212
"0xf89d7b9c864f589bbF53a82105107622B35EaA40",
213213
"0x1Db92e2EeBC8E0c075a02BeA49a2935BcD2dFCF4",
214214
"0xee5B5B923fFcE93A870B3104b7CA09c3db80047A",
215-
"0xacf9a5610cb9e6ec9c84ca7429815e95b6607e9f"
215+
"0xacf9a5610cb9e6ec9c84ca7429815e95b6607e9f",
216216
],
217217
},
218218
solana: {
@@ -236,6 +236,18 @@ const config = {
236236
"Gem2VAypSg7Ai7vjDKPTtqFahpoQWkfgVkyzx3rPoTka",
237237
"5LZkATrLwHYCQj2YuVbjjgsDZzBk6YfL4pFQRJmtboT2",
238238
"7cAui6ADtxLnpRr2wYvwJWTkzwgmVF2LYKnjKTLx4xR8",
239+
"F6iEboP31qwgewVfonux3bdgWonJQHLgsky5uztmHDng",
240+
"4SQQkqaouajAj9HaALAE1GUYhrkis96AhGr4gfnSDiUA",
241+
"giPVBame6yenRbuYdsjXwku6TS3FaEkw7Nwy2VHiq8X",
242+
"AL63c8ZNNAHZbAub6v1EGqQLt1fwyGQbVnFudw8xTPa5",
243+
"8vHZDc2VTtynUizstoJHtXaH5VNKzynySMLZRZ8rj8Vc",
244+
"BEyAq6ZgDkBwms5tNnYEjjvxsT7RaL8HVjxZvdu7XnJJ",
245+
"FCgSWpNqaTvYydABHVCBxs7MRpgPBemhVDEYUcudj3Zv",
246+
"CSSJFgoeqidqVtHKSNP7i7s6WX8APHfH2kYGdLV195Jb",
247+
"FQEmsV5A6jZdmb3KuP3YBLmHfFNoKuoWddBGMQuW1M9f",
248+
"CMivUnnbDHxLq9ChV1bSuiQE5ycZf6JVvFFDePMHhHYK",
249+
"6fJxHzqAvnmsfb61Hkh7dNtUqLCaZdBtCvYq5X8BqHYj",
250+
"6coXmZ8FRDRcuGQnoa1wH9GTrzJ7d1cD7NhiVDdMKt7F",
239251
],
240252
},
241253
cardano: {
@@ -250,7 +262,10 @@ const config = {
250262
owners: ["0xf89d7b9c864f589bbF53a82105107622B35EaA40"],
251263
},
252264
celo: {
253-
owners: ["0xf89d7b9c864f589bbF53a82105107622B35EaA40", "0x5768d8a89da933e15c5cb2f1a8f3e0627aa2c92a"],
265+
owners: [
266+
"0xf89d7b9c864f589bbF53a82105107622B35EaA40",
267+
"0x5768d8a89da933e15c5cb2f1a8f3e0627aa2c92a",
268+
],
254269
},
255270
base: {
256271
owners: [
@@ -268,7 +283,10 @@ const config = {
268283
owners: ["0xf89d7b9c864f589bbF53a82105107622B35EaA40"],
269284
},
270285
linea: {
271-
owners: ["0xf89d7b9c864f589bbF53a82105107622B35EaA40", "0x46958006fc6c826ea5318b42ffdd99ae3f8deaf4"],
286+
owners: [
287+
"0xf89d7b9c864f589bbF53a82105107622B35EaA40",
288+
"0x46958006fc6c826ea5318b42ffdd99ae3f8deaf4",
289+
],
272290
},
273291
litecoin: {
274292
owners: [

projects/deribit/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const config = {
2424
"0xACd41f0dA1A84f5543c84a33864e025cE30C099D",
2525
"0xc7125da07a7110049ecc68f43bf10de4d45ca84e",
2626
"0x1b995f9d96951f4a04c30d2e114819949e971bc8",
27-
"0x245772af12d1c31e2b7d6ea810a91c1f3db4eb94"
27+
"0x245772af12d1c31e2b7d6ea810a91c1f3db4eb94",
28+
"0x282f9830e74d887Da489C030cB1EF1D328EaC0A9",
29+
"0x98F980a6f4800b53db7DF568B5e1F6f230d661e5"
2830
]
2931
},
3032
solana: {
@@ -35,7 +37,8 @@ const config = {
3537
"BZo9RRbgsWaLMxyaYiJK9D27j2FAVgHrhMJBvAj7GiyG",
3638
"DL165xn6SrdupXGA2MW6woz35B3ssVqpYfwS1xAKdyx",
3739
"7wx23rZmR4tikqW9avcby5Pf8QEuBTo7HKUtpCt9r9nz",
38-
"FbchixvxTEW24Mnzh8AxW31YEZ3J8bq5G5YthxttRgST"
40+
"FbchixvxTEW24Mnzh8AxW31YEZ3J8bq5G5YthxttRgST",
41+
"6xASgNpWJzP92LSwWkPZryHt8VMK1XhiU284gkLcVaX1"
3942
]
4043
},
4144
ethpow: {
@@ -50,6 +53,8 @@ const config = {
5053
"rE4y6xhfo9QUV2oAxpHtnVkMmGEk632T7R",
5154
"rK6enCZ6sMs84wMhTUgLhnPr9eyrTTNA6W",
5255
"rKK7VZnnqovrh5Gka1ANartX9Usx2aBAZd",
56+
"rMsmvyJxCRs9csii8yPdd4ti8cLVS4pkAu",
57+
"r349nPzpVGRFqQKkyvPsbvQdzLRQNfobbk"
5358
]
5459
},
5560
bsc: {

projects/dtrinity/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ const config = {
3333
collateralVault: "0xc1A09c3443d578a85DE35368a1a58E8989F4721b",
3434
pools: []
3535
}
36+
},
37+
ronin: {
38+
dUSD: {
39+
address: '0x0043a403Ada6b63045112D7e979a057C82714fe7',
40+
collateralVault: "0xC40f4303505320F782972ad4756eD2A7390a9d9C",
41+
pools: []
42+
},
3643
}
3744
}
3845

@@ -67,5 +74,8 @@ module.exports = {
6774
},
6875
sonic: {
6976
tvl: getAMOTvl,
77+
},
78+
ronin: {
79+
tvl: getAMOTvl,
7080
}
7181
};

projects/fiamma/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const axios = require("axios")
2+
3+
const btc_locked = async (api) => {
4+
const response = (await axios.post('https://bridge-api.fiammachain.io', { "jsonrpc": "2.0", "id": 1, "method": "frontend_queryBridgeTVL", "params": {} })).data
5+
const locked = response.result.total_tvl / 1e8
6+
api.addCGToken('bitcoin', locked)
7+
}
8+
9+
module.exports = {
10+
methodology: "Fiamma BTC TVL represents the total amount of Bitcoin bridged across all chains through the Fiamma Bridge, a trust‑minimized bridge built on the BitVM2 protocol.",
11+
bitcoin: {
12+
tvl: btc_locked,
13+
}
14+
};

projects/folks-xchain/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ const sdk = require('@defillama/sdk')
22
const { HubPools, HubPoolAbi, } = require("./constants");
33

44
async function tvl(api) {
5-
const tokensAndOwners = HubPools[api.chain].map(pool => [pool.tokenAddress, pool.chainPoolAddress ?? pool.poolAddress])
5+
const tokensAndOwners = []
6+
const HubPoolsChain = HubPools[api.chain] ?? []
7+
HubPoolsChain.forEach(pool => {
8+
if (pool.chainPoolAddress) tokensAndOwners.push([pool.tokenAddress, pool.chainPoolAddress])
9+
if (pool.poolAddress) tokensAndOwners.push([pool.tokenAddress, pool.poolAddress])
10+
})
11+
612
return api.sumTokens({ tokensAndOwners })
713
}
814

projects/gearbox/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
ethereum: "0x9ea7b04da02a5373317d745c1571c84aad03321d",
1818
arbitrum: "0x7d04eCdb892Ae074f03B5D0aBA03796F90F3F2af",
1919
optimism: "0x3761ca4BFAcFCFFc1B8034e69F19116dD6756726",
20+
sonic: "0x4b27b296273B72d7c7bfee1ACE93DC081467C41B",
2021
};
21-
22+
2223
// src/adapter/pools/abi.ts
2324
var poolAbis = {
2425
getAddressOrRevert:
@@ -516,6 +517,10 @@
516517
tvl,
517518
borrowed,
518519
},
520+
sonic: {
521+
tvl,
522+
borrowed,
523+
},
519524
methodology: `Retrieves the tokens in each Gearbox pool & value of all Credit Accounts (V1/V2/V3) denominated in the underlying token.`,
520525
misrepresentedTokens: true,
521526
};

0 commit comments

Comments
 (0)