From dccfa06c59e27120489e5c2c99e1562bc26b5bd9 Mon Sep 17 00:00:00 2001 From: GnaD13 Date: Mon, 28 Aug 2023 19:07:56 +0700 Subject: [PATCH] correct decimal --- app/upgrades/v5/upgrade.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/upgrades/v5/upgrade.go b/app/upgrades/v5/upgrade.go index f7bc361a4..3e19763c2 100644 --- a/app/upgrades/v5/upgrade.go +++ b/app/upgrades/v5/upgrade.go @@ -53,7 +53,7 @@ func CreateUpgradeHandler( Path: &path, Quota: "a, Flow: &flow, - MinRateLimitAmount: sdk.NewInt(1282_000_000), + MinRateLimitAmount: sdk.NewInt(1282_000_000), // decimal 6 } rlKeeper.SetRateLimit(ctx, uatomRateLimit) } else { @@ -86,11 +86,11 @@ func CreateUpgradeHandler( Path: &path, Quota: "a, Flow: &flow, - MinRateLimitAmount: sdk.NewInt(2267_000_000_000_000), + MinRateLimitAmount: sdk.NewInt(22_670_000_000_000), // decimal 10 } rlKeeper.SetRateLimit(ctx, dotRateLimit) } else { - dotRateLimit.MinRateLimitAmount = sdk.NewInt(2267_000_000_000_000) + dotRateLimit.MinRateLimitAmount = sdk.NewInt(22_670_000_000_000) rlKeeper.SetRateLimit(ctx, dotRateLimit) } // add ksm @@ -119,7 +119,7 @@ func CreateUpgradeHandler( Path: &path, Quota: "a, Flow: &flow, - MinRateLimitAmount: sdk.NewInt(510_000_000_000_000), + MinRateLimitAmount: sdk.NewInt(510_000_000_000_000), // decimal 12 } rlKeeper.SetRateLimit(ctx, ksmRateLimit) } else { @@ -152,11 +152,11 @@ func CreateUpgradeHandler( Path: &path, Quota: "a, Flow: &flow, - MinRateLimitAmount: sdk.NewInt(10_000_000_000_000_000), + MinRateLimitAmount: sdk.NewInt(10_000_000_000), // decimal 6 } rlKeeper.SetRateLimit(ctx, usdtRateLimit) } else { - usdtRateLimit.MinRateLimitAmount = sdk.NewInt(10_000_000_000_000_000) + usdtRateLimit.MinRateLimitAmount = sdk.NewInt(10_000_000_000) rlKeeper.SetRateLimit(ctx, usdtRateLimit) }