Skip to content

Commit

Permalink
chore: remove optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
00xSam committed Nov 29, 2024
1 parent 70aa62b commit f4bc970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts-client/src/amm/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ export async function createMint(
}

export const calculateLockAmounts = (amount: BN, feeWrapperRatio = new Decimal(0)) => {
if (feeWrapperRatio?.lt(0) || feeWrapperRatio?.gt(1)) {
if (feeWrapperRatio.lt(0) || feeWrapperRatio.gt(1)) {
throw new Error('Fee wrapper ratio should be between 0 and 1');
}

Expand Down

0 comments on commit f4bc970

Please sign in to comment.