diff --git a/components/UnshieldTab.vue b/components/UnshieldTab.vue
index ca3b1a0..4cd69fd 100644
--- a/components/UnshieldTab.vue
+++ b/components/UnshieldTab.vue
@@ -6,7 +6,7 @@
- Your balance on Incognitee is too low to unshield. Please go back to step 2
+ Your balance on Incognitee is getting low. Please go back to step 2 to top up
By clicking the ”Unshield” button, you perform a transfer of 30% of your Incognitee
@@ -14,6 +14,7 @@
Unshield Funds
+
{{ topStatus }}
@@ -27,9 +28,11 @@ import {formatBalance} from "@polkadot/util";
import {useAccount} from '@/store/account.ts'
import {useIncognitee} from '@/store/incognitee.ts'
+import {ref} from "vue";
const accountStore = useAccount()
const incogniteeStore = useIncognitee()
+const topStatus = ref('')
const existential_deposit = 10000000000;
const emit = defineEmits(['change-tab'])
@@ -40,6 +43,7 @@ formatBalance.setDefaults({
});
const unshieldFunds = () => {
console.log('will unshield 30% of your private funds to same account on L1');
+ topStatus.value = 'will unshield 30% of your private funds to same account on L1'
const balance = accountStore.incogniteeBalance
// todo! instead of sending 30% we should check fees explicitly and handle edge cases
const amount = Math.floor(0.30 * balance)
@@ -53,13 +57,14 @@ const unshieldFunds = () => {
signer.address,
amount
).then((hash) => {
+ topStatus.value = 'Triggered unshielding of funds successfully. please proceed to step 5'
console.log(`trustedOperationHash: ${hash}`)
// todo! wait for evidence on L1
- emit('change-tab', 4);
+ // emit('change-tab', 4);
});
// todo! remove this and only change tab upon success above
- emit('change-tab', 4);
+ // emit('change-tab', 4);
};