caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

30 lines
896 B
TypeScript

import { TRADE_TERM } from 'common/envs/constants'
import { InfoTooltip } from '../widgets/info-tooltip'
import { MoneyDisplay } from './money-display'
export const FeeDisplay = (props: {
totalFees: number
amount: number | undefined
isCashContract?: boolean
}) => {
const { totalFees, amount, isCashContract } = props
return (
<span>
<span className="text-ink-700 font-semibold">
<MoneyDisplay
amount={totalFees}
numberType="toDecimal"
isCashContract={!!isCashContract}
/>
</span>
<InfoTooltip
text={`${(amount ? (100 * totalFees) / amount : 0).toFixed(
2
)}% fee. Goes to Predikt. Fees range from 0% to 7% of your ${TRADE_TERM} amount increasing the more unlikely your ${TRADE_TERM} is to pay out.`}
className="text-ink-600 ml-1 mt-0.5"
size="sm"
/>
</span>
)
}