Skip to content

fix: validate positive amounts in agent tools#56

Open
RAHULRaa123 wants to merge 2 commits into
orbitkit-fun:mainfrom
RAHULRaa123:main
Open

fix: validate positive amounts in agent tools#56
RAHULRaa123 wants to merge 2 commits into
orbitkit-fun:mainfrom
RAHULRaa123:main

Conversation

@RAHULRaa123

Copy link
Copy Markdown

Added positive amount validation for OrbitKit agent tools.

Changes:

  • Added a shared validatePositiveAmount helper
  • Validates swap amount before requesting quotes or executing swaps
  • Validates payment amount before sending transactions
  • Rejects empty, invalid, zero, and negative amount values early

Impact:
Prevents invalid transaction amounts from reaching Stellar/SoroSwap clients and gives developers clearer error messages before execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant