Raven Core  3.0.0
P2P Digital Currency
amount.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2016 The Bitcoin Core developers
3 // Copyright (c) 2017-2019 The Raven Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef RAVEN_AMOUNT_H
8 #define RAVEN_AMOUNT_H
9 
10 #include <stdint.h>
11 
13 typedef int64_t CAmount;
14 
15 static const CAmount COIN = 100000000;
16 static const CAmount CENT = 1000000;
17 
27 static const CAmount MAX_MONEY = 21000000000 * COIN;
28 inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
29 
30 #endif // RAVEN_AMOUNT_H
bool MoneyRange(const CAmount &nValue)
Definition: amount.h:28
int64_t CAmount
Amount in corbies (Can be negative)
Definition: amount.h:13