{
    "contractName": "DutchAuctionCloser",
    "abi": [
        {
            "constant": true,
            "inputs": [],
            "name": "DYDX_MARGIN",
            "outputs": [
                {
                    "name": "",
                    "type": "address"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [],
            "name": "CALL_TIMELIMIT_NUMERATOR",
            "outputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [],
            "name": "CALL_TIMELIMIT_DENOMINATOR",
            "outputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        },
        {
            "inputs": [
                {
                    "name": "margin",
                    "type": "address"
                },
                {
                    "name": "callTimeLimitNumerator",
                    "type": "uint256"
                },
                {
                    "name": "callTimeLimitDenominator",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "constructor"
        },
        {
            "anonymous": false,
            "inputs": [
                {
                    "indexed": true,
                    "name": "positionId",
                    "type": "bytes32"
                },
                {
                    "indexed": true,
                    "name": "owner",
                    "type": "address"
                },
                {
                    "indexed": true,
                    "name": "bidder",
                    "type": "address"
                },
                {
                    "indexed": false,
                    "name": "closeAmount",
                    "type": "uint256"
                },
                {
                    "indexed": false,
                    "name": "heldTokenForBidder",
                    "type": "uint256"
                },
                {
                    "indexed": false,
                    "name": "heldTokenForOwner",
                    "type": "uint256"
                }
            ],
            "name": "PositionClosedByDutchAuction",
            "type": "event"
        },
        {
            "constant": false,
            "inputs": [
                {
                    "name": "positionId",
                    "type": "bytes32"
                },
                {
                    "name": "closeAmount",
                    "type": "uint256"
                },
                {
                    "name": "closer",
                    "type": "address"
                },
                {
                    "name": "positionOwner",
                    "type": "address"
                },
                {
                    "name": "heldToken",
                    "type": "address"
                },
                {
                    "name": "payout",
                    "type": "uint256"
                },
                {
                    "name": "totalHeldToken",
                    "type": "uint256"
                },
                {
                    "name": "payoutInHeldToken",
                    "type": "bool"
                }
            ],
            "name": "receiveClosePositionPayout",
            "outputs": [
                {
                    "name": "",
                    "type": "bool"
                }
            ],
            "payable": false,
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "constant": true,
            "inputs": [
                {
                    "name": "positionId",
                    "type": "bytes32"
                },
                {
                    "name": "totalHeldToken",
                    "type": "uint256"
                }
            ],
            "name": "getAuctionCost",
            "outputs": [
                {
                    "name": "",
                    "type": "uint256"
                }
            ],
            "payable": false,
            "stateMutability": "view",
            "type": "function"
        }
    ],
    "bytecode": "0x608060405234801561001057600080fd5b50604051606080610cf783398101604090815281516020830151919092015160008054600160a060020a031916600160a060020a038516179055808211156100cd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e6024820152600080516020610cd783398151915260448201527f496e76616c69642063616c6c54696d654c696d6974206672616374696f6e0000606482015290519081900360840190fd5b6000821161017657604080517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260426024820152600080516020610cd783398151915260448201527f63616c6c54696d654c696d6974206672616374696f6e2063616e6e6f7420626560648201527f2030000000000000000000000000000000000000000000000000000000000000608482015290519081900360a40190fd5b60019190915560025550610b488061018f6000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630dda60cc811461007157806334e73f6c146100af5780638c33f001146100dc5780639432f0c7146100f1578063f6da6ddd14610150575b600080fd5b34801561007d57600080fd5b50610086610165565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156100bb57600080fd5b506100ca600435602435610181565b60408051918252519081900360200190f35b3480156100e857600080fd5b506100ca61026e565b3480156100fd57600080fd5b5061013c60043560243573ffffffffffffffffffffffffffffffffffffffff6044358116906064358116906084351660a43560c43560e4351515610274565b604080519115158252519081900360200190f35b34801561015c57600080fd5b506100ca610524565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600080600061018f8561052a565b9150915081421015151561022a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602481018290527f447574636841756374696f6e436c6f7365722367657441756374696f6e54696d60448201527f654c696d6974733a2041756374696f6e20686173206e6f742073746172746564606482015290519081900360840190fd5b42811161023a5760009250610266565b61026361024d824263ffffffff61065916565b61025d838563ffffffff61065916565b86610670565b92505b505092915050565b60015481565b6000805481908190819073ffffffffffffffffffffffffffffffffffffffff16331461032757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4f6e6c794d617267696e236f6e6c794d617267696e3a204f6e6c79204d61726760448201527f696e2063616e2063616c6c000000000000000000000000000000000000000000606482015290519081900360840190fd5b8415156103e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604a60248201527f447574636841756374696f6e436c6f7365722372656365697665436c6f73655060448201527f6f736974696f6e5061796f75743a2043616e6e6f7420706179206f757420696e60648201527f2062617365546f6b656e00000000000000000000000000000000000000000000608482015290519081900360a40190fd5b6103eb8c87610181565b604080517f47369a7c000000000000000000000000000000000000000000000000000000008152600481018f9052905191945073ffffffffffffffffffffffffffffffffffffffff8b16916347369a7c91602480820192602092909190829003018186803b15801561045c57600080fd5b505afa158015610470573d6000803e3d6000fd5b505050506040513d602081101561048657600080fd5b5051915061049588838561069a565b6104a5878463ffffffff61065916565b90506104b2888b8361069a565b604080518c815260208101839052808201859052905173ffffffffffffffffffffffffffffffffffffffff808d1692908c16918f917f629c5ffc7364ca0085f15429f87c3104240b2c3573f492e26a06ea39b3f40e96919081900360600190a45060019b9a5050505050505050505050565b60025481565b600080600080610538610a5f565b600080548190819081906105629073ffffffffffffffffffffffffffffffffffffffff168b610839565b945061058c85610120015163ffffffff168660e0015163ffffffff166109c790919063ffffffff16565b935084610100015163ffffffff1692508460c0015163ffffffff1691506105b860015460025484610670565b9050818111156105c457fe5b8215806105df5750836105dd848463ffffffff6109c716565b115b156106145761060a8560e0015163ffffffff16610605838761065990919063ffffffff16565b6109d4565b9650839550610649565b61063481610628858563ffffffff6109c716565b9063ffffffff61065916565b9650610646838363ffffffff6109c716565b95505b5094989397509295505050505050565b60008282111561066557fe5b508082035b92915050565b600061069283610686868563ffffffff6109ed16565b9063ffffffff610a1616565b949350505050565b308115806106d357508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156106dd57610833565b8373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561078057600080fd5b505af1158015610794573d6000803e3d6000fd5b505050506107a0610a2b565b151561083357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f546f6b656e496e746572616374237472616e736665723a205472616e7366657260448201527f206661696c656400000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b50505050565b610841610a5f565b610849610ac3565b610851610ae2565b610859610afd565b604080517f1928b3cb00000000000000000000000000000000000000000000000000000000815260048101879052905173ffffffffffffffffffffffffffffffffffffffff881691631928b3cb91602480830192610180929190829003018186803b1580156108c757600080fd5b505afa1580156108db573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061018081101561090157600080fd5b506040805161018081018252825173ffffffffffffffffffffffffffffffffffffffff908116825260208085015182169083015283830151811692820192909252606080840151909216918101919091526080808301519082015260a0808301519082015260c08083015163ffffffff9081169183019190915260e0808401518216908301526101008084015182169083015261012080840151821690830152610140808401518216908301526101609283015116918101919091529695505050505050565b8181018281101561066a57fe5b6000818310156109e457816109e6565b825b9392505050565b60008215156109fe5750600061066a565b50818102818382811515610a0e57fe5b041461066a57fe5b60008183811515610a2357fe5b049392505050565b6000803d8015610a425760208114610a4b57610a57565b60019150610a57565b60206000803e60005191505b501515919050565b6040805161018081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101829052610140810182905261016081019190915290565b6080604051908101604052806004906020820280388339509192915050565b60408051808201825290600290829080388339509192915050565b60c06040519081016040528060069060208202803883395091929150505600a165627a7a723058207a0b656ba623c1f0c9c1f9109ba18fc55cca5146bb6d729a5a28d25dfe2817ac0029447574636841756374696f6e436c6f73657223636f6e7374727563746f723a20",
    "networks": {
        "1": {
            "links": {},
            "address": "0x686f7d0b698b6780a8ce1d6ae13bb8c813552ff3",
            "transactionHash": "0x80e89828b37fdf981c05a1e43d40580077960ec7f099f34dc49179d4dfb5105b"
        },
        "42": {
            "links": {},
            "address": "0xa30592bda13d060abe610f4c813de8d53ba24752",
            "transactionHash": "0x279b1da2d2728ae7c629c1f388f91f07b40bb51c6aed48771d4287f14381f048"
        },
        "1212": {
            "links": {},
            "address": "0x4339316e04cffb5961d1c41fef8e44bfa2a7fbd1",
            "transactionHash": "0x363f55338f12ca7877ad9825d0578af87c0fd0a51ddbdba562517e8db17d6632"
        }
    },
    "schemaVersion": "2.0.1"
}