Limit who can change your fees.
Only the fee-manager role can request a fee change, and it waits out a delay.
What you set up
- The open-source components in your contract
- A fee-manager role
- A delay on fee changes
- Tests for allowed, refused and delayed calls
Fee manager
requests
Change
approved
New fee
live
Any other
caller
Refused
Illustrative