I am doing something similar. What I have to do is to update price after every purchase. So, override the “_updatePurchasingState” method and update my rate there? I am also not using the role here as the method is internal. How does this solution sound in general?
Overriding _updatePurchasingState
seems the way to do this, though be careful if you do any checks in _postValidatePurchase
that depend on rate.
Overall that sounds ok, though I recommend appropriate testing (target 100% coverage) and appropriate auditing, as well as getting advice on regulatory requirements and ensuring that you are clear with your community of how the rate will change over time.
1 Like
Roger that, I will be going through thorough testing. About communicating with community, we will have an entire medium article and about it
1 Like