QA Report #107
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
reviewed
Issues that Backd has reviewed (just for internal tracking, can ignore this)
https://github.com/code-423n4/2022-04-backd/blob/c856714a50437cb33240a5964b63687c9876275b/backd/contracts/pool/LiquidityPool.sol#L323
the current implementation was set return true, so it has not the same as comment do. cause it was return true if address of the new staker vault for the pool was correct.
##Tool Used
Manual Review
##Recommended Mitigation
Change it or remove it
##Another Occurances
1.StakerVault
2.TopUpKeeperHelper
Since isShutdown was return value false, it would be missbehavior executed after. cause return was false. This implementation usually or common use using logical operator
!
for isShutdown below can be set for good or you can set it into modifier for is it done or not.##Tool Used
Manual Review
##POC
Using this logic
https://www.tabnine.com/code/java/methods/io.netty.util.concurrent.EventExecutor/isShutdown
##Recommended Mitigation
function shutdown() external override onlyVault returns (bool) {
if (!isShutdown) return false;
isShutdown = true;
emit Shutdown();
return true;
}
or you can using this logic :
contract Shutdownable is Ownable {
bool public isShutdown;
}
The text was updated successfully, but these errors were encountered: