Merged
Conversation
✅ Deploy Preview for sovryn-layer ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
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
Contributor
There was a problem hiding this comment.
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.
.../src/components/MoneyMarket/components/Dialogs/EfficiencyModeDialog/EfficiencyModeDialog.tsx
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://sovryn.atlassian.net/browse/SOV-5269