spl_token_interface/native_mint.rs
1//! The Mint that represents the native token.
2
3use pinocchio::pubkey::Pubkey;
4
5/// There are 10^9 lamports in one SOL
6pub const DECIMALS: u8 = 9;
7
8// The Mint for native SOL Token accounts
9pub const ID: Pubkey = pinocchio_pubkey::pubkey!("So11111111111111111111111111111111111111112");
10
11#[inline(always)]
12pub fn is_native_mint(mint: &Pubkey) -> bool {
13 mint == &ID
14}