fix timestamps for page reveal

This commit is contained in:
Maximilian Schneider 2021-07-28 01:51:57 +02:00
parent dbe9cf3e07
commit 7d33805e6b
1 changed files with 7 additions and 4 deletions

View File

@ -3,16 +3,19 @@ import useWalletStore from '../stores/useWalletStore'
export default function usePool() {
const pool = useWalletStore((s) => s.pool)
const startIdo = pool ? moment.unix(pool.startIdoTs.toNumber()) : undefined
const startIdo = pool ? moment.unix(pool.startIdoTs.toNumber()) : undefined
const endIdo = pool ? moment.unix(pool.endIdoTs.toNumber()) : undefined
const endDeposits = pool
? moment.unix(pool.endDepositsTs.toNumber())
: undefined
// // override for testing
// const endDeposits = moment().add(1, 'days')
// const endIdo = moment().add(2, 'days')
/*
// override for announcement
const startIdo = moment.unix(1628553600)
const endDeposits = moment.unix(1628553600).add(1, 'days')
const endIdo = moment.unix(1628553600).add(2, 'days')
*/
return { pool, startIdo, endIdo, endDeposits }
}