56367 sc insight staker gas optimization public to external visibility
Brief / Intro
Vulnerability Details
// Line 33-35
function totalStake() public view returns (uint256 totalVET, uint256 totalWeight) {
return StakerNative(address(this)).native_totalStake();
}
// Line 40-42
function queuedStake() public view returns (uint256 queuedVET) {
return StakerNative(address(this)).native_queuedStake();
}Impact Details
Recommended Fix
Test Verification
References
Proof of Concept
Previous56403 bc insight there is a problem in the dpos threshold switch undercounts votes at hayabusa activation Next56362 bc insight during addvalidation if pos not active authority native env state get should consume double the gas
Was this helpful?