MintInfo
Implements
Serializable
Table of contents
Constructors
Properties
- activeFeeX
- activeFeeY
- amountX
- amountXAddedToPair
- amountXIn
- amountY
- amountYAddedToPair
- amountYIn
- distributionX
- distributionY
- id
- totalDistributionX
- totalDistributionY
Methods
Constructors
constructor
• new MintInfo(amountXIn?, amountYIn?, amountXAddedToPair?, amountYAddedToPair?, activeFeeX?, activeFeeY?, totalDistributionX?, totalDistributionY?, id?, amountX?, amountY?, distributionX?, distributionY?): MintInfo
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
amountXIn | u256 | ZERO | The amount of token X sent |
amountYIn | u256 | ZERO | The amount of token Y sent |
amountXAddedToPair | u256 | ZERO | The amount of token X that have been actually added to the pair |
amountYAddedToPair | u256 | ZERO | The amount of token Y that have been actually added to the pair |
activeFeeX | u256 | ZERO | Fees X currently generated |
activeFeeY | u256 | ZERO | Fees Y currently generated |
totalDistributionX | u256 | ZERO | Total distribution of token X. Should be 1e18 (100%) or 0 (0%) |
totalDistributionY | u256 | ZERO | Total distribution of token Y. Should be 1e18 (100%) or 0 (0%) |
id | u32 | 0 | Id of the current working bin when looping on the distribution array |
amountX | u256 | ZERO | The amount of token X deposited in the current bin |
amountY | u256 | ZERO | The amount of token Y deposited in the current bin |
distributionX | u256 | ZERO | Distribution of token X for the current working bin |
distributionY | u256 | ZERO | Distribution of token Y for the current working bin |
Returns
Defined in
assembly/structs/MintInfo.ts:23
Properties
activeFeeX
• activeFeeX: u256 = ZERO
Fees X currently generated
Defined in
assembly/structs/MintInfo.ts:28
activeFeeY
• activeFeeY: u256 = ZERO
Fees Y currently generated
Defined in
assembly/structs/MintInfo.ts:29
amountX
• amountX: u256 = ZERO
The amount of token X deposited in the current bin
Defined in
assembly/structs/MintInfo.ts:33
amountXAddedToPair
• amountXAddedToPair: u256 = ZERO
The amount of token X that have been actually added to the pair
Defined in
assembly/structs/MintInfo.ts:26
amountXIn
• amountXIn: u256 = ZERO
The amount of token X sent
Defined in
assembly/structs/MintInfo.ts:24
amountY
• amountY: u256 = ZERO
The amount of token Y deposited in the current bin
Defined in
assembly/structs/MintInfo.ts:34
amountYAddedToPair
• amountYAddedToPair: u256 = ZERO
The amount of token Y that have been actually added to the pair
Defined in
assembly/structs/MintInfo.ts:27
amountYIn
• amountYIn: u256 = ZERO
The amount of token Y sent
Defined in
assembly/structs/MintInfo.ts:25
distributionX
• distributionX: u256 = ZERO
Distribution of token X for the current working bin
Defined in
assembly/structs/MintInfo.ts:35
distributionY
• distributionY: u256 = ZERO
Distribution of token Y for the current working bin
Defined in
assembly/structs/MintInfo.ts:36
id
• id: u32 = 0
Id of the current working bin when looping on the distribution array
Defined in
assembly/structs/MintInfo.ts:32
totalDistributionX
• totalDistributionX: u256 = ZERO
Total distribution of token X. Should be 1e18 (100%) or 0 (0%)
Defined in
assembly/structs/MintInfo.ts:30
totalDistributionY
• totalDistributionY: u256 = ZERO
Total distribution of token Y. Should be 1e18 (100%) or 0 (0%)
Defined in
assembly/structs/MintInfo.ts:31
Methods
deserialize
▸ deserialize(data, offset): Result<i32>
Parameters
| Name | Type |
|---|---|
data | StaticArray<u8> |
offset | i32 |
Returns
Result<i32>
Implementation of
Serializable.deserialize
Defined in
assembly/structs/MintInfo.ts:61
serialize
▸ serialize(): StaticArray<u8>
Returns
StaticArray<u8>
Implementation of
Serializable.serialize