Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
json
Languages:
English
Size:
< 1K
ArXiv:
Tags:
benchmark
code-generation
transaction-code-generation
execution-grounded-evaluation
blockchain
evm
License:
| {"id": "composite_add_liquidity_stake_lp", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complete_workflow", "difficulty": "hard", "title": "Add Token+Token Liquidity and Stake LP Tokens", "description": "Complete LP farming workflow: add liquidity, approve LP, and stake.\n\nThis is a 3-step process:\n1. Add USDT + BUSD liquidity using addLiquidity to receive LP tokens\n2. Approve the staking contract to spend LP tokens\n3. Stake LP tokens in the farming pool using deposit(uint256)\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- Token A: USDT (0x55d398326f99059fF775485246999027B3197955)\n- Token B: BUSD (0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56)\n- LP Token: USDT/BUSD LP (0x7EFaEf62fDdCCa950418312c6C91Aef321375A00)\n- addLiquidity: 0xe8e33700\n- SimpleLPStaking contract uses deposit(uint256 _amount)\n\nIMPORTANT: The staking contract uses deposit(uint256) function.\nThe key operation is stake_lp_tokens since it's the final goal.", "natural_language_templates": ["Add liquidity with {amount_a} {token_a_symbol} and {amount_b} {token_b_symbol}, then stake the LP tokens received", "Provide liquidity to {token_a_symbol}/{token_b_symbol} pool, then stake all LP tokens in the farming pool at {staking_contract}", "Add {amount_a} {token_a_symbol} and {amount_b} {token_b_symbol} to PancakeSwap, approve and stake the LP tokens"], "chain": "", "network": "", "tags": ["defi", "liquidity", "staking", "farming", "lp", "pancakeswap", "complete-workflow", "hard"], "parameter_names": ["amount_a", "amount_b", "lp_token_address", "router_address", "slippage", "staking_contract", "token_a_address", "token_a_symbol", "token_b_address", "token_b_symbol", "token_decimals"], "parameters": "{\"amount_a\": {\"description\": \"Amount of token A to add as liquidity\", \"generation\": {\"decimals\": 2, \"max\": 15.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"amount_b\": {\"description\": \"Amount of token B to add as liquidity\", \"generation\": {\"decimals\": 2, \"max\": 15.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"lp_token_address\": {\"description\": \"LP token address (USDT/BUSD LP - same as SimpleLPStaking expects)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"lp_token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 10.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"staking_contract\": {\"description\": \"SimpleLPStaking contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_lp_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"token_a_address\": {\"description\": \"Token A address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"type\": \"address\"}, \"token_a_symbol\": {\"description\": \"Token A symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Token B address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"type\": \"address\"}, \"token_b_symbol\": {\"description\": \"Token B symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Stake transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"LP staking balance increased\", \"type\": \"lp_staking_increase\", \"weight\": 0.4}, {\"description\": \"LP token balance decreased (staked)\", \"type\": \"lp_balance_decrease\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient USDT and BUSD\", \"min_balance\": \"50 tokens each\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add USDT + BUSD liquidity to receive LP tokens\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve staking contract to spend LP tokens\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"stake_lp_tokens\", \"description\": \"Stake LP tokens in farming pool\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"liquidity-approve-stake\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"stake_lp_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Three-step complete LP farming workflow\", \"Must handle dynamic LP token amount\", \"Complex approval chain\", \"Requires understanding of AMM mechanics\"], \"estimated_gas\": 500000, \"requires_approval\": true, \"tags\": [\"defi\", \"liquidity\", \"staking\", \"farming\", \"lp\", \"pancakeswap\", \"complete-workflow\", \"hard\"]}", "source_path": "composite_problems/composite_add_liquidity_stake_lp.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add USDT + BUSD liquidity to receive LP tokens\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve staking contract to spend LP tokens\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"stake_lp_tokens\", \"description\": \"Stake LP tokens in farming pool\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"liquidity-approve-stake\"}, \"description\": [\"Complete LP farming workflow: add liquidity, approve LP, and stake.\", \"\", \"This is a 3-step process:\", \"1. Add USDT + BUSD liquidity using addLiquidity to receive LP tokens\", \"2. Approve the staking contract to spend LP tokens\", \"3. Stake LP tokens in the farming pool using deposit(uint256)\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- Token A: USDT (0x55d398326f99059fF775485246999027B3197955)\", \"- Token B: BUSD (0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56)\", \"- LP Token: USDT/BUSD LP (0x7EFaEf62fDdCCa950418312c6C91Aef321375A00)\", \"- addLiquidity: 0xe8e33700\", \"- SimpleLPStaking contract uses deposit(uint256 _amount)\", \"\", \"IMPORTANT: The staking contract uses deposit(uint256) function.\", \"The key operation is stake_lp_tokens since it's the final goal.\"], \"difficulty\": \"hard\", \"id\": \"composite_add_liquidity_stake_lp\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Three-step complete LP farming workflow\", \"Must handle dynamic LP token amount\", \"Complex approval chain\", \"Requires understanding of AMM mechanics\"], \"estimated_gas\": 500000, \"requires_approval\": true, \"tags\": [\"defi\", \"liquidity\", \"staking\", \"farming\", \"lp\", \"pancakeswap\", \"complete-workflow\", \"hard\"]}, \"natural_language_templates\": [\"Add liquidity with {amount_a} {token_a_symbol} and {amount_b} {token_b_symbol}, then stake the LP tokens received\", \"Provide liquidity to {token_a_symbol}/{token_b_symbol} pool, then stake all LP tokens in the farming pool at {staking_contract}\", \"Add {amount_a} {token_a_symbol} and {amount_b} {token_b_symbol} to PancakeSwap, approve and stake the LP tokens\"], \"parameters\": {\"amount_a\": {\"description\": \"Amount of token A to add as liquidity\", \"generation\": {\"decimals\": 2, \"max\": 15.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"amount_b\": {\"description\": \"Amount of token B to add as liquidity\", \"generation\": {\"decimals\": 2, \"max\": 15.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"lp_token_address\": {\"description\": \"LP token address (USDT/BUSD LP - same as SimpleLPStaking expects)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"lp_token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 10.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"staking_contract\": {\"description\": \"SimpleLPStaking contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_lp_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"token_a_address\": {\"description\": \"Token A address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"type\": \"address\"}, \"token_a_symbol\": {\"description\": \"Token A symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Token B address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"type\": \"address\"}, \"token_b_symbol\": {\"description\": \"Token B symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}}, \"scoring_strategy\": {\"key_operation_id\": \"stake_lp_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complete_workflow\", \"title\": \"Add Token+Token Liquidity and Stake LP Tokens\", \"validation\": {\"post_conditions\": [{\"description\": \"Stake transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"LP staking balance increased\", \"type\": \"lp_staking_increase\", \"weight\": 0.4}, {\"description\": \"LP token balance decreased (staked)\", \"type\": \"lp_balance_decrease\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient USDT and BUSD\", \"min_balance\": \"50 tokens each\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_approve_add_liquidity", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Approve and Add Liquidity to PancakeSwap", "description": "A composite problem that tests the LLM's ability to:\n1. Execute ERC20 approvals for both tokens to PancakeSwap Router\n2. Execute add liquidity operation using the approvals\nThis demonstrates the DeFi approval pattern for liquidity provision.", "natural_language_templates": ["Approve {token_a_symbol} and {token_b_symbol} for PancakeSwap, then add {amount_token_a} {token_a_symbol} and {amount_token_b} {token_b_symbol} as liquidity", "First approve tokens, then add liquidity to the {token_a_symbol}/{token_b_symbol} pool"], "chain": "BSC", "network": "mainnet", "tags": ["approve-execute", "defi", "liquidity"], "parameter_names": ["amount_token_a", "amount_token_b", "router_address", "slippage", "token_a_address", "token_a_decimals", "token_a_symbol", "token_b_address", "token_b_decimals", "token_b_symbol"], "parameters": "{\"amount_token_a\": {\"description\": \"Amount of token A to add as liquidity\", \"generation\": {\"decimals\": 2, \"max\": 15.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"amount_token_b\": {\"description\": \"Amount of token B to add as liquidity\", \"generation\": {\"decimals\": 2, \"max\": 15.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"tokens\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"comment\": \"PancakeSwap V2 Router on BSC\", \"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance (e.g., 5 for 5%)\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"First token address (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_a_decimals\": {\"description\": \"First token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_a_symbol\": {\"description\": \"First token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Second token address (BUSD)\", \"generation\": {\"comment\": \"BUSD on BSC\", \"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_b_decimals\": {\"description\": \"Second token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}, \"token_b_symbol\": {\"description\": \"Second token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend token A\", \"step\": 1}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add liquidity to token pair\", \"step\": 2}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"add_liquidity\", \"key_operation_id\": \"add_liquidity_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load AddLiquidityTokensValidator and call its validate() method directly\", \"validator_class\": \"AddLiquidityTokensValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_approve_add_liquidity.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend token A\", \"step\": 1}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add liquidity to token pair\", \"step\": 2}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Execute ERC20 approvals for both tokens to PancakeSwap Router\", \"2. Execute add liquidity operation using the approvals\", \"This demonstrates the DeFi approval pattern for liquidity provision.\"], \"difficulty\": \"medium\", \"id\": \"composite_approve_add_liquidity\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Approve {token_a_symbol} and {token_b_symbol} for PancakeSwap, then add {amount_token_a} {token_a_symbol} and {amount_token_b} {token_b_symbol} as liquidity\", \"First approve tokens, then add liquidity to the {token_a_symbol}/{token_b_symbol} pool\"], \"parameters\": {\"amount_token_a\": {\"description\": \"Amount of token A to add as liquidity\", \"generation\": {\"decimals\": 2, \"max\": 15.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"amount_token_b\": {\"description\": \"Amount of token B to add as liquidity\", \"generation\": {\"decimals\": 2, \"max\": 15.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"tokens\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"comment\": \"PancakeSwap V2 Router on BSC\", \"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance (e.g., 5 for 5%)\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"First token address (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_a_decimals\": {\"description\": \"First token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_a_symbol\": {\"description\": \"First token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Second token address (BUSD)\", \"generation\": {\"comment\": \"BUSD on BSC\", \"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_b_decimals\": {\"description\": \"Second token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}, \"token_b_symbol\": {\"description\": \"Second token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"add_liquidity\", \"key_operation_id\": \"add_liquidity_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load AddLiquidityTokensValidator and call its validate() method directly\", \"validator_class\": \"AddLiquidityTokensValidator\"}, \"tags\": [\"approve-execute\", \"defi\", \"liquidity\"], \"title\": \"Approve and Add Liquidity to PancakeSwap\"}"} | |
| {"id": "composite_approve_remove_liquidity", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Approve LP Token and Remove Liquidity", "description": "A composite problem that tests the LLM's ability to:\n1. Execute ERC20 approval for LP token to PancakeSwap Router\n2. Execute remove liquidity operation using the approval\nThis demonstrates the DeFi approval pattern for liquidity withdrawal.", "natural_language_templates": ["Approve PancakeSwap Router to spend your LP tokens, then remove liquidity from {token_a_symbol}/{token_b_symbol} pool", "First approve LP tokens, then remove {liquidity_percentage}% of your liquidity from the {token_a_symbol}/{token_b_symbol} pool"], "chain": "BSC", "network": "mainnet", "tags": ["approve-execute", "defi", "liquidity"], "parameter_names": ["liquidity_percentage", "router_address", "slippage", "token_a_address", "token_a_decimals", "token_a_symbol", "token_b_address", "token_b_decimals", "token_b_symbol"], "parameters": "{\"liquidity_percentage\": {\"description\": \"Percentage of LP tokens to remove (0-100)\", \"generation\": {\"decimals\": 0, \"max\": 70.0, \"method\": \"random\", \"min\": 30.0}, \"role\": \"liquidity_amount\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"comment\": \"PancakeSwap V2 Router on BSC\", \"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance (e.g., 5 for 5%)\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"First token address (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_a_decimals\": {\"description\": \"First token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}, \"token_a_symbol\": {\"description\": \"First token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Second token address (BUSD)\", \"generation\": {\"comment\": \"BUSD on BSC\", \"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_b_decimals\": {\"description\": \"Second token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}, \"token_b_symbol\": {\"description\": \"Second token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend LP tokens\", \"step\": 1}, {\"atomic_id\": \"remove_liquidity_tokens\", \"description\": \"Remove liquidity from token pair pool\", \"step\": 2}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"remove_liquidity\", \"key_operation_id\": \"remove_liquidity_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load RemoveLiquidityTokensValidator and call its validate() method directly\", \"validator_class\": \"RemoveLiquidityTokensValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_approve_remove_liquidity.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend LP tokens\", \"step\": 1}, {\"atomic_id\": \"remove_liquidity_tokens\", \"description\": \"Remove liquidity from token pair pool\", \"step\": 2}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Execute ERC20 approval for LP token to PancakeSwap Router\", \"2. Execute remove liquidity operation using the approval\", \"This demonstrates the DeFi approval pattern for liquidity withdrawal.\"], \"difficulty\": \"medium\", \"id\": \"composite_approve_remove_liquidity\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Approve PancakeSwap Router to spend your LP tokens, then remove liquidity from {token_a_symbol}/{token_b_symbol} pool\", \"First approve LP tokens, then remove {liquidity_percentage}% of your liquidity from the {token_a_symbol}/{token_b_symbol} pool\"], \"parameters\": {\"liquidity_percentage\": {\"description\": \"Percentage of LP tokens to remove (0-100)\", \"generation\": {\"decimals\": 0, \"max\": 70.0, \"method\": \"random\", \"min\": 30.0}, \"role\": \"liquidity_amount\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"comment\": \"PancakeSwap V2 Router on BSC\", \"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance (e.g., 5 for 5%)\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"First token address (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_a_decimals\": {\"description\": \"First token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}, \"token_a_symbol\": {\"description\": \"First token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Second token address (BUSD)\", \"generation\": {\"comment\": \"BUSD on BSC\", \"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_b_decimals\": {\"description\": \"Second token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}, \"token_b_symbol\": {\"description\": \"Second token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"remove_liquidity\", \"key_operation_id\": \"remove_liquidity_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load RemoveLiquidityTokensValidator and call its validate() method directly\", \"validator_class\": \"RemoveLiquidityTokensValidator\"}, \"tags\": [\"approve-execute\", \"defi\", \"liquidity\"], \"title\": \"Approve LP Token and Remove Liquidity\"}"} | |
| {"id": "composite_approve_stake_tokens", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Approve and Stake Tokens", "description": "A composite problem that tests the LLM's ability to:\n1. Execute ERC20 approval for staking contract to spend CAKE tokens\n2. Execute single token staking operation using the approval\nThis demonstrates the DeFi approval pattern for staking operations.\nIMPORTANT: The SimpleStaking contract uses 'deposit(uint256 _amount)' function, NOT 'stake()'.", "natural_language_templates": ["Approve the staking contract to spend {amount} CAKE, then stake {amount} CAKE tokens", "First approve staking contract, then stake {amount} tokens in the pool"], "chain": "BSC", "network": "mainnet", "tags": ["approve-execute", "defi", "staking"], "parameter_names": ["amount", "pool_address", "token_address", "token_decimals", "token_symbol", "user_address"], "parameters": "{\"amount\": {\"description\": \"Amount of CAKE to stake\", \"generation\": {\"decimals\": 1, \"max\": 8.0, \"method\": \"random\", \"min\": 2.0}, \"role\": \"stake_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"pool_address\": {\"description\": \"SimpleStaking contract address\", \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_address\": {\"description\": \"CAKE token address\", \"generation\": {\"comment\": \"CAKE token on BSC\", \"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_decimals\": {\"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_symbol\": {\"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}, \"user_address\": {\"description\": \"User's wallet address\", \"generation\": {\"env_key\": \"test_address\", \"method\": \"from_env\"}, \"role\": \"user\", \"shared_across_steps\": [2], \"type\": \"address\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve staking contract to spend CAKE tokens\", \"step\": 1}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Stake CAKE tokens in the pool\", \"step\": 2}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"stake_tokens\", \"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load StakeSingleTokenValidator and call its validate() method directly\", \"validator_class\": \"StakeSingleTokenValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_approve_stake_tokens.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve staking contract to spend CAKE tokens\", \"step\": 1}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Stake CAKE tokens in the pool\", \"step\": 2}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Execute ERC20 approval for staking contract to spend CAKE tokens\", \"2. Execute single token staking operation using the approval\", \"This demonstrates the DeFi approval pattern for staking operations.\", \"IMPORTANT: The SimpleStaking contract uses 'deposit(uint256 _amount)' function, NOT 'stake()'.\"], \"difficulty\": \"medium\", \"id\": \"composite_approve_stake_tokens\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Approve the staking contract to spend {amount} CAKE, then stake {amount} CAKE tokens\", \"First approve staking contract, then stake {amount} tokens in the pool\"], \"parameters\": {\"amount\": {\"description\": \"Amount of CAKE to stake\", \"generation\": {\"decimals\": 1, \"max\": 8.0, \"method\": \"random\", \"min\": 2.0}, \"role\": \"stake_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"pool_address\": {\"description\": \"SimpleStaking contract address\", \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_address\": {\"description\": \"CAKE token address\", \"generation\": {\"comment\": \"CAKE token on BSC\", \"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_decimals\": {\"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_symbol\": {\"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}, \"user_address\": {\"description\": \"User's wallet address\", \"generation\": {\"env_key\": \"test_address\", \"method\": \"from_env\"}, \"role\": \"user\", \"shared_across_steps\": [2], \"type\": \"address\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"stake_tokens\", \"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load StakeSingleTokenValidator and call its validate() method directly\", \"validator_class\": \"StakeSingleTokenValidator\"}, \"tags\": [\"approve-execute\", \"defi\", \"staking\"], \"title\": \"Approve and Stake Tokens\"}"} | |
| {"id": "composite_approve_swap_query_result", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complete_workflow", "difficulty": "medium", "title": "Approve, Swap, and Query Result", "description": "Complete DeFi workflow: approve tokens, execute swap, and verify result.\n\nThis is a 3-step process:\n1. Approve PancakeSwap Router to spend input tokens\n2. Swap input tokens for output tokens using swapExactTokensForTokens\n3. Query the output token balance to verify the swap result\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- approve(address spender, uint256 amount): 0x095ea7b3\n- swapExactTokensForTokens: 0x38ed1739\n- balanceOf(address): view function for query\n\nNote: The key operation is the swap (step 2) since it's the core transaction.", "natural_language_templates": ["Approve {amount_in} {token_in_symbol}, swap it for {token_out_symbol}, then check how much {token_out_symbol} you received", "Approve PancakeSwap, swap {amount_in} {token_in_symbol} to {token_out_symbol}, and verify the output balance", "First approve {amount_in} {token_in_symbol} for PancakeSwap Router, then swap for {token_out_symbol}, and finally query your {token_out_symbol} balance"], "chain": "", "network": "", "tags": ["defi", "swap", "complete-workflow", "approve", "query", "pancakeswap", "medium"], "parameter_names": ["amount_in", "router_address", "slippage", "token_in_address", "token_in_decimals", "token_in_symbol", "token_out_address", "token_out_decimals", "token_out_symbol"], "parameters": "{\"amount_in\": {\"description\": \"Amount of input tokens to swap\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_in_address\": {\"description\": \"Input token address\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"type\": \"address\"}, \"token_in_decimals\": {\"description\": \"Input token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_out_address\": {\"description\": \"Output token address\", \"generation\": {\"comment\": \"BUSD on BSC\", \"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"token_out_decimals\": {\"description\": \"Output token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"address\": \"{router_address}\", \"description\": \"Correct PancakeSwap Router called\", \"type\": \"contract_called\", \"weight\": 0.1}, {\"description\": \"Correct function swapExactTokensForTokens called\", \"selector\": \"0x38ed1739\", \"type\": \"function_selector\", \"weight\": 0.1}, {\"description\": \"Input token balance decreased by swap amount\", \"expected_decrease\": \"{amount_in}\", \"token\": \"{token_in_address}\", \"type\": \"token_balance_decrease\", \"weight\": 0.25}, {\"description\": \"Output token balance increased\", \"min_increase\": 0, \"token\": \"{token_out_address}\", \"type\": \"token_balance_increase\", \"weight\": 0.35}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient input token balance\", \"min_balance\": \"50 tokens\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend input tokens\", \"role\": \"approval\", \"step\": 1}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap input tokens for output tokens\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query output token balance to verify swap result\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"approve-swap-query\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Three-step complete workflow\", \"Must correctly sequence all operations\", \"Requires understanding of approval mechanism\", \"Query step verifies the result\"], \"estimated_gas\": 250000, \"requires_approval\": true, \"tags\": [\"defi\", \"swap\", \"complete-workflow\", \"approve\", \"query\", \"pancakeswap\", \"medium\"]}", "source_path": "composite_problems/composite_approve_swap_query_result.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend input tokens\", \"role\": \"approval\", \"step\": 1}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap input tokens for output tokens\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query output token balance to verify swap result\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"approve-swap-query\"}, \"description\": [\"Complete DeFi workflow: approve tokens, execute swap, and verify result.\", \"\", \"This is a 3-step process:\", \"1. Approve PancakeSwap Router to spend input tokens\", \"2. Swap input tokens for output tokens using swapExactTokensForTokens\", \"3. Query the output token balance to verify the swap result\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- approve(address spender, uint256 amount): 0x095ea7b3\", \"- swapExactTokensForTokens: 0x38ed1739\", \"- balanceOf(address): view function for query\", \"\", \"Note: The key operation is the swap (step 2) since it's the core transaction.\"], \"difficulty\": \"medium\", \"id\": \"composite_approve_swap_query_result\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Three-step complete workflow\", \"Must correctly sequence all operations\", \"Requires understanding of approval mechanism\", \"Query step verifies the result\"], \"estimated_gas\": 250000, \"requires_approval\": true, \"tags\": [\"defi\", \"swap\", \"complete-workflow\", \"approve\", \"query\", \"pancakeswap\", \"medium\"]}, \"natural_language_templates\": [\"Approve {amount_in} {token_in_symbol}, swap it for {token_out_symbol}, then check how much {token_out_symbol} you received\", \"Approve PancakeSwap, swap {amount_in} {token_in_symbol} to {token_out_symbol}, and verify the output balance\", \"First approve {amount_in} {token_in_symbol} for PancakeSwap Router, then swap for {token_out_symbol}, and finally query your {token_out_symbol} balance\"], \"parameters\": {\"amount_in\": {\"description\": \"Amount of input tokens to swap\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_in_address\": {\"description\": \"Input token address\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"type\": \"address\"}, \"token_in_decimals\": {\"description\": \"Input token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_out_address\": {\"description\": \"Output token address\", \"generation\": {\"comment\": \"BUSD on BSC\", \"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"token_out_decimals\": {\"description\": \"Output token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complete_workflow\", \"title\": \"Approve, Swap, and Query Result\", \"validation\": {\"post_conditions\": [{\"description\": \"Swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"address\": \"{router_address}\", \"description\": \"Correct PancakeSwap Router called\", \"type\": \"contract_called\", \"weight\": 0.1}, {\"description\": \"Correct function swapExactTokensForTokens called\", \"selector\": \"0x38ed1739\", \"type\": \"function_selector\", \"weight\": 0.1}, {\"description\": \"Input token balance decreased by swap amount\", \"expected_decrease\": \"{amount_in}\", \"token\": \"{token_in_address}\", \"type\": \"token_balance_decrease\", \"weight\": 0.25}, {\"description\": \"Output token balance increased\", \"min_increase\": 0, \"token\": \"{token_out_address}\", \"type\": \"token_balance_increase\", \"weight\": 0.35}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient input token balance\", \"min_balance\": \"50 tokens\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_approve_swap_to_bnb", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Approve and Swap Tokens for BNB", "description": "A composite problem that tests the LLM's ability to:\n1. Execute ERC20 approval for PancakeSwap Router\n2. Execute swap operation to exchange tokens for BNB\nThis demonstrates the DeFi approval pattern for token-to-BNB swaps.", "natural_language_templates": ["Approve PancakeSwap to spend {amount_in} {token_symbol}, then swap {amount_in} {token_symbol} for BNB", "First approve the router, then swap {amount_in} {token_symbol} tokens to BNB on PancakeSwap"], "chain": "BSC", "network": "mainnet", "tags": ["approve-execute", "defi", "swap"], "parameter_names": ["amount_in", "router_address", "slippage", "token_address", "token_decimals", "token_symbol", "wbnb_address"], "parameters": "{\"amount_in\": {\"description\": \"Amount of tokens to swap\", \"generation\": {\"decimals\": 2, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"swap_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"comment\": \"PancakeSwap V2 Router on BSC\", \"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance (e.g., 5 for 5%)\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"Token address to swap (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_out\", \"shared_across_steps\": [2], \"type\": \"address\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend tokens\", \"step\": 1}, {\"atomic_id\": \"swap_exact_tokens_for_bnb\", \"description\": \"Swap tokens for BNB\", \"step\": 2}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"swap_to_bnb\", \"key_operation_id\": \"swap_exact_tokens_for_bnb\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load SwapExactTokensForBNBValidator and call its validate() method directly\", \"validator_class\": \"SwapExactTokensForBNBValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_approve_swap_to_bnb.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend tokens\", \"step\": 1}, {\"atomic_id\": \"swap_exact_tokens_for_bnb\", \"description\": \"Swap tokens for BNB\", \"step\": 2}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Execute ERC20 approval for PancakeSwap Router\", \"2. Execute swap operation to exchange tokens for BNB\", \"This demonstrates the DeFi approval pattern for token-to-BNB swaps.\"], \"difficulty\": \"medium\", \"id\": \"composite_approve_swap_to_bnb\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Approve PancakeSwap to spend {amount_in} {token_symbol}, then swap {amount_in} {token_symbol} for BNB\", \"First approve the router, then swap {amount_in} {token_symbol} tokens to BNB on PancakeSwap\"], \"parameters\": {\"amount_in\": {\"description\": \"Amount of tokens to swap\", \"generation\": {\"decimals\": 2, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"swap_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"comment\": \"PancakeSwap V2 Router on BSC\", \"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance (e.g., 5 for 5%)\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"Token address to swap (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_out\", \"shared_across_steps\": [2], \"type\": \"address\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"swap_to_bnb\", \"key_operation_id\": \"swap_exact_tokens_for_bnb\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load SwapExactTokensForBNBValidator and call its validate() method directly\", \"validator_class\": \"SwapExactTokensForBNBValidator\"}, \"tags\": [\"approve-execute\", \"defi\", \"swap\"], \"title\": \"Approve and Swap Tokens for BNB\"}"} | |
| {"id": "composite_approve_swap_tokens", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Approve and Swap Tokens on PancakeSwap", "description": "A composite problem that tests the LLM's ability to:\n1. Execute an ERC20 approval for PancakeSwap Router\n2. Execute a token-to-token swap using the approval\nThis demonstrates the DeFi approval pattern for token swaps.", "natural_language_templates": ["Approve PancakeSwap to spend {amount_in} {token_in_symbol}, then swap {amount_in} {token_in_symbol} for {token_out_symbol}", "First approve the router, then swap {amount_in} {token_in_symbol} to {token_out_symbol} on PancakeSwap"], "chain": "BSC", "network": "mainnet", "tags": ["approve-execute", "defi", "swap"], "parameter_names": ["amount_in", "router_address", "slippage", "token_in_address", "token_in_decimals", "token_in_symbol", "token_out_address", "token_out_decimals", "token_out_symbol"], "parameters": "{\"amount_in\": {\"description\": \"Amount of input tokens to swap\", \"generation\": {\"decimals\": 2, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"swap_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"comment\": \"PancakeSwap V2 Router on BSC\", \"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance for the swap (e.g., 5 for 5%)\", \"generation\": {\"method\": \"fixed\", \"value\": 5}, \"role\": \"slippage_tolerance\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_in_address\": {\"description\": \"Input token to swap (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_in_decimals\": {\"description\": \"Input token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}, \"token_out_address\": {\"description\": \"Output token to receive (BUSD)\", \"generation\": {\"comment\": \"BUSD on BSC\", \"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_out\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_out_decimals\": {\"description\": \"Output token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend tokens\", \"step\": 1}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap tokens on PancakeSwap\", \"step\": 2}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"token_swap\", \"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load SwapExactTokensForTokensValidator and call its validate() method directly\", \"validator_class\": \"SwapExactTokensForTokensValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_approve_swap_tokens.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend tokens\", \"step\": 1}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap tokens on PancakeSwap\", \"step\": 2}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Execute an ERC20 approval for PancakeSwap Router\", \"2. Execute a token-to-token swap using the approval\", \"This demonstrates the DeFi approval pattern for token swaps.\"], \"difficulty\": \"medium\", \"id\": \"composite_approve_swap_tokens\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Approve PancakeSwap to spend {amount_in} {token_in_symbol}, then swap {amount_in} {token_in_symbol} for {token_out_symbol}\", \"First approve the router, then swap {amount_in} {token_in_symbol} to {token_out_symbol} on PancakeSwap\"], \"parameters\": {\"amount_in\": {\"description\": \"Amount of input tokens to swap\", \"generation\": {\"decimals\": 2, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"swap_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"comment\": \"PancakeSwap V2 Router on BSC\", \"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance for the swap (e.g., 5 for 5%)\", \"generation\": {\"method\": \"fixed\", \"value\": 5}, \"role\": \"slippage_tolerance\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_in_address\": {\"description\": \"Input token to swap (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_in_decimals\": {\"description\": \"Input token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}, \"token_out_address\": {\"description\": \"Output token to receive (BUSD)\", \"generation\": {\"comment\": \"BUSD on BSC\", \"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_out\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_out_decimals\": {\"description\": \"Output token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"token_swap\", \"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load SwapExactTokensForTokensValidator and call its validate() method directly\", \"validator_class\": \"SwapExactTokensForTokensValidator\"}, \"tags\": [\"approve-execute\", \"defi\", \"swap\"], \"title\": \"Approve and Swap Tokens on PancakeSwap\"}"} | |
| {"id": "composite_approve_transferfrom", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Approve and Execute TransferFrom", "description": "A composite problem that tests the LLM's ability to:\n1. Execute an ERC20 approval (approve spender to spend tokens)\n2. Execute a transferFrom operation using the approval\nThis demonstrates the ERC20 approval pattern where authorization is granted first, then used.", "natural_language_templates": ["Approve {spender_address} to spend {amount} {token_symbol}, then transfer {amount} {token_symbol} from your account to {to_address} using transferFrom", "First approve the spender, then execute transferFrom to move {amount} {token_symbol} tokens"], "chain": "BSC", "network": "mainnet", "tags": ["approve-execute", "token"], "parameter_names": ["amount", "from_address", "spender_address", "to_address", "token_address", "token_decimals", "token_symbol"], "parameters": "{\"amount\": {\"description\": \"Amount to approve and transfer\", \"generation\": {\"decimals\": 2, \"max\": 50.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"transfer_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"from_address\": {\"description\": \"Token owner address for transferFrom (agent_address)\", \"generation\": {\"comment\": \"Agent is the token owner\", \"env_key\": \"test_address\", \"method\": \"from_env\"}, \"role\": \"token_owner\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"spender_address\": {\"description\": \"Address to approve (will be agent_address in this test scenario)\", \"generation\": {\"comment\": \"Agent approves themselves to demonstrate the pattern\", \"env_key\": \"test_address\", \"method\": \"from_env\"}, \"role\": \"spender\", \"shared_across_steps\": [1], \"type\": \"address\"}, \"to_address\": {\"description\": \"Recipient address for token transfer\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_address\": {\"description\": \"ERC20 token contract address (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol for display\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve spender to spend tokens\", \"step\": 1}, {\"atomic_id\": \"erc20_transferfrom_basic\", \"description\": \"Execute transferFrom using the approval\", \"step\": 2}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"transferfrom_execution\", \"key_operation_id\": \"erc20_transferfrom_basic\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load ERC20TransferFromBasicValidator and call its validate() method directly\", \"validator_class\": \"ERC20TransferFromBasicValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_approve_transferfrom.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve spender to spend tokens\", \"step\": 1}, {\"atomic_id\": \"erc20_transferfrom_basic\", \"description\": \"Execute transferFrom using the approval\", \"step\": 2}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Execute an ERC20 approval (approve spender to spend tokens)\", \"2. Execute a transferFrom operation using the approval\", \"This demonstrates the ERC20 approval pattern where authorization is granted first, then used.\"], \"difficulty\": \"medium\", \"id\": \"composite_approve_transferfrom\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Approve {spender_address} to spend {amount} {token_symbol}, then transfer {amount} {token_symbol} from your account to {to_address} using transferFrom\", \"First approve the spender, then execute transferFrom to move {amount} {token_symbol} tokens\"], \"parameters\": {\"amount\": {\"description\": \"Amount to approve and transfer\", \"generation\": {\"decimals\": 2, \"max\": 50.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"transfer_amount\", \"shared_across_steps\": [1, 2], \"type\": \"number\", \"unit\": \"tokens\"}, \"from_address\": {\"description\": \"Token owner address for transferFrom (agent_address)\", \"generation\": {\"comment\": \"Agent is the token owner\", \"env_key\": \"test_address\", \"method\": \"from_env\"}, \"role\": \"token_owner\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"spender_address\": {\"description\": \"Address to approve (will be agent_address in this test scenario)\", \"generation\": {\"comment\": \"Agent approves themselves to demonstrate the pattern\", \"env_key\": \"test_address\", \"method\": \"from_env\"}, \"role\": \"spender\", \"shared_across_steps\": [1], \"type\": \"address\"}, \"to_address\": {\"description\": \"Recipient address for token transfer\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_address\": {\"description\": \"ERC20 token contract address (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2], \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol for display\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2], \"type\": \"string\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"transferfrom_execution\", \"key_operation_id\": \"erc20_transferfrom_basic\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load ERC20TransferFromBasicValidator and call its validate() method directly\", \"validator_class\": \"ERC20TransferFromBasicValidator\"}, \"tags\": [\"approve-execute\", \"token\"], \"title\": \"Approve and Execute TransferFrom\"}"} | |
| {"id": "composite_batch_approve_2_tokens", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "batch_operations", "difficulty": "medium", "title": "Batch Approve Two Tokens and Add Liquidity", "description": "Batch approve two tokens and add liquidity.\n\nThis is a 3-step process:\n1. Approve {token_a_symbol} for PancakeSwap Router\n2. Approve {token_b_symbol} for PancakeSwap Router\n3. Add liquidity with {amount_a} {token_a_symbol} and {amount_b} {token_b_symbol}\n\nToken contracts:\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\n- Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n\nUse addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline)\nFunction selector: 0xe8e33700\n\nThe key operation is adding liquidity (step 3).\n\nIMPORTANT: Execute approvals first, then add liquidity.", "natural_language_templates": ["Approve {token_a_symbol} and {token_b_symbol} for PancakeSwap, then add liquidity to the pool", "Approve both tokens for the router, then add {amount_a} {token_a_symbol} and {amount_b} {token_b_symbol} as liquidity", "Batch approve {token_a_symbol} and {token_b_symbol}, then provide {amount_a} and {amount_b} as liquidity"], "chain": "", "network": "", "tags": ["batch", "approve", "liquidity", "defi", "pancakeswap", "medium"], "parameter_names": ["amount_a", "amount_b", "router_address", "slippage", "token_a_address", "token_a_symbol", "token_b_address", "token_b_symbol", "token_decimals"], "parameters": "{\"amount_a\": {\"description\": \"Amount of token A to add (USDT)\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"amount_token_a\", \"type\": \"number\", \"unit\": \"token\"}, \"amount_b\": {\"description\": \"Amount of token B to add (BUSD)\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"amount_token_b\", \"type\": \"number\", \"unit\": \"token\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"Token A contract address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"type\": \"address\"}, \"token_a_symbol\": {\"description\": \"Token A symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Token B contract address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"type\": \"address\"}, \"token_b_symbol\": {\"description\": \"Token B symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimals (both are 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Liquidity added successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"LP tokens received by agent\", \"type\": \"lp_token_received\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 tokens\", \"token\": \"USDT\", \"type\": \"token_balance\"}, {\"description\": \"Agent must have sufficient BUSD\", \"min_balance\": \"100 tokens\", \"token\": \"BUSD\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve token A for Router\", \"role\": \"approve_token_a\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve token B for Router\", \"role\": \"approve_token_b\", \"step\": 2}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add liquidity to the pool\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-approve-execute\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"add_liquidity_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Requires two separate approvals\", \"Must understand token pair liquidity\", \"Slippage handling required\"], \"estimated_gas\": 350000, \"requires_approval\": true, \"tags\": [\"batch\", \"approve\", \"liquidity\", \"defi\", \"pancakeswap\", \"medium\"]}", "source_path": "composite_problems/composite_batch_approve_2_tokens.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve token A for Router\", \"role\": \"approve_token_a\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve token B for Router\", \"role\": \"approve_token_b\", \"step\": 2}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add liquidity to the pool\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-approve-execute\"}, \"description\": [\"Batch approve two tokens and add liquidity.\", \"\", \"This is a 3-step process:\", \"1. Approve {token_a_symbol} for PancakeSwap Router\", \"2. Approve {token_b_symbol} for PancakeSwap Router\", \"3. Add liquidity with {amount_a} {token_a_symbol} and {amount_b} {token_b_symbol}\", \"\", \"Token contracts:\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\", \"- Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"\", \"Use addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline)\", \"Function selector: 0xe8e33700\", \"\", \"The key operation is adding liquidity (step 3).\", \"\", \"IMPORTANT: Execute approvals first, then add liquidity.\"], \"difficulty\": \"medium\", \"id\": \"composite_batch_approve_2_tokens\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Requires two separate approvals\", \"Must understand token pair liquidity\", \"Slippage handling required\"], \"estimated_gas\": 350000, \"requires_approval\": true, \"tags\": [\"batch\", \"approve\", \"liquidity\", \"defi\", \"pancakeswap\", \"medium\"]}, \"natural_language_templates\": [\"Approve {token_a_symbol} and {token_b_symbol} for PancakeSwap, then add liquidity to the pool\", \"Approve both tokens for the router, then add {amount_a} {token_a_symbol} and {amount_b} {token_b_symbol} as liquidity\", \"Batch approve {token_a_symbol} and {token_b_symbol}, then provide {amount_a} and {amount_b} as liquidity\"], \"parameters\": {\"amount_a\": {\"description\": \"Amount of token A to add (USDT)\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"amount_token_a\", \"type\": \"number\", \"unit\": \"token\"}, \"amount_b\": {\"description\": \"Amount of token B to add (BUSD)\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"amount_token_b\", \"type\": \"number\", \"unit\": \"token\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"Token A contract address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"type\": \"address\"}, \"token_a_symbol\": {\"description\": \"Token A symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Token B contract address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"type\": \"address\"}, \"token_b_symbol\": {\"description\": \"Token B symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimals (both are 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}}, \"scoring_strategy\": {\"key_operation_id\": \"add_liquidity_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"batch_operations\", \"title\": \"Batch Approve Two Tokens and Add Liquidity\", \"validation\": {\"post_conditions\": [{\"description\": \"Liquidity added successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"LP tokens received by agent\", \"type\": \"lp_token_received\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 tokens\", \"token\": \"USDT\", \"type\": \"token_balance\"}, {\"description\": \"Agent must have sufficient BUSD\", \"min_balance\": \"100 tokens\", \"token\": \"BUSD\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_batch_mixed_transfers", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "batch_operations", "difficulty": "medium", "title": "Batch Mixed Asset Transfers", "description": "Transfer multiple asset types to the same recipient.\n\nThis is a 3-step process:\n1. Transfer {amount_bnb} BNB (native token)\n2. Transfer {amount_usdt} USDT (ERC20)\n3. Transfer {amount_busd} BUSD (ERC20)\n\nAll transfers go to the same address: {to_address}\n\nToken contracts:\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\n\nThe key operation is the last transfer (BUSD, step 3).\n\nIMPORTANT: Execute all 3 transfers in sequence.", "natural_language_templates": ["Send {amount_bnb} BNB, {amount_usdt} USDT, and {amount_busd} BUSD to {to_address}", "Transfer multiple assets to {to_address}: {amount_bnb} BNB, {amount_usdt} USDT, {amount_busd} BUSD", "Pay {to_address} with {amount_bnb} BNB, {amount_usdt} USDT, and {amount_busd} BUSD"], "chain": "", "network": "", "tags": ["batch", "mixed", "payment", "bnb", "erc20", "multi-asset", "medium"], "parameter_names": ["amount_bnb", "amount_busd", "amount_usdt", "busd_address", "to_address", "token_address", "token_decimals", "usdt_address"], "parameters": "{\"amount_bnb\": {\"description\": \"Amount of BNB to transfer\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount_bnb\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount_busd\": {\"description\": \"Amount of BUSD to transfer\", \"generation\": {\"decimals\": 2, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"transfer_amount_busd\", \"type\": \"number\", \"unit\": \"BUSD\"}, \"amount_usdt\": {\"description\": \"Amount of USDT to transfer\", \"generation\": {\"decimals\": 2, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"transfer_amount_usdt\", \"type\": \"number\", \"unit\": \"USDT\"}, \"busd_address\": {\"description\": \"BUSD token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_busd\", \"type\": \"address\"}, \"to_address\": {\"description\": \"Recipient address for all transfers\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient\", \"type\": \"address\"}, \"token_address\": {\"description\": \"Key operation token address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals (both USDT and BUSD are 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_usdt\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"All transfers executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"Recipient received all assets\", \"type\": \"recipient_balance_increase\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB\", \"min_balance\": \"1.0 BNB\", \"type\": \"bnb_balance\"}, {\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 tokens\", \"token\": \"USDT\", \"type\": \"token_balance\"}, {\"description\": \"Agent must have sufficient BUSD\", \"min_balance\": \"100 tokens\", \"token\": \"BUSD\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to recipient\", \"role\": \"transfer_bnb\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer USDT to recipient\", \"role\": \"transfer_usdt\", \"step\": 2}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer BUSD to recipient\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-mixed-transfer\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"erc20_transfer_fixed\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Mixed asset type transfers\", \"Single recipient, multiple asset types\", \"No approvals needed\", \"Sequential execution required\"], \"estimated_gas\": 120000, \"requires_approval\": false, \"tags\": [\"batch\", \"mixed\", \"payment\", \"bnb\", \"erc20\", \"multi-asset\", \"medium\"]}", "source_path": "composite_problems/composite_batch_mixed_transfers.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to recipient\", \"role\": \"transfer_bnb\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer USDT to recipient\", \"role\": \"transfer_usdt\", \"step\": 2}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer BUSD to recipient\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-mixed-transfer\"}, \"description\": [\"Transfer multiple asset types to the same recipient.\", \"\", \"This is a 3-step process:\", \"1. Transfer {amount_bnb} BNB (native token)\", \"2. Transfer {amount_usdt} USDT (ERC20)\", \"3. Transfer {amount_busd} BUSD (ERC20)\", \"\", \"All transfers go to the same address: {to_address}\", \"\", \"Token contracts:\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\", \"\", \"The key operation is the last transfer (BUSD, step 3).\", \"\", \"IMPORTANT: Execute all 3 transfers in sequence.\"], \"difficulty\": \"medium\", \"id\": \"composite_batch_mixed_transfers\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Mixed asset type transfers\", \"Single recipient, multiple asset types\", \"No approvals needed\", \"Sequential execution required\"], \"estimated_gas\": 120000, \"requires_approval\": false, \"tags\": [\"batch\", \"mixed\", \"payment\", \"bnb\", \"erc20\", \"multi-asset\", \"medium\"]}, \"natural_language_templates\": [\"Send {amount_bnb} BNB, {amount_usdt} USDT, and {amount_busd} BUSD to {to_address}\", \"Transfer multiple assets to {to_address}: {amount_bnb} BNB, {amount_usdt} USDT, {amount_busd} BUSD\", \"Pay {to_address} with {amount_bnb} BNB, {amount_usdt} USDT, and {amount_busd} BUSD\"], \"parameters\": {\"amount_bnb\": {\"description\": \"Amount of BNB to transfer\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount_bnb\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount_busd\": {\"description\": \"Amount of BUSD to transfer\", \"generation\": {\"decimals\": 2, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"transfer_amount_busd\", \"type\": \"number\", \"unit\": \"BUSD\"}, \"amount_usdt\": {\"description\": \"Amount of USDT to transfer\", \"generation\": {\"decimals\": 2, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"transfer_amount_usdt\", \"type\": \"number\", \"unit\": \"USDT\"}, \"busd_address\": {\"description\": \"BUSD token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_busd\", \"type\": \"address\"}, \"to_address\": {\"description\": \"Recipient address for all transfers\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient\", \"type\": \"address\"}, \"token_address\": {\"description\": \"Key operation token address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals (both USDT and BUSD are 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_usdt\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"erc20_transfer_fixed\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"batch_operations\", \"title\": \"Batch Mixed Asset Transfers\", \"validation\": {\"post_conditions\": [{\"description\": \"All transfers executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"Recipient received all assets\", \"type\": \"recipient_balance_increase\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB\", \"min_balance\": \"1.0 BNB\", \"type\": \"bnb_balance\"}, {\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 tokens\", \"token\": \"USDT\", \"type\": \"token_balance\"}, {\"description\": \"Agent must have sufficient BUSD\", \"min_balance\": \"100 tokens\", \"token\": \"BUSD\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_batch_query_2_balances", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "batch_query", "difficulty": "easy", "title": "Batch Query Two Token Balances", "description": "Query two different ERC20 token balances in sequence.\n\nThis is a 2-step query process:\n1. Query USDT balance using balanceOf(address)\n2. Query BUSD balance using balanceOf(address)\n\nTechnical details:\n- USDT address: 0x55d398326f99059fF775485246999027B3197955\n- BUSD address: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\n- Use balanceOf(address) view function\n- No transaction required (read-only operations)\n\nNote: This is a pure query operation for testing batch query functionality.", "natural_language_templates": ["Check your USDT balance and BUSD balance", "Query the balance of USDT at {usdt_address} and BUSD at {busd_address}", "Get both your USDT and BUSD token balances"], "chain": "", "network": "", "tags": ["batch", "query", "balance", "erc20", "read-only", "easy"], "parameter_names": ["busd_address", "busd_symbol", "token_decimals", "usdt_address", "usdt_symbol"], "parameters": "{\"busd_address\": {\"description\": \"BUSD token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token2\", \"type\": \"address\"}, \"busd_symbol\": {\"description\": \"BUSD token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimal places (both USDT and BUSD use 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token1\", \"type\": \"address\"}, \"usdt_symbol\": {\"description\": \"USDT token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Both queries executed successfully\", \"type\": \"query_success\", \"weight\": 0.5}, {\"description\": \"Return values contain balance information\", \"type\": \"return_format\", \"weight\": 0.5}], \"pre_conditions\": [{\"addresses\": [\"{usdt_address}\", \"{busd_address}\"], \"description\": \"Token contracts must exist\", \"type\": \"contract_exists\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query USDT balance\", \"role\": \"first_query\", \"step\": 1}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query BUSD balance\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"batch-query\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"query_erc20_balance\", \"key_operation_step\": 2, \"method\": \"query_result_validation\", \"validation_type\": \"query_success\"}", "metadata": "{\"difficulty_notes\": [\"Pure read-only operations\", \"No transactions required\", \"Simple batch query test\"], \"estimated_gas\": 0, \"operation_type\": \"query\", \"requires_approval\": false, \"tags\": [\"batch\", \"query\", \"balance\", \"erc20\", \"read-only\", \"easy\"]}", "source_path": "composite_problems/composite_batch_query_2_balances.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query USDT balance\", \"role\": \"first_query\", \"step\": 1}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query BUSD balance\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"batch-query\"}, \"description\": [\"Query two different ERC20 token balances in sequence.\", \"\", \"This is a 2-step query process:\", \"1. Query USDT balance using balanceOf(address)\", \"2. Query BUSD balance using balanceOf(address)\", \"\", \"Technical details:\", \"- USDT address: 0x55d398326f99059fF775485246999027B3197955\", \"- BUSD address: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\", \"- Use balanceOf(address) view function\", \"- No transaction required (read-only operations)\", \"\", \"Note: This is a pure query operation for testing batch query functionality.\"], \"difficulty\": \"easy\", \"id\": \"composite_batch_query_2_balances\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Pure read-only operations\", \"No transactions required\", \"Simple batch query test\"], \"estimated_gas\": 0, \"operation_type\": \"query\", \"requires_approval\": false, \"tags\": [\"batch\", \"query\", \"balance\", \"erc20\", \"read-only\", \"easy\"]}, \"natural_language_templates\": [\"Check your USDT balance and BUSD balance\", \"Query the balance of USDT at {usdt_address} and BUSD at {busd_address}\", \"Get both your USDT and BUSD token balances\"], \"parameters\": {\"busd_address\": {\"description\": \"BUSD token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token2\", \"type\": \"address\"}, \"busd_symbol\": {\"description\": \"BUSD token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimal places (both USDT and BUSD use 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token1\", \"type\": \"address\"}, \"usdt_symbol\": {\"description\": \"USDT token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"query_erc20_balance\", \"key_operation_step\": 2, \"method\": \"query_result_validation\", \"validation_type\": \"query_success\"}, \"subcategory\": \"batch_query\", \"title\": \"Batch Query Two Token Balances\", \"validation\": {\"post_conditions\": [{\"description\": \"Both queries executed successfully\", \"type\": \"query_success\", \"weight\": 0.5}, {\"description\": \"Return values contain balance information\", \"type\": \"return_format\", \"weight\": 0.5}], \"pre_conditions\": [{\"addresses\": [\"{usdt_address}\", \"{busd_address}\"], \"description\": \"Token contracts must exist\", \"type\": \"contract_exists\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_batch_query_portfolio", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "query_workflows", "difficulty": "easy", "title": "Batch Query Portfolio Balances", "description": "Query multiple asset balances to get portfolio summary.\n\nThis is a 3-step query process:\n1. Query BNB balance using provider.getBalance(agentAddress)\n2. Query USDT balance using balanceOf on USDT contract\n3. Query CAKE balance using balanceOf on CAKE contract\n\nIMPORTANT - Token contract addresses (use these EXACT addresses):\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- CAKE: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\n\nCRITICAL: BSC does NOT support ENS. Always use hex addresses directly.\nDo NOT use token symbols like 'USDT' or 'CAKE' as addresses.\n\nExample code pattern:\n```\nconst usdtAddress = '0x55d398326f99059fF775485246999027B3197955';\nconst cakeAddress = '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82';\nconst erc20Abi = ['function balanceOf(address) view returns (uint256)'];\nconst usdtContract = new ethers.Contract(usdtAddress, erc20Abi, provider);\nconst cakeContract = new ethers.Contract(cakeAddress, erc20Abi, provider);\nconst bnbBalance = await provider.getBalance(agentAddress);\nconst usdtBalance = await usdtContract.balanceOf(agentAddress);\nconst cakeBalance = await cakeContract.balanceOf(agentAddress);\n```\n\nThis is a READ-ONLY operation. No transactions needed.\nReturn the query results as QUERY_RESULT type.", "natural_language_templates": ["Check your portfolio: BNB balance, USDT balance, and CAKE balance", "Query all your balances: BNB, USDT at {usdt_address}, and CAKE at {cake_address}", "Get my portfolio summary: how much BNB, USDT, and CAKE do I have?"], "chain": "", "network": "", "tags": ["batch", "query", "portfolio", "read-only", "balance", "easy"], "parameter_names": ["cake_address", "cake_symbol", "token_decimals", "usdt_address", "usdt_symbol"], "parameters": "{\"cake_address\": {\"description\": \"CAKE token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token_cake\", \"type\": \"address\"}, \"cake_symbol\": {\"description\": \"CAKE symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimals (both USDT and CAKE are 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_usdt\", \"type\": \"address\"}, \"usdt_symbol\": {\"description\": \"USDT symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"All queries executed successfully\", \"type\": \"query_success\", \"weight\": 1.0}], \"pre_conditions\": []}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_bnb_balance\", \"description\": \"Query BNB balance\", \"role\": \"query_bnb\", \"step\": 1}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query USDT balance\", \"role\": \"query_usdt\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query CAKE balance\", \"role\": \"query_cake\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-query\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"description\": \"Custom scoring for query operations based on returned data\", \"method\": \"custom_scoring\"}", "metadata": "{\"difficulty_notes\": [\"Pure query operation\", \"No transactions needed\", \"Simple balance checks\"], \"estimated_gas\": 0, \"requires_approval\": false, \"tags\": [\"batch\", \"query\", \"portfolio\", \"read-only\", \"balance\", \"easy\"]}", "source_path": "composite_problems/composite_batch_query_portfolio.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_bnb_balance\", \"description\": \"Query BNB balance\", \"role\": \"query_bnb\", \"step\": 1}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query USDT balance\", \"role\": \"query_usdt\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query CAKE balance\", \"role\": \"query_cake\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-query\"}, \"description\": [\"Query multiple asset balances to get portfolio summary.\", \"\", \"This is a 3-step query process:\", \"1. Query BNB balance using provider.getBalance(agentAddress)\", \"2. Query USDT balance using balanceOf on USDT contract\", \"3. Query CAKE balance using balanceOf on CAKE contract\", \"\", \"IMPORTANT - Token contract addresses (use these EXACT addresses):\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- CAKE: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\", \"\", \"CRITICAL: BSC does NOT support ENS. Always use hex addresses directly.\", \"Do NOT use token symbols like 'USDT' or 'CAKE' as addresses.\", \"\", \"Example code pattern:\", \"```\", \"const usdtAddress = '0x55d398326f99059fF775485246999027B3197955';\", \"const cakeAddress = '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82';\", \"const erc20Abi = ['function balanceOf(address) view returns (uint256)'];\", \"const usdtContract = new ethers.Contract(usdtAddress, erc20Abi, provider);\", \"const cakeContract = new ethers.Contract(cakeAddress, erc20Abi, provider);\", \"const bnbBalance = await provider.getBalance(agentAddress);\", \"const usdtBalance = await usdtContract.balanceOf(agentAddress);\", \"const cakeBalance = await cakeContract.balanceOf(agentAddress);\", \"```\", \"\", \"This is a READ-ONLY operation. No transactions needed.\", \"Return the query results as QUERY_RESULT type.\"], \"difficulty\": \"easy\", \"id\": \"composite_batch_query_portfolio\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Pure query operation\", \"No transactions needed\", \"Simple balance checks\"], \"estimated_gas\": 0, \"requires_approval\": false, \"tags\": [\"batch\", \"query\", \"portfolio\", \"read-only\", \"balance\", \"easy\"]}, \"natural_language_templates\": [\"Check your portfolio: BNB balance, USDT balance, and CAKE balance\", \"Query all your balances: BNB, USDT at {usdt_address}, and CAKE at {cake_address}\", \"Get my portfolio summary: how much BNB, USDT, and CAKE do I have?\"], \"parameters\": {\"cake_address\": {\"description\": \"CAKE token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token_cake\", \"type\": \"address\"}, \"cake_symbol\": {\"description\": \"CAKE symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimals (both USDT and CAKE are 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_usdt\", \"type\": \"address\"}, \"usdt_symbol\": {\"description\": \"USDT symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"description\": \"Custom scoring for query operations based on returned data\", \"method\": \"custom_scoring\"}, \"subcategory\": \"query_workflows\", \"title\": \"Batch Query Portfolio Balances\", \"validation\": {\"post_conditions\": [{\"description\": \"All queries executed successfully\", \"type\": \"query_success\", \"weight\": 1.0}], \"pre_conditions\": []}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_batch_transfer_2_bnb", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "batch_transfer", "difficulty": "easy", "title": "Batch Transfer BNB to 2 Addresses", "description": "Execute two consecutive BNB transfers to different addresses.\n\nThis is a 2-step process:\n1. Transfer BNB to the first address\n2. Transfer BNB to the second address\n\nTechnical details:\n- Simple native BNB transfers (no contract calls)\n- Each transfer is a separate transaction\n- Agent must have sufficient BNB for both transfers plus gas\n\nNote: The key operation is the second transfer since it completes the batch.", "natural_language_templates": ["Transfer {amount1} BNB to {address1} and {amount2} BNB to {address2}", "Send {amount1} BNB to {address1}, then send {amount2} BNB to {address2}", "Make two BNB transfers: {amount1} BNB to {address1} and {amount2} BNB to {address2}"], "chain": "", "network": "", "tags": ["batch", "native", "bnb", "transfer", "easy", "two-step"], "parameter_names": ["address1", "address2", "amount1", "amount2"], "parameters": "{\"address1\": {\"description\": \"First recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient2\", \"type\": \"address\"}, \"amount1\": {\"description\": \"Amount of BNB to send to first address\", \"generation\": {\"decimals\": 3, \"max\": 0.1, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount1\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount2\": {\"description\": \"Amount of BNB to send to second address\", \"generation\": {\"decimals\": 3, \"max\": 0.1, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount2\", \"type\": \"number\", \"unit\": \"BNB\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Second transfer transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"address\": \"{address2}\", \"description\": \"Second recipient received correct amount\", \"expected_amount\": \"{amount2}\", \"type\": \"bnb_received\", \"weight\": 0.35}, {\"description\": \"Agent's BNB balance decreased correctly\", \"type\": \"bnb_sent\", \"weight\": 0.35}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for both transfers and gas\", \"min_balance\": \"1 BNB\", \"type\": \"bnb_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to the first address\", \"role\": \"first_transfer\", \"step\": 1}, {\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to the second address\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"batch-transfer\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"bnb_transfer_basic\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Simple batch transfer of native BNB\", \"Two separate transactions\", \"No contract interaction required\"], \"estimated_gas\": 42000, \"requires_approval\": false, \"tags\": [\"batch\", \"native\", \"bnb\", \"transfer\", \"easy\", \"two-step\"]}", "source_path": "composite_problems/composite_batch_transfer_2_bnb.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to the first address\", \"role\": \"first_transfer\", \"step\": 1}, {\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to the second address\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"batch-transfer\"}, \"description\": [\"Execute two consecutive BNB transfers to different addresses.\", \"\", \"This is a 2-step process:\", \"1. Transfer BNB to the first address\", \"2. Transfer BNB to the second address\", \"\", \"Technical details:\", \"- Simple native BNB transfers (no contract calls)\", \"- Each transfer is a separate transaction\", \"- Agent must have sufficient BNB for both transfers plus gas\", \"\", \"Note: The key operation is the second transfer since it completes the batch.\"], \"difficulty\": \"easy\", \"id\": \"composite_batch_transfer_2_bnb\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Simple batch transfer of native BNB\", \"Two separate transactions\", \"No contract interaction required\"], \"estimated_gas\": 42000, \"requires_approval\": false, \"tags\": [\"batch\", \"native\", \"bnb\", \"transfer\", \"easy\", \"two-step\"]}, \"natural_language_templates\": [\"Transfer {amount1} BNB to {address1} and {amount2} BNB to {address2}\", \"Send {amount1} BNB to {address1}, then send {amount2} BNB to {address2}\", \"Make two BNB transfers: {amount1} BNB to {address1} and {amount2} BNB to {address2}\"], \"parameters\": {\"address1\": {\"description\": \"First recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient2\", \"type\": \"address\"}, \"amount1\": {\"description\": \"Amount of BNB to send to first address\", \"generation\": {\"decimals\": 3, \"max\": 0.1, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount1\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount2\": {\"description\": \"Amount of BNB to send to second address\", \"generation\": {\"decimals\": 3, \"max\": 0.1, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount2\", \"type\": \"number\", \"unit\": \"BNB\"}}, \"scoring_strategy\": {\"key_operation_id\": \"bnb_transfer_basic\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"batch_transfer\", \"title\": \"Batch Transfer BNB to 2 Addresses\", \"validation\": {\"post_conditions\": [{\"description\": \"Second transfer transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"address\": \"{address2}\", \"description\": \"Second recipient received correct amount\", \"expected_amount\": \"{amount2}\", \"type\": \"bnb_received\", \"weight\": 0.35}, {\"description\": \"Agent's BNB balance decreased correctly\", \"type\": \"bnb_sent\", \"weight\": 0.35}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for both transfers and gas\", \"min_balance\": \"1 BNB\", \"type\": \"bnb_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_batch_transfer_2_tokens", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "batch_transfer", "difficulty": "medium", "title": "Batch Transfer ERC20 Tokens to 2 Addresses", "description": "Execute two consecutive ERC20 token transfers to different addresses.\n\nThis is a 2-step process:\n1. Transfer tokens to the first address using transfer(address, uint256)\n2. Transfer tokens to the second address using transfer(address, uint256)\n\nTechnical details:\n- ERC20 transfer function: transfer(address to, uint256 amount)\n- Function selector: 0xa9059cbb\n- Each transfer is a separate transaction\n- Agent must have sufficient token balance for both transfers\n\nNote: The key operation is the second transfer since it completes the batch.", "natural_language_templates": ["Transfer {amount1} {token_symbol} to {address1} and {amount2} {token_symbol} to {address2}", "Send {amount1} {token_symbol} tokens to {address1}, then send {amount2} {token_symbol} tokens to {address2}", "Make two {token_symbol} transfers: {amount1} to {address1} and {amount2} to {address2}"], "chain": "", "network": "", "tags": ["batch", "token", "erc20", "transfer", "medium", "two-step"], "parameter_names": ["address1", "address2", "amount1", "amount2", "token_address", "token_decimals", "token_symbol"], "parameters": "{\"address1\": {\"description\": \"First recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient2\", \"type\": \"address\"}, \"amount1\": {\"description\": \"Amount of tokens to send to first address\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount1\", \"type\": \"number\", \"unit\": \"token\"}, \"amount2\": {\"description\": \"Amount of tokens to send to second address\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount2\", \"type\": \"number\", \"unit\": \"token\"}, \"token_address\": {\"description\": \"ERC20 token contract address\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol for display\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Second transfer transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"address\": \"{token_address}\", \"description\": \"Correct token contract called\", \"type\": \"contract_called\", \"weight\": 0.2}, {\"description\": \"Correct function transfer(address,uint256) called\", \"selector\": \"0xa9059cbb\", \"type\": \"function_selector\", \"weight\": 0.1}, {\"address\": \"{address2}\", \"description\": \"Second recipient received correct amount\", \"expected_amount\": \"{amount2}\", \"type\": \"token_received\", \"weight\": 0.2}, {\"description\": \"Agent's token balance decreased correctly\", \"type\": \"token_sent\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient token balance for both transfers\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to the first address\", \"role\": \"first_transfer\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to the second address\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"batch-transfer\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"erc20_transfer_fixed\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Batch transfer of ERC20 tokens\", \"Two separate transactions\", \"Must handle token decimals correctly\"], \"estimated_gas\": 100000, \"requires_approval\": false, \"tags\": [\"batch\", \"token\", \"erc20\", \"transfer\", \"medium\", \"two-step\"]}", "source_path": "composite_problems/composite_batch_transfer_2_tokens.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to the first address\", \"role\": \"first_transfer\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to the second address\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"batch-transfer\"}, \"description\": [\"Execute two consecutive ERC20 token transfers to different addresses.\", \"\", \"This is a 2-step process:\", \"1. Transfer tokens to the first address using transfer(address, uint256)\", \"2. Transfer tokens to the second address using transfer(address, uint256)\", \"\", \"Technical details:\", \"- ERC20 transfer function: transfer(address to, uint256 amount)\", \"- Function selector: 0xa9059cbb\", \"- Each transfer is a separate transaction\", \"- Agent must have sufficient token balance for both transfers\", \"\", \"Note: The key operation is the second transfer since it completes the batch.\"], \"difficulty\": \"medium\", \"id\": \"composite_batch_transfer_2_tokens\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Batch transfer of ERC20 tokens\", \"Two separate transactions\", \"Must handle token decimals correctly\"], \"estimated_gas\": 100000, \"requires_approval\": false, \"tags\": [\"batch\", \"token\", \"erc20\", \"transfer\", \"medium\", \"two-step\"]}, \"natural_language_templates\": [\"Transfer {amount1} {token_symbol} to {address1} and {amount2} {token_symbol} to {address2}\", \"Send {amount1} {token_symbol} tokens to {address1}, then send {amount2} {token_symbol} tokens to {address2}\", \"Make two {token_symbol} transfers: {amount1} to {address1} and {amount2} to {address2}\"], \"parameters\": {\"address1\": {\"description\": \"First recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient2\", \"type\": \"address\"}, \"amount1\": {\"description\": \"Amount of tokens to send to first address\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount1\", \"type\": \"number\", \"unit\": \"token\"}, \"amount2\": {\"description\": \"Amount of tokens to send to second address\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount2\", \"type\": \"number\", \"unit\": \"token\"}, \"token_address\": {\"description\": \"ERC20 token contract address\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol for display\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"erc20_transfer_fixed\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"batch_transfer\", \"title\": \"Batch Transfer ERC20 Tokens to 2 Addresses\", \"validation\": {\"post_conditions\": [{\"description\": \"Second transfer transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"address\": \"{token_address}\", \"description\": \"Correct token contract called\", \"type\": \"contract_called\", \"weight\": 0.2}, {\"description\": \"Correct function transfer(address,uint256) called\", \"selector\": \"0xa9059cbb\", \"type\": \"function_selector\", \"weight\": 0.1}, {\"address\": \"{address2}\", \"description\": \"Second recipient received correct amount\", \"expected_amount\": \"{amount2}\", \"type\": \"token_received\", \"weight\": 0.2}, {\"description\": \"Agent's token balance decreased correctly\", \"type\": \"token_sent\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient token balance for both transfers\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_batch_transfer_3_bnb", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "batch_operations", "difficulty": "easy", "title": "Batch Transfer BNB to 3 Addresses", "description": "Batch BNB distribution to 3 different addresses.\n\nThis is a 3-step process:\n1. Transfer {amount1} BNB to address1\n2. Transfer {amount2} BNB to address2\n3. Transfer {amount3} BNB to address3\n\nEach transfer is a simple BNB transfer (native token).\nThe key operation is the last transfer (step 3).\n\nIMPORTANT: Execute all 3 transfers in sequence.", "natural_language_templates": ["Transfer {amount1} BNB to {address1}, {amount2} BNB to {address2}, and {amount3} BNB to {address3}", "Send BNB to three addresses: {amount1} to {address1}, {amount2} to {address2}, {amount3} to {address3}", "Distribute BNB: send {amount1} BNB to {address1}, {amount2} BNB to {address2}, and {amount3} BNB to {address3}"], "chain": "", "network": "", "tags": ["batch", "native", "distribution", "bnb", "transfer", "easy"], "parameter_names": ["address1", "address2", "address3", "amount1", "amount2", "amount3"], "parameters": "{\"address1\": {\"description\": \"First recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_2\", \"type\": \"address\"}, \"address3\": {\"description\": \"Third recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_3\", \"type\": \"address\"}, \"amount1\": {\"description\": \"Amount to transfer to address 1\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount_1\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount2\": {\"description\": \"Amount to transfer to address 2\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount_2\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount3\": {\"description\": \"Amount to transfer to address 3\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount_3\", \"type\": \"number\", \"unit\": \"BNB\"}}", "validation": "{\"post_conditions\": [{\"description\": \"All transfers executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"All recipients received correct amounts\", \"type\": \"recipient_balance_increase\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for all transfers\", \"min_balance\": \"1.0 BNB\", \"type\": \"bnb_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to address 1\", \"role\": \"transfer_1\", \"step\": 1}, {\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to address 2\", \"role\": \"transfer_2\", \"step\": 2}, {\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to address 3\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-transfer\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"bnb_transfer_basic\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Simple batch transfer operation\", \"No approvals needed\", \"Sequential execution required\"], \"estimated_gas\": 63000, \"requires_approval\": false, \"tags\": [\"batch\", \"native\", \"distribution\", \"bnb\", \"transfer\", \"easy\"]}", "source_path": "composite_problems/composite_batch_transfer_3_bnb.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to address 1\", \"role\": \"transfer_1\", \"step\": 1}, {\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to address 2\", \"role\": \"transfer_2\", \"step\": 2}, {\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to address 3\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-transfer\"}, \"description\": [\"Batch BNB distribution to 3 different addresses.\", \"\", \"This is a 3-step process:\", \"1. Transfer {amount1} BNB to address1\", \"2. Transfer {amount2} BNB to address2\", \"3. Transfer {amount3} BNB to address3\", \"\", \"Each transfer is a simple BNB transfer (native token).\", \"The key operation is the last transfer (step 3).\", \"\", \"IMPORTANT: Execute all 3 transfers in sequence.\"], \"difficulty\": \"easy\", \"id\": \"composite_batch_transfer_3_bnb\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Simple batch transfer operation\", \"No approvals needed\", \"Sequential execution required\"], \"estimated_gas\": 63000, \"requires_approval\": false, \"tags\": [\"batch\", \"native\", \"distribution\", \"bnb\", \"transfer\", \"easy\"]}, \"natural_language_templates\": [\"Transfer {amount1} BNB to {address1}, {amount2} BNB to {address2}, and {amount3} BNB to {address3}\", \"Send BNB to three addresses: {amount1} to {address1}, {amount2} to {address2}, {amount3} to {address3}\", \"Distribute BNB: send {amount1} BNB to {address1}, {amount2} BNB to {address2}, and {amount3} BNB to {address3}\"], \"parameters\": {\"address1\": {\"description\": \"First recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_2\", \"type\": \"address\"}, \"address3\": {\"description\": \"Third recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_3\", \"type\": \"address\"}, \"amount1\": {\"description\": \"Amount to transfer to address 1\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount_1\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount2\": {\"description\": \"Amount to transfer to address 2\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount_2\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount3\": {\"description\": \"Amount to transfer to address 3\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"transfer_amount_3\", \"type\": \"number\", \"unit\": \"BNB\"}}, \"scoring_strategy\": {\"key_operation_id\": \"bnb_transfer_basic\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"batch_operations\", \"title\": \"Batch Transfer BNB to 3 Addresses\", \"validation\": {\"post_conditions\": [{\"description\": \"All transfers executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"All recipients received correct amounts\", \"type\": \"recipient_balance_increase\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for all transfers\", \"min_balance\": \"1.0 BNB\", \"type\": \"bnb_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_batch_transfer_3_tokens", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "batch_operations", "difficulty": "medium", "title": "Batch Transfer ERC20 Tokens to 3 Addresses", "description": "Batch ERC20 token distribution to 3 different addresses.\n\nThis is a 3-step process:\n1. Transfer {amount1} {token_symbol} to address1\n2. Transfer {amount2} {token_symbol} to address2\n3. Transfer {amount3} {token_symbol} to address3\n\nEach transfer uses the ERC20 transfer(address,uint256) function.\nToken contract: USDT (0x55d398326f99059fF775485246999027B3197955)\nFunction selector: 0xa9059cbb\n\nThe key operation is the last transfer (step 3).\n\nIMPORTANT: Execute all 3 transfers in sequence.", "natural_language_templates": ["Transfer {amount1} {token_symbol} to {address1}, {amount2} to {address2}, and {amount3} to {address3}", "Distribute {token_symbol} tokens: send {amount1} to {address1}, {amount2} to {address2}, {amount3} to {address3}", "Send {token_symbol} to three addresses: {amount1} to {address1}, {amount2} to {address2}, {amount3} to {address3}"], "chain": "", "network": "", "tags": ["batch", "token", "distribution", "erc20", "transfer", "medium"], "parameter_names": ["address1", "address2", "address3", "amount1", "amount2", "amount3", "token_address", "token_decimals", "token_symbol"], "parameters": "{\"address1\": {\"description\": \"First recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_2\", \"type\": \"address\"}, \"address3\": {\"description\": \"Third recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_3\", \"type\": \"address\"}, \"amount1\": {\"description\": \"Amount to transfer to address 1\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount_1\", \"type\": \"number\", \"unit\": \"token\"}, \"amount2\": {\"description\": \"Amount to transfer to address 2\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount_2\", \"type\": \"number\", \"unit\": \"token\"}, \"amount3\": {\"description\": \"Amount to transfer to address 3\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount_3\", \"type\": \"number\", \"unit\": \"token\"}, \"token_address\": {\"description\": \"ERC20 token contract address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"All transfers executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"All recipients received correct token amounts\", \"type\": \"recipient_balance_increase\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient token balance for all transfers\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to address 1\", \"role\": \"transfer_1\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to address 2\", \"role\": \"transfer_2\", \"step\": 2}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to address 3\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-transfer\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"erc20_transfer_fixed\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Batch token transfer operation\", \"No approvals needed (direct transfer)\", \"Sequential execution required\", \"Must track token balance across transfers\"], \"estimated_gas\": 150000, \"requires_approval\": false, \"tags\": [\"batch\", \"token\", \"distribution\", \"erc20\", \"transfer\", \"medium\"]}", "source_path": "composite_problems/composite_batch_transfer_3_tokens.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to address 1\", \"role\": \"transfer_1\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to address 2\", \"role\": \"transfer_2\", \"step\": 2}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to address 3\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"batch-transfer\"}, \"description\": [\"Batch ERC20 token distribution to 3 different addresses.\", \"\", \"This is a 3-step process:\", \"1. Transfer {amount1} {token_symbol} to address1\", \"2. Transfer {amount2} {token_symbol} to address2\", \"3. Transfer {amount3} {token_symbol} to address3\", \"\", \"Each transfer uses the ERC20 transfer(address,uint256) function.\", \"Token contract: USDT (0x55d398326f99059fF775485246999027B3197955)\", \"Function selector: 0xa9059cbb\", \"\", \"The key operation is the last transfer (step 3).\", \"\", \"IMPORTANT: Execute all 3 transfers in sequence.\"], \"difficulty\": \"medium\", \"id\": \"composite_batch_transfer_3_tokens\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Batch token transfer operation\", \"No approvals needed (direct transfer)\", \"Sequential execution required\", \"Must track token balance across transfers\"], \"estimated_gas\": 150000, \"requires_approval\": false, \"tags\": [\"batch\", \"token\", \"distribution\", \"erc20\", \"transfer\", \"medium\"]}, \"natural_language_templates\": [\"Transfer {amount1} {token_symbol} to {address1}, {amount2} to {address2}, and {amount3} to {address3}\", \"Distribute {token_symbol} tokens: send {amount1} to {address1}, {amount2} to {address2}, {amount3} to {address3}\", \"Send {token_symbol} to three addresses: {amount1} to {address1}, {amount2} to {address2}, {amount3} to {address3}\"], \"parameters\": {\"address1\": {\"description\": \"First recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_2\", \"type\": \"address\"}, \"address3\": {\"description\": \"Third recipient address\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_3\", \"type\": \"address\"}, \"amount1\": {\"description\": \"Amount to transfer to address 1\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount_1\", \"type\": \"number\", \"unit\": \"token\"}, \"amount2\": {\"description\": \"Amount to transfer to address 2\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount_2\", \"type\": \"number\", \"unit\": \"token\"}, \"amount3\": {\"description\": \"Amount to transfer to address 3\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount_3\", \"type\": \"number\", \"unit\": \"token\"}, \"token_address\": {\"description\": \"ERC20 token contract address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"erc20_transfer_fixed\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"batch_operations\", \"title\": \"Batch Transfer ERC20 Tokens to 3 Addresses\", \"validation\": {\"post_conditions\": [{\"description\": \"All transfers executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"All recipients received correct token amounts\", \"type\": \"recipient_balance_increase\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient token balance for all transfers\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_complete_swap_stake_workflow", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complex_defi_workflows", "difficulty": "hard", "title": "Complete DeFi Workflow: Swap and Stake", "description": "Complete a full DeFi workflow: swap tokens and stake the result.\n\nThis is a 6-step flagship workflow:\n1. Query your USDT balance to verify you have enough\n2. Approve USDT for PancakeSwap Router\n3. Swap {amount_usdt} USDT for CAKE\n4. Approve CAKE for the staking pool\n5. Stake all received CAKE\n6. Query staked amount to verify\n\nContract addresses:\n- USDT: {usdt_address}\n- CAKE: {cake_address}\n- PancakeSwap Router V2: {router_address}\n- Staking Pool: {pool_address}\n\nThe KEY OPERATION is step 5 (stake_single_token).\n\nFunctions:\n- ERC20 approve(address spender, uint256 amount): 0x095ea7b3\n- Router swapExactTokensForTokens(amountIn, amountOutMin, path, to, deadline): 0x38ed1739\n- Staking deposit(uint256 amount): 0xb6b55f25\n\nPath for swap: [USDT, WBNB, CAKE]\n- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n\nIMPORTANT:\n- Use high slippage (50%) for swap due to price impact\n- Stake ALL received CAKE (query balance after swap)\n- Deadline should be current timestamp + 1200 seconds", "natural_language_templates": ["Check your USDT balance, swap {amount_usdt} USDT for CAKE on PancakeSwap, then stake all received CAKE in the staking pool and verify the staked amount", "Complete DeFi workflow: query USDT balance, swap {amount_usdt} USDT to CAKE, stake all CAKE, and confirm the stake", "Execute full DeFi workflow: verify USDT, swap {amount_usdt} USDT for CAKE, approve staking, stake CAKE, confirm stake"], "chain": "", "network": "", "tags": ["defi", "complete-workflow", "swap", "staking", "flagship", "hard"], "parameter_names": ["amount_usdt", "cake_address", "pool_address", "router_address", "slippage", "token_address", "usdt_address"], "parameters": "{\"amount_usdt\": {\"description\": \"Amount of USDT to swap\", \"generation\": {\"decimals\": 0, \"max\": \"100\", \"method\": \"random\", \"min\": \"50\"}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"ether\"}, \"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"pool_address\": {\"description\": \"CAKE staking pool address\", \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"staking_pool\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap Router V2 address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"router\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"Token to stake (CAKE)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"stake_token\", \"type\": \"address\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"CAKE staked in pool\", \"type\": \"staked_amount\", \"weight\": 0.5}, {\"description\": \"USDT swapped for CAKE\", \"type\": \"swap_completed\", \"weight\": 0.3}, {\"description\": \"Both tokens approved\", \"type\": \"tokens_approved\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have USDT balance\", \"min_balance\": \"100 USDT\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query initial USDT balance\", \"role\": \"verification\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve USDT for Router\", \"role\": \"authorization\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT for CAKE\", \"role\": \"swap\", \"step\": 3}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve CAKE for staking pool\", \"role\": \"authorization\", \"step\": 4}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Stake all received CAKE\", \"role\": \"key_operation\", \"step\": 5}, {\"atomic_id\": \"query_staked_amount\", \"description\": \"Verify staked amount\", \"role\": \"verification\", \"step\": 6}], \"interaction_config\": {\"max_rounds_multiplier\": 2, \"optimal_steps\": 6}, \"optimal_steps\": 6, \"pattern\": \"query-swap-stake-verify\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 5, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"6-step complex workflow\", \"Multiple token interactions\", \"Query-swap-stake pattern\", \"Flagship scenario for LLM evaluation\"], \"estimated_gas\": 600000, \"requires_approval\": true, \"tags\": [\"defi\", \"complete-workflow\", \"swap\", \"staking\", \"flagship\", \"hard\"]}", "source_path": "composite_problems/composite_complete_swap_stake_workflow.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query initial USDT balance\", \"role\": \"verification\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve USDT for Router\", \"role\": \"authorization\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT for CAKE\", \"role\": \"swap\", \"step\": 3}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve CAKE for staking pool\", \"role\": \"authorization\", \"step\": 4}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Stake all received CAKE\", \"role\": \"key_operation\", \"step\": 5}, {\"atomic_id\": \"query_staked_amount\", \"description\": \"Verify staked amount\", \"role\": \"verification\", \"step\": 6}], \"interaction_config\": {\"max_rounds_multiplier\": 2, \"optimal_steps\": 6}, \"optimal_steps\": 6, \"pattern\": \"query-swap-stake-verify\"}, \"description\": [\"Complete a full DeFi workflow: swap tokens and stake the result.\", \"\", \"This is a 6-step flagship workflow:\", \"1. Query your USDT balance to verify you have enough\", \"2. Approve USDT for PancakeSwap Router\", \"3. Swap {amount_usdt} USDT for CAKE\", \"4. Approve CAKE for the staking pool\", \"5. Stake all received CAKE\", \"6. Query staked amount to verify\", \"\", \"Contract addresses:\", \"- USDT: {usdt_address}\", \"- CAKE: {cake_address}\", \"- PancakeSwap Router V2: {router_address}\", \"- Staking Pool: {pool_address}\", \"\", \"The KEY OPERATION is step 5 (stake_single_token).\", \"\", \"Functions:\", \"- ERC20 approve(address spender, uint256 amount): 0x095ea7b3\", \"- Router swapExactTokensForTokens(amountIn, amountOutMin, path, to, deadline): 0x38ed1739\", \"- Staking deposit(uint256 amount): 0xb6b55f25\", \"\", \"Path for swap: [USDT, WBNB, CAKE]\", \"- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"\", \"IMPORTANT:\", \"- Use high slippage (50%) for swap due to price impact\", \"- Stake ALL received CAKE (query balance after swap)\", \"- Deadline should be current timestamp + 1200 seconds\"], \"difficulty\": \"hard\", \"id\": \"composite_complete_swap_stake_workflow\", \"metadata\": {\"difficulty_notes\": [\"6-step complex workflow\", \"Multiple token interactions\", \"Query-swap-stake pattern\", \"Flagship scenario for LLM evaluation\"], \"estimated_gas\": 600000, \"requires_approval\": true, \"tags\": [\"defi\", \"complete-workflow\", \"swap\", \"staking\", \"flagship\", \"hard\"]}, \"natural_language_templates\": [\"Check your USDT balance, swap {amount_usdt} USDT for CAKE on PancakeSwap, then stake all received CAKE in the staking pool and verify the staked amount\", \"Complete DeFi workflow: query USDT balance, swap {amount_usdt} USDT to CAKE, stake all CAKE, and confirm the stake\", \"Execute full DeFi workflow: verify USDT, swap {amount_usdt} USDT for CAKE, approve staking, stake CAKE, confirm stake\"], \"parameters\": {\"amount_usdt\": {\"description\": \"Amount of USDT to swap\", \"generation\": {\"decimals\": 0, \"max\": \"100\", \"method\": \"random\", \"min\": \"50\"}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"ether\"}, \"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"pool_address\": {\"description\": \"CAKE staking pool address\", \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"staking_pool\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap Router V2 address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"router\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"Token to stake (CAKE)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"stake_token\", \"type\": \"address\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 5, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complex_defi_workflows\", \"title\": \"Complete DeFi Workflow: Swap and Stake\", \"validation\": {\"post_conditions\": [{\"description\": \"CAKE staked in pool\", \"type\": \"staked_amount\", \"weight\": 0.5}, {\"description\": \"USDT swapped for CAKE\", \"type\": \"swap_completed\", \"weight\": 0.3}, {\"description\": \"Both tokens approved\", \"type\": \"tokens_approved\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have USDT balance\", \"min_balance\": \"100 USDT\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_emergency_exit_workflow", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "advanced_defi", "difficulty": "hard", "title": "Emergency Exit: Withdraw, Remove Liquidity, Convert to BNB", "description": "Emergency exit workflow to convert DeFi positions back to native BNB.\n\nThis is a 5-step process:\n1. Emergency withdraw all staked LP tokens from SimpleRewardPool\n2. Approve LP tokens to PancakeSwap Router\n3. Remove liquidity to get WBNB and USDT\n4. Unwrap WBNB to native BNB\n5. Query final BNB balance to verify\n\nTechnical details:\n- SimpleRewardPool: deployed dynamically (emergencyWithdraw())\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- WBNB/USDT LP: 0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\n\nFunctions:\n- emergencyWithdraw(): Withdraw all staked tokens without rewards\n- removeLiquidityETH(token, liquidity, ...): Remove liquidity\n- withdraw(uint256): WBNB unwrap\n\nNote: Emergency withdraw forfeits pending rewards but guarantees LP recovery.\nBSC does NOT support ENS. Use hex addresses directly.", "natural_language_templates": ["Emergency exit: withdraw all staked LP tokens, remove liquidity, unwrap WBNB to BNB, and verify balance", "Panic sell: emergency withdraw from pool at {pool_address}, remove all liquidity, convert to BNB", "Exit DeFi position: emergency withdraw LP from {pool_address}, remove WBNB/USDT liquidity, unwrap WBNB, verify BNB"], "chain": "", "network": "", "tags": ["defi", "emergency", "exit", "withdraw", "liquidity", "unwrap", "advanced", "hard"], "parameter_names": ["liquidity_percentage", "lp_token_address", "pool_address", "router_address", "slippage", "token_decimals", "usdt_address", "wbnb_address"], "parameters": "{\"liquidity_percentage\": {\"description\": \"Percentage of LP tokens to remove\", \"generation\": {\"method\": \"fixed\", \"value\": 100.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"percent\"}, \"lp_token_address\": {\"description\": \"WBNB/USDT LP token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\"}, \"role\": \"token\", \"type\": \"address\"}, \"pool_address\": {\"description\": \"SimpleRewardPool contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"WBNB withdraw transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"LP tokens recovered from staking\", \"type\": \"lp_recovered\", \"weight\": 0.2}, {\"description\": \"Liquidity removed successfully\", \"type\": \"liquidity_removed\", \"weight\": 0.2}, {\"description\": \"BNB balance increased after unwrap\", \"type\": \"bnb_balance_increase\", \"weight\": 0.3}, {\"description\": \"Final BNB balance was verified\", \"type\": \"balance_verified\", \"weight\": 0.1}], \"pre_conditions\": [{\"description\": \"Agent must have staked LP tokens in SimpleRewardPool\", \"min_balance\": \"0.5 LP\", \"type\": \"staked_lp_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"emergency_withdraw\", \"description\": \"Emergency withdraw staked LP tokens\", \"role\": \"recovery\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve LP tokens to Router\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"remove_liquidity_bnb_token\", \"description\": \"Remove liquidity to get WBNB and USDT\", \"role\": \"liquidity\", \"step\": 3}, {\"atomic_id\": \"wbnb_withdraw\", \"description\": \"Unwrap WBNB to native BNB\", \"role\": \"key_operation\", \"step\": 4}, {\"atomic_id\": \"query_bnb_balance\", \"description\": \"Verify final BNB balance\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"emergency-exit\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"wbnb_withdraw\", \"key_operation_step\": 4, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Five-step emergency exit workflow\", \"Emergency withdraw forfeits rewards\", \"Must handle LP token approval\", \"Convert all positions to native BNB\"], \"estimated_gas\": 800000, \"requires_approval\": true, \"tags\": [\"defi\", \"emergency\", \"exit\", \"withdraw\", \"liquidity\", \"unwrap\", \"advanced\", \"hard\"]}", "source_path": "composite_problems/composite_emergency_exit_workflow.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"emergency_withdraw\", \"description\": \"Emergency withdraw staked LP tokens\", \"role\": \"recovery\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve LP tokens to Router\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"remove_liquidity_bnb_token\", \"description\": \"Remove liquidity to get WBNB and USDT\", \"role\": \"liquidity\", \"step\": 3}, {\"atomic_id\": \"wbnb_withdraw\", \"description\": \"Unwrap WBNB to native BNB\", \"role\": \"key_operation\", \"step\": 4}, {\"atomic_id\": \"query_bnb_balance\", \"description\": \"Verify final BNB balance\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"emergency-exit\"}, \"description\": [\"Emergency exit workflow to convert DeFi positions back to native BNB.\", \"\", \"This is a 5-step process:\", \"1. Emergency withdraw all staked LP tokens from SimpleRewardPool\", \"2. Approve LP tokens to PancakeSwap Router\", \"3. Remove liquidity to get WBNB and USDT\", \"4. Unwrap WBNB to native BNB\", \"5. Query final BNB balance to verify\", \"\", \"Technical details:\", \"- SimpleRewardPool: deployed dynamically (emergencyWithdraw())\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- WBNB/USDT LP: 0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\", \"\", \"Functions:\", \"- emergencyWithdraw(): Withdraw all staked tokens without rewards\", \"- removeLiquidityETH(token, liquidity, ...): Remove liquidity\", \"- withdraw(uint256): WBNB unwrap\", \"\", \"Note: Emergency withdraw forfeits pending rewards but guarantees LP recovery.\", \"BSC does NOT support ENS. Use hex addresses directly.\"], \"difficulty\": \"hard\", \"id\": \"composite_emergency_exit_workflow\", \"metadata\": {\"difficulty_notes\": [\"Five-step emergency exit workflow\", \"Emergency withdraw forfeits rewards\", \"Must handle LP token approval\", \"Convert all positions to native BNB\"], \"estimated_gas\": 800000, \"requires_approval\": true, \"tags\": [\"defi\", \"emergency\", \"exit\", \"withdraw\", \"liquidity\", \"unwrap\", \"advanced\", \"hard\"]}, \"natural_language_templates\": [\"Emergency exit: withdraw all staked LP tokens, remove liquidity, unwrap WBNB to BNB, and verify balance\", \"Panic sell: emergency withdraw from pool at {pool_address}, remove all liquidity, convert to BNB\", \"Exit DeFi position: emergency withdraw LP from {pool_address}, remove WBNB/USDT liquidity, unwrap WBNB, verify BNB\"], \"parameters\": {\"liquidity_percentage\": {\"description\": \"Percentage of LP tokens to remove\", \"generation\": {\"method\": \"fixed\", \"value\": 100.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"percent\"}, \"lp_token_address\": {\"description\": \"WBNB/USDT LP token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\"}, \"role\": \"token\", \"type\": \"address\"}, \"pool_address\": {\"description\": \"SimpleRewardPool contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"wbnb_withdraw\", \"key_operation_step\": 4, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"advanced_defi\", \"title\": \"Emergency Exit: Withdraw, Remove Liquidity, Convert to BNB\", \"validation\": {\"post_conditions\": [{\"description\": \"WBNB withdraw transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"LP tokens recovered from staking\", \"type\": \"lp_recovered\", \"weight\": 0.2}, {\"description\": \"Liquidity removed successfully\", \"type\": \"liquidity_removed\", \"weight\": 0.2}, {\"description\": \"BNB balance increased after unwrap\", \"type\": \"bnb_balance_increase\", \"weight\": 0.3}, {\"description\": \"Final BNB balance was verified\", \"type\": \"balance_verified\", \"weight\": 0.1}], \"pre_conditions\": [{\"description\": \"Agent must have staked LP tokens in SimpleRewardPool\", \"min_balance\": \"0.5 LP\", \"type\": \"staked_lp_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_full_liquidity_cycle", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complex_defi", "difficulty": "hard", "title": "Full Liquidity Cycle: Add, Stake, Harvest, Unstake, Remove", "description": "Complete liquidity provider lifecycle from start to finish.\n\nThis is a 5-step process:\n1. Add liquidity with BNB and USDT to get WBNB/USDT LP tokens\n2. Stake LP tokens in SimpleRewardPool\n3. Harvest pending CAKE rewards\n4. Unstake LP tokens from the pool\n5. Remove liquidity to get back BNB and USDT\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- WBNB/USDT LP: 0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\n- SimpleRewardPool: deployed dynamically\n- Reward Token: CAKE (0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82)\n\nFunctions:\n- addLiquidityETH: Add BNB + token liquidity\n- stake(uint256): Stake LP tokens\n- harvest(): Claim pending rewards\n- withdraw(uint256): Unstake LP tokens\n- removeLiquidityETH: Remove liquidity to BNB + token\n\nNote: This uses WBNB/USDT LP which is compatible with SimpleRewardPool for testing.", "natural_language_templates": ["Add liquidity with {amount_bnb} BNB and {amount_token} {token_symbol}, stake LP, harvest rewards, then unstake and remove liquidity", "Complete liquidity cycle: provide liquidity, stake, harvest, unstake, and withdraw", "Full DeFi workflow: add {amount_bnb} BNB + {amount_token} {token_symbol} liquidity, stake LP at {reward_pool_address}, harvest CAKE rewards, unstake LP, remove liquidity"], "chain": "", "network": "", "tags": ["defi", "liquidity", "staking", "farming", "harvest", "complete-cycle", "hard"], "parameter_names": ["amount_bnb", "amount_token", "liquidity_percentage", "lp_token_address", "reward_pool_address", "reward_token_address", "router_address", "slippage", "token_address", "token_decimals", "token_symbol", "wbnb_address"], "parameters": "{\"amount_bnb\": {\"description\": \"Amount of BNB to add as liquidity\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount_token\": {\"description\": \"Amount of USDT to add as liquidity\", \"generation\": {\"decimals\": 1, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"USDT\"}, \"liquidity_percentage\": {\"description\": \"Percentage of LP tokens to remove\", \"generation\": {\"method\": \"fixed\", \"value\": 100.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"percent\"}, \"lp_token_address\": {\"description\": \"WBNB/USDT LP token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\"}, \"role\": \"token\", \"type\": \"address\"}, \"reward_pool_address\": {\"description\": \"SimpleRewardPool contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"reward_token_address\": {\"description\": \"CAKE reward token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Remove liquidity transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"BNB balance increased after removing liquidity\", \"type\": \"bnb_balance_increase\", \"weight\": 0.3}, {\"description\": \"USDT balance increased after removing liquidity\", \"type\": \"token_balance_increase\", \"weight\": 0.3}, {\"description\": \"CAKE rewards were harvested\", \"type\": \"rewards_received\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB\", \"min_balance\": \"1.0 BNB\", \"type\": \"bnb_balance\"}, {\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 USDT\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"add_liquidity_bnb_token\", \"description\": \"Add BNB + USDT liquidity to get LP tokens\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"stake_lp_tokens\", \"description\": \"Stake LP tokens in reward pool\", \"role\": \"staking\", \"step\": 2}, {\"atomic_id\": \"harvest_rewards\", \"description\": \"Harvest pending CAKE rewards\", \"role\": \"reward\", \"step\": 3}, {\"atomic_id\": \"unstake_lp_tokens\", \"description\": \"Unstake LP tokens from pool\", \"role\": \"unstaking\", \"step\": 4}, {\"atomic_id\": \"remove_liquidity_bnb_token\", \"description\": \"Remove liquidity to get back BNB and USDT\", \"role\": \"key_operation\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"full-liquidity-cycle\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"remove_liquidity_bnb_token\", \"key_operation_step\": 5, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Five-step complete DeFi lifecycle\", \"Requires handling multiple contract interactions\", \"Must manage LP tokens through full cycle\", \"Complex workflow with staking and rewards\"], \"estimated_gas\": 1000000, \"requires_approval\": true, \"tags\": [\"defi\", \"liquidity\", \"staking\", \"farming\", \"harvest\", \"complete-cycle\", \"hard\"]}", "source_path": "composite_problems/composite_full_liquidity_cycle.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"add_liquidity_bnb_token\", \"description\": \"Add BNB + USDT liquidity to get LP tokens\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"stake_lp_tokens\", \"description\": \"Stake LP tokens in reward pool\", \"role\": \"staking\", \"step\": 2}, {\"atomic_id\": \"harvest_rewards\", \"description\": \"Harvest pending CAKE rewards\", \"role\": \"reward\", \"step\": 3}, {\"atomic_id\": \"unstake_lp_tokens\", \"description\": \"Unstake LP tokens from pool\", \"role\": \"unstaking\", \"step\": 4}, {\"atomic_id\": \"remove_liquidity_bnb_token\", \"description\": \"Remove liquidity to get back BNB and USDT\", \"role\": \"key_operation\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"full-liquidity-cycle\"}, \"description\": [\"Complete liquidity provider lifecycle from start to finish.\", \"\", \"This is a 5-step process:\", \"1. Add liquidity with BNB and USDT to get WBNB/USDT LP tokens\", \"2. Stake LP tokens in SimpleRewardPool\", \"3. Harvest pending CAKE rewards\", \"4. Unstake LP tokens from the pool\", \"5. Remove liquidity to get back BNB and USDT\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- WBNB/USDT LP: 0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\", \"- SimpleRewardPool: deployed dynamically\", \"- Reward Token: CAKE (0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82)\", \"\", \"Functions:\", \"- addLiquidityETH: Add BNB + token liquidity\", \"- stake(uint256): Stake LP tokens\", \"- harvest(): Claim pending rewards\", \"- withdraw(uint256): Unstake LP tokens\", \"- removeLiquidityETH: Remove liquidity to BNB + token\", \"\", \"Note: This uses WBNB/USDT LP which is compatible with SimpleRewardPool for testing.\"], \"difficulty\": \"hard\", \"id\": \"composite_full_liquidity_cycle\", \"metadata\": {\"difficulty_notes\": [\"Five-step complete DeFi lifecycle\", \"Requires handling multiple contract interactions\", \"Must manage LP tokens through full cycle\", \"Complex workflow with staking and rewards\"], \"estimated_gas\": 1000000, \"requires_approval\": true, \"tags\": [\"defi\", \"liquidity\", \"staking\", \"farming\", \"harvest\", \"complete-cycle\", \"hard\"]}, \"natural_language_templates\": [\"Add liquidity with {amount_bnb} BNB and {amount_token} {token_symbol}, stake LP, harvest rewards, then unstake and remove liquidity\", \"Complete liquidity cycle: provide liquidity, stake, harvest, unstake, and withdraw\", \"Full DeFi workflow: add {amount_bnb} BNB + {amount_token} {token_symbol} liquidity, stake LP at {reward_pool_address}, harvest CAKE rewards, unstake LP, remove liquidity\"], \"parameters\": {\"amount_bnb\": {\"description\": \"Amount of BNB to add as liquidity\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"amount_token\": {\"description\": \"Amount of USDT to add as liquidity\", \"generation\": {\"decimals\": 1, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"USDT\"}, \"liquidity_percentage\": {\"description\": \"Percentage of LP tokens to remove\", \"generation\": {\"method\": \"fixed\", \"value\": 100.0}, \"role\": \"liquidity_amount\", \"type\": \"number\", \"unit\": \"percent\"}, \"lp_token_address\": {\"description\": \"WBNB/USDT LP token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\"}, \"role\": \"token\", \"type\": \"address\"}, \"reward_pool_address\": {\"description\": \"SimpleRewardPool contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"reward_token_address\": {\"description\": \"CAKE reward token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"remove_liquidity_bnb_token\", \"key_operation_step\": 5, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complex_defi\", \"title\": \"Full Liquidity Cycle: Add, Stake, Harvest, Unstake, Remove\", \"validation\": {\"post_conditions\": [{\"description\": \"Remove liquidity transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"BNB balance increased after removing liquidity\", \"type\": \"bnb_balance_increase\", \"weight\": 0.3}, {\"description\": \"USDT balance increased after removing liquidity\", \"type\": \"token_balance_increase\", \"weight\": 0.3}, {\"description\": \"CAKE rewards were harvested\", \"type\": \"rewards_received\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB\", \"min_balance\": \"1.0 BNB\", \"type\": \"bnb_balance\"}, {\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 USDT\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_harvest_reinvest_workflow", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complex_defi", "difficulty": "hard", "title": "Harvest Rewards, Sell Partial, and Re-stake", "description": "Complex DeFi workflow: harvest rewards, take profit, and compound remaining.\n\nThis is a 5-step process:\n1. Harvest pending CAKE rewards from SimpleRewardPool using harvest()\n2. Approve CAKE tokens to PancakeSwap Router for swapping\n3. Swap {swap_amount} CAKE for USDT using swapExactTokensForTokens\n4. Approve remaining CAKE tokens to SimpleStaking contract\n5. Re-stake remaining CAKE tokens using deposit(uint256)\n\nTechnical details:\n- SimpleRewardPool contract: deployed dynamically (harvest())\n- SimpleStaking contract: deployed dynamically (deposit(uint256))\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- CAKE Token: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\n- USDT Token: 0x55d398326f99059fF775485246999027B3197955\n- WBNB (for path): 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n\nIMPORTANT:\n- harvest() returns CAKE rewards to the agent\n- The swap path is: CAKE -> WBNB -> USDT\n- After swap, approve remaining CAKE to staking contract, NOT router\n- SimpleStaking uses deposit(uint256) function\n\nBSC does NOT support ENS. Use hex addresses directly.", "natural_language_templates": ["Harvest rewards from the pool, swap {swap_amount} CAKE for USDT, then re-stake the remaining CAKE", "Collect farming rewards, sell {swap_amount} CAKE for USDT on PancakeSwap, and re-stake the rest", "Claim CAKE rewards from {reward_pool_address}, swap {swap_amount} CAKE to USDT, then stake remaining CAKE at {staking_contract}"], "chain": "", "network": "", "tags": ["defi", "harvest", "reinvest", "compound", "swap", "staking", "complex", "hard"], "parameter_names": ["cake_address", "cake_symbol", "reward_pool_address", "router_address", "slippage", "staking_contract", "swap_amount", "token_decimals", "usdt_address", "usdt_symbol", "wbnb_address"], "parameters": "{\"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"cake_symbol\": {\"description\": \"CAKE token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"reward_pool_address\": {\"description\": \"SimpleRewardPool contract address (for harvesting)\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"staking_contract\": {\"description\": \"SimpleStaking contract address (for re-staking)\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"swap_amount\": {\"description\": \"Amount of CAKE to swap for USDT (take profit)\", \"generation\": {\"decimals\": 1, \"max\": 5.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"CAKE\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"usdt_symbol\": {\"description\": \"USDT token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Re-stake transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"USDT balance increased (profit taken)\", \"type\": \"usdt_balance_increase\", \"weight\": 0.3}, {\"description\": \"Staking balance increased (re-staked)\", \"type\": \"staking_balance_increase\", \"weight\": 0.3}, {\"description\": \"CAKE wallet balance reduced (swapped + staked)\", \"type\": \"cake_balance_stable\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have staked LP tokens in SimpleRewardPool\", \"min_balance\": \"0.5 LP\", \"type\": \"staked_lp_balance\"}, {\"description\": \"Pending CAKE rewards must be available\", \"min_balance\": \"1.0 CAKE\", \"type\": \"pending_rewards\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"harvest_rewards\", \"description\": \"Harvest pending CAKE rewards from SimpleRewardPool\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve CAKE to PancakeSwap Router for swap\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap portion of CAKE for USDT\", \"role\": \"profit_taking\", \"step\": 3}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve remaining CAKE to staking contract\", \"role\": \"approval\", \"step\": 4}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Re-stake remaining CAKE tokens\", \"role\": \"key_operation\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"harvest-swap-restake\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 5, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Five-step complex DeFi workflow\", \"Requires harvesting rewards first\", \"Must approve to different contracts (Router vs Staking)\", \"Partial profit taking with re-investment\"], \"estimated_gas\": 600000, \"requires_approval\": true, \"tags\": [\"defi\", \"harvest\", \"reinvest\", \"compound\", \"swap\", \"staking\", \"complex\", \"hard\"]}", "source_path": "composite_problems/composite_harvest_reinvest_workflow.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"harvest_rewards\", \"description\": \"Harvest pending CAKE rewards from SimpleRewardPool\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve CAKE to PancakeSwap Router for swap\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap portion of CAKE for USDT\", \"role\": \"profit_taking\", \"step\": 3}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve remaining CAKE to staking contract\", \"role\": \"approval\", \"step\": 4}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Re-stake remaining CAKE tokens\", \"role\": \"key_operation\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"harvest-swap-restake\"}, \"description\": [\"Complex DeFi workflow: harvest rewards, take profit, and compound remaining.\", \"\", \"This is a 5-step process:\", \"1. Harvest pending CAKE rewards from SimpleRewardPool using harvest()\", \"2. Approve CAKE tokens to PancakeSwap Router for swapping\", \"3. Swap {swap_amount} CAKE for USDT using swapExactTokensForTokens\", \"4. Approve remaining CAKE tokens to SimpleStaking contract\", \"5. Re-stake remaining CAKE tokens using deposit(uint256)\", \"\", \"Technical details:\", \"- SimpleRewardPool contract: deployed dynamically (harvest())\", \"- SimpleStaking contract: deployed dynamically (deposit(uint256))\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- CAKE Token: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\", \"- USDT Token: 0x55d398326f99059fF775485246999027B3197955\", \"- WBNB (for path): 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"\", \"IMPORTANT:\", \"- harvest() returns CAKE rewards to the agent\", \"- The swap path is: CAKE -> WBNB -> USDT\", \"- After swap, approve remaining CAKE to staking contract, NOT router\", \"- SimpleStaking uses deposit(uint256) function\", \"\", \"BSC does NOT support ENS. Use hex addresses directly.\"], \"difficulty\": \"hard\", \"id\": \"composite_harvest_reinvest_workflow\", \"metadata\": {\"difficulty_notes\": [\"Five-step complex DeFi workflow\", \"Requires harvesting rewards first\", \"Must approve to different contracts (Router vs Staking)\", \"Partial profit taking with re-investment\"], \"estimated_gas\": 600000, \"requires_approval\": true, \"tags\": [\"defi\", \"harvest\", \"reinvest\", \"compound\", \"swap\", \"staking\", \"complex\", \"hard\"]}, \"natural_language_templates\": [\"Harvest rewards from the pool, swap {swap_amount} CAKE for USDT, then re-stake the remaining CAKE\", \"Collect farming rewards, sell {swap_amount} CAKE for USDT on PancakeSwap, and re-stake the rest\", \"Claim CAKE rewards from {reward_pool_address}, swap {swap_amount} CAKE to USDT, then stake remaining CAKE at {staking_contract}\"], \"parameters\": {\"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"cake_symbol\": {\"description\": \"CAKE token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"reward_pool_address\": {\"description\": \"SimpleRewardPool contract address (for harvesting)\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"staking_contract\": {\"description\": \"SimpleStaking contract address (for re-staking)\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"swap_amount\": {\"description\": \"Amount of CAKE to swap for USDT (take profit)\", \"generation\": {\"decimals\": 1, \"max\": 5.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"CAKE\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"usdt_symbol\": {\"description\": \"USDT token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 5, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complex_defi\", \"title\": \"Harvest Rewards, Sell Partial, and Re-stake\", \"validation\": {\"post_conditions\": [{\"description\": \"Re-stake transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"USDT balance increased (profit taken)\", \"type\": \"usdt_balance_increase\", \"weight\": 0.3}, {\"description\": \"Staking balance increased (re-staked)\", \"type\": \"staking_balance_increase\", \"weight\": 0.3}, {\"description\": \"CAKE wallet balance reduced (swapped + staked)\", \"type\": \"cake_balance_stable\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have staked LP tokens in SimpleRewardPool\", \"min_balance\": \"0.5 LP\", \"type\": \"staked_lp_balance\"}, {\"description\": \"Pending CAKE rewards must be available\", \"min_balance\": \"1.0 CAKE\", \"type\": \"pending_rewards\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_liquidity_provision_with_stake", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complex_defi_workflows", "difficulty": "hard", "title": "Liquidity Provision with LP Staking", "description": "Complete liquidity provision workflow: add liquidity and stake LP tokens.\n\nThis is a 6-step workflow:\n1. Approve {token_a_symbol} for PancakeSwap Router\n2. Approve {token_b_symbol} for PancakeSwap Router\n3. Add liquidity with {amount_token_a} {token_a_symbol} + {amount_token_b} {token_b_symbol}\n4. Approve received LP tokens for staking pool\n5. Stake all LP tokens\n6. Query staked amount to verify\n\nContract addresses:\n- Token A ({token_a_symbol}): {token_a_address}\n- Token B ({token_b_symbol}): {token_b_address}\n- PancakeSwap Router V2: {router_address}\n- LP Staking Pool: {pool_address}\n\nThe KEY OPERATION is step 5 (stake_lp_tokens).\n\nFunctions:\n- ERC20 approve(address spender, uint256 amount): 0x095ea7b3\n- Router addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline): 0xe8e33700\n- Staking deposit(uint256 amount): 0xb6b55f25\n\nLP Token: Query from PancakeSwap Factory using getPair(tokenA, tokenB)\nFactory: 0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73\n\nIMPORTANT:\n- Use high slippage (50%) for liquidity provision\n- Stake ALL received LP tokens\n- The LP token address can be obtained from Factory.getPair()", "natural_language_templates": ["Approve {token_a_symbol} and {token_b_symbol}, add liquidity to get LP tokens, then stake the LP tokens and verify", "Provide liquidity to {token_a_symbol}/{token_b_symbol} pool with {amount_token_a} and {amount_token_b}, then stake all LP tokens", "Add {amount_token_a} {token_a_symbol} + {amount_token_b} {token_b_symbol} as liquidity, approve and stake all received LP tokens"], "chain": "", "network": "", "tags": ["defi", "liquidity", "staking", "complete-workflow", "hard"], "parameter_names": ["amount_token_a", "amount_token_b", "lp_token_address", "pool_address", "router_address", "slippage", "token_a_address", "token_a_decimals", "token_a_symbol", "token_b_address", "token_b_decimals", "token_b_symbol"], "parameters": "{\"amount_token_a\": {\"description\": \"Amount of Token A to add\", \"generation\": {\"decimals\": 0, \"max\": \"100\", \"method\": \"random\", \"min\": \"50\"}, \"role\": \"liquidity_amount_a\", \"type\": \"number\", \"unit\": \"ether\"}, \"amount_token_b\": {\"description\": \"Amount of Token B to add\", \"generation\": {\"decimals\": 0, \"max\": \"100\", \"method\": \"random\", \"min\": \"50\"}, \"role\": \"liquidity_amount_b\", \"type\": \"number\", \"unit\": \"ether\"}, \"lp_token_address\": {\"description\": \"USDT/BUSD LP token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"lp_token\", \"type\": \"address\"}, \"pool_address\": {\"description\": \"LP staking pool address\", \"generation\": {\"env_key\": \"simple_lp_staking_address\", \"method\": \"from_env\"}, \"role\": \"staking_pool\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap Router V2 address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"router\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"Token A address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"type\": \"address\"}, \"token_a_decimals\": {\"description\": \"Token A decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_a_symbol\": {\"description\": \"Token A symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Token B address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"type\": \"address\"}, \"token_b_decimals\": {\"description\": \"Token B decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_b_symbol\": {\"description\": \"Token B symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"LP tokens staked in pool\", \"type\": \"lp_staked\", \"weight\": 0.5}, {\"description\": \"Liquidity added to pool\", \"type\": \"liquidity_added\", \"weight\": 0.3}, {\"description\": \"All tokens properly approved\", \"type\": \"tokens_approved\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have Token A balance\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}, {\"description\": \"Agent must have Token B balance\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve Token A for Router\", \"role\": \"authorization\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve Token B for Router\", \"role\": \"authorization\", \"step\": 2}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add liquidity to get LP tokens\", \"role\": \"liquidity_provision\", \"step\": 3}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve LP tokens for staking pool\", \"role\": \"authorization\", \"step\": 4}, {\"atomic_id\": \"stake_lp_tokens\", \"description\": \"Stake all LP tokens\", \"role\": \"key_operation\", \"step\": 5}, {\"atomic_id\": \"query_staked_amount\", \"description\": \"Verify staked LP amount\", \"role\": \"verification\", \"step\": 6}], \"interaction_config\": {\"max_rounds_multiplier\": 2, \"optimal_steps\": 6}, \"optimal_steps\": 6, \"pattern\": \"approve-liquidity-stake-verify\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"stake_lp_tokens\", \"key_operation_step\": 5, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"6-step complex workflow\", \"Multiple token approvals\", \"LP token management\", \"Staking integration\"], \"estimated_gas\": 800000, \"requires_approval\": true, \"tags\": [\"defi\", \"liquidity\", \"staking\", \"complete-workflow\", \"hard\"]}", "source_path": "composite_problems/composite_liquidity_provision_with_stake.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve Token A for Router\", \"role\": \"authorization\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve Token B for Router\", \"role\": \"authorization\", \"step\": 2}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add liquidity to get LP tokens\", \"role\": \"liquidity_provision\", \"step\": 3}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve LP tokens for staking pool\", \"role\": \"authorization\", \"step\": 4}, {\"atomic_id\": \"stake_lp_tokens\", \"description\": \"Stake all LP tokens\", \"role\": \"key_operation\", \"step\": 5}, {\"atomic_id\": \"query_staked_amount\", \"description\": \"Verify staked LP amount\", \"role\": \"verification\", \"step\": 6}], \"interaction_config\": {\"max_rounds_multiplier\": 2, \"optimal_steps\": 6}, \"optimal_steps\": 6, \"pattern\": \"approve-liquidity-stake-verify\"}, \"description\": [\"Complete liquidity provision workflow: add liquidity and stake LP tokens.\", \"\", \"This is a 6-step workflow:\", \"1. Approve {token_a_symbol} for PancakeSwap Router\", \"2. Approve {token_b_symbol} for PancakeSwap Router\", \"3. Add liquidity with {amount_token_a} {token_a_symbol} + {amount_token_b} {token_b_symbol}\", \"4. Approve received LP tokens for staking pool\", \"5. Stake all LP tokens\", \"6. Query staked amount to verify\", \"\", \"Contract addresses:\", \"- Token A ({token_a_symbol}): {token_a_address}\", \"- Token B ({token_b_symbol}): {token_b_address}\", \"- PancakeSwap Router V2: {router_address}\", \"- LP Staking Pool: {pool_address}\", \"\", \"The KEY OPERATION is step 5 (stake_lp_tokens).\", \"\", \"Functions:\", \"- ERC20 approve(address spender, uint256 amount): 0x095ea7b3\", \"- Router addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline): 0xe8e33700\", \"- Staking deposit(uint256 amount): 0xb6b55f25\", \"\", \"LP Token: Query from PancakeSwap Factory using getPair(tokenA, tokenB)\", \"Factory: 0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73\", \"\", \"IMPORTANT:\", \"- Use high slippage (50%) for liquidity provision\", \"- Stake ALL received LP tokens\", \"- The LP token address can be obtained from Factory.getPair()\"], \"difficulty\": \"hard\", \"id\": \"composite_liquidity_provision_with_stake\", \"metadata\": {\"difficulty_notes\": [\"6-step complex workflow\", \"Multiple token approvals\", \"LP token management\", \"Staking integration\"], \"estimated_gas\": 800000, \"requires_approval\": true, \"tags\": [\"defi\", \"liquidity\", \"staking\", \"complete-workflow\", \"hard\"]}, \"natural_language_templates\": [\"Approve {token_a_symbol} and {token_b_symbol}, add liquidity to get LP tokens, then stake the LP tokens and verify\", \"Provide liquidity to {token_a_symbol}/{token_b_symbol} pool with {amount_token_a} and {amount_token_b}, then stake all LP tokens\", \"Add {amount_token_a} {token_a_symbol} + {amount_token_b} {token_b_symbol} as liquidity, approve and stake all received LP tokens\"], \"parameters\": {\"amount_token_a\": {\"description\": \"Amount of Token A to add\", \"generation\": {\"decimals\": 0, \"max\": \"100\", \"method\": \"random\", \"min\": \"50\"}, \"role\": \"liquidity_amount_a\", \"type\": \"number\", \"unit\": \"ether\"}, \"amount_token_b\": {\"description\": \"Amount of Token B to add\", \"generation\": {\"decimals\": 0, \"max\": \"100\", \"method\": \"random\", \"min\": \"50\"}, \"role\": \"liquidity_amount_b\", \"type\": \"number\", \"unit\": \"ether\"}, \"lp_token_address\": {\"description\": \"USDT/BUSD LP token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"lp_token\", \"type\": \"address\"}, \"pool_address\": {\"description\": \"LP staking pool address\", \"generation\": {\"env_key\": \"simple_lp_staking_address\", \"method\": \"from_env\"}, \"role\": \"staking_pool\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap Router V2 address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"router\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"Token A address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_a\", \"type\": \"address\"}, \"token_a_decimals\": {\"description\": \"Token A decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_a_symbol\": {\"description\": \"Token A symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_b_address\": {\"description\": \"Token B address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_b\", \"type\": \"address\"}, \"token_b_decimals\": {\"description\": \"Token B decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_b_symbol\": {\"description\": \"Token B symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"stake_lp_tokens\", \"key_operation_step\": 5, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complex_defi_workflows\", \"title\": \"Liquidity Provision with LP Staking\", \"validation\": {\"post_conditions\": [{\"description\": \"LP tokens staked in pool\", \"type\": \"lp_staked\", \"weight\": 0.5}, {\"description\": \"Liquidity added to pool\", \"type\": \"liquidity_added\", \"weight\": 0.3}, {\"description\": \"All tokens properly approved\", \"type\": \"tokens_approved\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have Token A balance\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}, {\"description\": \"Agent must have Token B balance\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_multi_approve_multi_swap", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complex_defi", "difficulty": "hard", "title": "Multi-Approve Multi-Swap: USDT → CAKE → BUSD", "description": "Complex multi-swap workflow with multiple approvals.\n\nThis is a 5-step process:\n1. Approve USDT to PancakeSwap Router\n2. Swap USDT for CAKE using swapExactTokensForTokens\n3. Approve CAKE to PancakeSwap Router\n4. Swap all received CAKE for BUSD\n5. Query final BUSD balance to verify\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- CAKE: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\n- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\n- WBNB (for path): 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n\nSwap paths:\n- USDT → WBNB → CAKE\n- CAKE → WBNB → BUSD\n\nBSC does NOT support ENS. Use hex addresses directly.", "natural_language_templates": ["Swap {amount} USDT for CAKE, then swap all CAKE for BUSD on PancakeSwap, and verify the final BUSD balance", "Multi-hop swap: USDT → CAKE → BUSD through PancakeSwap", "Approve {amount} USDT, swap to CAKE, approve CAKE, swap to BUSD, then query BUSD balance"], "chain": "", "network": "", "tags": ["defi", "multi-swap", "multi-approve", "pancakeswap", "complex", "hard"], "parameter_names": ["amount", "busd_address", "busd_symbol", "cake_address", "cake_symbol", "router_address", "slippage", "token_decimals", "token_in_address", "token_out_address", "usdt_address", "usdt_symbol", "wbnb_address"], "parameters": "{\"amount\": {\"description\": \"Amount of USDT to swap\", \"generation\": {\"decimals\": 1, \"max\": 50.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"USDT\"}, \"busd_address\": {\"description\": \"BUSD token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"busd_symbol\": {\"description\": \"BUSD token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}, \"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"cake_symbol\": {\"description\": \"CAKE token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_address\": {\"description\": \"Input token address for key swap (CAKE)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_out_address\": {\"description\": \"Output token address for key swap (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"usdt_symbol\": {\"description\": \"USDT token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Final swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"USDT balance decreased\", \"type\": \"usdt_balance_decrease\", \"weight\": 0.2}, {\"description\": \"BUSD balance increased\", \"type\": \"busd_balance_increase\", \"weight\": 0.4}, {\"description\": \"Final BUSD balance queried successfully\", \"type\": \"balance_verified\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 USDT\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve USDT to PancakeSwap Router\", \"role\": \"approval\", \"step\": 1}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT for CAKE\", \"role\": \"swap\", \"step\": 2}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve CAKE to PancakeSwap Router\", \"role\": \"approval\", \"step\": 3}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap CAKE for BUSD\", \"role\": \"key_operation\", \"step\": 4}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final BUSD balance\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"multi-approve-multi-swap\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 4, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Five-step multi-swap workflow\", \"Requires two separate approvals\", \"Must handle dynamic amounts between swaps\", \"Final verification step\"], \"estimated_gas\": 800000, \"requires_approval\": true, \"tags\": [\"defi\", \"multi-swap\", \"multi-approve\", \"pancakeswap\", \"complex\", \"hard\"]}", "source_path": "composite_problems/composite_multi_approve_multi_swap.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_approve\", \"description\": \"Approve USDT to PancakeSwap Router\", \"role\": \"approval\", \"step\": 1}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT for CAKE\", \"role\": \"swap\", \"step\": 2}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve CAKE to PancakeSwap Router\", \"role\": \"approval\", \"step\": 3}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap CAKE for BUSD\", \"role\": \"key_operation\", \"step\": 4}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final BUSD balance\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"multi-approve-multi-swap\"}, \"description\": [\"Complex multi-swap workflow with multiple approvals.\", \"\", \"This is a 5-step process:\", \"1. Approve USDT to PancakeSwap Router\", \"2. Swap USDT for CAKE using swapExactTokensForTokens\", \"3. Approve CAKE to PancakeSwap Router\", \"4. Swap all received CAKE for BUSD\", \"5. Query final BUSD balance to verify\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- CAKE: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\", \"- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\", \"- WBNB (for path): 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"\", \"Swap paths:\", \"- USDT → WBNB → CAKE\", \"- CAKE → WBNB → BUSD\", \"\", \"BSC does NOT support ENS. Use hex addresses directly.\"], \"difficulty\": \"hard\", \"id\": \"composite_multi_approve_multi_swap\", \"metadata\": {\"difficulty_notes\": [\"Five-step multi-swap workflow\", \"Requires two separate approvals\", \"Must handle dynamic amounts between swaps\", \"Final verification step\"], \"estimated_gas\": 800000, \"requires_approval\": true, \"tags\": [\"defi\", \"multi-swap\", \"multi-approve\", \"pancakeswap\", \"complex\", \"hard\"]}, \"natural_language_templates\": [\"Swap {amount} USDT for CAKE, then swap all CAKE for BUSD on PancakeSwap, and verify the final BUSD balance\", \"Multi-hop swap: USDT → CAKE → BUSD through PancakeSwap\", \"Approve {amount} USDT, swap to CAKE, approve CAKE, swap to BUSD, then query BUSD balance\"], \"parameters\": {\"amount\": {\"description\": \"Amount of USDT to swap\", \"generation\": {\"decimals\": 1, \"max\": 50.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"USDT\"}, \"busd_address\": {\"description\": \"BUSD token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"busd_symbol\": {\"description\": \"BUSD token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}, \"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"cake_symbol\": {\"description\": \"CAKE token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_address\": {\"description\": \"Input token address for key swap (CAKE)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_out_address\": {\"description\": \"Output token address for key swap (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"usdt_symbol\": {\"description\": \"USDT token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 4, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complex_defi\", \"title\": \"Multi-Approve Multi-Swap: USDT → CAKE → BUSD\", \"validation\": {\"post_conditions\": [{\"description\": \"Final swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"USDT balance decreased\", \"type\": \"usdt_balance_decrease\", \"weight\": 0.2}, {\"description\": \"BUSD balance increased\", \"type\": \"busd_balance_increase\", \"weight\": 0.4}, {\"description\": \"Final BUSD balance queried successfully\", \"type\": \"balance_verified\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 USDT\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_multi_token_swap", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "defi_workflows", "difficulty": "medium", "title": "Multi-Step Token Swap (BNB → USDT → BUSD)", "description": "Execute a multi-step token swap through PancakeSwap.\n\nThis is a 3-step process:\n1. Swap {amount_bnb} BNB for USDT using swapExactETHForTokens\n2. Approve PancakeSwap Router to spend USDT\n3. Swap all received USDT for BUSD using swapExactTokensForTokens\n\nContract addresses:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\n\nFunction signatures:\n- swapExactETHForTokens: 0x7ff36ab5\n- swapExactTokensForTokens: 0x38ed1739\n- approve: 0x095ea7b3\n\nSwap paths:\n- Step 1: [WBNB, USDT]\n- Step 3: [USDT, BUSD]\n\nThe key operation is the final swap (USDT → BUSD, step 3).\n\nIMPORTANT: Use 5% slippage tolerance for all swaps.", "natural_language_templates": ["Swap {amount_bnb} BNB for USDT, then swap all USDT for BUSD on PancakeSwap", "Exchange {amount_bnb} BNB to USDT, then convert all USDT to BUSD", "Convert {amount_bnb} BNB to USDT first, approve router, then swap USDT for BUSD"], "chain": "", "network": "", "tags": ["defi", "multi-swap", "routing", "pancakeswap", "medium"], "parameter_names": ["amount_bnb", "busd_address", "router_address", "slippage", "token_decimals", "token_in_address", "token_out_address", "usdt_address", "wbnb_address"], "parameters": "{\"amount_bnb\": {\"description\": \"Amount of BNB to swap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"input_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"busd_address\": {\"description\": \"BUSD contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"output_token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimals (all tokens are 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_address\": {\"description\": \"Input token for final swap (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"type\": \"address\"}, \"token_out_address\": {\"description\": \"Output token for final swap (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"usdt_address\": {\"description\": \"USDT contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"intermediate_token\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Final swap executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"BUSD received after multi-hop swap\", \"type\": \"token_received\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB\", \"min_balance\": \"1.0 BNB\", \"type\": \"bnb_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Swap BNB for USDT\", \"role\": \"first_swap\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve Router to spend USDT\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT for BUSD\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"multi-swap\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Multi-step swap operation\", \"Requires intermediate approval\", \"Must handle slippage for both swaps\", \"Token routing knowledge required\"], \"estimated_gas\": 400000, \"requires_approval\": true, \"tags\": [\"defi\", \"multi-swap\", \"routing\", \"pancakeswap\", \"medium\"]}", "source_path": "composite_problems/composite_multi_token_swap.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Swap BNB for USDT\", \"role\": \"first_swap\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve Router to spend USDT\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT for BUSD\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"multi-swap\"}, \"description\": [\"Execute a multi-step token swap through PancakeSwap.\", \"\", \"This is a 3-step process:\", \"1. Swap {amount_bnb} BNB for USDT using swapExactETHForTokens\", \"2. Approve PancakeSwap Router to spend USDT\", \"3. Swap all received USDT for BUSD using swapExactTokensForTokens\", \"\", \"Contract addresses:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\", \"\", \"Function signatures:\", \"- swapExactETHForTokens: 0x7ff36ab5\", \"- swapExactTokensForTokens: 0x38ed1739\", \"- approve: 0x095ea7b3\", \"\", \"Swap paths:\", \"- Step 1: [WBNB, USDT]\", \"- Step 3: [USDT, BUSD]\", \"\", \"The key operation is the final swap (USDT → BUSD, step 3).\", \"\", \"IMPORTANT: Use 5% slippage tolerance for all swaps.\"], \"difficulty\": \"medium\", \"id\": \"composite_multi_token_swap\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Multi-step swap operation\", \"Requires intermediate approval\", \"Must handle slippage for both swaps\", \"Token routing knowledge required\"], \"estimated_gas\": 400000, \"requires_approval\": true, \"tags\": [\"defi\", \"multi-swap\", \"routing\", \"pancakeswap\", \"medium\"]}, \"natural_language_templates\": [\"Swap {amount_bnb} BNB for USDT, then swap all USDT for BUSD on PancakeSwap\", \"Exchange {amount_bnb} BNB to USDT, then convert all USDT to BUSD\", \"Convert {amount_bnb} BNB to USDT first, approve router, then swap USDT for BUSD\"], \"parameters\": {\"amount_bnb\": {\"description\": \"Amount of BNB to swap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"input_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"busd_address\": {\"description\": \"BUSD contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"output_token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimals (all tokens are 18)\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_address\": {\"description\": \"Input token for final swap (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"type\": \"address\"}, \"token_out_address\": {\"description\": \"Output token for final swap (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"usdt_address\": {\"description\": \"USDT contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"intermediate_token\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"defi_workflows\", \"title\": \"Multi-Step Token Swap (BNB → USDT → BUSD)\", \"validation\": {\"post_conditions\": [{\"description\": \"Final swap executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"BUSD received after multi-hop swap\", \"type\": \"token_received\", \"weight\": 0.7}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB\", \"min_balance\": \"1.0 BNB\", \"type\": \"bnb_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_nft_bundle_sale", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "advanced_nft", "difficulty": "hard", "title": "NFT Bundle Sale: Transfer Two NFTs and Receive Payment", "description": "NFT bundle sale workflow with payment and verification.\n\nThis is a 5-step process:\n1. Transfer NFT #1 to buyer\n2. Transfer NFT #2 to buyer\n3. Receive ERC20 payment from buyer (simulated as transfer to self)\n4. Verify NFT #1 new owner\n5. Verify NFT #2 new owner\n\nTechnical details:\n- ERC721 Test NFT: deployed dynamically\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- transferFrom(from, to, tokenId): Transfer NFT\n- ownerOf(tokenId): Query NFT owner\n\nNote: In real scenarios, payment would come from buyer. For testing,\nwe simulate receiving payment as a transfer operation.\nBSC does NOT support ENS. Use hex addresses directly.", "natural_language_templates": ["Bundle sale: transfer NFT #{token_id1} and NFT #{token_id2} to {buyer_address}, receive {payment} {token_symbol}, and verify transfers", "Sell NFT bundle: transfer two NFTs to {buyer_address} for {payment} {token_symbol} payment", "Complete NFT bundle sale: send NFT #{token_id1} and #{token_id2} from {nft_address} to buyer, get {payment} USDT, verify ownership"], "chain": "", "network": "", "tags": ["nft", "bundle", "sale", "payment", "transfer", "verification", "advanced", "hard"], "parameter_names": ["buyer_address", "nft_address", "payment", "token_address", "token_decimals", "token_id1", "token_id2", "token_symbol"], "parameters": "{\"buyer_address\": {\"description\": \"Buyer address to receive NFTs\", \"generation\": {\"addresses\": [\"0x1234567890123456789012345678901234567890\", \"0x2345678901234567890123456789012345678901\", \"0x3456789012345678901234567890123456789012\"], \"method\": \"from_list\"}, \"role\": \"recipient\", \"type\": \"address\"}, \"nft_address\": {\"description\": \"ERC721 NFT contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"erc721_token_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"payment\": {\"description\": \"Payment amount for the bundle\", \"generation\": {\"decimals\": 0, \"max\": 200.0, \"method\": \"random\", \"min\": 50.0}, \"role\": \"payment_amount\", \"type\": \"number\", \"unit\": \"USDT\"}, \"token_address\": {\"description\": \"USDT payment token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"payment_token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_id1\": {\"description\": \"First NFT token ID to transfer\", \"generation\": {\"method\": \"fixed\", \"value\": 1}, \"role\": \"nft_id\", \"type\": \"integer\"}, \"token_id2\": {\"description\": \"Second NFT token ID to transfer\", \"generation\": {\"method\": \"fixed\", \"value\": 2}, \"role\": \"nft_id\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Payment token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"NFT transfer transactions executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"NFT #1 transferred to buyer\", \"type\": \"nft1_transferred\", \"weight\": 0.2}, {\"description\": \"NFT #2 transferred to buyer\", \"type\": \"nft2_transferred\", \"weight\": 0.2}, {\"description\": \"New ownership verified for both NFTs\", \"type\": \"ownership_verified\", \"weight\": 0.2}, {\"description\": \"Payment processed successfully\", \"type\": \"payment_processed\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must own NFT #1 and #2\", \"token_ids\": [1, 2], \"type\": \"nft_ownership\"}, {\"description\": \"Agent must have USDT for simulated payment\", \"min_balance\": \"500 USDT\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc721_transfer\", \"description\": \"Transfer NFT #1 to buyer\", \"role\": \"transfer\", \"step\": 1}, {\"atomic_id\": \"erc721_transfer\", \"description\": \"Transfer NFT #2 to buyer\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Receive USDT payment\", \"role\": \"payment\", \"step\": 3}, {\"atomic_id\": \"query_nft_owner\", \"description\": \"Verify NFT #1 new owner\", \"role\": \"verification\", \"step\": 4}, {\"atomic_id\": \"query_nft_owner\", \"description\": \"Verify NFT #2 new owner\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"nft-bundle-sale\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"erc721_transfer\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Five-step NFT bundle sale workflow\", \"Two NFT transfers required\", \"Payment handling\", \"Ownership verification for multiple NFTs\"], \"estimated_gas\": 400000, \"requires_approval\": false, \"tags\": [\"nft\", \"bundle\", \"sale\", \"payment\", \"transfer\", \"verification\", \"advanced\", \"hard\"]}", "source_path": "composite_problems/composite_nft_bundle_sale.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc721_transfer\", \"description\": \"Transfer NFT #1 to buyer\", \"role\": \"transfer\", \"step\": 1}, {\"atomic_id\": \"erc721_transfer\", \"description\": \"Transfer NFT #2 to buyer\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Receive USDT payment\", \"role\": \"payment\", \"step\": 3}, {\"atomic_id\": \"query_nft_owner\", \"description\": \"Verify NFT #1 new owner\", \"role\": \"verification\", \"step\": 4}, {\"atomic_id\": \"query_nft_owner\", \"description\": \"Verify NFT #2 new owner\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"nft-bundle-sale\"}, \"description\": [\"NFT bundle sale workflow with payment and verification.\", \"\", \"This is a 5-step process:\", \"1. Transfer NFT #1 to buyer\", \"2. Transfer NFT #2 to buyer\", \"3. Receive ERC20 payment from buyer (simulated as transfer to self)\", \"4. Verify NFT #1 new owner\", \"5. Verify NFT #2 new owner\", \"\", \"Technical details:\", \"- ERC721 Test NFT: deployed dynamically\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- transferFrom(from, to, tokenId): Transfer NFT\", \"- ownerOf(tokenId): Query NFT owner\", \"\", \"Note: In real scenarios, payment would come from buyer. For testing,\", \"we simulate receiving payment as a transfer operation.\", \"BSC does NOT support ENS. Use hex addresses directly.\"], \"difficulty\": \"hard\", \"id\": \"composite_nft_bundle_sale\", \"metadata\": {\"difficulty_notes\": [\"Five-step NFT bundle sale workflow\", \"Two NFT transfers required\", \"Payment handling\", \"Ownership verification for multiple NFTs\"], \"estimated_gas\": 400000, \"requires_approval\": false, \"tags\": [\"nft\", \"bundle\", \"sale\", \"payment\", \"transfer\", \"verification\", \"advanced\", \"hard\"]}, \"natural_language_templates\": [\"Bundle sale: transfer NFT #{token_id1} and NFT #{token_id2} to {buyer_address}, receive {payment} {token_symbol}, and verify transfers\", \"Sell NFT bundle: transfer two NFTs to {buyer_address} for {payment} {token_symbol} payment\", \"Complete NFT bundle sale: send NFT #{token_id1} and #{token_id2} from {nft_address} to buyer, get {payment} USDT, verify ownership\"], \"parameters\": {\"buyer_address\": {\"description\": \"Buyer address to receive NFTs\", \"generation\": {\"addresses\": [\"0x1234567890123456789012345678901234567890\", \"0x2345678901234567890123456789012345678901\", \"0x3456789012345678901234567890123456789012\"], \"method\": \"from_list\"}, \"role\": \"recipient\", \"type\": \"address\"}, \"nft_address\": {\"description\": \"ERC721 NFT contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"erc721_token_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"payment\": {\"description\": \"Payment amount for the bundle\", \"generation\": {\"decimals\": 0, \"max\": 200.0, \"method\": \"random\", \"min\": 50.0}, \"role\": \"payment_amount\", \"type\": \"number\", \"unit\": \"USDT\"}, \"token_address\": {\"description\": \"USDT payment token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"payment_token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_id1\": {\"description\": \"First NFT token ID to transfer\", \"generation\": {\"method\": \"fixed\", \"value\": 1}, \"role\": \"nft_id\", \"type\": \"integer\"}, \"token_id2\": {\"description\": \"Second NFT token ID to transfer\", \"generation\": {\"method\": \"fixed\", \"value\": 2}, \"role\": \"nft_id\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Payment token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"erc721_transfer\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"advanced_nft\", \"title\": \"NFT Bundle Sale: Transfer Two NFTs and Receive Payment\", \"validation\": {\"post_conditions\": [{\"description\": \"NFT transfer transactions executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"NFT #1 transferred to buyer\", \"type\": \"nft1_transferred\", \"weight\": 0.2}, {\"description\": \"NFT #2 transferred to buyer\", \"type\": \"nft2_transferred\", \"weight\": 0.2}, {\"description\": \"New ownership verified for both NFTs\", \"type\": \"ownership_verified\", \"weight\": 0.2}, {\"description\": \"Payment processed successfully\", \"type\": \"payment_processed\", \"weight\": 0.2}], \"pre_conditions\": [{\"description\": \"Agent must own NFT #1 and #2\", \"token_ids\": [1, 2], \"type\": \"nft_ownership\"}, {\"description\": \"Agent must have USDT for simulated payment\", \"min_balance\": \"500 USDT\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_nft_transfer_with_payment", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "nft_workflows", "difficulty": "medium", "title": "NFT Transfer with Token Payment", "description": "Execute an NFT sale: transfer NFT to buyer and collect payment.\n\nThis is a 3-step process:\n1. Transfer NFT #{token_id} to the buyer address\n2. Transfer {payment} {token_symbol} tokens (simulated payment receipt)\n3. Query NFT owner to verify the transfer succeeded\n\nNFT Contract (ERC721 Test NFT): Use the deployed test NFT contract\nPayment Token: USDT (0x55d398326f99059fF775485246999027B3197955)\n\nERC721 transfer function:\n- transferFrom(address from, address to, uint256 tokenId)\n- Function selector: 0x23b872dd\n\nIMPORTANT:\n- You own NFT #{token_id} initially\n- Transfer the NFT to {buyer_address}\n- The payment is a simulated receipt (you send tokens to yourself)\n\nThe key operation is the NFT transfer (step 1).", "natural_language_templates": ["Transfer NFT token {token_id} to {buyer_address} and receive {payment} {token_symbol} as payment, then verify the transfer", "Sell NFT #{token_id} from {nft_address} to {buyer_address} for {payment} {token_symbol}", "Send NFT #{token_id} to {buyer_address}, collect {payment} {token_symbol} payment, and confirm ownership changed"], "chain": "", "network": "", "tags": ["nft", "payment", "cross-domain", "erc721", "sale", "medium"], "parameter_names": ["buyer_address", "nft_address", "payment", "token_address", "token_decimals", "token_id", "token_symbol"], "parameters": "{\"buyer_address\": {\"description\": \"Buyer address to receive the NFT\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient\", \"type\": \"address\"}, \"nft_address\": {\"description\": \"ERC721 NFT contract address (deployed test NFT)\", \"generation\": {\"env_key\": \"erc721_token_address\", \"method\": \"from_env\"}, \"role\": \"nft_contract\", \"type\": \"address\"}, \"payment\": {\"description\": \"Payment amount in tokens\", \"generation\": {\"decimals\": 2, \"max\": 50.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"payment_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"token_address\": {\"description\": \"Payment token contract address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"payment_token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_id\": {\"description\": \"NFT token ID to transfer\", \"generation\": {\"max\": 10, \"method\": \"random\", \"min\": 1}, \"role\": \"nft_token_id\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Payment token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"NFT ownership transferred to buyer\", \"type\": \"nft_transferred\", \"weight\": 0.7}, {\"description\": \"Payment tokens transferred\", \"type\": \"payment_received\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must own NFT #{token_id}\", \"type\": \"nft_ownership\"}, {\"description\": \"Agent must have token balance for payment simulation\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc721_transfer\", \"description\": \"Transfer NFT to buyer\", \"role\": \"key_operation\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Receive token payment\", \"role\": \"payment\", \"step\": 2}, {\"atomic_id\": \"query_nft_owner\", \"description\": \"Verify NFT ownership changed\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"nft-sale\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"erc721_transfer\", \"key_operation_step\": 1, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Cross-domain operation (NFT + Token)\", \"Requires understanding of ERC721 transfer\", \"Verification step included\"], \"estimated_gas\": 150000, \"requires_approval\": false, \"tags\": [\"nft\", \"payment\", \"cross-domain\", \"erc721\", \"sale\", \"medium\"]}", "source_path": "composite_problems/composite_nft_transfer_with_payment.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc721_transfer\", \"description\": \"Transfer NFT to buyer\", \"role\": \"key_operation\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Receive token payment\", \"role\": \"payment\", \"step\": 2}, {\"atomic_id\": \"query_nft_owner\", \"description\": \"Verify NFT ownership changed\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"nft-sale\"}, \"description\": [\"Execute an NFT sale: transfer NFT to buyer and collect payment.\", \"\", \"This is a 3-step process:\", \"1. Transfer NFT #{token_id} to the buyer address\", \"2. Transfer {payment} {token_symbol} tokens (simulated payment receipt)\", \"3. Query NFT owner to verify the transfer succeeded\", \"\", \"NFT Contract (ERC721 Test NFT): Use the deployed test NFT contract\", \"Payment Token: USDT (0x55d398326f99059fF775485246999027B3197955)\", \"\", \"ERC721 transfer function:\", \"- transferFrom(address from, address to, uint256 tokenId)\", \"- Function selector: 0x23b872dd\", \"\", \"IMPORTANT:\", \"- You own NFT #{token_id} initially\", \"- Transfer the NFT to {buyer_address}\", \"- The payment is a simulated receipt (you send tokens to yourself)\", \"\", \"The key operation is the NFT transfer (step 1).\"], \"difficulty\": \"medium\", \"id\": \"composite_nft_transfer_with_payment\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Cross-domain operation (NFT + Token)\", \"Requires understanding of ERC721 transfer\", \"Verification step included\"], \"estimated_gas\": 150000, \"requires_approval\": false, \"tags\": [\"nft\", \"payment\", \"cross-domain\", \"erc721\", \"sale\", \"medium\"]}, \"natural_language_templates\": [\"Transfer NFT token {token_id} to {buyer_address} and receive {payment} {token_symbol} as payment, then verify the transfer\", \"Sell NFT #{token_id} from {nft_address} to {buyer_address} for {payment} {token_symbol}\", \"Send NFT #{token_id} to {buyer_address}, collect {payment} {token_symbol} payment, and confirm ownership changed\"], \"parameters\": {\"buyer_address\": {\"description\": \"Buyer address to receive the NFT\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient\", \"type\": \"address\"}, \"nft_address\": {\"description\": \"ERC721 NFT contract address (deployed test NFT)\", \"generation\": {\"env_key\": \"erc721_token_address\", \"method\": \"from_env\"}, \"role\": \"nft_contract\", \"type\": \"address\"}, \"payment\": {\"description\": \"Payment amount in tokens\", \"generation\": {\"decimals\": 2, \"max\": 50.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"payment_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"token_address\": {\"description\": \"Payment token contract address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"payment_token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_id\": {\"description\": \"NFT token ID to transfer\", \"generation\": {\"max\": 10, \"method\": \"random\", \"min\": 1}, \"role\": \"nft_token_id\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Payment token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"erc721_transfer\", \"key_operation_step\": 1, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"nft_workflows\", \"title\": \"NFT Transfer with Token Payment\", \"validation\": {\"post_conditions\": [{\"description\": \"NFT ownership transferred to buyer\", \"type\": \"nft_transferred\", \"weight\": 0.7}, {\"description\": \"Payment tokens transferred\", \"type\": \"payment_received\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must own NFT #{token_id}\", \"type\": \"nft_ownership\"}, {\"description\": \"Agent must have token balance for payment simulation\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_optimized_swap_with_query", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "advanced_defi", "difficulty": "hard", "title": "Optimized Swap with Query: Check Reserves, Calculate, Execute, Verify", "description": "Advanced DeFi workflow with pre-swap analysis and post-swap verification.\n\nThis is a 5-step process:\n1. Query pair reserves to check liquidity\n2. Calculate expected swap output amount\n3. Approve input token to Router\n4. Execute the swap with calculated parameters\n5. Query output token balance to verify\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- PancakeSwap Factory: 0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\n- USDT/BUSD Pair: 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\n\nQuery functions:\n- getReserves(): returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)\n- getAmountsOut(uint amountIn, address[] path): returns expected output\n\nBSC does NOT support ENS. Use hex addresses directly.", "natural_language_templates": ["Query pair reserves, calculate optimal swap amount for {amount} {token_in_symbol}, execute the swap, then verify output", "Optimize swap: check reserves, calculate expected output, swap {amount} {token_in_symbol} to {token_out_symbol}, and confirm", "Advanced swap workflow: query {pair_address} reserves, estimate output for {amount} {token_in_symbol}, approve and swap to {token_out_symbol}, verify balance"], "chain": "", "network": "", "tags": ["defi", "optimization", "query", "swap", "verification", "advanced", "hard"], "parameter_names": ["amount", "factory_address", "pair_address", "router_address", "slippage", "token_decimals", "token_in_address", "token_in_symbol", "token_out_address", "token_out_symbol"], "parameters": "{\"amount\": {\"description\": \"Amount of input tokens to swap\", \"generation\": {\"decimals\": 1, \"max\": 50.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"tokens\"}, \"factory_address\": {\"description\": \"PancakeSwap V2 Factory contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73\"}, \"role\": \"contract\", \"type\": \"address\"}, \"pair_address\": {\"description\": \"USDT/BUSD pair address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"contract\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_address\": {\"description\": \"Input token address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_out_address\": {\"description\": \"Output token address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"Pair reserves were queried\", \"type\": \"reserves_queried\", \"weight\": 0.15}, {\"description\": \"Expected output was calculated\", \"type\": \"output_calculated\", \"weight\": 0.15}, {\"description\": \"Input token balance decreased\", \"type\": \"input_token_decrease\", \"weight\": 0.2}, {\"description\": \"Output token balance increased\", \"type\": \"output_token_increase\", \"weight\": 0.2}, {\"description\": \"Final balance was verified\", \"type\": \"balance_verified\", \"weight\": 0.1}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient input tokens\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_pair_reserves\", \"description\": \"Query pair reserves to check liquidity\", \"role\": \"analysis\", \"step\": 1}, {\"atomic_id\": \"query_swap_output_amount\", \"description\": \"Calculate expected swap output\", \"role\": \"calculation\", \"step\": 2}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve input token to Router\", \"role\": \"approval\", \"step\": 3}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Execute the optimized swap\", \"role\": \"key_operation\", \"step\": 4}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Verify output token balance\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"query-calculate-execute-verify\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 4, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Five-step advanced workflow\", \"Requires query operations before swap\", \"Must use query results to optimize swap\", \"Post-swap verification required\"], \"estimated_gas\": 500000, \"requires_approval\": true, \"tags\": [\"defi\", \"optimization\", \"query\", \"swap\", \"verification\", \"advanced\", \"hard\"]}", "source_path": "composite_problems/composite_optimized_swap_with_query.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_pair_reserves\", \"description\": \"Query pair reserves to check liquidity\", \"role\": \"analysis\", \"step\": 1}, {\"atomic_id\": \"query_swap_output_amount\", \"description\": \"Calculate expected swap output\", \"role\": \"calculation\", \"step\": 2}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve input token to Router\", \"role\": \"approval\", \"step\": 3}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Execute the optimized swap\", \"role\": \"key_operation\", \"step\": 4}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Verify output token balance\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"query-calculate-execute-verify\"}, \"description\": [\"Advanced DeFi workflow with pre-swap analysis and post-swap verification.\", \"\", \"This is a 5-step process:\", \"1. Query pair reserves to check liquidity\", \"2. Calculate expected swap output amount\", \"3. Approve input token to Router\", \"4. Execute the swap with calculated parameters\", \"5. Query output token balance to verify\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- PancakeSwap Factory: 0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\", \"- USDT/BUSD Pair: 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\", \"\", \"Query functions:\", \"- getReserves(): returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)\", \"- getAmountsOut(uint amountIn, address[] path): returns expected output\", \"\", \"BSC does NOT support ENS. Use hex addresses directly.\"], \"difficulty\": \"hard\", \"id\": \"composite_optimized_swap_with_query\", \"metadata\": {\"difficulty_notes\": [\"Five-step advanced workflow\", \"Requires query operations before swap\", \"Must use query results to optimize swap\", \"Post-swap verification required\"], \"estimated_gas\": 500000, \"requires_approval\": true, \"tags\": [\"defi\", \"optimization\", \"query\", \"swap\", \"verification\", \"advanced\", \"hard\"]}, \"natural_language_templates\": [\"Query pair reserves, calculate optimal swap amount for {amount} {token_in_symbol}, execute the swap, then verify output\", \"Optimize swap: check reserves, calculate expected output, swap {amount} {token_in_symbol} to {token_out_symbol}, and confirm\", \"Advanced swap workflow: query {pair_address} reserves, estimate output for {amount} {token_in_symbol}, approve and swap to {token_out_symbol}, verify balance\"], \"parameters\": {\"amount\": {\"description\": \"Amount of input tokens to swap\", \"generation\": {\"decimals\": 1, \"max\": 50.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"tokens\"}, \"factory_address\": {\"description\": \"PancakeSwap V2 Factory contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73\"}, \"role\": \"contract\", \"type\": \"address\"}, \"pair_address\": {\"description\": \"USDT/BUSD pair address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"contract\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_address\": {\"description\": \"Input token address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_out_address\": {\"description\": \"Output token address (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"BUSD\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 4, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"advanced_defi\", \"title\": \"Optimized Swap with Query: Check Reserves, Calculate, Execute, Verify\", \"validation\": {\"post_conditions\": [{\"description\": \"Swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"Pair reserves were queried\", \"type\": \"reserves_queried\", \"weight\": 0.15}, {\"description\": \"Expected output was calculated\", \"type\": \"output_calculated\", \"weight\": 0.15}, {\"description\": \"Input token balance decreased\", \"type\": \"input_token_decrease\", \"weight\": 0.2}, {\"description\": \"Output token balance increased\", \"type\": \"output_token_increase\", \"weight\": 0.2}, {\"description\": \"Final balance was verified\", \"type\": \"balance_verified\", \"weight\": 0.1}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient input tokens\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_portfolio_rebalance", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "advanced_defi", "difficulty": "hard", "title": "Portfolio Rebalance: Query Holdings and Convert to BUSD", "description": "Advanced portfolio management workflow with multiple swaps.\n\nThis is a 5-step process:\n1. Query USDT balance to check holdings\n2. Query CAKE balance to check holdings\n3. Swap portion of USDT to BUSD\n4. Swap portion of CAKE to BUSD (KEY OPERATION)\n5. Query final BUSD balance to verify rebalancing\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- CAKE: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\n- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\n- WBNB (for path): 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n\nSwap paths:\n- USDT → BUSD (direct pair exists)\n- CAKE → WBNB → BUSD\n\nNote: Both USDT and CAKE must be approved to Router before swaps.\nBSC does NOT support ENS. Use hex addresses directly.", "natural_language_templates": ["Rebalance portfolio: check USDT and CAKE balances, swap {amount_usdt} USDT and {amount_cake} CAKE to BUSD, then verify", "Query current holdings, convert {amount_usdt} USDT and {amount_cake} CAKE to BUSD", "Portfolio management: query USDT at {usdt_address} and CAKE at {cake_address}, swap portions to BUSD, verify final balance"], "chain": "", "network": "", "tags": ["defi", "portfolio", "rebalance", "multi-swap", "query", "advanced", "hard"], "parameter_names": ["amount_cake", "amount_usdt", "busd_address", "cake_address", "router_address", "slippage", "token_decimals", "token_in_address", "token_out_address", "usdt_address", "wbnb_address"], "parameters": "{\"amount_cake\": {\"description\": \"Amount of CAKE to swap to BUSD\", \"generation\": {\"decimals\": 1, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"CAKE\"}, \"amount_usdt\": {\"description\": \"Amount of USDT to swap to BUSD\", \"generation\": {\"decimals\": 1, \"max\": 30.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"USDT\"}, \"busd_address\": {\"description\": \"BUSD token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_address\": {\"description\": \"Key swap input token (CAKE)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_out_address\": {\"description\": \"Key swap output token (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Swap transactions executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"USDT balance decreased\", \"type\": \"usdt_balance_decrease\", \"weight\": 0.2}, {\"description\": \"CAKE balance decreased\", \"type\": \"cake_balance_decrease\", \"weight\": 0.2}, {\"description\": \"BUSD balance increased (combined from both swaps)\", \"type\": \"busd_balance_increase\", \"weight\": 0.3}, {\"description\": \"Final BUSD balance was verified\", \"type\": \"balance_verified\", \"weight\": 0.1}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 USDT\", \"type\": \"token_balance\"}, {\"description\": \"Agent must have sufficient CAKE\", \"min_balance\": \"50 CAKE\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query USDT balance\", \"role\": \"analysis\", \"step\": 1}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query CAKE balance\", \"role\": \"analysis\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT to BUSD\", \"role\": \"rebalance\", \"step\": 3}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap CAKE to BUSD\", \"role\": \"key_operation\", \"step\": 4}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final BUSD balance\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"query-swap-swap-verify\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 4, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Five-step portfolio management workflow\", \"Requires querying multiple token balances\", \"Two separate swap operations\", \"Must handle different swap paths\"], \"estimated_gas\": 600000, \"requires_approval\": true, \"tags\": [\"defi\", \"portfolio\", \"rebalance\", \"multi-swap\", \"query\", \"advanced\", \"hard\"]}", "source_path": "composite_problems/composite_portfolio_rebalance.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query USDT balance\", \"role\": \"analysis\", \"step\": 1}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query CAKE balance\", \"role\": \"analysis\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT to BUSD\", \"role\": \"rebalance\", \"step\": 3}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap CAKE to BUSD\", \"role\": \"key_operation\", \"step\": 4}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final BUSD balance\", \"role\": \"verification\", \"step\": 5}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 10, \"optimal_steps\": 5, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 5, \"pattern\": \"query-swap-swap-verify\"}, \"description\": [\"Advanced portfolio management workflow with multiple swaps.\", \"\", \"This is a 5-step process:\", \"1. Query USDT balance to check holdings\", \"2. Query CAKE balance to check holdings\", \"3. Swap portion of USDT to BUSD\", \"4. Swap portion of CAKE to BUSD (KEY OPERATION)\", \"5. Query final BUSD balance to verify rebalancing\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- CAKE: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\", \"- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\", \"- WBNB (for path): 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"\", \"Swap paths:\", \"- USDT → BUSD (direct pair exists)\", \"- CAKE → WBNB → BUSD\", \"\", \"Note: Both USDT and CAKE must be approved to Router before swaps.\", \"BSC does NOT support ENS. Use hex addresses directly.\"], \"difficulty\": \"hard\", \"id\": \"composite_portfolio_rebalance\", \"metadata\": {\"difficulty_notes\": [\"Five-step portfolio management workflow\", \"Requires querying multiple token balances\", \"Two separate swap operations\", \"Must handle different swap paths\"], \"estimated_gas\": 600000, \"requires_approval\": true, \"tags\": [\"defi\", \"portfolio\", \"rebalance\", \"multi-swap\", \"query\", \"advanced\", \"hard\"]}, \"natural_language_templates\": [\"Rebalance portfolio: check USDT and CAKE balances, swap {amount_usdt} USDT and {amount_cake} CAKE to BUSD, then verify\", \"Query current holdings, convert {amount_usdt} USDT and {amount_cake} CAKE to BUSD\", \"Portfolio management: query USDT at {usdt_address} and CAKE at {cake_address}, swap portions to BUSD, verify final balance\"], \"parameters\": {\"amount_cake\": {\"description\": \"Amount of CAKE to swap to BUSD\", \"generation\": {\"decimals\": 1, \"max\": 20.0, \"method\": \"random\", \"min\": 5.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"CAKE\"}, \"amount_usdt\": {\"description\": \"Amount of USDT to swap to BUSD\", \"generation\": {\"decimals\": 1, \"max\": 30.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"USDT\"}, \"busd_address\": {\"description\": \"BUSD token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_address\": {\"description\": \"Key swap input token (CAKE)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_out_address\": {\"description\": \"Key swap output token (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 4, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"advanced_defi\", \"title\": \"Portfolio Rebalance: Query Holdings and Convert to BUSD\", \"validation\": {\"post_conditions\": [{\"description\": \"Swap transactions executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"USDT balance decreased\", \"type\": \"usdt_balance_decrease\", \"weight\": 0.2}, {\"description\": \"CAKE balance decreased\", \"type\": \"cake_balance_decrease\", \"weight\": 0.2}, {\"description\": \"BUSD balance increased (combined from both swaps)\", \"type\": \"busd_balance_increase\", \"weight\": 0.3}, {\"description\": \"Final BUSD balance was verified\", \"type\": \"balance_verified\", \"weight\": 0.1}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient USDT\", \"min_balance\": \"100 USDT\", \"type\": \"token_balance\"}, {\"description\": \"Agent must have sufficient CAKE\", \"min_balance\": \"50 CAKE\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_query_allowance_approve_verify", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "", "description": "", "natural_language_templates": ["Check the allowance for {{spender_address}}, approve {{amount}} {{token_symbol}}, then verify the allowance increased", "Query current allowance, approve {{spender_address}} to spend {{amount}} {{token_symbol}}, and confirm the approval", "First check how much {{token_symbol}} {{spender_address}} can spend, then approve {{amount}} {{token_symbol}}, and verify the approval succeeded", "Query the allowance for {{spender_address}} on {{token_symbol}}, approve {{amount}} {{token_symbol}}, then verify the new allowance"], "chain": "", "network": "", "tags": ["composite", "query-write-verify", "approval", "erc20"], "parameter_names": ["amount", "spender_address", "token_address", "token_decimals", "token_symbol"], "parameters": "{\"amount\": {\"description\": \"Amount of tokens to approve\", \"generation\": {\"decimals\": 2, \"max\": 100.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"amount\", \"type\": \"number\", \"unit\": \"tokens\"}, \"spender_address\": {\"description\": \"Address to be approved as spender\", \"generation\": {\"method\": \"random\"}, \"role\": \"spender\", \"type\": \"address\"}, \"token_address\": {\"description\": \"ERC20 token contract address\", \"generation\": {\"addresses\": [\"0x55d398326f99059fF775485246999027B3197955\"], \"comment\": \"BSC Mainnet USDT\", \"method\": \"from_list\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2, 3], \"type\": \"address\"}, \"token_decimals\": {\"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2, 3], \"type\": \"integer\"}, \"token_symbol\": {\"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2, 3], \"type\": \"string\"}}", "validation": "{\"error_scenarios\": [{\"condition\": \"Spender address is zero address\", \"expected_behavior\": \"LLM should detect and report error\", \"type\": \"INVALID_SPENDER_ADDRESS\"}], \"success_criteria\": [\"Initial allowance queried successfully\", \"Approve transaction executed successfully\", \"Correct amount approved\", \"Spender address matches\", \"Transaction confirmed on chain\", \"Final allowance equals approved amount\"], \"validator\": \"composite\"}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_erc20_allowance\", \"description\": \"Query initial allowance for spender\", \"parameter_mapping\": {\"owner_address\": \"agent_address\", \"spender_address\": \"spender_address\", \"token_address\": \"token_address\"}, \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve spender to spend tokens\", \"key_operation\": true, \"parameter_mapping\": {\"amount\": \"amount\", \"spender_address\": \"spender_address\", \"token_address\": \"token_address\"}, \"step\": 2}, {\"atomic_id\": \"query_erc20_allowance\", \"description\": \"Query final allowance to verify approval (optional)\", \"optional\": true, \"parameter_mapping\": {\"owner_address\": \"agent_address\", \"spender_address\": \"spender_address\", \"token_address\": \"token_address\"}, \"step\": 3}], \"description\": \"Query-Write-Verify pattern for ERC20 approval operation\", \"interaction_config\": {\"allow_error_report\": true, \"comment\": \"max_rounds = 2 × 2 = 4. Optimal path: query allowance, then approve (with inline verification)\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2, \"require_submit\": true}, \"scoring_strategy\": {\"description\": \"Reuse ERC20 approve validator for scoring\", \"key_operation_id\": \"erc20_approve\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}}", "interaction_config": "{}", "scoring_strategy": "{}", "metadata": "{\"created_date\": \"2025-11-24\", \"estimated_dev_time\": \"30 minutes\", \"notes\": \"First composite problem for ERC20 approval operations. Tests LLM's ability to handle allowance management and verification.\", \"priority\": \"P0\", \"related_atomic_problems\": [\"query_erc20_allowance\", \"erc20_approve\"]}", "source_path": "composite_problems/composite_query_allowance_approve_verify.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_erc20_allowance\", \"description\": \"Query initial allowance for spender\", \"parameter_mapping\": {\"owner_address\": \"agent_address\", \"spender_address\": \"spender_address\", \"token_address\": \"token_address\"}, \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve spender to spend tokens\", \"key_operation\": true, \"parameter_mapping\": {\"amount\": \"amount\", \"spender_address\": \"spender_address\", \"token_address\": \"token_address\"}, \"step\": 2}, {\"atomic_id\": \"query_erc20_allowance\", \"description\": \"Query final allowance to verify approval (optional)\", \"optional\": true, \"parameter_mapping\": {\"owner_address\": \"agent_address\", \"spender_address\": \"spender_address\", \"token_address\": \"token_address\"}, \"step\": 3}], \"description\": \"Query-Write-Verify pattern for ERC20 approval operation\", \"interaction_config\": {\"allow_error_report\": true, \"comment\": \"max_rounds = 2 × 2 = 4. Optimal path: query allowance, then approve (with inline verification)\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2, \"require_submit\": true}, \"scoring_strategy\": {\"description\": \"Reuse ERC20 approve validator for scoring\", \"key_operation_id\": \"erc20_approve\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}}, \"difficulty\": \"medium\", \"id\": \"composite_query_allowance_approve_verify\", \"metadata\": {\"created_date\": \"2025-11-24\", \"estimated_dev_time\": \"30 minutes\", \"notes\": \"First composite problem for ERC20 approval operations. Tests LLM's ability to handle allowance management and verification.\", \"priority\": \"P0\", \"related_atomic_problems\": [\"query_erc20_allowance\", \"erc20_approve\"]}, \"natural_language_templates\": [\"Check the allowance for {{spender_address}}, approve {{amount}} {{token_symbol}}, then verify the allowance increased\", \"Query current allowance, approve {{spender_address}} to spend {{amount}} {{token_symbol}}, and confirm the approval\", \"First check how much {{token_symbol}} {{spender_address}} can spend, then approve {{amount}} {{token_symbol}}, and verify the approval succeeded\", \"Query the allowance for {{spender_address}} on {{token_symbol}}, approve {{amount}} {{token_symbol}}, then verify the new allowance\"], \"parameters\": {\"amount\": {\"description\": \"Amount of tokens to approve\", \"generation\": {\"decimals\": 2, \"max\": 100.0, \"method\": \"random\", \"min\": 10.0}, \"role\": \"amount\", \"type\": \"number\", \"unit\": \"tokens\"}, \"spender_address\": {\"description\": \"Address to be approved as spender\", \"generation\": {\"method\": \"random\"}, \"role\": \"spender\", \"type\": \"address\"}, \"token_address\": {\"description\": \"ERC20 token contract address\", \"generation\": {\"addresses\": [\"0x55d398326f99059fF775485246999027B3197955\"], \"comment\": \"BSC Mainnet USDT\", \"method\": \"from_list\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2, 3], \"type\": \"address\"}, \"token_decimals\": {\"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2, 3], \"type\": \"integer\"}, \"token_symbol\": {\"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2, 3], \"type\": \"string\"}}, \"tags\": [\"composite\", \"query-write-verify\", \"approval\", \"erc20\"], \"validation\": {\"error_scenarios\": [{\"condition\": \"Spender address is zero address\", \"expected_behavior\": \"LLM should detect and report error\", \"type\": \"INVALID_SPENDER_ADDRESS\"}], \"success_criteria\": [\"Initial allowance queried successfully\", \"Approve transaction executed successfully\", \"Correct amount approved\", \"Spender address matches\", \"Transaction confirmed on chain\", \"Final allowance equals approved amount\"], \"validator\": \"composite\"}}"} | |
| {"id": "composite_query_balance_wrap_verify", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Query BNB Balance, Wrap BNB to WBNB, and Verify", "description": "A composite problem that tests the LLM's ability to:\n1. Query initial BNB balance\n2. Execute a WBNB deposit (wrap BNB to WBNB)\n3. Query final WBNB balance to verify the wrap", "natural_language_templates": ["Check your BNB balance, wrap {amount} BNB to WBNB, then verify your WBNB balance", "Query BNB balance, deposit {amount} BNB to WBNB contract, and confirm WBNB received"], "chain": "BSC", "network": "mainnet", "tags": ["query-write-verify", "wrap"], "parameter_names": ["amount", "wbnb_address"], "parameters": "{\"amount\": {\"description\": \"Amount of BNB to wrap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"wrap_amount\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"BNB\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"comment\": \"BSC Mainnet WBNB contract\", \"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"contract\", \"shared_across_steps\": [2, 3], \"type\": \"address\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_bnb_balance\", \"description\": \"Query initial BNB balance\", \"step\": 1}, {\"atomic_id\": \"wbnb_deposit\", \"description\": \"Wrap BNB to WBNB\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final WBNB balance\", \"step\": 3}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"bnb_wrap\", \"key_operation_id\": \"wbnb_deposit\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load WBNBDepositValidator and call its validate() method directly\", \"validator_class\": \"WBNBDepositValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_query_balance_wrap_verify.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_bnb_balance\", \"description\": \"Query initial BNB balance\", \"step\": 1}, {\"atomic_id\": \"wbnb_deposit\", \"description\": \"Wrap BNB to WBNB\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final WBNB balance\", \"step\": 3}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Query initial BNB balance\", \"2. Execute a WBNB deposit (wrap BNB to WBNB)\", \"3. Query final WBNB balance to verify the wrap\"], \"difficulty\": \"medium\", \"id\": \"composite_query_balance_wrap_verify\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Check your BNB balance, wrap {amount} BNB to WBNB, then verify your WBNB balance\", \"Query BNB balance, deposit {amount} BNB to WBNB contract, and confirm WBNB received\"], \"parameters\": {\"amount\": {\"description\": \"Amount of BNB to wrap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"wrap_amount\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"BNB\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"comment\": \"BSC Mainnet WBNB contract\", \"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"contract\", \"shared_across_steps\": [2, 3], \"type\": \"address\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"bnb_wrap\", \"key_operation_id\": \"wbnb_deposit\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load WBNBDepositValidator and call its validate() method directly\", \"validator_class\": \"WBNBDepositValidator\"}, \"tags\": [\"query-write-verify\", \"wrap\"], \"title\": \"Query BNB Balance, Wrap BNB to WBNB, and Verify\"}"} | |
| {"id": "composite_query_bnb_transfer_verify", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "easy", "title": "", "description": "", "natural_language_templates": ["Check your BNB balance, transfer {{amount}} BNB to {{to_address}}, then verify your remaining balance", "Query your BNB balance, send {{amount}} BNB to {{to_address}}, and confirm the transfer succeeded", "First check how much BNB you have, then send {{amount}} BNB to {{to_address}}, and verify the transaction", "Query your current BNB balance, transfer {{amount}} BNB to {{to_address}}, then check your balance again to verify"], "chain": "", "network": "", "tags": ["composite", "query-write-verify", "basic", "native", "bnb"], "parameter_names": ["amount", "to_address"], "parameters": "{\"amount\": {\"decimals\": 2, \"description\": \"Amount of BNB to transfer (in BNB, not Wei)\", \"generation_method\": \"random\", \"max\": 5.0, \"min\": 0.5, \"type\": \"number\", \"unit\": \"BNB\"}, \"to_address\": {\"description\": \"Recipient address for BNB transfer\", \"generation_method\": \"random\", \"type\": \"address\"}}", "validation": "{\"error_scenarios\": [{\"condition\": \"BNB balance < transfer amount + gas\", \"expected_behavior\": \"LLM should detect and report error\", \"type\": \"BNB_INSUFFICIENT_BALANCE\"}], \"success_criteria\": [\"Initial BNB balance queried successfully\", \"BNB transfer executed successfully\", \"Correct amount transferred\", \"Recipient address matches\", \"Transaction confirmed on chain\"], \"validator\": \"composite\"}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_bnb_balance\", \"description\": \"Query initial BNB balance\", \"parameter_mapping\": {\"query_address\": \"agent_address\"}, \"step\": 1}, {\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to recipient\", \"key_operation\": true, \"parameter_mapping\": {\"amount\": \"amount\", \"to_address\": \"to_address\"}, \"step\": 2}, {\"atomic_id\": \"query_bnb_balance\", \"description\": \"Query final BNB balance (optional verification step)\", \"optional\": true, \"parameter_mapping\": {\"query_address\": \"agent_address\"}, \"step\": 3}], \"description\": \"Query-Write-Verify pattern for native BNB transfer\", \"interaction_config\": {\"allow_error_report\": true, \"comment\": \"max_rounds = 2 × 2 = 4. Optimal path: query balance, then transfer (with inline verification)\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2, \"require_submit\": true}, \"scoring_strategy\": {\"description\": \"Reuse BNB transfer validator for scoring\", \"key_operation_id\": \"bnb_transfer_basic\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}}", "interaction_config": "{}", "scoring_strategy": "{}", "metadata": "{\"created_date\": \"2025-11-24\", \"estimated_dev_time\": \"30 minutes\", \"notes\": \"First composite problem for native BNB operations. Simpler than ERC20 version (A1) as it doesn't require token address parameter.\", \"priority\": \"P0\", \"related_atomic_problems\": [\"query_bnb_balance\", \"bnb_transfer_basic\"]}", "source_path": "composite_problems/composite_query_bnb_transfer_verify.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_bnb_balance\", \"description\": \"Query initial BNB balance\", \"parameter_mapping\": {\"query_address\": \"agent_address\"}, \"step\": 1}, {\"atomic_id\": \"bnb_transfer_basic\", \"description\": \"Transfer BNB to recipient\", \"key_operation\": true, \"parameter_mapping\": {\"amount\": \"amount\", \"to_address\": \"to_address\"}, \"step\": 2}, {\"atomic_id\": \"query_bnb_balance\", \"description\": \"Query final BNB balance (optional verification step)\", \"optional\": true, \"parameter_mapping\": {\"query_address\": \"agent_address\"}, \"step\": 3}], \"description\": \"Query-Write-Verify pattern for native BNB transfer\", \"interaction_config\": {\"allow_error_report\": true, \"comment\": \"max_rounds = 2 × 2 = 4. Optimal path: query balance, then transfer (with inline verification)\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2, \"require_submit\": true}, \"scoring_strategy\": {\"description\": \"Reuse BNB transfer validator for scoring\", \"key_operation_id\": \"bnb_transfer_basic\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}}, \"difficulty\": \"easy\", \"id\": \"composite_query_bnb_transfer_verify\", \"metadata\": {\"created_date\": \"2025-11-24\", \"estimated_dev_time\": \"30 minutes\", \"notes\": \"First composite problem for native BNB operations. Simpler than ERC20 version (A1) as it doesn't require token address parameter.\", \"priority\": \"P0\", \"related_atomic_problems\": [\"query_bnb_balance\", \"bnb_transfer_basic\"]}, \"natural_language_templates\": [\"Check your BNB balance, transfer {{amount}} BNB to {{to_address}}, then verify your remaining balance\", \"Query your BNB balance, send {{amount}} BNB to {{to_address}}, and confirm the transfer succeeded\", \"First check how much BNB you have, then send {{amount}} BNB to {{to_address}}, and verify the transaction\", \"Query your current BNB balance, transfer {{amount}} BNB to {{to_address}}, then check your balance again to verify\"], \"parameters\": {\"amount\": {\"decimals\": 2, \"description\": \"Amount of BNB to transfer (in BNB, not Wei)\", \"generation_method\": \"random\", \"max\": 5.0, \"min\": 0.5, \"type\": \"number\", \"unit\": \"BNB\"}, \"to_address\": {\"description\": \"Recipient address for BNB transfer\", \"generation_method\": \"random\", \"type\": \"address\"}}, \"tags\": [\"composite\", \"query-write-verify\", \"basic\", \"native\", \"bnb\"], \"validation\": {\"error_scenarios\": [{\"condition\": \"BNB balance < transfer amount + gas\", \"expected_behavior\": \"LLM should detect and report error\", \"type\": \"BNB_INSUFFICIENT_BALANCE\"}], \"success_criteria\": [\"Initial BNB balance queried successfully\", \"BNB transfer executed successfully\", \"Correct amount transferred\", \"Recipient address matches\", \"Transaction confirmed on chain\"], \"validator\": \"composite\"}}"} | |
| {"id": "composite_query_erc20_transfer_verify", "split": "composite", "task_type": "composite", "version": "2.0.0", "category": "composite_problems", "subcategory": "basic_workflows", "difficulty": "medium", "title": "Query-Transfer-Verify ERC20 Workflow", "description": "A composite problem that tests the LLM's ability to:\n1. Query initial ERC20 token balance\n2. Execute a token transfer\n3. Query final balance to verify the transfer\n\nScoring is based DIRECTLY on the atomic validator of step 2 (erc20_transfer_fixed).\nThis eliminates code duplication and ensures consistency with atomic problem scoring.", "natural_language_templates": ["Check your {token_symbol} balance, transfer {amount} {token_symbol} to {to_address}, then verify your new balance", "Query your {token_symbol} balance, send {amount} tokens to {to_address}, and confirm the balance decreased correctly", "First check how much {token_symbol} you have, then transfer {amount} {token_symbol} to {to_address}, and finally verify the transfer succeeded", "Query balance of {token_symbol}, transfer {amount} to {to_address}, and check your remaining balance"], "chain": "BSC", "network": "mainnet", "tags": ["composite", "query-write-verify", "basic", "token", "P0"], "parameter_names": ["amount", "query_address", "to_address", "token_address", "token_decimals", "token_symbol"], "parameters": "{\"amount\": {\"compliance_check\": \"strict\", \"description\": \"Transfer amount in tokens (CRITICAL: must not be modified)\", \"generation\": {\"decimals\": 2, \"max\": 50.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount\", \"type\": \"number\", \"used_in_step\": 2}, \"query_address\": {\"description\": \"Address to query balance for (will be set in test environment)\", \"generation\": {\"comment\": \"Random address, balance will be set up in test environment\", \"method\": \"random\"}, \"role\": \"query_target\", \"shared_across_steps\": [1, 3], \"type\": \"address\"}, \"to_address\": {\"compliance_check\": \"strict\", \"description\": \"Recipient address (CRITICAL: must not be modified)\", \"generation\": {\"method\": \"random\"}, \"role\": \"receiver\", \"type\": \"address\", \"used_in_step\": 2}, \"token_address\": {\"description\": \"ERC20 token contract address\", \"generation\": {\"addresses\": [\"0x55d398326f99059fF775485246999027B3197955\"], \"comment\": \"BSC Mainnet USDT\", \"method\": \"from_list\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2, 3], \"type\": \"address\"}, \"token_decimals\": {\"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2, 3], \"type\": \"integer\"}, \"token_symbol\": {\"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2, 3], \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Two-track validation: error report OR task completion\", \"type\": \"composite_validation\", \"validation_modes\": {\"error_report\": {\"description\": \"If LLM reports error, verify it's valid\", \"score_if_invalid\": 0, \"score_if_valid\": 100}, \"task_completion\": {\"checks\": [{\"critical\": true, \"score_if_violated\": 0, \"type\": \"parameter_compliance\"}, {\"reuse_validator\": \"erc20_transfer_fixed\", \"type\": \"atomic_validator_scoring\"}], \"description\": \"Parameter compliance + atomic validator scoring\"}}, \"weight\": 1.0}], \"pre_conditions\": [{\"description\": \"Agent must have token balance\", \"setup\": \"Set balance based on test scenario\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"alias\": \"pre_balance_query\", \"atomic_id\": \"query_erc20_balance\", \"description\": \"Query initial token balance\", \"purpose\": \"information_gathering\", \"step\": 1}, {\"alias\": \"token_transfer\", \"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to recipient\", \"purpose\": \"main_operation\", \"step\": 2}, {\"alias\": \"post_balance_query\", \"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final token balance to verify transfer\", \"purpose\": \"verification\", \"step\": 3}], \"interaction_config\": {\"allow_error_report\": true, \"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2, \"require_submit\": true}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"token_transfer\", \"key_operation_id\": \"erc20_transfer_fixed\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load ERC20TransferValidator and call its validate() method directly\", \"validator_class\": \"ERC20TransferValidator\"}}", "interaction_config": "{}", "scoring_strategy": "{}", "metadata": "{\"atomic_count\": 3, \"composite_type\": \"sequential\", \"difficulty_notes\": [\"Tests basic multi-step workflow\", \"Scoring reuses ERC20TransferValidator directly\", \"Parameter compliance is enforced separately\"], \"estimated_gas\": 150000, \"priority\": \"P0\", \"requires_contract\": true, \"tags\": [\"composite\", \"query-write-verify\", \"basic\", \"token\", \"P0\"]}", "source_path": "composite_problems/composite_query_erc20_transfer_verify.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"alias\": \"pre_balance_query\", \"atomic_id\": \"query_erc20_balance\", \"description\": \"Query initial token balance\", \"purpose\": \"information_gathering\", \"step\": 1}, {\"alias\": \"token_transfer\", \"atomic_id\": \"erc20_transfer_fixed\", \"description\": \"Transfer tokens to recipient\", \"purpose\": \"main_operation\", \"step\": 2}, {\"alias\": \"post_balance_query\", \"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final token balance to verify transfer\", \"purpose\": \"verification\", \"step\": 3}], \"interaction_config\": {\"allow_error_report\": true, \"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2, \"require_submit\": true}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"token_transfer\", \"key_operation_id\": \"erc20_transfer_fixed\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load ERC20TransferValidator and call its validate() method directly\", \"validator_class\": \"ERC20TransferValidator\"}}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Query initial ERC20 token balance\", \"2. Execute a token transfer\", \"3. Query final balance to verify the transfer\", \"\", \"Scoring is based DIRECTLY on the atomic validator of step 2 (erc20_transfer_fixed).\", \"This eliminates code duplication and ensures consistency with atomic problem scoring.\"], \"difficulty\": \"medium\", \"id\": \"composite_query_erc20_transfer_verify\", \"metadata\": {\"atomic_count\": 3, \"composite_type\": \"sequential\", \"difficulty_notes\": [\"Tests basic multi-step workflow\", \"Scoring reuses ERC20TransferValidator directly\", \"Parameter compliance is enforced separately\"], \"estimated_gas\": 150000, \"priority\": \"P0\", \"requires_contract\": true, \"tags\": [\"composite\", \"query-write-verify\", \"basic\", \"token\", \"P0\"]}, \"natural_language_templates\": [\"Check your {token_symbol} balance, transfer {amount} {token_symbol} to {to_address}, then verify your new balance\", \"Query your {token_symbol} balance, send {amount} tokens to {to_address}, and confirm the balance decreased correctly\", \"First check how much {token_symbol} you have, then transfer {amount} {token_symbol} to {to_address}, and finally verify the transfer succeeded\", \"Query balance of {token_symbol}, transfer {amount} to {to_address}, and check your remaining balance\"], \"parameters\": {\"amount\": {\"compliance_check\": \"strict\", \"description\": \"Transfer amount in tokens (CRITICAL: must not be modified)\", \"generation\": {\"decimals\": 2, \"max\": 50.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"transfer_amount\", \"type\": \"number\", \"used_in_step\": 2}, \"query_address\": {\"description\": \"Address to query balance for (will be set in test environment)\", \"generation\": {\"comment\": \"Random address, balance will be set up in test environment\", \"method\": \"random\"}, \"role\": \"query_target\", \"shared_across_steps\": [1, 3], \"type\": \"address\"}, \"to_address\": {\"compliance_check\": \"strict\", \"description\": \"Recipient address (CRITICAL: must not be modified)\", \"generation\": {\"method\": \"random\"}, \"role\": \"receiver\", \"type\": \"address\", \"used_in_step\": 2}, \"token_address\": {\"description\": \"ERC20 token contract address\", \"generation\": {\"addresses\": [\"0x55d398326f99059fF775485246999027B3197955\"], \"comment\": \"BSC Mainnet USDT\", \"method\": \"from_list\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2, 3], \"type\": \"address\"}, \"token_decimals\": {\"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [1, 2, 3], \"type\": \"integer\"}, \"token_symbol\": {\"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [1, 2, 3], \"type\": \"string\"}}, \"subcategory\": \"basic_workflows\", \"title\": \"Query-Transfer-Verify ERC20 Workflow\", \"validation\": {\"post_conditions\": [{\"description\": \"Two-track validation: error report OR task completion\", \"type\": \"composite_validation\", \"validation_modes\": {\"error_report\": {\"description\": \"If LLM reports error, verify it's valid\", \"score_if_invalid\": 0, \"score_if_valid\": 100}, \"task_completion\": {\"checks\": [{\"critical\": true, \"score_if_violated\": 0, \"type\": \"parameter_compliance\"}, {\"reuse_validator\": \"erc20_transfer_fixed\", \"type\": \"atomic_validator_scoring\"}], \"description\": \"Parameter compliance + atomic validator scoring\"}}, \"weight\": 1.0}], \"pre_conditions\": [{\"description\": \"Agent must have token balance\", \"setup\": \"Set balance based on test scenario\", \"type\": \"token_balance\"}]}, \"version\": \"2.0.0\"}"} | |
| {"id": "composite_query_nft_transfer_verify", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Query NFT Owner, Transfer NFT, and Verify", "description": "A composite problem that tests the LLM's ability to:\n1. Query initial NFT token owner\n2. Execute an ERC721 NFT transfer\n3. Query final NFT token owner to verify the transfer", "natural_language_templates": ["Check the owner of NFT token {token_id}, transfer it to {to_address}, then verify the new owner", "Query who owns NFT #{token_id} from {nft_address}, transfer it to {to_address}, and confirm ownership changed"], "chain": "BSC", "network": "mainnet", "tags": ["query-write-verify", "nft"], "parameter_names": ["nft_address", "to_address", "token_id"], "parameters": "{\"nft_address\": {\"description\": \"ERC721 NFT contract address\", \"generation\": {\"comment\": \"Use dynamically deployed ERC721 test NFT contract from environment\", \"env_key\": \"erc721_token_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2, 3], \"type\": \"address\"}, \"to_address\": {\"description\": \"Recipient address for NFT transfer\", \"generation\": {\"method\": \"random\"}, \"role\": \"receiver\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_id\": {\"description\": \"NFT token ID to transfer\", \"generation\": {\"comment\": \"Use token ID 1 which is pre-minted to test address\", \"method\": \"fixed\", \"value\": 1}, \"role\": \"token_identifier\", \"shared_across_steps\": [1, 2, 3], \"type\": \"integer\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_nft_owner\", \"description\": \"Query initial NFT owner\", \"step\": 1}, {\"atomic_id\": \"erc721_transfer\", \"description\": \"Transfer NFT\", \"step\": 2}, {\"atomic_id\": \"query_nft_owner\", \"description\": \"Query final NFT owner\", \"step\": 3}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"nft_transfer\", \"key_operation_id\": \"erc721_transfer\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load ERC721TransferValidator and call its validate() method directly\", \"validator_class\": \"ERC721TransferValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_query_nft_transfer_verify.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_nft_owner\", \"description\": \"Query initial NFT owner\", \"step\": 1}, {\"atomic_id\": \"erc721_transfer\", \"description\": \"Transfer NFT\", \"step\": 2}, {\"atomic_id\": \"query_nft_owner\", \"description\": \"Query final NFT owner\", \"step\": 3}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Query initial NFT token owner\", \"2. Execute an ERC721 NFT transfer\", \"3. Query final NFT token owner to verify the transfer\"], \"difficulty\": \"medium\", \"id\": \"composite_query_nft_transfer_verify\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Check the owner of NFT token {token_id}, transfer it to {to_address}, then verify the new owner\", \"Query who owns NFT #{token_id} from {nft_address}, transfer it to {to_address}, and confirm ownership changed\"], \"parameters\": {\"nft_address\": {\"description\": \"ERC721 NFT contract address\", \"generation\": {\"comment\": \"Use dynamically deployed ERC721 test NFT contract from environment\", \"env_key\": \"erc721_token_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2, 3], \"type\": \"address\"}, \"to_address\": {\"description\": \"Recipient address for NFT transfer\", \"generation\": {\"method\": \"random\"}, \"role\": \"receiver\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_id\": {\"description\": \"NFT token ID to transfer\", \"generation\": {\"comment\": \"Use token ID 1 which is pre-minted to test address\", \"method\": \"fixed\", \"value\": 1}, \"role\": \"token_identifier\", \"shared_across_steps\": [1, 2, 3], \"type\": \"integer\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"nft_transfer\", \"key_operation_id\": \"erc721_transfer\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load ERC721TransferValidator and call its validate() method directly\", \"validator_class\": \"ERC721TransferValidator\"}, \"tags\": [\"query-write-verify\", \"nft\"], \"title\": \"Query NFT Owner, Transfer NFT, and Verify\"}"} | |
| {"id": "composite_query_reserves_before_after_swap", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Query Reserves, Swap BNB for Tokens, and Verify Reserves Changed", "description": "A composite problem that tests the LLM's ability to:\n1. Query initial liquidity pair reserves\n2. Execute a BNB to token swap on PancakeSwap\n3. Query final liquidity pair reserves to verify the swap affected reserves", "natural_language_templates": ["Check the reserves of {token_symbol}/BNB pair, swap {amount} BNB for {token_symbol}, then verify reserves changed", "Query pair reserves at {pair_address}, execute swap, and confirm the reserves updated correctly"], "chain": "BSC", "network": "mainnet", "tags": ["query-write-verify", "defi", "swap"], "parameter_names": ["amount", "pair_address", "router_address", "slippage", "token_address", "token_symbol", "wbnb_address"], "parameters": "{\"amount\": {\"description\": \"Amount of BNB to swap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"swap_amount\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"BNB\"}, \"pair_address\": {\"description\": \"PancakeSwap WBNB/USDT pair address\", \"generation\": {\"comment\": \"WBNB/USDT LP pair on BSC\", \"method\": \"fixed\", \"value\": \"0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 3], \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5}, \"role\": \"parameter\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"Token to receive (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_out\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_symbol\": {\"description\": \"Token symbol for display\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_in\", \"shared_across_steps\": [2], \"type\": \"address\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_pair_reserves\", \"description\": \"Query initial pair reserves\", \"step\": 1}, {\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Swap BNB for tokens\", \"step\": 2}, {\"atomic_id\": \"query_pair_reserves\", \"description\": \"Query final pair reserves\", \"step\": 3}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"bnb_to_token_swap\", \"key_operation_id\": \"swap_exact_bnb_for_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load SwapExactBNBForTokensValidator and call its validate() method directly\", \"validator_class\": \"SwapExactBNBForTokensValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_query_reserves_before_after_swap.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_pair_reserves\", \"description\": \"Query initial pair reserves\", \"step\": 1}, {\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Swap BNB for tokens\", \"step\": 2}, {\"atomic_id\": \"query_pair_reserves\", \"description\": \"Query final pair reserves\", \"step\": 3}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Query initial liquidity pair reserves\", \"2. Execute a BNB to token swap on PancakeSwap\", \"3. Query final liquidity pair reserves to verify the swap affected reserves\"], \"difficulty\": \"medium\", \"id\": \"composite_query_reserves_before_after_swap\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Check the reserves of {token_symbol}/BNB pair, swap {amount} BNB for {token_symbol}, then verify reserves changed\", \"Query pair reserves at {pair_address}, execute swap, and confirm the reserves updated correctly\"], \"parameters\": {\"amount\": {\"description\": \"Amount of BNB to swap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"swap_amount\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"BNB\"}, \"pair_address\": {\"description\": \"PancakeSwap WBNB/USDT pair address\", \"generation\": {\"comment\": \"WBNB/USDT LP pair on BSC\", \"method\": \"fixed\", \"value\": \"0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 3], \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5}, \"role\": \"parameter\", \"shared_across_steps\": [2], \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"Token to receive (USDT)\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_out\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_symbol\": {\"description\": \"Token symbol for display\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"shared_across_steps\": [2], \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_in\", \"shared_across_steps\": [2], \"type\": \"address\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"bnb_to_token_swap\", \"key_operation_id\": \"swap_exact_bnb_for_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load SwapExactBNBForTokensValidator and call its validate() method directly\", \"validator_class\": \"SwapExactBNBForTokensValidator\"}, \"tags\": [\"query-write-verify\", \"defi\", \"swap\"], \"title\": \"Query Reserves, Swap BNB for Tokens, and Verify Reserves Changed\"}"} | |
| {"id": "composite_query_rewards_harvest_verify", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Query Pending Rewards, Harvest Rewards, and Verify", "description": "A composite problem that tests the LLM's ability to:\n1. Query pending rewards in the staking pool\n2. Execute a harvest rewards operation\n3. Query final reward token balance to verify the harvest", "natural_language_templates": ["Check your pending rewards in the pool, harvest them, then verify the reward tokens in your wallet", "Query pending rewards at {pool_address}, harvest all rewards, and confirm tokens received"], "chain": "BSC", "network": "mainnet", "tags": ["query-write-verify", "defi", "farming"], "parameter_names": ["pool_address", "reward_token_address", "reward_token_decimals"], "parameters": "{\"pool_address\": {\"description\": \"SimpleRewardPool contract address\", \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"reward_token_address\": {\"description\": \"Reward token address (CAKE)\", \"generation\": {\"comment\": \"CAKE token on BSC\", \"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"shared_across_steps\": [3], \"type\": \"address\"}, \"reward_token_decimals\": {\"description\": \"Reward token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2, 3], \"type\": \"integer\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_pending_rewards\", \"description\": \"Query initial pending rewards\", \"step\": 1}, {\"atomic_id\": \"harvest_rewards\", \"description\": \"Harvest rewards\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final reward token balance\", \"step\": 3}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"rewards_harvest\", \"key_operation_id\": \"harvest_rewards\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load HarvestRewardsValidator and call its validate() method directly\", \"validator_class\": \"HarvestRewardsValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_query_rewards_harvest_verify.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_pending_rewards\", \"description\": \"Query initial pending rewards\", \"step\": 1}, {\"atomic_id\": \"harvest_rewards\", \"description\": \"Harvest rewards\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query final reward token balance\", \"step\": 3}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Query pending rewards in the staking pool\", \"2. Execute a harvest rewards operation\", \"3. Query final reward token balance to verify the harvest\"], \"difficulty\": \"medium\", \"id\": \"composite_query_rewards_harvest_verify\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Check your pending rewards in the pool, harvest them, then verify the reward tokens in your wallet\", \"Query pending rewards at {pool_address}, harvest all rewards, and confirm tokens received\"], \"parameters\": {\"pool_address\": {\"description\": \"SimpleRewardPool contract address\", \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2], \"type\": \"address\"}, \"reward_token_address\": {\"description\": \"Reward token address (CAKE)\", \"generation\": {\"comment\": \"CAKE token on BSC\", \"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"shared_across_steps\": [3], \"type\": \"address\"}, \"reward_token_decimals\": {\"description\": \"Reward token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2, 3], \"type\": \"integer\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"rewards_harvest\", \"key_operation_id\": \"harvest_rewards\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load HarvestRewardsValidator and call its validate() method directly\", \"validator_class\": \"HarvestRewardsValidator\"}, \"tags\": [\"query-write-verify\", \"defi\", \"farming\"], \"title\": \"Query Pending Rewards, Harvest Rewards, and Verify\"}"} | |
| {"id": "composite_query_staked_stake_verify", "split": "composite", "task_type": "composite", "version": "", "category": "composite_problems", "subcategory": "", "difficulty": "medium", "title": "Query Staked Amount, Stake Token, and Verify", "description": "A composite problem that tests the LLM's ability to:\n1. Query initial staked amount in the pool\n2. Execute a token staking operation\n3. Query final staked amount to verify the stake", "natural_language_templates": ["Check your staked amount, stake {amount} CAKE tokens, then verify the new staked amount", "Query your staked balance in the pool, stake {amount} tokens, and confirm the stake increased"], "chain": "BSC", "network": "mainnet", "tags": ["query-write-verify", "defi", "staking"], "parameter_names": ["amount", "pool_address", "token_address", "token_decimals"], "parameters": "{\"amount\": {\"description\": \"Amount of CAKE to stake\", \"generation\": {\"decimals\": 1, \"max\": 8.0, \"method\": \"random\", \"min\": 2.0}, \"role\": \"stake_amount\", \"shared_across_steps\": [2], \"type\": \"number\"}, \"pool_address\": {\"description\": \"SimpleStaking contract address\", \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2, 3], \"type\": \"address\"}, \"token_address\": {\"description\": \"CAKE token address (staking token)\", \"generation\": {\"comment\": \"BSC Mainnet CAKE token\", \"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"contract\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_decimals\": {\"description\": \"CAKE token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}}", "validation": "{}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_staked_amount\", \"description\": \"Query initial staked amount\", \"step\": 1}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Stake tokens\", \"step\": 2}, {\"atomic_id\": \"query_staked_amount\", \"description\": \"Query final staked amount\", \"step\": 3}]}", "interaction_config": "{\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}", "scoring_strategy": "{\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"token_stake\", \"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load StakeSingleTokenValidator and call its validate() method directly\", \"validator_class\": \"StakeSingleTokenValidator\"}", "metadata": "{}", "source_path": "composite_problems/composite_query_staked_stake_verify.json", "raw_definition": "{\"blockchain\": {\"chain\": \"BSC\", \"network\": \"mainnet\"}, \"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_staked_amount\", \"description\": \"Query initial staked amount\", \"step\": 1}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Stake tokens\", \"step\": 2}, {\"atomic_id\": \"query_staked_amount\", \"description\": \"Query final staked amount\", \"step\": 3}]}, \"description\": [\"A composite problem that tests the LLM's ability to:\", \"1. Query initial staked amount in the pool\", \"2. Execute a token staking operation\", \"3. Query final staked amount to verify the stake\"], \"difficulty\": \"medium\", \"id\": \"composite_query_staked_stake_verify\", \"interaction_config\": {\"comment\": \"max_rounds = optimal_steps * max_rounds_multiplier = 2 * 2 = 4\", \"max_rounds_multiplier\": 2, \"optimal_steps\": 2}, \"natural_language_templates\": [\"Check your staked amount, stake {amount} CAKE tokens, then verify the new staked amount\", \"Query your staked balance in the pool, stake {amount} tokens, and confirm the stake increased\"], \"parameters\": {\"amount\": {\"description\": \"Amount of CAKE to stake\", \"generation\": {\"decimals\": 1, \"max\": 8.0, \"method\": \"random\", \"min\": 2.0}, \"role\": \"stake_amount\", \"shared_across_steps\": [2], \"type\": \"number\"}, \"pool_address\": {\"description\": \"SimpleStaking contract address\", \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"shared_across_steps\": [1, 2, 3], \"type\": \"address\"}, \"token_address\": {\"description\": \"CAKE token address (staking token)\", \"generation\": {\"comment\": \"BSC Mainnet CAKE token\", \"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"contract\", \"shared_across_steps\": [2], \"type\": \"address\"}, \"token_decimals\": {\"description\": \"CAKE token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"shared_across_steps\": [2], \"type\": \"integer\"}}, \"scoring_strategy\": {\"description\": \"Directly reuse the atomic validator of the key operation - NO code duplication!\", \"key_operation_alias\": \"token_stake\", \"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\", \"note\": \"The validator will load StakeSingleTokenValidator and call its validate() method directly\", \"validator_class\": \"StakeSingleTokenValidator\"}, \"tags\": [\"query-write-verify\", \"defi\", \"staking\"], \"title\": \"Query Staked Amount, Stake Token, and Verify\"}"} | |
| {"id": "composite_query_swap_verify_output", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complete_workflow", "difficulty": "medium", "title": "Query Expected Output, Swap BNB, and Verify Result", "description": "Complete swap verification workflow: query expected output, execute swap, and verify.\n\nThis is a 3-step process:\n1. Query expected swap output using PancakeSwap Router's getAmountsOut()\n2. Execute the swap using swapExactETHForTokens()\n3. Query token balance to verify the received amount\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- getAmountsOut(uint amountIn, address[] path): view function\n- swapExactETHForTokens: 0x7ff36ab5 (sends BNB, receives tokens)\n- Token out: USDT (0x55d398326f99059fF775485246999027B3197955)\n- Path: [WBNB, Token_Out]\n\nNote: The key operation is the swap since it's the core transaction.", "natural_language_templates": ["Calculate expected output for {amount_bnb} BNB swap to {token_out_symbol}, execute the swap, then verify you got the expected amount", "Query expected swap output using getAmountsOut, swap {amount_bnb} BNB for {token_out_symbol}, and confirm the output matches", "First check how much {token_out_symbol} you would get for {amount_bnb} BNB, then swap, and verify the received amount"], "chain": "", "network": "", "tags": ["defi", "swap", "verification", "query", "pancakeswap", "complete-workflow", "medium"], "parameter_names": ["amount_bnb", "router_address", "slippage", "token_out_address", "token_out_decimals", "token_out_symbol", "wbnb_address"], "parameters": "{\"amount_bnb\": {\"description\": \"Amount of BNB to swap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_out_address\": {\"description\": \"Output token address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"token_out_decimals\": {\"description\": \"Output token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"Output tokens received\", \"type\": \"token_received\", \"weight\": 0.4}, {\"description\": \"Correct BNB amount spent\", \"type\": \"bnb_spent\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for swap\", \"min_balance\": \"0.1 BNB\", \"type\": \"bnb_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"query_swap_output_amount\", \"description\": \"Query expected swap output using getAmountsOut\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Execute BNB to token swap\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Verify received token amount\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"query-swap-verify\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"swap_exact_bnb_for_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Three-step verification workflow\", \"Must query expected output first\", \"Compare expected vs actual output\"], \"estimated_gas\": 200000, \"requires_approval\": false, \"tags\": [\"defi\", \"swap\", \"verification\", \"query\", \"pancakeswap\", \"complete-workflow\", \"medium\"]}", "source_path": "composite_problems/composite_query_swap_verify_output.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"query_swap_output_amount\", \"description\": \"Query expected swap output using getAmountsOut\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Execute BNB to token swap\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Verify received token amount\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"query-swap-verify\"}, \"description\": [\"Complete swap verification workflow: query expected output, execute swap, and verify.\", \"\", \"This is a 3-step process:\", \"1. Query expected swap output using PancakeSwap Router's getAmountsOut()\", \"2. Execute the swap using swapExactETHForTokens()\", \"3. Query token balance to verify the received amount\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- getAmountsOut(uint amountIn, address[] path): view function\", \"- swapExactETHForTokens: 0x7ff36ab5 (sends BNB, receives tokens)\", \"- Token out: USDT (0x55d398326f99059fF775485246999027B3197955)\", \"- Path: [WBNB, Token_Out]\", \"\", \"Note: The key operation is the swap since it's the core transaction.\"], \"difficulty\": \"medium\", \"id\": \"composite_query_swap_verify_output\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Three-step verification workflow\", \"Must query expected output first\", \"Compare expected vs actual output\"], \"estimated_gas\": 200000, \"requires_approval\": false, \"tags\": [\"defi\", \"swap\", \"verification\", \"query\", \"pancakeswap\", \"complete-workflow\", \"medium\"]}, \"natural_language_templates\": [\"Calculate expected output for {amount_bnb} BNB swap to {token_out_symbol}, execute the swap, then verify you got the expected amount\", \"Query expected swap output using getAmountsOut, swap {amount_bnb} BNB for {token_out_symbol}, and confirm the output matches\", \"First check how much {token_out_symbol} you would get for {amount_bnb} BNB, then swap, and verify the received amount\"], \"parameters\": {\"amount_bnb\": {\"description\": \"Amount of BNB to swap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_out_address\": {\"description\": \"Output token address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"token_out_decimals\": {\"description\": \"Output token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"swap_exact_bnb_for_tokens\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complete_workflow\", \"title\": \"Query Expected Output, Swap BNB, and Verify Result\", \"validation\": {\"post_conditions\": [{\"description\": \"Swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"Output tokens received\", \"type\": \"token_received\", \"weight\": 0.4}, {\"description\": \"Correct BNB amount spent\", \"type\": \"bnb_spent\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for swap\", \"min_balance\": \"0.1 BNB\", \"type\": \"bnb_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_remove_liquidity_unwrap", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "liquidity_workflows", "difficulty": "medium", "title": "Remove Liquidity and Unwrap to BNB", "description": "Remove liquidity from a BNB/Token pool and convert WBNB back to BNB.\n\nThis is a 3-step process:\n1. Remove {liquidity_percentage}% liquidity from BNB/{token_symbol} pool (receive WBNB + {token_symbol})\n2. Unwrap the received WBNB to BNB\n3. Query your BNB balance to verify the withdrawal\n\nContract addresses:\n- WBNB: {wbnb_address}\n- Token ({token_symbol}): {token_address}\n- PancakeSwap Router V2: {router_address}\n\nIMPORTANT: The key operation is step 1 (removeLiquidityETH).\n\nFunctions:\n- Router removeLiquidityETH(token, liquidity, amountTokenMin, amountETHMin, to, deadline): 0x02751cec\n Returns BNB directly, no need to unwrap!\n- WBNB withdraw(uint256 wad): 0x2e1a7d4d (if using removeLiquidity instead)\n\nNote: Your LP tokens are already approved for the Router.\nLP Token Address: Get from PancakeSwap Factory by calling getPair(WBNB, Token)", "natural_language_templates": ["Remove liquidity from BNB/{token_symbol} pool, unwrap the WBNB to BNB, then check your BNB balance", "Withdraw liquidity to get WBNB and {token_symbol}, then convert WBNB back to BNB", "Remove {liquidity_percentage}% of your LP tokens from BNB/{token_symbol} pool, unwrap received WBNB, and verify BNB balance"], "chain": "", "network": "", "tags": ["liquidity", "unwrap", "defi", "pancakeswap", "wbnb", "medium"], "parameter_names": ["liquidity_percentage", "router_address", "slippage", "token_address", "token_decimals", "token_symbol", "wbnb_address"], "parameters": "{\"liquidity_percentage\": {\"description\": \"Percentage of LP tokens to remove\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"amount\", \"type\": \"number\", \"unit\": \"percent\"}, \"router_address\": {\"description\": \"PancakeSwap Router V2 address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"router\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"Token paired with BNB (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"wbnb\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"LP tokens burned, received tokens\", \"type\": \"liquidity_removed\", \"weight\": 0.6}, {\"description\": \"BNB balance increased\", \"type\": \"bnb_increased\", \"weight\": 0.4}], \"pre_conditions\": [{\"description\": \"Agent must have LP tokens\", \"min_balance\": \"0.1 LP\", \"type\": \"lp_token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"remove_liquidity_bnb_token\", \"description\": \"Remove liquidity from BNB/Token pool\", \"role\": \"key_operation\", \"step\": 1}, {\"atomic_id\": \"wbnb_withdraw\", \"description\": \"Unwrap WBNB to BNB (if needed)\", \"role\": \"conversion\", \"step\": 2}, {\"atomic_id\": \"query_bnb_balance\", \"description\": \"Verify BNB balance\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"remove-unwrap-verify\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"remove_liquidity_bnb_token\", \"key_operation_step\": 1, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Requires LP token approval\", \"Complex liquidity calculation\", \"Optional unwrap step\"], \"estimated_gas\": 300000, \"requires_approval\": true, \"tags\": [\"liquidity\", \"unwrap\", \"defi\", \"pancakeswap\", \"wbnb\", \"medium\"]}", "source_path": "composite_problems/composite_remove_liquidity_unwrap.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"remove_liquidity_bnb_token\", \"description\": \"Remove liquidity from BNB/Token pool\", \"role\": \"key_operation\", \"step\": 1}, {\"atomic_id\": \"wbnb_withdraw\", \"description\": \"Unwrap WBNB to BNB (if needed)\", \"role\": \"conversion\", \"step\": 2}, {\"atomic_id\": \"query_bnb_balance\", \"description\": \"Verify BNB balance\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"remove-unwrap-verify\"}, \"description\": [\"Remove liquidity from a BNB/Token pool and convert WBNB back to BNB.\", \"\", \"This is a 3-step process:\", \"1. Remove {liquidity_percentage}% liquidity from BNB/{token_symbol} pool (receive WBNB + {token_symbol})\", \"2. Unwrap the received WBNB to BNB\", \"3. Query your BNB balance to verify the withdrawal\", \"\", \"Contract addresses:\", \"- WBNB: {wbnb_address}\", \"- Token ({token_symbol}): {token_address}\", \"- PancakeSwap Router V2: {router_address}\", \"\", \"IMPORTANT: The key operation is step 1 (removeLiquidityETH).\", \"\", \"Functions:\", \"- Router removeLiquidityETH(token, liquidity, amountTokenMin, amountETHMin, to, deadline): 0x02751cec\", \" Returns BNB directly, no need to unwrap!\", \"- WBNB withdraw(uint256 wad): 0x2e1a7d4d (if using removeLiquidity instead)\", \"\", \"Note: Your LP tokens are already approved for the Router.\", \"LP Token Address: Get from PancakeSwap Factory by calling getPair(WBNB, Token)\"], \"difficulty\": \"medium\", \"id\": \"composite_remove_liquidity_unwrap\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Requires LP token approval\", \"Complex liquidity calculation\", \"Optional unwrap step\"], \"estimated_gas\": 300000, \"requires_approval\": true, \"tags\": [\"liquidity\", \"unwrap\", \"defi\", \"pancakeswap\", \"wbnb\", \"medium\"]}, \"natural_language_templates\": [\"Remove liquidity from BNB/{token_symbol} pool, unwrap the WBNB to BNB, then check your BNB balance\", \"Withdraw liquidity to get WBNB and {token_symbol}, then convert WBNB back to BNB\", \"Remove {liquidity_percentage}% of your LP tokens from BNB/{token_symbol} pool, unwrap received WBNB, and verify BNB balance\"], \"parameters\": {\"liquidity_percentage\": {\"description\": \"Percentage of LP tokens to remove\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"amount\", \"type\": \"number\", \"unit\": \"percent\"}, \"router_address\": {\"description\": \"PancakeSwap Router V2 address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"router\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_address\": {\"description\": \"Token paired with BNB (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"wbnb\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"remove_liquidity_bnb_token\", \"key_operation_step\": 1, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"liquidity_workflows\", \"title\": \"Remove Liquidity and Unwrap to BNB\", \"validation\": {\"post_conditions\": [{\"description\": \"LP tokens burned, received tokens\", \"type\": \"liquidity_removed\", \"weight\": 0.6}, {\"description\": \"BNB balance increased\", \"type\": \"bnb_increased\", \"weight\": 0.4}], \"pre_conditions\": [{\"description\": \"Agent must have LP tokens\", \"min_balance\": \"0.1 LP\", \"type\": \"lp_token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_split_and_transfer", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "distribution_workflows", "difficulty": "medium", "title": "Split and Transfer Token Balance", "description": "Split your entire token balance between two recipients.\n\nThis is a 3-step process:\n1. Transfer 50% of your {token_symbol} balance to {address1}\n2. Transfer the remaining 50% (all remaining) to {address2}\n3. Query your balance to verify it is zero (or near zero)\n\nToken: {token_symbol} at {token_address}\nToken decimals: 18\n\nIMPORTANT:\n- First calculate your current balance\n- Transfer exactly 50% to address1\n- Transfer remaining balance (100% of what's left) to address2\n- The key operation is the second transfer (step 2)\n\nERC20 transfer function:\n- transfer(address to, uint256 amount)\n- Function selector: 0xa9059cbb\n\nExample: If you have 100 tokens:\n- Step 1: Transfer 50 tokens to address1\n- Step 2: Transfer 50 tokens to address2\n- Result: Your balance should be 0", "natural_language_templates": ["Split your {token_symbol} balance: send 50% to {address1} and 50% to {address2}, then verify you transferred all", "Distribute your {token_symbol} equally between {address1} and {address2}", "Transfer half of your {token_symbol} to {address1}, the other half to {address2}, and verify balance is zero"], "chain": "", "network": "", "tags": ["split", "distribution", "percentage", "erc20", "medium"], "parameter_names": ["address1", "address2", "percentage", "to_address", "token_address", "token_decimals", "token_symbol"], "parameters": "{\"address1\": {\"description\": \"First recipient address (receives 50%)\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address (receives remaining 50%)\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_2\", \"type\": \"address\"}, \"percentage\": {\"description\": \"Percentage to transfer (100% of remaining for key operation)\", \"generation\": {\"method\": \"fixed\", \"value\": 100}, \"role\": \"transfer_percentage\", \"type\": \"number\", \"unit\": \"percent\"}, \"to_address\": {\"description\": \"Key operation recipient (same as address2)\", \"generation\": {\"method\": \"random\"}, \"role\": \"key_recipient\", \"type\": \"address\"}, \"token_address\": {\"description\": \"ERC20 token contract address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Balance split equally between recipients\", \"type\": \"balance_split\", \"weight\": 0.7}, {\"description\": \"Agent balance should be zero after transfers\", \"type\": \"final_balance_zero\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have token balance to split\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"erc20_transfer_percentage\", \"description\": \"Transfer 50% to address 1\", \"role\": \"first_transfer\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_percentage\", \"description\": \"Transfer remaining 50% to address 2\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Verify balance is zero\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"split-transfer\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"erc20_transfer_percentage\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Requires balance calculation\", \"Two sequential transfers\", \"Verification step included\"], \"estimated_gas\": 120000, \"requires_approval\": false, \"tags\": [\"split\", \"distribution\", \"percentage\", \"erc20\", \"medium\"]}", "source_path": "composite_problems/composite_split_and_transfer.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"erc20_transfer_percentage\", \"description\": \"Transfer 50% to address 1\", \"role\": \"first_transfer\", \"step\": 1}, {\"atomic_id\": \"erc20_transfer_percentage\", \"description\": \"Transfer remaining 50% to address 2\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Verify balance is zero\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"split-transfer\"}, \"description\": [\"Split your entire token balance between two recipients.\", \"\", \"This is a 3-step process:\", \"1. Transfer 50% of your {token_symbol} balance to {address1}\", \"2. Transfer the remaining 50% (all remaining) to {address2}\", \"3. Query your balance to verify it is zero (or near zero)\", \"\", \"Token: {token_symbol} at {token_address}\", \"Token decimals: 18\", \"\", \"IMPORTANT:\", \"- First calculate your current balance\", \"- Transfer exactly 50% to address1\", \"- Transfer remaining balance (100% of what's left) to address2\", \"- The key operation is the second transfer (step 2)\", \"\", \"ERC20 transfer function:\", \"- transfer(address to, uint256 amount)\", \"- Function selector: 0xa9059cbb\", \"\", \"Example: If you have 100 tokens:\", \"- Step 1: Transfer 50 tokens to address1\", \"- Step 2: Transfer 50 tokens to address2\", \"- Result: Your balance should be 0\"], \"difficulty\": \"medium\", \"id\": \"composite_split_and_transfer\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Requires balance calculation\", \"Two sequential transfers\", \"Verification step included\"], \"estimated_gas\": 120000, \"requires_approval\": false, \"tags\": [\"split\", \"distribution\", \"percentage\", \"erc20\", \"medium\"]}, \"natural_language_templates\": [\"Split your {token_symbol} balance: send 50% to {address1} and 50% to {address2}, then verify you transferred all\", \"Distribute your {token_symbol} equally between {address1} and {address2}\", \"Transfer half of your {token_symbol} to {address1}, the other half to {address2}, and verify balance is zero\"], \"parameters\": {\"address1\": {\"description\": \"First recipient address (receives 50%)\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_1\", \"type\": \"address\"}, \"address2\": {\"description\": \"Second recipient address (receives remaining 50%)\", \"generation\": {\"method\": \"random\"}, \"role\": \"recipient_2\", \"type\": \"address\"}, \"percentage\": {\"description\": \"Percentage to transfer (100% of remaining for key operation)\", \"generation\": {\"method\": \"fixed\", \"value\": 100}, \"role\": \"transfer_percentage\", \"type\": \"number\", \"unit\": \"percent\"}, \"to_address\": {\"description\": \"Key operation recipient (same as address2)\", \"generation\": {\"method\": \"random\"}, \"role\": \"key_recipient\", \"type\": \"address\"}, \"token_address\": {\"description\": \"ERC20 token contract address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_symbol\": {\"description\": \"Token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}}, \"scoring_strategy\": {\"key_operation_id\": \"erc20_transfer_percentage\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"distribution_workflows\", \"title\": \"Split and Transfer Token Balance\", \"validation\": {\"post_conditions\": [{\"description\": \"Balance split equally between recipients\", \"type\": \"balance_split\", \"weight\": 0.7}, {\"description\": \"Agent balance should be zero after transfers\", \"type\": \"final_balance_zero\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have token balance to split\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_swap_approve_stake", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complete_workflow", "difficulty": "medium", "title": "Swap BNB for CAKE, Approve, and Stake", "description": "Complete DeFi workflow: swap BNB for tokens, approve, and stake.\n\nThis is a 3-step process:\n1. Swap BNB for CAKE using PancakeSwap swapExactETHForTokens\n2. Approve the staking contract to spend CAKE\n3. Stake the received CAKE tokens\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- CAKE Token: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\n- swapExactETHForTokens: 0x7ff36ab5 (sends BNB, receives tokens)\n- approve(address spender, uint256 amount): 0x095ea7b3\n- Staking function: deposit(uint256 amount)\n\nIMPORTANT: The staking contract uses deposit(uint256) function, NOT stake().\nThe key operation is the stake (step 3) since it's the final goal.", "natural_language_templates": ["Swap {amount_bnb} BNB for CAKE, approve the staking contract, then stake all received CAKE", "Exchange {amount_bnb} BNB for CAKE on PancakeSwap, then stake all CAKE in the pool", "Use {amount_bnb} BNB to buy CAKE, approve staking contract at {staking_contract}, and stake the CAKE"], "chain": "", "network": "", "tags": ["defi", "swap-stake", "complete-workflow", "pancakeswap", "staking", "medium"], "parameter_names": ["amount_bnb", "cake_address", "cake_decimals", "cake_symbol", "router_address", "slippage", "staking_contract", "wbnb_address"], "parameters": "{\"amount_bnb\": {\"description\": \"Amount of BNB to swap for CAKE\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"cake_decimals\": {\"description\": \"CAKE token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"cake_symbol\": {\"description\": \"CAKE token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 10.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"staking_contract\": {\"description\": \"Staking contract address (SimpleStaking)\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Stake transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"Staking balance increased\", \"type\": \"staking_balance_increase\", \"weight\": 0.4}, {\"description\": \"CAKE balance decreased (staked)\", \"type\": \"cake_balance_decrease\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for swap\", \"min_balance\": \"0.1 BNB\", \"type\": \"bnb_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Swap BNB for CAKE tokens\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve staking contract to spend CAKE\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Stake CAKE tokens\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"swap-approve-stake\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Three-step complete workflow\", \"Must handle dynamic CAKE amount from swap\", \"Requires understanding of staking mechanism\"], \"estimated_gas\": 400000, \"requires_approval\": true, \"tags\": [\"defi\", \"swap-stake\", \"complete-workflow\", \"pancakeswap\", \"staking\", \"medium\"]}", "source_path": "composite_problems/composite_swap_approve_stake.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Swap BNB for CAKE tokens\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve staking contract to spend CAKE\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"stake_single_token\", \"description\": \"Stake CAKE tokens\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"swap-approve-stake\"}, \"description\": [\"Complete DeFi workflow: swap BNB for tokens, approve, and stake.\", \"\", \"This is a 3-step process:\", \"1. Swap BNB for CAKE using PancakeSwap swapExactETHForTokens\", \"2. Approve the staking contract to spend CAKE\", \"3. Stake the received CAKE tokens\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- CAKE Token: 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\", \"- swapExactETHForTokens: 0x7ff36ab5 (sends BNB, receives tokens)\", \"- approve(address spender, uint256 amount): 0x095ea7b3\", \"- Staking function: deposit(uint256 amount)\", \"\", \"IMPORTANT: The staking contract uses deposit(uint256) function, NOT stake().\", \"The key operation is the stake (step 3) since it's the final goal.\"], \"difficulty\": \"medium\", \"id\": \"composite_swap_approve_stake\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Three-step complete workflow\", \"Must handle dynamic CAKE amount from swap\", \"Requires understanding of staking mechanism\"], \"estimated_gas\": 400000, \"requires_approval\": true, \"tags\": [\"defi\", \"swap-stake\", \"complete-workflow\", \"pancakeswap\", \"staking\", \"medium\"]}, \"natural_language_templates\": [\"Swap {amount_bnb} BNB for CAKE, approve the staking contract, then stake all received CAKE\", \"Exchange {amount_bnb} BNB for CAKE on PancakeSwap, then stake all CAKE in the pool\", \"Use {amount_bnb} BNB to buy CAKE, approve staking contract at {staking_contract}, and stake the CAKE\"], \"parameters\": {\"amount_bnb\": {\"description\": \"Amount of BNB to swap for CAKE\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"cake_address\": {\"description\": \"CAKE token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"token\", \"type\": \"address\"}, \"cake_decimals\": {\"description\": \"CAKE token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"cake_symbol\": {\"description\": \"CAKE token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 10.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"staking_contract\": {\"description\": \"Staking contract address (SimpleStaking)\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_staking_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB address (for swap path)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"intermediate\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"stake_single_token\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complete_workflow\", \"title\": \"Swap BNB for CAKE, Approve, and Stake\", \"validation\": {\"post_conditions\": [{\"description\": \"Stake transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"Staking balance increased\", \"type\": \"staking_balance_increase\", \"weight\": 0.4}, {\"description\": \"CAKE balance decreased (staked)\", \"type\": \"cake_balance_decrease\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for swap\", \"min_balance\": \"0.1 BNB\", \"type\": \"bnb_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_swap_unwrap_bnb", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "swap_unwrap", "difficulty": "medium", "title": "Swap Token to WBNB and Unwrap to BNB", "description": "Swap ERC20 tokens for WBNB and then unwrap the WBNB to get native BNB.\n\nThis is a 2-step process:\n1. Swap tokens for WBNB using swapExactTokensForTokens (Token needs to be approved first)\n2. Withdraw WBNB to get native BNB using withdraw(uint256)\n\nTechnical details:\n- WBNB contract address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- swapExactTokensForTokens: 0x38ed1739\n- WBNB withdraw(uint256): 0x2e1a7d4d\n\nNote: The key operation is wbnb_withdraw since the final goal is to get native BNB.", "natural_language_templates": ["Swap {amount_in} {token_in_symbol} for WBNB on PancakeSwap, then unwrap all WBNB to BNB", "Exchange {amount_in} {token_in_symbol} tokens for WBNB, then withdraw WBNB to get BNB", "Convert {amount_in} {token_in_symbol} to WBNB using PancakeSwap, then unwrap to native BNB"], "chain": "", "network": "", "tags": ["swap-unwrap", "defi", "wbnb", "pancakeswap", "unwrap", "two-step"], "parameter_names": ["amount_in", "router_address", "slippage", "token_in_address", "token_in_decimals", "token_in_symbol", "wbnb_address"], "parameters": "{\"amount_in\": {\"description\": \"Amount of input tokens to swap\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_in_address\": {\"description\": \"Input token address to swap\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"type\": \"address\"}, \"token_in_decimals\": {\"description\": \"Input token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_out\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Withdraw transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"address\": \"{wbnb_address}\", \"description\": \"Correct WBNB contract called\", \"type\": \"contract_called\", \"weight\": 0.2}, {\"description\": \"Correct function withdraw(uint256) called\", \"selector\": \"0x2e1a7d4d\", \"type\": \"function_selector\", \"weight\": 0.2}, {\"description\": \"Native BNB balance increased\", \"type\": \"bnb_balance_increase\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient input token balance\", \"min_balance\": \"50 tokens\", \"type\": \"token_balance\"}, {\"description\": \"Token must be approved for Router\", \"type\": \"token_approval\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap input token for WBNB using PancakeSwap\", \"role\": \"swap_to_wbnb\", \"step\": 1}, {\"atomic_id\": \"wbnb_withdraw\", \"description\": \"Withdraw WBNB to get native BNB\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"swap-unwrap\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"wbnb_withdraw\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Two-step process: swap to WBNB, then unwrap\", \"Must correctly sequence both operations\", \"Need to handle the swap output amount for withdraw\"], \"estimated_gas\": 260000, \"requires_approval\": true, \"tags\": [\"swap-unwrap\", \"defi\", \"wbnb\", \"pancakeswap\", \"unwrap\", \"two-step\"]}", "source_path": "composite_problems/composite_swap_unwrap_bnb.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap input token for WBNB using PancakeSwap\", \"role\": \"swap_to_wbnb\", \"step\": 1}, {\"atomic_id\": \"wbnb_withdraw\", \"description\": \"Withdraw WBNB to get native BNB\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"swap-unwrap\"}, \"description\": [\"Swap ERC20 tokens for WBNB and then unwrap the WBNB to get native BNB.\", \"\", \"This is a 2-step process:\", \"1. Swap tokens for WBNB using swapExactTokensForTokens (Token needs to be approved first)\", \"2. Withdraw WBNB to get native BNB using withdraw(uint256)\", \"\", \"Technical details:\", \"- WBNB contract address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- swapExactTokensForTokens: 0x38ed1739\", \"- WBNB withdraw(uint256): 0x2e1a7d4d\", \"\", \"Note: The key operation is wbnb_withdraw since the final goal is to get native BNB.\"], \"difficulty\": \"medium\", \"id\": \"composite_swap_unwrap_bnb\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Two-step process: swap to WBNB, then unwrap\", \"Must correctly sequence both operations\", \"Need to handle the swap output amount for withdraw\"], \"estimated_gas\": 260000, \"requires_approval\": true, \"tags\": [\"swap-unwrap\", \"defi\", \"wbnb\", \"pancakeswap\", \"unwrap\", \"two-step\"]}, \"natural_language_templates\": [\"Swap {amount_in} {token_in_symbol} for WBNB on PancakeSwap, then unwrap all WBNB to BNB\", \"Exchange {amount_in} {token_in_symbol} tokens for WBNB, then withdraw WBNB to get BNB\", \"Convert {amount_in} {token_in_symbol} to WBNB using PancakeSwap, then unwrap to native BNB\"], \"parameters\": {\"amount_in\": {\"description\": \"Amount of input tokens to swap\", \"generation\": {\"decimals\": 2, \"max\": 10.0, \"method\": \"random\", \"min\": 1.0}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"token\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_in_address\": {\"description\": \"Input token address to swap\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_in\", \"type\": \"address\"}, \"token_in_decimals\": {\"description\": \"Input token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_out\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"wbnb_withdraw\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"swap_unwrap\", \"title\": \"Swap Token to WBNB and Unwrap to BNB\", \"validation\": {\"post_conditions\": [{\"description\": \"Withdraw transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"address\": \"{wbnb_address}\", \"description\": \"Correct WBNB contract called\", \"type\": \"contract_called\", \"weight\": 0.2}, {\"description\": \"Correct function withdraw(uint256) called\", \"selector\": \"0x2e1a7d4d\", \"type\": \"function_selector\", \"weight\": 0.2}, {\"description\": \"Native BNB balance increased\", \"type\": \"bnb_balance_increase\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient input token balance\", \"min_balance\": \"50 tokens\", \"type\": \"token_balance\"}, {\"description\": \"Token must be approved for Router\", \"type\": \"token_approval\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_triple_pool_liquidity", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "advanced_defi", "difficulty": "hard", "title": "Triple Pool: BNB to Stablecoin Liquidity", "description": "Complex DeFi workflow to convert BNB to stablecoin liquidity position.\n\nThis is a 6-step process:\n1. Swap BNB for USDT on PancakeSwap\n2. Approve USDT for swapping\n3. Swap half USDT for BUSD\n4. Approve remaining USDT for liquidity\n5. Approve BUSD for liquidity\n6. Add liquidity to USDT/BUSD pool\n\nTechnical details:\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n- USDT: 0x55d398326f99059fF775485246999027B3197955\n- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\n- USDT/BUSD LP: 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\n\nFunctions:\n- swapExactETHForTokens: BNB → USDT\n- swapExactTokensForTokens: USDT → BUSD\n- addLiquidity: Add USDT + BUSD to pool\n\nNote: Approvals required for both swap and liquidity operations.\nBSC does NOT support ENS. Use hex addresses directly.", "natural_language_templates": ["Swap {amount} BNB to USDT, then swap half to BUSD, and add liquidity to USDT/BUSD pool", "Convert BNB to USDT and BUSD, then provide liquidity to the stablecoin pool", "Multi-step liquidity: BNB → USDT → BUSD, then add USDT/BUSD liquidity on PancakeSwap"], "chain": "", "network": "", "tags": ["defi", "liquidity", "multi-swap", "stablecoin", "pancakeswap", "advanced", "hard"], "parameter_names": ["amount", "busd_address", "lp_token_address", "router_address", "slippage", "token_a_address", "token_b_address", "token_decimals", "usdt_address", "wbnb_address"], "parameters": "{\"amount\": {\"description\": \"Amount of BNB to start with\", \"generation\": {\"decimals\": 1, \"max\": 2.0, \"method\": \"random\", \"min\": 0.5}, \"role\": \"input\", \"type\": \"number\", \"unit\": \"BNB\"}, \"busd_address\": {\"description\": \"BUSD token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"lp_token_address\": {\"description\": \"USDT/BUSD LP token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"lp_token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"Token A address for liquidity (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_b_address\": {\"description\": \"Token B address for liquidity (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Add liquidity transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"USDT acquired from BNB swap\", \"type\": \"usdt_acquired\", \"weight\": 0.15}, {\"description\": \"BUSD acquired from USDT swap\", \"type\": \"busd_acquired\", \"weight\": 0.15}, {\"description\": \"Both tokens approved for liquidity\", \"type\": \"tokens_approved\", \"weight\": 0.2}, {\"description\": \"LP tokens received from adding liquidity\", \"type\": \"lp_received\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB\", \"min_balance\": \"5 BNB\", \"type\": \"bnb_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Swap BNB for USDT\", \"role\": \"acquisition\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve USDT for swap\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT for BUSD\", \"role\": \"conversion\", \"step\": 3}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve USDT for liquidity\", \"role\": \"approval\", \"step\": 4}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve BUSD for liquidity\", \"role\": \"approval\", \"step\": 5}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add USDT/BUSD liquidity\", \"role\": \"key_operation\", \"step\": 6}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 12, \"optimal_steps\": 6, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 6, \"pattern\": \"multi-swap-liquidity\"}", "interaction_config": "{}", "scoring_strategy": "{\"key_operation_id\": \"add_liquidity_tokens\", \"key_operation_step\": 6, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Six-step workflow with multiple swaps\", \"Three approval transactions required\", \"Stablecoin pool liquidity provision\", \"Complex token flow management\"], \"estimated_gas\": 1000000, \"requires_approval\": true, \"tags\": [\"defi\", \"liquidity\", \"multi-swap\", \"stablecoin\", \"pancakeswap\", \"advanced\", \"hard\"]}", "source_path": "composite_problems/composite_triple_pool_liquidity.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"swap_exact_bnb_for_tokens\", \"description\": \"Swap BNB for USDT\", \"role\": \"acquisition\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve USDT for swap\", \"role\": \"approval\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap USDT for BUSD\", \"role\": \"conversion\", \"step\": 3}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve USDT for liquidity\", \"role\": \"approval\", \"step\": 4}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve BUSD for liquidity\", \"role\": \"approval\", \"step\": 5}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add USDT/BUSD liquidity\", \"role\": \"key_operation\", \"step\": 6}], \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 12, \"optimal_steps\": 6, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"optimal_steps\": 6, \"pattern\": \"multi-swap-liquidity\"}, \"description\": [\"Complex DeFi workflow to convert BNB to stablecoin liquidity position.\", \"\", \"This is a 6-step process:\", \"1. Swap BNB for USDT on PancakeSwap\", \"2. Approve USDT for swapping\", \"3. Swap half USDT for BUSD\", \"4. Approve remaining USDT for liquidity\", \"5. Approve BUSD for liquidity\", \"6. Add liquidity to USDT/BUSD pool\", \"\", \"Technical details:\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- WBNB: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"- USDT: 0x55d398326f99059fF775485246999027B3197955\", \"- BUSD: 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\", \"- USDT/BUSD LP: 0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\", \"\", \"Functions:\", \"- swapExactETHForTokens: BNB → USDT\", \"- swapExactTokensForTokens: USDT → BUSD\", \"- addLiquidity: Add USDT + BUSD to pool\", \"\", \"Note: Approvals required for both swap and liquidity operations.\", \"BSC does NOT support ENS. Use hex addresses directly.\"], \"difficulty\": \"hard\", \"id\": \"composite_triple_pool_liquidity\", \"metadata\": {\"difficulty_notes\": [\"Six-step workflow with multiple swaps\", \"Three approval transactions required\", \"Stablecoin pool liquidity provision\", \"Complex token flow management\"], \"estimated_gas\": 1000000, \"requires_approval\": true, \"tags\": [\"defi\", \"liquidity\", \"multi-swap\", \"stablecoin\", \"pancakeswap\", \"advanced\", \"hard\"]}, \"natural_language_templates\": [\"Swap {amount} BNB to USDT, then swap half to BUSD, and add liquidity to USDT/BUSD pool\", \"Convert BNB to USDT and BUSD, then provide liquidity to the stablecoin pool\", \"Multi-step liquidity: BNB → USDT → BUSD, then add USDT/BUSD liquidity on PancakeSwap\"], \"parameters\": {\"amount\": {\"description\": \"Amount of BNB to start with\", \"generation\": {\"decimals\": 1, \"max\": 2.0, \"method\": \"random\", \"min\": 0.5}, \"role\": \"input\", \"type\": \"number\", \"unit\": \"BNB\"}, \"busd_address\": {\"description\": \"BUSD token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"lp_token_address\": {\"description\": \"USDT/BUSD LP token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"lp_token\", \"type\": \"address\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 50.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"Token A address for liquidity (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_b_address\": {\"description\": \"Token B address for liquidity (BUSD)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56\"}, \"role\": \"token\", \"type\": \"address\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"usdt_address\": {\"description\": \"USDT token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token\", \"type\": \"address\"}, \"wbnb_address\": {\"description\": \"WBNB token address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"add_liquidity_tokens\", \"key_operation_step\": 6, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"advanced_defi\", \"title\": \"Triple Pool: BNB to Stablecoin Liquidity\", \"validation\": {\"post_conditions\": [{\"description\": \"Add liquidity transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"description\": \"USDT acquired from BNB swap\", \"type\": \"usdt_acquired\", \"weight\": 0.15}, {\"description\": \"BUSD acquired from USDT swap\", \"type\": \"busd_acquired\", \"weight\": 0.15}, {\"description\": \"Both tokens approved for liquidity\", \"type\": \"tokens_approved\", \"weight\": 0.2}, {\"description\": \"LP tokens received from adding liquidity\", \"type\": \"lp_received\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB\", \"min_balance\": \"5 BNB\", \"type\": \"bnb_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_unstake_harvest_query", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "complete_workflow", "difficulty": "medium", "title": "Unstake LP Tokens, Harvest Rewards, and Query Balance", "description": "Complete staking exit workflow: unstake LP tokens, harvest rewards, and verify.\n\nThis is a 3-step process:\n1. Unstake LP tokens from the reward pool using withdraw(uint256)\n2. Harvest pending CAKE rewards using harvest()\n3. Query CAKE balance to verify rewards received\n\nTechnical details:\n- SimpleRewardPool contract: deployed dynamically\n- LP Token: USDT/BUSD LP (0x7EFaEf62fDdCCa950418312c6C91Aef321375A00)\n- Reward Token: CAKE (0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82)\n- withdraw(uint256 _amount): unstake LP tokens\n- harvest(): claim pending rewards\n\nNote: The key operation is harvest_rewards since it's the main goal.", "natural_language_templates": ["Unstake {unstake_amount} LP tokens, harvest rewards, then check your reward token balance", "Withdraw {unstake_amount} LP tokens from the pool, harvest all rewards, and verify rewards received", "Remove {unstake_amount} LP tokens from staking at {pool_address}, harvest pending CAKE rewards, then query your CAKE balance"], "chain": "", "network": "", "tags": ["defi", "staking", "farming", "harvest", "unstake", "complete-workflow", "medium"], "parameter_names": ["lp_token_address", "lp_token_symbol", "pool_address", "reward_token_address", "reward_token_symbol", "token_decimals", "unstake_amount"], "parameters": "{\"lp_token_address\": {\"description\": \"LP token address (USDT/BUSD LP)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"token\", \"type\": \"address\"}, \"lp_token_symbol\": {\"description\": \"LP token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT-BUSD LP\"}, \"role\": \"display\", \"type\": \"string\"}, \"pool_address\": {\"description\": \"SimpleRewardPool contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"reward_token_address\": {\"description\": \"Reward token address (CAKE)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"reward\", \"type\": \"address\"}, \"reward_token_symbol\": {\"description\": \"Reward token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"unstake_amount\": {\"description\": \"Amount of LP tokens to unstake\", \"generation\": {\"decimals\": 2, \"max\": 0.3, \"method\": \"random\", \"min\": 0.1}, \"role\": \"unstake_amount\", \"type\": \"number\", \"unit\": \"LP tokens\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Harvest transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"CAKE rewards received\", \"type\": \"reward_received\", \"weight\": 0.4}, {\"description\": \"LP token balance increased (unstaked)\", \"type\": \"lp_balance_increase\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have staked LP tokens in the pool\", \"min_balance\": \"0.5 LP\", \"type\": \"staked_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"unstake_lp_tokens\", \"description\": \"Unstake LP tokens from the reward pool\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"harvest_rewards\", \"description\": \"Harvest pending CAKE rewards\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query CAKE balance to verify rewards\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"unstake-harvest-query\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"harvest_rewards\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Three-step staking exit workflow\", \"Must have pre-staked LP tokens\", \"Rewards accumulate over time\"], \"estimated_gas\": 300000, \"requires_approval\": false, \"tags\": [\"defi\", \"staking\", \"farming\", \"harvest\", \"unstake\", \"complete-workflow\", \"medium\"]}", "source_path": "composite_problems/composite_unstake_harvest_query.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"unstake_lp_tokens\", \"description\": \"Unstake LP tokens from the reward pool\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"harvest_rewards\", \"description\": \"Harvest pending CAKE rewards\", \"role\": \"key_operation\", \"step\": 2}, {\"atomic_id\": \"query_erc20_balance\", \"description\": \"Query CAKE balance to verify rewards\", \"role\": \"verification\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"unstake-harvest-query\"}, \"description\": [\"Complete staking exit workflow: unstake LP tokens, harvest rewards, and verify.\", \"\", \"This is a 3-step process:\", \"1. Unstake LP tokens from the reward pool using withdraw(uint256)\", \"2. Harvest pending CAKE rewards using harvest()\", \"3. Query CAKE balance to verify rewards received\", \"\", \"Technical details:\", \"- SimpleRewardPool contract: deployed dynamically\", \"- LP Token: USDT/BUSD LP (0x7EFaEf62fDdCCa950418312c6C91Aef321375A00)\", \"- Reward Token: CAKE (0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82)\", \"- withdraw(uint256 _amount): unstake LP tokens\", \"- harvest(): claim pending rewards\", \"\", \"Note: The key operation is harvest_rewards since it's the main goal.\"], \"difficulty\": \"medium\", \"id\": \"composite_unstake_harvest_query\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Three-step staking exit workflow\", \"Must have pre-staked LP tokens\", \"Rewards accumulate over time\"], \"estimated_gas\": 300000, \"requires_approval\": false, \"tags\": [\"defi\", \"staking\", \"farming\", \"harvest\", \"unstake\", \"complete-workflow\", \"medium\"]}, \"natural_language_templates\": [\"Unstake {unstake_amount} LP tokens, harvest rewards, then check your reward token balance\", \"Withdraw {unstake_amount} LP tokens from the pool, harvest all rewards, and verify rewards received\", \"Remove {unstake_amount} LP tokens from staking at {pool_address}, harvest pending CAKE rewards, then query your CAKE balance\"], \"parameters\": {\"lp_token_address\": {\"description\": \"LP token address (USDT/BUSD LP)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x7EFaEf62fDdCCa950418312c6C91Aef321375A00\"}, \"role\": \"token\", \"type\": \"address\"}, \"lp_token_symbol\": {\"description\": \"LP token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT-BUSD LP\"}, \"role\": \"display\", \"type\": \"string\"}, \"pool_address\": {\"description\": \"SimpleRewardPool contract address\", \"dynamic\": true, \"generation\": {\"env_key\": \"simple_reward_pool_address\", \"method\": \"from_env\"}, \"role\": \"contract\", \"type\": \"address\"}, \"reward_token_address\": {\"description\": \"Reward token address (CAKE)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82\"}, \"role\": \"reward\", \"type\": \"address\"}, \"reward_token_symbol\": {\"description\": \"Reward token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"CAKE\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_decimals\": {\"description\": \"Token decimal places\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"unstake_amount\": {\"description\": \"Amount of LP tokens to unstake\", \"generation\": {\"decimals\": 2, \"max\": 0.3, \"method\": \"random\", \"min\": 0.1}, \"role\": \"unstake_amount\", \"type\": \"number\", \"unit\": \"LP tokens\"}}, \"scoring_strategy\": {\"key_operation_id\": \"harvest_rewards\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"complete_workflow\", \"title\": \"Unstake LP Tokens, Harvest Rewards, and Query Balance\", \"validation\": {\"post_conditions\": [{\"description\": \"Harvest transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"description\": \"CAKE rewards received\", \"type\": \"reward_received\", \"weight\": 0.4}, {\"description\": \"LP token balance increased (unstaked)\", \"type\": \"lp_balance_increase\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have staked LP tokens in the pool\", \"min_balance\": \"0.5 LP\", \"type\": \"staked_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_wrap_add_liquidity", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "liquidity_workflows", "difficulty": "medium", "title": "Wrap BNB and Add Liquidity", "description": "Wrap BNB to WBNB and add liquidity to a token pair on PancakeSwap.\n\nThis is a 3-step process:\n1. Deposit {amount_bnb} BNB to WBNB contract to get WBNB\n2. Approve WBNB for PancakeSwap Router\n3. Add liquidity with {amount_wbnb} WBNB and {amount_token_b} {token_b_symbol}\n\nContract addresses:\n- WBNB: {wbnb_address}\n- Token B ({token_b_symbol}): {token_b_address}\n- PancakeSwap Router V2: {router_address}\n\nFunctions:\n- WBNB deposit(): Payable function, send BNB to get WBNB\n- ERC20 approve(address spender, uint256 amount): 0x095ea7b3\n- Router addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline): 0xe8e33700\n\nThe key operation is step 3 (addLiquidity).\n\nNote: You already have {token_b_symbol} allowance set for Router.", "natural_language_templates": ["Wrap {amount_bnb} BNB to WBNB, then add liquidity to WBNB/{token_b_symbol} pool with {amount_wbnb} WBNB and {amount_token_b} {token_b_symbol}", "Deposit BNB to WBNB, approve it, and provide liquidity to the WBNB/{token_b_symbol} pool", "Convert {amount_bnb} BNB to WBNB, approve PancakeSwap Router, then add {amount_wbnb} WBNB + {amount_token_b} {token_b_symbol} as liquidity"], "chain": "", "network": "", "tags": ["wrap", "liquidity", "defi", "wbnb", "pancakeswap", "medium"], "parameter_names": ["amount_bnb", "amount_token_a", "amount_token_b", "amount_wbnb", "router_address", "slippage", "token_a_address", "token_a_decimals", "token_b_address", "token_b_decimals", "token_b_symbol", "wbnb_address"], "parameters": "{\"amount_bnb\": {\"description\": \"Amount of BNB to wrap\", \"generation\": {\"decimals\": 2, \"max\": \"0.5\", \"method\": \"random\", \"min\": \"0.1\"}, \"role\": \"wrap_amount\", \"type\": \"number\", \"unit\": \"ether\"}, \"amount_token_a\": {\"description\": \"Amount of Token A (WBNB) for liquidity\", \"generation\": {\"method\": \"fixed\", \"value\": \"0.1\"}, \"role\": \"liquidity_amount_a\", \"type\": \"number\", \"unit\": \"ether\"}, \"amount_token_b\": {\"description\": \"Amount of Token B (USDT) for liquidity\", \"generation\": {\"method\": \"fixed\", \"value\": \"50\"}, \"role\": \"liquidity_amount_b\", \"type\": \"number\", \"unit\": \"ether\"}, \"amount_wbnb\": {\"description\": \"Amount of WBNB to add as liquidity\", \"generation\": {\"method\": \"fixed\", \"value\": \"0.1\"}, \"role\": \"liquidity_amount_a\", \"type\": \"number\", \"unit\": \"ether\"}, \"router_address\": {\"description\": \"PancakeSwap Router V2 address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"router\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"Token A address (WBNB)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_a\", \"type\": \"address\"}, \"token_a_decimals\": {\"description\": \"WBNB decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_b_address\": {\"description\": \"Token B address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_b\", \"type\": \"address\"}, \"token_b_decimals\": {\"description\": \"Token B decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_b_symbol\": {\"description\": \"Token B symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_a\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"LP tokens received\", \"type\": \"liquidity_added\", \"weight\": 0.7}, {\"description\": \"Both tokens deposited to pool\", \"type\": \"tokens_deposited\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have BNB to wrap\", \"min_balance\": \"1 BNB\", \"type\": \"bnb_balance\"}, {\"description\": \"Agent must have Token B balance\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"wbnb_deposit\", \"description\": \"Wrap BNB to WBNB\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve WBNB for Router\", \"role\": \"authorization\", \"step\": 2}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add WBNB + Token B liquidity\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"wrap-approve-liquidity\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"add_liquidity_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Requires wrapping BNB first\", \"Two approvals needed (WBNB + Token B)\", \"Complex liquidity parameters\"], \"estimated_gas\": 350000, \"requires_approval\": true, \"tags\": [\"wrap\", \"liquidity\", \"defi\", \"wbnb\", \"pancakeswap\", \"medium\"]}", "source_path": "composite_problems/composite_wrap_add_liquidity.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"wbnb_deposit\", \"description\": \"Wrap BNB to WBNB\", \"role\": \"preparation\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve WBNB for Router\", \"role\": \"authorization\", \"step\": 2}, {\"atomic_id\": \"add_liquidity_tokens\", \"description\": \"Add WBNB + Token B liquidity\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"wrap-approve-liquidity\"}, \"description\": [\"Wrap BNB to WBNB and add liquidity to a token pair on PancakeSwap.\", \"\", \"This is a 3-step process:\", \"1. Deposit {amount_bnb} BNB to WBNB contract to get WBNB\", \"2. Approve WBNB for PancakeSwap Router\", \"3. Add liquidity with {amount_wbnb} WBNB and {amount_token_b} {token_b_symbol}\", \"\", \"Contract addresses:\", \"- WBNB: {wbnb_address}\", \"- Token B ({token_b_symbol}): {token_b_address}\", \"- PancakeSwap Router V2: {router_address}\", \"\", \"Functions:\", \"- WBNB deposit(): Payable function, send BNB to get WBNB\", \"- ERC20 approve(address spender, uint256 amount): 0x095ea7b3\", \"- Router addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline): 0xe8e33700\", \"\", \"The key operation is step 3 (addLiquidity).\", \"\", \"Note: You already have {token_b_symbol} allowance set for Router.\"], \"difficulty\": \"medium\", \"id\": \"composite_wrap_add_liquidity\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Requires wrapping BNB first\", \"Two approvals needed (WBNB + Token B)\", \"Complex liquidity parameters\"], \"estimated_gas\": 350000, \"requires_approval\": true, \"tags\": [\"wrap\", \"liquidity\", \"defi\", \"wbnb\", \"pancakeswap\", \"medium\"]}, \"natural_language_templates\": [\"Wrap {amount_bnb} BNB to WBNB, then add liquidity to WBNB/{token_b_symbol} pool with {amount_wbnb} WBNB and {amount_token_b} {token_b_symbol}\", \"Deposit BNB to WBNB, approve it, and provide liquidity to the WBNB/{token_b_symbol} pool\", \"Convert {amount_bnb} BNB to WBNB, approve PancakeSwap Router, then add {amount_wbnb} WBNB + {amount_token_b} {token_b_symbol} as liquidity\"], \"parameters\": {\"amount_bnb\": {\"description\": \"Amount of BNB to wrap\", \"generation\": {\"decimals\": 2, \"max\": \"0.5\", \"method\": \"random\", \"min\": \"0.1\"}, \"role\": \"wrap_amount\", \"type\": \"number\", \"unit\": \"ether\"}, \"amount_token_a\": {\"description\": \"Amount of Token A (WBNB) for liquidity\", \"generation\": {\"method\": \"fixed\", \"value\": \"0.1\"}, \"role\": \"liquidity_amount_a\", \"type\": \"number\", \"unit\": \"ether\"}, \"amount_token_b\": {\"description\": \"Amount of Token B (USDT) for liquidity\", \"generation\": {\"method\": \"fixed\", \"value\": \"50\"}, \"role\": \"liquidity_amount_b\", \"type\": \"number\", \"unit\": \"ether\"}, \"amount_wbnb\": {\"description\": \"Amount of WBNB to add as liquidity\", \"generation\": {\"method\": \"fixed\", \"value\": \"0.1\"}, \"role\": \"liquidity_amount_a\", \"type\": \"number\", \"unit\": \"ether\"}, \"router_address\": {\"description\": \"PancakeSwap Router V2 address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"router\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance\", \"generation\": {\"method\": \"fixed\", \"value\": 50}, \"role\": \"tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_a_address\": {\"description\": \"Token A address (WBNB)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_a\", \"type\": \"address\"}, \"token_a_decimals\": {\"description\": \"WBNB decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_b_address\": {\"description\": \"Token B address (USDT)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_b\", \"type\": \"address\"}, \"token_b_decimals\": {\"description\": \"Token B decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_b_symbol\": {\"description\": \"Token B symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_a\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"add_liquidity_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"liquidity_workflows\", \"title\": \"Wrap BNB and Add Liquidity\", \"validation\": {\"post_conditions\": [{\"description\": \"LP tokens received\", \"type\": \"liquidity_added\", \"weight\": 0.7}, {\"description\": \"Both tokens deposited to pool\", \"type\": \"tokens_deposited\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have BNB to wrap\", \"min_balance\": \"1 BNB\", \"type\": \"bnb_balance\"}, {\"description\": \"Agent must have Token B balance\", \"min_balance\": \"100 tokens\", \"type\": \"token_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_wrap_swap_wbnb", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "wrap_swap", "difficulty": "medium", "title": "Wrap BNB and Swap WBNB for Token", "description": "Wrap native BNB into WBNB and swap the WBNB for another token.\n\nThis is a 3-step process:\n1. Deposit BNB to WBNB contract using deposit() function\n2. Approve PancakeSwap Router to spend the WBNB\n3. Swap WBNB for the target token using swapExactTokensForTokens\n\nTechnical details:\n- WBNB contract address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n- WBNB deposit() function: 0xd0e30db0 (payable)\n- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\n- swapExactTokensForTokens: 0x38ed1739", "natural_language_templates": ["Wrap {amount} BNB to WBNB, then swap the WBNB for {token_out_symbol} on PancakeSwap", "Deposit {amount} BNB to WBNB, approve and swap for {token_out_symbol}", "Convert {amount} BNB to WBNB and swap it for {token_out_symbol} using PancakeSwap Router"], "chain": "", "network": "", "tags": ["wrap-swap", "defi", "wbnb", "pancakeswap", "swap", "three-step"], "parameter_names": ["amount", "router_address", "slippage", "token_in_address", "token_in_decimals", "token_in_symbol", "token_out_address", "token_out_decimals", "token_out_symbol", "wbnb_address"], "parameters": "{\"amount\": {\"description\": \"Amount of BNB to wrap and swap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_in_address\": {\"description\": \"Input token address (WBNB)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_in\", \"type\": \"address\"}, \"token_in_decimals\": {\"description\": \"Input token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"WBNB\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_out_address\": {\"description\": \"Output token address\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"token_out_decimals\": {\"description\": \"Output token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_in\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"address\": \"{router_address}\", \"description\": \"Correct PancakeSwap Router called\", \"type\": \"contract_called\", \"weight\": 0.1}, {\"description\": \"Correct function swapExactTokensForTokens called\", \"selector\": \"0x38ed1739\", \"type\": \"function_selector\", \"weight\": 0.1}, {\"description\": \"WBNB balance decreased by swap amount\", \"expected_decrease\": \"{amount}\", \"token\": \"{wbnb_address}\", \"type\": \"token_balance_decrease\", \"weight\": 0.25}, {\"description\": \"Output token balance increased\", \"min_increase\": 0, \"token\": \"{token_out_address}\", \"type\": \"token_balance_increase\", \"weight\": 0.35}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for wrap and gas\", \"min_balance\": \"0.2 BNB\", \"type\": \"bnb_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"wbnb_deposit\", \"description\": \"Wrap BNB to WBNB by calling deposit() on WBNB contract\", \"role\": \"wrap_bnb\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend WBNB\", \"role\": \"approve_token\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap WBNB for target token using swapExactTokensForTokens\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"wrap-approve-swap\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Three-step process: wrap, approve, swap\", \"Must correctly sequence all three operations\", \"Must understand WBNB wrapping mechanism\", \"Requires proper swap path construction\"], \"estimated_gas\": 280000, \"requires_approval\": true, \"tags\": [\"wrap-swap\", \"defi\", \"wbnb\", \"pancakeswap\", \"swap\", \"three-step\"]}", "source_path": "composite_problems/composite_wrap_swap_wbnb.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"wbnb_deposit\", \"description\": \"Wrap BNB to WBNB by calling deposit() on WBNB contract\", \"role\": \"wrap_bnb\", \"step\": 1}, {\"atomic_id\": \"erc20_approve\", \"description\": \"Approve PancakeSwap Router to spend WBNB\", \"role\": \"approve_token\", \"step\": 2}, {\"atomic_id\": \"swap_exact_tokens_for_tokens\", \"description\": \"Swap WBNB for target token using swapExactTokensForTokens\", \"role\": \"key_operation\", \"step\": 3}], \"optimal_steps\": 3, \"pattern\": \"wrap-approve-swap\"}, \"description\": [\"Wrap native BNB into WBNB and swap the WBNB for another token.\", \"\", \"This is a 3-step process:\", \"1. Deposit BNB to WBNB contract using deposit() function\", \"2. Approve PancakeSwap Router to spend the WBNB\", \"3. Swap WBNB for the target token using swapExactTokensForTokens\", \"\", \"Technical details:\", \"- WBNB contract address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"- WBNB deposit() function: 0xd0e30db0 (payable)\", \"- PancakeSwap Router: 0x10ED43C718714eb63d5aA57B78B54704E256024E\", \"- swapExactTokensForTokens: 0x38ed1739\"], \"difficulty\": \"medium\", \"id\": \"composite_wrap_swap_wbnb\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 6, \"optimal_steps\": 3, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Three-step process: wrap, approve, swap\", \"Must correctly sequence all three operations\", \"Must understand WBNB wrapping mechanism\", \"Requires proper swap path construction\"], \"estimated_gas\": 280000, \"requires_approval\": true, \"tags\": [\"wrap-swap\", \"defi\", \"wbnb\", \"pancakeswap\", \"swap\", \"three-step\"]}, \"natural_language_templates\": [\"Wrap {amount} BNB to WBNB, then swap the WBNB for {token_out_symbol} on PancakeSwap\", \"Deposit {amount} BNB to WBNB, approve and swap for {token_out_symbol}\", \"Convert {amount} BNB to WBNB and swap it for {token_out_symbol} using PancakeSwap Router\"], \"parameters\": {\"amount\": {\"description\": \"Amount of BNB to wrap and swap\", \"generation\": {\"decimals\": 3, \"max\": 0.05, \"method\": \"random\", \"min\": 0.01}, \"role\": \"swap_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"router_address\": {\"description\": \"PancakeSwap V2 Router contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0x10ED43C718714eb63d5aA57B78B54704E256024E\"}, \"role\": \"contract\", \"type\": \"address\"}, \"slippage\": {\"description\": \"Slippage tolerance percentage\", \"generation\": {\"method\": \"fixed\", \"value\": 5.0}, \"role\": \"slippage_tolerance\", \"type\": \"number\", \"unit\": \"percent\"}, \"token_in_address\": {\"description\": \"Input token address (WBNB)\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_in\", \"type\": \"address\"}, \"token_in_decimals\": {\"description\": \"Input token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_in_symbol\": {\"description\": \"Input token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"WBNB\"}, \"role\": \"display\", \"type\": \"string\"}, \"token_out_address\": {\"description\": \"Output token address\", \"generation\": {\"comment\": \"USDT on BSC\", \"method\": \"fixed\", \"value\": \"0x55d398326f99059fF775485246999027B3197955\"}, \"role\": \"token_out\", \"type\": \"address\"}, \"token_out_decimals\": {\"description\": \"Output token decimals\", \"generation\": {\"method\": \"fixed\", \"value\": 18}, \"role\": \"calculation\", \"type\": \"integer\"}, \"token_out_symbol\": {\"description\": \"Output token symbol\", \"generation\": {\"method\": \"fixed\", \"value\": \"USDT\"}, \"role\": \"display\", \"type\": \"string\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"token_in\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"swap_exact_tokens_for_tokens\", \"key_operation_step\": 3, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"wrap_swap\", \"title\": \"Wrap BNB and Swap WBNB for Token\", \"validation\": {\"post_conditions\": [{\"description\": \"Swap transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.2}, {\"address\": \"{router_address}\", \"description\": \"Correct PancakeSwap Router called\", \"type\": \"contract_called\", \"weight\": 0.1}, {\"description\": \"Correct function swapExactTokensForTokens called\", \"selector\": \"0x38ed1739\", \"type\": \"function_selector\", \"weight\": 0.1}, {\"description\": \"WBNB balance decreased by swap amount\", \"expected_decrease\": \"{amount}\", \"token\": \"{wbnb_address}\", \"type\": \"token_balance_decrease\", \"weight\": 0.25}, {\"description\": \"Output token balance increased\", \"min_increase\": 0, \"token\": \"{token_out_address}\", \"type\": \"token_balance_increase\", \"weight\": 0.35}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for wrap and gas\", \"min_balance\": \"0.2 BNB\", \"type\": \"bnb_balance\"}]}, \"version\": \"1.0.0\"}"} | |
| {"id": "composite_wrap_unwrap_cycle", "split": "composite", "task_type": "composite", "version": "1.0.0", "category": "composite_problems", "subcategory": "wrap_unwrap", "difficulty": "easy", "title": "Wrap BNB and Unwrap Back to BNB (Cycle Test)", "description": "Test the WBNB wrap/unwrap functionality by wrapping BNB and immediately unwrapping it.\n\nThis is a 2-step process:\n1. Deposit BNB to WBNB contract using deposit() function\n2. Withdraw WBNB back to BNB using withdraw(uint256) function\n\nTechnical details:\n- WBNB contract address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\n- deposit() function: 0xd0e30db0 (payable)\n- withdraw(uint256) function: 0x2e1a7d4d\n\nNote: This is a test case to verify wrap/unwrap functionality works correctly.\nThe key operation is wbnb_withdraw since the final goal is to get BNB back.", "natural_language_templates": ["Wrap {amount} BNB to WBNB, then immediately unwrap all WBNB back to BNB", "Deposit {amount} BNB to WBNB and withdraw it back to BNB", "Convert {amount} BNB to WBNB, then convert it back to native BNB"], "chain": "", "network": "", "tags": ["wrap-unwrap", "test", "wbnb", "cycle", "easy", "two-step"], "parameter_names": ["amount", "wbnb_address"], "parameters": "{\"amount\": {\"description\": \"Amount of BNB to wrap and unwrap\", \"generation\": {\"decimals\": 3, \"max\": 0.1, \"method\": \"random\", \"min\": 0.01}, \"role\": \"wrap_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"contract\", \"type\": \"address\"}}", "validation": "{\"post_conditions\": [{\"description\": \"Withdraw transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"address\": \"{wbnb_address}\", \"description\": \"Correct WBNB contract called\", \"type\": \"contract_called\", \"weight\": 0.2}, {\"description\": \"Correct function withdraw(uint256) called\", \"selector\": \"0x2e1a7d4d\", \"type\": \"function_selector\", \"weight\": 0.2}, {\"description\": \"BNB balance recovered (minus gas costs)\", \"type\": \"bnb_balance_recovered\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for wrap and gas\", \"min_balance\": \"1 BNB\", \"type\": \"bnb_balance\"}]}", "composite_structure": "{\"atomic_operations\": [{\"atomic_id\": \"wbnb_deposit\", \"description\": \"Wrap BNB to WBNB by calling deposit() on WBNB contract\", \"role\": \"wrap_bnb\", \"step\": 1}, {\"atomic_id\": \"wbnb_withdraw\", \"description\": \"Withdraw WBNB to get native BNB back\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"wrap-unwrap\"}", "interaction_config": "{\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}", "scoring_strategy": "{\"key_operation_id\": \"wbnb_withdraw\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}", "metadata": "{\"difficulty_notes\": [\"Simple two-step process\", \"Tests basic WBNB wrap/unwrap functionality\", \"No approval required\"], \"estimated_gas\": 120000, \"requires_approval\": false, \"tags\": [\"wrap-unwrap\", \"test\", \"wbnb\", \"cycle\", \"easy\", \"two-step\"]}", "source_path": "composite_problems/composite_wrap_unwrap_cycle.json", "raw_definition": "{\"category\": \"composite_problems\", \"composite_structure\": {\"atomic_operations\": [{\"atomic_id\": \"wbnb_deposit\", \"description\": \"Wrap BNB to WBNB by calling deposit() on WBNB contract\", \"role\": \"wrap_bnb\", \"step\": 1}, {\"atomic_id\": \"wbnb_withdraw\", \"description\": \"Withdraw WBNB to get native BNB back\", \"role\": \"key_operation\", \"step\": 2}], \"optimal_steps\": 2, \"pattern\": \"wrap-unwrap\"}, \"description\": [\"Test the WBNB wrap/unwrap functionality by wrapping BNB and immediately unwrapping it.\", \"\", \"This is a 2-step process:\", \"1. Deposit BNB to WBNB contract using deposit() function\", \"2. Withdraw WBNB back to BNB using withdraw(uint256) function\", \"\", \"Technical details:\", \"- WBNB contract address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\", \"- deposit() function: 0xd0e30db0 (payable)\", \"- withdraw(uint256) function: 0x2e1a7d4d\", \"\", \"Note: This is a test case to verify wrap/unwrap functionality works correctly.\", \"The key operation is wbnb_withdraw since the final goal is to get BNB back.\"], \"difficulty\": \"easy\", \"id\": \"composite_wrap_unwrap_cycle\", \"interaction_config\": {\"forced_submit_at_max\": true, \"max_rounds\": 4, \"optimal_steps\": 2, \"score_decay_formula\": \"base_score * min(1.0, optimal_steps / actual_steps)\"}, \"metadata\": {\"difficulty_notes\": [\"Simple two-step process\", \"Tests basic WBNB wrap/unwrap functionality\", \"No approval required\"], \"estimated_gas\": 120000, \"requires_approval\": false, \"tags\": [\"wrap-unwrap\", \"test\", \"wbnb\", \"cycle\", \"easy\", \"two-step\"]}, \"natural_language_templates\": [\"Wrap {amount} BNB to WBNB, then immediately unwrap all WBNB back to BNB\", \"Deposit {amount} BNB to WBNB and withdraw it back to BNB\", \"Convert {amount} BNB to WBNB, then convert it back to native BNB\"], \"parameters\": {\"amount\": {\"description\": \"Amount of BNB to wrap and unwrap\", \"generation\": {\"decimals\": 3, \"max\": 0.1, \"method\": \"random\", \"min\": 0.01}, \"role\": \"wrap_amount\", \"type\": \"number\", \"unit\": \"BNB\"}, \"wbnb_address\": {\"description\": \"WBNB contract address\", \"generation\": {\"method\": \"fixed\", \"value\": \"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c\"}, \"role\": \"contract\", \"type\": \"address\"}}, \"scoring_strategy\": {\"key_operation_id\": \"wbnb_withdraw\", \"key_operation_step\": 2, \"method\": \"atomic_validator_reuse\"}, \"subcategory\": \"wrap_unwrap\", \"title\": \"Wrap BNB and Unwrap Back to BNB (Cycle Test)\", \"validation\": {\"post_conditions\": [{\"description\": \"Withdraw transaction executed successfully\", \"type\": \"transaction_success\", \"weight\": 0.3}, {\"address\": \"{wbnb_address}\", \"description\": \"Correct WBNB contract called\", \"type\": \"contract_called\", \"weight\": 0.2}, {\"description\": \"Correct function withdraw(uint256) called\", \"selector\": \"0x2e1a7d4d\", \"type\": \"function_selector\", \"weight\": 0.2}, {\"description\": \"BNB balance recovered (minus gas costs)\", \"type\": \"bnb_balance_recovered\", \"weight\": 0.3}], \"pre_conditions\": [{\"description\": \"Agent must have sufficient BNB for wrap and gas\", \"min_balance\": \"1 BNB\", \"type\": \"bnb_balance\"}]}, \"version\": \"1.0.0\"}"} | |