Skip to content

Commit

Permalink
Merge pull request #2419 from nervosnetwork/testnet
Browse files Browse the repository at this point in the history
Deploy to mainnet
  • Loading branch information
zmcNotafraid authored Feb 5, 2025
2 parents ae30790 + b751ae3 commit 4d5af71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/daily_statistic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ def liquidity
end

define_logic :mining_reward do
Block.created_before(ended_at).sum(:secondary_reward)
if from_scratch
Block.created_before(ended_at).sum(:secondary_reward)
else
Block.created_between(started_at, ended_at).sum(:secondary_reward) + yesterday_daily_statistic.mining_reward.to_i
end
end

define_logic :deposit_compensation do
Expand Down

0 comments on commit 4d5af71

Please sign in to comment.