Skip to Content

getMaxBet

DEPRECATED - Removed in v6.0.0: This function has been removed from the toolkit. Please use getBetCalculation instead, which provides both minimum and maximum bet calculations along with maximum payout information.

Returns max bet amount for provided selections.

Usage

import { getMaxBet } from '@azuro-org/toolkit' const { maxBet } = await getMaxBet({ chainId: 100, selections: [ {...} ] })

Props

{ chainId: ChainId selections: Selection[] }
type Selection = { outcomeId: string conditionId: string coreAddress: string } type ChainId = | 100 // Gnosis | 137 // Polygon | 80002 // Polygon Amoy | 88888 // Chiliz | 88882 // Chiliz Spicy | 8453 // Base | 84532 // Base Sepolia

Return Value

{ maxBet: string maxPayout: string }
Last updated on