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 | u256.Zero | The amount of token X sent |
amountYIn | u256 | u256.Zero | The amount of token Y sent |
amountXAddedToPair | u256 | u256.Zero | The amount of token X that have been actually added to the pair |
amountYAddedToPair | u256 | u256.Zero | The amount of token Y that have been actually added to the pair |
activeFeeX | u256 | u256.Zero | Fees X currently generated |
activeFeeY | u256 | u256.Zero | Fees Y currently generated |
totalDistributionX | u256 | u256.Zero | Total distribution of token X. Should be 1e18 (100%) or 0 (0%) |
totalDistributionY | u256 | u256.Zero | Total distribution of token Y. Should be 1e18 (100%) or 0 (0%) |
id | u64 | 0 | Id of the current working bin when looping on the distribution array |
amountX | u256 | u256.Zero | The amount of token X deposited in the current bin |
amountY | u256 | u256.Zero | The amount of token Y deposited in the current bin |
distributionX | u256 | u256.Zero | Distribution of token X for the current working bin |
distributionY | u256 | u256.Zero | Distribution of token Y for the current working bin |
Returns
Defined in
assembly/structs/MintInfo.ts:22
Properties
activeFeeX
• activeFeeX: u256
= u256.Zero
Fees X currently generated
Defined in
assembly/structs/MintInfo.ts:27
activeFeeY
• activeFeeY: u256
= u256.Zero
Fees Y currently generated
Defined in
assembly/structs/MintInfo.ts:28
amountX
• amountX: u256
= u256.Zero
The amount of token X deposited in the current bin
Defined in
assembly/structs/MintInfo.ts:32
amountXAddedToPair
• amountXAddedToPair: u256
= u256.Zero
The amount of token X that have been actually added to the pair
Defined in
assembly/structs/MintInfo.ts:25
amountXIn
• amountXIn: u256
= u256.Zero
The amount of token X sent
Defined in
assembly/structs/MintInfo.ts:23
amountY
• amountY: u256
= u256.Zero
The amount of token Y deposited in the current bin
Defined in
assembly/structs/MintInfo.ts:33
amountYAddedToPair
• amountYAddedToPair: u256
= u256.Zero
The amount of token Y that have been actually added to the pair
Defined in
assembly/structs/MintInfo.ts:26
amountYIn
• amountYIn: u256
= u256.Zero
The amount of token Y sent
Defined in
assembly/structs/MintInfo.ts:24
distributionX
• distributionX: u256
= u256.Zero
Distribution of token X for the current working bin
Defined in
assembly/structs/MintInfo.ts:34
distributionY
• distributionY: u256
= u256.Zero
Distribution of token Y for the current working bin
Defined in
assembly/structs/MintInfo.ts:35
id
• id: u64
= 0
Id of the current working bin when looping on the distribution array
Defined in
assembly/structs/MintInfo.ts:31
totalDistributionX
• totalDistributionX: u256
= u256.Zero
Total distribution of token X. Should be 1e18 (100%) or 0 (0%)
Defined in
assembly/structs/MintInfo.ts:29
totalDistributionY
• totalDistributionY: u256
= u256.Zero
Total distribution of token Y. Should be 1e18 (100%) or 0 (0%)
Defined in
assembly/structs/MintInfo.ts:30
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:60
serialize
▸ serialize(): StaticArray
<u8
>
Returns
StaticArray
<u8
>
Implementation of
Serializable.serialize