mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Fix rewardcut and feecut
This commit is contained in:
parent
8b8dcd5143
commit
6b4dce94e8
@ -36,7 +36,7 @@ const EventButton = (obj) => {
|
|||||||
</div>
|
</div>
|
||||||
} else if (obj.name == "TranscoderUpdate") {
|
} else if (obj.name == "TranscoderUpdate") {
|
||||||
eventSpecificInfo = <div className="row" style={{ backgroundColor: 'rgba(215, 15, 0, 0.3)' }}>
|
eventSpecificInfo = <div className="row" style={{ backgroundColor: 'rgba(215, 15, 0, 0.3)' }}>
|
||||||
<p>O {obj.data.transcoder} changed their rewardCut to {obj.data.rewardCut} and their feeShare to {obj.data.feeShare}</p>
|
<p>O {obj.data.transcoder} changed their rewardCut to {(obj.data.rewardCut / 10000).toFixed(2)} and their feeCut to {(100 - (obj.data.feeShare / 10000)).toFixed(2)}</p>
|
||||||
</div>
|
</div>
|
||||||
} else if (obj.name == "TranscoderActivated") {
|
} else if (obj.name == "TranscoderActivated") {
|
||||||
eventSpecificInfo = <div className="row" style={{ backgroundColor: 'rgba(0, 255, 1, 0.3)' }}>
|
eventSpecificInfo = <div className="row" style={{ backgroundColor: 'rgba(0, 255, 1, 0.3)' }}>
|
||||||
|
@ -13,6 +13,12 @@ const EventViewer = (obj) => {
|
|||||||
<ScrollContainer className="overflow-container" hideScrollbars={false}>
|
<ScrollContainer className="overflow-container" hideScrollbars={false}>
|
||||||
<div className="overflow-content" style={{ cursor: 'grab' }}>
|
<div className="overflow-content" style={{ cursor: 'grab' }}>
|
||||||
{obj.events.slice(0).reverse().map((eventObj, idx) => {
|
{obj.events.slice(0).reverse().map((eventObj, idx) => {
|
||||||
|
// TODO: once txCounter falls out of a certain range, stop parsing new blocks
|
||||||
|
// Apply the filter first so that the IDX only counts displayed blocks
|
||||||
|
// Skip WithdrawFees buttons cause they are not interesting for the MVP
|
||||||
|
if (eventObj.name == "WithdrawFees"){
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (currentTx != eventObj.transactionHash) {
|
if (currentTx != eventObj.transactionHash) {
|
||||||
txCounter++;
|
txCounter++;
|
||||||
currentTx = eventObj.transactionHash;
|
currentTx = eventObj.transactionHash;
|
||||||
@ -22,10 +28,6 @@ const EventViewer = (obj) => {
|
|||||||
eventCache.push(eventObj);
|
eventCache.push(eventObj);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Skip WithdrawFees buttons cause they are not interesting for the MVP
|
|
||||||
if (eventObj.name == "WithdrawFees"){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
return <EventButton
|
return <EventButton
|
||||||
key={eventObj.transactionUrl + idx}
|
key={eventObj.transactionUrl + idx}
|
||||||
transactionUrl={eventObj.transactionUrl}
|
transactionUrl={eventObj.transactionUrl}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user