31417 - [SC - Insight] Compound claiming transactions will revert if u...
Description
Bug Description
if (_compound) {
(uint256 wethAmount, uint256[] memory normalizedWeights) = amountToCompound(alcxAmount);
require(
msg.value >= wethAmount || WETH.balanceOf(msg.sender) >= wethAmount,
"insufficient balance to compound"
);
// Wrap eth if necessary
if (msg.value > 0) {
WETH.deposit{ value: wethAmount }();
} else IERC20(address(WETH)).safeTransferFrom(msg.sender, address(this), wethAmount);
_depositIntoBalancerPool(wethAmount, alcxAmount, normalizedWeights);
IVotingEscrow(votingEscrow).depositFor(_tokenId, IERC20(lockedToken).balanceOf(address(this))); //@auditImpact
Recommendation
References
Proof Of Concept
Previous31416 - [SC - Insight] Impossible to set boostMultiplier to MIN_BOOSTNext31418 - [SC - Critical] the killed gauge collect claim amount
Last updated
Was this helpful?