Submitted by Testerbot
The formula for a users score depends on the xvs staked and the capital. One core variable in the calculation of a users score is alpha which represents the weight for xvs and capital. It has been stated in the documentation that alpha can range from 0 to 1 depending on what kind of incentive the protocol wants to drive (XVS Staking or supply/borrow). Please review Significance of  subsection.
When alpha is 1, xvs has all the weight when calculating a users score, and capital has no weight. If we see the Cobb-Douglas function, the value of capital doesnt matter, it will always return 1 since capital^0 is always 1. So, a user does not need to borrow or lend in a given market since capital does not have any weight in the score calculation.
The issue is an inconsistency in the implementation of the Cobb-Douglas function.
Developers have added an exception: if (xvs == 0 || capital == 0) return 0;
Because of this the code will always return 0 if either the xvs or the capital is zero, but we know this should not be the case when the alpha value is 1.
To check how it works:
In describe('boosted yield') add the following code:
Only return 0 when (xvs = 0 or capital = 0) * and alpha is not 1.
chechu (Venus) confirmed and commented:
0xDjango (Judge) commented:
