We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1fc8d3 commit ce4b68aCopy full SHA for ce4b68a
projects/nuls.js
@@ -4,6 +4,7 @@ const url = "https://public1.nuls.io/nuls/tvl"
4
5
const tvl = async (api) => {
6
const { data } = await utils.fetchURL(url)
7
+ if (data.tvl > 10_000_000) throw new Error("abnormally high TVL")
8
return api.addUSDValue(Math.floor(data.tvl))
9
}
10
0 commit comments