fix timestamps for page reveal
This commit is contained in:
parent
dbe9cf3e07
commit
7d33805e6b
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue