Skip to content

Conversation

@jalextowle
Copy link
Contributor

Previously, get_spot_price_after long would simulate the spot price after opening a long without taking fees into account. This PR updates the function to take fees into account. As part of this, calculate_open_long no longer relies on this function to catch negative interest cases.

Copy link
Contributor

@dpaiton dpaiton left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@jalextowle jalextowle enabled auto-merge (squash) March 28, 2024 19:50
@jalextowle jalextowle requested review from dpaiton and slundqui and removed request for slundqui March 29, 2024 02:08
@jalextowle jalextowle merged commit 12af6c0 into main Mar 29, 2024
@jalextowle jalextowle deleted the jalextowle/chore/fix-calculate-open-long branch March 29, 2024 02:23
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.

4 participants