rippled
Loading...
Searching...
No Matches
include
xrpl
protocol
protocol/Fees.h
1
#pragma once
2
3
#include <xrpl/protocol/XRPAmount.h>
4
5
namespace
xrpl
{
6
12
struct
Fees
13
{
14
XRPAmount
base
{0};
// Reference tx cost (drops)
15
XRPAmount
reserve
{0};
// Reserve base (drops)
16
XRPAmount
increment
{0};
// Reserve increment (drops)
17
18
explicit
Fees
() =
default
;
19
Fees
(
Fees
const
&) =
default
;
20
Fees
&
21
operator=
(
Fees
const
&) =
default
;
22
28
XRPAmount
29
accountReserve
(
std::size_t
ownerCount)
const
30
{
31
return
reserve
+ ownerCount *
increment
;
32
}
33
};
34
35
}
// namespace xrpl
xrpl::XRPAmount
Definition
XRPAmount.h:23
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
std::size_t
xrpl::Fees
Reflects the fee settings for a particular ledger.
Definition
protocol/Fees.h:13
xrpl::Fees::Fees
Fees(Fees const &)=default
xrpl::Fees::accountReserve
XRPAmount accountReserve(std::size_t ownerCount) const
Returns the account reserve given the owner count, in drops.
Definition
protocol/Fees.h:29
xrpl::Fees::reserve
XRPAmount reserve
Definition
protocol/Fees.h:15
xrpl::Fees::Fees
Fees()=default
xrpl::Fees::increment
XRPAmount increment
Definition
protocol/Fees.h:16
xrpl::Fees::base
XRPAmount base
Definition
protocol/Fees.h:14
xrpl::Fees::operator=
Fees & operator=(Fees const &)=default
Generated by
1.9.8