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

Pablo DEX refactor: add & remove liquidity #2575

Merged
merged 23 commits into from
Dec 13, 2022

Conversation

benluelo
Copy link
Contributor

@benluelo benluelo commented Dec 6, 2022

@itsbobbyzz
Copy link

@benluelo benluelo changed the title Ben/refactor amm add liquidy/#30xvvdg Pablo DEX refactor: add & remove liquidity Dec 6, 2022
@vercel
Copy link

vercel bot commented Dec 6, 2022

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

2 Ignored Deployments
Name Status Preview Updated
pablo-nightly ⬜️ Ignored (Inspect) Dec 12, 2022 at 9:02PM (UTC)
picasso-nightly ⬜️ Ignored (Inspect) Dec 12, 2022 at 9:02PM (UTC)

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Nix commands for this PR

NOTE: You can also run our Nix commands in Docker. See the bottom of this comment.

Make sure you have setup the Composable community cache:

(you only need to run it once on your machine)

nix-shell -p cachix --command "cachix use composable-community"

Show all possible apps, shells and packages:

nix flake show "github:ComposableFi/composable/4abeb644805b21d27732c68ca2e5c6142da51969 --allow-import-from-derivation

Run the Composable node alone:

nix run "github:ComposableFi/composable/4abeb644805b21d27732c68ca2e5c6142da51969#composable-node" -L

Spin up a local devnet:

nix run "github:ComposableFi/composable/4abeb644805b21d27732c68ca2e5c6142da51969#devnet" -L --option sandbox relaxed --show-trace

Spin up a local XCVM devnet:

nix run "github:ComposableFi/composable/4abeb644805b21d27732c68ca2e5c6142da51969#devnet-xcvm" -L

View the docs:

nix run ".#docs-server"

Run this without Nix in Docker.

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v nix:/nix -it nixos/nix bash -c "nix-env -iA nixpkgs.cachix && cachix use composable-community && nix run github:ComposableFi/Composable/4abeb644805b21d27732c68ca2e5c6142da51969#devnet-dali -L --extra-experimental-features nix-command --extra-experimental-features flakes"

NOTE: You can swap devnet-dali in the command above with any Nix package
For more info on how to use Nix, check out our Nix docs
Note that the initial build may take about one hour if it has not been cached by our CI yet. Once it is cached, builds should take about one minute. We currently do not provide build caches for ARM machines such as M1 Macs, but building on ARM is supported.

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Visit the preview URL for this PR (updated for commit 6f1c48a):

https://picasso-f0d16--pr2575-ben-refactor-amm-add-l9qiopcz.web.app

(expires Tue, 13 Dec 2022 16:52:42 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: d4e030ec330173845b1768cd217beee9791d20f1

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Visit the preview URL for this PR (updated for commit 6f1c48a):

https://pablo-afa5d--pr2575-ben-refactor-amm-add-ol04lvrs.web.app

(expires Tue, 13 Dec 2022 16:53:00 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 8ef316967fc7aa470dc109d617260c43c009e4e3

@benluelo benluelo force-pushed the ben/refactor-amm-add-liquidy/#30xvvdg branch from 6c8d4cc to cc38e23 Compare December 6, 2022 18:09
@benluelo benluelo force-pushed the ben/refactor-amm-add-liquidy/#30xvvdg branch from cc38e23 to afae9dc Compare December 6, 2022 18:42
@benluelo benluelo requested review from a team as code owners December 6, 2022 18:42
@benluelo benluelo requested a review from a team December 6, 2022 18:42
@benluelo benluelo requested review from a team as code owners December 6, 2022 18:42
@benluelo benluelo force-pushed the ben/refactor-amm-add-liquidy/#30xvvdg branch from 16f8247 to e421606 Compare December 6, 2022 18:54
wip

wip

wip

wip
* Added R2 LP Tokens

* Added LPT to Pablo Interface

* Removed mintable token from extrinsic

* Added Pablo to Picasso Runtime

* Revert "Removed mintable token from extrinsic"

This reverts commit 5f766b4.

* Revert "Revert "Removed mintable token from extrinsic""

This reverts commit 9d0ffc3.

* Added supporting methods for migration

* Use btree macro

* Use Vector

* Moved to Dali for testing

* Removed Pablo from Picasso

* Use 0.3%

* Use benchmarked weights

* method only generated one pool at a time

* Added migration tests

* Ensure migration does not create duplicates

* Reverse logic
@PoisonPhang PoisonPhang requested a review from a team December 12, 2022 15:57
@PoisonPhang PoisonPhang force-pushed the ben/refactor-amm-add-liquidy/#30xvvdg branch from c5fb4d6 to 023feb0 Compare December 12, 2022 17:35
@PoisonPhang
Copy link
Contributor

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Dec 12, 2022

refresh

✅ Pull request refreshed

@KaiserKarel
Copy link
Contributor

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Dec 13, 2022

refresh

✅ Pull request refreshed

@KaiserKarel
Copy link
Contributor

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Dec 13, 2022

refresh

✅ Pull request refreshed

mergify bot added a commit that referenced this pull request Dec 13, 2022
@PoisonPhang
Copy link
Contributor

https://github.com/Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Dec 13, 2022

refresh

✅ Pull request refreshed

@KaiserKarel KaiserKarel merged commit 01fba50 into main Dec 13, 2022
@KaiserKarel KaiserKarel deleted the ben/refactor-amm-add-liquidy/#30xvvdg branch December 13, 2022 01:43
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.

None yet

7 participants