30711 - [SC - Low] The result of the AggregatorVInterface is not v...
Description
Vulnerability Details
function amountToCompound(uint256 _alcxAmount) public view returns (uint256, uint256[] memory) {
// Increased for testing since tests go into future
uint256 staleThreshold = 60 days;
(uint80 roundId, int256 alcxEthPrice, , uint256 priceTimestamp, uint80 answeredInRound) = priceFeed
.latestRoundData();
require(answeredInRound >= roundId, "Stale price");
require(block.timestamp - priceTimestamp < staleThreshold, "Price is stale");
require(alcxEthPrice > 0, "Chainlink answer reporting 0");
uint256[] memory normalizedWeights = IManagedPool(address(balancerPool)).getNormalizedWeights();
uint256 amount = (((_alcxAmount * uint256(alcxEthPrice)) / 1 ether) * normalizedWeights[0]) /
normalizedWeights[1];
return (amount, normalizedWeights);
}Recommendation
Impact Details
Severity
Proof of Concept
Previous30710 - [SC - Insight] The execution of the proposal has no expirationNext30781 - [SC - Low] It is possible to lower the quorum requirements...
Last updated
Was this helpful?