Skip to content

v2.41.0

Compare
Choose a tag to compare
@superKalo superKalo released this 04 Feb 10:09
· 144 commits to v2 since this release
784c425

Changelog:

  • Added: Pending balance delta threshold #1100
  • Added: Мethod for deleting individual calls in the Main controller #1258
  • Added: Listener to track the focused state of the action window #1260
  • Added: Humanizer: Aave withdraw(bytes32) case #1271
  • Added: Humanizer: Handle one more Socket case and fix old bridge/swap humanization (before our fee) #1272
  • Changed: Update balance errors UX #1242
    • Add a proper loading state to account state fetching. The previous implementation was way too limiting. I will compare it with an example- if we call updateAccountStates with 1 network, which takes 8 seconds to complete and at the 4th second we make another call with 8 networks this time. The second call will be discarded, instead of only discarding the call to the network that is currently loading.
    • Update: Make reloadSelectedAccount more robust- it now accepts forceUpdate and networkId as params
    • Update: Improve #updateIsOffline- don't look at selectedAccount portfolio state as it is behind the portfolio state which makes banners inaccurate sometimes. Also, don't call reloadSelectedAccount. This logic is instead moved to the background process.
    • Update: replace selectedAccount banners with errors
    • Fix: Infinite portfolio reloading if the user goes offline -> online or there is a bad RPC
  • Changed: Relayer down message #1251
  • Changed: Delete individual call refactoring #1261
  • Changed: Humanizer: Socket executeController wrapper handling (since we introduced fees, the socket API now wraps all calls in executeController which is responsible for handling fees to us) #1264
  • Changed: Refactor token preferences #1257
    • Refactor token preferences so custom tokens and tokens with preferences can be differentiated
    • Optimize custom tokens
    • Move isHidden to flags
  • Changed: Humanizer: Rename "open chest" to "unlock chest" #1268
  • Changed: Relayer error handler swallows error reasons #1276
  • Changed: Swap & Bridge API error handling and messaging #1157
    • Changed: A common handler for all Socket API responses (wired up to all API calls now), that processes Socket API responses and throws custom errors for various failures, including handling the API's unique response structure.
    • Changed: Do not swallow the upstream errors coming from our Swap & Bridge service provider (would greatly help us debug if the glitch is coming on our end or not when someone reports a bug):
    • Changed: Do not swallow the errors in case something in our logic breaks, display it with sensible (fallback) messages.
  • Changed: Preserve the state of Swap & Bridge form fromSelectedToken, fromChainId, and toChainId after form submission to enhance the UX and avoid confusion #1274
  • Fixed: Action windows race condition (that opens 2 action windows at the same time) #1256
  • Fixed: Unit tests #1253
  • Fixed: Extension crashing upon network removal #1266
    • Fixed: Service worker crashes upon network removal due to missing error handling in the selectedAccountCtrl
    • Fixed: Resolved FE crashes and display of unknown or undefined texts on the Dashboard by resetting the state of dashboardNetworkFilter after the filtered network is removed
  • Fixed: Deployless - out of gas (we reduced the token limits for Deployless->StateOverride mode only, as the limit for Proxy mode has already been reduced to the minimum due to the 24KB of calldata) #1267
  • Fixed: isOffline is set to true incorrectly (could be true even if only one network fails) #1263
  • Fixed: Refine the logic for skipping Swap & Bridge controller emits when there is no active session (addressing the troubles when there is no active session if one makes a bridge and closes the Swap & Bridge screen - banners on the Dashboard didn't update accordingly, the success bridge "cancel" button didn't dismiss the banner and other troubles) #1277
  • Fixed: Swap splits: set the correct address for Ethereum #1278
  • Added: EIP_1271_NOT_SUPPORTED_BY naughty list for signMessage #1279

Full Changelog: v2.40.2...v2.41.0