ZivoeSwapper.sol
1INCH v5 Integration
Introduction
OneInchPrototype contract integrates with 1INCH to support custom data input.
State Variables
OrderRFQ
This struct contains information for an OrderRFQ type transaction.
SwapDescription
This struct contains information for a swap type transaction.
Sections
Read Functions
handle_validation_12aa3caf()
handle_validation_12aa3caf()
Will validate the data retrieved from 1inch API triggering a swap()
function in 1inch router. The swap() function will execute a swap through multiple sources.
handle_validation_e449022e()
handle_validation_e449022e()
Will validate the data retrieved from 1inch API triggering an uniswapV3Swap()
function in 1inch router. The uniswapV3Swap()
function will execute a swap through Uniswap V3 pools.
handle_validation_0502b1c5()
handle_validation_0502b1c5()
Will validate the data retrieved from 1inch API triggering an unoswap() function in 1inch router.
handle_validation_3eca9c0a()
handle_validation_3eca9c0a()
Will validate the data retrieved from 1inch API triggering a fillOrderRFQ()
function in 1inch router.
Write Functions
convertAsset()
convertAsset()
Executes a conversion via 1INCH v5.
Last updated