{
    "Function": "getMostPremium",
    "File": "contracts/v3/strategies/ConvexStrategy.sol",
    "Parent Contracts": [
        "contracts/v3/strategies/BaseStrategy.sol",
        "contracts/v3/interfaces/IStrategy.sol"
    ],
    "High-Level Calls": [
        "SafeMath",
        "SafeMath",
        "IStableSwap3Pool",
        "IStableSwap3Pool",
        "IStableSwap3Pool"
    ],
    "Internal Calls": [],
    "Library Calls": [
        "mul",
        "mul"
    ],
    "Low-Level Calls": [],
    "Code": "function getMostPremium() public view returns (address, uint256) {\n        uint256[] memory balances = new uint256[](3);\n        balances[0] = stableSwap3Pool.balances(0); // DAI\n        balances[1] = stableSwap3Pool.balances(1).mul(10**12); // USDC\n        balances[2] = stableSwap3Pool.balances(2).mul(10**12); // USDT\n\n        if (balances[0] < balances[1] && balances[0] < balances[2]) {\n            // DAI\n            return (dai, 0);\n        }\n\n        if (balances[1] < balances[0] && balances[1] < balances[2]) {\n            // USDC\n            return (usdc, 1);\n        }\n\n        if (balances[2] < balances[0] && balances[2] < balances[1]) {\n            // USDT\n            return (usdt, 2);\n        }\n\n        return (dai, 0); // If they're somehow equal, we just want DAI\n    }"
}