@neutral-trade/sdk - v1.0.0
    Preparing search index...

    Function calculateAssetsFromShares

    • Mirrors calculate_assets_from_shares at bundle.rs:259-270. When totalShares is zero this read-only helper returns zero, while the Rust function reports a division error.

      Parameters

      • args: { shares: bigint; totalAssets: bigint; totalShares: bigint }

      Returns bigint