Skip to content

Commit

Permalink
remove hardcoded date
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Mar 15, 2024
1 parent b429c91 commit 0605376
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/deploy-contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,10 @@ async function main() {
);
const block = await provider.getBlock("latest")
const blockTimestamp = block.timestamp
const endDate = "2024-03-14"
const endDateUnix = parseInt(new Date(endDate).getTime() / 1000)
const endDateUnix = Math.floor(Date.now() / 1000) + 365*24*60*60
console.info(endDateUnix)
const vestingPeriod = endDateUnix - blockTimestamp
console.info(vestingPeriod)
const deployVestingWallet0 = await VestingWallet0.connect(owner).deploy(addresses.Splitter, blockTimestamp, vestingPeriod, options)
await deployVestingWallet0.deployTransaction.wait();
addresses.VestingWallet0 = deployVestingWallet0.address;
Expand Down

0 comments on commit 0605376

Please sign in to comment.