From 9e333cb106b7747ee91763320b1c4858bf17f67d Mon Sep 17 00:00:00 2001 From: mantikoros Date: Fri, 24 Jan 2025 17:16:22 -0800 Subject: [PATCH] consistent names --- backend/api/src/gidx/complete-cashout-request.ts | 4 ++-- backend/api/src/resolve-market.ts | 2 +- backend/api/src/unresolve.ts | 2 +- backend/shared/src/calculate-redeemable-prize-cash.ts | 2 +- twitch-bot/web/pages/metrics.tsx | 4 ++-- web/components/stats/mana-summary.tsx | 6 +++--- web/pages/admin/cash-stats.tsx | 6 +++--- web/pages/stats.tsx | 8 ++++---- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/backend/api/src/gidx/complete-cashout-request.ts b/backend/api/src/gidx/complete-cashout-request.ts index 59c37ce40b..4f18ad4f9c 100644 --- a/backend/api/src/gidx/complete-cashout-request.ts +++ b/backend/api/src/gidx/complete-cashout-request.ts @@ -38,7 +38,7 @@ export const completeCashoutRequest: APIHandler< const { redeemable } = await calculateRedeemablePrizeCash(pg, userId) if (redeemable < manaCashAmount) { - throw new APIError(400, 'Insufficient redeemable prize cash') + throw new APIError(400, 'Insufficient redeemable sweepcash') } const dollarsToWithdraw = PaymentAmount.dollars const CalculatedPaymentAmount = (1 - SWEEPIES_CASHOUT_FEE) * manaCashAmount @@ -107,7 +107,7 @@ const debitCoins = async ( if (redeemablePrizeCash < manaCashAmount) { throw new APIError( 500, - 'Insufficient redeemable prize cash. Indeterminate state, may need to refund', + 'Insufficient redeemable sweepcash. Indeterminate state, may need to refund', { response: props } ) } diff --git a/backend/api/src/resolve-market.ts b/backend/api/src/resolve-market.ts index d39d4de886..dad5128b16 100644 --- a/backend/api/src/resolve-market.ts +++ b/backend/api/src/resolve-market.ts @@ -61,7 +61,7 @@ export const resolveMarketMain: APIHandler< ) { throw new APIError( 403, - 'Only the Manifold account and approved mods can resolve prize cash markets' + 'Only the Manifold account and approved mods can resolve sweepcash markets' ) } diff --git a/backend/api/src/unresolve.ts b/backend/api/src/unresolve.ts index 5229660485..9f5e8687f4 100644 --- a/backend/api/src/unresolve.ts +++ b/backend/api/src/unresolve.ts @@ -79,7 +79,7 @@ const verifyUserCanUnresolve = async ( if (isProd() && token === 'CASH' && userId !== HOUSE_LIQUIDITY_PROVIDER_ID) { throw new APIError( 403, - `Only the Manifold account can unresolve prize cash markets` + `Only the Manifold account can unresolve sweepcash markets` ) } diff --git a/backend/shared/src/calculate-redeemable-prize-cash.ts b/backend/shared/src/calculate-redeemable-prize-cash.ts index 5b97df45ee..fbc2d16a51 100644 --- a/backend/shared/src/calculate-redeemable-prize-cash.ts +++ b/backend/shared/src/calculate-redeemable-prize-cash.ts @@ -11,7 +11,7 @@ import { } from './supabase/sql-builder' import { log } from './utils' -// Gets the total amount of prize cash that a user can redeem for usd, before fees +// Gets the total amount of sweepcash that a user can redeem for usd, before fees export async function calculateRedeemablePrizeCash( pg: SupabaseDirectClient, userId: string diff --git a/twitch-bot/web/pages/metrics.tsx b/twitch-bot/web/pages/metrics.tsx index 3669700dcc..e7a284b1b0 100644 --- a/twitch-bot/web/pages/metrics.tsx +++ b/twitch-bot/web/pages/metrics.tsx @@ -243,7 +243,7 @@ function Panel(props: { className?: string; children?: ReactNode; disabled?: boo
{disabled && (
Coming soon @@ -398,7 +398,7 @@ function MetricsPage() { - + diff --git a/web/components/stats/mana-summary.tsx b/web/components/stats/mana-summary.tsx index 49cf9cfb99..f9289c19b9 100644 --- a/web/components/stats/mana-summary.tsx +++ b/web/components/stats/mana-summary.tsx @@ -22,8 +22,8 @@ const categoryToLabel = { investment_value: 'invested', loan_total: 'loans', amm_liquidity: 'amm liquidity', - total_cash_value: 'total prize cash', - cash_balance: 'prize cash balance', + total_cash_value: 'total sweepcash', + cash_balance: 'sweepcash balance', cash_investment_value: 'invested', amm_cash_liquidity: 'amm liquidity', } @@ -57,7 +57,7 @@ export const ManaSupplySummary = (props: { <> Mana supply over time - Prize cash supply supply over time + Sweepcash supply supply over time ) diff --git a/web/pages/admin/cash-stats.tsx b/web/pages/admin/cash-stats.tsx index 98dbe57c37..d0cc95751f 100644 --- a/web/pages/admin/cash-stats.tsx +++ b/web/pages/admin/cash-stats.tsx @@ -65,9 +65,9 @@ export function CustomCashAnalytics(props: { stats: Row<'daily_stats'>[] }) { return ( - Active users + Active traders

- An active user is a user who has traded in, commented on, or created a + An active trader is a user who has traded in, commented on, or created a sweep cash question.

@@ -126,7 +126,7 @@ export function CustomCashAnalytics(props: { stats: Row<'daily_stats'>[] }) { Retention

- What fraction of active users are still active after the given time + What fraction of active traders are still active after the given time period?

- Active users + Active traders

- An active user is a user who has traded in, commented on, or created a + An active trader is a user who has traded in, commented on, or created a question.

@@ -376,7 +376,7 @@ export function CustomAnalytics(props: { Retention

- What fraction of active users are still active after the given time + What fraction of active traders are still active after the given time period?

- Total prize cash {TRADED_TERM} + Total sweepcash {TRADED_TERM}

Sum of cash {TRADE_TERM} amounts.