Should we introduce FlowAdminHandler or will that be an overkill?
#239
Replies: 3 comments
-
|
Yes, we should, and no, it wouldn't be overkill. A bug that is only accessible via an admin entry point is still a bug; it would create an incentive for hackers to break into our multisigs. The invariants make sense to me. |
Beta Was this translation helpful? Give feedback.
-
|
We should, I don't think it's an overkill, that's what I've also wanted to recommend in the PR #222 (comment) Now, with the ERC20 recover mechanism (more admin related functions) it is even more useful. |
Beta Was this translation helpful? Give feedback.
-
|
Great. Thank you for the feedback. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Given that now we have two admin related functions:
recoverandcollectProtocolRevenue, should we have invariants that make sure that any of the admin functions don't lead to an unexpected behaviour? Or will it be an overkill given they are only callable by admin?It would require us to introduce the following changes:
FlowAdminHandlercollectRevenueandrecoverinFlowAdminHandlermapping (IERC20 token => uint256) protocolRevenueandmapping (IERC20 token => uint256) aggregateBalancein FlowStoretoken.transferso that invariant can make random deposits to Flow contractAnd we can then introduce the following invariants:
cc @sablier-labs/solidity
Beta Was this translation helpful? Give feedback.
All reactions