- Source code: github.com/GainsNetwork-org/sdk
- Types used by the SDK: Client types
Trading fee helpers
Use these helpers to derive v9 fee-floor values from normalized SDK trading variables:getPairMinFeeUsd mirrors the contracts’ pairMinFeeUsd getter after SDK normalization.
getMinCollateral returns the minimum opening collateral in collateral tokens using the v9 rule collateral >= 5 * minFeeUsd.
For direct Fee objects, use getMinTradeFeeUsd(fee), getMinOpeningCollateralUsd(fee), or
getMinOpeningCollateral(fee, collateralPriceUsd).