feat: add configurable payment amount precision

- add system.amount_precision setting with 2-6 validation
This commit is contained in:
line-6000
2026-05-11 17:11:43 +08:00
parent 1c805ed061
commit 8d2ddbd045
178 changed files with 532 additions and 273 deletions
+2 -2
View File
@@ -236,7 +236,7 @@ func TestAdjustAmount(t *testing.T) {
name: "USDT amount (6 decimals)",
amount: 123456789,
decimals: 6,
want: 123.46,
want: 123.456789,
},
{
name: "USDC amount (6 decimals)",
@@ -260,7 +260,7 @@ func TestAdjustAmount(t *testing.T) {
name: "Small amount",
amount: 1,
decimals: 6,
want: 0.0,
want: 0.000001,
},
}