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

V2 Withdraw To Endpoint #71

Open
wants to merge 3 commits into
base: v2
Choose a base branch
from

Conversation

Kayanski
Copy link
Contributor

This PR aims at adding a Withdraw To endpoint to withdraw everything from the position to a single asset

@Buckram123
Copy link
Contributor

@Kayanski seems like wrong base?

@Kayanski Kayanski changed the base branch from main to v2 April 15, 2024 11:28
})?;
}

deps.api.debug(&format!("{:?}", withdraw_msgs));
Copy link
Contributor

Choose a reason for hiding this comment

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

about gas situation, noticed you have a lot of debugs. Want to mention that it will still eat gas for converting variable to debug string, and to allocate formatted string even if it does not get printed. Not really sure how much it is actually, but just to keep in mind before next gas measurements

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yes you are right ! This is very low though compared to what the app is actually eating !

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