chore: fix some comments (#1980)

Signed-off-by: riyueguang <rustruby@outlook.com>
This commit is contained in:
riyueguang 2024-07-27 04:38:06 +09:00 committed by GitHub
parent 608f70b20a
commit f229afce1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -431,7 +431,7 @@ func (suite *AssetTestSuite) TestIncrementOutgoingAssetSupply() {
true,
},
{
"outoing + amount > current",
"outgoing + amount > current",
args{
coin: c("bnb", 36),
},

View File

@ -201,7 +201,7 @@ func (k Keeper) SynchronizeInterestForRiskyCDPs(ctx sdk.Context, targetRatio sdk
k.cdc.MustUnmarshal(bz, &cdp)
if debtParam.Denom != cdp.GetTotalPrincipal().Denom {
panic(fmt.Sprintf("unkown debt param %s", cdp.GetTotalPrincipal().Denom))
panic(fmt.Sprintf("unknown debt param %s", cdp.GetTotalPrincipal().Denom))
}
//

View File

@ -7,7 +7,7 @@ import (
proto "github.com/cosmos/gogoproto/proto"
)
// DefaultNextProposalID is the starting poiint for proposal IDs.
// DefaultNextProposalID is the starting point for proposal IDs.
const DefaultNextProposalID uint64 = 1
// NewGenesisState returns a new genesis state object for the module.

View File

@ -98,7 +98,7 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState {
}
previousAccrualTime, f := k.GetPreviousAccrualTime(ctx, mm.Denom)
if !f {
// Goverance adds new params at end of block, but mm's previous accrual time is set in begin blocker.
// Governance adds new params at end of block, but mm's previous accrual time is set in begin blocker.
// If a new money market is added and chain is exported before begin blocker runs, then the previous
// accrual time will not be found. We can't set it here because our ctx doesn't contain current block
// time; if we set it to ctx.BlockTime() then on the next block it could accrue interest from Jan 1st

View File

@ -216,7 +216,7 @@ func TestBasePool_AddLiquidity(t *testing.T) {
actualA, actualB, actualShares := pool.AddLiquidity(tc.desiredA, tc.desiredB)
// assert correct values are retruned
// assert correct values are returned
assert.Equal(t, tc.expectedA, actualA, "deposited A liquidity not equal")
assert.Equal(t, tc.expectedB, actualB, "deposited B liquidity not equal")
assert.Equal(t, tc.expectedShares, actualShares, "calculated shares not equal")