{"abi":[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"address","name":"senderOrigin","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"senderOrigin","type":"address"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","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"},{"constant":true,"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"senderOrigin","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"_reserve0","type":"uint112"},{"internalType":"uint112","name":"_reserve1","type":"uint112"},{"internalType":"uint32","name":"_blockTimestampLast","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token0","type":"address"},{"internalType":"address","name":"_token1","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"kLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"senderOrigin","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"sync","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"additional_sources":[],"can_be_visualized_via_sol2uml":false,"compiler_settings":{"compilationTarget":{"PLP/PulseXPair.sol":"PulseXPair"},"evmVersion":"istanbul","libraries":{},"optimizer":{"enabled":true,"runs":999999},"remappings":[]},"compiler_version":"v0.5.16+commit.9c3226ce","constructor_args":null,"creation_bytecode":"0x60806040526001600c5534801561001557600080fd5b506040514690806052612d7282396040805191829003605201822082820182526009835268050756c736558204c560bc1b6020938401528151808301835260018152603160f81b908401528151808401919091527f43194ddbd5716329ca17f532dd2a85596980697a58609672f5fb3414a4b61349818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600580546001600160a01b03191633179055612c6e806101046000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80635a3d5493116100f9578063bc25cf7711610097578063d505accf11610071578063d505accf146105b7578063dd62ed3e14610615578063ee1fe2ad14610650578063fff6cae91461068b576101b9565b8063bc25cf7714610574578063c45a0155146105a7578063d21220a7146105af576101b9565b80637ecebe00116100d35780637ecebe00146104f857806395d89b411461052b578063a9059cbb14610533578063ba9a7a561461056c576101b9565b80635a3d5493146104b557806370a08231146104bd5780637464fc3d146104f0576101b9565b806323b872dd11610166578063313ce56711610140578063313ce5671461044c5780633644e5151461046a578063485cc955146104725780635909c0d5146104ad576101b9565b806323b872dd146103ad57806327fc84a3146103f057806330adf81f14610444576101b9565b8063095ea7b311610197578063095ea7b3146103155780630dfe16811461036257806318160ddd14610393576101b9565b8063022c0d9f146101be57806306fdde03146102595780630902f1ac146102d6575b600080fd5b610257600480360360808110156101d457600080fd5b81359160208101359173ffffffffffffffffffffffffffffffffffffffff604083013516919081019060808101606082013564010000000081111561021857600080fd5b82018360208201111561022a57600080fd5b8035906020019184600183028401116401000000008311171561024c57600080fd5b509092509050610693565b005b610261610d7e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102de610db7565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b61034e6004803603604081101561032b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610e0c565b604080519115158252519081900360200190f35b61036a610e23565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61039b610e3f565b60408051918252519081900360200190f35b61034e600480360360608110156103c357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610e45565b61042b6004803603604081101561040657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f24565b6040805192835260208301919091528051918290030190f35b61039b6113f2565b610454611416565b6040805160ff9092168252519081900360200190f35b61039b61141b565b6102576004803603604081101561048857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611421565b61039b6114fa565b61039b611500565b61039b600480360360208110156104d357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611506565b61039b611518565b61039b6004803603602081101561050e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661151e565b610261611530565b61034e6004803603604081101561054957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611569565b61039b611576565b6102576004803603602081101561058a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661157c565b61036a611772565b61036a61178e565b610257600480360360e08110156105cd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356117aa565b61039b6004803603604081101561062b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611a76565b61039b6004803603604081101561066657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611a93565b610257611e69565b600c5460011461070457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806107175750600084115b61076c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612c186022913960400191505060405180910390fd5b600080610777610db7565b5091509150816dffffffffffffffffffffffffffff16871080156107aa5750806dffffffffffffffffffffffffffff1686105b61081557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f50756c7365583a20494e53554646494349454e545f4c49515549444954590000604482015290519081900360640190fd5b600654600754600091829173ffffffffffffffffffffffffffffffffffffffff91821691908116908916821480159061087a57508073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b6108e557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f50756c7365583a20494e56414c49445f544f0000000000000000000000000000604482015290519081900360640190fd5b8a156108f6576108f6828a8d61204f565b891561090757610907818a8c61204f565b86156109e9578873ffffffffffffffffffffffffffffffffffffffff166310d1e85c338d8d8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b505050505b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b158015610a5557600080fd5b505afa158015610a69573d6000803e3d6000fd5b505050506040513d6020811015610a7f57600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191955073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b158015610af157600080fd5b505afa158015610b05573d6000803e3d6000fd5b505050506040513d6020811015610b1b57600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a90038311610b45576000610b5b565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff16038311610b7f576000610b95565b89856dffffffffffffffffffffffffffff160383035b90506000821180610ba65750600081115b610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612bd26021913960400191505060405180910390fd5b6000610c2f610c1184601d63ffffffff61225c16565b610c238761271063ffffffff61225c16565b9063ffffffff6122e216565b90506000610c47610c1184601d63ffffffff61225c16565b9050610c806305f5e100610c746dffffffffffffffffffffffffffff8b8116908b1663ffffffff61225c16565b9063ffffffff61225c16565b610c90838363ffffffff61225c16565b1015610cfd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f50756c7365583a204b0000000000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610d0b84848888612354565b60408051838152602081018390528082018d9052606081018c9052905173ffffffffffffffffffffffffffffffffffffffff8b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600981526020017f50756c736558204c50000000000000000000000000000000000000000000000081525081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610e19338484612610565b5060015b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610f0f5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610edd908363ffffffff6122e216565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b610f1a84848461267f565b5060019392505050565b600080600c54600114610f9857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580610fa8610db7565b50600654600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905194965092945073ffffffffffffffffffffffffffffffffffffffff9182169391169160009184916370a08231916024808301926020929190829003018186803b15801561102a57600080fd5b505afa15801561103e573d6000803e3d6000fd5b505050506040513d602081101561105457600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff8516916370a08231916024808301926020929190829003018186803b1580156110c857600080fd5b505afa1580156110dc573d6000803e3d6000fd5b505050506040513d60208110156110f257600080fd5b5051306000908152600160205260408120549192506111118888612760565b60005490915080611128848763ffffffff61225c16565b8161112f57fe5b049a5080611143848663ffffffff61225c16565b8161114a57fe5b04995060008b11801561115d575060008a115b6111b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612bf36025913960400191505060405180910390fd5b6111bc30846128f6565b6111c7878e8d61204f565b6111d2868e8c61204f565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b15801561123e57600080fd5b505afa158015611252573d6000803e3d6000fd5b505050506040513d602081101561126857600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191965073ffffffffffffffffffffffffffffffffffffffff8816916370a0823191602480820192602092909190829003018186803b1580156112da57600080fd5b505afa1580156112ee573d6000803e3d6000fd5b505050506040513d602081101561130457600080fd5b5051935061131485858b8b612354565b811561135657600854611352906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff61225c16565b600b555b8b73ffffffffffffffffffffffffffffffffffffffff168d73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9f3761f1dbc9bb1a40d880a8871ee4bf6433f55c4a03283a07b323fa4173c6c38e8e604051808381526020018281526020019250505060405180910390a45050505050505050506001600c819055509250929050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60055473ffffffffffffffffffffffffffffffffffffffff1633146114a757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f50756c7365583a20464f5242494444454e000000000000000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b60095481565b600a5481565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b6040518060400160405280600381526020017f504c50000000000000000000000000000000000000000000000000000000000081525081565b6000610e1933848461267f565b6103e881565b600c546001146115ed57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff94851694909316926116c992859287926116c4926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b15801561168c57600080fd5b505afa1580156116a0573d6000803e3d6000fd5b505050506040513d60208110156116b657600080fd5b50519063ffffffff6122e216565b61204f565b600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161176892849287926116c4926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169173ffffffffffffffffffffffffffffffffffffffff8616916370a0823191602480820192602092909190829003018186803b15801561168c57600080fd5b50506001600c5550565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b4284101561181957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f50756c7365583a20455850495245440000000000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa15801561197a573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116158015906119f557508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611a6057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f50756c7365583a20494e56414c49445f5349474e415455524500000000000000604482015290519081900360640190fd5b611a6b898989612610565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b6000600c54600114611b0657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611b16610db7565b50600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905193955091935060009273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b158015611b9057600080fd5b505afa158015611ba4573d6000803e3d6000fd5b505050506040513d6020811015611bba57600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611c3357600080fd5b505afa158015611c47573d6000803e3d6000fd5b505050506040513d6020811015611c5d57600080fd5b505190506000611c83836dffffffffffffffffffffffffffff871663ffffffff6122e216565b90506000611ca7836dffffffffffffffffffffffffffff871663ffffffff6122e216565b90506000611cb58787612760565b60005490915080611cf257611cde6103e8610c23611cd9878763ffffffff61225c16565b6129bb565b9850611ced60006103e8612a0d565b611d4f565b611d4c6dffffffffffffffffffffffffffff8916611d16868463ffffffff61225c16565b81611d1d57fe5b046dffffffffffffffffffffffffffff8916611d3f868563ffffffff61225c16565b81611d4657fe5b04612abd565b98505b60008911611da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612bad6025913960400191505060405180910390fd5b611db28b8a612a0d565b611dbe86868a8a612354565b8115611e0057600854611dfc906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff61225c16565b600b555b6040805185815260208101859052815173ffffffffffffffffffffffffffffffffffffffff8d169233927fdbba30eb0402b389513e87f51f4db2db80bed454384ec6925a24097c3548a02a929081900390910190a350506001600c555094979650505050505050565b600c54600114611eda57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516120489273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611f5157600080fd5b505afa158015611f65573d6000803e3d6000fd5b505050506040513d6020811015611f7b57600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611fee57600080fd5b505afa158015612002573d6000803e3d6000fd5b505050506040513d602081101561201857600080fd5b50516008546dffffffffffffffffffffffffffff808216916e010000000000000000000000000000900416612354565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff85811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b6020831061215557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612118565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146121b7576040519150601f19603f3d011682016040523d82523d6000602084013e6121bc565b606091505b50915091508180156121ea5750805115806121ea57508080602001905160208110156121e757600080fd5b50515b61225557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f50756c7365583a205452414e534645525f4641494c4544000000000000000000604482015290519081900360640190fd5b5050505050565b60008115806122775750508082028282828161227457fe5b04145b610e1d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610e1d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061238057506dffffffffffffffffffffffffffff8311155b6123eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f50756c7365583a204f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c01000000000000000000000000000000000000000000000000000000009004811682039081161580159061243b57506dffffffffffffffffffffffffffff841615155b801561245657506dffffffffffffffffffffffffffff831615155b15612506578063ffffffff166124998561246f86612ad5565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff612af916565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff81166124d98461246f87612ad5565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020546126b5908263ffffffff6122e216565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602052604080822093909355908416815220546126f7908263ffffffff612b3a16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b1580156127cb57600080fd5b505afa1580156127df573d6000803e3d6000fd5b505050506040513d60208110156127f557600080fd5b5051600b5473ffffffffffffffffffffffffffffffffffffffff82161580159450919250906128e25780156128dd57600061284c611cd96dffffffffffffffffffffffffffff88811690881663ffffffff61225c16565b90506000612859836129bb565b9050808211156128da576000612887612878848463ffffffff6122e216565b6000549063ffffffff61225c16565b905060006128b68360076128a287601663ffffffff61225c16565b816128a957fe5b049063ffffffff612b3a16565b905060008183816128c357fe5b04905080156128d6576128d68782612a0d565b5050505b50505b6128ee565b80156128ee576000600b555b505092915050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205461292c908263ffffffff6122e216565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604081209190915554612966908263ffffffff6122e216565b600090815560408051838152905173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b600060038211156129fe575080600160028204015b818110156129f8578091506002818285816129e757fe5b0401816129f057fe5b0490506129d0565b50612a08565b8115612a08575060015b919050565b600054612a20908263ffffffff612b3a16565b600090815573ffffffffffffffffffffffffffffffffffffffff8316815260016020526040902054612a58908263ffffffff612b3a16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612acc5781612ace565b825b9392505050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612b3257fe5b049392505050565b80820182811015610e1d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfe50756c7365583a20494e53554646494349454e545f4c49515549444954595f4d494e54454450756c7365583a20494e53554646494349454e545f494e5055545f414d4f554e5450756c7365583a20494e53554646494349454e545f4c49515549444954595f4255524e454450756c7365583a20494e53554646494349454e545f4f55545055545f414d4f554e54a265627a7a72315820e2dbec8d61a5f57a680951b403b0f2a6209495c7776d53fa577fe240d008bacf64736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429","decoded_constructor_args":null,"deployed_bytecode":"0x608060405234801561001057600080fd5b50600436106101b95760003560e01c80635a3d5493116100f9578063bc25cf7711610097578063d505accf11610071578063d505accf146105b7578063dd62ed3e14610615578063ee1fe2ad14610650578063fff6cae91461068b576101b9565b8063bc25cf7714610574578063c45a0155146105a7578063d21220a7146105af576101b9565b80637ecebe00116100d35780637ecebe00146104f857806395d89b411461052b578063a9059cbb14610533578063ba9a7a561461056c576101b9565b80635a3d5493146104b557806370a08231146104bd5780637464fc3d146104f0576101b9565b806323b872dd11610166578063313ce56711610140578063313ce5671461044c5780633644e5151461046a578063485cc955146104725780635909c0d5146104ad576101b9565b806323b872dd146103ad57806327fc84a3146103f057806330adf81f14610444576101b9565b8063095ea7b311610197578063095ea7b3146103155780630dfe16811461036257806318160ddd14610393576101b9565b8063022c0d9f146101be57806306fdde03146102595780630902f1ac146102d6575b600080fd5b610257600480360360808110156101d457600080fd5b81359160208101359173ffffffffffffffffffffffffffffffffffffffff604083013516919081019060808101606082013564010000000081111561021857600080fd5b82018360208201111561022a57600080fd5b8035906020019184600183028401116401000000008311171561024c57600080fd5b509092509050610693565b005b610261610d7e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102de610db7565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b61034e6004803603604081101561032b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610e0c565b604080519115158252519081900360200190f35b61036a610e23565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61039b610e3f565b60408051918252519081900360200190f35b61034e600480360360608110156103c357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610e45565b61042b6004803603604081101561040657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f24565b6040805192835260208301919091528051918290030190f35b61039b6113f2565b610454611416565b6040805160ff9092168252519081900360200190f35b61039b61141b565b6102576004803603604081101561048857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611421565b61039b6114fa565b61039b611500565b61039b600480360360208110156104d357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611506565b61039b611518565b61039b6004803603602081101561050e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661151e565b610261611530565b61034e6004803603604081101561054957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611569565b61039b611576565b6102576004803603602081101561058a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661157c565b61036a611772565b61036a61178e565b610257600480360360e08110156105cd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356117aa565b61039b6004803603604081101561062b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611a76565b61039b6004803603604081101561066657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611a93565b610257611e69565b600c5460011461070457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806107175750600084115b61076c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612c186022913960400191505060405180910390fd5b600080610777610db7565b5091509150816dffffffffffffffffffffffffffff16871080156107aa5750806dffffffffffffffffffffffffffff1686105b61081557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f50756c7365583a20494e53554646494349454e545f4c49515549444954590000604482015290519081900360640190fd5b600654600754600091829173ffffffffffffffffffffffffffffffffffffffff91821691908116908916821480159061087a57508073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b6108e557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f50756c7365583a20494e56414c49445f544f0000000000000000000000000000604482015290519081900360640190fd5b8a156108f6576108f6828a8d61204f565b891561090757610907818a8c61204f565b86156109e9578873ffffffffffffffffffffffffffffffffffffffff166310d1e85c338d8d8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b505050505b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b158015610a5557600080fd5b505afa158015610a69573d6000803e3d6000fd5b505050506040513d6020811015610a7f57600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191955073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b158015610af157600080fd5b505afa158015610b05573d6000803e3d6000fd5b505050506040513d6020811015610b1b57600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a90038311610b45576000610b5b565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff16038311610b7f576000610b95565b89856dffffffffffffffffffffffffffff160383035b90506000821180610ba65750600081115b610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612bd26021913960400191505060405180910390fd5b6000610c2f610c1184601d63ffffffff61225c16565b610c238761271063ffffffff61225c16565b9063ffffffff6122e216565b90506000610c47610c1184601d63ffffffff61225c16565b9050610c806305f5e100610c746dffffffffffffffffffffffffffff8b8116908b1663ffffffff61225c16565b9063ffffffff61225c16565b610c90838363ffffffff61225c16565b1015610cfd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f50756c7365583a204b0000000000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610d0b84848888612354565b60408051838152602081018390528082018d9052606081018c9052905173ffffffffffffffffffffffffffffffffffffffff8b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600981526020017f50756c736558204c50000000000000000000000000000000000000000000000081525081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610e19338484612610565b5060015b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610f0f5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610edd908363ffffffff6122e216565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b610f1a84848461267f565b5060019392505050565b600080600c54600114610f9857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580610fa8610db7565b50600654600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905194965092945073ffffffffffffffffffffffffffffffffffffffff9182169391169160009184916370a08231916024808301926020929190829003018186803b15801561102a57600080fd5b505afa15801561103e573d6000803e3d6000fd5b505050506040513d602081101561105457600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff8516916370a08231916024808301926020929190829003018186803b1580156110c857600080fd5b505afa1580156110dc573d6000803e3d6000fd5b505050506040513d60208110156110f257600080fd5b5051306000908152600160205260408120549192506111118888612760565b60005490915080611128848763ffffffff61225c16565b8161112f57fe5b049a5080611143848663ffffffff61225c16565b8161114a57fe5b04995060008b11801561115d575060008a115b6111b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612bf36025913960400191505060405180910390fd5b6111bc30846128f6565b6111c7878e8d61204f565b6111d2868e8c61204f565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b15801561123e57600080fd5b505afa158015611252573d6000803e3d6000fd5b505050506040513d602081101561126857600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191965073ffffffffffffffffffffffffffffffffffffffff8816916370a0823191602480820192602092909190829003018186803b1580156112da57600080fd5b505afa1580156112ee573d6000803e3d6000fd5b505050506040513d602081101561130457600080fd5b5051935061131485858b8b612354565b811561135657600854611352906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff61225c16565b600b555b8b73ffffffffffffffffffffffffffffffffffffffff168d73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9f3761f1dbc9bb1a40d880a8871ee4bf6433f55c4a03283a07b323fa4173c6c38e8e604051808381526020018281526020019250505060405180910390a45050505050505050506001600c819055509250929050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60055473ffffffffffffffffffffffffffffffffffffffff1633146114a757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f50756c7365583a20464f5242494444454e000000000000000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b60095481565b600a5481565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b6040518060400160405280600381526020017f504c50000000000000000000000000000000000000000000000000000000000081525081565b6000610e1933848461267f565b6103e881565b600c546001146115ed57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff94851694909316926116c992859287926116c4926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b15801561168c57600080fd5b505afa1580156116a0573d6000803e3d6000fd5b505050506040513d60208110156116b657600080fd5b50519063ffffffff6122e216565b61204f565b600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161176892849287926116c4926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169173ffffffffffffffffffffffffffffffffffffffff8616916370a0823191602480820192602092909190829003018186803b15801561168c57600080fd5b50506001600c5550565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b4284101561181957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f50756c7365583a20455850495245440000000000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa15801561197a573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116158015906119f557508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611a6057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f50756c7365583a20494e56414c49445f5349474e415455524500000000000000604482015290519081900360640190fd5b611a6b898989612610565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b6000600c54600114611b0657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611b16610db7565b50600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905193955091935060009273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b158015611b9057600080fd5b505afa158015611ba4573d6000803e3d6000fd5b505050506040513d6020811015611bba57600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611c3357600080fd5b505afa158015611c47573d6000803e3d6000fd5b505050506040513d6020811015611c5d57600080fd5b505190506000611c83836dffffffffffffffffffffffffffff871663ffffffff6122e216565b90506000611ca7836dffffffffffffffffffffffffffff871663ffffffff6122e216565b90506000611cb58787612760565b60005490915080611cf257611cde6103e8610c23611cd9878763ffffffff61225c16565b6129bb565b9850611ced60006103e8612a0d565b611d4f565b611d4c6dffffffffffffffffffffffffffff8916611d16868463ffffffff61225c16565b81611d1d57fe5b046dffffffffffffffffffffffffffff8916611d3f868563ffffffff61225c16565b81611d4657fe5b04612abd565b98505b60008911611da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612bad6025913960400191505060405180910390fd5b611db28b8a612a0d565b611dbe86868a8a612354565b8115611e0057600854611dfc906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff61225c16565b600b555b6040805185815260208101859052815173ffffffffffffffffffffffffffffffffffffffff8d169233927fdbba30eb0402b389513e87f51f4db2db80bed454384ec6925a24097c3548a02a929081900390910190a350506001600c555094979650505050505050565b600c54600114611eda57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f50756c7365583a204c4f434b4544000000000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516120489273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611f5157600080fd5b505afa158015611f65573d6000803e3d6000fd5b505050506040513d6020811015611f7b57600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611fee57600080fd5b505afa158015612002573d6000803e3d6000fd5b505050506040513d602081101561201857600080fd5b50516008546dffffffffffffffffffffffffffff808216916e010000000000000000000000000000900416612354565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff85811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b6020831061215557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612118565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146121b7576040519150601f19603f3d011682016040523d82523d6000602084013e6121bc565b606091505b50915091508180156121ea5750805115806121ea57508080602001905160208110156121e757600080fd5b50515b61225557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f50756c7365583a205452414e534645525f4641494c4544000000000000000000604482015290519081900360640190fd5b5050505050565b60008115806122775750508082028282828161227457fe5b04145b610e1d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610e1d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061238057506dffffffffffffffffffffffffffff8311155b6123eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f50756c7365583a204f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c01000000000000000000000000000000000000000000000000000000009004811682039081161580159061243b57506dffffffffffffffffffffffffffff841615155b801561245657506dffffffffffffffffffffffffffff831615155b15612506578063ffffffff166124998561246f86612ad5565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff612af916565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff81166124d98461246f87612ad5565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020546126b5908263ffffffff6122e216565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602052604080822093909355908416815220546126f7908263ffffffff612b3a16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b1580156127cb57600080fd5b505afa1580156127df573d6000803e3d6000fd5b505050506040513d60208110156127f557600080fd5b5051600b5473ffffffffffffffffffffffffffffffffffffffff82161580159450919250906128e25780156128dd57600061284c611cd96dffffffffffffffffffffffffffff88811690881663ffffffff61225c16565b90506000612859836129bb565b9050808211156128da576000612887612878848463ffffffff6122e216565b6000549063ffffffff61225c16565b905060006128b68360076128a287601663ffffffff61225c16565b816128a957fe5b049063ffffffff612b3a16565b905060008183816128c357fe5b04905080156128d6576128d68782612a0d565b5050505b50505b6128ee565b80156128ee576000600b555b505092915050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205461292c908263ffffffff6122e216565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604081209190915554612966908263ffffffff6122e216565b600090815560408051838152905173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b600060038211156129fe575080600160028204015b818110156129f8578091506002818285816129e757fe5b0401816129f057fe5b0490506129d0565b50612a08565b8115612a08575060015b919050565b600054612a20908263ffffffff612b3a16565b600090815573ffffffffffffffffffffffffffffffffffffffff8316815260016020526040902054612a58908263ffffffff612b3a16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612acc5781612ace565b825b9392505050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612b3257fe5b049392505050565b80820182811015610e1d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfe50756c7365583a20494e53554646494349454e545f4c49515549444954595f4d494e54454450756c7365583a20494e53554646494349454e545f494e5055545f414d4f554e5450756c7365583a20494e53554646494349454e545f4c49515549444954595f4255524e454450756c7365583a20494e53554646494349454e545f4f55545055545f414d4f554e54a265627a7a72315820e2dbec8d61a5f57a680951b403b0f2a6209495c7776d53fa577fe240d008bacf64736f6c63430005100032","evm_version":"istanbul","external_libraries":[],"file_path":"PLP/PulseXPair.sol","is_changed_bytecode":false,"is_fully_verified":false,"is_partially_verified":false,"is_self_destructed":false,"is_verified":false,"is_verified_via_eth_bytecode_db":false,"is_verified_via_sourcify":false,"is_vyper_contract":false,"language":"solidity","minimal_proxy_address_hash":null,"name":"PulseXPair","optimization_enabled":true,"optimization_runs":999999,"source_code":"// Dependency file: contracts/libraries/SafeMath.sol\n\n// pragma solidity =0.5.16;\n\n// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)\n\nlibrary SafeMath {\n    function add(uint x, uint y) internal pure returns (uint z) {\n        require((z = x + y) >= x, 'ds-math-add-overflow');\n    }\n\n    function sub(uint x, uint y) internal pure returns (uint z) {\n        require((z = x - y) <= x, 'ds-math-sub-underflow');\n    }\n\n    function mul(uint x, uint y) internal pure returns (uint z) {\n        require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow');\n    }\n}\n\n// Dependency file: contracts/interfaces/IPulseXERC20.sol\n\n// pragma solidity >=0.5.0;\n\ninterface IPulseXERC20 {\n    event Approval(address indexed owner, address indexed spender, uint value);\n    event Transfer(address indexed from, address indexed to, uint value);\n\n    function name() external pure returns (string memory);\n    function symbol() external pure returns (string memory);\n    function decimals() external pure returns (uint8);\n    function totalSupply() external view returns (uint);\n    function balanceOf(address owner) external view returns (uint);\n    function allowance(address owner, address spender) external view returns (uint);\n\n    function approve(address spender, uint value) external returns (bool);\n    function transfer(address to, uint value) external returns (bool);\n    function transferFrom(address from, address to, uint value) external returns (bool);\n\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n    function PERMIT_TYPEHASH() external pure returns (bytes32);\n    function nonces(address owner) external view returns (uint);\n\n    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n}\n\n// Dependency file: contracts/interfaces/IPulseXCallee.sol\n\n// pragma solidity >=0.5.0;\n\ninterface IPulseXCallee {\n    function uniswapV2Call(address sender, uint amount0, uint amount1, bytes calldata data) external;\n}\n\n// Dependency file: contracts/interfaces/IERC20.sol\n\n// pragma solidity >=0.5.0;\n\ninterface IERC20 {\n    event Approval(address indexed owner, address indexed spender, uint value);\n    event Transfer(address indexed from, address indexed to, uint value);\n\n    function name() external view returns (string memory);\n    function symbol() external view returns (string memory);\n    function decimals() external view returns (uint8);\n    function totalSupply() external view returns (uint);\n    function balanceOf(address owner) external view returns (uint);\n    function allowance(address owner, address spender) external view returns (uint);\n\n    function approve(address spender, uint value) external returns (bool);\n    function transfer(address to, uint value) external returns (bool);\n    function transferFrom(address from, address to, uint value) external returns (bool);\n}\n\n// Dependency file: contracts/libraries/UQ112x112.sol\n\n// pragma solidity =0.5.16;\n\n// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))\n\n// range: [0, 2**112 - 1]\n// resolution: 1 / 2**112\n\nlibrary UQ112x112 {\n    uint224 constant Q112 = 2**112;\n\n    // encode a uint112 as a UQ112x112\n    function encode(uint112 y) internal pure returns (uint224 z) {\n        z = uint224(y) * Q112; // never overflows\n    }\n\n    // divide a UQ112x112 by a uint112, returning a UQ112x112\n    function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {\n        z = x / uint224(y);\n    }\n}\n\n// Dependency file: contracts/libraries/Math.sol\n\n// pragma solidity =0.5.16;\n\n// a library for performing various math operations\n\nlibrary Math {\n    function min(uint x, uint y) internal pure returns (uint z) {\n        z = x < y ? x : y;\n    }\n\n    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)\n    function sqrt(uint y) internal pure returns (uint z) {\n        if (y > 3) {\n            z = y;\n            uint x = y / 2 + 1;\n            while (x < z) {\n                z = x;\n                x = (y / x + x) / 2;\n            }\n        } else if (y != 0) {\n            z = 1;\n        }\n    }\n}\n\n// Dependency file: contracts/PulseXERC20.sol\n\n// pragma solidity =0.5.16;\n\n// import './interfaces/IPulseXERC20.sol';\n// import './libraries/SafeMath.sol';\n\ncontract PulseXERC20 is IPulseXERC20 {\n    using SafeMath for uint;\n\n    string public constant name = 'PulseX LP';\n    string public constant symbol = 'PLP';\n    uint8 public constant decimals = 18;\n    uint  public totalSupply;\n    mapping(address => uint) public balanceOf;\n    mapping(address => mapping(address => uint)) public allowance;\n\n    bytes32 public DOMAIN_SEPARATOR;\n    // keccak256(\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\");\n    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;\n    mapping(address => uint) public nonces;\n\n    event Approval(address indexed owner, address indexed spender, uint value);\n    event Transfer(address indexed from, address indexed to, uint value);\n\n    constructor() public {\n        uint chainId;\n        assembly {\n            chainId := chainid\n        }\n        DOMAIN_SEPARATOR = keccak256(\n            abi.encode(\n                keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),\n                keccak256(bytes(name)),\n                keccak256(bytes('1')),\n                chainId,\n                address(this)\n            )\n        );\n    }\n\n    function _mint(address to, uint value) internal {\n        totalSupply = totalSupply.add(value);\n        balanceOf[to] = balanceOf[to].add(value);\n        emit Transfer(address(0), to, value);\n    }\n\n    function _burn(address from, uint value) internal {\n        balanceOf[from] = balanceOf[from].sub(value);\n        totalSupply = totalSupply.sub(value);\n        emit Transfer(from, address(0), value);\n    }\n\n    function _approve(address owner, address spender, uint value) private {\n        allowance[owner][spender] = value;\n        emit Approval(owner, spender, value);\n    }\n\n    function _transfer(address from, address to, uint value) private {\n        balanceOf[from] = balanceOf[from].sub(value);\n        balanceOf[to] = balanceOf[to].add(value);\n        emit Transfer(from, to, value);\n    }\n\n    function approve(address spender, uint value) external returns (bool) {\n        _approve(msg.sender, spender, value);\n        return true;\n    }\n\n    function transfer(address to, uint value) external returns (bool) {\n        _transfer(msg.sender, to, value);\n        return true;\n    }\n\n    function transferFrom(address from, address to, uint value) external returns (bool) {\n        if (allowance[from][msg.sender] != uint(-1)) {\n            allowance[from][msg.sender] = allowance[from][msg.sender].sub(value);\n        }\n        _transfer(from, to, value);\n        return true;\n    }\n\n    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external {\n        require(deadline >= block.timestamp, 'PulseX: EXPIRED');\n        bytes32 digest = keccak256(\n            abi.encodePacked(\n                '\\x19\\x01',\n                DOMAIN_SEPARATOR,\n                keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))\n            )\n        );\n        address recoveredAddress = ecrecover(digest, v, r, s);\n        require(recoveredAddress != address(0) && recoveredAddress == owner, 'PulseX: INVALID_SIGNATURE');\n        _approve(owner, spender, value);\n    }\n}\n\n// Dependency file: contracts/interfaces/IPulseXPair.sol\n\n// pragma solidity >=0.5.0;\n\ninterface IPulseXPair {\n    event Approval(address indexed owner, address indexed spender, uint value);\n    event Transfer(address indexed from, address indexed to, uint value);\n\n    function name() external pure returns (string memory);\n    function symbol() external pure returns (string memory);\n    function decimals() external pure returns (uint8);\n    function totalSupply() external view returns (uint);\n    function balanceOf(address owner) external view returns (uint);\n    function allowance(address owner, address spender) external view returns (uint);\n\n    function approve(address spender, uint value) external returns (bool);\n    function transfer(address to, uint value) external returns (bool);\n    function transferFrom(address from, address to, uint value) external returns (bool);\n\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n    function PERMIT_TYPEHASH() external pure returns (bytes32);\n    function nonces(address owner) external view returns (uint);\n\n    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n\n    event Mint(address indexed sender, uint amount0, uint amount1, address indexed senderOrigin);\n    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to, address indexed senderOrigin);\n    event Swap(\n        address indexed sender,\n        uint amount0In,\n        uint amount1In,\n        uint amount0Out,\n        uint amount1Out,\n        address indexed to\n    );\n    event Sync(uint112 reserve0, uint112 reserve1);\n\n    function MINIMUM_LIQUIDITY() external pure returns (uint);\n    function factory() external view returns (address);\n    function token0() external view returns (address);\n    function token1() external view returns (address);\n    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n    function price0CumulativeLast() external view returns (uint);\n    function price1CumulativeLast() external view returns (uint);\n    function kLast() external view returns (uint);\n\n    function mint(address to, address senderOrigin) external returns (uint liquidity);\n    function burn(address to, address senderOrigin) external returns (uint amount0, uint amount1);\n    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\n    function skim(address to) external;\n    function sync() external;\n\n    function initialize(address, address) external;\n}\n\n// Dependency file: contracts/PulseXPair.sol\n\n// pragma solidity =0.5.16;\n\n// import './interfaces/IPulseXPair.sol';\n// import './PulseXERC20.sol';\n// import './libraries/Math.sol';\n// import './libraries/UQ112x112.sol';\n// import './interfaces/IERC20.sol';\n// import './interfaces/IPulseXFactory.sol';\n// import './interfaces/IPulseXCallee.sol';\n\ncontract PulseXPair is IPulseXPair, PulseXERC20 {\n    using SafeMath  for uint;\n    using UQ112x112 for uint224;\n\n    uint public constant MINIMUM_LIQUIDITY = 10**3;\n    bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));\n\n    address public factory;\n    address public token0;\n    address public token1;\n\n    uint112 private reserve0;           // uses single storage slot, accessible via getReserves\n    uint112 private reserve1;           // uses single storage slot, accessible via getReserves\n    uint32  private blockTimestampLast; // uses single storage slot, accessible via getReserves\n\n    uint public price0CumulativeLast;\n    uint public price1CumulativeLast;\n    uint public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event\n\n    uint private unlocked = 1;\n    modifier lock() {\n        require(unlocked == 1, 'PulseX: LOCKED');\n        unlocked = 0;\n        _;\n        unlocked = 1;\n    }\n\n    function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) {\n        _reserve0 = reserve0;\n        _reserve1 = reserve1;\n        _blockTimestampLast = blockTimestampLast;\n    }\n\n    function _safeTransfer(address token, address to, uint value) private {\n        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));\n        require(success && (data.length == 0 || abi.decode(data, (bool))), 'PulseX: TRANSFER_FAILED');\n    }\n\n    event Mint(address indexed sender, uint amount0, uint amount1, address indexed senderOrigin);\n    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to, address indexed senderOrigin);\n    event Swap(\n        address indexed sender,\n        uint amount0In,\n        uint amount1In,\n        uint amount0Out,\n        uint amount1Out,\n        address indexed to\n    );\n    event Sync(uint112 reserve0, uint112 reserve1);\n\n    constructor() public {\n        factory = msg.sender;\n    }\n\n    // called once by the factory at time of deployment\n    function initialize(address _token0, address _token1) external {\n        require(msg.sender == factory, 'PulseX: FORBIDDEN'); // sufficient check\n        token0 = _token0;\n        token1 = _token1;\n    }\n\n    // update reserves and, on the first call per block, price accumulators\n    function _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) private {\n        require(balance0 <= uint112(-1) && balance1 <= uint112(-1), 'PulseX: OVERFLOW');\n        uint32 blockTimestamp = uint32(block.timestamp % 2**32);\n        uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired\n        if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {\n            // * never overflows, and + overflow is desired\n            price0CumulativeLast += uint(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;\n            price1CumulativeLast += uint(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;\n        }\n        reserve0 = uint112(balance0);\n        reserve1 = uint112(balance1);\n        blockTimestampLast = blockTimestamp;\n        emit Sync(reserve0, reserve1);\n    }\n\n    // if fee is on, mint liquidity equivalent to 7/29th of the growth in sqrt(k)\n    function _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) {\n        address feeTo = IPulseXFactory(factory).feeTo();\n        feeOn = feeTo != address(0);\n        uint _kLast = kLast; // gas savings\n        if (feeOn) {\n            if (_kLast != 0) {\n                uint rootK = Math.sqrt(uint(_reserve0).mul(_reserve1));\n                uint rootKLast = Math.sqrt(_kLast);\n                if (rootK > rootKLast) {\n                    uint numerator = totalSupply.mul(rootK.sub(rootKLast));\n                    uint denominator = (rootK.mul(22) / 7).add(rootKLast);\n                    uint liquidity = numerator / denominator;\n                    if (liquidity > 0) _mint(feeTo, liquidity);\n                }\n            }\n        } else if (_kLast != 0) {\n            kLast = 0;\n        }\n    }\n\n    // this low-level function should be called from a contract which performs // important safety checks\n    function mint(address to, address senderOrigin) external lock returns (uint liquidity) {\n        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings\n        uint balance0 = IERC20(token0).balanceOf(address(this));\n        uint balance1 = IERC20(token1).balanceOf(address(this));\n        uint amount0 = balance0.sub(_reserve0);\n        uint amount1 = balance1.sub(_reserve1);\n\n        bool feeOn = _mintFee(_reserve0, _reserve1);\n        uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee\n        if (_totalSupply == 0) {\n            liquidity = Math.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY);\n           _mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens\n        } else {\n            liquidity = Math.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1);\n        }\n        require(liquidity > 0, 'PulseX: INSUFFICIENT_LIQUIDITY_MINTED');\n        _mint(to, liquidity);\n\n        _update(balance0, balance1, _reserve0, _reserve1);\n        if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date\n        emit Mint(msg.sender, amount0, amount1, senderOrigin);\n    }\n\n    // this low-level function should be called from a contract which performs // important safety checks\n    function burn(address to, address senderOrigin) external lock returns (uint amount0, uint amount1) {\n        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings\n        address _token0 = token0;                                // gas savings\n        address _token1 = token1;                                // gas savings\n        uint balance0 = IERC20(_token0).balanceOf(address(this));\n        uint balance1 = IERC20(_token1).balanceOf(address(this));\n        uint liquidity = balanceOf[address(this)];\n\n        bool feeOn = _mintFee(_reserve0, _reserve1);\n        uint _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee\n        amount0 = liquidity.mul(balance0) / _totalSupply; // using balances ensures pro-rata distribution\n        amount1 = liquidity.mul(balance1) / _totalSupply; // using balances ensures pro-rata distribution\n        require(amount0 > 0 && amount1 > 0, 'PulseX: INSUFFICIENT_LIQUIDITY_BURNED');\n        _burn(address(this), liquidity);\n        _safeTransfer(_token0, to, amount0);\n        _safeTransfer(_token1, to, amount1);\n        balance0 = IERC20(_token0).balanceOf(address(this));\n        balance1 = IERC20(_token1).balanceOf(address(this));\n\n        _update(balance0, balance1, _reserve0, _reserve1);\n        if (feeOn) kLast = uint(reserve0).mul(reserve1); // reserve0 and reserve1 are up-to-date\n        emit Burn(msg.sender, amount0, amount1, to, senderOrigin);\n    }\n\n    // this low-level function should be called from a contract which performs // important safety checks\n    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock {\n        require(amount0Out > 0 || amount1Out > 0, 'PulseX: INSUFFICIENT_OUTPUT_AMOUNT');\n        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings\n        require(amount0Out < _reserve0 && amount1Out < _reserve1, 'PulseX: INSUFFICIENT_LIQUIDITY');\n\n        uint balance0;\n        uint balance1;\n        { // scope for _token{0,1}, avoids stack too deep errors\n        address _token0 = token0;\n        address _token1 = token1;\n        require(to != _token0 && to != _token1, 'PulseX: INVALID_TO');\n        if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens\n        if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens\n        if (data.length > 0) IPulseXCallee(to).uniswapV2Call(msg.sender, amount0Out, amount1Out, data);\n        balance0 = IERC20(_token0).balanceOf(address(this));\n        balance1 = IERC20(_token1).balanceOf(address(this));\n        }\n        uint amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;\n        uint amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;\n        require(amount0In > 0 || amount1In > 0, 'PulseX: INSUFFICIENT_INPUT_AMOUNT');\n        { // scope for reserve{0,1}Adjusted, avoids stack too deep errors\n        uint balance0Adjusted = balance0.mul(10000).sub(amount0In.mul(29));\n        uint balance1Adjusted = balance1.mul(10000).sub(amount1In.mul(29));\n        require(balance0Adjusted.mul(balance1Adjusted) >= uint(_reserve0).mul(_reserve1).mul(10000**2), 'PulseX: K');\n        }\n\n        _update(balance0, balance1, _reserve0, _reserve1);\n        emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);\n    }\n\n    // force balances to match reserves\n    function skim(address to) external lock {\n        address _token0 = token0; // gas savings\n        address _token1 = token1; // gas savings\n        _safeTransfer(_token0, to, IERC20(_token0).balanceOf(address(this)).sub(reserve0));\n        _safeTransfer(_token1, to, IERC20(_token1).balanceOf(address(this)).sub(reserve1));\n    }\n\n    // force reserves to match balances\n    function sync() external lock {\n        _update(IERC20(token0).balanceOf(address(this)), IERC20(token1).balanceOf(address(this)), reserve0, reserve1);\n    }\n}\n\n// Dependency file: contracts/interfaces/IPulseXFactory.sol\n\n// pragma solidity >=0.5.0;\n\ninterface IPulseXFactory {\n    event PairCreated(address indexed token0, address indexed token1, address pair, uint);\n\n    function feeTo() external view returns (address);\n    function feeToSetter() external view returns (address);\n\n    function getPair(address tokenA, address tokenB) external view returns (address pair);\n    function allPairs(uint) external view returns (address pair);\n    function allPairsLength() external view returns (uint);\n\n    function createPair(address tokenA, address tokenB) external returns (address pair);\n\n    function setFeeTo(address) external;\n    function setFeeToSetter(address) external;\n}\n\npragma solidity =0.5.16;\n\n// import './interfaces/IPulseXFactory.sol';\n// import './PulseXPair.sol';\n\ncontract PulseXFactory is IPulseXFactory {\n    address public feeTo;\n    address public feeToSetter;\n\n    mapping(address => mapping(address => address)) public getPair;\n    address[] public allPairs;\n    bytes32 public constant INIT_CODE_PAIR_HASH = keccak256(abi.encodePacked(type(PulseXPair).creationCode));\n\n    event PairCreated(address indexed token0, address indexed token1, address pair, uint);\n\n    constructor(address _feeToSetter) public {\n        feeToSetter = _feeToSetter;\n    }\n\n    function allPairsLength() external view returns (uint) {\n        return allPairs.length;\n    }\n\n    function createPair(address tokenA, address tokenB) external returns (address pair) {\n        require(tokenA != tokenB, 'PulseX: IDENTICAL_ADDRESSES');\n        (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);\n        require(token0 != address(0), 'PulseX: ZERO_ADDRESS');\n        require(getPair[token0][token1] == address(0), 'PulseX: PAIR_EXISTS'); // single check is sufficient\n        bytes memory bytecode = type(PulseXPair).creationCode;\n        bytes32 salt = keccak256(abi.encodePacked(token0, token1));\n        assembly {\n            pair := create2(0, add(bytecode, 32), mload(bytecode), salt)\n        }\n        PulseXPair(pair).initialize(token0, token1);\n        getPair[token0][token1] = pair;\n        getPair[token1][token0] = pair; // populate mapping in the reverse direction\n        allPairs.push(pair);\n        emit PairCreated(token0, token1, pair, allPairs.length);\n    }\n\n    function setFeeTo(address _feeTo) external {\n        require(msg.sender == feeToSetter, 'PulseX: FORBIDDEN');\n        feeTo = _feeTo;\n    }\n\n    function setFeeToSetter(address _feeToSetter) external {\n        require(msg.sender == feeToSetter, 'PulseX: FORBIDDEN');\n        feeToSetter = _feeToSetter;\n    }\n}","sourcify_repo_url":null,"verified_at":"2026-07-02T15:40:50.528511Z","verified_twin_address_hash":"0x913718F085d89e7eFBa092FeE4c11C2356D4cCEe"}