Skip to content

Commit

Permalink
fix wrong variable access
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Jan 8, 2025
1 parent 8650fff commit b2bd146
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/kraken_infinity_grid/gridbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,7 @@ def investment(self: Self) -> float:
def max_investment_reached(self: Self) -> bool:
"""Returns True if the maximum investment is reached."""
# TODO: put this as class variable
new_position_value = (
self.__s.amount_per_grid + self.__s.amount_per_grid * self.__s.fee
)
new_position_value = self.amount_per_grid + self.amount_per_grid * self.fee

return (self.max_investment <= self.investment + new_position_value) or (
self.max_investment <= self.investment
Expand Down

0 comments on commit b2bd146

Please sign in to comment.