Skip to content

Commit

Permalink
Fix rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreadinenno committed Sep 20, 2024
1 parent 904222b commit e7a70da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
7 changes: 7 additions & 0 deletions src/strategies/BaseAaveLeverageStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ abstract contract BaseAaveLeverageStrategy is BaseStrategy, IFlashLoanReceiver {
(ltv, , ) = _getCurrentLTV();
}

function convertToUnderlyingShares(
uint256 assets,
uint256 shares
) public view override returns (uint256) {
revert();
}

/*//////////////////////////////////////////////////////////////
MANAGEMENT LOGIC
//////////////////////////////////////////////////////////////*/
Expand Down
19 changes: 0 additions & 19 deletions src/strategies/lido/WstETHLooper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -141,23 +141,4 @@ contract WstETHLooper is BaseAaveLeverageStrategy {
IERC20(asset()).transfer(recipient, wstETHBalance);
}
}

/*//////////////////////////////////////////////////////////////
NOT IMPLEMENTED
//////////////////////////////////////////////////////////////*/

function convertToUnderlyingShares(
uint256 assets,
uint256 shares
) public view override returns (uint256) {
revert();
}

function claim() internal override returns (bool success) {
revert();
}

function rewardTokens() external view override returns (address[] memory) {
revert();
}
}
9 changes: 6 additions & 3 deletions src/vaults/MultiStrategyVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ contract MultiStrategyVault is
address(strategy),
withdrawableAssets
);
}
}
}
}
}
Expand Down Expand Up @@ -660,8 +660,11 @@ contract MultiStrategyVault is
* @param allocations An array of structs each including the strategyIndex to withdraw from and the amount of assets
*/
function pullFunds(Allocation[] calldata allocations) external onlyOwner {
_pullFunds(allocations);
}

function _pullFunds(Allocation[] calldata allocations) internal {
uint256 len = allocations.length;

for (uint256 i; i < len; i++) {
if (allocations[i].amount > 0) {
strategies[allocations[i].index].withdraw(
Expand Down Expand Up @@ -893,4 +896,4 @@ contract MultiStrategyVault is
)
);
}
}
}

0 comments on commit e7a70da

Please sign in to comment.