Skip to content

Commit

Permalink
fixup! fixup! wip: naive insta_rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Mar 31, 2024
1 parent ac370ad commit d6648c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sql/accounts/accounts_stake_address.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ SELECT sa.view AS "stake_address",
COALESCE(treasury_sum.amount, 0)::TEXT AS "treasury_sum", -- cast to TEXT to avoid number overflow
(
(
COALESCE(rewards_sum.amount, 0) + COALESCE(instant_rewards_sum.amount, 0) - COALESCE(withdrawals_sum.amount, 0)
COALESCE(rewards_sum.amount, 0) + COALESCE(instant_rewards_sum.amount, 0) + COALESCE(refunds_sum.amount, 0) - COALESCE(withdrawals_sum.amount, 0)
)
)::TEXT AS "withdrawable_amount", -- cast to TEXT to avoid number overflow
(
Expand Down

0 comments on commit d6648c3

Please sign in to comment.