hey-network/mainchain

View on GitHub
migrations/distribution/grants.js

Summary

Maintainability
A
2 hrs
Test Coverage
const toTokens = require('../helpers/toTokens');
const NOW = Date.now();

const GRANTS = [
  {
    grantee: '0x3155227a551d5dbe53a8c4c9a10eac39c10016d1',
    value: toTokens(20000),
    start: NOW,
    cliff: NOW + 5 * 24 * 3600,
    end: NOW + 10 * 24 * 3600,
    revokable: false,
  },
  {
    grantee: '0x437f1935285cbd38d9da0810a4e64d8b704191bc',
    value: toTokens(50000),
    start: NOW,
    cliff: NOW + 5 * 24 * 3600,
    end: NOW + 10 * 24 * 3600,
    revokable: false,
  },
];

// Note that for rounding reasons we cannot perform a mapreduce on each grant
// here, so we hardcode the sum of all grants (which serves as an additional
// check, so it's not too bad).
const TOTAL_VESTING = toTokens(70000);

module.exports = {
  GRANTS,
  TOTAL_VESTING,
};