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 5f00160 commit 6a1f8a8Copy full SHA for 6a1f8a8
projects/thruster-fi/index.js
@@ -9,6 +9,7 @@ module.exports = mergeExports([
9
async function excludeYES(api) {
10
const YES = '0x20fE91f17ec9080E3caC2d688b4EcB48C5aC3a9C'
11
const bal = await api.call({ abi: 'erc20:balanceOf', target: YES, params: '0x1d16788b97eDB7d9a6aE66D5C5C16469037Faa00'})
12
+ if (!bal) throw new Error('No YES balance found')
13
api.add(YES, -bal)
14
return api.getBalances()
15
}
0 commit comments