Stop Promise.allSettled from being stomped
#5938
Open
+74
−1,119
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.
This function does not exist in the Hermes runtime, but our fuzzyTimeout is similar enough (and has the extra benefit of ignoring promises that take much too long).
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have:
Note
Medium Risk
Touches the Aave close-with-collateral path that builds ParaSwap routes/transactions, so any SDK behavioral differences could affect repay execution despite being a mostly mechanical dependency migration.
Overview
Updates the Aave borrow plugin to use
@paraswap/sdkinstead of the legacyparaswappackage, including adaptingParaSwapconstruction to the new options-object API.Also tightens TypeScript typing in
AaveBorrowEngineFactory(explicit return types,unknownincatch) and refreshes lint config to stop special-casing that file. Dependency lockfile changes reflect the ParaSwap SDK upgrade and removal of the old ParaSwap/Web3-related transitive packages.Written by Cursor Bugbot for commit fad2e19. This will update automatically on new commits. Configure here.