From 67b41f047ad0ba295f8a83df12c5060a8022c6b4 Mon Sep 17 00:00:00 2001 From: dylanVerstraete Date: Wed, 19 Jan 2022 11:42:51 +0100 Subject: [PATCH] fix: hardcode amount dropped --- controllers/substrate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/substrate.js b/controllers/substrate.js index 40f3d45..d6c4ae1 100644 --- a/controllers/substrate.js +++ b/controllers/substrate.js @@ -5,7 +5,7 @@ const SUBSTRATE_ERRORS = require('../lib/errors') // const whitelist = require('../whitelist.json') // const { KYC_PUBLIC_KEY } = process.env -const AMOUNT = parseInt(process.env.ACTIVATION_AMOUNT) || 1 +const AMOUNT = 1000000 async function activate (body) { const { substrateAccountID } = body @@ -17,6 +17,8 @@ async function activate (body) { httpError(400) } + console.log(`amount: ${AMOUNT}`) + const balance = await client.getBalanceOf(keyring.address) if (balance.free === 0) {