Skip to content

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.

3 participants