Logo
Explore Help
Register Sign In
grassrootseconomics/sarafu-vise
8
0
Fork 0
You've already forked sarafu-vise
Code Issues 20 Pull Requests 3 Actions Packages Projects Releases Wiki Activity

fix-amount-conversion #87

Merged
Alfred-mk merged 9 commits from fix-amount-conversion into master 2025-06-26 14:07:29 +02:00
Conversation 2 Commits 9 Files Changed 4 +183 -17

9 Commits

Author SHA1 Message Date
alfred-mk
3592e7747c
add a test case with large decimal amount 2025-06-26 12:30:44 +03:00
alfred-mk
7fe40faa9d
use the TruncateDecimalString helper function to format amounts to 2 d.p 2025-06-26 12:30:14 +03:00
alfred-mk
02fd02dc21
add a test for the TruncateDecimalString 2025-06-26 12:26:49 +03:00
alfred-mk
b884b82197
add test cases with high decimals for the ParseAndScaleAmount func 2025-06-26 12:20:34 +03:00
alfred-mk
280c382a3d
add a helper function 'TruncateDecimalString' to format amounts to specified decimal places 2025-06-26 12:19:13 +03:00
alfred-mk
88926480dc
Return finalAmount as a string with 0 decimal places (rounded) 2025-06-24 15:11:15 +03:00
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
Powered by Gitea Version: 1.22.3 Page: 57ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API