CarmineOptions / konoha

A toolkit for DAO-like governance on Starknet
Apache License 2.0
29 stars 41 forks source link

Cooldown functionality in Treasury #128

Open tensojka opened 3 weeks ago

tensojka commented 3 weeks ago

In the case governance is hacked, the treasury needs to have a cooldown period (two days). Any transfer out from the treasury is subject to it. During the period, anyone from a list of guardians can come in and cancel not-yet-executed transfer.

Storage layout

transfer_on_cooldown: Map::<u64, Transfer>,
current_transfer_pointer: u64
guardian: Map::<u32, ContractAddress>

External functions:

execute_all_pending cancel_execution

assigned to @faurdent

faurdent commented 3 weeks ago

Thanks

Oshioke-Salaki commented 3 weeks ago

Hello please can I take this up?