Commit Graph

305 Commits

Author SHA1 Message Date
alfred-mk
d2b4dcef36 match the updated function name in the test 2026-02-18 16:09:20 +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
Alfred Kamanda
6bb87a7b33 added the CalculateCreditAndDebt function 2026-01-29 16:57:00 +03:00
Alfred Kamanda
cfc38402f0 display the credit and debt 2026-01-29 16:14:04 +03:00
Alfred Kamanda
e2ff3d20d5 updated the resolveActivePoolAddress to resolveActivePoolDetails 2026-01-26 13:28:31 +03:00
Alfred Kamanda
523f680276 append the flag_swap_transaction once all checks pass
Some checks failed
release / docker (push) Has been cancelled
2026-01-15 11:25:02 +03:00
Alfred Kamanda
b337c9260b add a debug statement 2026-01-15 11:17:41 +03:00
Alfred Kamanda
7d8fd065f0 default to a normal send if an error occurs on calculateSendCreditLimits 2026-01-15 10:56:20 +03:00
Alfred Kamanda
a447f230ca refactor the code to handle credit send or normal transactions 2026-01-13 12:45:27 +03:00
Alfred Kamanda
d586c41cca add sleep for 1 second between requests
Some checks failed
release / docker (push) Has been cancelled
2025-12-03 13:12:24 +03:00
Alfred Kamanda
1cb82e9099 call the mpesa rates API to get the rates 2025-12-02 12:28:28 +03:00
Alfred Kamanda
e658460845 Merge branch 'master' into mpesa-onramp-offramp 2025-11-28 11:54:29 +03:00