Developer Hub
🔮 For applications
Toolkit
Utils
calcMinOdds

Calculates the minimum odds value at which the bet can be placed. If the current odds value is lower than the specified value, the bet cannot be placed and will be rejected by the contract.

Usage

import { calcMindOdds } from '@azuro-org/toolkit'
 
const minOdds = calcMindOdds({ 
  odds: 1.17,
  slippage: 5, // 5% 
})

Props

{
  odds: number | number[]
  slippage: number
}

Return Value

number