SPLTokenSwapWithdrawLayout class

Withdraw both types of tokens from the pool layout.

Inheritance

Constructors

SPLTokenSwapWithdrawLayout({required BigInt poolTokenAmount, required BigInt minimumTokenA, required BigInt minimumTokenB})
Constructs a SPLTokenSwapWithdrawLayout instance with the given parameters.
const
SPLTokenSwapWithdrawLayout.fromBuffer(List<int> bytes)
Constructs a SPLTokenSwapWithdrawLayout instance from the given byte array.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
instruction int
The instruction of the program.
no setteroverride
layout → StructLayout
The layout representing the structure of the program.
no setteroverride
minimumTokenA BigInt
Minimum amount of token A to receive, prevents excessive slippage
final
minimumTokenB BigInt
Minimum amount of token B to receive, prevents excessive slippage
final
poolTokenAmount BigInt
Amount of pool tokens to burn. User receives an output of token a and b based on the percentage of the pool tokens that are returned.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, dynamic>
Serializes the program.
override
toBytes() List<int>
Converts the program to bytes using Borsh serialization.
inherited
toHex() String
Converts the program to a hexadecimal string.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited