Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions projects/obol/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { getConfig } = require('../helper/cache');

const SUMMARY_ENDPOINT = 'https://api.obol.tech/v1/lock/network/summary/mainnet'
// const OPERATOR_ENDPOINT = 'https://api.obol.tech/v1/address/network/mainnet?'
// const OPERATOR_ENDPOINT_DETAIL = 'https://api.obol.tech/lock/operator/'

const tvl = async (api) => {
const { eth_staked } = await getConfig('obol', SUMMARY_ENDPOINT)
api.addGasToken(eth_staked * 1e18)
};

module.exports = {
methodology: 'Returns the total number of tokens participating in securing the network through the Obol protocol',
ethereum: { tvl }
}
Loading