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

Create Weighted Pools #166

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

Conversation

PaulMcInnis
Copy link
Collaborator

@PaulMcInnis PaulMcInnis commented Nov 5, 2024

Here is the weighted pool creation page!

It features:

  • support for creating weighted pools with 3-8 tokens, with add/remove token buttons
  • duplicate pool creation detection (may be too aggressive currently, as it doesn't respect weight differences)
  • weight inputs with normalization to fix off-by-1 issues
  • inputs for slippage, pool name and symbol name
  • stubbed-out stable pool creation views (but these txs will revert due to an incompatibility between the pool creation helper contract, which uses a v4 stable pool factory vs the deployed stable pool factory version which is v6)

Some things that I can do as a part of this PR or later:

  • allow input for a delegated owner: 0xBA1BA1ba1BA1bA1bA1Ba1BA1ba1BA1bA1ba1ba1B or 0x0... for permanent fees with information popover
  • a proper preview and submit tx page per the design
  • pull in analytics for any other errors
  • refinement for weight inputs UX
  • more accurate gasLimit for pool creation tx (it's fairly high though!)
  • identify issue with SWRError Error: dex subgraph uri s not found in config impacting TokenInput USD prices (may or may not be due to work in this PR)
  • description calling out recommended fee amounts

Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
berajs-docs ❌ Failed (Inspect) Nov 5, 2024 9:23pm
storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 9:23pm
v2-bend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 9:23pm
v2-berps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 9:23pm
v2-honey ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 9:23pm
v2-hub ❌ Failed (Inspect) Nov 5, 2024 9:23pm
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
bartio-dex ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:23pm
bartio-honey ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:23pm
bartio-lend ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:23pm
bartio-perps ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:23pm
bartio-station ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:23pm
v2-dex ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:23pm

…pes, duplicate detection, and liquidity input. TBD the actual pool creation part
…the page and started pulling in the SDK v2 pool creation stuff
… and by properly refactoring the weird base/quote nomenclature that doesnt apply in balancer
…Slippage so we can not include it during pool init join tx token approvals
…ymbol & prepare to move approvals / submission into a preview page + improved default names
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.

1 participant