diff --git a/x/swap/types/base_pool.go b/x/swap/types/base_pool.go index fcc2e6b600..264fe40746 100644 --- a/x/swap/types/base_pool.go +++ b/x/swap/types/base_pool.go @@ -377,21 +377,21 @@ func (p *BasePool) assertFeeIsValid(fee sdk.Dec) { } } -// assertSharesPositive panics if shares is zero or negative +// assertSharesArePositive panics if shares is zero or negative func (p *BasePool) assertSharesArePositive(shares sdkmath.Int) { if !shares.IsPositive() { panic("invalid value: shares must be positive") } } -// assertSharesLessThanTotal panics if the number of shares is greater than the total shares +// assertSharesAreLessThanTotal panics if the number of shares is greater than the total shares func (p *BasePool) assertSharesAreLessThanTotal(shares sdkmath.Int) { if shares.GT(p.totalShares) { panic(fmt.Sprintf("out of bounds: shares %s > total shares %s", shares, p.totalShares)) } } -// assertDepositsPositive panics if a deposit is zero or negative +// assertDepositsArePositive panics if a deposit is zero or negative func (p *BasePool) assertDepositsArePositive(depositA, depositB sdkmath.Int) { if !depositA.IsPositive() { panic("invalid value: deposit A must be positive") diff --git a/x/swap/types/denominated_pool.go b/x/swap/types/denominated_pool.go index c816ce1395..ab124f1328 100644 --- a/x/swap/types/denominated_pool.go +++ b/x/swap/types/denominated_pool.go @@ -154,7 +154,7 @@ func (p *DenominatedPool) coinA(amount sdkmath.Int) sdk.Coin { return sdk.NewCoin(p.denomA, amount) } -// coinA returns a new coin denominated in denomB +// coinB returns a new coin denominated in denomB func (p *DenominatedPool) coinB(amount sdkmath.Int) sdk.Coin { return sdk.NewCoin(p.denomB, amount) }