v5.0.0
Major Changes
-
f51af5f: WHAT: Removed wrapped token functionality from the
Tokenclass and introduced a newNativeTokenclass 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
wrappedfunctionality, then replace any usage ofTokenfor native tokens with the newNativeTokenclass:- Import
NativeTokenfrom the SDK:import { NativeToken } from '@balancer/sdk' - Use
NativeTokenfor native token operations instead ofTokenwith wrapped functionality
- Import
- If not using any
wrappedfunctionality, thenTokencan remain as is
- If using the