From: AJ ONeal Date: Tue, 21 Jun 2022 06:33:05 +0000 (-0600) Subject: feat: add CrowdNode.stakeMinimum (Đ0.5), as per terms X-Git-Tag: v1.2.0~2 X-Git-Url: https://git.josue.xyz/?p=crowdnode.js%2F.git;a=commitdiff_plain;h=0e50f40fe03649745f148f82a32d9fccd9058f25 feat: add CrowdNode.stakeMinimum (Đ0.5), as per terms --- diff --git a/lib/crowdnode.js b/lib/crowdnode.js index 5c5401f..eec0f61 100644 --- a/lib/crowdnode.js +++ b/lib/crowdnode.js @@ -31,6 +31,7 @@ CrowdNode._baseUrl = CrowdNode.main.baseUrl; CrowdNode.offset = 20000; CrowdNode.duffs = 100000000; CrowdNode.depositMinimum = 10000; +CrowdNode.stakeMinimum = toDuff(0.5); /** * @type {Record} @@ -499,3 +500,7 @@ if (require.main === module) { console.error(err); }); } + +function toDuff(dash) { + return Math.round(parseFloat(dash) * DUFFS); +}