bug fix
- fixed: end date displayed incorrectly
This commit is contained in:
parent
42d7a642b5
commit
2767ae20ec
@ -10904,17 +10904,17 @@ Bitcoin.Util = {
|
|||||||
console.info(f);
|
console.info(f);
|
||||||
let startDate = new Date(f.start_date).getTime()
|
let startDate = new Date(f.start_date).getTime()
|
||||||
const tapouts = {}
|
const tapouts = {}
|
||||||
if (f["tapoutInterval"])
|
if (f.tapoutInterval)
|
||||||
f["tapoutInterval"].forEach((i, k) => {
|
f.tapoutInterval.forEach((i, k) => {
|
||||||
let ts = dateAdder(startDate, i),
|
let ts = dateAdder(startDate, i),
|
||||||
te = dateAdder(ts, f["topoutWindow"]);
|
te = dateAdder(ts, f.topoutWindow);
|
||||||
tapouts[`Tapout ${k+1}`] = `${dateFormat(ts)} to ${dateFormat(te)}`
|
tapouts[`Tapout ${k+1}`] = `${dateFormat(ts)} to ${dateFormat(te)}`
|
||||||
})
|
})
|
||||||
const fundObj = {
|
const fundObj = {
|
||||||
//termTxHref: `https://livenet.flocha.in/tx/${term.txid}`,
|
//termTxHref: `https://livenet.flocha.in/tx/${term.txid}`,
|
||||||
fundTxHref: `https://livenet.flocha.in/tx/${funds[k][0].txid}`,
|
fundTxHref: `https://livenet.flocha.in/tx/${funds[k][0].txid}`,
|
||||||
startDate: dateFormat(f.start_date),
|
startDate: dateFormat(f.start_date),
|
||||||
endDate: dateFormat(dateAdder(startDate, funds["maxPeriod"])),
|
endDate: dateFormat(dateAdder(startDate, f.duration)),
|
||||||
baseUsd: f.USD_base,
|
baseUsd: f.USD_base,
|
||||||
baseBtc: f.BTC_base,
|
baseBtc: f.BTC_base,
|
||||||
tapouts,
|
tapouts,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user