For example inside createRootSafe, the depth is hardcoded to 8 so any changes to the depth will not be reflected inside this function even though it should.
Non-issue, When the root safe is created, the default value is set to 8 for depthTreeLimit but it can be updated by root safe. Function is implemented correctly.
Github username: @whoismxuse Twitter username: mxuse Submission hash (on-chain): 0xdc8f13fc9f47309f2617214ff27dce956df8a8b85156ef879c55cbaa5ab87f90 Severity: medium
Description:
Description
Inside
PalmeraModule.sol
the following function allows for a new updated depth of the treelimit:As you can see at the end of the function the
depthTreeLimit[org]
gets updated to thenewLimit
.However due to the hardcoding of the
depthTreeLimit
inside several places of the contract, it will still remain 8:For example inside
createRootSafe
, the depth is hardcoded to 8 so any changes to the depth will not be reflected inside this function even though it should.Tools Used
Manual Review
Recommendation
remove the hardcoded
depthTreeLimit[name]
= 8