Commit graph

83 commits

Author SHA1 Message Date
Omar Hatem
7e7217008c
Cw 171 exchange auto selector bug (#523)
* Fix de-selecting exchange providers not getting saved

* only change field value when the amount is better than the already existing one

* Show calculated amount after getting the best value from all providers

* Catch exceptions to avoid stopping the providers calculate amount APIs

* Fix Splay map only saving the last value obtained

* Show limits for the provider with the highest rate

* Load limits on currency pair change

* Show limits for lowest min provider

* Show limits for lowest min and highest max

* Sync best rate every 10 seconds instead of calculating it on every amount change

* Fix conflicts with flutter upgrade
Add null safety to changes in exchange_view_model.dart

* Remove un-necessary checks
2022-10-20 13:47:36 -04:00
M
1beb18b045 Flutter upgrade 2022-10-12 13:09:57 -04:00
Omar Hatem
c50eeee58b
CW 68 exchange automatic rate selector (#472)
* Add 'Exchange provider picker'
Save user selections

* Save user's exchange providers selection

* Add text for selected providers availability

* Fix selected providers not updating

* Load limits based on highest maximum in the selected providers

* Change received and deposit amount to be the best value from the selected providers

* Add provider name next to Trade ID
Set selected provider based on amount calculated

* Grey out providers who doesn't support selected currency pair

* Fix disabled providers

* Add Provider logo in Confirm Screen

* Only choose a provider if it satisfies its limits

* Fix amount validation

* Fix typo in error message

* Add a queue of possible exchange providers sorted by the best rate to try next if one failed

* Fix string locale typo

* Add Localization for other languages

* Add Placeholder text when there are no providers selected

* Check Exchange provider availability before creating a trade

* Fix "Fixed Rate" changing unconditionally

* Enable "convert to" field regardless of the provider

* Remove "Choose one" from providers picker

* Merge Master

* Fix Conflicts with master

* Add missing isEnabled field in simple swap provider
2022-09-01 15:12:38 +01:00
Godwin Asuquo
d9905a7cf3
Cw 110 integrate simple swap exchange (#459)
* add support for SimpleSwap exchange

* fix edit receive amount field

* fixed merge conflicts

* Fix issues from code review
2022-08-31 16:34:07 +01:00
M
718ef91749 Exclude xhv from exchange currencies list 2022-04-01 14:31:05 +01:00
Serhii
1cd90cf57d
Cw 09 implement picker screen with ability to search (#250)
* Added new picker screen with search bar and currency icons
2022-03-31 15:16:42 +01:00
Godwin Asuquo
d2cc812884
Cw 45 implement yat sending (#269)
* resolve YAT emoji

* remove animation in route builder

change YAT api

* remove yat sending page

* fix crypto address resolving

* check if text is emoji

* use getter for string extension hasOnlyEmojis

* refactor parsed domain from address

* update PR based on changes from code review

* import missing dependencies
2022-03-15 12:11:53 +03:00
Serhii
dd47a82a0d
sync status icon added on the Send and Exchange screens (#267)
* added sync status icon

* resolved issues from code review

* resolved issues from code review

* resolved issues from code review
2022-02-21 16:30:48 +02:00
M
4923de4511 Checkbox for fixed mode on exchange screen 2022-02-03 15:49:34 +02:00
Godwin Asuquo
fb7e3662e2 remove itemcount 2022-01-31 15:44:08 +01:00
Godwin Asuquo
63016825e2 rework templates on exchange screen 2022-01-31 14:17:31 +01:00
M
989ef442ac Fixes for litecoin transactions. Change fixed rate mode for exchange. 2022-01-27 11:20:51 +02:00
M
02de3104eb Fixed rate for changenow. 2022-01-26 17:44:15 +02:00
M
860e904816 Change build number. Remove fixed rate checkbox on exchange screen. 2022-01-24 18:46:02 +02:00
M
2e1f1e2c79 Fix for UnspentCoinsInfo Hive Box. Add checkbox for fixed rates for exchange. 2022-01-24 16:12:25 +02:00
M
e6b1da376d Configure wallet types for the app 2021-12-24 14:41:34 +02:00
OleksandrSobol
f353442a2a CAKE-360 | merged all yat branches into current; saving information about yat to connected wallet; fixed qr widget; applied yat, unstoppable domains and open alias to contact book 2021-10-01 18:13:10 +03:00
OleksandrSobol
5389543988 CAKE-359 | renamed parse_address_from_domain_alert.dart to extract_address_from_parsed.dart; renamed defineAddress() method to extractAddressFromParsed() 2021-09-29 14:38:31 +03:00
OleksandrSobol
8955a10ca8 CAKE-359 | fixed yat_record.dart for multiple addresses in yat; fixed ParsedAddress class; applied ParsedAddress in the parse_address_from_domain_alert.dart; added parsedAddress and renamed applyOpenaliasOrUnstoppableDomains() to fetchParsedAddress() in the output.dart; fixed send_page.dart, send_card.dart and exchange_page.dart; added choose_yat_address_alert.dart to the app; added current wallet address to request parameters in the yat_alert.dart 2021-09-20 17:56:27 +03:00
OleksandrSobol
3abb78febf Merge branch 'main' into CAKE-345-batch-sending
# Conflicts:
#	lib/bitcoin/electrum_wallet.dart
2021-08-04 17:43:03 +03:00
OleksandrSobol
1d996c94c8 CAKE-343 | added address book button to xmr wallet's address text field on exchange_page.dart and exchange_template_page.dart 2021-07-23 14:05:33 +03:00
OleksandrSobol
c14d021f07 CAKE-345 | merged release-4.2.4 branch into current and resolved problems 2021-07-22 19:48:26 +03:00
M
07f153e706 Merge pull request #152 from cake-tech/CAKE-192-implement-unstoppable-domain
Cake 192 implement unstoppable domain
2021-07-22 10:37:55 +03:00
OleksandrSobol
008936435b CAKE-192 | added name property to parsed_address.dart; fixed parse_address_from_domain.dart 2021-07-16 13:28:46 +03:00
OleksandrSobol
0d367c4b45 CAKE-343 | added bitcoin_wallet_addresses.dart and litecoin_wallet_addresses.dart tj the app; moved addresses from wallets to wallet addresses classes; deleted wallet addresses credentials 2021-07-13 08:46:34 +03:00
OleksandrSobol
bac491c44f CAKE-192 | created ParsedAddress class; applied this class to parse_address_from_domain.dart, send_page.dart and exchange_page.dart 2021-07-07 17:31:16 +03:00
OleksandrSobol
f995342491 CAKE-192 | parse_address_from_domain.dart fixed and split on 2 files (current and parse_address_from_domain_alert.dart), then moved to the entities directory; used one channel for native calls; removed unneeded spaces; fixed handle of unstoppable domain error in the MainActivity.java 2021-07-07 16:50:55 +03:00
OleksandrSobol
bb219e4da2 CAKE-192 | created parse_address_from_domain.dart; applied parseAddressFromDomain() to send_page.dart and exchange_page.dart; deleted unstoppable_domain_address_alert.dart 2021-06-22 11:29:30 +03:00
OleksandrSobol
3a5932f3df CAKE-192 | renamed applyUnstoppableDomainAddress() to getUnstoppableDomainAddress() in the send_page.dart; fixed applyOpenaliasOrUnstoppableDomains() (send_page.dart) and applyUnstoppableDomainAddress() (exchange_page.dart) 2021-06-16 11:44:20 +03:00
OleksandrSobol
7ddbc6b8f4 CAKE-192 | added verification of open alias and unstoppable domains in exchange_page.dart and send_page.dart 2021-06-15 22:43:50 +03:00
OleksandrSobol
00d5542739 CAKE-321 | changed resizeToAvoidBottomPadding parameter to resizeToAvoidBottomInset 2021-05-10 20:58:05 +03:00
OleksandrSobol
ae9efb0ae8 CAKE-192 | implemented unstoppable domain address to the app 2021-04-20 20:49:53 +03:00
OleksandrSobol
68c12cbb79 CAKE-296 | added receiveCurrencies (list of crypto currencies without xlm and xrp) to exchange_view_model.dart; applied receiveCurrencies to receive card in the exchange_page.dart 2021-04-06 20:11:26 +03:00
OleksandrSobol
753d164d6e CAKE-296 | removed xmr to xrp and xmr to xlm exchange pairs from ChangeNow pair list; disabled exchange button when pair is not exists 2021-04-01 21:08:11 +03:00
OleksandrSobol
7316646b44 CAKE-292 | removed StandardCheckBox from exchange_page.dart; made receive amount not editable 2021-03-15 19:54:04 +02:00
OleksandrSobol
a4c6d01c18 CAKE-278 | applied localization to checkbox text and fixed rate alert text (exchange_page.dart) 2021-02-24 10:16:03 +02:00
OleksandrSobol
fc70852002 CAKE-278 | applied fixed rate mode only for pair xmr-btc; added _defineIsReceiveAmountEditable() to exchange_view_model.dart; added reaction on isReceiveAmountEditable to exchange_page.dart 2021-02-23 19:36:03 +02:00
OleksandrSobol
fb6e7de166 CAKE-278 | fixed calculating estimated amount when receive amount is entered; fixed applyTemplate() method in the exchange_page.dart and reset() method in the exchange_view_model.dart 2021-02-19 10:37:30 +02:00
OleksandrSobol
6e102c4969 CAKE-278 | applied fixed-rate flow to changenow_exchange_provider.dart, exchange_view_model.dart and exchange_page.dart; added isFixedRateMode to fetchLimits(), createTrade() and calculateAmount() methods in the exchange_provider.dart 2021-02-18 21:08:52 +02:00
OleksandrSobol
317ef8f3e4 CAKE-278 | added isReceiveAmountEditable and isFixedRateMode to exchange_view_model.dart; fixed changeReceiveAmount() in the exchange_view_model.dart; applied StandardCheckbox to exchange_page.dart for checking fixed rate mode; applied alert dialog to exchange_page.dart when receive amount has focus and fixed rate mode is not checked; added reaction for isFixedRateMode in the exchange_page.dart; added key and changeValue() to standard_checkbox.dart 2021-02-16 21:06:23 +02:00
M
9db6e233c7 Another beautiful day changes 2021-01-11 19:15:27 +02:00
M
798d9a1edf Fixes 2021-01-05 20:31:03 +02:00
OleksandrSobol
3053c0f3fb CAKE-207 | changed Themes class; removed isDarkTheme from settings store and screens; added currentTheme to settings store; changed SwitcherListItem to PickerListItem for themes in the settings_view_model.dart; created item_from_theme.dart; changed currentDarkTheme property on currentTheme in the preferences_key.dart; applied themes to keyboard bar color in the exchange_page.dart, receive_page.dart, send_page.dart and send_template_page.dart; applied itemFromTheme() to new_wallet_page.dart, new_wallet_type_page.dart, pre_seed_page.dart, wallet_seed_page.dart, seed_language_page.dart, welcome_page.dart, base_page.dart and main.dart 2020-12-10 19:53:40 +02:00
M
5ea8b79ae2 Merge pull request #149 from cake-tech/CAKE-185-digits-limit-on-monero-transaction
Cake 185 digits limit on monero transaction
2020-12-04 11:20:33 +02:00
OleksandrSobol
df01fa0314 CAKE-185 | removed isValidAmount() from exchange_view_model.dart and exchange_page.dart; throw exception in the createTrade() (xmrto_exchange_provider.dart) if number of fractional digits of amount more than 8 2020-12-03 23:22:56 +02:00
Oleksandr Sobol
c21fd04345 CAKE-185 | fixed string resources 2020-12-03 15:47:13 +02:00
OleksandrSobol
458079d3ae CAKE-185 | added title property to TradeIsCreatedFailure class; applied title property in the createTrade() method (exchange_view_model.dart); applied title property as alert title in the exchange_page.dart 2020-12-02 21:51:06 +02:00
Oleksandr Sobol
4f43e963bf CAKE-185 | fixed string resources 2020-11-27 09:52:10 +02:00
OleksandrSobol
4cb4ede2d3 CAKE-185 | added validation of amount for xmr.to provider in the exchange_page.dart; added isValidAmount() to exchange_view_model.dart 2020-11-26 21:04:05 +02:00
OleksandrSobol
11464a79e6 CAKE-184 | cleaned exchange screen when exchange confirm page was called 2020-11-19 18:48:09 +02:00