Class: XRBP::NodeStore::Fees

Inherits:
Object
  • Object
show all
Defined in:
lib/xrbp/nodestore/fees.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFees

Returns a new instance of Fees.


7
8
9
10
11
12
# File 'lib/xrbp/nodestore/fees.rb', line 7

def initialize
  @base      = 0
  @units     = 0
  @reserve   = 0
  @increment = 0
end

Instance Attribute Details

#baseObject (readonly)

FIXME where do these get updated in rippled?


5
6
7
# File 'lib/xrbp/nodestore/fees.rb', line 5

def base
  @base
end

#incrementObject (readonly)

FIXME where do these get updated in rippled?


5
6
7
# File 'lib/xrbp/nodestore/fees.rb', line 5

def increment
  @increment
end

#reserveObject (readonly)

FIXME where do these get updated in rippled?


5
6
7
# File 'lib/xrbp/nodestore/fees.rb', line 5

def reserve
  @reserve
end

#unitsObject (readonly)

FIXME where do these get updated in rippled?


5
6
7
# File 'lib/xrbp/nodestore/fees.rb', line 5

def units
  @units
end

Instance Method Details

#account_reserve(owner_count) ⇒ Object


14
15
16
# File 'lib/xrbp/nodestore/fees.rb', line 14

def (owner_count)
  STAmount.new :mantissa => reserve + owner_count + increment
end