Skip to content

Commit

Permalink
comment about get_new_prices for liquidity, benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberosa committed Oct 14, 2024
1 parent 8dee13b commit f95456f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/valory/skills/decision_maker_abci/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def validate_end_information(self) -> Tuple[int, int]:
return self.l0_end, self.l1_end

def get_new_prices(self, liquidity_constants: List) -> List[float]:
"""Calculate and return the new prices based on the end liquidity."""
"""Calculate and return the new prices based on the end liquidity and the liquidity constants of the market."""
l0_end, l1_end = self.validate_end_information()
new_p0 = liquidity_constants[0] / l0_end
new_p1 = liquidity_constants[1] / l1_end
Expand Down

0 comments on commit f95456f

Please sign in to comment.