Replies: 2 comments 2 replies
-
|
Another approach would be to do it like this: https://github.com/fiatdao/fiat-i/blob/main/src/core/utils/Guarded.sol#L17. Though this comes with the overhead of having to check for the Wildcard selector as well. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I ended up implementing this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The current access-control system requires proxy owners to grant granular permissions if they want to let other accounts (i.e. "envoys") execute txs on their behalf:
prb-proxy/src/PRBProxy.sol
Line 40 in 7594489
However, this behavior is somewhat limiting since it asks the end user to sign lots of txs. Given that DeFi protocols typically have many moving pieces, I wonder if it wouldn't make sense to ditch the
selectorin the permission scheme so that owners can grant access to whole target contracts?prb-proxy/src/PRBProxy.sol
Lines 192 to 201 in 7594489
Feel free to cast your vote below. I would be particularly interested in getting a response from @razgraf, @cleanunicorn, @SolcAndMe, and @amarcu :)
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions