Skip to content

Commit

Permalink
docs: remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mkflow27 committed Nov 26, 2024
1 parent c1544e3 commit 1eecce3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions typescript/src/hooks/directionalFeeHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ export class DirectionalFeeHook implements HookBase {
): { success: boolean; dynamicSwapFee: bigint } {
const lastBalancesLiveScaled18 = hookState.balancesLiveScaled18;

// TODO: Confirm if `SwapInput` is already tokenIn and TokenOut or just TokenGiven and TokenCalculated.
// Depending on the answer, the index can be assumed to be 0 and 1 for in and out.
// If it is not, we need to find the index of the token in the pool.

const tokenInIndex = hookState.tokens
.map((token) => token.address.toLowerCase())
.indexOf(params.tokenIn.toLowerCase());
Expand Down

0 comments on commit 1eecce3

Please sign in to comment.