Skip to content

Commit

Permalink
correct decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
GNaD13 committed Aug 28, 2023
1 parent b7ad676 commit 7a0609d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/upgrades/v5/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func CreateUpgradeHandler(
Path: &path,
Quota: &quota,
Flow: &flow,
MinRateLimitAmount: sdk.NewInt(1282_000_000),
MinRateLimitAmount: sdk.NewInt(1282_000_000), // decimal 6
}
rlKeeper.SetRateLimit(ctx, uatomRateLimit)
} else {
Expand Down Expand Up @@ -86,11 +86,11 @@ func CreateUpgradeHandler(
Path: &path,
Quota: &quota,
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
Expand Down Expand Up @@ -119,7 +119,7 @@ func CreateUpgradeHandler(
Path: &path,
Quota: &quota,
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 {
Expand Down Expand Up @@ -152,11 +152,11 @@ func CreateUpgradeHandler(
Path: &path,
Quota: &quota,
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)
}

Expand Down

0 comments on commit 7a0609d

Please sign in to comment.