Repository navigation
Conversation
…CK#902 WHEELBACK#899 — Settlement fee calculation overflow for large amounts - contracts/settlement/src/lib.rs: replaced bare += with checked_add for total_weight (initialize) and approval_weight (approve_settlement) to return InvalidWeightSum instead of silently wrapping on u64 overflow. - COMEBACKHERE-contracts/contracts/treasury/src/lib.rs: same checked_add guards applied to initialize and approve_settlement for consistency across both contract trees. WHEELBACK#900 — Contract event indexer skips events at a ledger boundary - comebackhere-backend/src/indexer.ts: pollOnce previously set both startLedger and cursor to undefined on a fresh start (cursor === '0'), which left the RPC with no starting point and caused the first ledger's events to be skipped. Fixed by passing startLedger: 1 for the initial poll and switching to cursor-based pagination only once a real paging token has been persisted. WHEELBACK#901 — Compliance lookup failure treated as an approval - comebackhere-frontend/src/utils/compliance.ts: getAddressStatus now wraps both the network call and simulation check in explicit try/catch blocks and re-throws with unambiguous error messages that make it clear the status is unknown. Added checkAddressAllowed(), a fail-closed wrapper that returns { status: 'Blocked' } on any error so a network hiccup can never silently grant access. WHEELBACK#902 — Settlement webhook uses outdated invoice status - comebackhere-backend/src/services/treasury-indexer.ts: the settlement_executed webhook previously fired with only the raw on-chain event data before the DB write had been committed. Fixed by reading the updated settlement record from MongoDB (via findOne) immediately after processSettlementExecuted() and including the authoritative status, merchant_address, amount, and token fields in the webhook payload. chore: update .gitignore - Added test snapshot patterns (*.snap.bak, allure-results/allure-report/, jest-html-reporters-attach/), additional lock-file variants, OS metadata (ehthumbs.db, Desktop.ini, $RECYCLE.BIN/), temp/scratch files (*.tmp, *.temp, *.bak, *.orig, *.rej), debug artifacts (*.cpuprofile, *.heapprofile, *.heapsnapshot), and Soroban local-dev artifacts (.soroban/, **/identity/, wasm-pack.log).
|
@cephas360 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! 🚀 |
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.
#899 — Settlement fee calculation overflow for large amounts
#900 — Contract event indexer skips events at a ledger boundary
#901 — Compliance lookup failure treated as an approval
#902 — Settlement webhook uses outdated invoice status
chore: update .gitignore
Pull Request
Summary
Checklist
abis/andCOMEBACKHERE-contracts/)Notes
make check-abi-snapshots.closes SAMPLE 053: Settlement fee calculation overflows for a large amount #899
closes SAMPLE 054: Contract event indexer skips events at a ledger boundary #900
closes SAMPLE 055: Compliance lookup failure is treated as an approval #901
closes SAMPLE 056: Settlement webhook uses an outdated invoice status #902