[CL Incentives] Allow incentives from governance proposals to bypass scaling gas costs #4662
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
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
ConsumeGas
step introduced increateIncentive
in [CL Incentives] Scale gas cost for new incentives by number of existing incentives #4517Acceptance Criteria
The text was updated successfully, but these errors were encountered: