File tree Expand file tree Collapse file tree
contracts/core/StandardizedYield/implementations/Midas Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ pragma solidity ^0.8.23;
44import "../../SYBase.sol " ;
55import "../../../../interfaces/Midas/IDepositVault.sol " ;
66import "../../../../interfaces/Midas/IRedemptionVault.sol " ;
7- import "../../../../interfaces/Midas/IDataFeed.sol " ;
87import "./libraries/DecimalsCorrectionLibrary.sol " ;
98import "./libraries/MidasAdapterLib.sol " ;
109
@@ -54,6 +53,7 @@ contract PendleMidasSY is SYBase {
5453 uint256 amountSharesToRedeem
5554 ) internal override returns (uint256 amountTokenOut ) {
5655 uint256 balanceBefore = _selfBalance (IERC20 (tokenOut));
56+ // no need to approve as it was already done in the constructor
5757 IRedemptionVault (redemptionVault).redeemInstant (tokenOut, amountSharesToRedeem, 0 );
5858 amountTokenOut = balanceBefore - _selfBalance (IERC20 (tokenOut));
5959 _transferOut (tokenOut, receiver, amountTokenOut);
You can’t perform that action at this time.
0 commit comments