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

[WIP] Batch Trade Position Units Bugfix #121

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

Conversation

controtie
Copy link
Contributor

No description provided.

cgewecke and others added 27 commits April 18, 2022 16:04
* update code comments in set token api + protocol viewer to reflect correct param usage

* add null address constant

* update validate quotes method to be more generalized

* check batch trade does not produce dust positions on utils api layer

* update trade quoter to use BigNumber instead of decimal

* update validation helper to allow only checking from token quantities option

* refactor conversion of tokens from and to pre token positions into helper method

* remove remaining comments for checking dust positions

* correctly use current token position if max implied + zero ex match

* only validate batch trade does not produce dust positions for tokens spread across multiple trades

* add more clarity to comments

* add comment re: max selling across multiple trades
…only need to apply it to the first trade for agiven from component in a batch
Base automatically changed from chris/batch-trade-extension to master June 1, 2022 21:53
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