Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/entities/addLiquidityBoosted/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class AddLiquidityBoostedV3 {
wrapUnderlying[t.index] = t.isUnderlyingToken;
});

// It is allowed not not provide the same amount of TokenAmounts as inputs
// It is allowed not provide the same amount of TokenAmounts as inputs
// as the pool has tokens, in this case, the input tokens are filled with
// a default value ( 0 in this case ) to assure correct amounts in as the pool has tokens.
const sortedTokens = getSortedTokens(tokensIn, input.chainId);
Expand Down
2 changes: 1 addition & 1 deletion src/entities/priceImpact/addLiquidityUnbalancedBoosted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { Token } from '../token';
* 4. swap between tokens zeroing out the `diffs` between `proportionalAmountsOut`
* and `exactAmountsIn`, leaving the remaining diff within a single
* token → `diffFinal` (see code below for detailed steps)
* 5. `amountInitial` will be the the `exactAmountsIn` respective to `diffFinal` token
* 5. `amountInitial` will be the `exactAmountsIn` respective to `diffFinal` token
* 6. price impact ABA = `diffFinal` / `amountInitial` / 2
*
* @param input same input used in the corresponding add liquidity operation
Expand Down
2 changes: 1 addition & 1 deletion src/entities/priceImpact/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class PriceImpact {
* 4. swap between tokens zeroing out the `diffs` between `proportionalAmountsOut`
* and `exactAmountsIn`, leaving the remaining diff within a single
* token → `diffFinal` (see code below for detailed steps)
* 5. `amountInitial` will be the the `exactAmountsIn` respective to `diffFinal` token
* 5. `amountInitial` will be the `exactAmountsIn` respective to `diffFinal` token
* 6. price impact ABA = `diffFinal` / `amountInitial` / 2
*
* @param input same input used in the corresponding add liquidity operation
Expand Down