Skip to content

Commit

Permalink
fix pipe convert in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean committed Sep 23, 2024
1 parent 5dc7859 commit 33c3454
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 206 deletions.
10 changes: 3 additions & 7 deletions projects/sdk/src/lib/silo/PipelineConvert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@ export class PipelineConvert {
stems: BigNumber[],
amounts: BigNumber[],
tokenOut: ERC20Token,
advPipeCalls: AdvancedPipeCallStruct[],
overrides?: ethers.PayableOverrides
advPipeCalls: AdvancedPipeCallStruct[]
) {
return PipelineConvert.sdk.contracts.beanstalk.pipelineConvert(
tokenIn.address,
stems,
amounts,
tokenOut.address,
advPipeCalls,
overrides
advPipeCalls
);
}

Expand Down Expand Up @@ -183,9 +181,7 @@ export class PipelineConvert {
const pipe: AdvancedPipeCallStruct[] = [];

// 0: approve from.well.lpToken to use from.well.lpToken
pipe.push(
PipelineConvert.snippets.erc20Approve(source.well.lpToken, source.well.lpToken.address)
);
pipe.push(PipelineConvert.snippets.erc20Approve(source.well.lpToken, source.well.address));

// 1: remove liquidity from from.well
pipe.push(
Expand Down
Loading

0 comments on commit 33c3454

Please sign in to comment.