RITARENA
UI LibraryComponents

PrizePool

Display total prize amount with protocol and creator fee breakdown.

How much the winner actually takes home. Total pool minus protocol fee minus creator fee. The number that matters, with the math visible so nobody thinks you're skimming.

Prize Pool
37.60
USDC
Total: 40.00Fee: 1%+5%

Usage

import { PrizePool } from '@ritarena/ui'

<PrizePool
  total={40_000_000}       // 40 USDC in base units (6 decimals)
  creatorFeeBps={500}      // 5% creator fee
  protocolFeeBps={100}     // 1% protocol fee
  currency="USDC"
/>

Props

PropTypeDefaultDescription
totalnumberrequiredTotal pool in base units (6 decimals for USDC)
creatorFeeBpsnumberrequiredCreator fee in basis points (500 = 5%)
protocolFeeBpsnumberrequiredProtocol fee in basis points (100 = 1%)
currencystring"USDC"Currency label
themeRitArenaThemeTheme override
classNamestringCSS class

Fee math

protocolFee = total * protocolFeeBps / 10_000
creatorFee  = total * creatorFeeBps / 10_000
prizePool   = total - protocolFee - creatorFee

Example: 40 USDC pool with 1% protocol + 5% creator = 37.60 USDC for winners.

Theming tokens

  • --ritarena-accent — highlighted prize amount
  • --ritarena-text-muted — labels, fee breakdown
  • --ritarena-bg-card, --ritarena-border — container

On this page