Skip to content

Commit

Permalink
chore: update unmade_dao_interests
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz committed Feb 7, 2025
1 parent ff3b832 commit de5820b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/models/market_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@ def total_supply
def unmade_dao_interests
@unmade_dao_interests ||=
Rails.cache.fetch("unmade_dao_interests", expires_in: 1.day) do
tip_dao = tip_block.dao
total = 0
CellOutput.nervos_dao_deposit.generated_before(tip_block.timestamp).unconsumed_at(tip_block.timestamp).find_each do |cell_output|
total += DaoCompensationCalculator.new(cell_output, tip_dao).call
end
total
# tip_dao = tip_block.dao
# total = 0
# CellOutput.nervos_dao_deposit.generated_before(tip_block.timestamp).unconsumed_at(tip_block.timestamp).find_each do |cell_output|
# total += DaoCompensationCalculator.new(cell_output, tip_dao).call
# end
# total
0
end
end

Expand Down

0 comments on commit de5820b

Please sign in to comment.