57832 sc insight cap logic error in alchemistallocator
Description
Brief/Intro
Vulnerability Details
// Current buggy code in AlchemistAllocator.sol:
uint256 absoluteCap = vault.absoluteCap(id); // Returns: Asset units (wei)
uint256 relativeCap = vault.relativeCap(id); // Returns: BPS units (WAD)
uint256 adjusted = absoluteCap < relativeCap ? absoluteCap : relativeCap; // INCORRECTImpact Details
References
Proof of Concept
Proof of Concept
Previous57516 sc low arbitrary external call in zeroxswapverifier leads to theft of unclaimed yieldNext58718 sc medium in forcerepay protocol fee collection leads to theft of unclaimed yield
Was this helpful?