feat(CL Fees): implement creating fee accumulator at pool creation #3916
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Background
In #3893, we prototyped the concentrated liquidity fees.
Now, we need to split that PR into multiple components with tests.
This issue focuses on implementing and testing the
createFeeAccumulator
method and its dependencies. The method is to be called at pool creation inInitializePool
.We also need to add appropriate godocs and tests to all new logic.
Suggested Design
From #3893, we need to extract this method, add tests for it,
Next, we need to call it from
InitializePool
.InitializePool
should also be tested to make sure that the accumulator is initialized correctly.Relevant Resources
The following resources were used to implement the
accum
package that is required for implementing concentrated liquidity fees:Dependencies
This issue is blocked on: #3903 being merged. Branch off of #3903 if starting before its completion
Acceptance Criteria
createFeeAccumulator
helper is implementedcreateFeeAccumulator
inInitializePool
inx/concentrated-liquidity
InitializePool
added to make sure that the accumulator is initialized correctlyThe text was updated successfully, but these errors were encountered: