From cfa2b4bd4b79b68c956369b2df87580159a0e472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Mon, 18 Sep 2023 17:05:08 +0200 Subject: [PATCH] GIX-1890 --- .../src/lib/modals/neurons/DisburseMaturityModal.svelte | 5 ++--- .../lib/modals/sns/neurons/SnsDisburseMaturityModal.svelte | 7 ++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte b/frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte index 2eb902c1a2d..05ac35b4084 100644 --- a/frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte +++ b/frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte @@ -17,9 +17,8 @@ export let availableMaturityE8s: bigint; export let tokenSymbol: string; - // 99% of users will disburse more than the transaction fee. - // We don't want a possible error fetching the fee to disrupt the whole flow. - export let minimumAmountE8s = 0n; + + export let minimumAmountE8s: bigint; const steps: WizardSteps = [ { diff --git a/frontend/src/lib/modals/sns/neurons/SnsDisburseMaturityModal.svelte b/frontend/src/lib/modals/sns/neurons/SnsDisburseMaturityModal.svelte index 8265fd0fc7a..06022fbe93e 100644 --- a/frontend/src/lib/modals/sns/neurons/SnsDisburseMaturityModal.svelte +++ b/frontend/src/lib/modals/sns/neurons/SnsDisburseMaturityModal.svelte @@ -28,6 +28,11 @@ let token: IcrcTokenMetadata | undefined; $: token = $tokensStore[rootCanisterId.toText()]?.token; + // 99% of users will disburse more than the transaction fee. + // We don't want a possible error fetching the fee to disrupt the whole flow. + let minimumAmountE8s = 0n; + $: minimumAmountE8s = token?.fee ?? 0n; + const dispatcher = createEventDispatcher(); const close = () => dispatcher("nnsClose"); @@ -57,7 +62,7 @@