Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enhance investment pool functionality and error handling #86

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

princevijay27
Copy link
Collaborator

  • Modified filter criteria for investment pool selection
  • Updated token investment logic for better performance
  • Implemented error handling for large numerical values
  • Expanded pool selection range for increased flexibility
  • Added fallback calculation for zero APR base
  • Introduced investment caps and validation
  • Added multi-pool functionality and updated partial position reallocation

- Modified filter criteria for investment pool selection
- Updated token investment logic for better performance
- Implemented error handling for large numerical values
- Expanded pool selection range for increased flexibility
- Added fallback calculation for zero APR base
- Introduced investment caps and validation
- Added multi-pool functionality and updated partial position reallocation
- Modified filter criteria for investment pool selection
- Updated token investment logic for better performance
- Implemented error handling for large numerical values
- Expanded pool selection range for increased flexibility
- Added fallback calculation for zero APR base
- Introduced investment caps and validation
- Added multi-pool functionality and updated partial position reallocation
Base automatically changed from chore/bump-framework to main February 27, 2025 10:45
if sharpe_ratio <= SHARPE_RATIO_THRESHOLD:
logs.append(f"Opportunity does not meet the {SHARPE_RATIO_THRESHOLD=}")
continue
# if sharpe_ratio <= SHARPE_RATIO_THRESHOLD:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why comment these lines?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not resolved

if len(assets) != len(max_amounts_in):
raise ValueError("Length of assets and max_amounts_in must match")

# Initialize the new amounts list with zeros
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the logging statements? They aren’t very clear right now and could be more descriptive.

@@ -172,23 +168,13 @@ def adjust_amounts(self, assets, max_amounts_in, assets_new):

# Initialize the new amounts list with zeros
new_max_amounts_in = [0] * len(assets_new)
self.context.logger.info(f"Initial new_max_amounts_in: {new_max_amounts_in}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't remove the logs just add more descriptive logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants