Detailed description of the impact of this finding.
wrong implementation of maxHeap.extractMax(); as it should return values but here its not assigned to anything.
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
maxHeap.extractMax();
in Maxheap.sol we have define :
function extractMax() external onlyAdmin returns (uint256, uint256) {
require(size > 0, "Heap is empty");
Lines of code
https://github.com/code-423n4/2023-12-revolutionprotocol/blob/main/packages/revolution/src/CultureIndex.sol#L529
Vulnerability details
Impact
Detailed description of the impact of this finding. wrong implementation of maxHeap.extractMax(); as it should return values but here its not assigned to anything.
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
maxHeap.extractMax();
in Maxheap.sol we have define : function extractMax() external onlyAdmin returns (uint256, uint256) { require(size > 0, "Heap is empty");
so it should be some return value.
Tools Used
Manual Analysis
Recommended Mitigation Steps
(uint256, uint256)=maxHeap.extractMax();
Assessed type
Context