Skip to content

Commit 88c37e5

Browse files
committed
update solv lst DefiLlama#12228
1 parent eca800c commit 88c37e5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

projects/solv-btc-lst/index.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,22 @@ async function tvl() {
55
return sumTokens({ owners: await bitcoinAddressBook.solvBTC() })
66
}
77

8+
9+
const solvbtclstListUrl = 'https://raw.githubusercontent.com/solv-finance-dev/slov-protocol-defillama/main/solvbtc-lst.json';
10+
11+
async function evmTVL(api) {
12+
let solvbtclst = await getConfig('solv-protocol/solv-btc-lst', solvbtclstListUrl)
13+
let { depositAddress: owners, tokens } = solvbtclst[api.chain]?.otherDeposit ?? {}
14+
api.sumTokens({ owners, tokens })
15+
}
16+
817
module.exports = {
918
methodology: 'Staked tokens via Babylon and Core are counted towards TVL, as they represent the underlying BTC assets securing their respective networks.',
10-
doublecounted:true,
19+
doublecounted: true,
1120
bitcoin: { tvl }
12-
}
21+
}
22+
23+
const chains = ['ethereum']
24+
chains.forEach(chain => {
25+
module.exports[chain] = { tvl: evmTVL }
26+
})

0 commit comments

Comments
 (0)