Fabcoin Core  0.16.2
P2P Digital Currency
amount.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2017 The Fabcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef FABCOIN_AMOUNT_H
7 #define FABCOIN_AMOUNT_H
8 
9 #include <serialize.h>
10 
11 #include <stdlib.h>
12 #include <string>
13 
15 typedef int64_t CAmount;
16 
17 static const CAmount COIN = 100000000;
18 static const CAmount CENT = 1000000;
19 
20 extern const std::string CURRENCY_UNIT;
21 
23 static const CAmount MAX_MONEY = (168000000 + 32000000) * COIN;
24 inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
25 
26 #endif // FABCOIN_AMOUNT_H
const std::string CURRENCY_UNIT
Definition: feerate.cpp:10
bool MoneyRange(const CAmount &nValue)
Definition: amount.h:24
int64_t CAmount
Amount in lius (Can be negative)
Definition: amount.h:15