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

New composite router for boosted pool operations #572

Merged
merged 23 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0fa2dcd
hook up new composite router for boosted operations
MattPereira Jan 25, 2025
2ae3ba2
fix: type complaint
MattPereira Jan 25, 2025
e8e5abc
patch: fix type error by extending AddLiquidity class
MattPereira Jan 25, 2025
27ae6de
move block num for all sepolia tests
MattPereira Jan 27, 2025
5c9543b
update AddLiquidityTxInput types
MattPereira Jan 27, 2025
796a571
refactor tests to use helpers
MattPereira Jan 27, 2025
330b175
Merge branch 'main' of https://github.com/balancer/b-sdk into new-com…
MattPereira Jan 27, 2025
fcd259e
Fix add liquidity boosted tests
brunoguerios Jan 27, 2025
5112024
add tests for proportional query and unbalanced add with only one wrap
MattPereira Jan 27, 2025
0944a3e
fix boosted add liquidity input validator
MattPereira Jan 28, 2025
9dc084d
fix types for PriceImpact.addLiquidityNested
MattPereira Jan 28, 2025
12d5255
add tests for remove with only one unwrap
MattPereira Jan 28, 2025
187fac2
add changeset
MattPereira Jan 28, 2025
cdbb902
update changeset to major
MattPereira Jan 28, 2025
f3fbdc1
fix tokens returned by unbalanced query and add test
MattPereira Jan 28, 2025
6c6a261
infer wrapUnderlying instead of requiring it as user input
MattPereira Jan 28, 2025
ab1df90
fix partial boosted test
MattPereira Jan 29, 2025
347aded
infer unwrapWrapped for remove liquidity boosted
MattPereira Jan 29, 2025
512547c
fix unbalanced add liquidity boosted with fewer than total num of poo…
MattPereira Jan 29, 2025
10cbf6c
refactor for readability
MattPereira Jan 29, 2025
c75286d
add comments
MattPereira Jan 29, 2025
ab82723
Refactor types as Address
brunoguerios Jan 29, 2025
15626ee
Add extra input validation
brunoguerios Jan 29, 2025
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
5 changes: 5 additions & 0 deletions .changeset/red-buttons-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@balancer/sdk": major
---

new composite router for boosted operations with ability to wrap/unwrap single token
4 changes: 2 additions & 2 deletions examples/addLiquidity/addLiquidityNested.V3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
AddLiquidityNestedInput,
TEST_API_ENDPOINT,
PERMIT2,
BALANCER_COMPOSITE_LIQUIDITY_ROUTER,
BALANCER_COMPOSITE_LIQUIDITY_ROUTER_NESTED,
} from '../../src';
import {
ANVIL_NETWORKS,
Expand Down Expand Up @@ -133,7 +133,7 @@ const addLiquidityNested = async () => {
client,
userAccount,
amount.token.address,
BALANCER_COMPOSITE_LIQUIDITY_ROUTER[chainId],
BALANCER_COMPOSITE_LIQUIDITY_ROUTER_NESTED[chainId],
);
}

Expand Down
Loading