{
    "Function": "sellTo",
    "File": "contracts/Router.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "iDAO",
        "Pool",
        "iPOOLFACTORY"
    ],
    "Internal Calls": [
        "_DAO",
        "getsDividend",
        "_handleTransferIn"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function sellTo(uint amount, address token, address member) public payable returns (uint){\n        address _pool = iPOOLFACTORY(_DAO().POOLFACTORY()).getPool(token); // Get pool address\n        _handleTransferIn(token, amount, _pool); // Transfer TOKEN to pool\n        (, uint fee) = Pool(_pool).swapTo(BASE, member); // Swap TOKEN to SPARTA & transfer to user\n        getsDividend(_pool, fee); // Check for dividend & tsf it to pool\n        return fee;\n    }"
}