From 0e50f40fe03649745f148f82a32d9fccd9058f25 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 21 Jun 2022 00:33:05 -0600 Subject: [PATCH] =?utf8?q?feat:=20add=20CrowdNode.stakeMinimum=20(=C4=900.?= =?utf8?q?5),=20as=20per=20terms?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/crowdnode.js | 5 +++++ 1 file changed, 5 insertions(+) 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); +} -- 2.25.1