Commit Graph

470 Commits

Author SHA1 Message Date
alfred-mk
dabdf7eba2 add a test case to ensure the stored amount is not rounded off 2025-06-24 14:55:37 +03:00
alfred-mk
96f6ca7d08 truncate two decimal places without risking float rounding issues 2025-06-24 14:55:09 +03:00
alfred-mk
bc48dddd99 use the correct ContractAddress for the Last10TxResponse struct 2025-06-24 14:04:07 +03:00
alfred-mk
2ec612978d update sarafu-api to correctly unmarshal nested pool details response in RetrievePoolDetails
Some checks failed
release / docker (push) Has been cancelled
v1.3.4-rc.1
2025-06-24 12:10:04 +03:00
alfred-mk
632f891e16 use the updated alias endpoints from the sarafu-api
Some checks failed
release / docker (push) Has been cancelled
v1.3.4-rc
2025-06-24 10:51:15 +03:00
alfred-mk
d758b37065 use the correct TokenHoldings struct instead of TokenDetails
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.7
2025-06-23 11:09:47 +03:00
alfred-mk
929fb6a40d add logs for the request and response body 2025-06-23 10:57:20 +03:00
alfred-mk
5263af46d8 use a single ProcessVouchers due to similar data struct
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.6
2025-06-23 10:09:39 +03:00
alfred-mk
383ef51134 use the TokenAddress instead of ContractAddress 2025-06-23 10:07:53 +03:00
alfred-mk
5479580230 use the TokenHoldings instead of TokenDetails in getting the pool swappable vouchers
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.5
2025-06-23 09:50:13 +03:00
alfred-mk
6f2d965b89 add log for the GetCurrentProfileInfo
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.4
2025-06-23 08:56:37 +03:00
alfred-mk
150dc99201 log the response from GetPoolSwappableVouchers
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.3
2025-06-19 14:54:43 +03:00
alfred-mk
b85c5a8788 log the metadata from GetSwapToVoucherData
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.2
2025-06-19 14:17:43 +03:00
alfred-mk
23f1068402 Use InfoCtxf instead of TraceCtxf 2025-06-19 14:17:08 +03:00
alfred-mk
e803048b13 Added more logging and display the actual activePoolSymbol
Some checks failed
release / docker (push) Has been cancelled
v1.3.3-rc.1
2025-06-19 12:54:33 +03:00
alfred-mk
137a5dd599 cosmetic-fixes (#83)
Some checks failed
release / docker (push) Has been cancelled
Resolved issue #80

Reviewed-on: #83
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
v1.3.3-rc
2025-06-19 10:30:31 +02:00
61ff337464 Merge pull request 'hotfix/v1.2.5-rc.1' (#82) from hotfix/v1.2.5-rc.1 into master
Some checks failed
release / docker (push) Has been cancelled
Reviewed-on: #82
v1.3.2-rc
2025-06-18 11:53:30 +02:00
alfred-mk
41c3b6d8e6 Merge branch 'master' into hotfix/v1.2.5-rc.1 2025-06-18 12:41:28 +03:00
alfred-mk
42dadb5eea add-pool-selection (#79)
Some checks failed
release / docker (push) Has been cancelled
- Add pool selection under "Select vouchers" node
- Use the set pool contract address in the swap, or fall back to the default

Reviewed-on: #79
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
v1.3.1-rc.1
2025-06-09 13:38:19 +02:00
alfred-mk
7228b818e3 swap-fix (#78)
Some checks failed
release / docker (push) Has been cancelled
- Resolves a "key not found error" on the swap max limit node
- Resolves double PIN requests when authorizing transactions #67

Reviewed-on: #78
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
v1.3.1-rc
2025-06-03 09:19:13 +02:00
alfred-mk
3b44b4b9e7 updated go-vise to add full memory reset method
Some checks failed
release / docker (push) Has been cancelled
v1.2.5-rc.2
2025-05-28 16:09:15 +03:00
alfred-mk
7c2454422e remove misplaced CATCH statement
Some checks failed
release / docker (push) Has been cancelled
v1.2.5-rc.1
2025-05-23 16:54:05 +03:00
alfred-mk
95de1dad2b updated the go-vise package to commit hash a170e8a79da067e30b3c28a999a4d87fdd07ebaf 2025-05-23 16:53:10 +03:00
alfred-mk
fac703576f updated the go-vise package to commit hash a170e8a79da067e30b3c28a999a4d87fdd07ebaf
Some checks failed
release / docker (push) Has been cancelled
v1.3.0-rc.9
2025-05-23 15:30:48 +03:00
alfred-mk
df8e0b4d4a remove misplaced CATCH statement 2025-05-23 15:28:40 +03:00
alfred-mk
b4bacfdc03 use the updated sarafu-api package with correct PoolSwapURL
Some checks failed
release / docker (push) Has been cancelled
v1.3.0-rc.8
2025-05-22 15:34:04 +03:00
alfred-mk
8dc203d111 use the TemporaryValue to store the user's swap amount input
Some checks failed
release / docker (push) Has been cancelled
v1.3.0-rc.7
2025-05-22 15:18:52 +03:00
alfred-mk
dcadea8737 Convert TokenDecimals (uint8) to string before storing it 2025-05-22 15:09:46 +03:00
alfred-mk
71496d0015 change position of the catch statements
Some checks failed
release / docker (push) Has been cancelled
v1.3.0-rc.6
2025-05-22 12:41:49 +03:00
alfred-mk
d9fc5440c5 prevent access to the swap menu if one does not have a voucher 2025-05-22 12:24:10 +03:00
alfred-mk
0495472530 match the reset_incorrect_pin symbol to the function name 2025-05-22 12:13:50 +03:00
alfred-mk
fd43060021 update the api failure template
Some checks failed
release / docker (push) Has been cancelled
v1.3.0-rc.5
2025-05-21 18:52:05 +03:00
alfred-mk
cf6e105fb9 catch the api call error flag 2025-05-21 18:51:41 +03:00
alfred-mk
91b57fece2 use the ProcessTokens function and remove the unused DATA_POOL_TO_BALANCES 2025-05-21 18:51:10 +03:00
alfred-mk
043c79384c correctly process TokenDetails 2025-05-21 18:39:45 +03:00
alfred-mk
1cc1d00ffe added a function to ProcessTokens from the GetPoolSwappableVouchers 2025-05-21 18:19:23 +03:00
alfred-mk
d7987bf460 use the updated ussd-data-service and sarafu-api with TokenDetails 2025-05-21 18:18:15 +03:00
alfred-mk
21da4b976b use the updated sarafu-api that removes the publicKey from the GetPoolSwappableVouchers
Some checks failed
release / docker (push) Has been cancelled
v1.3.0-rc.4
2025-05-21 15:45:17 +03:00
alfred-mk
169d85e2cb added the INCLUDE_STABLES_PARAM env variable 2025-05-21 15:39:19 +03:00
alfred-mk
3ab76b3d22 use updated sarafu-api with corrected JSON mapping for checkTokenInPool and getSwapFromTokenMaxLimit
Some checks failed
release / docker (push) Has been cancelled
v1.3.0-rc.3
2025-05-20 15:53:12 +03:00
alfred-mk
b428e2e22d add log for the CheckTokenInPool
Some checks failed
release / docker (push) Has been cancelled
v1.3.0-rc.2
2025-05-20 14:02:41 +03:00
1d23a0cc4b Merge pull request 'default-env-pool' (#76) from default-env-pool into master
Some checks failed
release / docker (push) Has been cancelled
Reviewed-on: #76
v1.3.0-rc.1
2025-05-20 12:18:30 +02:00
alfred-mk
d3ad3b2db6 update the template and remove hardcoded values 2025-05-20 10:26:28 +03:00
alfred-mk
5d8fee470a use the default pool variables 2025-05-20 10:26:01 +03:00
alfred-mk
cf237c592a add the pool variables to the config 2025-05-20 10:25:27 +03:00
alfred-mk
2d8333b89a add the new env variables 2025-05-20 10:19:46 +03:00
alfred-mk
c8146ea211 alfred/pool-swap (#33)
Some checks failed
release / docker (push) Has been cancelled
Pool swap functionality

Resolves issue #24

Reviewed-on: #33
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
v1.3.0-rc
2025-05-19 15:44:50 +02:00
alfred-mk
d03c0c4c0e vouchers-input-selection (#75)
Some checks failed
release / docker (push) Has been cancelled
- Update the NEXT and PREV input selectors on the vouchers list
- Have the INCMPs before LOAD/RELOADs to prevent navigation inputs being passed to handler functions

Reviewed-on: #75
Reviewed-by: Mohamed Sohail <kamikazechaser@noreply.localhost>
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
v1.2.5-rc
2025-05-19 15:42:43 +02:00
alfred-mk
e914d059e2 upgraded vise to refresh error logline for more context
Some checks failed
release / docker (push) Has been cancelled
v1.2.4-rc
2025-05-07 20:26:54 +03:00
alfred-mk
7b1676bb37 fixes: recipient address and phone number (#74)
Some checks failed
release / docker (push) Has been cancelled
- Add functionality to checksum addresses...resolves #66
- Remove white spaces from the recipient input...resolves #70

Reviewed-on: #74
Reviewed-by: Mohamed Sohail <kamikazechaser@noreply.localhost>
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
v1.2.3-rc
2025-05-07 11:45:38 +02:00