Class: Glueby::Contract::FeeEstimator::Fixed

Inherits:
Object
  • Object
show all
Includes:
Glueby::Contract::FeeEstimator
Defined in:
lib/glueby/contract/fee_estimator/fixed.rb

Constant Summary collapse

DEFAULT_FEE =

Default fee in tapyrus that is used if it is not configured

10_000

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Glueby::Contract::FeeEstimator

dummy_tx, #fee

Constructor Details

#initialize(fixed_fee: Fixed.default_fixed_fee || DEFAULT_FEE) ⇒ Fixed

Returns a new instance of Fixed.



16
17
18
# File 'lib/glueby/contract/fee_estimator/fixed.rb', line 16

def initialize(fixed_fee: Fixed.default_fixed_fee || DEFAULT_FEE)
  @fixed_fee = fixed_fee
end

Class Attribute Details

.default_fixed_feeObject

Returns the value of attribute default_fixed_fee.



13
14
15
# File 'lib/glueby/contract/fee_estimator/fixed.rb', line 13

def default_fixed_fee
  @default_fixed_fee
end

Instance Attribute Details

#fixed_feeObject (readonly)

Returns the value of attribute fixed_fee.



10
11
12
# File 'lib/glueby/contract/fee_estimator/fixed.rb', line 10

def fixed_fee
  @fixed_fee
end