update script of deploy stake

This commit is contained in:
CounterFire2023 2023-09-05 13:22:51 +08:00
parent ea0c6e8da8
commit a43a693dc7

View File

@ -28,10 +28,10 @@ module.exports = async function (deployer, network, accounts) {
const DAYSECONDS = 24 * 60 * 60; const DAYSECONDS = 24 * 60 * 60;
const periods = [ const periods = [
30 * DAYSECONDS, // 1 month 2592000 30 * DAYSECONDS, // 1 month 2592000
91 * DAYSECONDS, // 3 months 7862400 90 * DAYSECONDS, // 3 months 7776000
182 * DAYSECONDS, // 6 months 15724800 180 * DAYSECONDS, // 6 months 15552000
365 * DAYSECONDS, // 1 year 31536000 360 * DAYSECONDS, // 1 year 31104000
730 * DAYSECONDS, // 2 years 63072000 720 * DAYSECONDS, // 2 years 62208000
]; ];
for (let i = 0; i < periods.length; i++) { for (let i = 0; i < periods.length; i++) {
await stakeInstance.updatePeriods(periods[i], true); await stakeInstance.updatePeriods(periods[i], true);