feat: add multi-provider FX infrastructure and contract stability improvements#859
Merged
Wilfred007 merged 4 commits intoJun 24, 2026
Conversation
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 strengthens PayD's financial infrastructure by improving exchange-rate reliability in the backend and enhancing long-term maintainability of the Soroban contract layer.
The work combines:
Closes #695
Closes #773
Issue #695 — Real-Time FX Rate APIs (Multiple Providers)
Background
PayD relies on exchange rates for payroll calculations, cross-border settlements, and conversion estimates.
Previously, FX rate retrieval depended on a limited provider strategy, increasing the risk of:
Solution
Implemented a modular multi-provider FX infrastructure.
Features
Backend Improvements
Added:
Error Handling
Implemented:
Testing
Added integration tests covering:
Result
The FX subsystem is now significantly more resilient and production-ready.
Issue #773 — Contract Legacy Maintenance & Stability
Background
The Soroban contract layer required maintenance-focused improvements to ensure long-term reliability and consistency with the current architecture.
Solution
Applied stability and maintainability updates to the legacy contract implementation.
Improvements
Security Considerations
Testing
Added and updated unit tests covering:
Validation
Executed:
cargo test cargo clippy --all-targets --all-features cargo fmt --checkAll checks pass successfully.
Files Updated
Backend
Contracts
Testing Performed
Backend
npm run test npm run lint npm run buildContract
cargo fmt --check cargo clippy --all-targets --all-features cargo testImpact
This PR improves:
No breaking API changes were introduced.