This release was merged in PR #4355
@chainlink/mobula-state-adapter@2.0.1
Patch Changes
-
#4345
7bbaacfThanks @FionnL! - Fix: Gracefully handle unresolvable symbols and add case-insensitive request handling.-
Graceful Error Handling: The adapter now returns
undefinedinstead of throwing errors when symbols cannot be resolved to asset IDs ingetAssetId()andgetQuoteId(). The subscription message builder skips subscriptions for unresolvable symbols with a warning, preventing the EA from failing to establish WebSocket connections due to background processing errors. -
Case-Insensitive Requests: Added
requestTransformsto uppercasebaseandquoteparameters and resolve them viaincludes.jsonbefore processing. This allows lowercase requests (e.g.,btc/usd) to work seamlessly.
-