mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
Add Mr Lightspeed Creator Coin adapter (#16984)
This commit is contained in:
27
projects/mr-lightspeed/index.js
Normal file
27
projects/mr-lightspeed/index.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const { sumTokens2, nullAddress } = require('../helper/unwrapLPs')
|
||||
|
||||
const POOL_MANAGER = '0x498581ff718922c3f8e6a244956af099b2652b2b'
|
||||
const UNI_V4_POSITION_IDS = ['500329', '415619'] // protocol-owned + locked mr_lightspeed/ETH Uniswap v4 positions (NFT IDs)
|
||||
const WETH_BASE = '0x4200000000000000000000000000000000000006'
|
||||
|
||||
async function tvl(api) {
|
||||
return sumTokens2({
|
||||
api,
|
||||
resolveUniV4: true,
|
||||
owner: POOL_MANAGER,
|
||||
uniV4ExtraConfig: {
|
||||
positionIds: UNI_V4_POSITION_IDS,
|
||||
whitelistedTokens: [nullAddress, WETH_BASE],
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
timetravel: true,
|
||||
start: '2025-10-23',
|
||||
methodology: 'TVL counts ETH collateral locked in protocol-owned Uniswap v4 positions.',
|
||||
doublecounted: false,
|
||||
base: {
|
||||
tvl,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user