xWin Swap V3 Pancake
xWinSwapV3Pancake
SwapMethod
enum SwapMethod {
UNISWAPV2,
UNISWAPV3,
UNISWAPV3Multihop
}SwapInfo
struct SwapInfo {
address router;
address[] path;
bytes multihopPath;
uint24 slippage;
uint24 poolFee;
enum xWinSwapV3Pancake.SwapMethod swapMethod;
}Received
receive
onlyExecutor
swapData
Mapping containing swapInfo, for swap pair fromToken, toToken
executors
priceMaster
initialize
swapTokenToToken
Swap tokens using xWin Swap with slippage
Parameters
Name
Type
Description
_amount
uint256
Amount of tokens to swap
_fromToken
address
Token to swap
_toToken
address
Token to receive
swapTokenToToken
Swap tokens using xWin Swap with slippage
Parameters
Name
Type
Description
_amount
uint256
Amount of tokens to swap
_fromToken
address
Token to swap
_toToken
address
Token to receive
_slippage
uint32
Slippage for the swap
internalSwap
_swapV2
_swapV3
_swapV3Multihop
getSwapData
View function to get swapInfo for a swap pair
Parameters
Name
Type
Description
_fromtoken
address
Token to swap
_totoken
address
Token to receive
Return Values
Name
Type
Description
_swapInfo
struct xWinSwapV3Pancake.SwapInfo
SwapInfo for the swap pair
addTokenPath
_xWinStratSwap
adminMoveToken
setPriceMaster
setExecutor
depositToStrategy
withdrawFromStrategy
Last updated