Swap

Swap Actions

Transactional Functions

UniswapV3 Helper Contract

The Uniswap Helper contract serves as an interface facilitator, enabling comprehensive interaction and utilization of Uniswap's functionalities within our system.

function getAssetPrice(bytes memory protectionData, address user, uint256 uniqueId)

function getPath(bytes memory protectionData, address user, uint256 uniqueId)


SwapExactETHForTokens Contract

SwapExactEthForTokens.sol contract is used to swap ETH for a specific asset.

function swapExactEthForTokens(address outPutAsset, address to, uint24 poolFee)


SwapExactTokensForETH Contract

SwapExactTokensForEth.sol contract is used to swap a specific asset for ETH.

function swapExactTokensForEth(uint256 amountIn, address inputAsset, address to, uint24 poolFee)


SwapExactTokensForTokens Contract

SwapExactTokensForTokens.sol contract is used to swap a specific asset for a targeted asset.

function swapExactTokensForTokens(uint256 amountIn, address inputAsset,address outPutAsset address to, uint24 poolFee)

Last updated