v5.5.1 Release Candidate (#2598)

* v5.5.1 Release Candidate
changes:
- Enable Trezor for iOS
- Add Swaps.xyz DEX

* update versions [skip ci]
This commit is contained in:
Omar Hatem
2025-10-21 01:32:45 +02:00
committed by GitHub
parent ee0996f535
commit b46aea00b3
10 changed files with 34 additions and 41 deletions
@@ -16,13 +16,13 @@ class ExchangeProviderDescription extends EnumerableItem<int> with Serializable<
ExchangeProviderDescription(title: 'MorphToken', raw: 2, image: 'assets/images/morph.png');
static const sideShift =
ExchangeProviderDescription(title: 'SideShift', raw: 3, image: 'assets/images/sideshift.png');
static const simpleSwap =
static const simpleSwap =
ExchangeProviderDescription(title: 'SimpleSwap', raw: 4, image: 'assets/images/simpleSwap.png');
static const trocador =
ExchangeProviderDescription(title: 'Trocador', raw: 5, image: 'assets/images/trocador.png');
static const exolix =
ExchangeProviderDescription(title: 'Exolix', raw: 6, image: 'assets/images/exolix.png');
static const all =
static const all =
ExchangeProviderDescription(title: 'All trades', raw: 7, image: '');
static const thorChain =
ExchangeProviderDescription(title: 'ThorChain', raw: 8, image: 'assets/images/thorchain.png');
@@ -35,10 +35,10 @@ class ExchangeProviderDescription extends EnumerableItem<int> with Serializable<
static const chainflip =
ExchangeProviderDescription(title: 'Chainflip', raw: 12, image: 'assets/images/chainflip.png');
static const xoSwap =
ExchangeProviderDescription(title: 'XOSwap', raw: 13, image: 'assets/images/xoswap.svg');
ExchangeProviderDescription(title: 'XOSwap', raw: 13, image: 'assets/images/xoswap.svg');
static const swapsXyz =
ExchangeProviderDescription(title: 'Swaps.XYZ', raw: 14, image: 'assets/images/swaps_xyz.svg');
ExchangeProviderDescription(title: 'Swaps.XYZ', raw: 14, image: 'assets/images/swaps_xyz.svg');
static ExchangeProviderDescription deserialize({required int raw}) {
switch (raw) {
case 0:
@@ -282,7 +282,7 @@ class SwapsXyzExchangeProvider extends ExchangeProvider {
'srcToken': srcToken,
'dstChainId': '${dstChain.chainId}',
'dstToken': dstToken,
'slippage': '100',
'slippage': '300',
'swapDirection':
isFixedRateMode ? 'exact-amount-out' : 'exact-amount-in',
'amount': formattedAmount,
@@ -43,16 +43,16 @@ class SelectDeviceManufacturerPage extends BasePage {
),
hardwareWalletType: HardwareWalletType.ledger,
),
if (Platform.isAndroid) ...[
_DeviceManufacturer(
image: SvgPicture.asset(
'assets/images/hardware_wallet/trezor_man.svg',
height: 25,
colorFilter: _colorFilter,
),
hardwareWalletType: HardwareWalletType.trezor,
tag: S.current.new_tag,
_DeviceManufacturer(
image: SvgPicture.asset(
'assets/images/hardware_wallet/trezor_man.svg',
height: 25,
colorFilter: _colorFilter,
),
hardwareWalletType: HardwareWalletType.trezor,
tag: S.current.new_tag,
),
if (Platform.isAndroid) ...[
_DeviceManufacturer(
image: SvgPicture.asset(
'assets/images/hardware_wallet/bitbox_man.svg',