Skip to content

Commit

Permalink
chore: fix some typos in comment (#3155)
Browse files Browse the repository at this point in the history
Signed-off-by: damuzhi0810 <[email protected]>
  • Loading branch information
damuzhi0810 authored Jan 30, 2025
1 parent 8326b8e commit e41bf1c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/db/bolt/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -1899,7 +1899,7 @@ func (db *BoltDB) LoadPokes() (pokes []*dexdb.Notification, _ error) {
})
}

// newest buckets gets the nested buckets with the hightest timestamp from the
// newest buckets gets the nested buckets with the highest timestamp from the
// specified master buckets. The nested bucket should have an encoded uint64 at
// the timeKey. An optional filter function can be used to reject buckets.
func newestBuckets(buckets []*bbolt.Bucket, n int, timeKey []byte, filter func([]byte, *bbolt.Bucket) bool) []*keyTimeTrio {
Expand Down Expand Up @@ -2246,7 +2246,7 @@ func (db *BoltDB) DeleteInactiveOrders(ctx context.Context, olderThan *time.Time
return nDeletedOrders, nil
}

// orderSide Returns wether the order was for buying or selling the asset.
// orderSide Returns whether the order was for buying or selling the asset.
func orderSide(tx *bbolt.Tx, oid order.OrderID) (sell bool, err error) {
oidB := oid[:]
ob := tx.Bucket(activeOrdersBucket)
Expand Down
2 changes: 1 addition & 1 deletion client/db/bolt/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var upgrades = [...]upgradefunc{
v3Upgrade,
// v3 => v4 splits orders into active and archived.
v4Upgrade,
// v4 => v5 adds PrimaryCredentials with determinstic client seed, but the
// v4 => v5 adds PrimaryCredentials with deterministic client seed, but the
// only thing we need to do during the DB upgrade is to update the
// db.AccountInfo to differentiate legacy vs. new-style key.
v5Upgrade,
Expand Down
2 changes: 1 addition & 1 deletion client/mm/exchange_adaptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func testDistribution(t *testing.T, baseID, quoteID uint32) {
// Move all of the base balance to cex and max sure we get a withdraw.
setBals(0, totalBase, minDexQuote, minCexQuote)
checkDistribution(0, minDexBase, 0, 0)
// Raise the transfer theshold by one atom and it should zero the withdraw.
// Raise the transfer threshold by one atom and it should zero the withdraw.
a.autoRebalanceCfg.MinBaseTransfer = minDexBase + 1
checkDistribution(0, 0, 0, 0)
a.autoRebalanceCfg.MinBaseTransfer = 0
Expand Down
2 changes: 1 addition & 1 deletion client/mm/libxc/binance.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ type binance struct {
// tokenIDs maps the token's symbol to the list of bip ids of the token
// for each chain for which deposits and withdrawals are enabled on
// binance.
tokenIDs atomic.Value // map[string][]uint32, binance coin ID string -> assset IDs
tokenIDs atomic.Value // map[string][]uint32, binance coin ID string -> asset IDs
minWithdraw atomic.Value // map[uint32]map[uint32]*withdrawInfo

marketSnapshotMtx sync.Mutex
Expand Down
2 changes: 1 addition & 1 deletion client/mm/mm_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (b *basicMMCalculatorImpl) halfSpread(basisPrice uint64) (uint64, error) {
return feeStats.FeeGap / 2, nil
}

// FeeGapStats is info about market and fee state. The intepretation of the
// FeeGapStats is info about market and fee state. The interpretation of the
// various statistics may vary slightly with bot type.
type FeeGapStats struct {
BasisPrice uint64 `json:"basisPrice"`
Expand Down

0 comments on commit e41bf1c

Please sign in to comment.