Skip to content

Commit

Permalink
fix: Splash
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpeluche committed Aug 19, 2024
1 parent 5c14ff5 commit f1430f2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions projects/splash.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
const { get } = require('./helper/http');
const ADDRESSES = require('./helper/coreAssets.json')

async function cardanoTVL() {
let { tvlAda } = await get('https://api2.splash.trade/platform-api/v1/platform/stats')
if(tvlAda>1e9){
throw new Error("wrong")
}

return { cardano: tvlAda };
async function cardanoTVL(api) {
const { tvlAda } = await get('https://api2.splash.trade/platform-api/v1/platform/stats')
api.add(ADDRESSES.cardano.ADA, tvlAda)
}

module.exports = {
Expand Down

0 comments on commit f1430f2

Please sign in to comment.