Change net_gain to Net_profit so it makes sense
This commit is contained in:
parent
839a62dba9
commit
13823f3793
@ -257,13 +257,13 @@ async def calculate_trade_profies(commodity, scu=None):
|
|||||||
inline=True,
|
inline=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
net_gain = float(profits[max(profits, key=profits.get)]) - float(
|
net_profit = float(profits[max(profits, key=profits.get)]) - float(
|
||||||
costs[min(costs, key=costs.get)]
|
costs[min(costs, key=costs.get)]
|
||||||
)
|
)
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="**Net Gain**",
|
name="**Net Profit**",
|
||||||
value="$%s" % "{:20,.2f}".format(net_gain).strip(),
|
value="$%s" % "{:20,.2f}".format(net_profit).strip(),
|
||||||
inline=True,
|
inline=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user