Skip to content

Commit

Permalink
Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
IanPhilips committed Feb 1, 2025
1 parent 4d19769 commit a28d949
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions mani/components/contract/bet/bet-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,7 @@ export function BetPanel({
(params) => api('users/by-id/balance', params),
useIsPageVisible
)
const {
currentPayout,
probAfter: newProbAfter,
betDeps,
limitProb,
prob,
} = getLimitBetReturns(
const { currentPayout, betDeps, limitProb } = getLimitBetReturns(
outcome,
amount,
unfilledBets,
Expand All @@ -182,16 +176,6 @@ export function BetPanel({
contract,
multiProps
)
let probBefore = prob
let probAfter = newProbAfter
if (
multiProps &&
multiProps.answerToBuy.text !== multiProps.answerText &&
isBinaryMC
) {
probBefore = 1 - prob
probAfter = 1 - newProbAfter
}

const onPress = async () => {
if (!user) return
Expand Down

0 comments on commit a28d949

Please sign in to comment.