diff --git a/src/eventViewer.js b/src/eventViewer.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/livepeer.js b/src/livepeer.js
index a0c7f1f..c87a1f7 100644
--- a/src/livepeer.js
+++ b/src/livepeer.js
@@ -51,12 +51,12 @@ class Livepeer extends React.Component {
let ethPriceChange24h = 0;
if (this.props.livepeer.quotes) {
if (this.props.livepeer.quotes.LPT) {
- lptPrice = this.props.livepeer.quotes.LPT.price;
- lptPriceChange24h = this.props.livepeer.quotes.LPT.percent_change_24h;
+ lptPrice = this.props.livepeer.quotes.LPT.price.toFixed(2);
+ lptPriceChange24h = this.props.livepeer.quotes.LPT.percent_change_24h.toFixed(2);
}
if (this.props.livepeer.quotes.ETH) {
- ethPrice = this.props.livepeer.quotes.ETH.price;
- ethPriceChange24h = this.props.livepeer.quotes.ETH.percent_change_24h;
+ ethPrice = this.props.livepeer.quotes.ETH.price.toFixed(2);
+ ethPriceChange24h = this.props.livepeer.quotes.ETH.percent_change_24h.toFixed(2);
}
}
@@ -93,29 +93,29 @@ class Livepeer extends React.Component {
let withdrawFeeCostL2USD;
if (l1GasFeeInGwei && ethPrice) {
if (redeemRewardCostL1) {
- redeemRewardCostL1USD = redeemRewardCostL1 * ethPrice;
+ redeemRewardCostL1USD = (redeemRewardCostL1 * ethPrice).toFixed(2);
}
if (claimTicketCostL1) {
- claimTicketCostL1USD = claimTicketCostL1 * ethPrice;
+ claimTicketCostL1USD = (claimTicketCostL1 * ethPrice).toFixed(2);
}
if (withdrawFeeCostL1) {
- withdrawFeeCostL1USD = withdrawFeeCostL1 * ethPrice;
+ withdrawFeeCostL1USD = (withdrawFeeCostL1 * ethPrice).toFixed(2);
}
}
if (l2GasFeeInGwei && ethPrice) {
if (redeemRewardCostL2) {
- redeemRewardCostL2USD = redeemRewardCostL2 * ethPrice;
+ redeemRewardCostL2USD = (redeemRewardCostL2 * ethPrice).toFixed(2);
}
if (claimTicketCostL2) {
- claimTicketCostL2USD = claimTicketCostL2 * ethPrice;
+ claimTicketCostL2USD = (claimTicketCostL2 * ethPrice).toFixed(2);
}
if (withdrawFeeCostL2) {
- withdrawFeeCostL2USD = withdrawFeeCostL2 * ethPrice;
+ withdrawFeeCostL2USD = (withdrawFeeCostL2 * ethPrice).toFixed(2);
}
}
let eventsList = [];
- if (this.props.livepeer.events){
+ if (this.props.livepeer.events) {
eventsList = this.props.livepeer.events;
}
@@ -132,12 +132,12 @@ class Livepeer extends React.Component {
-
+
{eventsList.map((eventObj, idx) => {
console.log(eventObj);
// TODO: make something that groups shit as long as the eventObj.transactionUrl is the same
return
-
-
Price Info
-
Current LPT price: {lptPrice}
-
Current LPT price change: {lptPriceChange24h}%
-
Current ETH price: {ethPrice}
-
Current ETH price change: {ethPriceChange24h}%
-
Cost Info
-
Last updated @ {blockchainTime}
-
Current layer 1 gas fee in GWEI: {l1GasFeeInGwei}
-
Current layer 1 is at block: {l1Block}
-
Current layer 1 cost to redeem daily reward: {redeemRewardCostL1} eth = ${redeemRewardCostL1USD}
-
Current layer 1 cost to claim a winning ticket: {claimTicketCostL1} eth = ${claimTicketCostL1USD}
-
Current layer 1 cost to withdraw Eth fees: {withdrawFeeCostL1} eth = ${withdrawFeeCostL1USD}
-
Current layer 2 gas fee in GWEI: {l2GasFeeInGwei}
-
Current layer 2 is at block: {l2Block}
-
Current layer 2 cost to redeem daily reward: {redeemRewardCostL2} eth = ${redeemRewardCostL2USD}
-
Current layer 2 cost to claim a winning ticket: {claimTicketCostL2} eth = ${claimTicketCostL2USD}
-
Current layer 2 cost to withdraw Eth fees: {withdrawFeeCostL2} eth = ${withdrawFeeCostL2USD}
+
+
+
Price Info
+
+
+

+
${lptPrice}
+
({lptPriceChange24h}%)
+
+
+

+
${ethPrice}
+
({ethPriceChange24h}%)
+
+
Smart contract prices L2
+
+
Reward Call:
+
${redeemRewardCostL2USD}
+
+
+
Claim Ticket:
+
${claimTicketCostL2USD}
+
+
+
Withdraw Fees:
+
${withdrawFeeCostL2USD}
+
+
Smart contract prices L1
+
+
Reward Call:
+
${redeemRewardCostL1USD}
+
+
+
Claim Ticket:
+
${claimTicketCostL1USD}
+
+
+
Withdraw Fees:
+
${withdrawFeeCostL1USD}
+
diff --git a/src/style.css b/src/style.css
index 1d69f43..86302ba 100644
--- a/src/style.css
+++ b/src/style.css
@@ -126,6 +126,27 @@ svg {
from { top: 0; } to { top: calc(100vh - 69px); }
}
+.scrollWindow {
+ margin-top: 10px;
+ margin-bottom: 10px;
+ width: calc(50vw);
+ height: calc((9 / 16 ) * 50vw);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ align-content: center;
+ opacity: 0.95;
+}
+
+.metaSidebar {
+ background-color: rgba(180, 175, 252, 0.80);
+ box-shadow: 9px 13px 18px 8px rgba(8, 7, 56, 0.692);
+ border-radius: 30px;
+ box-sizing: border-box;
+ backdrop-filter: blur(6px);
+ height: 100%;
+}
+
.serviceButton {
width: 100%;
margin: 0.4em;
@@ -207,6 +228,19 @@ svg {
z-index: 2;
}
+.strokeSmoll {
+ box-sizing: border-box;
+ height: 100%;
+ paddin: 0;
+ margin: 0;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+ z-index: 2;
+}
+
.row {
box-sizing: border-box;
width: 100%;
@@ -418,18 +452,6 @@ svg {
display:block;
}
-.mistvideo {
- margin-top: 10px;
- margin-bottom: 10px;
- width: calc(50vw);
- height: calc((9 / 16 ) * 50vw);
- display: flex;
- justify-content: center;
- align-items: center;
- align-content: center;
- opacity: 0.95;
-}
-
.separator {
border:none;
border-top:25px dotted rgba(56, 19, 124, 0.6);
@@ -438,17 +460,6 @@ svg {
margin: 0;
}
-.mistvideo-controls svg.mist.icon:hover .fill,
-.mistvideo-controls svg.mist.icon:hover .semiFill,
-.mistvideo-volume_container:hover .fill,
-.mistvideo-volume_container:hover .semiFill {
- fill: rgba(179, 14, 14, 0.875);
-}
-.mistvideo-controls svg.mist.icon:hover .stroke,
-.mistvideo-volume_container:hover .stroke {
- stroke: rgba(179, 14, 14, 0.875);
-}
-
.markdown {
padding: 50px;
width: 50vw;
@@ -495,6 +506,10 @@ svg {
@media (max-aspect-ratio: 1/1) {
+ .scrollWindow {
+ width: calc(100vw - 20px);
+ height: calc((9 / 16 ) * (100vw - 20px));
+ }
.fullGrafana {
width: calc(100vw - 2em);
}
@@ -520,6 +535,13 @@ svg {
border-radius: 10px;
box-sizing: border-box;
}
+ .metaSidebar {
+ background-color: none;
+ width: 100%;
+ box-shadow: none;
+ border-radius: 10px;
+ box-sizing: border-box;
+ }
.stroke {
margin-left: 0;
margin-right: 0;
@@ -532,10 +554,6 @@ svg {
visibility: hidden;
display:none;
}
- .mistvideo {
- width: calc(100vw - 20px);
- height: calc((9 / 16 ) * (100vw - 20px));
- }
.mobileNoPadding {
padding: 0;
}