Skip to content

Commit

Permalink
chore: Add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Harambe-Nakamoto committed Mar 24, 2022
2 parents 73287a0 + 494a7a0 commit f3db985
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 10 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-interface": 0,
"radix": 0,
"import/no-extraneous-dependencies": 0,
"react/require-default-props": 0,
Expand Down
1 change: 1 addition & 0 deletions public/images/ifos/animalconcerts-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/ifos/animalconcerts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/components/ListViewMenu/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const ControlContainer = styled(Flex)`
}
${({ theme }) => theme.mediaQueries.xl} {
padding: 0px 130px 0px 30px;
}
`

Expand Down
1 change: 0 additions & 1 deletion src/components/ModalInput/ModalInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const StyledButton = styled(Button)`
padding: 3px 10px;
`


const ModalInput: React.FC<ModalInputProps> = ({
max,
symbol,
Expand Down
25 changes: 24 additions & 1 deletion src/config/constants/apezone.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
import { Ifo } from './types'

const ApeZone: { ifos: Ifo[] } = {
// Used for configuring GNANA IAOs
ifos: [
{
id: 'animalconcerts',
address: '', // Leave empty for "Coming Soon!"
isActive: true,
isLinear: true,
name: 'Animal Concerts',
subTitle: `The Next Generation for Live Events in the Metaverse`,
description: `Animal Concerts streams interactive metaverse concerts, enabling both established and emerging artists to deliver amazing next-generation fan experiences. The protocol welcomes a new paradigm for music distribution, working closely with artists to design and mint unique NFTs to personalize and enhance the fan experience while generating new and direct revenue for the artists involved.`,
launchDate: 'March 29th',
launchTime: '2:00 UTC',
saleAmount: '111,111,111 ANML',
raiseAmount: '$500,000',
vestingTime: '6 Months',
projectSiteUrl: 'https://animalconcerts.com/',
currency: 'GNANA',
currencyAddress: '0xdDb3Bd8645775F59496c821E4F55A7eA6A6dc299',
offeringCurrency: 'ANML',
tokenDecimals: 18,
releaseBlockNumber: 24911408, // block to start showing contract details
vesting: true,
// burnedTxUrl: '',
},
{
id: 'trustnft',
address: '0x76DfA14DD1295A588eBBE8e03964a98fF15f02E2', // Leave empty for "Coming Soon!"
isActive: true,
isActive: false,
isLinear: true,
name: 'Trust NFT',
subTitle: `Decentralized NFT Loans & Marketplace`,
Expand Down
26 changes: 25 additions & 1 deletion src/config/constants/ifo.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
import { Ifo } from './types'

// Used for configuring BNB IAOs

const ifos: Ifo[] = [
{
id: 'animalconcerts',
address: '', // Leave empty for "Coming Soon!"
isActive: true,
isLinear: true,
name: 'Animal Concerts',
subTitle: `The Next Generation for Live Events in the Metaverse`,
description: `Animal Concerts streams interactive metaverse concerts, enabling both established and emerging artists to deliver amazing next-generation fan experiences. The protocol welcomes a new paradigm for music distribution, working closely with artists to design and mint unique NFTs to personalize and enhance the fan experience while generating new and direct revenue for the artists involved.`,
launchDate: 'March 29th',
launchTime: '2:00 UTC',
saleAmount: '111,111,111 ANML',
raiseAmount: '$500,000',
vestingTime: '6 Months',
projectSiteUrl: 'https://animalconcerts.com/',
currency: 'BNB',
currencyAddress: '0x0000000000000000000000000000000000000000',
offeringCurrency: 'ANML',
tokenDecimals: 18,
releaseBlockNumber: 24911408, // block to start showing contract details
vesting: true,
// burnedTxUrl: '',
},
{
id: 'trustnft',
address: '0x8F87424743074290a4682231B9e671C4b1c120a6', // Leave empty for "Coming Soon!"
isActive: true,
isActive: false,
isLinear: true,
name: 'TrustNFT',
subTitle: `Decentralized NFT Loans & Marketplace`,
Expand Down
7 changes: 6 additions & 1 deletion src/state/farms/fetchFarms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import multicall from 'utils/multicall'
import fetchFarmCalls from './fetchFarmCalls'
import cleanFarmData from './cleanFarmData'

const fetchFarms = async (chainId: number, lpPrices: LpTokenPrices[], bananaPrice: BigNumber, farmLpAprs: FarmLpAprsType) => {
const fetchFarms = async (
chainId: number,
lpPrices: LpTokenPrices[],
bananaPrice: BigNumber,
farmLpAprs: FarmLpAprsType,
) => {
const farmIds = []
const farmCalls = farmsConfig.flatMap((farm) => {
farmIds.push(farm.pid)
Expand Down
3 changes: 2 additions & 1 deletion src/state/farms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const { setFarmsPublicData, setFarmUserData, updateFarmUserData } = farms

// Thunks
export const fetchFarmsPublicDataAsync =
(chainId: number, lpPrices: LpTokenPrices[], bananaPrice: BigNumber, farmLpAprs: FarmLpAprsType) => async (dispatch) => {
(chainId: number, lpPrices: LpTokenPrices[], bananaPrice: BigNumber, farmLpAprs: FarmLpAprsType) =>
async (dispatch) => {
try {
const farms = await fetchFarms(chainId, lpPrices, bananaPrice, farmLpAprs)
dispatch(setFarmsPublicData(farms))
Expand Down
1 change: 0 additions & 1 deletion src/views/DualFarms/components/FarmTable/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ const Row: React.FunctionComponent<RowProps> = (props) => {
}

const { isXl, isXs, isXxl } = useMatchBreakpoints()


const { account } = useWeb3React()

Expand Down
4 changes: 3 additions & 1 deletion src/views/Ifos/components/HowItWorks/HowItWorks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ const HowItWorks = ({ onParticipate }: Props) => {
<Icon name="calendar" />
<div>
<SectionHeading>VESTING SCHEDULE</SectionHeading>
<StyledText>25% of tokens unlock immediately and the remaining 75% vest linearly over 90 days.</StyledText>
<StyledText>
25% of tokens unlock immediately. The remaining 75% vest linearly over a timeframe specific to each IAO.
</StyledText>
</div>
</FeatureBox>
<FeatureBox>
Expand Down
4 changes: 3 additions & 1 deletion src/views/JunglePools/JunglePools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,9 @@ const JunglePools: React.FC = () => {
<>
<Header>
<HeadingContainer>
<StyledHeading style={{color: 'white'}} as="h1">{TranslateString(999, 'Jungle Farms')}</StyledHeading>
<StyledHeading style={{ color: 'white' }} as="h1">
{TranslateString(999, 'Jungle Farms')}
</StyledHeading>
{size.width > 968 && (
<Text fontSize="22px" fontWeight={400} color="white">
Stake APE-LPs to earn new tokens. <br /> You can unstake at any time. <br /> Rewards are calculated per
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ApprovalAction: React.FC<ApprovalActionProps> = ({ stakingTokenContractAdd
{isLoading ? (
<Skeleton width="100%" height="52px" />
) : (
<StyledButton size='md' disabled={requestedApproval} onClick={handleApprove}>
<StyledButton size="md" disabled={requestedApproval} onClick={handleApprove}>
ENABLE
</StyledButton>
)}
Expand Down

0 comments on commit f3db985

Please sign in to comment.