Use slider for certainty

This commit is contained in:
ekzyis 2023-11-20 02:57:06 +01:00
parent ce64608894
commit 76d2e56393
1 changed files with 1 additions and 2 deletions

View File

@ -17,8 +17,7 @@
<label for="stake">how much?</label>
<input name="stake" v-model="stake" type="number" min="0" placeholder="🗲 sats" />
<label for="certainty">how sure?</label>
<input name="certainty" v-model="certainty" type="number" min="0" max="1" step="0.001"
placeholder="fraction like 0.5" />
<input name="certainty" v-model="certainty" type="range" min="0" max="1" step="0.001" />
<label>you receive:</label>
<label>{{ format(shares) }} {{ selected }} shares @ 🗲{{ format(price) }}</label>
<label>you pay:</label>