mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 18:55:09 +02:00
Fix activation events
This commit is contained in:
parent
e3dd2c476f
commit
fd8303c328
@ -50,12 +50,6 @@ const EventButton = (obj) => {
|
|||||||
transactionTo = eventObj.data.newDelegate.toLowerCase();
|
transactionTo = eventObj.data.newDelegate.toLowerCase();
|
||||||
transactionAmount = parseFloat(eventObj.data.bondedAmount) / 1000000000000000000;
|
transactionAmount = parseFloat(eventObj.data.bondedAmount) / 1000000000000000000;
|
||||||
transactionAdditionalAmount = parseFloat(eventObj.data.additionalAmount) / 1000000000000000000;
|
transactionAdditionalAmount = parseFloat(eventObj.data.additionalAmount) / 1000000000000000000;
|
||||||
if (hasEarningsClaimed) {
|
|
||||||
transactionName = "Stake";
|
|
||||||
hasEarningsClaimed = false;
|
|
||||||
console.log("COMPLEX BOND " + thisURL);
|
|
||||||
console.log(thisData);
|
|
||||||
}
|
|
||||||
hasBondTransaction = true;
|
hasBondTransaction = true;
|
||||||
}
|
}
|
||||||
// Unbond: defines transactionWhen. Defines transactionAmount as X / 1000000000000000000 LPT
|
// Unbond: defines transactionWhen. Defines transactionAmount as X / 1000000000000000000 LPT
|
||||||
@ -155,10 +149,7 @@ const EventButton = (obj) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// If we only had a bond transaction and nothing else, this is a stake
|
// If we only had a bond transaction and nothing else, this is a stake
|
||||||
if (hasBondTransaction) {
|
if (hasBondTransaction && transactionName == "") {
|
||||||
if (transactionName === "Migrate"){
|
|
||||||
console.log("overwr");
|
|
||||||
}
|
|
||||||
transactionName = "Stake";
|
transactionName = "Stake";
|
||||||
thisColour = stakeColour;
|
thisColour = stakeColour;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user