From 4acf52940e3a0b9179d20891f0a7ec4610802bf3 Mon Sep 17 00:00:00 2001 From: Mr Lightspeed <95941244+MrLightspeed@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:04:38 -0500 Subject: [PATCH] Add Mr Lightspeed Creator Coin adapter (#16984) --- projects/mr-lightspeed/index.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/mr-lightspeed/index.js diff --git a/projects/mr-lightspeed/index.js b/projects/mr-lightspeed/index.js new file mode 100644 index 000000000..61befc95c --- /dev/null +++ b/projects/mr-lightspeed/index.js @@ -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, + }, +}