Skip to content

Commit

Permalink
DEFAULT_CASH_ANTE
Browse files Browse the repository at this point in the history
  • Loading branch information
mantikoros committed Dec 3, 2024
1 parent 04fa9a2 commit 36cdc03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions common/src/economy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion web/components/contract/contract-info-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 36cdc03

Please sign in to comment.