Commit Graph

315 Commits

Author SHA1 Message Date
alfred-mk
dec8fbc3f0 use the pool symbol in place of the pool name 2026-02-19 09:04:52 +03:00
alfred-mk
29863d385d remove unused OutputAmount 2026-02-19 08:43:03 +03:00
alfred-mk
da8c8c711f Merge branch 'master' into debt-menu 2026-02-19 08:40:51 +03:00
alfred-mk
3ebb4611ca use the correct data keys for the credit send
Some checks failed
release / docker (push) Has been cancelled
2026-02-18 18:07:49 +03:00
alfred-mk
f6c613abd6 rename the func to match updated functionality 2026-02-18 17:07:38 +03:00
alfred-mk
4660527e66 updated the send logic to work with a custom voucher 2026-02-18 16:59:37 +03:00
alfred-mk
5650629ae4 update the db key name for clarity 2026-02-18 16:56:40 +03:00
alfred-mk
d2b4dcef36 match the updated function name in the test 2026-02-18 16:09:20 +03:00
alfred-mk
f32f93dff2 retain the original amount and use it for the transfer once the swap is performed 2026-02-18 13:15:41 +03:00
alfred-mk
5ee99cdcd8 convert the user input to uppercase before calling the pool Details API 2026-02-18 12:42:25 +03:00
alfred-mk
6abcb97f3a multiply the final amount by 1.015 to slightly increase the swapped amount 2026-02-18 12:27:22 +03:00
alfred-mk
f869ff437e update the transaction for custom voucher selection 2026-02-17 16:10:31 +03:00
alfred-mk
d8a6535c6f added validation and storage of the selected custom voucher 2026-02-17 16:09:14 +03:00
alfred-mk
96ba48bcba only set the flag if the user has a single voucher 2026-02-17 14:04:17 +03:00
alfred-mk
a346adb8f9 display the default asset during the Mpesa topup 2026-02-17 13:36:38 +03:00
alfred-mk
c50c53c758 use the current balance as debt
Some checks failed
release / docker (push) Has been cancelled
2026-02-17 08:51:22 +03:00
alfred-mk
e7a3e63cd5 go back on 0 input for navigation 2026-02-17 08:42:58 +03:00
alfred-mk
fe534b1181 polished the withdraw mpesa flow to correctly work with the selected voucher
Some checks failed
release / docker (push) Has been cancelled
2026-02-16 14:28:30 +03:00
alfred-mk
09954d967f read the data entries directly from the store
Some checks failed
release / docker (push) Has been cancelled
2026-02-16 10:21:20 +03:00
alfred-mk
465b3b5604 use the default stable decimals to scale down the quote 2026-02-16 10:20:10 +03:00
Alfred Kamanda
c2cfd0fe44 updated the credit and debt calculations 2026-02-16 09:08:13 +03:00
Alfred Kamanda
f6ecbcc79d remove lowercase conversion of voucher addresses 2026-02-16 09:06:53 +03:00
Alfred Kamanda
43b963995f refactored the code to send the correct pool deposit request 2026-02-13 16:36:20 +03:00
Alfred Kamanda
2e81ae58bc refactored the code for proper debt removal confirmation 2026-02-13 16:07:46 +03:00
Alfred Kamanda
5c1b4ab002 refactored the CalculateMaxPayDebt to improve logic and correctness 2026-02-13 03:58:11 +03:00
Alfred Kamanda
ba2c06c00a process and store the vouchers as an ordered list 2026-02-13 03:54:09 +03:00
Alfred Kamanda
8b6f8b9a43 process all voucher lists as ordered, with stables at the top 2026-02-12 19:22:38 +03:00
Alfred Kamanda
0e38ef1d04 updated the withdraw mpesa flow to support selection of a voucher 2026-02-12 16:23:18 +03:00
Alfred Kamanda
f4c8c45ed1 rename the function to match the ordered voucher data 2026-02-12 14:20:42 +03:00
Alfred Kamanda
1a61ea6de3 rename the function for reuse 2026-02-12 10:29:05 +03:00
Alfred Kamanda
50c2aff79e store the ordered list of vouchers with stables at the top 2026-02-12 10:25:53 +03:00
Alfred Kamanda
ea71c08143 rename the data keys to store ordered voucher lists 2026-02-12 10:24:54 +03:00
Alfred Kamanda
5ed7cbd40a update the Mpesa response once someone requests for a withdrawal 2026-02-09 14:14:44 +03:00
Alfred Kamanda
c548ea0700 added pool deposit functions 2026-02-07 17:57:46 +03:00
Alfred Kamanda
35692d2bfd prevent users from inputting amounts less than 0.1 2026-02-07 17:29:40 +03:00
Alfred Kamanda
601de0126a store the list of stable coins that the user has 2026-02-06 16:20:20 +03:00
Alfred Kamanda
f61b56407b rename the flag to flag_no_stable_vouchers 2026-02-06 16:19:45 +03:00
Alfred Kamanda
916ac11585 use the correct decimal when displaying the quote
Some checks failed
release / docker (push) Has been cancelled
2026-02-05 19:58:14 +03:00
Alfred Kamanda
c57aa220e6 show a default message if the user only has 1 voucher 2026-02-04 17:02:24 +03:00
Alfred Kamanda
ce36e584dd check whether any of the users vouchers are stables or set a flag 2026-02-04 16:35:07 +03:00
Alfred Kamanda
6a4909b8a1 separate the main balance from the credit and debt calculation and UI 2026-02-03 17:03:38 +03:00
Alfred Kamanda
e4c10d23d3 reset the flags to clear out old states 2026-02-03 16:49:11 +03:00
Alfred Kamanda
70ae3c7818 debug: shorten the displayed content 2026-02-03 14:32:21 +03:00
Alfred Kamanda
9ef27fda14 reset the api_call_error flag 2026-02-03 13:36:14 +03:00
Alfred Kamanda
42f7b0f8a7 remove the api failure flag if no swappable vouchers are found 2026-02-03 13:34:05 +03:00
Alfred Kamanda
85b8775fd0 return nil instead of an error to prevent failure 2026-02-03 13:32:13 +03:00
Alfred Kamanda
3949959aa3 use the correct terms for clarity
Some checks failed
release / docker (push) Has been cancelled
2026-01-30 16:41:44 +03:00
Alfred Kamanda
ca2a50375b added functions to perform the debt removal 2026-01-30 15:13:33 +03:00
Alfred Kamanda
4dfccb3ff2 log the correct fields 2026-01-30 10:22:36 +03:00
Alfred Kamanda
ead5dd7b8c store the filtered vouchers from the GetPoolSwappableFromVouchers 2026-01-29 17:10:20 +03:00