Skip to content

Fix/issues 795 628 619 622 - #952

Merged
ogazboiz merged 6 commits into
LabsCrypt:mainfrom
OsagieCynthia:fix/issues-795-628-619-622
Jun 30, 2026
Merged

Fix/issues 795 628 619 622#952
ogazboiz merged 6 commits into
LabsCrypt:mainfrom
OsagieCynthia:fix/issues-795-628-619-622

Conversation

@OsagieCynthia

Copy link
Copy Markdown
Contributor

Summary

Closes #795
Closes #628
Closes #619
Closes #622

OsagieCynthia and others added 6 commits June 30, 2026 04:01
…thdrawn > deposited -> 0)

Fix the guard itself: checked_sub().unwrap_or_default() only catches i128
boundary overflow, not an ordinary negative result. Replace with
saturating_sub().max(0) so any withdrawn_amount > deposited_amount
correctly yields 0 without panicking.

Add test_calculate_claimable_underflow_returns_zero that forces the
condition via env.as_contract storage manipulation and asserts 0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…their sunset date

The 2024-12-31 sunset date is 18 months in the past. Remove both
unversioned route handlers from app.ts (clients hitting them will now
get a 404 rather than a 410 with a stale date). Update
DEPRECATION_POLICY.md to record the routes as removed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Gates debug/info/warn on NODE_ENV !== 'production'; always surfaces
error. Provides a single import point so all call-sites can be replaced
consistently.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… call-sites

Replaces 14 raw console.error/warn/info calls across 9 files with the
new logger helper so debug output is suppressed in production builds.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…e.* in frontend

Applies to src/**/*.{ts,tsx}, excluding src/lib/logger.ts so the logger
module itself can still reference console internally.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ApiBaseUrl()

Remove five independent process.env.NEXT_PUBLIC_API_URL definitions
(some with /v1 suffix, some without) and replace each with
getApiBaseUrl() from lib/api/_shared.ts. URL paths that previously
depended on a /v1 suffix in the variable now concatenate /v1 explicitly,
so behaviour is identical regardless of whether the env var includes the
suffix.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ogazboiz
ogazboiz merged commit ed02dc6 into LabsCrypt:main Jun 30, 2026
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment