Function: _maxUserReserves()
The internal view function which calculate the max amount of reserves which can be added. The function is used by extrernal view function maxInvest
.
Branches and code coverage
Intended branches
Scales and rounds correctly depending on the oracle config.
Returns
maxTokenAmount
if debt is zero.