Alfred Kamanda Alfred-mk
  • Nairobi, Kenya
  • Joined on 2024-08-12
Alfred-mk merged pull request grassrootseconomics/sarafu-vise#87 2025-06-26 14:07:29 +02:00
fix-amount-conversion
Alfred-mk commented on pull request grassrootseconomics/sarafu-vise#87 2025-06-26 11:35:33 +02:00
fix-amount-conversion

Add tests of 18 d.p. to TestParseAndScaleAmount and for the menu handler itself.

Generally the following should be the behaviour:

1.85 inputted for a 18d.p token - > 1850000000000…

Alfred-mk pushed to fix-amount-conversion at grassrootseconomics/sarafu-vise 2025-06-26 11:30:51 +02:00
3592e7747c add a test case with large decimal amount
7fe40faa9d use the TruncateDecimalString helper function to format amounts to 2 d.p
02fd02dc21 add a test for the TruncateDecimalString
b884b82197 add test cases with high decimals for the ParseAndScaleAmount func
Compare 4 commits »
Alfred-mk pushed to fix-amount-conversion at grassrootseconomics/sarafu-vise 2025-06-26 11:19:23 +02:00
280c382a3d add a helper function 'TruncateDecimalString' to format amounts to specified decimal places
Alfred-mk pushed to update-alias at grassrootseconomics/sarafu-vise 2025-06-26 09:03:03 +02:00
b497dde1e8 remove unused 'constructAccountAlias' func
Alfred-mk created pull request grassrootseconomics/sarafu-vise#88 2025-06-26 08:58:06 +02:00
WIP: add functionality to Update the Alias
Alfred-mk pushed to update-alias at grassrootseconomics/sarafu-vise 2025-06-26 08:56:37 +02:00
cedd55fd31 use updated sarafu-api that includes the UpdateAlias functionality
Alfred-mk created branch update-alias in grassrootseconomics/sarafu-vise 2025-06-26 08:54:44 +02:00
Alfred-mk pushed to update-alias at grassrootseconomics/sarafu-vise 2025-06-26 08:54:44 +02:00
Alfred-mk pushed to update-alias at grassrootseconomics/sarafu-api 2025-06-26 08:54:25 +02:00
57ee409f96 add UpdateAlias to the DevAccountService and mocks
49a8184d02 add the UpdateAlias function
9a6ab7e6e2 add the endpoint for updating the alias
Compare 3 commits »
Alfred-mk created branch update-alias in grassrootseconomics/sarafu-api 2025-06-26 08:29:43 +02:00
Alfred-mk pushed to update-alias at grassrootseconomics/sarafu-api 2025-06-26 08:29:43 +02:00
Alfred-mk pushed to master at grassrootseconomics/sarafu-api 2025-06-26 07:58:55 +02:00
d177942bd2 Merge pull request 'pool-swap-endpoints' (#11) from pool-swap-endpoints into master
339ba854c9 fix: correctly unmarshal nested pool details response in retrievePoolDeta
5aa032400c update the alias endpoints
7b42d509e6 log the request and response body
d945964b0b use the TokenAddress instead of ContractAddress
Compare 56 commits »
Alfred-mk merged pull request grassrootseconomics/sarafu-api#11 2025-06-26 07:58:54 +02:00
pool-swap-endpoints
Alfred-mk created pull request grassrootseconomics/sarafu-vise#87 2025-06-24 14:12:48 +02:00
fix-amount-conversion
Alfred-mk pushed to fix-amount-conversion at grassrootseconomics/sarafu-vise 2025-06-24 14:11:24 +02:00
88926480dc Return finalAmount as a string with 0 decimal places (rounded)
dabdf7eba2 add a test case to ensure the stored amount is not rounded off
96f6ca7d08 truncate two decimal places without risking float rounding issues
Compare 3 commits »
Alfred-mk pushed to fix-amount-conversion at grassrootseconomics/sarafu-vise 2025-06-24 13:04:17 +02:00
bc48dddd99 use the correct ContractAddress for the Last10TxResponse struct
Alfred-mk created branch fix-amount-conversion in grassrootseconomics/sarafu-vise 2025-06-24 13:04:16 +02:00
Alfred-mk pushed tag v1.3.4-rc.1 to grassrootseconomics/sarafu-vise 2025-06-24 11:10:31 +02:00
Alfred-mk pushed to master at grassrootseconomics/sarafu-vise 2025-06-24 11:10:14 +02:00
2ec612978d update sarafu-api to correctly unmarshal nested pool details response in RetrievePoolDetails