Class: Nis::Fee::MultisigAggregateModification

Inherits:
Object
  • Object
show all
Defined in:
lib/nis/fee/multisig_aggregation_modification.rb

Instance Method Summary collapse

Constructor Details

#initialize(transaction) ⇒ MultisigAggregateModification

Returns a new instance of MultisigAggregateModification.



3
4
5
# File 'lib/nis/fee/multisig_aggregation_modification.rb', line 3

def initialize(transaction)
  @transaction = transaction
end

Instance Method Details

#testnet?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/nis/fee/multisig_aggregation_modification.rb', line 22

def testnet?
  @transaction.network == :testnet
end

#to_iInteger

Returns fee in micro XEM.

Returns:

  • (Integer)

    fee in micro XEM



17
18
19
# File 'lib/nis/fee/multisig_aggregation_modification.rb', line 17

def to_i
  value.to_i
end

#valueInteger

Returns fee in micro XEM.

Returns:

  • (Integer)

    fee in micro XEM



8
9
10
11
12
13
14
# File 'lib/nis/fee/multisig_aggregation_modification.rb', line 8

def value
  if @transaction.minCosignatories == 0
    0.5 * 1_000_000
  else
    0.5 * 1_000_000
  end
end