feat: add seed optimization and refactor wSOL account control
- Add `open_seed_optimize` parameter for enhanced performance - Move wSOL account flags from protocol params to buy/sell params - Add seed_trading example demonstrating optimization features - Update all examples and upgrade dependencies - Improve wSOL account management flexibility BREAKING CHANGE: Modified buy/sell method signatures and protocol param structs
This commit is contained in:
@@ -54,12 +54,10 @@ sol-trade-sdk = "0.6.1"
|
||||
- **create_wsol_ata**:
|
||||
- 当 `create_wsol_ata: true` 时,SDK 会在交易前自动创建并将 SOL 包装为 wSOL
|
||||
- 买入时:自动将 SOL 包装为 wSOL 进行交易
|
||||
- 默认值为 `true`
|
||||
|
||||
- **close_wsol_ata**:
|
||||
- 当 `close_wsol_ata: true` 时,SDK 会在交易后自动关闭 wSOL 账户并解包装为 SOL
|
||||
- 卖出时:自动将获得的 wSOL 解包装为 SOL 并回收租金
|
||||
- 默认值为 `true`
|
||||
|
||||
- **分离参数的优势**:
|
||||
- 允许独立控制 wSOL 账户的创建和关闭
|
||||
|
||||
Reference in New Issue
Block a user