Skip to main content

Crate fermat_solana

Crate fermat_solana 

Source
Expand description

§fermat-solana

Solana / Anchor integration helpers for fermat_core::Decimal.

§Modules

  • borsh_impl: DecimalBorsh wrapper — 17-byte on-chain Borsh encoding with adversarial scale validation.
  • token: SPL mint ↔ Decimal conversions with explicit rounding.
  • account: Anchor account helpers including DECIMAL_SPACE constant and zero_with_scale initialiser.

Re-exports§

pub use account::DECIMAL_SPACE;
pub use borsh_impl::DecimalBorsh;

Modules§

account
Anchor account helpers for embedding Decimal in on-chain account structs.
borsh_impl
Borsh serialization / deserialization for Decimal.
token
SPL token amount ↔ Decimal conversions.