* feat: add relayer page; lots of styling * add send/receive funds * add missing files * fix build * update webhooks table * destructive * allow float send amount
11 lines
257 B
TypeScript
11 lines
257 B
TypeScript
export const prettyPrintCurrency = ({
|
|
amount,
|
|
symbol,
|
|
}: {
|
|
amount: string | number;
|
|
symbol: string;
|
|
}): string => {
|
|
const amountNumber = typeof amount === "string" ? parseFloat(amount) : amount;
|
|
return `${amountNumber.toFixed(6)} ${symbol}`;
|
|
};
|