rippled
Public Member Functions | Public Attributes | List of all members
ripple::Fees Struct Reference

Reflects the fee settings for a particular ledger. More...

Collaboration diagram for ripple::Fees:
Collaboration graph
[legend]

Public Member Functions

 Fees ()=default
 
 Fees (Fees const &)=default
 
Feesoperator= (Fees const &)=default
 
XRPAmount accountReserve (std::size_t ownerCount) const
 Returns the account reserve given the owner count, in drops. More...
 

Public Attributes

XRPAmount base {0}
 
XRPAmount reserve {0}
 
XRPAmount increment {0}
 

Detailed Description

Reflects the fee settings for a particular ledger.

The fees are always the same for any transactions applied to a ledger. Changes to fees occur in between ledgers.

Definition at line 49 of file ReadView.h.

Constructor & Destructor Documentation

◆ Fees() [1/2]

ripple::Fees::Fees ( )
explicitdefault

◆ Fees() [2/2]

ripple::Fees::Fees ( Fees const &  )
default

Member Function Documentation

◆ operator=()

Fees& ripple::Fees::operator= ( Fees const &  )
default

◆ accountReserve()

XRPAmount ripple::Fees::accountReserve ( std::size_t  ownerCount) const

Returns the account reserve given the owner count, in drops.

The reserve is calculated as the reserve base plus the reserve increment times the number of increments.

Definition at line 66 of file ReadView.h.

Member Data Documentation

◆ base

XRPAmount ripple::Fees::base {0}

Definition at line 51 of file ReadView.h.

◆ reserve

XRPAmount ripple::Fees::reserve {0}

Definition at line 52 of file ReadView.h.

◆ increment

XRPAmount ripple::Fees::increment {0}

Definition at line 53 of file ReadView.h.