Last updated
Zivoe Finance - Official Documentation
Last updated
OneInchPrototype contract integrates with 1INCH to support custom data input.
This struct contains information for an OrderRFQ type transaction.
This struct contains information for a swap type transaction.
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()
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()
Will validate the data retrieved from 1inch API triggering an unoswap() function in 1inch router.
handle_validation_3eca9c0a()
Will validate the data retrieved from 1inch API triggering a fillOrderRFQ()
function in 1inch router.
convertAsset()
Executes a conversion via 1INCH v5.
- 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.
- 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.
- Will validate the data retrieved from 1inch API triggering an unoswap() function in 1inch router.
- Will validate the data retrieved from 1inch API triggering a fillOrderRFQ()
function in 1inch router.
- Executes a conversion via 1INCH v5.
address
router1INCH_V5
The 1INCH v5 Router.
uint256
_ONE_FOR_ZERO_MASK
Private constant
uint256
_REVERSE_MASK
Private constant
uint256
info
address
makerAsset
address
takerAsset
address
maker
address
allowedSender
uint256
makingAmount
uint256
takingAmount
IERC20
srcToken
Source token.
IERC20
dstToken
Destination token.
address payable
srcReceiver
Source receiver.
address payable
dstReceiver
Destination receiver.
uint256
amount
Amount of srcToken.
uint256
minReturnAmount
Minimum amount returnable of dstToken.
uint256
flags
Additional flags for swap.
bytes
data
Payload for 1INCH v5 router, data regarding swap.
address
assetIn
The asset that will be converted.
address
assetOut
The asset that "assetIn" will be converted to.
uint256
amountIn
The amount of "assetIn" that will be converted.
bytes
data
Payload for 1INCH v5 router, data regarding swap.
address
assetIn
The asset that will be converted.
address
assetOut
The asset that "assetIn" will be converted to.
uint256
amountIn
The amount of "assetIn" that will be converted.
bytes
data
Payload for 1INCH v5 router, data regarding swap.
address
assetIn
The asset that will be converted.
address
assetOut
The asset that "assetIn" will be converted to.
uint256
amountIn
The amount of "assetIn" that will be converted.
bytes
data
Payload for 1INCH v5 router, data regarding swap.
address
assetIn
The asset that will be converted.
address
assetOut
The asset that "assetIn" will be converted to.
uint256
amountIn
The amount of "assetIn" that will be converted.
address
assetIn
The asset that will be converted.
address
assetOut
The asset that "assetIn" will be converted to.
uint256
amountIn
The amount of "assetIn" that will be converted.
bytes
data
Payload for 1INCH v5 router, data regarding swap.
1INCH v5 Integration