Skip to content

Commit

Permalink
fix(vault): retire yfi (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
nymmrx authored Feb 19, 2021
1 parent 33e4baf commit f83e7df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/vault/asset.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Asset extends Component {
<Typography variant={ 'h5' } className={ classes.grey }>Yearly Growth:</Typography>
<div className={ classes.flexy }>
<Typography variant={ 'h4' } noWrap>
{ ['LINK', 'DAI', 'ETH', 'WETH'].includes(asset.id)
{ ['LINK', 'DAI', 'ETH', 'WETH', 'YFI'].includes(asset.id)
? "Not Available"
: `${(this._getAPY(asset)/1).toFixed(2)}%`
}
Expand All @@ -237,7 +237,7 @@ class Asset extends Component {
<Typography variant={ 'h5' } className={ classes.grey }>Monthly Growth:</Typography>
<div className={ classes.flexy }>
<Typography variant={ 'h4' } noWrap>
{ ['LINK', 'DAI', 'ETH', 'WETH'].includes(asset.id)
{ ['LINK', 'DAI', 'ETH', 'WETH', 'YFI'].includes(asset.id)
? "Not Available"
: `${(this._getAPY(asset)/12).toFixed(2)}%`
}
Expand All @@ -248,7 +248,7 @@ class Asset extends Component {
<Typography variant={ 'h5' } className={ classes.grey }>Weekly Growth:</Typography>
<div className={ classes.flexy }>
<Typography variant={ 'h4' } noWrap>
{ ['LINK', 'DAI', 'ETH', 'WETH'].includes(asset.id)
{ ['LINK', 'DAI', 'ETH', 'WETH', 'YFI'].includes(asset.id)
? "Not Available"
: `${(this._getAPY(asset)/52).toFixed(2)}%`
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/vault/vault.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ class Vault extends Component {
</div>
</div>
{
(!['LINK', 'GUSD', 'DAI', 'ETH', 'WETH'].includes(asset.id) && asset.vaultBalance > 0) &&
(!['LINK', 'GUSD', 'DAI', 'ETH', 'WETH', 'YFI'].includes(asset.id) && asset.vaultBalance > 0) &&
<div className={classes.headingEarning}>
<Typography variant={ 'h5' } className={ classes.grey }>Yearly Growth:</Typography>
<div className={ classes.flexy }>
Expand All @@ -514,7 +514,7 @@ class Vault extends Component {
</div>
}
{
(!['LINK', 'GUSD', 'DAI', 'ETH', 'WETH'].includes(asset.id) && asset.vaultBalance === 0) &&
(!['LINK', 'GUSD', 'DAI', 'ETH', 'WETH', 'YFI'].includes(asset.id) && asset.vaultBalance === 0) &&
<div className={classes.headingEarning}>
<Typography variant={ 'h5' } className={ classes.grey }>Yearly Growth:</Typography>
<div className={ classes.flexy }>
Expand All @@ -523,7 +523,7 @@ class Vault extends Component {
</div>
}
{
['LINK', 'DAI', 'ETH', 'WETH'].includes(asset.id) &&
['LINK', 'DAI', 'ETH', 'WETH', 'YFI'].includes(asset.id) &&
<div className={classes.headingEarning}>
<Typography variant={ 'h5' } className={ classes.grey }>Yearly Growth:</Typography>
<Typography variant={ 'h3' } noWrap>Not Available</Typography>
Expand Down
4 changes: 2 additions & 2 deletions src/stores/store.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1233,8 +1233,8 @@ class Store {
balance: 0,
vaultBalance: 0,
decimals: 18,
deposit: true,
depositAll: true,
deposit: false,
depositAll: false,
withdraw: true,
withdrawAll: true,
lastMeasurement: 10695309,
Expand Down

0 comments on commit f83e7df

Please sign in to comment.