SidLibrary
Library for parsing and extracting information from a Synthetic Asset ID (SID).
State Variables
MAXUINT64
MAXUINT32
Functions
chainId
Retrieves the chain ID from the Synthetic Asset ID (SID).
Parameters
Name | Type | Description |
---|---|---|
|
| The Synthetic Asset ID. |
Returns
Name | Type | Description |
---|---|---|
|
| The chain ID. |
protocolId
Retrieves the protocol ID from the Synthetic Asset ID (SID).
Parameters
Name | Type | Description |
---|---|---|
|
| The Synthetic Asset ID. |
Returns
Name | Type | Description |
---|---|---|
|
| The protocol ID. |
poolId
Retrieves the pool ID from the Synthetic Asset ID (SID).
Parameters
Name | Type | Description |
---|---|---|
|
| The Synthetic Asset ID. |
Returns
Name | Type | Description |
---|---|---|
|
| The pool ID. |
isLpStackingSynth
Checks if the Synthetic Asset ID (SID) represents an LP-stacking synthetic asset.
Parameters
Name | Type | Description |
---|---|---|
|
| The Synthetic Asset ID. |
Returns
Name | Type | Description |
---|---|---|
|
| True if the SID represents an LP-stacking synthetic asset, otherwise false. |
unpack
Unpacks the chain ID, protocol ID, and pool ID from the Synthetic Asset ID (SID).
Parameters
Name | Type | Description |
---|---|---|
|
| The Synthetic Asset ID. |
Returns
Name | Type | Description |
---|---|---|
|
| The chain ID, protocol ID, and pool ID. |
|
| |
|
|
Last updated