[ { "inputs": [ { "internalType": "uint256", "name": "winReward_", "type": "uint256" }, { "internalType": "address", "name": "erc20_", "type": "address" }, { "internalType": "address", "name": "treasury_", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "ERC1167FailedCreateClone", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientAllowance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientBalance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "approver", "type": "address" } ], "name": "ERC20InvalidApprover", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "ERC20InvalidReceiver", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "ERC20InvalidSender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" } ], "name": "ERC20InvalidSpender", "type": "error" }, { "inputs": [], "name": "MustBeAdmin", "type": "error" }, { "inputs": [], "name": "MustBeOwner", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "game", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "stakes", "type": "uint256" } ], "name": "GameCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "game", "type": "address" }, { "indexed": true, "internalType": "address", "name": "player", "type": "address" } ], "name": "GameJoined", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "game", "type": "address" }, { "indexed": true, "internalType": "address", "name": "player", "type": "address" } ], "name": "GameLeft", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "game", "type": "address" } ], "name": "GameOver", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint8", "name": "pick0", "type": "uint8" }, { "indexed": true, "internalType": "uint8", "name": "pick1", "type": "uint8" }, { "indexed": true, "internalType": "address", "name": "winner", "type": "address" } ], "name": "GameResult", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [], "name": "admin", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balances", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "stakes_", "type": "uint256" } ], "name": "createGame", "outputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address", "name": "game", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "deposit", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "scores", "type": "uint256[]" } ], "name": "finalizeGame", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "games", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "instances", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "joinGame", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "leaveGame", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint8", "name": "pick", "type": "uint8" } ], "name": "playFreeStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "admin_", "type": "address" } ], "name": "setAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "winReward_", "type": "uint256" } ], "name": "setReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "treasury_", "type": "address" } ], "name": "setTreasury", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "source", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "splitFee", "outputs": [ { "internalType": "uint256", "name": "fee", "type": "uint256" }, { "internalType": "uint256", "name": "net", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "stakes", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalGames", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "treasury", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "winReward", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdraw", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ]
60e06040526040516100109061012c565b604051809103906000f08015801561002c573d6000803e3d6000fd5b506001600160a01b031660c05234801561004557600080fd5b5060405161283838038061283883398101604081905261006491610155565b818181816000826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100cc9190610191565b90506100dc60ff8216600a6102b7565b608052506001600160a01b0391821660a05260028054919092166001600160a01b0319918216179091556003805482163390811790915560048054909216179055505050600991909155506102c3565b610ced80611b4b83390190565b80516001600160a01b038116811461015057600080fd5b919050565b60008060006060848603121561016a57600080fd5b8351925061017a60208501610139565b915061018860408501610139565b90509250925092565b6000602082840312156101a357600080fd5b815160ff811681146101b457600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561020c5781600019048211156101f2576101f26101bb565b808516156101ff57918102915b93841c93908002906101d6565b509250929050565b600082610223575060016102b1565b81610230575060006102b1565b816001811461024657600281146102505761026c565b60019150506102b1565b60ff841115610261576102616101bb565b50506001821b6102b1565b5060208310610133831016604e8410600b841016171561028f575081810a6102b1565b61029983836101d1565b80600019048211156102ad576102ad6101bb565b0290505b92915050565b60006101b48383610214565b60805160a05160c05161181a61033160003960008181610567015261090a0152600081816102a90152818161066401528181610d2401528181611104015281816111af0152818161123901526113b1015260008181610a6a01528181610aa50152610ae1015261181a6000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063704b6c02116100c3578063d5a44f861161007c578063d5a44f8614610347578063e3ae85f014610367578063efaa55a014610370578063f0f4426014610383578063f2fde38b14610396578063f851a440146103a957600080fd5b8063704b6c02146102cb5780638c857b43146102de5780638da5cb5b14610306578063a3c1952114610319578063ad7a672f1461032c578063b6b55f251461033457600080fd5b80632c4e591b116101155780632c4e591b146102225780632e1a7d4d1461022b5780633feef58a1461024e57806348e837b91461026157806361d027b31461029157806367e828bf146102a457600080fd5b8063032bb4431461015d57806303bf395514610190578063117a5b90146101a557806318160ddd146101e657806327e235e3146101ef578063293be4561461020f575b600080fd5b61017d61016b36600461152a565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b6101a361019e36600461155d565b6103bc565b005b6101ce6101b336600461157a565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610187565b61017d60015481565b61017d6101fd36600461152a565b60006020819052908152604090205481565b6101a361021d36600461157a565b6106dc565b61017d60055481565b61023e61023936600461157a565b61070c565b6040519015158152602001610187565b6101a361025c36600461157a565b610779565b61027461026f36600461157a565b610900565b604080519283526001600160a01b03909116602083015201610187565b6002546101ce906001600160a01b031681565b6101ce7f000000000000000000000000000000000000000000000000000000000000000081565b6101a36102d936600461152a565b610a14565b6102f16102ec36600461157a565b610a61565b60408051928352602083019190915201610187565b6003546101ce906001600160a01b031681565b6101a36103273660046115a9565b610b49565b61017d610d0c565b61023e61034236600461157a565b610d9c565b61017d61035536600461157a565b60076020526000908152604090205481565b61017d60095481565b6101a361037e36600461157a565b610e05565b6101a361039136600461152a565b610f8c565b6101a36103a436600461152a565b610fd9565b6004546101ce906001600160a01b031681565b6000600954116104135760405162461bcd60e51b815260206004820152601860248201527f46726565206d6f646520697320756e617661696c61626c65000000000000000060448201526064015b60405180910390fd5b60008160ff16118015610429575060048160ff16105b6104645760405162461bcd60e51b815260206004820152600c60248201526b496e76616c6964207069636b60a01b604482015260640161040a565b336000908152600a602052604090205443116104b75760405162461bcd60e51b81526020600482015260126024820152714f6e652067616d652070657220626c6f636b60701b604482015260640161040a565b336000908152600a602052604081204390556104d1610d0c565b3060009081526020818152604091829020549151610505939242929091019283526020830191909152604082015260600190565b60408051601f1981840301815291905280516020909101209050600061052c60038361167d565b6105379060016116a7565b6040516305c3657f60e41b815260ff80861660048301528216602482015290915060009081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635c3657f0906044016040805180830381865afa1580156105ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d191906116ca565b915091506000826105f15760ff8216156105eb57306105f4565b336105f4565b60005b9050806001600160a01b03168460ff168760ff167f2bd36383c3dc564509e7303da1bf40ad77647d87467428eaa0efce911c6b5b5060405160405180910390a4336001600160a01b038216036106d4576009546040516335106f4960e11b815230600482015260248101919091527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636a20de9290604401600060405180830381600087803b1580156106b057600080fd5b505af11580156106c4573d6000803e3d6000fd5b505050506106d433600954611056565b505050505050565b6004546001600160a01b0316331461070757604051635c510c8360e11b815260040160405180910390fd5b600955565b336000908152602081905260408120548211156107605760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b604482015260640161040a565b61076a3383611090565b610773826110c6565b92915050565b6000818152600660205260409020546001600160a01b0316806107cb5760405162461bcd60e51b815260206004820152600a6024820152694e6f742065786973747360b01b604482015260640161040a565b6000819050806001600160a01b03166306b447a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801561080e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108329190611701565b61084e5760405162461bcd60e51b815260040161040a9061171c565b604051632dd8950d60e11b81523360048201526001600160a01b03821690635bb12a1a90602401600060405180830381600087803b15801561088f57600080fd5b505af11580156108a3573d6000803e3d6000fd5b5050506000848152600760205260409020546108c39150839033906112b6565b60405133906001600160a01b0384169085907f116fa15e07250ebfd76b066f92a8d3e7defa844ed2415bce4a77a33b2a0bcbd490600090a4505050565b600554600061092e7f000000000000000000000000000000000000000000000000000000000000000061131a565b60405163066ad14f60e21b81523060048201529091506001600160a01b038216906319ab453c90602401600060405180830381600087803b15801561097257600080fd5b505af1158015610986573d6000803e3d6000fd5b505050600083815260066020908152604080832080546001600160a01b0319166001600160a01b03871690811790915560078352818420889055808452600890925280832086905551869350909185917f7dfb67e9ff596fca4da65c7eedb128cd1aac553af54b3c0cb733625a2480d8bd9190a460058054906000610a0a83611741565b9190505550915091565b6003546001600160a01b03163314610a3f5760405163587bee2b60e11b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60008080610a907f0000000000000000000000000000000000000000000000000000000000000000606461175a565b841015610aa05750611388610b1d565b610acc7f00000000000000000000000000000000000000000000000000000000000000006103e861175a565b841015610adc5750610fa0610b1d565b610b087f000000000000000000000000000000000000000000000000000000000000000061271061175a565b841015610b185750610bb8610b1d565b506107d05b620186a0610b2b828661175a565b610b359190611771565b9250610b418385611785565b915050915091565b3360008181526008602090815260408083205480845260069092529091205490916001600160a01b03909116908114610b945760405162461bcd60e51b815260040161040a9061171c565b8060005b816001600160a01b031663f60cdcf66040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfa9190611798565b811015610ccf576000848152600760205260408120548651670de0b6b3a76400009190889085908110610c2f57610c2f6117b1565b6020026020010151610c41919061175a565b610c4b9190611771565b9050610cc684846001600160a01b0316639e0551c6856040518263ffffffff1660e01b8152600401610c7f91815260200190565b602060405180830381865afa158015610c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc091906117c7565b836112b6565b50600101610b98565b506040516001600160a01b0383169084907f668ce4ca171dee87d4d9d2b5d3dc31963fe7fbe50b982064dddb0fb9d56aee8b90600090a350505050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610d73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d979190611798565b905090565b6000610da78261138c565b610df35760405162461bcd60e51b815260206004820152601f60248201527f4661696c656420746f206465706f73697420736f7572636520746f6b656e7300604482015260640161040a565b610dfd3383611056565b506001919050565b6000818152600660205260409020546001600160a01b031680610e575760405162461bcd60e51b815260206004820152600a6024820152694e6f742065786973747360b01b604482015260640161040a565b6000819050806001600160a01b031663a86eaca46040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebe9190611701565b610eda5760405162461bcd60e51b815260040161040a9061171c565b604051635893afcd60e11b81523360048201526001600160a01b0382169063b1275f9a90602401600060405180830381600087803b158015610f1b57600080fd5b505af1158015610f2f573d6000803e3d6000fd5b505050600084815260076020526040902054610f4f9150339084906112b6565b60405133906001600160a01b0384169085907f8ca5b55df47712c5e59e7aaddc402fc30e6399e3498efec70a7e440bb9d2fac890600090a4505050565b6004546001600160a01b03163314610fb757604051635c510c8360e11b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031633146110045760405163587bee2b60e11b815260040160405180910390fd5b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166110805760405163ec442f0560e01b81526000600482015260240161040a565b61108c600083836113e8565b5050565b6001600160a01b0382166110ba57604051634b637e8f60e11b81526000600482015260240161040a565b61108c826000836113e8565b6002546000906001600160a01b031633036111745760025460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018490527f00000000000000000000000000000000000000000000000000000000000000009091169063a9059cbb906044015b6020604051808303816000875af1158015611150573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107739190611701565b60008061118084610a61565b60025460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018490529294509092507f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156111f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121c9190611701565b5060405163a9059cbb60e01b8152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af115801561128a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ae9190611701565b949350505050565b6001600160a01b0383166112e057604051634b637e8f60e11b81526000600482015260240161040a565b6001600160a01b03821661130a5760405163ec442f0560e01b81526000600482015260240161040a565b6113158383836113e8565b505050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b038116611387576040516330be1a3d60e21b815260040160405180910390fd5b919050565b6040516323b872dd60e01b8152336004820152306024820152604481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401611131565b6001600160a01b03831661141357806001600082825461140891906116a7565b909155506114859050565b6001600160a01b038316600090815260208190526040902054818110156114665760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161040a565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166114a1576001805482900390556114c0565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161150591815260200190565b60405180910390a3505050565b6001600160a01b038116811461152757600080fd5b50565b60006020828403121561153c57600080fd5b813561154781611512565b9392505050565b60ff8116811461152757600080fd5b60006020828403121561156f57600080fd5b81356115478161154e565b60006020828403121561158c57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156115bc57600080fd5b823567ffffffffffffffff808211156115d457600080fd5b818501915085601f8301126115e857600080fd5b8135818111156115fa576115fa611593565b8060051b604051601f19603f8301168101818110858211171561161f5761161f611593565b60405291825284820192508381018501918883111561163d57600080fd5b938501935b8285101561165b57843584529385019392850192611642565b98975050505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261168c5761168c611667565b500690565b634e487b7160e01b600052601160045260246000fd5b8082018082111561077357610773611691565b8051801515811461138757600080fd5b600080604083850312156116dd57600080fd5b6116e6836116ba565b915060208301516116f68161154e565b809150509250929050565b60006020828403121561171357600080fd5b611547826116ba565b6020808252600b908201526a139bdd08185b1b1bddd95960aa1b604082015260600190565b60006001820161175357611753611691565b5060010190565b808202811582820484141761077357610773611691565b60008261178057611780611667565b500490565b8181038181111561077357610773611691565b6000602082840312156117aa57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156117d957600080fd5b81516115478161151256fea26469706673582212206ac082f499c53ab7271356cd2ac4d55fbc5771229384e5a2fdc0041910d0c94364736f6c634300081900336080604052348015600f57600080fd5b50610cce8061001f6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638d4e408311610097578063a86eaca411610066578063a86eaca414610208578063b1275f9a14610210578063c45a015514610223578063f60cdcf61461023657600080fd5b80638d4e40831461019c5780639e0551c6146101a4578063a28bfb3e146101cf578063a33c4df1146101e257600080fd5b806322f3e2d4116100d357806322f3e2d4146101425780635bb12a1a1461014a5780635c3657f01461015d5780638236879d1461018957600080fd5b806306b447a7146100fa57806319ab453c146101175780631a79a9131461012c575b600080fd5b61010261023d565b60405190151581526020015b60405180910390f35b61012a610125366004610aef565b61025a565b005b6101346102d0565b60405190815260200161010e565b61010261031c565b61012a610158366004610aef565b610333565b61017061016b366004610b35565b6103f2565b60408051921515835260ff90911660208301520161010e565b61012a610197366004610b68565b6104b4565b610102610842565b6101b76101b2366004610b92565b610865565b6040516001600160a01b03909116815260200161010e565b61012a6101dd366004610b92565b610885565b6101f56101f0366004610aef565b61094c565b60405160009190910b815260200161010e565b6101026109ae565b61012a61021e366004610aef565b6109d5565b6000546101b7906001600160a01b031681565b6002610134565b60055460009060ff161580610255575060055460ff16155b905090565b6000546001600160a01b0316156102ae5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000805b6002811015610318576000600182600281106102f2576102f2610bab565b01546001600160a01b031614610310578161030c81610bd7565b9250505b6001016102d4565b5090565b600354600090151580610255575050600454151590565b6000546001600160a01b0316331480156103525750610350610842565b155b61035b57600080fd5b60006103668261094c565b90506000198160000b136103af5760405162461bcd60e51b815260206004820152601060248201526f141b185e595c881b9bdd08199bdd5b9960821b60448201526064016102a5565b600060018260ff16600281106103c7576103c7610bab565b0180546001600160a01b0319166001600160a01b03929092169190911790556103ee610a78565b5050565b60008060008460ff1611801561040b575060048460ff16105b801561041a575060008360ff16115b8015610429575060048360ff16105b6104625760405162461bcd60e51b815260206004820152600a60248201526942616420706172616d7360b01b60448201526064016102a5565b8260ff168460ff1614915060026003808660ff168161048357610483610bf0565b06856001010360ff168161049957610499610bf0565b0660ff16816104aa576104aa610bf0565b0490509250929050565b600354158015906104c6575060045415155b6105025760405162461bcd60e51b815260206004820152600d60248201526c5374696c6c207069636b696e6760981b60448201526064016102a5565b600061050d3361094c565b90506000198160000b136105525760405162461bcd60e51b815260206004820152600c60248201526b2737ba103090383630bcb2b960a11b60448201526064016102a5565b6040516001600160f81b031960f885901b166020820152602181018390526000906041016040516020818303038152906040528051906020012090508060038360ff16600281106105a5576105a5610bab565b0154146105e65760405162461bcd60e51b815260206004820152600f60248201526e556e7665726966696564207069636b60881b60448201526064016102a5565b8360058360ff16600281106105fd576105fd610bab565b602091828204019190066101000a81548160ff021916908360ff1602179055506000600560006002811061063357610633610bab565b60208104919091015460055460ff601f90931661010090810a909204831693500416811580610663575060ff8116155b1561067057505050505050565b60008061067d84846103f2565b91509150816106ac5760018160ff166002811061069c5761069c610bab565b01546001600160a01b03166106af565b60005b6001600160a01b03168360ff168560ff167f2bd36383c3dc564509e7303da1bf40ad77647d87467428eaa0efce911c6b5b5060405160405180910390a48115610704576106fa610a78565b5050505050505050565b604080516002808252606082018352600092602083019080368337019050509050671bc16d674ec80000818360ff168151811061074357610743610bab565b6020026020010181815250506000816040516024016107629190610c06565b60408051601f198184030181529181526020820180516001600160e01b031663a3c1952160e01b179052600080549151929350916001600160a01b03909116906107ad908490610c4a565b6000604051808303816000865af19150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b50509050806108355760405162461bcd60e51b81526020600482015260126024820152714661696c656420746f2066696e616c697a6560701b60448201526064016102a5565b5050505050505050505050565b60055460009060ff1615801590610255575050600554610100900460ff16151590565b6001816002811061087557600080fd5b01546001600160a01b0316905081565b60055460ff161580156108a05750600554610100900460ff16155b6108df5760405162461bcd60e51b815260206004820152601060248201526f141a58dac81a5cc81c995d99585b195960821b60448201526064016102a5565b60006108ea3361094c565b90506000198160000b1361092f5760405162461bcd60e51b815260206004820152600c60248201526b2737ba103090383630bcb2b960a11b60448201526064016102a5565b8160038260ff166002811061094657610946610bab565b01555050565b6000805b60028160ff1610156109a457826001600160a01b031660018260ff166002811061097c5761097c610bab565b01546001600160a01b0316036109925792915050565b8061099c81610c79565b915050610950565b5060001992915050565b6001546000906001600160a01b031615806102555750506002546001600160a01b03161590565b6000546001600160a01b031633146109ec57600080fd5b60006109f8600061094c565b90506000198160000b13610a3e5760405162461bcd60e51b815260206004820152600d60248201526c4e6f206672656520736561747360981b60448201526064016102a5565b8160018260ff1660028110610a5557610a55610bab565b0180546001600160a01b0319166001600160a01b03929092169190911790555050565b60005b60028160ff161015610aec576000600360ff831660028110610a9f57610a9f610bab565b01556000600560ff831660028110610ab957610ab9610bab565b602091828204019190066101000a81548160ff021916908360ff1602179055508080610ae490610c79565b915050610a7b565b50565b600060208284031215610b0157600080fd5b81356001600160a01b0381168114610b1857600080fd5b9392505050565b803560ff81168114610b3057600080fd5b919050565b60008060408385031215610b4857600080fd5b610b5183610b1f565b9150610b5f60208401610b1f565b90509250929050565b60008060408385031215610b7b57600080fd5b610b8483610b1f565b946020939093013593505050565b600060208284031215610ba457600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610be957610be9610bc1565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6020808252825182820181905260009190848201906040850190845b81811015610c3e57835183529284019291840191600101610c22565b50909695505050505050565b6000825160005b81811015610c6b5760208186018101518583015201610c51565b506000920191825250919050565b600060ff821660ff8103610c8f57610c8f610bc1565b6001019291505056fea26469706673582212208d7f82b44f8e6e6836e2bf4a6b89fec751954c1daf33c56c60938aca2a1ed2ba64736f6c63430008190033000000000000000000000000000000000000000000000000000000174876e800000000000000000000000000e2b9cb63137a42b17bf6159a0ef49638e1cec9ce000000000000000000000000ced7573d4c2538c89d96ba242df64ac44cdc2850
0x000000000000000000000000000000000000000000000000000000174876e800000000000000000000000000e2b9cb63137a42b17bf6159a0ef49638e1cec9ce000000000000000000000000ced7573d4c2538c89d96ba242df64ac44cdc2850
----Decoded View------------Arg [0] : winReward_ (uint256): 100000000000Arg [1] : erc20_ (address): 0xE2B9cB63137A42B17bf6159A0ef49638E1cEc9ceArg [2] : treasury_ (address): 0xCed7573D4c2538c89D96Ba242DF64AC44cDC2850
----Encoded View------------Arg [0] : 0x000000000000000000000000000000000000000000000000000000174876e800Arg [1] : 0x000000000000000000000000e2b9cb63137a42b17bf6159a0ef49638e1cec9ceArg [2] : 0x000000000000000000000000ced7573d4c2538c89d96ba242df64ac44cdc2850