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

Further split out batcher and mm contracts to avoid size constraint #410

Open
glottologist opened this issue Oct 6, 2023 · 0 comments
Open
Assignees

Comments

@glottologist
Copy link
Collaborator

With all the additional support required for the market maker the batcher contract has broken the size constraint for origination. So we need to explore ways to break it down into smaller contracts.

There are a few possibilities:

  1. Pull all the token storage and methods out into a separate contract that can be called by noth batcher and mm.
  2. Additionally we can use a separate contract for each vault - this would remove the support required in batcher to 'tell' the market maker how much it expects on redemption (this is to keep the balances correct in each vault). If each vault were its own contract then it would have its own balances which would be clear on redemption from batcher (this would also be the case for fees)
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 a pull request may close this issue.

1 participant