diff --git a/src/components/Status.vue b/src/components/Status.vue
index 646a755..c13c2a7 100644
--- a/src/components/Status.vue
+++ b/src/components/Status.vue
@@ -71,12 +71,6 @@
-
Open
@@ -90,14 +84,11 @@
Partial
- Underfunded
+ Underfunded
+
+
Error
-
-
-
-
-
@@ -187,6 +178,7 @@ import {lookupSymbol, tickerForOrder} from "@/charts/datafeed.js";
import {setSymbol} from "@/charts/chart.js";
import {uniswapV3AveragePrice} from "@/blockchain/uniswap.js";
import {timestampString} from "@/misc.js";
+import {metadataMap} from "@/version.js";
const PairPrice = defineAsyncComponent(()=>import("@/components/PairPrice.vue"))
const TokenAmount = defineAsyncComponent(()=>import('./TokenAmount.vue'))
@@ -355,19 +347,21 @@ const orders = computed(()=>{
for (const st of result) {
let low, high;
// console.log('elab', st.order)
- const buy = st.order.tokenIn > st.order.tokenOut;
+ const o = st.order;
+ const buy = o.tokenIn > o.tokenOut;
if (buy) {
- low = st.order.tokenOut
- high = st.order.tokenIn
+ low = o.tokenOut
+ high = o.tokenIn
}
else {
- low = st.order.tokenIn
- high = st.order.tokenOut
+ low = o.tokenIn
+ high = o.tokenOut
}
- st.base = st.order.inverted ? high : low;
- st.quote = st.order.inverted ? low : high;
- st.minIsLimit = buy === st.order.inverted // whether limit/breakout is flipped
- // console.log('buy/inverted/minIsLimit', buy, st.order.inverted, st.minIsLimit)
+ st.base = o.inverted ? high : low;
+ st.quote = o.inverted ? low : high;
+ st.minIsLimit = buy === o.inverted // whether limit/breakout is flipped
+ const found = metadataMap[st.chainId][o.tokenIn]
+ st.inSymbol = found ? found.s : o.tokenIn
// console.log('elaborated', st)
}
result.sort((a,b)=>b.startTime-a.startTime)