Independence Note: Write this as a checking function inside a mock test scenario.
Context:
To mitigate impact of admin keys being compromised, we want a hard cap on how much can be withdrawn in a single transaction from the guild treasury.
Objective:
Implement a maximum withdrawal amount check.
Acceptance Criteria:
Technical Pointers:
- This provides an extra layer of protection for the guild's long-term sustainability.
Independence Note: Write this as a checking function inside a mock test scenario.
Context:
To mitigate impact of admin keys being compromised, we want a hard cap on how much can be withdrawn in a single transaction from the guild treasury.
Objective:
Implement a maximum withdrawal amount check.
Acceptance Criteria:
max_withdrawalparameter in the Guild Configuration.withdrawfunction, assert thatamount <= max_withdrawal.ErrorCode::LimitExceededif the amount is too high.Technical Pointers: