balanceAtEpochOf will revert #257
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
Lines of code
https://github.com/code-423n4/2022-05-vetoken/blob/2d7cd1f6780a9bcc8387dea8fecfbd758462c152/contracts/VE3DLocker.sol#L305-L315
Vulnerability details
Impact
The line
for (uint256 i = locks.length - 1; i + 1 != 0; i--) {
relies on uint256 underflow and overflow, which would revert in solidity ^0.8.0Proof of Concept
https://github.com/code-423n4/2022-05-vetoken/blob/2d7cd1f6780a9bcc8387dea8fecfbd758462c152/contracts/VE3DLocker.sol#L305-L315
The text was updated successfully, but these errors were encountered: