Skip to content

Commit

Permalink
add permit
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyzhao451 committed Jan 22, 2025
1 parent fcbbed8 commit 123b4ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/viem/transaction/getDecreaseLiquiditySingleTx.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApertureSupportedChainId, getAMMInfo } from '@/index';
import { ApertureSupportedChainId, getAMMInfo, PermitInfo } from '@/index';
import { RemoveLiquidityOptions } from '@aperture_finance/uniswap-v3-sdk';
import { AutomatedMarketMakerEnum } from 'aperture-lens/dist/src/viem';
import { Address, Hex, PublicClient, TransactionRequest } from 'viem';
Expand Down Expand Up @@ -40,6 +40,7 @@ export async function getDecreaseLiquiditySingleTx(
token0FeeAmount: bigint = 0n,
token1FeeAmount: bigint = 0n,
isUnwrapNative = true,
permitInfo?: PermitInfo,
): Promise<TransactionRequest> {
if (positionDetails === undefined) {
positionDetails = await PositionDetails.fromPositionId(
Expand Down Expand Up @@ -70,6 +71,7 @@ export async function getDecreaseLiquiditySingleTx(
token1FeeAmount,
swapData,
isUnwrapNative,
permitInfo
);
return {
to: getAMMInfo(chainId, amm)!.apertureAutomanV4,
Expand Down

0 comments on commit 123b4ef

Please sign in to comment.