Skip to content

Commit

Permalink
chore: improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
agualis committed Oct 1, 2024
1 parent 46a2f82 commit ae4198c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { SdkBuildAddLiquidityInput, SdkQueryAddLiquidityOutput } from '../add-li
import { AddLiquidityHandler } from './AddLiquidity.handler'

/**
* Base abstract class that shares common logic shared by v3 and v2/v1 pool handlers
* Base abstract class that shares common logic shared by v3 and v2/v1 pool unbalanced handlers
*/
export abstract class BaseUnbalancedAddLiquidityHandler implements AddLiquidityHandler {
protected helpers: LiquidityActionHelpers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export class UnbalancedAddLiquidityHandler extends BaseUnbalancedAddLiquidityHan
account
)

console.log({ buildCallParams })

const { callData, to, value } = addLiquidity.buildCall(buildCallParams)

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ export async function signPermit2TokenTransfer(
}
}

// TODO: refactor to object parameters
async function signPermit2({
sdkClient,
pool,
humanAmountsIn,
permit2Input,
nonces,
}: SignPermit2Params): Promise<Permit2> {
if (!sdkClient) throw new Error('Missing sdkClient')
const baseInput = constructBaseBuildCallInput({
humanAmountsIn,
slippagePercent: permit2Input.slippagePercent,
Expand All @@ -59,7 +59,7 @@ async function signPermit2({
})
const signature = await Permit2Helper.signAddLiquidityApproval({
...baseInput,
client: sdkClient!,
client: sdkClient,
owner: permit2Input.account,
nonces: baseInput.amountsIn.map(a => nonces[a.token.address]),
})
Expand Down

0 comments on commit ae4198c

Please sign in to comment.