Skip to content

Commit

Permalink
Removed improveMetapoolBalance from existing ETH AMO functions
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Sep 1, 2023
1 parent 4ee8d0e commit 6f0d148
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions contracts/contracts/strategies/ConvexEthMetaStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
override
onlyVault
nonReentrant
improveMetapoolBalance
{
_deposit(_weth, _amount);
}
Expand Down Expand Up @@ -236,13 +235,7 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
/**
* @notice Deposit the strategy's entire balance of WETH into the Curve Metapool
*/
function depositAll()
external
override
onlyVault
nonReentrant
improveMetapoolBalance
{
function depositAll() external override onlyVault nonReentrant {
uint256 balance = weth.balanceOf(address(this));
if (balance > 0) {
_deposit(address(weth), balance);
Expand All @@ -264,7 +257,7 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
address _recipient,
address _weth,
uint256 _amount
) external override onlyVault nonReentrant improveMetapoolBalance {
) external override onlyVault nonReentrant {
require(_amount > 0, "Invalid amount");
require(_weth == address(weth), "Can only withdraw WETH");

Expand Down Expand Up @@ -331,13 +324,7 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
* @notice Remove all ETH and OETH from the Metapool, burn the OETH,
* convert the ETH to WETH and transfer to the Vault contract.
*/
function withdrawAll()
external
override
onlyVaultOrGovernor
nonReentrant
improveMetapoolBalance
{
function withdrawAll() external override onlyVaultOrGovernor nonReentrant {
uint256 gaugeTokens = cvxRewardStaker.balanceOf(address(this));
_lpWithdraw(gaugeTokens);

Expand Down

0 comments on commit 6f0d148

Please sign in to comment.