Merged
Conversation
- Add DefindexSDK client and API routes - Add UserContext for wallet management - Add useDefindexSDK hook with createVault and createVaultAutoInvest - Remove deprecated stellar-react integration files - Update MainProvider to use new SDK
- Add StrategyAllocationSliders for percentage-based distribution - Implement auto-invest flow when deposit has strategy allocation - Add enhanced toast with copy address and external link - Replace upgradable button with checkbox
- Add Portal and MenuPositioner for proper menu rendering - Fix menu positioning to dropdown below trigger
- Update AddressToClipboard component - Update ConnectWallet for new wallet kit - Update networkName helper - Update usePublicAddresses and useStrategy hooks - Update StrategiesProvider
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- VaultConfigSection: Wrapper component - SelectAssets: Asset selection - SelectStrategies: Strategy selection - StrategyAllocationSliders: Percentage distribution sliders - AddStrategies: Strategies section - ManagerConfig: Manager addresses config - FeeConfig: Fee configuration - CreateVaultButton: Submit button with vault creation logic - Add index.ts for exports
- Add border-radius 25% to checkbox - Semi-transparent background - Light green (#D3FFB4) stroke and text when checked - Fixed width container to prevent layout shift
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.
This pull request introduces major enhancements to the vault creation flow in the dApp, with a focus on integrating the
@defindex/sdkfor backend operations and providing a more flexible and user-friendly UI for strategy allocation.Backend Integration and API Additions:
Added new API routes for vault creation, sending transactions, fetching vault info, and retrieving vault balances, all powered by the
@defindex/sdkand a shareddefindexClientinstance. These endpoints validate input, handle errors, and support both mainnet and testnet.Vault Creation UI/UX Improvements:
Overhauled the strategy allocation UI in
CreateVault.tsx:Replaced the upgradable/non-upgradable toggle button with a more intuitive checkbox control, improving clarity and accessibility.
Dependency and SDK Updates:
@defindex/sdkand@creit.tech/stellar-wallets-kitas dependencies, and removed the deprecatedstellar-reactpackage, reflecting the migration to the new SDK and wallet integration.These changes collectively enable more robust backend support for vault operations and a significantly improved user experience for vault configuration and strategy management.