feat: Implement Stellar Yield Enhancements (Issues #35 #36 #40 #41)#130
Merged
edehvictor merged 2 commits intoedehvictor:mainfrom Mar 30, 2026
Merged
Conversation
…dehvictor#36 edehvictor#40 edehvictor#41 - Build StellarYield SDK package with TypeScript - VaultClient for contract interactions - ApiClient for backend data fetching - Full TSDoc documentation - Implement EIP-4626 style vault standard trait - Expanded VaultStandard trait with rounding rules - Added preview_withdraw, preview_redeem, share_price methods - Proper rounding for deposits (up) and withdrawals (down) - Add slippage protection for Zap routing - min_shares_out parameter on deposit functions - Slippage tolerance UI slider (0.1% to 5%) - On-chain slippage checks that revert if exceeded - Set up GraphQL API layer - Schema definitions for Vault, User, Transaction, YieldSnapshot - Resolvers with N+1 query prevention - graphql-yoga integration Closes edehvictor#35 Closes edehvictor#36 Closes edehvictor#40 Closes edehvictor#41
|
@ChaoLing140 is attempting to deploy a commit to the Edeh Victor's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@ChaoLing140 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! 🚀 |
Owner
|
@ChaoLing140 resolve conflict |
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.
Summary
This PR implements multiple enhancements to StellarYield as outlined in issues #35, #36, #40, and #41:
Issue #35: StellarYield Developer SDK (TypeScript)
/packages/sdkwith TypeScript package structureVaultClientfor vault contract interactions (deposit, withdraw, getShares, etc.)ApiClientfor backend API calls (APY, TVL, historical data)tsupfor ESM and CommonJS bundling/packages/sdk/src/examples/basic.tsIssue #36: Advanced Slippage & MEV Protection
min_shares_outparameter to vault deposit functionsIssue #40: GraphQL API Layer
graphql-yogaat/server/src/graphql/Vault,User,Transaction, andYieldSnapshotIssue #41: EIP-4626 Style Vault Standard
VaultStandardtrait in/contracts/interfaces/vault_standard.rspreview_withdraw,preview_redeem, andshare_pricemethodsTest Plan
Closes #35
Closes #36
Closes #40
Closes #41