Skip to content

v5.0.0

Choose a tag to compare

@brunoguerios brunoguerios released this 05 Jan 12:55
· 278 commits to main since this release
dfa6c3c

Major Changes

  • f51af5f: WHAT: Removed wrapped token functionality from the Token class and introduced a new NativeToken class to handle native tokens (like ETH) separately.

    WHY: This change improves type safety and separation of concerns by distinguishing between ERC-20 tokens and native tokens, making the API more explicit and preventing confusion about token types.

    HOW: Update your code by:

    • If using the wrapped functionality, then replace any usage of Token for native tokens with the new NativeToken class:
      • Import NativeToken from the SDK: import { NativeToken } from '@balancer/sdk'
      • Use NativeToken for native token operations instead of Token with wrapped functionality
    • If not using any wrapped functionality, then Token can remain as is