From f8747e213b22783a556d4b7c2e1c15f89c44c0ec Mon Sep 17 00:00:00 2001 From: GNaD Date: Sun, 15 Oct 2023 00:16:55 +0700 Subject: [PATCH] duration hour to 1 --- app/upgrades/v6/upgrade.go | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/app/upgrades/v6/upgrade.go b/app/upgrades/v6/upgrade.go index 3c3d046fe..590461515 100644 --- a/app/upgrades/v6/upgrade.go +++ b/app/upgrades/v6/upgrade.go @@ -76,7 +76,7 @@ func CreateUpgradeHandler( quota := types.Quota{ MaxPercentSend: sdk.NewInt(30), MaxPercentRecv: sdk.NewInt(30), - DurationHours: 24, + DurationHours: 1, } flow := types.Flow{ Inflow: math.ZeroInt(), @@ -91,6 +91,12 @@ func CreateUpgradeHandler( } rlKeeper.SetRateLimit(ctx, uatomRateLimit) } else { + quota := types.Quota{ + MaxPercentSend: sdk.NewInt(30), + MaxPercentRecv: sdk.NewInt(30), + DurationHours: 1, + } + uatomRateLimit.Quota = "a uatomRateLimit.MinRateLimitAmount = sdk.NewInt(1282_000_000 * 5) rlKeeper.SetRateLimit(ctx, uatomRateLimit) } @@ -106,7 +112,7 @@ func CreateUpgradeHandler( quota := types.Quota{ MaxPercentSend: sdk.NewInt(30), MaxPercentRecv: sdk.NewInt(30), - DurationHours: 24, + DurationHours: 1, } flow := types.Flow{ Inflow: math.ZeroInt(), @@ -121,6 +127,12 @@ func CreateUpgradeHandler( } rlKeeper.SetRateLimit(ctx, dotRateLimit) } else { + quota := types.Quota{ + MaxPercentSend: sdk.NewInt(30), + MaxPercentRecv: sdk.NewInt(30), + DurationHours: 1, + } + dotRateLimit.Quota = "a dotRateLimit.MinRateLimitAmount = sdk.NewInt(22_670_000_000_000 * 5) rlKeeper.SetRateLimit(ctx, dotRateLimit) } @@ -136,7 +148,7 @@ func CreateUpgradeHandler( quota := types.Quota{ MaxPercentSend: sdk.NewInt(30), MaxPercentRecv: sdk.NewInt(30), - DurationHours: 24, + DurationHours: 1, } flow := types.Flow{ Inflow: math.ZeroInt(), @@ -151,6 +163,12 @@ func CreateUpgradeHandler( } rlKeeper.SetRateLimit(ctx, ksmRateLimit) } else { + quota := types.Quota{ + MaxPercentSend: sdk.NewInt(30), + MaxPercentRecv: sdk.NewInt(30), + DurationHours: 1, + } + ksmRateLimit.Quota = "a ksmRateLimit.MinRateLimitAmount = sdk.NewInt(510_000_000_000_000 * 5) rlKeeper.SetRateLimit(ctx, ksmRateLimit) } @@ -166,7 +184,7 @@ func CreateUpgradeHandler( quota := types.Quota{ MaxPercentSend: sdk.NewInt(30), MaxPercentRecv: sdk.NewInt(30), - DurationHours: 24, + DurationHours: 1, } flow := types.Flow{ Inflow: math.ZeroInt(), @@ -181,6 +199,12 @@ func CreateUpgradeHandler( } rlKeeper.SetRateLimit(ctx, usdtRateLimit) } else { + quota := types.Quota{ + MaxPercentSend: sdk.NewInt(30), + MaxPercentRecv: sdk.NewInt(30), + DurationHours: 1, + } + usdtRateLimit.Quota = "a usdtRateLimit.MinRateLimitAmount = sdk.NewInt(10_000_000_000 * 5) rlKeeper.SetRateLimit(ctx, usdtRateLimit) }