UNPKG

@azuro-org/toolkit

Version:

This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.

21 lines (20 loc) 708 B
export type CalcMinOddsParams = { odds: number | number[]; slippage?: number; }; /** * Calculates the minimum acceptable odds considering slippage for single or combo bets. * For combo bets, applies fee modifiers and multiplies individual odds to calculate total odds. * * - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/calcMinOdds * * @example * import { calcMindOdds } from '@azuro-org/toolkit' * * // Single bet with 5% slippage * const minOdds = calcMindOdds({ odds: 1.5, slippage: 5 }) * * // Combo bet with multiple odds * const comboMinOdds = calcMindOdds({ odds: [1.5, 2.0, 1.8], slippage: 5 }) * */ export declare const calcMinOdds: (props: CalcMinOddsParams) => string;