Skip to content

Commit

Permalink
Use approve transaction for liquidity removal to work with recent wal…
Browse files Browse the repository at this point in the history
…lets
  • Loading branch information
baguette-exchange committed Dec 26, 2024
1 parent 64e2be4 commit 345c9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/RemoveLiquidity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function RemoveLiquidity({
const [signatureData, setSignatureData] = useState<{ v: number; r: string; s: string; deadline: number } | null>(null)
const [approval, approveCallback] = useApproveCallback(parsedAmounts[Field.LIQUIDITY], chainId ? ROUTER_ADDRESS[chainId] : ROUTER_ADDRESS[ChainId.AVALANCHE])

const isArgentWallet = false
const isArgentWallet = true

async function onAttemptToApprove() {
if (!pairContract || !pair || !library || !deadline) throw new Error('missing dependencies')
Expand Down

0 comments on commit 345c9e4

Please sign in to comment.