vault upgrades; fees; refactoring

This commit is contained in:
Tim
2024-06-17 02:39:12 -04:00
parent fd8f20c4d4
commit 104b798d4f
15 changed files with 260 additions and 86 deletions

View File

@@ -108,7 +108,7 @@ function buildOrder() {
// uint256 minFillAmount; // if a tranche has less than this amount available to fill, it is considered completed
// bool amountIsInput;
// bool outputDirectlyToOwner;
// uint64 chainOrder; // use NO_CHAIN for no chaining. chainOrder index must be < than this order's index for safety (written first) and chainOrder state must be Template
// uint64 conditionalOrder; // use NO_CONDITIONAL_ORDER for no chaining. conditionalOrder index must be < than this order's index for safety (written first) and conditionalOrder state must be Template
// Tranche[] tranches;
// }
const symbol = co.selectedSymbol

View File

@@ -303,9 +303,7 @@ const _extendLeft = ref(false)
const extendLeft = computed({
get() {return _extendLeft.value},
set(v) {
console.log('set extendLeft', v)
if (v !== _extendLeft.value) {
console.log('DO set extendLeft')
_extendLeft.value = v;
const b = {...props.builder}
b.extendLeft = v

View File

@@ -3,6 +3,7 @@
<toolbar :title="title" :icon="icon">
<slot name="toolbar"/>
</toolbar>
<upgrade-alert/>
<div class="overflow-y-auto">
<slot/>
</div>
@@ -12,6 +13,7 @@
<script setup>
import Toolbar from "@/components/chart/Toolbar.vue";
import UpgradeAlert from "@/components/UpgradeAlert.vue";
const props = defineProps(['title', 'icon'])