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

    Function estimatePendingUserFees

    • Estimates the user-share deductions in charge_user_fees at bundle.rs:653-851. Referral handling at bundle.rs:767-800 is omitted because it only divides the same deducted shares between manager and referrer. If assetPrecision is zero, this helper returns a zero fee value; the Rust function reports a division error at bundle.rs:829-834.

      Parameters

      • args: {
            bundle: Pick<
                Bundle,
                | "depositFee"
                | "withdrawalFee"
                | "performanceFee"
                | "managementFeeBps"
                | "assetPrecision"
                | "bundleUnderlyingBalance"
                | "totalShares",
            >;
            nowUnixSeconds: number
            | bigint;
            oracleData: Pick<OracleData, "averageExternalEquity">;
            userBundle: Pick<
                UserBundleAccount,
                | "shares"
                | "hwmPerShare"
                | "lastManagementFeeTimestamp"
                | "feeOverrideFlags"
                | "customDepositFeeBps"
                | "customWithdrawalFeeBps"
                | "customPerformanceFeeBps"
                | "customManagementFeeBps",
            >;
        }

      Returns PendingFeeEstimate