diff --git a/client/db/bolt/db.go b/client/db/bolt/db.go index 65b60f8f12..e8c2bdf00d 100644 --- a/client/db/bolt/db.go +++ b/client/db/bolt/db.go @@ -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 { @@ -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) diff --git a/client/db/bolt/upgrades.go b/client/db/bolt/upgrades.go index 06cae630c1..d91fc619fa 100644 --- a/client/db/bolt/upgrades.go +++ b/client/db/bolt/upgrades.go @@ -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, diff --git a/client/mm/exchange_adaptor_test.go b/client/mm/exchange_adaptor_test.go index c568c4541c..3050031693 100644 --- a/client/mm/exchange_adaptor_test.go +++ b/client/mm/exchange_adaptor_test.go @@ -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 diff --git a/client/mm/libxc/binance.go b/client/mm/libxc/binance.go index 28f1552a21..a2256e0228 100644 --- a/client/mm/libxc/binance.go +++ b/client/mm/libxc/binance.go @@ -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 diff --git a/client/mm/mm_basic.go b/client/mm/mm_basic.go index e65fb0da11..3c36d23d61 100644 --- a/client/mm/mm_basic.go +++ b/client/mm/mm_basic.go @@ -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"`