diff --git a/src/livepeer.js b/src/livepeer.js index ddc68e6..04c979d 100644 --- a/src/livepeer.js +++ b/src/livepeer.js @@ -122,22 +122,22 @@ class Livepeer extends React.Component { eventsList = this.props.livepeer.events; } - let thisOrchObj = this.props.livepeer.thisOrchestrator; - if (this.props.livepeer.selectedOrchestrator){ + let thisOrchObj; + if (this.props.livepeer.selectedOrchestrator) { thisOrchObj = this.props.livepeer.selectedOrchestrator; } return (
-
- + +
+
-

Smart contract prices

@@ -156,7 +156,7 @@ class Livepeer extends React.Component {
- +
); } diff --git a/src/orchestratorViewer.js b/src/orchestratorViewer.js index 88e7532..61a446d 100644 --- a/src/orchestratorViewer.js +++ b/src/orchestratorViewer.js @@ -36,53 +36,65 @@ const Orchestrator = (obj) => { thisID = obj.thisOrchestrator.delegator.id; thisUrl = "https://explorer.livepeer.org/accounts/" + thisID; } - } - return ( -
-
-
- - -

Orchestrator Info

- {thisID} -
+ return ( +
+
+ +
+

Earned fees {totalVolumeETH} Eth (${totalVolumeUSD})

+
+
+

Reward Cut {rewardCut}%

+

Fee Cut {feeCut}%

+
+
+

Total Stake {totalStake} LPT

+

Self stake {selfStake} LPT ({selfStakeRatio}%)

+
-

Earned fees {totalVolumeETH} Eth (${totalVolumeUSD})

-
-
-

Reward Cut {rewardCut}%

-

Fee Cut {feeCut}%

-
-
-

Total Stake {totalStake} LPT

-

Self stake {selfStake} LPT ({selfStakeRatio}%)

+
+ +
+ { + delegators.map((delObj, idx) => { + return ( +
+ + {delObj.id.substr(0, 6) + ".."} +
+

{parseFloat(delObj.bondedAmount).toFixed(2)} LPT since round {delObj.startRound}

+
+
+ ) + }) + } +
+
+
-
-
- -
- { - delegators.map((delObj, idx) => { - return ( -
- - {delObj.id.substr(0, 6) + ".."} -
-

{parseFloat(delObj.bondedAmount).toFixed(2)} LPT since round {delObj.startRound}

-
-
- ) - }) - } -
-
+ ) + } + return ( +
+
+
+ +

Orchestrator Info

+
+
+

Click on an orchestrator in the list below!

- ) }