Skip to content

Commit

Permalink
Check asset is WETH when initializing the ETH AMO
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Aug 31, 2023
1 parent 1871217 commit a6c593e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/contracts/strategies/ConvexEthMetaStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
address[] calldata _assets // WETH
) external onlyGovernor initializer {
require(_assets.length == 1, "Must have exactly one asset");
require(_assets[0] == address(weth), "Asset not WETH");

address[] memory pTokens = new address[](1);
pTokens[0] = address(curvePool);
Expand Down

0 comments on commit a6c593e

Please sign in to comment.