MCPcopy Create free account
hub / github.com/dailydotdev/apps / formatCashbackMultiple

Function formatCashbackMultiple

packages/shared/src/features/squads/lib/plans.ts:87–88  ·  view source on GitHub ↗
(percentage: number)

Source from the content-addressed store, hash-verified

85
86/** "5×" for a 500% promo: how many times the plan price comes back. */
87export const formatCashbackMultiple = (percentage: number): string =>
88 `${Number((percentage / 100).toFixed(1))}×`;
89
90/** The plan card line: the launch promo's amount and length while it is on. */
91export const getSquadPlanCashbackLabel = (

Callers 4

StartupsDealFunction · 0.90
SquadLaunchOfferBannerFunction · 0.90
LaunchOfferBannerFunction · 0.90
StartupsBoostPromoFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected