You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
@metamask/bridge-controller 34.0.0
Added
BREAKING Add a required gasIncluded quote request parameter to indicate whether the bridge-api should return gasless swap quotes. The clients need to pass in a Boolean value indicating whether the user is opted in to STX and if their current network has STX support (#6030)
Add gasIncluded to QuoteResponse, which indicates whether the quote includes tx fees (gas-less) (#6030)
Add feeData.txFees to QuoteResponse, which contains data about tx fees taken from either the source or destination asset (#6030)
Add includedTxFees to QuoteMetadata, which clients can display as the included tx fee when displaying a gasless quote (#6039)
Calculate and return value of includedTxFees (#6039)
Changed
Consolidate validator and type definitions for QuoteResponse, BridgeAsset and PlatformConfigSchema so new response fields only need to be defined once (#6030)
When gas is included and is taken from the destination token amount, ignore network fees in adjustedReturn calculation (#6039)
Fixed
Calculate EVM token exchange rates accurately in selectExchangeRateByChainIdAndAddress when the marketData conversion rate is in the native currency (#6030)
Convert trade.value to decimal when calculating relayer fee (#6039)
Revert QuoteResponse ChainId schema to expect a number instead of a string (#6045)
@metamask/bridge-status-controller 33.0.0
Changed
Consolidate validator and type definitions for StatusResponse so new response fields only need to be defined once (#6030)
Removed
Clean up unused exports that duplicate @metamask/bridge-controller's (#6030)
Asset
SrcChainStatus
DestChainStatus
RefuelData
FeeType
ActionTypes
Fixed
Set event property gas_included to quote's gasIncluded value (#6030)
Set StatusResponse ChainId schema to expect a number instead of a string (#6045)