A pNetworkNode necessary for pNetworkSwap.
Private _amountPrivate _destinationPrivate _nodePrivate _sourceReturn the amount of source asset that will be swapped.
Return the pTokensAsset array set as destination assets for the swap. Actually, only one destination asset is supported by pNetwork v2.
Return the pTokensNode set when creating the builder.
Return the pTokensAsset set as source asset for the swap.
Add a destination pTokensAsset for the swap.
The same builder. This allows methods chaining.
A pTokenAsset that will be one of the destination assets.
The destination address that will receive the _asset.
Optional user data.
Build a pTokensSwap object from the parameters set when interacting with the builder.
Private isSet the amount of source asset that will be swapped.
The same builder. This allows methods chaining.
The amount of source asset that will be swapped.
Set the source asset for the swap.
The same builder. This allows methods chaining.
A pTokenAsset that will be the swap source asset.
Generated using TypeDoc
Create and initialize a pTokensSwapBuilder object.