Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update text #281

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions frontend/components/modals/LockedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ function LockedModalCurrentState({
{nextVestingDate?.toLocaleString()} will be withdrawable.
<br />
<br />
The rest of your locked tokens are participating in governance.
</>
)
case VestingAccountState.UnvestedTokensFullyLockedExceptCooldown:
Expand All @@ -141,8 +140,9 @@ function LockedModalCurrentState({
return (
<>
Your locked tokens are staked in the contract to participate in
governance. On vest, they will become staked tokens, which require a 2
epoch cooldown to withdraw.
governance. On vest, they will become staked tokens, which require a
full epoch cooldown to be unstaked. (Epochs start every Thursday at
00:00 UTC)
<br />
<br />
If you would like to withdraw them immediately on unlock, you may
Expand All @@ -164,8 +164,9 @@ function LockedModalCurrentState({
<br />
Participating in governance requires you to stake your locked tokens.
This means that when your tokens unlock, you will have to manually
unstake them by interacting with the UI and wait for a one epoch
cooldown before being able to withdraw them.
unstake them by interacting with the UI and wait for a cooldown of one
full epoch before being able to withdraw them. (Epochs start every
Thursday at 00:00 UTC).
</>
)
case VestingAccountState.UnvestedTokensFullyUnlockedExceptCooldown:
Expand Down
3 changes: 2 additions & 1 deletion frontend/components/modals/StakedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export function StakedModal({
<p className="mb-8 leading-6 ">
Staked tokens enable you to participate in Pyth Network governance.
Newly-staked tokens become eligible to vote in governance at the
beginning of the next epoch.
beginning of the next epoch. (Epochs start every Thursday at 00:00
UTC).
</p>
<p className="leading-6 ">
You currently have {stakedPythBalance?.toString()} staked tokens.
Expand Down
9 changes: 5 additions & 4 deletions frontend/components/modals/UnstakedModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ export function UnstakedModal({
>
<p className="mb-6 leading-6">
Unstaking tokens enables you to withdraw them from the program after a
cooldown period of two epochs of which they become unstaked tokens.
Unstaked tokens cannot participate in governance.
cooldown period of one epoch once the current epoch ends. (Epochs start
every Thursday at 00:00 UTC). Unstaked tokens cannot participate in
governance.
</p>
<p className="leading-6">
You currently have {unstakedPythBalance?.toString()} unstaked tokens.
</p>
{unstakingPythBalance && !unstakingPythBalance.isZero() ? (
<p className="mt-4 leading-6">
{unstakingPythBalance.toString()} tokens have to go through a
cool-down period for 2 epochs before they can be withdrawn.
{unstakingPythBalance.toString()} tokens have to go through a cooldown
period for one full epoch before they can be withdrawn.
</p>
) : null}
</BaseModal>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/panels/StakePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type StakePanelProps = {
}

const Description =
'Deposit and stake PYTH. Staking tokens enables you to participate in Pyth Network governance. Newly-staked tokens become eligible to vote in governance at the beginning of the next epoch.'
'Deposit and stake PYTH. Staking tokens enables you to participate in Pyth Network governance. Newly-staked tokens become eligible to vote in governance at the beginning of the next epoch. (Epochs start every Thursday at 00:00 UTC).'

export function StakePanel({ mainStakeAccount }: StakePanelProps) {
// call deposit and lock api when deposit button is clicked (create stake account if not already created)
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/panels/UnstakePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type UnstakePanelProps = {
mainStakeAccount: MainStakeAccount
}
const Description =
'Unstake PYTH. Unstaking tokens enables you to withdraw them from the program after a cooldown period of two epochs. Unstaked tokens cannot participate in governance.'
'Unstake PYTH. Unstaking tokens enables you to withdraw them from the program after a cooldown period of one epoch once the current epoch ends. (Epochs start every Thursday at 00:00 UTC). Unstaked tokens cannot participate in governance.'

export function UnstakePanel({ mainStakeAccount }: UnstakePanelProps) {
// call deposit and lock api when deposit button is clicked (create stake account if not already created)
Expand Down
Loading