diff options
| author | Adam Soltys <[email protected]> | 2025-11-26 14:53:20 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 15:33:08 -0800 |
| commit | 68e7fe9655f94efc573f3aab7acf60d03c4162a0 (patch) | |
| tree | 48f35ea51823ac1cd0d74afc453628f5e128bf71 /src/routes/(app)/ark/+page.server.ts | |
| parent | 5f1c31b6618f0b895fb98c8f2a841989625eaf16 (diff) | |
| download | coinos-ui-68e7fe9655f94efc573f3aab7acf60d03c4162a0.tar.gz coinos-ui-68e7fe9655f94efc573f3aab7acf60d03c4162a0.zip | |
ark balance
Diffstat (limited to 'src/routes/(app)/ark/+page.server.ts')
| -rw-r--r-- | src/routes/(app)/ark/+page.server.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/routes/(app)/ark/+page.server.ts b/src/routes/(app)/ark/+page.server.ts new file mode 100644 index 00000000..bac0a02a --- /dev/null +++ b/src/routes/(app)/ark/+page.server.ts @@ -0,0 +1,11 @@ +import getRates from "$lib/rates"; + +export async function load({ depends, parent }) { + depends("app:payments"); + depends("app:items"); + + const { user } = await parent(); + + const rates = await getRates(); + return { rate: rates[user.currency] }; +} |
