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

Composable stable pool versioning #2034

Conversation

jubeira
Copy link
Contributor

@jubeira jubeira commented Nov 22, 2022

Description

This PR adds an version getter for ComposableStablePool and ComposableStablePoolFactory (factory provides created pools with the actual version string).

Similar to #2032, but using composable pool's deployment branch as base (this is just for this deployment, not a final implementation of this feature).
This PR does not introduce a separate Version contract because that caused a 'stack too deep' error in ComposableStablePoolContract, so the functionality is implemented directly in the pool.

Merge before #2028 and update the artifacts in that PR.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency changes
  • Code refactor / cleanup
  • Documentation or wording changes
  • Other

Checklist:

  • The diff is legible and has no extraneous changes
  • Complex code has been commented, including external interfaces
  • Tests are included for all code paths
  • The base branch is either master, or there's a description of how to merge

Issue Resolution

See #2026.

@jubeira jubeira marked this pull request as ready for review November 23, 2022 12:45
@nventuro nventuro merged commit 6244eac into composable-stable-pool-deployment-base Nov 23, 2022
@nventuro nventuro deleted the composable-stable-pool-deployment-base-versioning branch November 23, 2022 12:58
jubeira pushed a commit that referenced this pull request Nov 24, 2022
* WIP: version for ComposableStablePool.

* Fix stack too deep error and adjust tests.

* ComposableStablePoolFactory test.

* Remove unused var.

* Add factory version / pool version.

* Fix benchmarks.

* Remove IVersionProvider.
TomAFrench pushed a commit that referenced this pull request Nov 24, 2022
* WIP: version for ComposableStablePool.

* Fix stack too deep error and adjust tests.

* ComposableStablePoolFactory test.

* Remove unused var.

* Add factory version / pool version.

* Fix benchmarks.

* Remove IVersionProvider.
TomAFrench pushed a commit that referenced this pull request Nov 24, 2022
* WIP: version for ComposableStablePool.

* Fix stack too deep error and adjust tests.

* ComposableStablePoolFactory test.

* Remove unused var.

* Add factory version / pool version.

* Fix benchmarks.

* Remove IVersionProvider.
TomAFrench pushed a commit that referenced this pull request Nov 24, 2022
* WIP: version for ComposableStablePool.

* Fix stack too deep error and adjust tests.

* ComposableStablePoolFactory test.

* Remove unused var.

* Add factory version / pool version.

* Fix benchmarks.

* Remove IVersionProvider.
TomAFrench pushed a commit that referenced this pull request Nov 25, 2022
* WIP: version for ComposableStablePool.

* Fix stack too deep error and adjust tests.

* ComposableStablePoolFactory test.

* Remove unused var.

* Add factory version / pool version.

* Fix benchmarks.

* Remove IVersionProvider.
TomAFrench pushed a commit that referenced this pull request Nov 25, 2022
* WIP: version for ComposableStablePool.

* Fix stack too deep error and adjust tests.

* ComposableStablePoolFactory test.

* Remove unused var.

* Add factory version / pool version.

* Fix benchmarks.

* Remove IVersionProvider.
nventuro added a commit that referenced this pull request Nov 30, 2022
* Prevent invariant overflow (#1690)

* Add check to prevent invariant overflow

* Update pkg/pool-stable/contracts/ComposableStablePoolProtocolFees.sol

Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>

Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>

* Composable stable pool versioning (#2034)

* WIP: version for ComposableStablePool.

* Fix stack too deep error and adjust tests.

* ComposableStablePoolFactory test.

* Remove unused var.

* Add factory version / pool version.

* Fix benchmarks.

* Remove IVersionProvider.

* feat: add proportional joins/exits

* Deployment preparation: Composable stable pool v2 (#2028)

* feat: add proportional joins/exits to ComposableStablePool

* deprecate 20220906-composable-stable-pool task

* add new task

* add artifacts

* checkpoint

* refactor: finish fork test

* refactor: remove weighted encoder name change (extraneous for this deployment)

* feat: add deprecations section to stable pool, and update deployments readme

* fix: deprecated paths

* Update README.md

Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>

* fix: re-add _computeProportionalAmountsOut

* test: update test to remove use of deprecated function

Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
Co-authored-by: Juan Ignacio Ubeira <juani@balancer.finance>
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