From 047f4ed7d8fbdca8ab747779402816473062a019 Mon Sep 17 00:00:00 2001 From: c2tp Date: Mon, 17 May 2021 14:36:45 +0900 Subject: [PATCH] add small delay for chef rewards --- contracts/migrations/1_initial_migration.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/migrations/1_initial_migration.js b/contracts/migrations/1_initial_migration.js index 2a638ef..d53ef53 100644 --- a/contracts/migrations/1_initial_migration.js +++ b/contracts/migrations/1_initial_migration.js @@ -192,8 +192,9 @@ module.exports = function (deployer, network, accounts) { var numberOfBlocks = new BN(6000*365*4); var rewardPerBlock = new BN(chefCvx).div(numberOfBlocks) console.log("chef rewards per block: " +rewardPerBlock.toString()); - var startblock = block;//start immediately + var startblock = Number(block) + 500;//start with small delay var endbonusblock = Number(startblock) + (2*7*6400);//about 2 weeks + console.log("current block: " +block); console.log("chef rewards start on: " +startblock); console.log("chef reward bonus end on: " +endbonusblock); return deployer.deploy(ConvexMasterChef,cvx.address,rewardPerBlock, startblock, endbonusblock )