(dollars: number)
| 9 | export const CREDIT_MULTIPLIER = 200 |
| 10 | |
| 11 | export function dollarsToCredits(dollars: number): number { |
| 12 | return Math.round(dollars * CREDIT_MULTIPLIER) |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Convert a credit amount (the API/UI unit) into stored dollars. |
no outgoing calls
no test coverage detected