@generationsoftware/pt-v5-autotasks-library
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -151,3 +151,3 @@ import nodeFetch from 'node-fetch'; | ||
const netProfitUsd = claimRewardUsd - totalCostUsd; | ||
console.log(chalk.magenta('Net profit = (Gross Profit - Gas Cost [Max])')); | ||
console.log(chalk.magenta('Net profit = (Gross Profit - Gas Cost [Average])')); | ||
console.log(chalk.greenBright(`$${roundTwoDecimalPlaces(netProfitUsd)} = ($${roundTwoDecimalPlaces(claimRewardUsd)} - $${roundTwoDecimalPlaces(totalCostUsd)})`), chalk.dim(`$${netProfitUsd} = ($${claimRewardUsd} - $${totalCostUsd})`)); | ||
@@ -306,3 +306,3 @@ printSpacer(); | ||
const netProfitUsd = nextClaimRewardUsd - totalCostUsd; | ||
console.log(chalk.dim('Net profit = (Gross Profit - Gas Cost [Avg])')); | ||
console.log(chalk.dim('Net profit = (Gross Profit - Gas Cost [Average])')); | ||
console.log(chalk.greenBright(`$${roundTwoDecimalPlaces(netProfitUsd)} = ($${roundTwoDecimalPlaces(nextClaimRewardUsd)} - $${roundTwoDecimalPlaces(totalCostUsd)})`), chalk.dim(`$${netProfitUsd} = ($${nextClaimRewardUsd} - $${totalCostUsd})`)); | ||
@@ -322,2 +322,3 @@ if (netProfitUsd > previousNetProfitUsd && | ||
else { | ||
claimRewardUsd = nextClaimRewardUsd; | ||
break; | ||
@@ -324,0 +325,0 @@ } |
{ | ||
"name": "@generationsoftware/pt-v5-autotasks-library", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Library of shared utils to run PoolTogether v5 hyperstructure autotasks.", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
442989
7319