Skip to content
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

[CL Incentives] Allow incentives from governance proposals to bypass scaling gas costs #4662

Closed
Tracked by #3991
AlpinYukseloglu opened this issue Mar 18, 2023 · 2 comments
Labels
F: concentrated-liquidity Tracking the development of concentrated liquidity feature to improve filtering on the project board

Comments

@AlpinYukseloglu
Copy link
Contributor

Background

In #4517, we introduced a scaling gas cost for new incentive records on each uptime accumulator. This was to prevent the DoS vector of spamming new records on a pool that then need to be linearly iterated over every time the pool is poked.

It also, however, had the byproduct of risking driving up costs for gov prop-driven incentives, which are often the most frequently updated incentives and therefore would need to consistently be creating new records with scaling gas costs.

Since we can assume that going through a gov prop has stronger guarantees around preventing spam than scaling gas costs do, it would be prudent for us to special-case records that originate from governance proposals so they do not charge additional gas.

Suggested Design

Acceptance Criteria

  • All new and existing tests should pass
@AlpinYukseloglu AlpinYukseloglu added the F: concentrated-liquidity Tracking the development of concentrated liquidity feature to improve filtering on the project board label Mar 18, 2023
@ValarDragon
Copy link
Member

ValarDragon commented Mar 20, 2023

I'm confused by the third point, since gov props don't pay gas?

Gov proposals are only executed in end block code.

@AlpinYukseloglu
Copy link
Contributor Author

I'm confused by the third point, since gov props don't pay gas?

Gov proposals are only executed in end block code.

Oh wow TIL (makes complete sense in hindsight). The suggestions in this issue were out of date and not going to be implemented anyway but this is good to know.

Closing this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F: concentrated-liquidity Tracking the development of concentrated liquidity feature to improve filtering on the project board
Projects
Archived in project
Development

No branches or pull requests

2 participants