From 6c6a9f3688541931bdfe161a7552cf3f28643975 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 1 Dec 2021 00:23:32 -0800 Subject: [PATCH] Consolidate so table only shows one set of bids --- market-simulator/src/components/Simulator.vue | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/market-simulator/src/components/Simulator.vue b/market-simulator/src/components/Simulator.vue index 60a8e5ae..def4fc47 100644 --- a/market-simulator/src/components/Simulator.vue +++ b/market-simulator/src/components/Simulator.vue @@ -18,29 +18,33 @@ Order # - Yes bid - No Bid - Yes Weight - No Weight + Type + Bid + Weight Implied Probability - Yes Payout - No Payout - Yes Return - No Return + Payout + Return on win {{ i + 1 }} - {{ entry.yesBid || '' }} - {{ entry.noBid || '' }} - {{ entry.yesWeight.toFixed(2) || '' }} - {{ entry.noWeight.toFixed(2) || '' }} - {{ entry.prob.toFixed(2) || '' }} - {{ entry.yesPayout.value.toFixed(2) || '' }} - {{ entry.noPayout.value.toFixed(2) || '' }} - {{ (entry.yesReturn.value * 100).toFixed(2) || '' }}% - {{ (entry.noReturn.value * 100).toFixed(2) || '' }}% + + @@ -56,7 +60,7 @@ import { ref, computed } from '@vue/reactivity' import { onMounted, watch } from '@vue/runtime-core' const entries = [] as any -// Constants +// Constants. TODO: Pull these from the orders instead of hardcoding. const YES_SEED = 1 const NO_SEED = 9 // Regular variables