diff --git a/modules/rate-limiting/keeper/packet.go b/modules/rate-limiting/keeper/packet.go index 1852db66..69ced0b7 100644 --- a/modules/rate-limiting/keeper/packet.go +++ b/modules/rate-limiting/keeper/packet.go @@ -146,8 +146,8 @@ func ParseDenomFromRecvPacket(packet channeltypes.Packet, packetData transfertyp // For a SEND packet, the Stride channelID is the SOURCE channel // For a RECEIVE packet, the Stride channelID is the DESTINATION channel // -// The Source and Desination are defined from the perspective of a packet recipient -// Meaning, when a send packet lands on a the host chain, the "Source" will be the Stride Channel, +// The Source and Designation are defined from the perspective of a packet recipient +// Meaning, when a send packet lands on the host chain, the "Source" will be the Stride Channel, // and the "Destination" will be the Host Channel // And, when a receive packet lands on a Stride, the "Source" will be the host zone's channel, // and the "Destination" will be the Stride Channel diff --git a/modules/rate-limiting/testing/simapp/apptesting/test_helpers.go b/modules/rate-limiting/testing/simapp/apptesting/test_helpers.go index c35f761a..2f70d689 100644 --- a/modules/rate-limiting/testing/simapp/apptesting/test_helpers.go +++ b/modules/rate-limiting/testing/simapp/apptesting/test_helpers.go @@ -34,7 +34,7 @@ func (s *AppTestHelper) Setup() { s.TestAccs = CreateRandomAccounts(3) } -// Generate random account addresss +// Generate random account addresses func CreateRandomAccounts(numAccts int) []sdk.AccAddress { testAddrs := make([]sdk.AccAddress, numAccts) for i := 0; i < numAccts; i++ { diff --git a/modules/rate-limiting/types/quota.go b/modules/rate-limiting/types/quota.go index caf3bafe..3442ed95 100644 --- a/modules/rate-limiting/types/quota.go +++ b/modules/rate-limiting/types/quota.go @@ -7,7 +7,7 @@ import ( // CheckExceedsQuota checks if new in/out flow is going to reach the max in/out or not func (q *Quota) CheckExceedsQuota(direction PacketDirection, amount sdkmath.Int, totalValue sdkmath.Int) bool { // If there's no channel value (this should be almost impossible), it means there is no - // supply of the asset, so we shoudn't prevent inflows/outflows + // supply of the asset, so we shouldn't prevent inflows/outflows if totalValue.IsZero() { return false }