Skip to content
Snippets Groups Projects
Commit b3af95bc authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] `monetaryMass2` => incorrect data from Duniter 1.7?

parent 31be2f2a
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ module.exports = async (req:any, res:any, next:any) => {
tabCurrency[i].monetaryMass = parseFloat((((tabCurrency[i].monetaryMassPerMembers / currentDividend) / meanMonetaryMassAtFullCurrency) * 10000).toFixed(2));
tabCurrency[i].monetaryMassPerMembers = tabCurrency[i].monetaryMass;
}
if (i>0) { tabCurrency[i].derivedChoiceMonetaryMass = parseFloat((((tabCurrency[i].monetaryMass / tabCurrency[i-1].monetaryMass) - 1.0) * 100).toFixed(2)); }
if (i>0) { tabCurrency[i].derivedChoiceMonetaryMass = Math.abs(parseFloat((((tabCurrency[i].monetaryMass / tabCurrency[i-1].monetaryMass) - 1.0) * 100).toFixed(2))); }
}
// Si le client demande la réponse au format JSON, le faire
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment