fix text typos
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
508150f202
commit
c38628c107
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.7.34",
|
"version": "0.7.35",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -59,7 +59,7 @@ const BondConfirmModal = ({
|
|||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
data-testid="acknowledge-bond-warmup"
|
data-testid="acknowledge-bond-warm-up"
|
||||||
checked={acknowledgedWarmup}
|
checked={acknowledgedWarmup}
|
||||||
onChange={event => setAcknowledgedWarmup(event.target.checked)}
|
onChange={event => setAcknowledgedWarmup(event.target.checked)}
|
||||||
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
||||||
@ -68,7 +68,7 @@ const BondConfirmModal = ({
|
|||||||
}
|
}
|
||||||
label={
|
label={
|
||||||
<Typography variant="body2">
|
<Typography variant="body2">
|
||||||
{`I understand the ${bondQuoteTokenName} I’m bonding will only be available to claim ${warmupLength.toString()} epochs after my transaction is confirmed, and the warmup extends with each bond purchase`}
|
{`I understand the ${bondQuoteTokenName} I’m bonding will only be available to claim ${warmupLength.toString()} epochs after my transaction is confirmed, and the warm-up extends with each bond purchase`}
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@ -85,7 +85,7 @@ const BondConfirmModal = ({
|
|||||||
fullWidth
|
fullWidth
|
||||||
href="https://ghostchain.io/ghostdao_litepaper"
|
href="https://ghostchain.io/ghostdao_litepaper"
|
||||||
>
|
>
|
||||||
Why is there a warmup?
|
Why is there a warm-up?
|
||||||
</SecondaryButton>
|
</SecondaryButton>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -56,14 +56,14 @@ const WarmupConfirmModal = ({
|
|||||||
? <FormControlLabel
|
? <FormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
data-testid="acknowledge-warmup"
|
data-testid="acknowledge-warm-up"
|
||||||
checked={isChecked}
|
checked={isChecked}
|
||||||
onChange={event => setIsChecked(event.target.checked)}
|
onChange={event => setIsChecked(event.target.checked)}
|
||||||
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
||||||
checkedIcon={<CheckBoxOutlined viewBox="0 0 24 24" />}
|
checkedIcon={<CheckBoxOutlined viewBox="0 0 24 24" />}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label={`I acknowledge that I am releasing warmup funds for the bonding contract on behalf of the collective.`}
|
label={`I acknowledge that I am releasing warm-up funds for the bonding contract on behalf of the collective.`}
|
||||||
/>
|
/>
|
||||||
: `Bonding address is in a warm-up period and cannot be claimed now. It'll be available for claim in ${warmupLength} epochs.`
|
: `Bonding address is in a warm-up period and cannot be claimed now. It'll be available for claim in ${warmupLength} epochs.`
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,8 +68,8 @@ const BreakoutModal = ({ chainId, address }) => {
|
|||||||
const header = useMemo(() => {
|
const header = useMemo(() => {
|
||||||
if (isStakingOpened && warmupPeriod <= 0) return "Stake Warmed-up"
|
if (isStakingOpened && warmupPeriod <= 0) return "Stake Warmed-up"
|
||||||
if (isClaimBondOpened && warmupPeriod <= 0) return "Bond Warmed-up"
|
if (isClaimBondOpened && warmupPeriod <= 0) return "Bond Warmed-up"
|
||||||
if (isStakingOpened && warmupPeriod > 0) return "Stake in Warmup"
|
if (isStakingOpened && warmupPeriod > 0) return "Stake in Warm-up"
|
||||||
if (isClaimBondOpened && warmupPeriod > 0) return "Bond in Warmup"
|
if (isClaimBondOpened && warmupPeriod > 0) return "Bond in Warm-up"
|
||||||
}, [isStakingOpened, isClaimBondOpened, warmupPeriod]);
|
}, [isStakingOpened, isClaimBondOpened, warmupPeriod]);
|
||||||
|
|
||||||
const bridgeNumbers = useMemo(() => {
|
const bridgeNumbers = useMemo(() => {
|
||||||
@ -176,7 +176,7 @@ const BridgeView = ({
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Typography>
|
<Typography>
|
||||||
Generate a unique address for per tx with <Link underline="hover" href={GHOST_CONNECT} color={theme.colors.primary[300]}>GHOST connect</Link> for privacy.
|
Generate a unique address for per tx with <Link underline="hover" href={GHOST_CONNECT} color={theme.colors.primary[300]}>GHOST Connect</Link> for privacy.
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<SwapCard
|
<SwapCard
|
||||||
@ -268,8 +268,8 @@ const WelcomeView = ({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Typography>{warmupPeriod <= 0
|
<Typography>{warmupPeriod <= 0
|
||||||
? `You've succesfully warmed-up your ${isStakingOpened ? " " : "bonded "}${ftsoSymbol} staked at:`
|
? `You've succesfully warmed-up your ${isStakingOpened ? " " : "bonded "}${ftsoSymbol} ${isStakingOpened ? "(3, 3)" : "(1, 1)"} staked at:`
|
||||||
: `${isStakingOpened ? "Stake" : "Bond"} is in warm-up${isStakingOpened ? "" : ", which extends with each purchase"}. Your ${ftsoSymbol} is staked at:`
|
: `${isStakingOpened ? "Stake" : "Bond"} is in warm-up${isStakingOpened ? "" : ", which extends with each purchase"}. Your ${ftsoSymbol} ${isStakingOpened ? "(3, 3)" : "(1, 1)"} is staked at:`
|
||||||
}</Typography>
|
}</Typography>
|
||||||
|
|
||||||
<Box display="flex" justifyContent="center">
|
<Box display="flex" justifyContent="center">
|
||||||
@ -282,7 +282,7 @@ const WelcomeView = ({
|
|||||||
loading={isPending}
|
loading={isPending}
|
||||||
fullWidth
|
fullWidth
|
||||||
>
|
>
|
||||||
{isPending ? "Claiming..." : `Claim ${isStakingOpened ? "(3, 3) Stake" : "(1, 1) Bond"}`}
|
{`${isPending ? "Claiming..." : "Claim"} ${isStakingOpened ? "(3, 3) Stake" : "(1, 1) Bond"}`}
|
||||||
</SecondaryButton>}
|
</SecondaryButton>}
|
||||||
|
|
||||||
<Box display="flex" justifyContent="center" flexDirection="column" alignItems="center">
|
<Box display="flex" justifyContent="center" flexDirection="column" alignItems="center">
|
||||||
@ -293,7 +293,7 @@ const WelcomeView = ({
|
|||||||
|
|
||||||
<Box display="flex" flexDirection="column" justifyContent="space-between" gap="10px">
|
<Box display="flex" flexDirection="column" justifyContent="space-between" gap="10px">
|
||||||
<Typography fontWeight="bold">Skip the Warm-up Now!</Typography>
|
<Typography fontWeight="bold">Skip the Warm-up Now!</Typography>
|
||||||
<Typography>{`Bridge your ${ghstSymbol} to GHOST Chain and stake at:`}</Typography>
|
<Typography>{`Bridge your ${ghstSymbol} to GHOST Chain and start ${bridgeNumbers} ${"stake\u00B2"} at:`}</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box display="flex" justifyContent="center" flexDirection="column" alignItems="center">
|
<Box display="flex" justifyContent="center" flexDirection="column" alignItems="center">
|
||||||
@ -387,7 +387,7 @@ const ConfirmStep = ({
|
|||||||
<>
|
<>
|
||||||
<Box display="flex" justifyContent="space-between" alignItems="center">
|
<Box display="flex" justifyContent="space-between" alignItems="center">
|
||||||
<Box display="flex" flexDirection="column" justifyContent="space-between" alignItems="center" gap="10px">
|
<Box display="flex" flexDirection="column" justifyContent="space-between" alignItems="center" gap="10px">
|
||||||
<Metric label="Bridged" metric={formatNumber(estimatedAmount, 5)} />
|
<Metric label="To Bridge" metric={formatNumber(estimatedAmount, 5)} />
|
||||||
<Box width="100%" display="flex" flexDirection="column" justifyContent="center" alignItems="center">
|
<Box width="100%" display="flex" flexDirection="column" justifyContent="center" alignItems="center">
|
||||||
<Token chainTokenName={nativeSymbol} name={"GHST"} sx={{ fontSize: "55px" }} />
|
<Token chainTokenName={nativeSymbol} name={"GHST"} sx={{ fontSize: "55px" }} />
|
||||||
<Typography>{ghstSymbol}</Typography>
|
<Typography>{ghstSymbol}</Typography>
|
||||||
@ -395,7 +395,7 @@ const ConfirmStep = ({
|
|||||||
</Box>
|
</Box>
|
||||||
<GhostStyledIcon sx={{ transform: "rotate(-90deg)" }} component={ArrowDropDownIcon} />
|
<GhostStyledIcon sx={{ transform: "rotate(-90deg)" }} component={ArrowDropDownIcon} />
|
||||||
<Box display="flex" flexDirection="column" justifyContent="space-between" alignItems="center" gap="10px">
|
<Box display="flex" flexDirection="column" justifyContent="space-between" alignItems="center" gap="10px">
|
||||||
<Metric label="Received" metric={formatNumber(receivedEstimation, 5)} />
|
<Metric label="To Receive" metric={formatNumber(receivedEstimation, 5)} />
|
||||||
<Box width="100%" display="flex" flexDirection="column" justifyContent="center" alignItems="center">
|
<Box width="100%" display="flex" flexDirection="column" justifyContent="center" alignItems="center">
|
||||||
<Token name={"GHST"} sx={{ fontSize: "55px" }} />
|
<Token name={"GHST"} sx={{ fontSize: "55px" }} />
|
||||||
<Typography>{ghstSymbol}</Typography>
|
<Typography>{ghstSymbol}</Typography>
|
||||||
@ -411,7 +411,7 @@ const ConfirmStep = ({
|
|||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
data-testid="acknowledge-breakout-warmup"
|
data-testid="acknowledge-breakout-warm-up"
|
||||||
checked={acknowledgeBridgingRisk}
|
checked={acknowledgeBridgingRisk}
|
||||||
onChange={event => setAcknowledgeBridgingRisk(event.target.checked)}
|
onChange={event => setAcknowledgeBridgingRisk(event.target.checked)}
|
||||||
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
||||||
@ -447,7 +447,7 @@ const ConfirmStep = ({
|
|||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
data-testid="acknowledge-breakout-warmup"
|
data-testid="acknowledge-breakout-warm-up"
|
||||||
checked={acknowledgeWalletCustody}
|
checked={acknowledgeWalletCustody}
|
||||||
onChange={event => setAcknowledgeWalletCustody(event.target.checked)}
|
onChange={event => setAcknowledgeWalletCustody(event.target.checked)}
|
||||||
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
||||||
|
|||||||
@ -101,7 +101,7 @@ export const ClaimsArea = ({ chainId, address, epoch }) => {
|
|||||||
|
|
||||||
if (claim.shares === 0n) return <></>;
|
if (claim.shares === 0n) return <></>;
|
||||||
|
|
||||||
const warmupTooltip = `Your claim earns rebases during warmup. You can emergency withdraw, but this forfeits the rebases`;
|
const warmupTooltip = `Your claim earns rebases during warm-up. You can emergency withdraw, but this forfeits the rebases`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@ -32,7 +32,7 @@ const StakeConfirmationModal = (props) => {
|
|||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
data-testid="acknowledge-stake-warmup"
|
data-testid="acknowledge-stake-warm-up"
|
||||||
checked={acknowledgedWarmup}
|
checked={acknowledgedWarmup}
|
||||||
onChange={event => setAcknowledgedWarmup(event.target.checked)}
|
onChange={event => setAcknowledgedWarmup(event.target.checked)}
|
||||||
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
icon={<CheckBoxOutlineBlank viewBox="0 0 24 24" />}
|
||||||
@ -59,7 +59,7 @@ const StakeConfirmationModal = (props) => {
|
|||||||
fullWidth
|
fullWidth
|
||||||
href="https://ghostchain.io/ghostdao_litepaper"
|
href="https://ghostchain.io/ghostdao_litepaper"
|
||||||
>
|
>
|
||||||
Why is there a warmup?
|
Why is there a warm-up?
|
||||||
</SecondaryButton>
|
</SecondaryButton>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -35,7 +35,7 @@ const StakeSettingsModal = props => {
|
|||||||
checkedIcon={<CheckBoxOutlined viewBox="0 0 24 24" />}
|
checkedIcon={<CheckBoxOutlined viewBox="0 0 24 24" />}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label={<Typography variant="body2">Always try to claim during stake, works only if warmup period is zero</Typography>}
|
label={<Typography variant="body2">Always try to claim during stake, works only if warm-up period is zero</Typography>}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@ -139,7 +139,7 @@ const ProtocolDetails = ({ chainId, isMobileScreen, theme, }) => {
|
|||||||
url={`/${networkName.toLowerCase()}/bridge`}
|
url={`/${networkName.toLowerCase()}/bridge`}
|
||||||
name={`${bridgeNumbers} Stake\u00B2`}
|
name={`${bridgeNumbers} Stake\u00B2`}
|
||||||
sideName={`${formatNumber(apyInner * gatekeepedApy, 0)}% APY`}
|
sideName={`${formatNumber(apyInner * gatekeepedApy, 0)}% APY`}
|
||||||
description={`Staking\u00B2 strategy further deepens long-term incentives powered by sustainable crosschain bridging revenue. ${bridgeNumbers} Stake\u00B2 your ${csprSymbol} to receive organic APY with no warmup and no dilution.`}
|
description={`Staking\u00B2 strategy further deepens long-term incentives powered by sustainable crosschain bridging revenue. ${bridgeNumbers} Stake\u00B2 your ${csprSymbol} to receive organic APY with no warm-up and no dilution.`}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@ -155,7 +155,7 @@ export const stake = async (chainId, account, amount, isRebase, isClaim, ftsoSym
|
|||||||
const args = [amount, account, isRebase, isClaim];
|
const args = [amount, account, isRebase, isClaim];
|
||||||
const messages = {
|
const messages = {
|
||||||
replacedMsg: "Staking transaction was replaced. Wait for inclusion please.",
|
replacedMsg: "Staking transaction was replaced. Wait for inclusion please.",
|
||||||
successMsg: `${ftsoSymbol} tokens staked successfully! Wait for the warmup period to claim your ${isRebase ? stnkSymbol : ghstSymbol}.`,
|
successMsg: `${ftsoSymbol} tokens staked successfully! Wait for the warm-up period to claim your ${isRebase ? stnkSymbol : ghstSymbol}.`,
|
||||||
errorMsg: "Staking transaction failed. Check logs for error detalization.",
|
errorMsg: "Staking transaction failed. Check logs for error detalization.",
|
||||||
};
|
};
|
||||||
await executeOnChainTransaction({
|
await executeOnChainTransaction({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user