Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iXiaowu2020 committed Sep 27, 2020
1 parent f59b5a4 commit 66751e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/features/farm/redux/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ export { checkApproval } from './checkApproval';
export { fetchBalance } from './fetchBalance';
export { fetchCurrentlyStaked } from './fetchCurrentlyStaked';
export { fetchRewardsAvailable } from './fetchRewardsAvailable';
export { fetchHalfTime } from './fetchHalfTime';
export { fetchCanWithdrawTime } from './fetchCanWithdrawTime';
export { fetchApproval } from './fetchApproval';
export { fetchStake } from './fetchStake';
export { fetchWithdraw } from './fetchWithdraw';
Expand Down
18 changes: 7 additions & 11 deletions src/features/farm/redux/initialState.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@ import { yCurveFiRewardsABI, balancerRewardsABI, governanceABI, pool4Abi } from

const pools = [
{
name: 'pool4',
name: 'YFII',
description: '',
token: 'YFII',
tokenDescription: '',
tokenDecimals: 18,
tokenAddress: '0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83',
earnedToken: 'MEFI',
earnedTokenDescription: '',
earnedTokenDecimals: 6,
earnedTokenAddress: '0x72Cf258c852Dc485a853370171d46B9D29fD3184',
earnContractAddress: '0x6A77c0c917Da188fBfa9C380f2E60dd223c0c35a',
earnContractAbi: pool4Abi
},
{
name: 'mefilp',
description: '',
token: 'MEFI/ETH',
tokenDescription: '',
tokenDecimals: 18,
tokenAddress: '0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83',
earnedToken: 'MEFI',
earnedTokenDescription: '',
earnedTokenDecimals: 6,
earnedTokenAddress: '0x72Cf258c852Dc485a853370171d46B9D29fD3184',
earnContractAddress: '0x6CA21695CB12A251bB19aE73Bda6964f1BBc48De',
Expand All @@ -26,22 +32,18 @@ const pools = [
];

const poolsInfo = [{
name: "yearn.finance",
staked: 0,
tvl: 0,
apy: 0,
},{
name: "Balancer Pool",
staked: 0,
tvl: 0,
apy: 0,
},{
name: "Governance",
staked: 0,
tvl: 0,
apy: 0,
},{
name: "pool4",
staked: 0,
tvl: 0,
apy: 0,
Expand All @@ -51,26 +53,20 @@ const allowance = [0,0,0,0];
const balance = [0,0,0,0];
const currentlyStaked = [0,0,0,0];
const rewardsAvailable = [0,0,0,0];
const halfTime = [0,0,0,0];
const canWithdrawTime = [0,0,0,0];


const initialState = {
pools,
allowance,
currentlyStaked,
rewardsAvailable,
halfTime,
canWithdrawTime,
balance,
poolsInfo,
fetchPoolsInfoPending: false,
checkApprovalPending: [false,false,false,false],
fetchBalancePending: [false,false,false,false],
fetchCurrentlyStakedPending: [false,false,false,false],
fetchRewardsAvailablePending: [false,false,false,false],
fetchHalfTimePending: [false,false,false,false],
fetchCanWithdrawTimePending: [false,false,false,false],
fetchApprovalPending: [false,false,false,false],
fetchStakePending: [false,false,false,false],
fetchWithdrawPending: [false,false,false,false],
Expand Down

0 comments on commit 66751e2

Please sign in to comment.