Skip to content

Commit

Permalink
Send scheduled rewards to Station Desktop (#284)
Browse files Browse the repository at this point in the history
* change to accomodate #1134 in station-desktop

* update based on Julians feedback to not convert to ether here

* bigint to string so it can be JSON.stringified

* revert back to parsing ether for the console.log

---------

Co-authored-by: Julian Gruber <[email protected]>
  • Loading branch information
patrickwoodhead and juliangruber authored Dec 7, 2023
1 parent 4606562 commit 96cbab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export const station = async ({ json, experimental }) => {
if (json) {
console.log(JSON.stringify({
type: 'jobs-completed',
total: metrics.totalJobsCompleted
total: metrics.totalJobsCompleted,
rewardsScheduledForAddress: formatEther(metrics.rewardsScheduledForAddress)
}))
} else {
console.log(JSON.stringify({
Expand Down

0 comments on commit 96cbab5

Please sign in to comment.