-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: immutable controllerGasLimit enforced with GAS opcode #739
Comments
This was introduced to fix #221. We would rather a call to the protocol fee controller ran out of gas, and the protocol fee initialzied to 0, than pools be unable to initialize.
What simpler design did you have in mind? We are open to changing it for a design that fixes both issues! |
|
Why not accept this behavior? |
This should have been the solution. |
In fact the original problem still persists because
happens outside of the |
I think youre looking at an old branch maybe? Theres no Do you mind looking at |
You are right. I was looking at 6b8ec7c. The current version is better than what I was looking at. I suppose I am okay with the protocol fees going to zero in the event of gas cost increases. |
Describe the bug
It is unclear why the controllerGasLimit design was chosen.
As far as I can tell, the immutable controllerGasLimit is a bad mechanism. The gas costs of opcodes are not fixed and can change with a protocol upgrade. Hard forks can and have increased gas costs. This
gasleft
mechanism is not future-proof and is worse than a simpler design.Expected Behavior
Revert if protocolFeesForPool fails.
To Reproduce
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: