Feature/stellar horizon path payment claim#190
Merged
JerryIdoko merged 2 commits intoVesting-Vault:mainfrom Mar 28, 2026
Merged
Feature/stellar horizon path payment claim#190JerryIdoko merged 2 commits intoVesting-Vault:mainfrom
JerryIdoko merged 2 commits intoVesting-Vault:mainfrom
Conversation
- Add PathPaymentConfig, PathPaymentClaimEvent, and PathPaymentSimulation types - Implement configure_path_payment() for admin setup of auto-exit feature - Add claim_with_path_payment() for instant token-to-USDC swaps in one transaction - Include simulate_path_payment_claim() for gas-free dry-run simulation - Add comprehensive test suite covering all path payment scenarios - Integrate with existing vesting vault infrastructure - Support custom swap paths and minimum destination amounts - Include proper error handling and event emission Resolves Vesting-Vault#146 and Vesting-Vault#93
|
@Great-2025 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
mplements the Stellar Horizon Path Payment Claim feature that allows users to claim their vesting tokens and instantly swap them for USDC in a single transaction. This "Auto-Exit" feature provides a massive UX improvement for team members who need immediate access to liquid funds for real-world expenses.
Issues Addressed
#146: Implement Stellar_Horizon_Path_Payment_Claim
#93: Auto-Exit feature for instant token-to-USDC conversion
Features Implemented
Core Functionality
configure_path_payment(): Admin function to set up destination asset (USDC), minimum amounts, and swap paths
claim_with_path_payment(): Main user function that claims tokens and executes path payment in one atomic transaction
simulate_path_payment_claim(): Gas-free simulation to preview expected amounts and execution feasibility
disable_path_payment(): Admin function to disable the feature when needed
Smart Contract Integration
Seamless integration with existing vesting vault infrastructure
Maintains compatibility with regular claim functionality
Respects emergency pause and other security measures
Proper event emission for indexing and frontend integration
Advanced Features
Custom Swap Paths: Support for multi-hop token swaps (Token → Asset1 → Asset2 → USDC)
Minimum Amount Protection: Users can set minimum destination amounts to prevent slippage
Fallback to Config: If no custom minimum provided, uses admin-configured default
Comprehensive Error Handling: Clear error messages for all failure scenarios
closes #146