|
3592e7747c
|
add a test case with large decimal amount
|
2025-06-26 12:30:44 +03:00 |
|
|
7fe40faa9d
|
use the TruncateDecimalString helper function to format amounts to 2 d.p
|
2025-06-26 12:30:14 +03:00 |
|
|
02fd02dc21
|
add a test for the TruncateDecimalString
|
2025-06-26 12:26:49 +03:00 |
|
|
b884b82197
|
add test cases with high decimals for the ParseAndScaleAmount func
|
2025-06-26 12:20:34 +03:00 |
|
|
280c382a3d
|
add a helper function 'TruncateDecimalString' to format amounts to specified decimal places
|
2025-06-26 12:19:13 +03:00 |
|
|
88926480dc
|
Return finalAmount as a string with 0 decimal places (rounded)
|
2025-06-24 15:11:15 +03:00 |
|
|
dabdf7eba2
|
add a test case to ensure the stored amount is not rounded off
|
2025-06-24 14:55:37 +03:00 |
|
|
96f6ca7d08
|
truncate two decimal places without risking float rounding issues
|
2025-06-24 14:55:09 +03:00 |
|
|
bc48dddd99
|
use the correct ContractAddress for the Last10TxResponse struct
|
2025-06-24 14:04:07 +03:00 |
|