Skip to content

Commit

Permalink
chore: remove sns2 flag from split neuron and increase stake (#1704)
Browse files Browse the repository at this point in the history
# Motivation

Make `split sns neuron` and `increase sns stake` buttons publicly
available.

# Changes

- remove `ENABLE_SNS_2` flag from `split sns neuron` and `increase sns
stake` buttons.
  • Loading branch information
mstrasinskis authored Jan 12, 2023
1 parent 5133d13 commit 510418b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import DisburseSnsButton from "$lib/components/sns-neuron-detail/actions/DisburseSnsButton.svelte";
import IncreaseSnsDissolveDelayButton from "$lib/components/sns-neuron-detail/actions/IncreaseSnsDissolveDelayButton.svelte";
import SnsIncreaseStakeButton from "$lib/components/sns-neuron-detail/actions/SnsIncreaseStakeButton.svelte";
import { ENABLE_SNS_2 } from "$lib/constants/environment.constants";
const { store }: SelectedSnsNeuronContext =
getContext<SelectedSnsNeuronContext>(SELECTED_SNS_NEURON_CONTEXT_KEY);
Expand Down Expand Up @@ -65,9 +64,7 @@
{#if allowedToDissolve}
<IncreaseSnsDissolveDelayButton />
{/if}
{#if ENABLE_SNS_2}
<SnsIncreaseStakeButton />
{/if}
<SnsIncreaseStakeButton />
{#if neuronState === NeuronState.Dissolved && allowedToDisburse}
<DisburseSnsButton />
{:else if canDissolve}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import SplitSnsNeuronButton from "$lib/components/sns-neuron-detail/actions/SplitSnsNeuronButton.svelte";
import type { Principal } from "@dfinity/principal";
import type { NervousSystemParameters } from "@dfinity/sns";
import { ENABLE_SNS_2 } from "$lib/constants/environment.constants";
export let parameters: NervousSystemParameters;
export let token: Token;
Expand Down Expand Up @@ -86,7 +85,7 @@
<SnsNeuronStateRemainingTime {neuron} inline={false} />

<div class="buttons">
{#if ENABLE_SNS_2 && allowedToSplit}
{#if allowedToSplit}
<SplitSnsNeuronButton {neuron} {parameters} {token} {transactionFee} />
{/if}
</div>
Expand Down

0 comments on commit 510418b

Please sign in to comment.