From 36cdc0339a4c6ea1f08550ea68f6cd11276ac3c1 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Tue, 3 Dec 2024 11:30:25 -0800 Subject: [PATCH] DEFAULT_CASH_ANTE --- common/src/economy.ts | 2 ++ web/components/contract/contract-info-dialog.tsx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/economy.ts b/common/src/economy.ts index 08320ea818..ecd48bfd48 100644 --- a/common/src/economy.ts +++ b/common/src/economy.ts @@ -4,6 +4,8 @@ import { } from 'common/contract' import { MarketTierType, tiers } from './tier' +export const DEFAULT_CASH_ANTE = 100 + export const FIXED_ANTE = 1000 const BASE_ANSWER_COST = FIXED_ANTE / 10 const MIN_ANSWER_COST = 25 diff --git a/web/components/contract/contract-info-dialog.tsx b/web/components/contract/contract-info-dialog.tsx index bed8627415..283f896611 100644 --- a/web/components/contract/contract-info-dialog.tsx +++ b/web/components/contract/contract-info-dialog.tsx @@ -37,6 +37,7 @@ import { InfoTooltip } from '../widgets/info-tooltip' import ShortToggle from '../widgets/short-toggle' import { Table } from '../widgets/table' import { ContractHistoryButton } from './contract-edit-history-button' +import { DEFAULT_CASH_ANTE } from 'common/economy' export const Stats = (props: { contract: Contract @@ -500,7 +501,7 @@ export function ContractInfoDialog(props: { try { await api('create-cash-contract', { manaContractId: playContract.id, - subsidyAmount: 100, // You may want to make this configurable + subsidyAmount: DEFAULT_CASH_ANTE, // You may want to make this configurable }) toast.success('Market converted to cash market successfully') router.reload()