/** * Math Utilities (Main Export) * * This file re-exports all math utilities from the organized math/ subdirectory. * * The math module has been split into focused submodules: * - conversions: Safe BN ↔ number conversions * - wad: Fixed-point arithmetic (10^18 precision) * - lmsr: Market maker logic and index resolution * - expLn: Exponential and logarithm implementations * - simulation: Trade simulation utilities * * You can import from this file for convenience, or from specific submodules: * * @example * ```typescript * // Import from main file * import { toWad, lmsrCost } from '@pit-protocol/sdk/math'; * * // Or import from specific module * import { toWad } from '@pit-protocol/sdk/math/wad'; * import { lmsrCost } from '@pit-protocol/sdk/math/lmsr'; * ``` */ export * from "./math/index.js";