Skip to main content

MintInfo

Implements​

  • Serializable

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new MintInfo(amountXIn?, amountYIn?, amountXAddedToPair?, amountYAddedToPair?, activeFeeX?, activeFeeY?, totalDistributionX?, totalDistributionY?, id?, amountX?, amountY?, distributionX?, distributionY?): MintInfo

Parameters​

NameTypeDefault valueDescription
amountXInu256ZEROThe amount of token X sent
amountYInu256ZEROThe amount of token Y sent
amountXAddedToPairu256ZEROThe amount of token X that have been actually added to the pair
amountYAddedToPairu256ZEROThe amount of token Y that have been actually added to the pair
activeFeeXu256ZEROFees X currently generated
activeFeeYu256ZEROFees Y currently generated
totalDistributionXu256ZEROTotal distribution of token X. Should be 1e18 (100%) or 0 (0%)
totalDistributionYu256ZEROTotal distribution of token Y. Should be 1e18 (100%) or 0 (0%)
idu320Id of the current working bin when looping on the distribution array
amountXu256ZEROThe amount of token X deposited in the current bin
amountYu256ZEROThe amount of token Y deposited in the current bin
distributionXu256ZERODistribution of token X for the current working bin
distributionYu256ZERODistribution of token Y for the current working bin

Returns​

MintInfo

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​

NameType
dataStaticArray<u8>
offseti32

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

Defined in​

assembly/structs/MintInfo.ts:43