Class: Verokrypto::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/verokrypto/source.rb

Direct Known Subclasses

Coinex

Instance Method Summary collapse

Instance Method Details

#feesObject



5
6
7
8
9
10
11
12
# File 'lib/verokrypto/source.rb', line 5

def fees
  currencies = {}
  events.each do |e|
    currencies[e.fee.currency] ||= Money.from_amount(0, e.fee.currency)
    currencies[e.fee.currency] += e.fee
  end
  currencies
end