line building fixes
This commit is contained in:
@@ -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 '
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<v-table>
|
||||
<tbody>
|
||||
<suspense>
|
||||
<native-row :chain-id="s.chainId" :addr="s.vault" :amount="nativeBalance"
|
||||
<native-row v-if="nativeBalance" :chain-id="s.chainId" :addr="s.vault" :amount="nativeBalance"
|
||||
:on-withdraw="onWithdrawNative" :on-wrap="()=>wrapShow=true"/>
|
||||
</suspense>
|
||||
<suspense v-for="(amount,addr) of balances">
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
<toolbar-pane title="Status" icon="mdi-format-list-bulleted-square">
|
||||
<template #toolbar>
|
||||
<v-btn variant="text" v-if="s.vault" prepend-icon="mdi-delete-alert" color="red"
|
||||
@click="cancelAll(s.vault)" disabled
|
||||
@click="cancelAll(s.vault)" :disabled="!anyOrdersOpen"
|
||||
text="Cancel All"/>
|
||||
<!--:disabled="!anyOrdersOpen"-->
|
||||
</template>
|
||||
<needs-signer>
|
||||
<orders/>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {allocationText, applyLine, builderDefaults, useChartOrderStore} from "@/orderbuild.js";
|
||||
import {allocationText, applyLinePoint, builderDefaults, useChartOrderStore} from "@/orderbuild.js";
|
||||
import {sideColor} from "@/misc.js";
|
||||
import {useOrderStore, useStore} from "@/store/store.js";
|
||||
import {MAX_FRACTION, newTranche} from "@/blockchain/orderlib.js";
|
||||
@@ -90,7 +90,7 @@ function buildTranches() {
|
||||
})
|
||||
const symbol = co.selectedSymbol
|
||||
console.log('symbol', symbol, p)
|
||||
applyLine(t, symbol, order.buy, p, 0)
|
||||
applyLinePoint(t, symbol, order.buy, p)
|
||||
tranches.push(t)
|
||||
}
|
||||
return tranches
|
||||
|
||||
Reference in New Issue
Block a user