# Changelog

### # v0.0.2 -> v0.0.3

### Major Update

* Upgraded from "@mysten/sui.js": "0.54.1" to "@mysten/sui": "1.3.0"

### Key Changes

1. Parameter Updates:
   * Removed: `size`, `collateralAmount`, `reserveAmount` (all bigint)
   * Added: `leverage` (number), `collateral` (number), `positionConfig` (IPositionConfig)
2. Calculation Approach:
   * Position size and reserve amount now calculated internally based on leverage and collateral
3. Return Type:
   * Changed from `Promise<TransactionBlock>` to implicit `Promise<Transaction>`

### Impact

* More intuitive position opening with leverage-based calculations
* Increased flexibility with `positionConfig`
* Less pre-processing and calculation required from the caller
* Potential breaking changes due to major Sui SDK upgrade


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sudo.finance/sudo-sdk/v0.0.6/changelog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
