The inheritance manager has functionality to keep track of the owner wallet activity to adjust the timelock for distributing inheritance, but this functionality is not used in all the functions. This will cause the contract to not update the timelock duration and allow the `InheritanceManager::inherit` function to be called even when there is owner activity.
In the InheritanceManager.sol
contract , _setDeadline
function is not called after createEstateNFT
, removeBeneficiary
and contractInteractions
functions.
POC
Add this test to InheritanceManagerTest.t.sol
The deadline would not be updated when the above functions are called, potentially causing the owner wallet to appear inactive, which would allow `inherit` to be called when it's not supposed to be.
manual review, foundry test suite
Add `_setDeadline()` at the end of all the target functions
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.