orders submitting but breaking due to fee send
This commit is contained in:
@@ -16,11 +16,12 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {useChartOrderStore} from "@/orderbuild.js";
|
||||
import {builderFuncs, useChartOrderStore} from "@/orderbuild.js";
|
||||
import {builderDefaults} from "@/misc.js";
|
||||
import {useOrderStore} from "@/store/store.js";
|
||||
import {computed} from "vue";
|
||||
import {computed, onMounted, onUnmounted} from "vue";
|
||||
import RowBar from "@/components/chart/RowBar.vue";
|
||||
import {newTranche} from "@/blockchain/orderlib.js";
|
||||
|
||||
const co = useChartOrderStore()
|
||||
const props = defineProps(['order', 'builder'])
|
||||
@@ -34,6 +35,13 @@ const slippage = computed({
|
||||
})
|
||||
console.log('builder.slippage', props.builder.slippage)
|
||||
|
||||
function buildTranches() {
|
||||
return [newTranche({slippage: slippage.value})]
|
||||
}
|
||||
|
||||
onMounted(() => builderFuncs[props.builder.id] = buildTranches)
|
||||
onUnmounted(() => delete builderFuncs[props.builder.id])
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user