[CL Incentives] Key incentive records by owner address to prevent DoS/trolling #4515
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Background
We currently key incentive records by
poolId
,denom
, andminUptime
. While this is technically sufficient and robust, it allows for any user to dust each uptime accumulator with a denom and essentially prevent that denom from being used for incentives.This became much bigger of an issue when we constrained the supported uptimes, since it becomes trivially easy to do this.
Suggested Design
incentiveOwner
to the end of the incentive record key. This prevents anyone from being blocked from creating incentives due to existing incentives on the pool. This will require updating incentive record getters and setters.minUptime
in front ofdenom
in the key and then implement aGetAllIncentiveRecordsForUptime
function that gathers all the incentives for a givenpoolId | minUptime
from stateAcceptance Criteria
The text was updated successfully, but these errors were encountered: