Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
fix: hardcode amount dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVerstraete committed Jan 19, 2022
1 parent 02e2874 commit 67b41f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/substrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 67b41f0

Please sign in to comment.