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

feat: mim hide #22

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions .eslintrc.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ module.exports = {
"react"
],
"ignorePatterns": [
// we probably want to change it to a function component,
// the error was:
// Parsing error: Unexpected token =
"components/unlock/unlock.js"
"*/"
],
"rules": {
"react/prop-types": "off",
Expand Down
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .prettierignore
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified components/WelcomeOverview/ffWelcomeOverview.js
100644 → 100755
Empty file.
Empty file modified components/WelcomeOverview/ffWelcomeOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/WelcomeOverview/package.json
100644 → 100755
Empty file.
4 changes: 1 addition & 3 deletions components/ffAssetOverview/ffAssetOverview.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Typography, SvgIcon, Grid } from '@material-ui/core';
import AccountBalanceWalletIcon from '@material-ui/icons/AccountBalanceWallet';
import BigNumber from 'bignumber.js';
import { formatCurrency } from '../../utils';

import classes from './ffAssetOverview.module.css';

function BalanceIcon(props) {
const { color, className } = props;
const {className } = props;
return (
<SvgIcon viewBox="0 0 48 48" strokeWidth="1" className={className}>
<g strokeWidth="2" transform="translate(0, 0)"><path data-color="color-2" fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" d="M28,46v-8 c0-2.2-1.8-4-4-4l0,0c-2.2,0-4,1.8-4,4v8" strokeLinejoin="miter"></path> <line fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" x1="2" y1="32" x2="2" y2="26" strokeLinejoin="miter"></line> <line fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" x1="46" y1="32" x2="46" y2="26" strokeLinejoin="miter"></line> <polyline data-cap="butt" fill="none" stroke="#ffffff" strokeWidth="2" strokeMiterlimit="10" points="10.8,32 2,32 2,46 8,46 " strokeLinejoin="miter" strokeLinecap="butt"></polyline> <polyline data-cap="butt" fill="none" stroke="#ffffff" strokeWidth="2" strokeMiterlimit="10" points="37.2,32 46,32 46,46 40,46 " strokeLinejoin="miter" strokeLinecap="butt"></polyline> <polygon fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" points="34,16 14,16 8,46 40,46 " strokeLinejoin="miter"></polygon> <polyline fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" points="40,4 40,16 8,16 8,4 " strokeLinejoin="miter"></polyline> <line fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" x1="16" y1="4" x2="16" y2="8" strokeLinejoin="miter"></line> <line fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" x1="24" y1="8" x2="24" y2="4" strokeLinejoin="miter"></line> <line fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" x1="32" y1="4" x2="32" y2="8" strokeLinejoin="miter"></line> <line fill="none" stroke="#ffffff" strokeWidth="2" strokeLinecap="square" strokeMiterlimit="10" x1="8" y1="8" x2="40" y2="8" strokeLinejoin="miter"></line></g>
Expand Down Expand Up @@ -55,7 +54,6 @@ export default function ffAssetOverview({ asset }) {
<div className={ classes.flex1 }>
<Typography className={ classes.title }>ib* Balances:</Typography>
<Typography className={ classes.stakedAmount }>{ formatCurrency(balance) }</Typography>
<Typography className={ classes.assetSymbol }>${ formatCurrency(asset ? BigNumber(asset.price).times(balance) : 0) }</Typography>
</div>
</div>
</Grid>
Expand Down
Empty file modified components/ffAssetOverview/ffAssetOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/ffAssetOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffAssets/ffAssets.js
100644 → 100755
Empty file.
Empty file modified components/ffAssets/ffAssets.module.css
100644 → 100755
Empty file.
5 changes: 2 additions & 3 deletions components/ffAssets/ffAssetsTable.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default function EnhancedTable({ assets }) {
<Typography>Token APY based on current prices and reward rates. Stake veCRV to acheive up to 2.5x the CRV rewards.</Typography>
<Typography>Fees ~ {formatCurrency(row.gauge.apy)}%</Typography>
<Typography>
CRV ~ {formatCurrency(row.gauge.apyBase)}% -> {formatCurrency(row.gauge.apyBoosted)}%
{`CRV ~ ${formatCurrency(row.gauge.apyBase)}% -> ${formatCurrency(row.gauge.apyBoosted)}%`}
</Typography>
<Typography>rKP3R ~ Unknown</Typography>
</div>
Expand Down Expand Up @@ -333,8 +333,7 @@ export default function EnhancedTable({ assets }) {
</Typography>
<Tooltip title={showCurveTooltip(row)}>
<Typography variant='h5' className={classes.textSpaced} color='textSecondary'>
{formatCurrency(BigNumber(row.gauge.apyBase).plus(row.gauge.apy).plus(row.gauge.rKP3RAPY))}% ->{' '}
{formatCurrency(BigNumber(row.gauge.apyBoosted).plus(row.gauge.apy).plus(row.gauge.rKP3RAPY))}%
{`${formatCurrency(BigNumber(row.gauge.apyBase).plus(row.gauge.apy).plus(row.gauge.rKP3RAPY))}% -> ${formatCurrency(BigNumber(row.gauge.apyBoosted).plus(row.gauge.apy).plus(row.gauge.rKP3RAPY))}%`}
</Typography>
</Tooltip>
</TableCell>
Expand Down
Empty file modified components/ffAssets/package.json
100644 → 100755
Empty file.
Empty file modified components/ffClaim/ffClaim.js
100644 → 100755
Empty file.
Empty file modified components/ffClaim/ffClaim.module.css
100644 → 100755
Empty file.
Empty file modified components/ffClaim/package.json
100644 → 100755
Empty file.
Empty file modified components/ffClaimAll/ffClaimAll.js
100644 → 100755
Empty file.
Empty file modified components/ffClaimAll/ffClaimAll.module.css
100644 → 100755
Empty file.
Empty file modified components/ffClaimAll/ffClaimAllTable.js
100644 → 100755
Empty file.
Empty file modified components/ffClaimAll/package.json
100644 → 100755
Empty file.
Empty file modified components/ffClaimConvexGauge/ffClaimConvexGauge.js
100644 → 100755
Empty file.
Empty file modified components/ffClaimConvexGauge/ffClaimConvexGauge.module.css
100644 → 100755
Empty file.
Empty file modified components/ffClaimConvexGauge/package.json
100644 → 100755
Empty file.
Empty file modified components/ffClaimCurveGauge/ffClaimCurveGauge.js
100644 → 100755
Empty file.
Empty file modified components/ffClaimCurveGauge/ffClaimCurveGauge.module.css
100644 → 100755
Empty file.
Empty file modified components/ffClaimCurveGauge/package.json
100644 → 100755
Empty file.
Empty file modified components/ffClaimCurveRKP3RGauge/ffClaimCurveRKP3RGauge.js
100644 → 100755
Empty file.
Empty file.
Empty file modified components/ffClaimCurveRKP3RGauge/package.json
100644 → 100755
Empty file.
Empty file modified components/ffClaimDistirbution/ffClaimDistirbution.js
100644 → 100755
Empty file.
Empty file modified components/ffClaimDistirbution/ffClaimDistirbution.module.css
100644 → 100755
Empty file.
Empty file modified components/ffClaimDistirbution/package.json
100644 → 100755
Empty file.
Empty file modified components/ffConvexGauge/ffConvexGauge.js
100644 → 100755
Empty file.
Empty file modified components/ffConvexGauge/ffConvexGauge.module.css
100644 → 100755
Empty file.
Empty file modified components/ffConvexGauge/package.json
100644 → 100755
Empty file.
Empty file modified components/ffCurveGauge/ffCurveGauge.js
100644 → 100755
Empty file.
Empty file modified components/ffCurveGauge/ffCurveGauge.module.css
100644 → 100755
Empty file.
Empty file modified components/ffCurveGauge/package.json
100644 → 100755
Empty file.
Empty file modified components/ffCurveLiquidity/ffCurveLiquidity.js
100644 → 100755
Empty file.
Empty file modified components/ffCurveLiquidity/ffCurveLiquidity.module.css
100644 → 100755
Empty file.
Empty file modified components/ffCurveLiquidity/package.json
100644 → 100755
Empty file.
Empty file modified components/ffCurveLiquidity/slippageInfo.jsx
100644 → 100755
Empty file.
Empty file modified components/ffDashboardAssetOverview/ffDashboardOverview.js
100644 → 100755
Empty file.
Empty file.
Empty file modified components/ffDashboardAssetOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffDashboardClaimAll/ffDashboardClaimAll.js
100644 → 100755
Empty file.
Empty file modified components/ffDashboardClaimAll/ffDashboardClaimAll.module.css
100644 → 100755
Empty file.
Empty file modified components/ffDashboardClaimAll/ffDashboardClaimAllTable.js
100644 → 100755
Empty file.
Empty file modified components/ffDashboardClaimAll/package.json
100644 → 100755
Empty file.
Empty file modified components/ffDashboardMintOverview/ffDashboardMintOverview.js
100644 → 100755
Empty file.
Empty file.
Empty file modified components/ffDashboardMintOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffDashboardOverview/ffDashboardOverview.js
100644 → 100755
Empty file.
Empty file modified components/ffDashboardOverview/ffDashboardOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/ffDashboardOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffDashboardVoteOverview/ffDashboardVoteOverview.js
100644 → 100755
Empty file.
Empty file.
Empty file modified components/ffDashboardVoteOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffGauges/ffGauges.js
100644 → 100755
Empty file.
Empty file modified components/ffGauges/ffGauges.module.css
100644 → 100755
Empty file.
Empty file modified components/ffGauges/ffGaugesTable.js
100644 → 100755
Empty file.
Empty file modified components/ffGauges/package.json
100644 → 100755
Empty file.
Empty file modified components/ffLPOptions/ffLPOptions.js
100644 → 100755
Empty file.
Empty file modified components/ffLPOptions/ffLPOptions.module.css
100644 → 100755
Empty file.
Empty file modified components/ffLPOptions/package.json
100644 → 100755
Empty file.
Empty file modified components/ffMintBurn/ffMintBurn.js
100644 → 100755
Empty file.
Empty file modified components/ffMintBurn/ffMintBurn.module.css
100644 → 100755
Empty file.
Empty file modified components/ffMintBurn/package.json
100644 → 100755
Empty file.
Empty file modified components/ffMintOverview/ffOverview.js
100644 → 100755
Empty file.
Empty file modified components/ffMintOverview/ffOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/ffMintOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffOldAssets/ffOldAssets.js
100644 → 100755
Empty file.
Empty file modified components/ffOldAssets/ffOldAssets.module.css
100644 → 100755
Empty file.
Empty file modified components/ffOldAssets/ffOldAssetsTable.js
100644 → 100755
Empty file.
Empty file modified components/ffOldAssets/package.json
100644 → 100755
Empty file.
Empty file modified components/ffOptions/ffOptions.js
100644 → 100755
Empty file.
Empty file modified components/ffOptions/ffOptions.module.css
100644 → 100755
Empty file.
Empty file modified components/ffOptions/ffOptionsTable.js
100644 → 100755
Empty file.
Empty file modified components/ffOptions/package.json
100644 → 100755
Empty file.
Empty file modified components/ffOptionsOverview/ffStakeOverview.js
100644 → 100755
Empty file.
Empty file modified components/ffOptionsOverview/ffStakeOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/ffOptionsOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffOverview/ffOverview.js
100644 → 100755
Empty file.
Empty file modified components/ffOverview/ffOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/ffOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffStake/ffStake.js
100644 → 100755
Empty file.
Empty file modified components/ffStake/ffStake.module.css
100644 → 100755
Empty file.
Empty file modified components/ffStake/package.json
100644 → 100755
Empty file.
Empty file modified components/ffStakeDistribution/ffStakeDistribution.js
100644 → 100755
Empty file.
Empty file modified components/ffStakeDistribution/ffStakeDistribution.module.css
100644 → 100755
Empty file.
Empty file modified components/ffStakeDistribution/package.json
100644 → 100755
Empty file.
Empty file modified components/ffStakeOverview/ffStakeOverview.js
100644 → 100755
Empty file.
Empty file modified components/ffStakeOverview/ffStakeOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/ffStakeOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffSwap/package.json
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions components/ffSwap/setup.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ function Setup({ theme, handleNext }) {
setToAssetOptions(options)
tav = options[0]
} else if (localFromAsset.symbol === 'ibEUR') {
let options = [storeSwapAssets.find(x => x.symbol === 'MIM'), storeSwapAssets.find(x => x.symbol === 'sUSD')]
let options = [storeSwapAssets.find(x => x.symbol === 'sUSD')]
setToAssetOptions(options)
tav = options[0]
} else {
let options = [storeSwapAssets.find(x => x.symbol === 'MIM')]
let options = []
setToAssetOptions(options)
tav = options[0]
}
Expand Down
Empty file modified components/ffSwap/swap.js
100644 → 100755
Empty file.
Empty file modified components/ffSwap/swap.module.css
100644 → 100755
Empty file.
Empty file modified components/ffSwaps/ffSwaps.js
100644 → 100755
Empty file.
Empty file modified components/ffSwaps/ffSwaps.module.css
100644 → 100755
Empty file.
Empty file modified components/ffSwaps/package.json
100644 → 100755
Empty file.
Empty file modified components/ffUniV3Rewards/ffUniV3Rewards.js
100644 → 100755
Empty file.
Empty file modified components/ffUniV3Rewards/ffUniV3Rewards.module.css
100644 → 100755
Empty file.
Empty file modified components/ffUniV3Rewards/ffUniV3RewardsTable.js
100644 → 100755
Empty file.
Empty file modified components/ffUniV3Rewards/package.json
100644 → 100755
Empty file.
Empty file modified components/ffUniV3Tokens/ffUniV3Tokens.js
100644 → 100755
Empty file.
Empty file modified components/ffUniV3Tokens/ffUniV3Tokens.module.css
100644 → 100755
Empty file.
Empty file modified components/ffUniV3Tokens/ffUniV3TokensTable.js
100644 → 100755
Empty file.
Empty file modified components/ffUniV3Tokens/package.json
100644 → 100755
Empty file.
Empty file modified components/ffVest/existingLock.js
100644 → 100755
Empty file.
Empty file modified components/ffVest/ffVest.js
100644 → 100755
Empty file.
Empty file modified components/ffVest/ffVest.module.css
100644 → 100755
Empty file.
Empty file modified components/ffVest/loading.js
100644 → 100755
Empty file.
Empty file modified components/ffVest/lock.js
100644 → 100755
Empty file.
Empty file modified components/ffVest/lockAmount.js
100644 → 100755
Empty file.
Empty file modified components/ffVest/lockDuration.js
100644 → 100755
Empty file.
Empty file modified components/ffVest/noBalances.js
100644 → 100755
Empty file.
Empty file modified components/ffVest/package.json
100644 → 100755
Empty file.
Empty file modified components/ffVest/unlock.js
100644 → 100755
Empty file.
Empty file modified components/ffVestOverview/ffOverview.js
100644 → 100755
Empty file.
Empty file modified components/ffVestOverview/ffOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/ffVestOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffVoteCast/ffVoteCast.js
100644 → 100755
Empty file.
Empty file modified components/ffVoteCast/ffVoteCast.module.css
100644 → 100755
Empty file.
Empty file modified components/ffVoteCast/package.json
100644 → 100755
Empty file.
Empty file modified components/ffVoteOverview/ffVoteOverview.js
100644 → 100755
Empty file.
Empty file modified components/ffVoteOverview/ffVoteOverview.module.css
100644 → 100755
Empty file.
Empty file modified components/ffVoteOverview/gaugeVotePie.js
100644 → 100755
Empty file.
Empty file modified components/ffVoteOverview/package.json
100644 → 100755
Empty file.
Empty file modified components/ffWarning/ffWarning.js
100644 → 100755
Empty file.
Empty file modified components/ffWarning/ffWarning.module.css
100644 → 100755
Empty file.
Empty file modified components/ffWarning/package.json
100644 → 100755
Empty file.
Empty file modified components/ffYearnGauge/ffYearnGauge.js
100644 → 100755
Empty file.
Empty file modified components/ffYearnGauge/ffYearnGauge.module.css
100644 → 100755
Empty file.
Empty file modified components/ffYearnGauge/package.json
100644 → 100755
Empty file.
Empty file modified components/gasSpeed/gasSpeed.js
100644 → 100755
Empty file.
Empty file modified components/gasSpeed/gasSpeed.module.css
100644 → 100755
Empty file.
Empty file modified components/gasSpeed/package.json
100644 → 100755
Empty file.
Empty file modified components/header/aboutModal.js
100644 → 100755
Empty file.
17 changes: 0 additions & 17 deletions components/header/header.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -241,23 +241,6 @@ function Header(props) {
/>
</div>

{account && account.address ?
<div>
<Button
disableElevation
className={classes.prettyButton}
variant="contained"
startIcon={<MonetizationOnIcon />}
onClick={() => callClaim()}
disabled={ loading }
>
<Typography className={classes.headBtnTxt}>Claim { claimable == undefined ? 0 : parseFloat(claimable).toFixed(0) } vKP3R</Typography>
</Button>
</div>
:
<div>&nbsp;</div>
}

<Button
disableElevation
className={classes.accountButton}
Expand Down
Empty file modified components/header/header.module.css
100644 → 100755
Empty file.
Empty file modified components/header/package.json
100644 → 100755
Empty file.
Empty file modified components/layout/layout.js
100644 → 100755
Empty file.
Empty file modified components/layout/layout.module.css
100644 → 100755
Empty file.
Empty file modified components/layout/package.json
100644 → 100755
Empty file.
Empty file modified components/layoutWelcome/layoutWelcome.js
100644 → 100755
Empty file.
Empty file modified components/layoutWelcome/layoutWelcome.module.css
100644 → 100755
Empty file.
Empty file modified components/layoutWelcome/package.json
100644 → 100755
Empty file.
Empty file modified components/lendAllAssetRow/lendAllAssetRow.js
100644 → 100755
Empty file.
Empty file modified components/lendAllAssetRow/lendAllAssetRow.module.css
100644 → 100755
Empty file.
Empty file modified components/lendAllAssetRow/package.json
100644 → 100755
Empty file.
Empty file modified components/lendBorrowAssetRow/lendBorrowAssetRow.js
100644 → 100755
Empty file.
Empty file modified components/lendBorrowAssetRow/lendBorrowAssetRow.module.css
100644 → 100755
Empty file.
Empty file modified components/lendBorrowAssetRow/package.json
100644 → 100755
Empty file.
Empty file modified components/lendBorrowGraph/lendBorrowGraph.js
100644 → 100755
Empty file.
Empty file modified components/lendBorrowGraph/lendBorrowGraph.module.css
100644 → 100755
Empty file.
Empty file modified components/lendBorrowGraph/package.json
100644 → 100755
Empty file.
Empty file modified components/lendSupplyAssetRow/lendSupplyAssetRow.js
100644 → 100755
Empty file.
Empty file modified components/lendSupplyAssetRow/lendSupplyAssetRow.module.css
100644 → 100755
Empty file.
Empty file modified components/lendSupplyAssetRow/package.json
100644 → 100755
Empty file.
Empty file modified components/lendSupplyGraph/lendSupplyGraph.js
100644 → 100755
Empty file.
Empty file modified components/lendSupplyGraph/lendSupplyGraph.module.css
100644 → 100755
Empty file.
Empty file modified components/lendSupplyGraph/package.json
100644 → 100755
Empty file.
32 changes: 1 addition & 31 deletions components/navigation/navigation.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -135,36 +135,19 @@ function Navigation(props) {
'Dashboard',
'dashboard',
)}
{renderSubNav(
'Swap',
'swap',
)}
<div className={classes.sectionDivider}></div>
{renderSectionHeader(
'Collateral'
)}
{renderNav(
'Mint Assets',
'mint',
'https://app.ib.xyz'
)}
<div className={classes.sectionDivider}></div>
{renderSectionHeader(
'Liquidity Providing'
)}
<div className={ classes.subAssets }>
{/* {renderSubNav(
'Curve + Convex + Yearn',
'home',
)} */}
{renderSubNav(
'Uniswap',
'staking',
)}
{renderSubNav(
'Withdraw Inactive',
'withdraw',
)}
</div>
<div className={classes.sectionDivider}></div>
{renderSectionHeader(
'Rewards'
Expand All @@ -188,19 +171,6 @@ function Navigation(props) {
'Vest',
'vest',
)}
{renderSubNav(
'Vote',
'vote',
)}
<div className={classes.sectionDivider}></div>
{renderSectionHeader(
'Stats'
)}
{renderNav(
'Stats',
'ffDashboard',
'https://fixedforex.live/'
)}
</div>
</React.Fragment>
);
Expand Down
Empty file modified components/navigation/navigation.module.css
100644 → 100755
Empty file.
Empty file modified components/navigation/package.json
100644 → 100755
Empty file.
Empty file modified components/snackbar/package.json
100644 → 100755
Empty file.
Empty file modified components/snackbar/snackbar.jsx
100644 → 100755
Empty file.
Empty file modified components/snackbar/snackbarController.jsx
100644 → 100755
Empty file.
Empty file modified components/unlock/package.json
100644 → 100755
Empty file.
Empty file modified components/unlock/unlock.js
100644 → 100755
Empty file.
Empty file modified components/unlock/unlockModal.js
100644 → 100755
Empty file.
Empty file modified components/welcomeHeader/package.json
100644 → 100755
Empty file.
Empty file modified components/welcomeHeader/welcomeHeader.js
100644 → 100755
Empty file.
Empty file modified components/welcomeHeader/welcomeHeader.module.css
100644 → 100755
Empty file.
34 changes: 23 additions & 11 deletions next.config.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
module.exports = {
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.node = {
fs: 'empty'
}
}

return config
},
}
images: {
domains: ['rawcdn.githack.com']
},
env: {
/* 🔵 - Yearn Finance **************************************************
** Config over the RPC
**********************************************************************/
WEB_SOCKET_URL: {
1: process.env.WS_URL_MAINNET,
10: process.env.WS_URL_OPTIMISM,
250: process.env.WS_URL_FANTOM,
42161: process.env.WS_URL_ARBITRUM
},
JSON_RPC_URL: {
1: process.env.RPC_URL_MAINNET,
10: process.env.RPC_URL_OPTIMISM,
250: process.env.RPC_URL_FANTOM,
42161: process.env.RPC_URL_ARBITRUM
},
ALCHEMY_KEY: process.env.ALCHEMY_KEY,
INFURA_KEY: process.env.INFURA_KEY
}
};
Loading