Skip to content

Commit

Permalink
fixup! Add fixes to cemetery policy
Browse files Browse the repository at this point in the history
  • Loading branch information
samholmes committed Sep 6, 2023
1 parent 8657f1d commit 732d9b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export const makeCemeteryPolicy = (options: CemeteryPolicyOptions): StakePluginP
txs.build(
(gasLimit =>
async function approveSwapRouter({ signer }) {
const allowanceResult = await tokenAContract.allowance(signer.address, spenderAddress)
const allowanceResult = await lpTokenContract.allowance(signer.address, spenderAddress)
if (allowanceResult.gte(expectedLiquidityAmount)) return

const result = await lpTokenContract.connect(signer).approve(spenderAddress, BigNumber.from(expectedLiquidityAmount), {
Expand Down

0 comments on commit 732d9b9

Please sign in to comment.