Debt
Dev
Structure to store the debts of users
Param
The tokenX's debt
Param
The tokenY's debt
Implements
Serializable
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Debt(debtX?
, debtY?
): Debt
Parameters
Name | Type | Default value |
---|---|---|
debtX | u256 | u256.Zero |
debtY | u256 | u256.Zero |
Returns
Defined in
Properties
debtX
• debtX: u256
= u256.Zero
Defined in
debtY
• debtY: u256
= u256.Zero
Defined in
Methods
deserialize
▸ deserialize(data
, offset
): Result
<i32
>
Parameters
Name | Type |
---|---|
data | StaticArray <u8 > |
offset | i32 |
Returns
Result
<i32
>
Implementation of
Serializable.deserialize
Defined in
serialize
▸ serialize(): StaticArray
<u8
>
Returns
StaticArray
<u8
>
Implementation of
Serializable.serialize