Skip to content
This repository was archived by the owner on Mar 16, 2022. It is now read-only.
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/containers/iico/components/data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export default class Data extends PureComponent {
let phase
if (now < startTime) phase = 'Not Started'
else if (now < endFullBonusTime) phase = 'Full Bonus'
else if (now < withdrawalLockTime) phase = 'Free Withdrawals'
else if (now < endTime) phase = 'Automatic Withdrawals'
else if (now < withdrawalLockTime) phase = 'Partial Withdrawals'
else if (now < endTime) phase = 'Withdrawal Lockup'
else phase = 'Finished'

// Slider percents
Expand All @@ -74,7 +74,7 @@ export default class Data extends PureComponent {
<StatRow withBoxShadow>
<StatBlock
label="Valuation"
value={<ChainNumber>{data.valuation}</ChainNumber>}
value={<ChainNumber>{data.valuation || 0}</ChainNumber>}
/>
<StatBlock label="Phase" value={phase} />
</StatRow>
Expand Down
2 changes: 1 addition & 1 deletion src/sagas/iico.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function* fetchIICOData({ payload: { address } }) {

// Token
tokenContractAddress: d.tokenContractAddress[0],
tokensForSale: d.tokensForSale[0].toNumber(),
tokensForSale: Number(Eth.fromWei(d.tokensForSale[0], 'ether')),

// Times
startTime: new Date(d.startTime[0].toNumber() * 1000),
Expand Down