updated allocationText()
This commit is contained in:
@@ -74,6 +74,7 @@ builderDefaults(props.builder, {
|
||||
skew: 0,
|
||||
breakout: false,
|
||||
color: defaultColor,
|
||||
buy: true,
|
||||
})
|
||||
|
||||
function buildTranches() {
|
||||
@@ -195,7 +196,7 @@ function setPrices(ps) {prices.value = ps}
|
||||
function setWeights(ws) { weights.value = 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 color = computed(()=>props.builder.color ? props.builder.color : defaultColor)
|
||||
const stdWidth = computed(()=>co.meanRange)
|
||||
const description = computed(()=>{
|
||||
|
||||
Reference in New Issue
Block a user