You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario 003 added in PR #6243 is failing equity-like-share calculations. Expected values are calculated from this sheet.
The scenario is designed to test the calculation of equity-like-share values in a market with negative growth. Most importantly, it checks the case where for some LPs, at the end of a market period, their growth scaled virtual-stake would be less than their physical-stake and therefore the virtual-stake is set to equal the physical-stake.
The above condition should cause the equity-like-share values to change at the end of a market period as not all LP virtual-stake values are scaled by the same factor.
Observed behaviour
Scenario is passing all checks until the 4th market period (the first period where the condition described above is encountered).
At the end of the 4th market period the following occurs:
all virtual-stake values are correctly calculated.
all equity-like-share values are unchanged (this is the incorrect behaviour).
Essentially it looks like equity-like-share values are not being recalculated at the end of a market period.
Expected behaviour
At the end of the 4th market period the following occurs:
all virtual-stake values are correctly calculated.
all equity-like-share values are updated (this is the correct behaviour).
Essentially it looks like equity-like-share values are not being recalculated at the end of a market period.
Problem encountered
Scenario 003 added in PR #6243 is failing
equity-like-share
calculations. Expected values are calculated from this sheet.The scenario is designed to test the calculation of
equity-like-share
values in a market with negative growth. Most importantly, it checks the case where for some LPs, at the end of a market period, their growth scaledvirtual-stake
would be less than theirphysical-stake
and therefore thevirtual-stake
is set to equal thephysical-stake.
The above condition should cause the
equity-like-share
values to change at the end of a market period as not all LPvirtual-stake
values are scaled by the same factor.Observed behaviour
Scenario is passing all checks until the 4th market period (the first period where the condition described above is encountered).
At the end of the 4th market period the following occurs:
virtual-stake
values are correctly calculated.equity-like-share
values are unchanged (this is the incorrect behaviour).Essentially it looks like
equity-like-share
values are not being recalculated at the end of a market period.Expected behaviour
At the end of the 4th market period the following occurs:
virtual-stake
values are correctly calculated.equity-like-share
values are updated (this is the correct behaviour).Essentially it looks like
equity-like-share
values are not being recalculated at the end of a market period.Steps to reproduce
Manual
Steps to reproduce the behaviour manually:
branch feat/shrinking_market_scenario
in PR feat: Scenario 003 - market with periods of positive and negative growth #6243.core/integration/features/verified/0042-LIQF-fees_rewards_growing_market.feature
Automation
Link to automation and explanation on how to run it to reproduce the problem/bug
Evidence
Additional context
See this sheet for expected calculations
Definition of Done
Before Merging
After Merging
Done
if there is NO requirement for new system-testsThe text was updated successfully, but these errors were encountered: