 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
6 #ifndef BITCOIN_AMOUNT_H
7 #define BITCOIN_AMOUNT_H
19 static const CAmount COIN = 100000000;
20 static const CAmount CENT = 1000000;
21 static const CAmount MIN_FEE = COIN / 10000;
22 static const CAmount MAX_FEE = COIN / 100;
33 static const CAmount MAX_MONEY_OUT = 70000000 * COIN;
34 inline bool MoneyRange(
const CAmount& nValue) {
return (nValue >= 0 && nValue <= MAX_MONEY_OUT); }
61 template <
typename Stream,
typename Operation>
62 inline void SerializationOp(Stream& s, Operation ser_action,
int nType,
int nVersion)
68 #endif // BITCOIN_AMOUNT_H
friend bool operator>(const CFeeRate &a, const CFeeRate &b)
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
CFeeRate(const CAmount &_nSatoshisPerK)
bool MoneyRange(const CAmount &nValue)
friend bool operator>=(const CFeeRate &a, const CFeeRate &b)
friend bool operator<=(const CFeeRate &a, const CFeeRate &b)
Fee rate in PRCY per kilobyte: CAmount / kB.
int64_t CAmount
Amount in PRCY (Can be negative)
CFeeRate(const CFeeRate &other)
friend bool operator<(const CFeeRate &a, const CFeeRate &b)
const std::string CURRENCY_UNIT
std::string ToString() const
friend bool operator==(const CFeeRate &a, const CFeeRate &b)
CAmount GetFee(size_t size) const
CAmount GetFeePerK() const