Skip to content
Draft
Show file tree
Hide file tree
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 Dec 15, 2025
48866a9
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor Dec 15, 2025
c9aedf6
Use Sam's bigmath crate for exponentiation
gztensor Dec 17, 2025
1bc3092
Adjust fuzzy epsilon
gztensor Dec 17, 2025
81eab8e
Use rayon for fuzzy testing
gztensor Dec 17, 2025
8bdafa7
Cleanup full vs limited range testing
gztensor Dec 17, 2025
b91ca21
Update bigmath, debug current_price, implement adjust_protocol_liquid…
gztensor Dec 18, 2025
f3daa79
Implement delta_in and tests
gztensor Dec 18, 2025
ef71b3c
Merge devnet-ready
gztensor Dec 18, 2025
0fe9842
Update bigmath, add testcases
gztensor Dec 19, 2025
921ace4
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor Dec 22, 2025
9292044
Basic swap works
gztensor Dec 22, 2025
30be6ea
Swap tests in progress
gztensor Dec 22, 2025
22019e3
Fix test_clear_protocol_liquidity_green_path
gztensor Dec 23, 2025
9c9b646
Fix test_claim_root_with_run_coinbase
gztensor Dec 23, 2025
a27f1b5
Add swap initialization to interface
gztensor Dec 23, 2025
afa0d45
Fix test_coinbase_subnet_terms_with_alpha_in_gt_alpha_emission
gztensor Dec 24, 2025
243df1e
Fix test_mining_emission_distribution_with_no_root_sell
gztensor Dec 24, 2025
d2f9e2b
Fix test_mining_emission_distribution_with_root_sell
gztensor Dec 24, 2025
96402fd
Fix test_pending_emission_start_call_not_done
gztensor Dec 24, 2025
6c55c7b
Remove non-zero delta-out requirement for zero delta-in. Fix test_mig…
gztensor Dec 24, 2025
b8d5ffe
Fix test_add_stake_insufficient_liquidity_one_side_ok
gztensor Dec 26, 2025
1c663f1
Fix dissolve_clears_all_per_subnet_storages
gztensor Dec 26, 2025
25a9e5d
Fix test_large_swap, improve error messaging
gztensor Dec 26, 2025
213a984
Fix test_add_stake_limit_fill_or_kill
gztensor Dec 26, 2025
b755f0e
Fix test_max_amount_add_dynamic
gztensor Dec 26, 2025
26cca0b
Fix test_max_amount_move_dynamic_dynamic
gztensor Dec 26, 2025
7c51712
Re-enable balancer math test cases
gztensor Dec 26, 2025
6ce98e2
Fix test_max_amount_move_dynamic_stable
gztensor Dec 29, 2025
483dcd4
Fix test_max_amount_move_stable_dynamic
gztensor Dec 29, 2025
3f152bf
Fix test_max_amount_remove_dynamic
gztensor Dec 29, 2025
fb9d494
Fix test_stake_into_subnet_low_amount
gztensor Dec 29, 2025
72262b2
Fix test_swap_fees_tao_correctness
gztensor Dec 29, 2025
5fdc9f9
Refactor: Rename ReserveWeights to Balancer
gztensor Dec 29, 2025
1cc1921
Fix test_claim_root_coinbase_distribution
gztensor Dec 30, 2025
be6fd6f
Fix test_adjust_protocol_liquidity_happy
gztensor Dec 30, 2025
1540d30
Disable add_liquidity tests, fix test_swap_initialization
gztensor Dec 30, 2025
e75ee3a
Update bigmath, cleanup balancer math, add missing balancer tests
gztensor Jan 2, 2026
e7b878c
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor Jan 2, 2026
49accc1
Remove provided reserve maps, add liquidity calculation method to bal…
gztensor Jan 5, 2026
c4e21e7
Add test for CurrentLiquidity initialization
gztensor Jan 5, 2026
f97e56c
Fix exponentiation in liquidity calculation
gztensor Jan 6, 2026
7634aee
Update to most recent bigmath
gztensor Jan 7, 2026
0bd3c78
local
sam0x17 Jan 7, 2026
9fed25e
Collect protocol fees in adjust_protocol_liquidity and add to reserves
gztensor Jan 8, 2026
ca466df
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor Jan 8, 2026
71995f0
fix
sam0x17 Jan 8, 2026
cf5f277
Merge remote-tracking branch 'origin/feat/balancer_swap' into feat/ba…
sam0x17 Jan 8, 2026
b2744c8
Remove todo() macros from position.rs file
gztensor Jan 8, 2026
1dd3e67
Address a todo in test_remove_stake_edge_alpha
gztensor Jan 8, 2026
56c001e
Remove todo macros from liquidity extrinsics, make them return error
gztensor Jan 8, 2026
c2bbe99
Fix clippy (all except SafeInt)
gztensor Jan 8, 2026
244fbfc
Add more test cases for test_convert_deltas, correct order of swap in…
gztensor Jan 9, 2026
8d19821
Disable add/remove/modify liquidity benchmarks
gztensor Jan 9, 2026
80e9cec
Add reminders to removed benchmarks
gztensor Jan 9, 2026
fbb015c
Fix custom lints
gztensor Jan 9, 2026
65bb1c2
Fix zepter ci
gztensor Jan 9, 2026
87fa1dc
Fix benchmarks
gztensor Jan 9, 2026
b021c56
Fix remove_stake_full_limit
gztensor Jan 9, 2026
6723152
Add clippy ignore for SafeInt division
gztensor Jan 12, 2026
8d48806
Add tests for palswap initialization with price in migration
gztensor Jan 12, 2026
55f9bba
Fix price initialization
gztensor Jan 12, 2026
485949d
Fix remove_stake_full_limit benchmark
gztensor Jan 12, 2026
9f5ca77
Merge branch 'devnet-ready' into feat/balancer_swap
gztensor Jan 12, 2026
b4ecbc3
Fix remove_stake_full_limit benchmark
gztensor Jan 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 199 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Copy link
Contributor Author

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.

Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ pallet-subtensor-swap-runtime-api = { path = "pallets/swap/runtime-api", default
pallet-subtensor-swap-rpc = { path = "pallets/swap/rpc", default-features = false }
procedural-fork = { path = "support/procedural-fork", default-features = false }
safe-math = { path = "primitives/safe-math", default-features = false }
safe-bigmath = { package = "safe-bigmath", default-features = false, git = "https://github.com/sam0x17/safe-bigmath" }
share-pool = { path = "primitives/share-pool", default-features = false }
subtensor-macros = { path = "support/macros", default-features = false }
subtensor-custom-rpc = { default-features = false, path = "pallets/subtensor/rpc" }
Expand Down
Loading
Loading