Skip to content
Open
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
22 changes: 22 additions & 0 deletions projects/makenow/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const { get } = require('../helper/http')

const ADDRESSES = require('../helper/coreAssets.json')
const serviceURL = 'https://api.makenow.meme/tvl/all'
const SOL_DECIMALS = 9

async function tvl(api) {
const toTs = api.timestamp
const url = `${serviceURL}?toTs=${toTs}`
const response = await get(url)

const solAmount = response.data.length > 0 ? Math.round(response.data[0].tvl * 10 ** SOL_DECIMALS) : 0
api.add(ADDRESSES.solana.SOL, solAmount > 0 ? solAmount : 0)
}

module.exports = {
start: 1735689600, // 2025-01-01 00:00:00 UTC
methodology: "TVL is counted as the amount of SOL locked in the liquidity pools on Raydium Launchpad",
solana: {
tvl,
},
}
Loading