Connect smart contract#32
Open
pravigya wants to merge 21 commits intofeat/connect-smart-contractsfrom
Open
Conversation
❌ Deploy Preview for koryintia failed.
|
…y the new version of nextjs
- Improved loan ID handling to ensure correct type conversion - Refactored collateral selection to improve maintainability - Updated UI logic for better consistency
- Enhanced loan action logic with better state handling for 'Withdraw', 'Repay', 'Supply', and 'Liquidate' - Improved health factor display logic - Cleaned up UI components and added action-specific buttons for different loan statuses - Refactored action types and modal interactions for better clarity and maintainability
- Replaced 'borrowedStatus' with 'loanStatus' in UpdateLoanDto and updated to use STATUS enum. - Refactored ILoanRequest to use the STATUS enum for loanStatus instead of a string.
- Updated Home component to toggle & highlight the create loan panel based on screen size. - Removed unused account & redux logic. - Passed onToggleCreateLoan callback to Dashboard and Banner. - Improved responsive behavior: mobile panel toggle and desktop highlight effect.
…e market loans filtering
- Updated ActivePositionsTable to filter the incoming data so that only positions belonging to the current user (userAddress) are displayed.
- Added the optional 'isMarket' prop in positions-cards to allow switching between market positions and user positions.
- Updated getMarketLoans API call in positions-cards to filter only loans with statuses: requested, funded, and unhealthy.
…itions in the main page
…entifier handling - Updated update-loan API route to validate and convert loanId from params using parseInt - Changed MarketModal to call updateLoan with String(loanData.loanId) instead of loanData._id - Refactored getLoanNFTDetails to accept loanId as string and fundLoan to calculate required allowance - Ensured consistent use of loanId for contract interactions and API calls
…patibility - Added @netlify/next adapter and configured netlify.toml for proper Next.js SSR support - Fixed 'verifyMessage' import from ethers to avoid build-time type errors - Ensured numeric types are casted with Number(...) for ethers.js compatibility - Updated undefined/null-safe calls and added fallback values for better type handling - Cleaned up deprecated or incorrect usages in UI components (e.g. missing keys, image props) - Unified loanStatus enums using STATUS constant across model and API - Ensured that route.ts APIs handle missing query parameters safely - Applied minor refactors to improve maintainability and avoid runtime edge cases
- Replaced raw ABI import in Oracle instantiation with correct .abi field usage - Updated src/abis/*.json files with latest build artifacts (Oracle, Treasury) - Fixed ethers.Contract instantiation to avoid InterfaceAbi type errors - Ensured ABI consistency across LoanPositionManager, Oracle, NFT, and Treasury
✅ Deploy Preview for koryintia ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
f545383 to
1a5428d
Compare
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.
No description provided.