From 6c9a13b3293ed01550213f5b7356dd10b76235ca Mon Sep 17 00:00:00 2001 From: uncoolzero <107518216+uncoolzero@users.noreply.github.com> Date: Mon, 15 Jan 2024 16:09:14 -0300 Subject: [PATCH] fix approve/transfer --- projects/sdk/src/lib/farm/LibraryPresets.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/sdk/src/lib/farm/LibraryPresets.ts b/projects/sdk/src/lib/farm/LibraryPresets.ts index f60f3a05c8..5c5661f8f9 100644 --- a/projects/sdk/src/lib/farm/LibraryPresets.ts +++ b/projects/sdk/src/lib/farm/LibraryPresets.ts @@ -459,7 +459,7 @@ 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 = { @@ -467,7 +467,7 @@ export class LibraryPresets { 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);