Skip to content

Commit

Permalink
Lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KMKoushik committed Jun 15, 2022
1 parent 0dc4b1e commit 4c9bc2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/hardhat/contracts/strategy/CrabStrategyV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ contract CrabStrategyV2 is StrategyBase, StrategyFlashSwap, ReentrancyGuard, Own

/**
* @notice Tranfer vault NFT to new contract
* @dev strategy cap is set to 0 to avoid future deposits.
* @dev strategy cap is set to 0 to avoid future deposits.
*/
function transferVault(address _newStrategy) external onlyOwner {
IShortPowerPerp(powerTokenController.shortPowerPerp()).safeTransferFrom(address(this), _newStrategy, vaultId);
_setStrategyCap(0);
IShortPowerPerp(powerTokenController.shortPowerPerp()).safeTransferFrom(address(this), _newStrategy, vaultId);
_setStrategyCap(0);

emit VaultTransferred(_newStrategy, vaultId);
emit VaultTransferred(_newStrategy, vaultId);
}

/**
Expand All @@ -213,7 +213,7 @@ contract CrabStrategyV2 is StrategyBase, StrategyFlashSwap, ReentrancyGuard, Own
* @param _capAmount the maximum strategy collateral in ETH, checked on deposits
*/
function setStrategyCap(uint256 _capAmount) external onlyOwner {
_setStrategyCap(_capAmount);
_setStrategyCap(_capAmount);
}

function _setStrategyCap(uint256 _capAmount) internal {
Expand Down

0 comments on commit 4c9bc2e

Please sign in to comment.