fix: incentive records get overwritten; key incentive records by ID #5492
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Background
We currently can only create one incentive record per pool id, uptime index, incentive denom and incentive creator:
osmosis/x/concentrated-liquidity/incentives.go
Lines 532 to 537 in bf4d3fe
It looks like if I create the same gauge twice, the first one will get completely overwritten. Incentive records should have IDs in their keys to avoid this overwriting.
Suggested Design
Incentive records are keyed by ID
Acceptance Criteria
The text was updated successfully, but these errors were encountered: