Skip to content

feat: add swap checks tooling and vault enhancements#24

Merged
jpthor merged 3 commits intomainfrom
jp/swap-checks
Jan 25, 2026
Merged

feat: add swap checks tooling and vault enhancements#24
jpthor merged 3 commits intomainfrom
jp/swap-checks

Conversation

@jpthor
Copy link
Contributor

@jpthor jpthor commented Jan 25, 2026

Summary

Adds swap checking tooling and multi-chain vault support to vcli for end-to-end swap testing.

Changes

  • Vault details: Add support for XRP, DASH, ZEC, TRON chains to display balances and addresses
  • Amount conversion: Use big.Int arithmetic instead of floating point to prevent precision errors
  • Swap testing: Add documentation and scripts for swap checks across chains
  • Service startup: Fix race condition in service startup order

Files

  • vault.go - Extended vault details for additional chains
  • config.go - Improved amount conversion with big.Int
  • swap-checks-*.md - Testing documentation and results

Test Plan

  • Verify vault details shows correct addresses for new chains
  • Test amount conversions don't lose precision

- Add token support and fix service startup race condition
- Add XRP, DASH, ZEC, TRON support to vault details
- Update gitignore to exclude binary files
- Add swap checks documentation and scripts
Replace floating point arithmetic with big.Int to prevent
precision loss when converting cryptocurrency amounts.
@jpthor jpthor merged commit 8578d37 into main Jan 25, 2026
1 check passed
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