Open alexeiZamyatin opened 5 years ago
Cheap: vault tracks all emitted events and submits the expired commit ids - but vault must be online. Alternative/additionally: vault calls claimAllFailed function, which checks all failed or expired commitments
claimAllFailed
In any case: add getAllExpiredCommitments(address vaultAddress) which returns all expired commitments for each vault (off chain)
add getAllExpiredCommitments(address vaultAddress)
Cheap: vault tracks all emitted events and submits the expired commit ids - but vault must be online. Alternative/additionally: vault calls
claimAllFailed
function, which checks all failed or expired commitments