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

add APY % in Share on X msg #109

Merged
merged 1 commit into from
Sep 2, 2024
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
2 changes: 1 addition & 1 deletion src/components/Deposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export default function Deposit(props: DepositProps) {
amount.isZero() || amount.compare(maxAmount.toEtherStr(), 'gt'),
}}
selectedMarket={selectedMarket}
strategyName={props.strategy.name}
strategy={props.strategy}
/>
</Center>

Expand Down
6 changes: 3 additions & 3 deletions src/components/TxButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import CONSTANTS, { LATEST_TNC_DOC_VERSION } from '@/constants';
import { referralCodeAtom } from '@/store/referral.store';
import { StrategyTxProps, monitorNewTxAtom } from '@/store/transactions.atom';
import { TokenInfo } from '@/strategies/IStrategy';
import { IStrategyProps, TokenInfo } from '@/strategies/IStrategy';
import { getReferralUrl } from '@/utils';
import {
Box,
Expand Down Expand Up @@ -34,7 +34,7 @@ interface TxButtonProps {
buttonProps: ButtonProps;
justDisableIfNoWalletConnect?: boolean;
selectedMarket?: TokenInfo;
strategyName?: string;
strategy?: IStrategyProps;
}

export default function TxButton(props: TxButtonProps) {
Expand Down Expand Up @@ -183,7 +183,7 @@ export default function TxButton(props: TxButtonProps) {
>
<TwitterShareButton
url={`${getReferralUrl(referralCode)}`}
title={`I just invested my ${props.selectedMarket?.name ?? ''} token in the high yield "${props.strategyName ?? ''}" strategy at @strkfarm. \n\nHere's my link to join: `}
title={`🚀I just invested my ${props.selectedMarket?.name ?? ''} in the high-yield "${props.strategy?.name ?? ''}" strategy at @strkfarm, earning an impressive ${((props.strategy?.netYield || 0) * 100).toFixed(2)}% yield! 💸. \n\nWant in? Join me and start earning: `}
related={['strkfarm']}
style={{
display: 'flex',
Expand Down
Loading