Repository navigation
Fix: 4 issues (#1526, #1527, #1528, #1529) - #1652
Merged
Mystery-CLI merged 1 commit intoOct 18, 2026
Merged
Conversation
Co-authored-by: Simple Agent <agent@simple.dev>
|
@topsonDev 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.
Closes #1526
Closes #1527
Closes #1528
Closes #1529
Issues
#1526 backend/src/routes/admin.js: Top-level export ADMIN_STATS_TTL_SECONDS placed inside route handler
#1527 backend/src/routes/auth.js: Dangling object closing fragment causes SyntaxError
#1528 backend/src/services/multiSig.js: Duplicate function signature for buildMultiSigTransaction
#1529 backend/src/services/pool.js: Unbalanced parenthesis and undefined networkPassphrase in pool deposit
Summary
All four fixes are syntax-level. In admin.js, the misplaced export also truncated the first
/statshandler; remove that incomplete handler and keep the complete cached/statsroute. In pool.js,getNetworkPassphraseis already imported from../config/stellar.js, so no new import is needed — just call it. After edits, runnode --checkon each file and smoke-test route mounting/service import.Changes
export const ADMIN_STATS_TTL_SECONDS = 30;(currently nested inside the first/statsroute handler body) to module top level, placing it near the other module-level constants (e.g. afterMAKER_CHECKER_ACTIONSor beforeSTATS_CACHE_KEY). Also remove the orphaned firstrouter.get('/stats', ...)handler that was left truncated by the misplaced export, keeping only the complete/statsroute that usescacheMiddleware(ADMIN_STATS_TTL_SECONDS, ...). Verify withnode --check backend/src/routes/admin.jsand by mounting the admin router in Express. (backend/src/routes/admin.js)sessionId: session.id,\n });around lines 339-340 that sits outside any function or object literal. Confirm the surrounding route handler (likely a session-creation handler) is structurally complete and properly closed, then runnode --check backend/src/routes/auth.jsand smoke-test/api/v1/auth/*endpoints. (backend/src/routes/auth.js)buildMultiSigTransactionfunction header (the second declaration around line 366) so only a single valid function declaration remains. Ensure the function body is intact and not duplicated, then verify withnode --check backend/src/services/multiSig.jsand by importing the service module. (backend/src/services/multiSig.js)executeDeposit, fix the malformedchangeTrustoperation block: balance the parentheses soStellarSdk.Operation.changeTrust({ asset: new StellarSdk.LiquidityPoolAsset(poolId), ... })is closed correctly, and replace the undefinednetworkPassphrasereference in theTransactionBuilderoptions withgetNetworkPassphrase()(already imported from../config/stellar.js). Remove the redundant secondliquidityPoolDepositoperation (the one with placeholderminPrice: '0.1'/maxPrice: '10') so the deposit is only added once using the computedminPrice/maxPrice. Verify withnode --check backend/src/services/pool.jsand confirm a deposit transaction builds valid Stellar operations. (backend/src/services/pool.js)