Skip to content

Commit

Permalink
update divest -> withdraw to use correct abi
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Nov 26, 2024
1 parent 01a56ee commit 80e44f1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/src/app/stake/pool/confirm-withdraw/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,15 @@ export default function ConfirmWithdrawLiquidity() {
address: leoContract.address,
abi: leoContract.abi,
functionName: "divestPosition",
args: [token0.address, BigInt(id ?? 0)],
args: [BigInt(id ?? 0), address],
});
},
[writeContractDivestPosition, token0, leoContract.abi, leoContract.address],
[
writeContractDivestPosition,
address,
leoContract.abi,
leoContract.address,
],
);

// price of the current pool
Expand Down

0 comments on commit 80e44f1

Please sign in to comment.