Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Valid

`contractInteractions` does not reset the timer

Summary

IMPACT : LOW
Likelihood : Medium

the contractInteractions function does not reset the timer.

Impact

Owner might think that he is keeping the wallet active while actually it is getting deactivated slowly. causing that the beneficiaries could access the funds before intended

Recommendation

make sure the timer resets

function contractInteractions(
address _target,
bytes calldata _payload,
uint256 _value,
bool _storeTarget
) external nonReentrant onlyOwner {
(bool success, bytes memory data) = _target.call{value: _value}(
_payload
);
require(success, "interaction failed");
if (_storeTarget) {
interactions[_target] = data;
}
+ _setDeadline();
}
Updates

Lead Judging Commences

0xtimefliez Lead Judge 3 months ago
Submission Judgement Published
Validated
Assigned finding tags:

functions do not reset the deadline

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.