Skip to content

Commit

Permalink
GIX-1890
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner committed Sep 19, 2023
1 parent d669368 commit cfa2b4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions frontend/src/lib/modals/neurons/DisburseMaturityModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -57,7 +62,7 @@

<DisburseMaturityModal
availableMaturityE8s={neuron.maturity_e8s_equivalent}
minimumAmountE8s={token?.fee}
{minimumAmountE8s}
tokenSymbol={token?.symbol ?? ""}
on:nnsDisburseMaturity={disburseMaturity}
on:nnsClose
Expand Down

0 comments on commit cfa2b4b

Please sign in to comment.