Skip to content

Commit

Permalink
Fix limit order variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Jul 9, 2024
1 parent ecaa997 commit e82c1ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/src/calculate-cpmm-arbitrage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export function calculateCpmmMultiArbitrageBet(
collectedFees: Fees
) {
const limitProb =
initialLimitProb ?? outcome === 'YES' ? MAX_CPMM_PROB : MIN_CPMM_PROB
initialLimitProb !== undefined
? initialLimitProb
: outcome === 'YES'
? MAX_CPMM_PROB
: MIN_CPMM_PROB
const result =
outcome === 'YES'
? calculateCpmmMultiArbitrageBetYes(
Expand Down

0 comments on commit e82c1ef

Please sign in to comment.