Skip to content

Commit

Permalink
More text
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Nov 21, 2023
1 parent fe0c0aa commit dc11c16
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
5 changes: 2 additions & 3 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,8 @@ 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.
<br />
<br />
If you would like to withdraw them immediately on unlock, you may
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. (Epochs start every Thursday at 00:00 UTC)'
'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

0 comments on commit dc11c16

Please sign in to comment.