From 80e03f648b4e705f588e2ab82937703da23f2100 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 11 Sep 2024 01:09:07 -0400 Subject: [PATCH] line building fixes --- src/components/Status.vue | 2 +- src/components/Vault.vue | 2 +- src/components/chart/ChartStatus.vue | 3 +- src/components/chart/LimitBuilder.vue | 4 +-- src/orderbuild.js | 52 ++++++++++----------------- 5 files changed, 24 insertions(+), 39 deletions(-) diff --git a/src/components/Status.vue b/src/components/Status.vue index 1edb99f..4feefad 100644 --- a/src/components/Status.vue +++ b/src/components/Status.vue @@ -280,7 +280,7 @@ function describeTrancheTime(st, trancheIndex, isStart) { let result = '' if( t.minIsBarrier || t.maxIsBarrier ) return 'barrier' - const now = Math.round(Date.now()/1000) + const now = s.clock if( isStart && t.startTime > 0 ) { const start = t.startTimeIsRelative ? st.startTime + t.startTime : t.startTime result += now < start ? ts.activationTime < now ? 'Rate Limited ' : 'Activates ' : 'Activated ' diff --git a/src/components/Vault.vue b/src/components/Vault.vue index 1068a8b..79fb054 100644 --- a/src/components/Vault.vue +++ b/src/components/Vault.vue @@ -41,7 +41,7 @@ - diff --git a/src/components/chart/ChartStatus.vue b/src/components/chart/ChartStatus.vue index 3b70f86..c66571a 100644 --- a/src/components/chart/ChartStatus.vue +++ b/src/components/chart/ChartStatus.vue @@ -2,9 +2,8 @@ diff --git a/src/components/chart/LimitBuilder.vue b/src/components/chart/LimitBuilder.vue index 21f4de9..6b57287 100644 --- a/src/components/chart/LimitBuilder.vue +++ b/src/components/chart/LimitBuilder.vue @@ -41,7 +41,7 @@