Skip to content

Add projectRates snapshot tests#127

Open
Sikkra wants to merge 1 commit into
Dgetsylver:mainfrom
Sikkra:bounty-75-projectrates-snapshots
Open

Add projectRates snapshot tests#127
Sikkra wants to merge 1 commit into
Dgetsylver:mainfrom
Sikkra:bounty-75-projectrates-snapshots

Conversation

@Sikkra
Copy link
Copy Markdown

@Sikkra Sikkra commented May 19, 2026

Resolves #75.

Summary:

  • Added a Vitest snapshot suite for projectRates with 12 deterministic cases.
  • Covered both sides of the 50% target-utilization kink and the 95% steep-slope kink.
  • Added test:project-rates and one-line test:project-rates:update scripts.
  • Fixed existing frontend type-check blockers so the snapshot branch passes tsc: .ts source imports, wallet auth modal params, and demo ReserveStats mocks.

Verification:

  • npm run test:project-rates
  • npx tsc --noEmit
  • npm run build
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

F8: Snapshot tests for projectRates

1 participant