We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code for determining the last reportable epoch is the following:
/** * @notice Returns the fisrt and last epochs that can be reported */ function getCurrentReportableEpochs() public view returns ( uint256 firstReportableEpochId, uint256 lastReportableEpochId ) { return (earliestReportableEpochId, getCurrentEpochId()); } /** * @notice Returns the epochId calculated from current timestamp */ function getCurrentEpochId() public view returns (uint256) { return ( _getTime() .sub(beaconSpec.genesisTime) .div(beaconSpec.slotsPerEpoch) .div(beaconSpec.secondsPerSlot) ); }
The problem is that the current epoch is not yet finalized: for that, two more epochs should pass, so oracles should be prohibited from reporting it.
The text was updated successfully, but these errors were encountered:
That's a very minor issue. While technically true it's non-exploitable with majority of honest (even if buggy) oracles and irrelevant otherwise.
Sorry, something went wrong.
ongrid
No branches or pull requests
The code for determining the last reportable epoch is the following:
The problem is that the current epoch is not yet finalized: for that, two more epochs should pass, so oracles should be prohibited from reporting it.
The text was updated successfully, but these errors were encountered: