Skip to content

Commit

Permalink
channelID
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 committed Aug 22, 2023
1 parent 41c16e9 commit ce98d47
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/upgrades/v4_5_1/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func RemoveRateLimit(ctx sdk.Context, rlKeeper *rateLimitKeeper.Keeper) {
rateLimits := rlKeeper.GetAllRateLimits(ctx)
// Remove Rate limit
for _, rateLimit := range rateLimits {
err := rlKeeper.RemoveRateLimit(ctx, rateLimit.Path.Denom, rateLimit.Path.ChannelId)
err := rlKeeper.RemoveRateLimit(ctx, rateLimit.Path.Denom, rateLimit.Path.ChannelID)
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions x/ratelimit/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (suite *RateLimitTestSuite) TestReceiveIBCTokenWithMinRateLimitAmount() {
chainBRateLimitKeeper := suite.chainB.RateLimit()
msgAddRateLimit := ratelimittypes.MsgAddRateLimit{
Denom: nativeDenom,
ChannelId: path.EndpointB.ChannelID,
ChannelID: path.EndpointB.ChannelID,
MaxPercentSend: sdk.NewInt(5), // 5_000_000_000 < minRateLimitAmount(10_000_000_000) => RateLimit = 10_000_000_000
MaxPercentRecv: sdk.NewInt(5), // 5_000_000_000 < minRateLimitAmount(10_000_000_000) => RateLimit = 10_000_000_000
MinRateLimitAmount: sdk.NewInt(10_000_000_000),
Expand Down Expand Up @@ -457,7 +457,7 @@ func (suite *RateLimitTestSuite) TestSendIBCTokenWithMinRateLimitAmount() {
chainBRateLimitKeeper := suite.chainB.RateLimit()
msgAddRateLimit := ratelimittypes.MsgAddRateLimit{
Denom: nativeDenom,
ChannelId: path.EndpointB.ChannelID,
ChannelID: path.EndpointB.ChannelID,
MaxPercentSend: sdk.NewInt(5), // 5_000_000_000 < minRateLimitAmount(10_000_000_000) => RateLimit = 10_000_000_000
MaxPercentRecv: sdk.NewInt(5), // 5_000_000_000 < minRateLimitAmount(10_000_000_000) => RateLimit = 10_000_000_000
MinRateLimitAmount: sdk.NewInt(10_000_000_000),
Expand Down
4 changes: 2 additions & 2 deletions x/ratelimit/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions x/transfermiddleware/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ func (keeper Keeper) GetNativeDenomByIBCDenomSecondaryIndex(ctx sdk.Context, ibc

func (keeper Keeper) GetTotalEscrowedToken(ctx sdk.Context) (coins sdk.Coins) {
keeper.IterateParaTokenInfos(ctx, func(index int64, info types.ParachainIBCTokenInfo) (stop bool) {
escrowIbcCoin := keeper.bankKeeper.GetBalance(ctx, transfertypes.GetEscrowAddress(transfertypes.PortID, info.ChannelId), info.IbcDenom)
escrowNativeCoin := keeper.bankKeeper.GetBalance(ctx, transfertypes.GetEscrowAddress(transfertypes.PortID, info.ChannelId), info.NativeDenom)
escrowIbcCoin := keeper.bankKeeper.GetBalance(ctx, transfertypes.GetEscrowAddress(transfertypes.PortID, info.ChannelID), info.IbcDenom)
escrowNativeCoin := keeper.bankKeeper.GetBalance(ctx, transfertypes.GetEscrowAddress(transfertypes.PortID, info.ChannelID), info.NativeDenom)
coins = append(coins, escrowIbcCoin, escrowNativeCoin)
return false
})
Expand Down

0 comments on commit ce98d47

Please sign in to comment.