From 98d63b23cc926963be10e11375bba78b9755190f Mon Sep 17 00:00:00 2001 From: Vladislav Matus Date: Mon, 13 Feb 2023 17:06:16 +0100 Subject: [PATCH] Terminology change --- src/libs/ap/state.ts | 4 ++-- src/routes/Actions.tsx | 4 ++-- src/routes/Stake.tsx | 2 +- src/routes/Unstake.tsx | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libs/ap/state.ts b/src/libs/ap/state.ts index 28ffab1..d2d820a 100644 --- a/src/libs/ap/state.ts +++ b/src/libs/ap/state.ts @@ -33,7 +33,7 @@ export class RewardsTuple { poolReward: BN; stakersReward: BN; - constructor(obj: { poolReward: BN; stakersReward: BN }) { + constructor(obj: {poolReward: BN; stakersReward: BN}) { this.poolReward = obj.poolReward; this.stakersReward = obj.stakersReward; } @@ -129,7 +129,7 @@ export class StakePool { static async retrieve(connection: Connection, key: PublicKey) { const accountInfo = await connection.getAccountInfo(key); if (!accountInfo?.data) { - throw new Error("Stake pool not found"); + throw new Error("Creator pool not found"); } return this.deserialize(accountInfo.data); } diff --git a/src/routes/Actions.tsx b/src/routes/Actions.tsx index ac8ba00..b208919 100644 --- a/src/routes/Actions.tsx +++ b/src/routes/Actions.tsx @@ -207,11 +207,11 @@ export const Actions = () => { {stakedAccount && stakedAccount.stakeAmount.toNumber() > 0 ? ( - Unstake + Unlock ACS ) : ( - Unstake + Unlock ACS )} {claimableAmount && claimableAmount > 0 ? ( diff --git a/src/routes/Stake.tsx b/src/routes/Stake.tsx index 31ba4c3..c42364d 100644 --- a/src/routes/Stake.tsx +++ b/src/routes/Stake.tsx @@ -75,7 +75,7 @@ interface FeePaymentData { const CRANK_STEP = 'Crank'; const CREATE_STAKING_ACCOUNT_STEP = 'Create staking account'; const CLAIM_REWARDS_STEP = 'Claim rewards'; -const STAKE_STEP = 'Stake'; +const STAKE_STEP = 'Lock ACS'; const DONE_STEP = 'Done'; const IDLE_STEP = 'Idle'; diff --git a/src/routes/Unstake.tsx b/src/routes/Unstake.tsx index 34ba91f..f7a0f30 100644 --- a/src/routes/Unstake.tsx +++ b/src/routes/Unstake.tsx @@ -33,9 +33,9 @@ export const Unstake = () => { -
Unstake ACS
+
Unlock ACS
- Unstake is currently only possible on the access app. + ACS unlocking is currently only possible in the access app.
@@ -45,7 +45,7 @@ export const Unstake = () => { target='_blank' rel='noopener' > - Unstake on access + Unlock ACS on access