Skip to content

Commit

Permalink
fix solfarm DefiLlama#12978
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Jan 6, 2025
1 parent 9d5857b commit c17762e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions projects/solfarm.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
const { get } = require('./helper/http')
const { sumTokens2 } = require('./helper/solana')

async function fetch() {
var response = await get('https://api.tulip.garden/tvl')

return response.total;
async function tvl() {
return sumTokens2({ owner: '8gEGZbUfVE1poBq71VHKX9LU7ca4x8wTUyZgcbyQe51s'})
}

module.exports = {
hallmarks:[
[1667865600, "FTX collapse"]
],
timetravel: false,
fetch
solana: { tvl }
}

0 comments on commit c17762e

Please sign in to comment.