Remove same currency swap check

OmarHatem committed Oct 28, 2025 at 01:46 UTC d7e9f09f60047baf06636c6efd35f90f3052ed32
2 files changed +26 -25
lib/view_model/exchange/exchange_view_model.dart
-5
@@ -647,11 +647,6 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
647
648 @action
649 Future<void> createTrade() async {
650 - if (depositCurrency == receiveCurrency) {
651 - tradeState = TradeIsCreatedFailure(
652 - title: S.current.trade_not_created, error: 'Can\'t exchange the same currency');
653 - return;
654 - }
650 if (isSendAllEnabled) {
651 await calculateDepositAllAmount();
652 final amount = double.tryParse(depositAmount);
macos/Podfile.lock
+26 -20
@@ -1,4 +1,6 @@
1 PODS:
2 + - bitbox_flutter (0.0.1):
3 + - FlutterMacOS
4 - connectivity_plus (0.0.1):
5 - FlutterMacOS
6 - cw_mweb (0.0.1):
@@ -48,6 +50,7 @@ PODS:
50 - FlutterMacOS
51
52 DEPENDENCIES:
53 + - bitbox_flutter (from `Flutter/ephemeral/.symlinks/plugins/bitbox_flutter/macos`)
54 - connectivity_plus (from `Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos`)
55 - cw_mweb (from `Flutter/ephemeral/.symlinks/plugins/cw_mweb/macos`)
56 - device_info_plus (from `Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos`)
@@ -76,6 +79,8 @@ SPEC REPOS:
79 - OrderedSet
80
81 EXTERNAL SOURCES:
82 + bitbox_flutter:
83 + :path: Flutter/ephemeral/.symlinks/plugins/bitbox_flutter/macos
84 connectivity_plus:
85 :path: Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos
86 cw_mweb:
@@ -122,29 +127,30 @@ EXTERNAL SOURCES:
127 :path: Flutter/ephemeral/.symlinks/plugins/wakelock_plus/macos
128
129 SPEC CHECKSUMS:
125 - connectivity_plus: 4adf20a405e25b42b9c9f87feff8f4b6fde18a4e
126 - cw_mweb: 4746a3b5cc5bd4afe6fadd2481c4f7b239e391d0
127 - device_info_plus: b0fafc687fb901e2af612763340f1b0d4352f8e5
128 - devicelocale: 456a07c045d3113938aa4983065bd8526e2af792
130 + bitbox_flutter: 16088f5c7febacf894f4d07bbdfb441c9f0757fe
131 + connectivity_plus: 0a976dfd033b59192912fa3c6c7b54aab5093802
132 + cw_mweb: 7440b12ead811dda972a9918442ea2a458e8742c
133 + device_info_plus: 5401765fde0b8d062a2f8eb65510fb17e77cf07f
134 + devicelocale: 9f0f36ac651cabae2c33f32dcff4f32b61c38225
135 dnssec_proof: d461cac7bd3301eb7447f87936745a0c1ae0a67e
130 - fast_scanner: a4ead8e56f185cd565e25250fdb97fa669ea1d2e
131 - file_selector_macos: 6280b52b459ae6c590af5d78fc35c7267a3c4b31
132 - flutter_inappwebview_macos: c2d68649f9f8f1831bfcd98d73fd6256366d9d1d
133 - flutter_local_authentication: 2f9a2682f498abcc12d7e9729b5007a947170fdc
134 - flutter_local_notifications: 4bf37a31afde695b56091b4ae3e4d9c7a7e6cda0
135 - flutter_secure_storage_macos: 3dacac420d84c4d0dc5e868194ee43c8664ec797
136 + fast_scanner: d31bae07e2653403a69dac99fb710c1722b16a97
137 + file_selector_macos: cc3858c981fe6889f364731200d6232dac1d812d
138 + flutter_inappwebview_macos: bdf207b8f4ebd58e86ae06cd96b147de99a67c9b
139 + flutter_local_authentication: 85674893931e1c9cfa7c9e4f5973cb8c56b018b0
140 + flutter_local_notifications: 4ccab5b7a22835214a6672e3f9c5e8ae207dab36
141 + flutter_secure_storage_macos: d56e2d218c1130b262bef8b4a7d64f88d7f9c9ea
142 FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
137 - in_app_review: 66e7680752b632d83f4f0e88b34d52ed303fbff4
143 + in_app_review: 866c9b17c87a7b46a395bda43f5d3ca02deb585a
144 OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94
139 - package_info_plus: f0052d280d17aa382b932f399edf32507174e870
140 - path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
141 - share_plus: 510bf0af1a42cd602274b4629920c9649c52f4cc
142 - shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
143 - sp_scanner: d9316427b628dd86d6e9e3c5d42ed6b4b410157c
144 - torch_dart: 7e4f682c34ee0d967a35977102590094a7510c90
145 - universal_ble: ff19787898040d721109c6324472e5dd4bc86adc
146 - url_launcher_macos: 0fba8ddabfc33ce0a9afe7c5fef5aab3d8d2d673
147 - wakelock_plus: 21ddc249ac4b8d018838dbdabd65c5976c308497
145 + package_info_plus: 12f1c5c2cfe8727ca46cbd0b26677728972d9a5b
146 + path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
147 + share_plus: 1fa619de8392a4398bfaf176d441853922614e89
148 + shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
149 + sp_scanner: 269d96e0ec3173e69156be7239b95182be3b8303
150 + torch_dart: 2e94855e15fcc87bd824e179f1f9c3e0f1e1d302
151 + universal_ble: cf52a7b3fd2e7c14d6d7262e9fdadb72ab6b88a6
152 + url_launcher_macos: c82c93949963e55b228a30115bd219499a6fe404
153 + wakelock_plus: 9d63063ffb7af1c215209769067c57103bde719d
154
155 PODFILE CHECKSUM: 65ec1541137fb5b35d00490dec1bb48d4d9586bb
156