Skip to content

Commit

Permalink
fix approve/transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Jan 15, 2024
1 parent 7f9e92e commit 6c9a13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/sdk/src/lib/farm/LibraryPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,15 @@ export class LibraryPresets {
copySlot: 0,
pasteSlot: 1
};
const approveBack = new sdk.farm.actions.ApproveERC20(well.lpToken, sdk.contracts.beanstalk.address, approveClipboard);
const approveBack = new sdk.farm.actions.ApproveERC20(toToken, sdk.contracts.beanstalk.address, approveClipboard);

// Transfers toToken back to Beanstalk, from Pipeline.
const transferClipboard = {
tag: "swapOutput",
copySlot: 0,
pasteSlot: 2
};
const transferToBeanstalk = new sdk.farm.actions.TransferToken(well.address, account, FarmFromMode.EXTERNAL, FarmToMode.INTERNAL, transferClipboard);
const transferToBeanstalk = new sdk.farm.actions.TransferToken(toToken.address, account, FarmFromMode.EXTERNAL, FarmToMode.INTERNAL, transferClipboard);

result.push(transfer);

Expand Down

0 comments on commit 6c9a13b

Please sign in to comment.