Skip to content

Commit ce4b68a

Browse files
authored
Fix: nuls (#17115)
1 parent b1fc8d3 commit ce4b68a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/nuls.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const url = "https://public1.nuls.io/nuls/tvl"
44

55
const tvl = async (api) => {
66
const { data } = await utils.fetchURL(url)
7+
if (data.tvl > 10_000_000) throw new Error("abnormally high TVL")
78
return api.addUSDValue(Math.floor(data.tvl))
89
}
910

0 commit comments

Comments
 (0)