diff --git a/src/eventButton.js b/src/eventButton.js index be55db2..4aa1928 100644 --- a/src/eventButton.js +++ b/src/eventButton.js @@ -75,7 +75,7 @@ const EventButton = (obj) => { }) // If we only had a bond transaction and nothing else, this is a stake - if (hasBondTransaction && isOnlyBond){ + if (hasBondTransaction && isOnlyBond) { transactionName = "Stake"; thisColour = stakeColour; } @@ -93,26 +93,33 @@ const EventButton = (obj) => {

called reward worth {transactionAmount.toFixed(2)} LPT

} - }else if (transactionName == "Update") { + } else if (transactionName == "Update") { eventSpecificInfo =

changed their reward commission to {transactionAmount.toFixed(2)}% and their fee commission to {transactionAdditionalAmount.toFixed(2)}%

- }else if (transactionName == "Stake") { + } else if (transactionName == "Stake") { + if (transactionFrom == "0x0000000000000000000000000000000000000000") { + eventSpecificInfo = +
+

staked {(transactionAmount / 1000000000000000000).toFixed(2)} LPT to {transactionTo}

+
+ } else { + eventSpecificInfo = +
+

changed stake from {transactionFrom} to {transactionTo} of {(transactionAmount / 1000000000000000000).toFixed(2)} LPT

+
+ } + } else if (transactionName == "Withdraw") { eventSpecificInfo =
-

changed stake from {transactionFrom} to {transactionTo} of {(transactionAmount * 7e-18).toFixed(2)} LPT

-
- }else if (transactionName == "Withdraw") { - eventSpecificInfo = -
-

withdrew {(transactionAmount * 7e-18).toFixed(2)} LPT in round {transactionWhen}

+

withdrew {(transactionAmount / 1000000000000000000).toFixed(2)} LPT in round {transactionWhen}

} else if (transactionName == "Activated") { if (hasBondTransaction) { eventSpecificInfo =
-

{transactionCaller} activated with a self stake of {(transactionAmount * 7e-18).toFixed(2)} LPT and will become active in round {transactionWhen}

+

{transactionCaller} activated with a self stake of {(transactionAmount / 1000000000000000000).toFixed(2)} LPT and will become active in round {transactionWhen}

} else { // If there was no bond transaction, display fewer information