Skip to content

Commit

Permalink
EF: mitigate high severity vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
a17 committed Jan 2, 2025
1 parent 7b1cb9a commit da605eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strategies/EqualizerFarmStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ contract EqualizerFarmStrategy is LPStrategyBase, FarmingStrategyBase {
function _withdrawUnderlying(uint amount, address receiver) internal override {
IFactory.Farm memory farm = _getFarm();
IGaugeEquivalent(farm.addresses[0]).withdraw(amount);
IERC20(farm.pool).transfer(receiver, amount);
IERC20(farm.pool).safeTransfer(receiver, amount);
StrategyBaseStorage storage $base = _getStrategyBaseStorage();
$base.total -= amount;
}
Expand Down

0 comments on commit da605eb

Please sign in to comment.