Skip to content

Commit

Permalink
fix(qf): skip negative shares
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Sep 18, 2024
1 parent 513d2b5 commit 433da84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/qf-calculate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,10 @@ WHERE lower(sender.eth_address) =ANY(${Array.from(senderAddresses)})
// url, created_at, author_eth, // tot, _q_summed,
} = clrsMap.get(proj) || {}

if (!clr_amount_orig || !shares) {
if (!clr_amount_orig || !shares || shares < 0) {
console.error(
new Date(),
`wrong data "${proj}" no entry:`,
`wrong data "${proj}" no entry or negative shares:`,
clrsMap.get(proj)
)
return
Expand Down

0 comments on commit 433da84

Please sign in to comment.