-
Notifications
You must be signed in to change notification settings - Fork 0
SOV-5269: repay loans #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOV-5269: repay loans #21
Conversation
✅ Deploy Preview for sovryn-layer ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements loan repayment functionality for the money market feature, including E-Mode (efficiency mode) support and various UI/UX improvements for managing lending positions.
Key changes:
- Added comprehensive loan repayment functionality with support for both wallet balance and collateral-based repayments
- Implemented E-Mode category system for improved capital efficiency in lending pools
- Enhanced borrow rate mode switching between stable and variable rates
Reviewed changes
Copilot reviewed 35 out of 37 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/sdk/src/managers/money-market/money-market.manager.ts | Core repayment logic, E-Mode support, collateral mode toggling, and borrow rate swapping |
| packages/sdk/src/types.ts | Extended type definitions for E-Mode categories and position borrow details |
| apps/web-app/src/components/MoneyMarket/components/Dialogs/RepayDialog/RepayDialog.tsx | New dialog component for loan repayment interface |
| apps/web-app/src/components/MoneyMarket/components/Dialogs/EfficiencyModeDialog/EfficiencyModeDialog.tsx | New dialog for E-Mode category selection |
| apps/web-app/src/routes/money-market.tsx | Updated to integrate repayment and E-Mode dialogs |
| apps/indexer/src/libs/loaders/money-market.ts | Backend support for fetching E-Mode category data |
| apps/web-app/src/components/FormComponents.tsx | Input handling improvements and disabled state for submit button |
| apps/web-app/public/locales/en/common.json | Consolidated transaction-related translations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
apps/web-app/src/components/MoneyMarket/components/Dialogs/RepayDialog/RepayDialog.tsx
Outdated
Show resolved
Hide resolved
.../src/components/MoneyMarket/components/Dialogs/EfficiencyModeDialog/EfficiencyModeDialog.tsx
Outdated
Show resolved
Hide resolved
.../src/components/MoneyMarket/components/Dialogs/EfficiencyModeDialog/EfficiencyModeDialog.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 36 out of 38 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
https://sovryn.atlassian.net/browse/SOV-5269