Skip to content

Canonicalize High Efficiency mode naming#60

Open
nakazanie-ton wants to merge 1 commit into
evaafi:mainfrom
nakazanie-ton:feat-high-efficiency-mode-naming
Open

Canonicalize High Efficiency mode naming#60
nakazanie-ton wants to merge 1 commit into
evaafi:mainfrom
nakazanie-ton:feat-high-efficiency-mode-naming

Conversation

@nakazanie-ton
Copy link
Copy Markdown

@nakazanie-ton nakazanie-ton commented Apr 17, 2026

Summary

  • canonicalize the public High Efficiency naming around HeMode
  • remove legacy EMode export and UserData field names instead of keeping compatibility aliases
  • add focused docs and tests for the renamed API surface

Changes

  • rename public math exports to getAvailableToBorrowWithHeMode and calculateRepayToExitHeMode
  • rename UserData fields to availableToBorrowWithHeMode and borrowLimitsWithHeMode
  • update parser, tests, examples, changelog, and HE documentation to match the canonical naming

Validation

  • npm test -- math/heModeApi.test.ts --runInBand
  • npm run build
  • git diff --check

Notes

  • this PR intentionally removes the legacy EMode compatibility layer and is a breaking API change

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.

1 participant