Skip to content

Commit

Permalink
no need panic
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 committed Aug 29, 2023
1 parent 3f8d49a commit e3d2446
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/upgrades/v5/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ func CreateUpgradeHandler(
uatomRateLimit, found := rlKeeper.GetRateLimit(ctx, uatom, "channel-2")
if !found {
channelValue := rlKeeper.GetChannelValue(ctx, uatom)
if channelValue.IsZero() {
panic("Zero ATOM channel value")
}
// Create and store the rate limit object
path := types.Path{
Denom: uatom,
Expand Down Expand Up @@ -64,9 +61,6 @@ func CreateUpgradeHandler(
dotRateLimit, found := rlKeeper.GetRateLimit(ctx, dot, "channel-2")
if !found {
channelValue := rlKeeper.GetChannelValue(ctx, dot)
if channelValue.IsZero() {
panic("Zero DOT channel value")
}
// Create and store the rate limit object
path := types.Path{
Denom: dot,
Expand Down Expand Up @@ -97,9 +91,6 @@ func CreateUpgradeHandler(
ksmRateLimit, found := rlKeeper.GetRateLimit(ctx, ksm, "channel-2")
if !found {
channelValue := rlKeeper.GetChannelValue(ctx, ksm)
if channelValue.IsZero() {
panic("Zero KSM channel value")
}
// Create and store the rate limit object
path := types.Path{
Denom: ksm,
Expand Down Expand Up @@ -130,9 +121,6 @@ func CreateUpgradeHandler(
usdtRateLimit, found := rlKeeper.GetRateLimit(ctx, usdt, "channel-2")
if !found {
channelValue := rlKeeper.GetChannelValue(ctx, usdt)
if channelValue.IsZero() {
panic("Zero USDT channel value")
}
// Create and store the rate limit object
path := types.Path{
Denom: usdt,
Expand Down

0 comments on commit e3d2446

Please sign in to comment.