Skip to content

Releases: balancer/b-sdk

v0.11.0

28 Feb 09:14
703b5b6
Compare
Choose a tag to compare

Minor Changes

  • b77768a: Change all refs to balancerVersion to vaultVersion to match API.

v0.10.0

23 Feb 18:18
3473ca8
Compare
Choose a tag to compare

Minor Changes

  • f5291c6: Add V3 Single Swap support.
  • 517a13e: Add price impact for add/remove nested liquidity
  • b547e32: Adds Balancer's V3 CreatePool functionality for Weighted Pools;

v0.9.1

20 Feb 09:01
c52d31a
Compare
Choose a tag to compare

Patch Changes

  • 27296e6: expose mapPoolToNestedPoolState function
  • 4851160: Add Base config.
  • c359a54: add GYRO type for GYRO2 in pool type mapper
  • 8d8a95f: Fix add liquidity nested not working for polygon (and other chains)

v0.9.0

15 Feb 09:41
ba32e16
Compare
Choose a tag to compare

Minor Changes

  • cadb555: * Refactor Swap class to work with new API SOR query response.
    • Swap class has V2/V3 handler (V3 WIP in follow up PR)
    • Swap example added
    • Limits refactored to be internal to V2 implementation. buildCall used to create based on input Slippage. Returns minAmountOut/maxAmountIn for users.
    • PriceImpact can no longer be calculated in Swap as missing pool state/maths. This has been removed for now and will be added as onchain helper in future.
  • 40ee7be: Remove SOR related code & other stale code/exports.

v0.8.1

09 Feb 17:08
c017292
Compare
Choose a tag to compare

Patch Changes

  • 579600a: Expose proportional amounts helper

v0.8.0

08 Feb 13:57
d842a93
Compare
Choose a tag to compare

Minor Changes

  • 8bd2454: Add Basic Remove Liquidity for v3
  • 69d6567: Add limits calculation and data encoding in the swap
  • 4c8114d: Add Basic Add Liquidity for v3

Patch Changes

  • 2593e8a: Expose JoinPoolRequest type
  • dc09bf7: Remove type module from package.json
  • c7c318a: Adding a function to calculate proportional amounts; Adding balancerVersion to the API Pools and Nested Pools data provider
  • a1d52dc: Remove ambiguity from slippage interface
  • 651e976: Add proportional amounts helper

v0.7.1

23 Jan 14:20
14a080b
Compare
Choose a tag to compare

Patch Changes

  • dec468a: Fix Add/Remove Liquidity Nested with zero amounts in
  • 37f89a4: Bump tsup version
  • 6c12bab: Expose Relayer class
  • 69521d0: Fix cloneDeep import

v0.7.0

18 Jan 14:31
c57b71d
Compare
Choose a tag to compare

Minor Changes

  • 5cac427: Safe updating all packages; Hard updating viem from v1 to v2;
  • a126243: return null when there are no candidatePaths when using sorGetSwapsWithPools so getBestPaaths doesnt throw
  • 79e9e81: Add dpdm as circular dependency linter
  • 584914b: - Add AddLiquidityNested
    • Add RemoveLiquidityNestedProportional
    • Add RemoveLiquidityNestedSingleToken
  • 79e9e81: Replace rome with biome
  • ffed733: Add v3 scaffold implementation

Patch Changes

  • 54c8925: Fixing InitPoolDataProvider to work with other poolTypes and with less input parameters;
  • 16a7cce: Adding balancer v3 scaffold for init pool data provider;
  • fc21f1e: Minor refactors and lint fixes
  • e59f1b2: Removing duplicated constant BALANCER_VAULT and replacing by VAULT[chainId]
  • 4bdc6f0: Removing BalancerHelpers contract and replacing it by BalancerQueries;

v0.6.0

10 Jan 18:51
d3e55e4
Compare
Choose a tag to compare

Minor Changes

  • 48d14de: Adapting pool type from API to PoolType, so we can generally use PoolType instead of string in the whole project.
  • 60eebf8: Adding InitPool functionality for Composable Stable Pools

Patch Changes

  • 38c3aa2: Replace shared human readable abi with abis from ts files
  • ae7b19e: Update api client to match pool type changes

v0.5.0

15 Dec 13:04
c29d0f6
Compare
Choose a tag to compare

Minor Changes

  • b8523b1: Add create pool for composable stable pools
  • 43715b5: Add OP native asset and remove unused constant STELLATE_URL

Patch Changes

  • 1e3ad86: expose priceImpact amount