Skip to content

Commit 6a1f8a8

Browse files
authored
thruster (#17204)
1 parent 5f00160 commit 6a1f8a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/thruster-fi/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = mergeExports([
99
async function excludeYES(api) {
1010
const YES = '0x20fE91f17ec9080E3caC2d688b4EcB48C5aC3a9C'
1111
const bal = await api.call({ abi: 'erc20:balanceOf', target: YES, params: '0x1d16788b97eDB7d9a6aE66D5C5C16469037Faa00'})
12+
if (!bal) throw new Error('No YES balance found')
1213
api.add(YES, -bal)
1314
return api.getBalances()
1415
}

0 commit comments

Comments
 (0)