12 |
13 |
14 |
Yield Projections
15 |
16 |
17 | Projected{" "}
18 |
19 | {projectedApr.toFixed(1)}% APR
20 | {" "}
21 | • Monthly Compounding
22 |
23 |
24 | );
25 | }
26 |
--------------------------------------------------------------------------------
/atlas/migrations/prediction_swarm/atlas.sum:
--------------------------------------------------------------------------------
1 | h1:zgOElHPnrTchPb+gb2wPJygPOHJwa/MVSSghPyDnX7A=
2 | 20251118085426_baseline.sql h1:yYt/F7QkBCF92mhKeZN8/T6ljcYJN+1s3M/gBNv5MxI=
3 | 20251120161044_rename_goal.sql h1:V0EM07MmeCsc4naTIRBXiLxYtEbHQ0AQI4GzxmkUfxU=
4 | 20251120161127.sql h1:27i5PAjofmV/DRHMWKybpF5ncgpQTwdaMFUay959YSg=
5 | 20251120172816.sql h1:O5rv21mbvetJfMpENeWVceg0BF00aGHeRb4AleWLQVk=
6 | 20251120185109.sql h1:G1JpHMceT8r3z8g4YbJH8SosCoMnKk1nm9Xoi1/Lm48=
7 | 20251120235235.sql h1:HNLtuv1Ri/GPO6CJRSprPezpZlIHIzqM91Rzn3T3tiM=
8 | 20251121140154.sql h1:QNHAKCLBIvrLUrWPkMbh0yGfcJvpgLk4aEAvZhphgIc=
9 | 20251121194902.sql h1:fZNlh6kKJIX3pW+rNR8wqMAhsQnmG+HZI5izCCogl9I=
10 | 20251125194231.sql h1:P3kYnT+HsHyUPqH/GKR/QZqT1ZtZTuoTTf26HVanZbc=
11 | 20251126135959.sql h1:ouWxe6r2q3MV48Z18j7vX4m6hDypY8XOpv8V9/1HdpU=
12 | 20251128161908.sql h1:qcYrYrusemufBSPM9Mbj/On++3GrjxfItjfTwEOGOus=
13 | 20251130132124.sql h1:kkYoKrMn7ITv2IuWGxrLBaCkpPC6zqt4C+ZVYw1BlA0=
14 |
--------------------------------------------------------------------------------
/tooling/prettier/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@torus-ts/prettier-config",
3 | "version": "0.1.0",
4 | "private": true,
5 | "type": "module",
6 | "exports": {
7 | ".": "./index.js"
8 | },
9 | "scripts": {
10 | "clean": "git clean -xdf .cache .turbo node_modules",
11 | "format": "prettier --check . --ignore-path ../../.gitignore --cache --cache-location .cache/.prettiercache",
12 | "format-fix": "prettier --write . --ignore-path ../../.gitignore --cache --cache-location .cache/.prettiercache",
13 | "typecheck": "tsc --noEmit"
14 | },
15 | "prettier": "@torus-ts/prettier-config",
16 | "dependencies": {
17 | "prettier": "catalog:",
18 | "prettier-plugin-tailwindcss": "^0.6.6",
19 | "prettier-plugin-classnames": "^0.7.7",
20 | "@ianvs/prettier-plugin-sort-imports": "^4.6.2"
21 | },
22 | "devDependencies": {
23 | "@torus-ts/tsconfig": "workspace:*",
24 | "typescript": "catalog:"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/.changeset/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3 | "changelog": "@changesets/cli/changelog",
4 | "commit": false,
5 | "fixed": [["@torus-network/sdk", "@torus-network/torus-utils"]],
6 | "linked": [],
7 | "access": "restricted",
8 | "baseBranch": "dev",
9 | "updateInternalDependencies": "patch",
10 | "ignore": [
11 | "torus-cache",
12 | "torus-bridge",
13 | "torus-page",
14 | "torus-portal",
15 | "torus-worker",
16 | "torus-allocator",
17 | "torus-wallet",
18 | "torus-governance",
19 | "@torus-ts/ui",
20 | "@torus-ts/env-validation",
21 | "@torus-ts/query-provider",
22 | "@torus-ts/torus-provider",
23 | "@torus-ts/db",
24 | "@torus-ts/api",
25 | "@torus-ts/dsl",
26 | "@torus-ts/github"
27 | ],
28 | "_ignore": [
29 | "@torus-ts/eslint-config",
30 | "@torus-ts/tsconfig",
31 | "@torus-ts/prettier-config"
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/apps/torus-wallet/src/context/usd-price-provider.tsx:
--------------------------------------------------------------------------------
1 | "use client";
2 |
3 | import { useGetTorusPrice } from "@torus-ts/query-provider/hooks";
4 | import type { ReactNode } from "react";
5 | import { createContext, useContext } from "react";
6 |
7 | interface UsdPriceContextType {
8 | usdPrice: number;
9 | }
10 |
11 | const UsdPriceContext = createContext