Skip to content

Commit

Permalink
remove stDenom from blacklist during unregistration (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampocs authored Jul 24, 2024
1 parent 3f521dd commit a1f8144
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/stakeibc/keeper/host_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ func (k Keeper) UnregisterHostZone(ctx sdk.Context, chainId string) error {
k.RatelimitKeeper.RemoveWhitelistedAddressPair(ctx, hostZone.CommunityPoolDepositIcaAddress, hostZone.CommunityPoolRedeemHoldingAddress)
k.RatelimitKeeper.RemoveWhitelistedAddressPair(ctx, hostZone.CommunityPoolStakeHoldingAddress, hostZone.CommunityPoolReturnIcaAddress)

// Remove any blacklisted denoms from the rate limit module (may not be applicable)
k.RatelimitKeeper.RemoveDenomFromBlacklist(ctx, utils.StAssetDenomFromHostZoneDenom(hostZone.HostDenom))

// Finally, remove the host zone struct
k.RemoveHostZone(ctx, chainId)

Expand Down

0 comments on commit a1f8144

Please sign in to comment.