These functions are specific to Augustus v6.2:
swapExactAmountInPro (0x0d893d62)swapExactAmountOutPro (0x44224add)These methods are activated on the Velora API side based on the partner query param for /transactions endpoint
The interface (ABI) for these methods is the same as for regular swapExactAmountIn (0xe3ead59e) and swapExactAmountOut (0x7f457675)
SELL: swapExactAmountInPro (0x0d893d62)
{
"inputs":[
{
"internalType":"address",
"name":"executor",
"type":"address"
},
{
"components":[
{
"internalType":"contract IERC20",
"name":"srcToken",
"type":"address"
},
{
"internalType":"contract IERC20",
"name":"destToken",
"type":"address"
},
{
"internalType":"uint256",
"name":"fromAmount",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"toAmount",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"quotedAmount",
"type":"uint256"
},
{
"internalType":"bytes32",
"name":"metadata",
"type":"bytes32"
},
{
"internalType":"address payable",
"name":"beneficiary",
"type":"address"
}
],
"internalType":"struct GenericData",
"name":"swapData",
"type":"tuple"
},
{
"internalType":"uint256",
"name":"partnerAndFee",
"type":"uint256"
},
{
"internalType":"bytes",
"name":"permit",
"type":"bytes"
},
{
"internalType":"bytes",
"name":"executorData",
"type":"bytes"
}
],
"name":"swapExactAmountInPro",
"outputs":[
{
"internalType":"uint256",
"name":"receivedAmount",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"paraswapShare",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"partnerShare",
"type":"uint256"
}
],
"stateMutability":"payable",
"type":"function"
}
BUY: swapExactAmountOutPro (0x44224add)
{
"inputs":[
{
"internalType":"address",
"name":"executor",
"type":"address"
},
{
"components":[
{
"internalType":"contract IERC20",
"name":"srcToken",
"type":"address"
},
{
"internalType":"contract IERC20",
"name":"destToken",
"type":"address"
},
{
"internalType":"uint256",
"name":"fromAmount",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"toAmount",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"quotedAmount",
"type":"uint256"
},
{
"internalType":"bytes32",
"name":"metadata",
"type":"bytes32"
},
{
"internalType":"address payable",
"name":"beneficiary",
"type":"address"
}
],
"internalType":"struct GenericData",
"name":"swapData",
"type":"tuple"
},
{
"internalType":"uint256",
"name":"partnerAndFee",
"type":"uint256"
},
{
"internalType":"bytes",
"name":"permit",
"type":"bytes"
},
{
"internalType":"bytes",
"name":"executorData",
"type":"bytes"
}
],
"name":"swapExactAmountOutPro",
"outputs":[
{
"internalType":"uint256",
"name":"spentAmount",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"receivedAmount",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"paraswapShare",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"partnerShare",
"type":"uint256"
}
],
"stateMutability":"payable",
"type":"function"
}