Skip to content

Commit

Permalink
add small delay for chef rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
C2tP-C2tP committed May 17, 2021
1 parent 0ec6514 commit 047f4ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/migrations/1_initial_migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 047f4ed

Please sign in to comment.