Skip to content

v2.79.0

Choose a tag to compare

@superKalo superKalo released this 28 Oct 16:31
8394831

Changelog:

  • Added: calculateAmountWarnings function and tests for it #1863
  • Added: Projected rewards needed needed changes #1812
  • Added: Humanizer: add reveal letter for letter mascot campaign #1881
  • Added: Humanize SERVER_ERROR (users may think the server error is coming from Ambire's servers, while it's an ethers error code for RPC internal errors) #1893
  • Changed: Improve unsupported tokens UX #1875
    • Don't auto-select unsupported tokens
    • Disable the swap and bridge button of unsupported tokens even if the user has never opened swap and bridge
  • Changed: Configure Ambire Next injection (added different broadcast id for the Ambire Next version to the Session sendMessage) #1876
  • Changed: Address matching transfer calls #1870
  • Changed: Additional check is added to be sure that the user is under the minLevel #1884
  • Changed: Calculate projected rewards when newSelectedAccountPortfolio is fully loaded #1886
  • Changed: Selected account portfolio (The biggest change is that the selectedAccount portfolio no longer has a maxDataAgeMs mechanism and sets isAllReady to false only after a manual reload (as opposed to when the state is older than 5min). A new flag is added - isReloading - it's set to true if isAllReady=true and the state is older than 60min (example: switching to an account that was loaded 2 hours ago)) #1883
    • Recalculates the portfolio immediately after changing the selected account (instead of waiting for an update from defi/portfolio). This removes the need for unnecessary emitUpdates and makes the portfolio load immediately (without skeletons)
    • Fixes: the network state of defi positions wasn't set to loading while the cena/debank call is pending. (it was set after that, when we fetch custom positions)
    • Fixes: 2 calls in defiPositions didn't have a timeout mechanism, as well as the call to the additional-portfolio in the portfolio controller
    • Adds: 10 second timeout to all relayer calls
    • Refactors: Breaks down the selected account lib into functions, adds additional documentation and attempts to simplify the logic (tho it's very hard to do as the process is complex)
    • Adds more selectedAccount lib tests
    • Refactors the selectedAccount controller tests to make them independent (using prepareTest) and adds additional tests
  • Fixed: Projected rewards logic #1890
  • Fixed: Swap & Bridge - Retry mechanism #1872
    • Fix: We consider reusing the same quote a success (hence we return true). Otherwise, at the end of updateQuote, if we treat it as a falsy value, the quote will be reset and the signAccountOp will be destroyed, which is incorrect behavior, given that we already have a valid quote.
    • Fix: When destroying the signAccountOp, we must also reset the quote and its status; otherwise, the toToken state remains stuck in a loading state. This ensures the user can retry fetching the quote.
    • Fix: Ensure from and to null token addresses are converted to the zero address, since Socket returns native tokens as null in quotes. This logic was already handled in initForm, but was missing in updateForm.
    • Fix: Normalize incoming Socket token (toAsset) in routes.steps.
    • Add: Temporary helper to monitor if NULL token addresses are still passed to initForm or updateForm in the Swap & Bridge controller.
  • Fixed: Swap & Bridge "Insufficient amount" validation #1889
    • Fix "Insufficient amount" validation in Swap & Bridge. It was not working properly for tokens with zero balance, causing the check to be bypassed.

Full Changelog: v2.78.2...v2.79.0