We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1642d5f commit 67b7445Copy full SHA for 67b7445
contracts/adapters/MorphoLeverageStrategyExtension.sol
@@ -615,7 +615,8 @@ contract MorphoLeverageStrategyExtension is BaseExtension {
615
* OPERATOR ONLY: Withdraw entire balance of ETH in this contract to operator. Rebalance must not be in progress
616
*/
617
function withdrawEtherBalance() external onlyOperator noRebalanceInProgress {
618
- msg.sender.transfer(address(this).balance);
+ (bool success, ) = msg.sender.call{value: address(this).balance}("");
619
+ require(success, "Ether transfer failed");
620
}
621
622
receive() external payable {}
0 commit comments