Skip to content

Commit

Permalink
Added reentry checks on new AMO pre keeping functions
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Sep 1, 2023
1 parent a6c593e commit e1d192e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/contracts/strategies/ConvexEthMetaStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
external
onlyStrategist
improveMetapoolBalance
nonReentrant
{
IVault(vaultAddress).mintForStrategy(_oTokens);

Expand Down Expand Up @@ -417,6 +418,7 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
external
onlyStrategist
improveMetapoolBalance
nonReentrant
{
// Withdraw Metapool LP tokens from Convex and remove OTokens from the Metapool
uint256 oethToBurn = _withdrawAndRemoveFromPool(
Expand Down Expand Up @@ -451,6 +453,7 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
external
onlyStrategist
improveMetapoolBalance
nonReentrant
{
// Withdraw Metapool LP tokens from Convex and remove ETH from the Metapool
uint256 ethAmount = _withdrawAndRemoveFromPool(_lpTokens, ethCoinIndex);
Expand Down

0 comments on commit e1d192e

Please sign in to comment.