Skip to content

Latest commit

 

History

History
246 lines (233 loc) · 9.18 KB

ProtocolSwapExternalInterface.md

File metadata and controls

246 lines (233 loc) · 9.18 KB

ProtocolSwapExternalInterface.sol

View Source: contracts/modules/interfaces/ProtocolSwapExternalInterface.sol

ProtocolSwapExternalInterface contract

Functions


swapExternal

function swapExternal(address sourceToken, address destToken, address receiver, address returnToSender, uint256 sourceTokenAmount, uint256 requiredDestTokenAmount, uint256 minReturn, bytes swapData) external nonpayable
returns(destTokenAmountReceived uint256, sourceTokenAmountUsed uint256)

Arguments

Name Type Description
sourceToken address
destToken address
receiver address
returnToSender address
sourceTokenAmount uint256
requiredDestTokenAmount uint256
minReturn uint256
swapData bytes
Source Code
function swapExternal(
        address sourceToken,
        address destToken,
        address receiver,
        address returnToSender,
        uint256 sourceTokenAmount,
        uint256 requiredDestTokenAmount,
        uint256 minReturn,
        bytes calldata swapData
    ) external returns (uint256 destTokenAmountReceived, uint256 sourceTokenAmountUsed);

Contracts