-
Notifications
You must be signed in to change notification settings - Fork 274
Feat/balancer swap #2290
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
Draft
gztensor
wants to merge
65
commits into
devnet-ready
Choose a base branch
from
feat/balancer_swap
base: devnet-ready
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+5,400
−7,047
Draft
Feat/balancer swap #2290
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
46164e8
High level architecture for palswap in place, everything compiles
gztensor 48866a9
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor c9aedf6
Use Sam's bigmath crate for exponentiation
gztensor 1bc3092
Adjust fuzzy epsilon
gztensor 81eab8e
Use rayon for fuzzy testing
gztensor 8bdafa7
Cleanup full vs limited range testing
gztensor b91ca21
Update bigmath, debug current_price, implement adjust_protocol_liquid…
gztensor f3daa79
Implement delta_in and tests
gztensor ef71b3c
Merge devnet-ready
gztensor 0fe9842
Update bigmath, add testcases
gztensor 921ace4
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor 9292044
Basic swap works
gztensor 30be6ea
Swap tests in progress
gztensor 22019e3
Fix test_clear_protocol_liquidity_green_path
gztensor 9c9b646
Fix test_claim_root_with_run_coinbase
gztensor a27f1b5
Add swap initialization to interface
gztensor afa0d45
Fix test_coinbase_subnet_terms_with_alpha_in_gt_alpha_emission
gztensor 243df1e
Fix test_mining_emission_distribution_with_no_root_sell
gztensor d2f9e2b
Fix test_mining_emission_distribution_with_root_sell
gztensor 96402fd
Fix test_pending_emission_start_call_not_done
gztensor 6c55c7b
Remove non-zero delta-out requirement for zero delta-in. Fix test_mig…
gztensor b8d5ffe
Fix test_add_stake_insufficient_liquidity_one_side_ok
gztensor 1c663f1
Fix dissolve_clears_all_per_subnet_storages
gztensor 25a9e5d
Fix test_large_swap, improve error messaging
gztensor 213a984
Fix test_add_stake_limit_fill_or_kill
gztensor b755f0e
Fix test_max_amount_add_dynamic
gztensor 26cca0b
Fix test_max_amount_move_dynamic_dynamic
gztensor 7c51712
Re-enable balancer math test cases
gztensor 6ce98e2
Fix test_max_amount_move_dynamic_stable
gztensor 483dcd4
Fix test_max_amount_move_stable_dynamic
gztensor 3f152bf
Fix test_max_amount_remove_dynamic
gztensor fb9d494
Fix test_stake_into_subnet_low_amount
gztensor 72262b2
Fix test_swap_fees_tao_correctness
gztensor 5fdc9f9
Refactor: Rename ReserveWeights to Balancer
gztensor 1cc1921
Fix test_claim_root_coinbase_distribution
gztensor be6fd6f
Fix test_adjust_protocol_liquidity_happy
gztensor 1540d30
Disable add_liquidity tests, fix test_swap_initialization
gztensor e75ee3a
Update bigmath, cleanup balancer math, add missing balancer tests
gztensor e7b878c
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor 49accc1
Remove provided reserve maps, add liquidity calculation method to bal…
gztensor c4e21e7
Add test for CurrentLiquidity initialization
gztensor f97e56c
Fix exponentiation in liquidity calculation
gztensor 7634aee
Update to most recent bigmath
gztensor 0bd3c78
local
sam0x17 9fed25e
Collect protocol fees in adjust_protocol_liquidity and add to reserves
gztensor ca466df
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor 71995f0
fix
sam0x17 cf5f277
Merge remote-tracking branch 'origin/feat/balancer_swap' into feat/ba…
sam0x17 b2744c8
Remove todo() macros from position.rs file
gztensor 1dd3e67
Address a todo in test_remove_stake_edge_alpha
gztensor 56c001e
Remove todo macros from liquidity extrinsics, make them return error
gztensor c2bbe99
Fix clippy (all except SafeInt)
gztensor 244fbfc
Add more test cases for test_convert_deltas, correct order of swap in…
gztensor 8d19821
Disable add/remove/modify liquidity benchmarks
gztensor 80e9cec
Add reminders to removed benchmarks
gztensor fbb015c
Fix custom lints
gztensor 65bb1c2
Fix zepter ci
gztensor 87fa1dc
Fix benchmarks
gztensor b021c56
Fix remove_stake_full_limit
gztensor 6723152
Add clippy ignore for SafeInt division
gztensor 8d48806
Add tests for palswap initialization with price in migration
gztensor 55f9bba
Fix price initialization
gztensor 485949d
Fix remove_stake_full_limit benchmark
gztensor 9f5ca77
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor b4ecbc3
Fix remove_stake_full_limit benchmark
gztensor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're using Sam's bigmath crate now to handle high precision exponents.