Add native_mint::DECIMALS

This commit is contained in:
Michael Vines 2020-08-04 16:12:19 -07:00 committed by mergify[bot]
parent 827e4196ed
commit 72608ab2e3
2 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,11 @@
#define TOKEN_MINOR_VERSION 0
#define TOKEN_PATCH_VERSION 6
/**
* There are 10^9 lamports in one SOL
*/
#define Token_DECIMALS 9
/**
* Maximum number of multisignature signers (max N)
*/

View File

@ -1,4 +1,7 @@
//! The Mint that represents the native token
/// There are 10^9 lamports in one SOL
pub const DECIMALS: u8 = 9;
// The Mint for native SOL Token accounts
solana_sdk::declare_id!("So11111111111111111111111111111111111111111");