Skip to content

Commit

Permalink
fix: fix balance query
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Cruz committed Nov 24, 2020
1 parent 2e7249a commit 4af38a6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -172,7 +172,7 @@ const findBalanceByAddressAndBlock = `SELECT (SELECT COALESCE(SUM(r.amount),0)
JOIN block ON
block.id = r.block_id
WHERE stake_address.view = $1
AND block.epoch_no < (SELECT epoch_no FROM block WHERE hash = $2))-
AND block.epoch_no <= (SELECT epoch_no FROM block WHERE hash = $2))-
(SELECT COALESCE(SUM(w.amount),0)
FROM withdrawal w
JOIN tx ON tx.id = w.tx_id AND
Expand Down

0 comments on commit 4af38a6

Please sign in to comment.