Skip to content

Commit

Permalink
add tags to earn and stats
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseevaiana committed Jul 23, 2024
1 parent 35b39cb commit 2b46cd0
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 50 deletions.
2 changes: 2 additions & 0 deletions src/containers/Analytics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import useGeb from '~/hooks/useGeb'
import { BigNumber, ethers } from 'ethers'
import useAnalyticsData from '~/hooks/useAnalyticsData'
import usePoolData from '~/hooks/usePoolData'
import MetaTags from '~/components/MetaTags'

Check warning on line 24 in src/containers/Analytics/index.tsx

View workflow job for this annotation

GitHub Actions / Linting

'MetaTags' is defined but never used
import metaInfo from '~/utils/metaInfo'

Check warning on line 25 in src/containers/Analytics/index.tsx

View workflow job for this annotation

GitHub Actions / Linting

'metaInfo' is defined but never used

interface AnalyticsStateProps {
erc20Supply: string
Expand Down
111 changes: 61 additions & 50 deletions src/containers/Earn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { PoolData } from '@opendollar/sdk'
import Skeleton from 'react-loading-skeleton'
import EarnBlock from './EarnBlock'
import { getTokenLogo } from '~/utils'
import MetaTags from '~/components/MetaTags'
import metaInfo from '~/utils/metaInfo'

interface Cache {
[key: string]: PoolData
Expand Down Expand Up @@ -66,56 +68,65 @@ const Earn = () => {
}

return (
<Container>
<Title>Earn</Title>
<SubHeader>incentivized pools and strategies</SubHeader>
<Text>
<p>Earn additional yield by staking your LP position in Camelot Nitro.</p>
<p>
When creating a OD-ETH position, use the "Auto" mode provided by Gamma. <br></br>See full
instructions{' '}
<Link
href="https://www.opendollar.com/blog/the-earn-page-and-new-camelot-nitro-pool"
target="_blank"
>
here
</Link>
.
</p>
</Text>
<Pools>
<PoolsHeader>Strategies</PoolsHeader>
<EarnBlock
status="Active"
url="https://app.creditguild.org/earn"
apy="Variable"
tvl="$99k"
rewardToken1Symbol="OD"
rewardToken2Symbol="ODG, and GUILD"
title={
<>
Credit Guild <img src={getTokenLogo('OD')} alt={''} width={'50px'} />
</>
}
/>
{nitroPools.length > 0 ? (
POOLS?.map(
(
pool: JSX.IntrinsicAttributes & { nitroPoolAddress: string; nitroPoolData: PoolData },
i: number
) => <PoolBlock {...pool} nitroPoolData={nitroPools[i]} key={`${pool.nitroPoolAddress}-pool`} />
)
) : (
<Skeleton height={185} count={3} style={{ marginBottom: '30px' }} />
)}
</Pools>

<BtnWrapper>
<Button data-test-id="steps-btn" id={'suggest-pool-btn'} secondary onClick={handleClick}>
suggest a new pool <ExternalLink />
</Button>
</BtnWrapper>
</Container>
<>
<MetaTags page={metaInfo.earn} />
<Container>
<Title>Earn</Title>
<SubHeader>incentivized pools and strategies</SubHeader>
<Text>
<p>Earn additional yield by staking your LP position in Camelot Nitro.</p>
<p>
When creating a OD-ETH position, use the "Auto" mode provided by Gamma. <br></br>See full
instructions{' '}
<Link
href="https://www.opendollar.com/blog/the-earn-page-and-new-camelot-nitro-pool"
target="_blank"
>
here
</Link>
.
</p>
</Text>
<Pools>
<PoolsHeader>Strategies</PoolsHeader>
<EarnBlock
status="Active"
url="https://app.creditguild.org/earn"
apy="Variable"
tvl="$99k"
rewardToken1Symbol="OD"
rewardToken2Symbol="ODG, and GUILD"
title={
<>
Credit Guild <img src={getTokenLogo('OD')} alt={''} width={'50px'} />
</>
}
/>
{nitroPools.length > 0 ? (
POOLS?.map(
(
pool: JSX.IntrinsicAttributes & { nitroPoolAddress: string; nitroPoolData: PoolData },
i: number
) => (
<PoolBlock
{...pool}
nitroPoolData={nitroPools[i]}
key={`${pool.nitroPoolAddress}-pool`}
/>
)
)
) : (
<Skeleton height={185} count={3} style={{ marginBottom: '30px' }} />
)}
</Pools>

<BtnWrapper>
<Button data-test-id="steps-btn" id={'suggest-pool-btn'} secondary onClick={handleClick}>
suggest a new pool <ExternalLink />
</Button>
</BtnWrapper>
</Container>
</>
)
}

Expand Down

0 comments on commit 2b46cd0

Please sign in to comment.