Merged
Conversation
|
@sudo-robi 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! 🚀 |
…and LP share tracking Changed things
- Replace env.register_contract() with env.register() (SDK deprecation) - Fix dev_dependencies → dev-dependencies in Cargo.toml - Add test_initialize_gold_trustline - Add test_deposit_and_withdraw - Add test_lp_shares_accumulate_across_deposits - Add test_zero_lp_percentage_no_shares - Add test_50_50_split_precision_odd_amount - Add test_multiple_users_isolated_lp_shares - Add test_allocation_exceeds_100_percent (should_panic) - Extract shared setup_env() test helper All 8 tests pass with zero warnings.
…ns in contracts/src/lib.rs errors fixed
Contributor
Author
|
@soomtochukwu all done |
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.
closes #3
Description:
Implements a parser tool for the agent to convert conversational intent into a strict JSON payload for use by the frontend and smart contracts.
Features:
Converts input into a JSON object with the schema: monthlyContributionAmount, blendAllocationX, soroswapAllocationX, goldAllocationX.
Ensures allocation percentages always sum to exactly 100.
Provides fallbacks for malformed or missing input.
Includes unit tests for schema validation and normalization.
Acceptance Criteria:
Agent outputs valid JSON matching the schema.
Allocations always sum to 100.
Unit tests verify schema and fallback behavior.