Swap
SwapCraft Function
Last updated
enum ExchangeType { GIVEN_IN, GIVEN_OUT }
struct TokenSwap {
bytes32 poolIdentifier;
ExchangeType tradeType;
IAsset inputAsset;
IAsset outputAsset;
uint256 tradeAmount;
bytes userSpecificData;
}struct AssetManagement {
address senderAddress;
bool sourceFromInternalStorage;
address payable receiverAddress;
bool sendToInternalStorage;
}