osmosis
osmosis copied to clipboard
feat(twap): pruning "time to keep records" is configured via parameter
Background
In #2294 , we introduced twap pruning. Currently, the period for which the records are kept is hardcoded: https://github.com/osmosis-labs/osmosis/blob/62aa54e894b501a7e8ce8866c3f755a187a8429e/x/twap/listeners.go#L31-L32
Instead, this should be set via parameter.
The implementation should be similar to #2289
Acceptance Criteria
- pruning "time to keep records" is configured via parameter
- tests added to ensure that it is set and used correctly
Hi @vuong177 are you working on this?
Yes. I'm waiting for p0mvn's PR to be merged.