Skip to content

Releases: balancer/b-sdk

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

v0.4.0

12 Dec 17:22
b299877
Compare
Choose a tag to compare

Minor Changes

  • e7a8237: Add InitPool functionality for Weighted Pools;
  • 7fff3d9: Add CreatePool functionality for Weighted Pools;
  • d8dc287: Add Price Impact calculations for add/remove liquidity and swaps

Patch Changes

  • b97bff1: Discard paths with failing limits

v0.3.1

21 Nov 13:33
8d1a966
Compare
Choose a tag to compare

Patch Changes

  • 4eda061: Add Op pools from vulnerability to filter list.

v0.3.0

14 Nov 19:32
5c30f4f
Compare
Choose a tag to compare

Minor Changes

  • e1efe6b: - Add add/remove liquidity pool support (non-nested pools)
    • Weighted pool type
    • ComposableStable pool type
    • Uses balancerHelpers to query amounts in/out rather than relying on specific pool math and associated data
    • Integration tests run against local viem fork
  • 73b19fc: Adds Balancer API Provider. A utility module designed to fetch pool data from API.