Feat/realtime sponsor dashboard#40
Merged
EmeditWeb merged 9 commits intoJun 27, 2026
Merged
Conversation
…tline integration tests - Make MockReputation stateful with storage-backed score tracking - Make MockLiquidityPool stateful with call-tracking and query functions - Add MockLiquidityPoolEmpty for insufficient-liquidity test scenario - Add helper methods to TestCtx for querying mock state - Un-ignore and implement assertions for 5 previously TODO-stubbed tests: test_loan_funding_debits_liquidity_pool test_repayment_credited_to_liquidity_pool test_guarantee_transferred_to_pool_on_default test_insufficient_liquidity_rejects_loan_creation test_multi_contract_integration_full_flow
…y vouching - Fix calculate_withdrawal returning non-zero when total_shares == 0 - Add get_loan_counter public method to creditline contract - Add vouching-contract to deploy-testnet.sh (build, deploy, init, env) - Zero compiler warnings across all contracts - 296 tests passing, 0 failing Closes StepFi-app#21
- useRealtimePool hook with configurable polling via RealtimeChannel - useRealtimeLoan hook fetching loans via get_loan_counter + get_loan - ConnectionIndicator in Navbar showing Stellar network status - Sponsor Dashboard with live-updating stat cards, visual change indicators - Offline banner handling for Stellar RPC disconnection - Rewrote soroban.ts for @stellar/stellar-sdk v12 API (simulateTransaction) - .gitignore updated for Node.js artifacts Closes StepFi-app#21
Member
|
LGTM 🚀 |
7 tasks
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.
Description
Completes the remaining implementation gaps across the StepFi contracts codebase — fixing a critical bug in the Liquidity Pool, exposing the loan counter for frontend enumeration, adding the vouching contract to deployment, and eliminating all compiler warnings.
Changes
Bug fix —
calculate_withdrawalempty pool (contracts/liquidity-pool-contract/src/lib.rs)0whentotal_shares == 0instead of computing a phantom value from the default share price. Two tests were silently failing.Feature —
get_loan_counterpublic method (contracts/creditline-contract/src/lib.rs)Deployment — vouching contract (
scripts/deploy-testnet.sh)vouching-contractto build, optimize, deploy, initialize (admin, reputation_contract, vouch_boost=5), and write to.env.contracts/deployed-testnet.json.Cleanup — zero compiler warnings
#[allow(dead_code)]on intentionally unused safe_math helpers across all contracts.Testing
All 296 tests pass across all 6 contracts — 0 failures, 0 warnings.
Build is clean:
cargo buildproduces zero warnings.Closes #21