A pNetworkNode necessary for the swap process.
The pTokensAsset that will be the source asset for the swap.
The pTokensAsset array that will be destination assets for the swap.
The amount of source asset that will be swapped.
Private
_amountPrivate
_destinationPrivate
_nodePrivate
_sourcePrivate
controllerReturn the amount of source asset that will be swapped.
Return the pTokensAsset array set as destination assets for the swap.
Get expected output amount for the swap
Get expected network fees for the swap
Return the pTokensNode set when creating the builder.
Get expected protocol fees for the swap
Return the pTokensAsset set as source asset for the swap.
Execute a swap. The function returns a PromiEvent, i.e. a Promise that can also emit events. In particular, the events fired during the execution are the following:
A PromiEvent that resolves with the transaction status of the resulting output transactions. If the destination asset has a provider, the PromiEvent resolves when the output transaction is confirmed; otherwise when it is broadcasted.
Private
getPrivate
isPrivate
monitorPrivate
monitorPrivate
waitGenerated using TypeDoc
Create and initialize a pTokensSwap object. pTokensSwap object shall be created using a pTokensSwapBuilder object.