updated allocationText()
This commit is contained in:
@@ -124,6 +124,7 @@ builderDefaults(props.builder, {
|
||||
skew: 0,
|
||||
breakout: false,
|
||||
color: defaultColor,
|
||||
buy: true,
|
||||
})
|
||||
|
||||
|
||||
@@ -348,7 +349,7 @@ function setWeights(ws) {
|
||||
|
||||
const amountSymbol = computed(()=>props.order.amountIsTokenA ? co.selectedSymbol.base.s : co.selectedSymbol.quote.s )
|
||||
|
||||
const allocationTexts = computed(()=>weights.value.map((w)=>allocationText(w, w*props.order.amount, amountSymbol.value)))
|
||||
const allocationTexts = computed(()=>weights.value.map((w)=>allocationText(props.order.buy, w, w*props.order.amount, amountSymbol.value)))
|
||||
|
||||
const stdWidth = computed(()=>[0, co.meanRange, 0, co.meanRange])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user