Skip to content

Commit

Permalink
Fixing duplicated payouts (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Gallicchio <[email protected]>
  • Loading branch information
juanma1996 and Juan Gallicchio authored Sep 17, 2024
1 parent d94f9fa commit d13be5c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/library/Graphs/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,6 @@ export const calculateDailyPayouts = (
}
}

if (curPayout.amount.isGreaterThan(0)) {
dailyPayouts.push({
amount: planckToUnit(curPayout.amount, units),
event_id: getEventId(curPayout),
block_timestamp: getUnixTime(curDay),
});
}

// return payout amounts as plain numbers.
return dailyPayouts.map((q: AnyApi) => ({
...q,
Expand Down

0 comments on commit d13be5c

Please sign in to comment.