Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
a17 committed Dec 24, 2024
1 parent 44a0c17 commit 6b57034
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/strategies/base/StrategyBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ abstract contract StrategyBase is Controllable, IStrategy {
{}

function _previewDepositUnderlyingWrite(uint amount)

Check warning on line 274 in src/strategies/base/StrategyBase.sol

View check run for this annotation

Codecov / codecov/patch

src/strategies/base/StrategyBase.sol#L274

Added line #L274 was not covered by tests
internal
view
virtual
returns (uint[] memory amountsConsumed )
internal
view
virtual
returns (uint[] memory amountsConsumed)
{
return _previewDepositUnderlying(amount);

Check warning on line 280 in src/strategies/base/StrategyBase.sol

View check run for this annotation

Codecov / codecov/patch

src/strategies/base/StrategyBase.sol#L280

Added line #L280 was not covered by tests
}
Expand Down Expand Up @@ -402,9 +402,10 @@ abstract contract StrategyBase is Controllable, IStrategy {
/// @return amountsConsumed Consumed amounts of assets when investing
/// @return value Liquidity value or underlying token amount minted when investing
function _previewDepositAssetsWrite(uint[] memory amountsMax)

Check warning on line 404 in src/strategies/base/StrategyBase.sol

View check run for this annotation

Codecov / codecov/patch

src/strategies/base/StrategyBase.sol#L404

Added line #L404 was not covered by tests
internal
virtual
returns (uint[] memory amountsConsumed, uint value) {
internal
virtual
returns (uint[] memory amountsConsumed, uint value)
{
return _previewDepositAssets(amountsMax);

Check warning on line 409 in src/strategies/base/StrategyBase.sol

View check run for this annotation

Codecov / codecov/patch

src/strategies/base/StrategyBase.sol#L409

Added line #L409 was not covered by tests
}

Check warning

Code scanning / Slither

Dead-code Warning

StrategyBase._previewDepositAssetsWrite(uint256[]) is never used and should be removed

Expand Down

0 comments on commit 6b57034

Please sign in to comment.