Expand description
§fermat-solana
Solana / Anchor integration helpers for fermat_core::Decimal.
§Modules
borsh_impl:DecimalBorshwrapper — 17-byte on-chain Borsh encoding with adversarial scale validation.token: SPL mint ↔Decimalconversions with explicit rounding.account: Anchor account helpers includingDECIMAL_SPACEconstant andzero_with_scaleinitialiser.
Re-exports§
pub use account::DECIMAL_SPACE;pub use borsh_impl::DecimalBorsh;
Modules§
- account
- Anchor account helpers for embedding
Decimalin on-chain account structs. - borsh_
impl - Borsh serialization / deserialization for
Decimal. - token
- SPL token amount ↔
Decimalconversions.