From 6d44c7a44c688513dd329b6df70e7ab0a9d07973 Mon Sep 17 00:00:00 2001 From: Joe Zhu Date: Mon, 5 Feb 2024 23:40:46 +0800 Subject: [PATCH] update farm apy position (#473) Co-authored-by: xieqian --- src/components/meme/SeedsBox.tsx | 39 ++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/src/components/meme/SeedsBox.tsx b/src/components/meme/SeedsBox.tsx index 8243adcc8..551ee1a0d 100644 --- a/src/components/meme/SeedsBox.tsx +++ b/src/components/meme/SeedsBox.tsx @@ -193,6 +193,16 @@ const SeedsBox = () => { `; return result; } + function getFarmAPYTip(seed_id) { + const b = getSeedApr(lpSeeds[seed_id]); + const result = `
+
+ Farm APR + ${formatPercentage(b)} +
+
`; + return result; + } return (
{Object.entries(seeds).map(([seed_id, seed]) => { @@ -227,7 +237,7 @@ const SeedsBox = () => { {seed.token_meta_data.symbol} - {hasLpSeed ? ( + {/* {hasLpSeed ? (
{ goFarmDetail(seed_id); @@ -254,7 +264,26 @@ const SeedsBox = () => {
- )} + )} */} +
+
{ + goFarmDetail(seed_id); + }} + className="flex items-center border border-memePoolBoxBorderColor gap-2 rounded-lg h-8 px-2 cursor-pointer" + > + + {seed.token_meta_data.symbol}/NEAR + + +
+ +

{memeConfig.description[seed_id]} @@ -278,8 +307,8 @@ const SeedsBox = () => { seed={seeds[seed_id]} pending={is_pending} ended={is_ended} - subValue={getSeedApr(lpSeeds[seed_id])} - subTargetValue={hasLpSeed ? '' : '-'} + // subValue={getSeedApr(lpSeeds[seed_id])} + // subTargetValue={hasLpSeed ? '' : '-'} isAPY={true} />