Skip to content

Commit

Permalink
add community tag for syrup pool
Browse files Browse the repository at this point in the history
  • Loading branch information
pancake-swap committed Nov 2, 2020
1 parent 062f8b0 commit 3f391e5
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 5 deletions.
Binary file added public/images/tokens/NAR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/tokens/NYA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/tokens/STAX.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/sushi/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ export const contractAddresses = {
}

export const sousChefTeam = [
// {
// sousId: 7,
// contractAddress: {
// 97: '0xd3af5fe61dbaf8f73149bfcfa9fb653ff096029a',
// 56: '0x2368BAb38a79827F49FC768BF1b6d04226704d35',
// },
// tokenName: 'NAR',
// projectLink: 'https://www.certik.foundation/',
// harvest: true,
// tokenPerBlock: "1",
// community: true
// },
{
sousId: 6,
contractAddress: {
Expand Down
2 changes: 2 additions & 0 deletions src/sushi/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const getPools = (sushi) => {
tokenName,
projectLink,
harvest,
community,
}) => ({
sousId,
sousContract,
Expand All @@ -100,6 +101,7 @@ export const getPools = (sushi) => {
tokenName,
projectLink,
harvest,
community,
}),
)
: []
Expand Down
4 changes: 3 additions & 1 deletion src/views/Syrup/Syrup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ interface SyrupRowProps {
tokenPerBlock?: string
cakePrice: BigNumber
tokenPrice: BigNumber
community?: boolean
}

const SyrupRow: React.FC<SyrupRowProps> = ({
Expand All @@ -33,6 +34,7 @@ const SyrupRow: React.FC<SyrupRowProps> = ({
tokenPerBlock,
cakePrice,
tokenPrice,
community
}) => {
const { ethereum } = useWallet()
const syrup = useMemo(() => {
Expand All @@ -48,7 +50,7 @@ const SyrupRow: React.FC<SyrupRowProps> = ({
cakePrice={cakePrice}
tokenPrice={tokenPrice}
tokenPerBlock={tokenPerBlock}
{...{ sousId, tokenName, projectLink, harvest }}
{...{ sousId, tokenName, projectLink, harvest, community }}
/>
)
}
Expand Down
9 changes: 6 additions & 3 deletions src/views/Syrup/components/CardFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import { getBalanceNumber } from '../../../utils/formatBalance'
import useI18n from '../../../hooks/useI18n'
import SmallValue from './Value'
import CoreTag from './CoreTag'
import CommunityTag from './CommunityTag'
import { ChevronDown, ChevronUp } from 'react-feather'

interface Props {
projectLink: string
totalStaked: BigNumber
blocksRemaining: number
isFinished: boolean
farmStart: number
farmStart: number,
community?: boolean
}

const StyledFooter = styled.div<{ isFinished: boolean }>`
Expand Down Expand Up @@ -70,7 +72,8 @@ const CardFooter: React.FC<Props> = ({
totalStaked,
blocksRemaining,
isFinished,
farmStart
farmStart,
community
}) => {
const [isOpen, setIsOpen] = useState(false)
const TranslateString = useI18n()
Expand All @@ -82,7 +85,7 @@ const CardFooter: React.FC<Props> = ({
<StyledFooter isFinished={isFinished}>
<Row>
<FlexFull>
<CoreTag />
{ community ? <CommunityTag /> : <CoreTag /> }
</FlexFull>
<StyledDetailsButton onClick={handleClick}>
{isOpen ? 'Hide' : 'Details'} <Icon />
Expand Down
5 changes: 4 additions & 1 deletion src/views/Syrup/components/PoolCardv2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ interface HarvestProps {
harvest: boolean
tokenPerBlock: string
cakePrice: BigNumber
tokenPrice: BigNumber
tokenPrice: BigNumber,
community?: boolean
}

/**
Expand All @@ -66,6 +67,7 @@ const PoolCardv2: React.FC<HarvestProps> = ({
cakePrice,
tokenPrice,
tokenPerBlock,
community
}) => {
const [requestedApproval, setRequestedApproval] = useState(false)
const { account } = useWallet()
Expand Down Expand Up @@ -237,6 +239,7 @@ const PoolCardv2: React.FC<HarvestProps> = ({
blocksRemaining={blocksRemaining}
isFinished={isReallyFinished}
farmStart={farmStart}
community={community}
/>
</Card>
)
Expand Down

0 comments on commit 3f391e5

Please sign in to comment.