Skip to content

Commit 5d712ac

Browse files
committed
add check
1 parent c534a78 commit 5d712ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/splash.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ const { get } = require('./helper/http');
22

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

69
return { cardano: tvlAda };
710
}

0 commit comments

Comments
 (0)