diff --git a/src/clmm/utils/tickarrayBitmap.ts b/src/clmm/utils/tickarrayBitmap.ts
index 24f08f4d..239543f4 100644
--- a/src/clmm/utils/tickarrayBitmap.ts
+++ b/src/clmm/utils/tickarrayBitmap.ts
@@ -187,7 +187,7 @@ export class TickArrayBitmapExtension {
const tickArrayOffsetInBitmap = this.tickArrayOffsetInBitmap(nextTickArrayStartIndex, tickSpacing)
if (zeroForOne) {
// tick from upper to lower
- // find from highter bits to lower bits
+ // find from higher bits to lower bits
const offsetBitMap = TickUtils.mergeTickArrayBitmap(tickarrayBitmap).shln(
TICK_ARRAY_BITMAP_SIZE - 1 - tickArrayOffsetInBitmap,
)
@@ -203,7 +203,7 @@ export class TickArrayBitmapExtension {
}
} else {
// tick from lower to upper
- // find from lower bits to highter bits
+ // find from lower bits to higher bits
const offsetBitMap = TickUtils.mergeTickArrayBitmap(tickarrayBitmap).shrn(tickArrayOffsetInBitmap)
const nextBit = isZero(512, offsetBitMap) ? null : trailingZeros(512, offsetBitMap)
diff --git a/src/marshmallow/index.ts b/src/marshmallow/index.ts
index d5385dc7..462fd6bb 100644
--- a/src/marshmallow/index.ts
+++ b/src/marshmallow/index.ts
@@ -24,7 +24,7 @@ export class BNLayout
extends Layout {
signed: boolean
constructor(span: number, signed: boolean, property?: P) {
- //@ts-expect-error type wrong for super()'s type different from extends, but it desn't matter
+ //@ts-expect-error type wrong for super()'s type different from extends, but it doesn't matter
super(span, property)
this.blob = blob(span)
this.signed = signed
@@ -41,7 +41,7 @@ export class BNLayout extends Layout {
/** @override */
encode(src: BN, b: Buffer, offset = 0) {
- if (typeof src === 'number') src = new BN(src) // src will pass a number accidently in union
+ if (typeof src === 'number') src = new BN(src) // src will pass a number accidentally in union
if (this.signed) {
src = src.toTwos(this.span * 8)
}
@@ -54,7 +54,7 @@ export class WideBits extends Layout extends Layout {
encoder: (src: U) => T
constructor(layout: Layout, decoder: (data: T) => U, encoder: (src: U) => T, property?: P) {
- //@ts-expect-error type wrong for super()'s type different from extends , but it desn't matter
+ //@ts-expect-error type wrong for super()'s type different from extends , but it doesn't matter
super(layout.span, property)
this.layout = layout
this.decoder = decoder
@@ -147,7 +147,7 @@ export class OptionLayout extends Layout {
discriminator: Layout
constructor(layout: Layout, property?: P) {
- //@ts-expect-error type wrong for super()'s type different from extends , but it desn't matter
+ //@ts-expect-error type wrong for super()'s type different from extends , but it doesn't matter
super(-1, property)
this.layout = layout
this.discriminator = _u8()