Skip to content

Commit 4d5af71

Browse files
authored
Merge pull request #2419 from nervosnetwork/testnet
Deploy to mainnet
2 parents ae30790 + b751ae3 commit 4d5af71

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/models/daily_statistic.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ def liquidity
117117
end
118118

119119
define_logic :mining_reward do
120-
Block.created_before(ended_at).sum(:secondary_reward)
120+
if from_scratch
121+
Block.created_before(ended_at).sum(:secondary_reward)
122+
else
123+
Block.created_between(started_at, ended_at).sum(:secondary_reward) + yesterday_daily_statistic.mining_reward.to_i
124+
end
121125
end
122126

123127
define_logic :deposit_compensation do

0 commit comments

Comments
 (0)