merge deploy stake time

This commit is contained in:
yuexin 2023-09-07 18:31:19 +08:00
parent b8c5591e5b
commit e835cd9a13

View File

@ -20,6 +20,7 @@ module.exports = async function (deployer, network, accounts) {
"0xD728de3d9ebeD90E84aBe84539280cbC5b18E304", //genisis
"0x66944F7AEB68779DE2B4f68Fde5d704fff723134", //planet
];
for (let i = 0; i < nfts.length; i++) {
await stakeInstance.updateERC721Support(nfts[i], true);
console.log(`success add erc721 support for ${nfts[i]}`);
@ -27,10 +28,10 @@ module.exports = async function (deployer, network, accounts) {
const DAYSECONDS = 24 * 60 * 60;
const periods = [
30 * DAYSECONDS, // 1 month 2592000
91 * DAYSECONDS, // 3 months 7862400
182 * DAYSECONDS, // 6 months 15724800
365 * DAYSECONDS, // 1 year 31536000
730 * DAYSECONDS, // 2 years 63072000
90 * DAYSECONDS, // 3 months 7776000
180 * DAYSECONDS, // 6 months 15552000
360 * DAYSECONDS, // 1 year 31104000
720 * DAYSECONDS, // 2 years 62208000
];
for (let i = 0; i < periods.length; i++) {
await stakeInstance.updatePeriods(periods[i], true);