[ { "inputs": [ { "internalType": "address", "name": "_AMP", "type": "address" } ], "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": "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" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountWamp", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountAmp", "type": "uint256" } ], "name": "UnWrap", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountAmp", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountWamp", "type": "uint256" } ], "name": "Wrap", "type": "event" }, { "inputs": [], "name": "AMP", "outputs": [ { "internalType": "contract IAMP", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "AMPTowAMP", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "AmpAllowed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "claimOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], "name": "decreaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "exempt_", "type": "address" } ], "name": "toggleAmpAllowed", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "toggleTransferLock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "transferLocked", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" }, { "internalType": "bool", "name": "direct", "type": "bool" }, { "internalType": "bool", "name": "renounce", "type": "bool" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "unwrap", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "wAMPToAMP", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "wrap", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" } ]
60c06040526007805460ff191660011790553480156200001e57600080fd5b50604051620019b3380380620019b3833981810160405260208110156200004457600080fd5b5051604080518082018252601c81527f577261707065642041736761726469616e2050726f6d6973736f727900000000602082810191909152825180840184526004815263077414d560e41b91810191909152600080546001600160a01b0319163390811782559351929391927f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38151620000eb90600590602085019062000136565b5080516200010190600690602084019062000136565b5050600960f91b608052506001600160a01b0381166200012057600080fd5b60601b6001600160601b03191660a052620001e2565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200016e5760008555620001b9565b82601f106200018957805160ff1916838001178555620001b9565b82800160010185558215620001b9579182015b82811115620001b95782518255916020019190600101906200019c565b50620001c7929150620001cb565b5090565b5b80821115620001c75760008155600101620001cc565b60805160f81c60a05160601c6117846200022f600039806107e452806108ac52806109975280610cba5280610d3f5280610d6d52508061079152806107ba5280610a2252506117846000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806370a08231116100c3578063b2f4730d1161007c578063b2f4730d1461040e578063dc06649a14610416578063dd62ed3e1461043c578063de0e9a3e1461046a578063e30c397814610487578063ea598cb01461048f57610158565b806370a082311461035a5780638da5cb5b1461038057806395d89b4114610388578063a457c2d714610390578063a9059cbb146103bc578063ac506466146103e857610158565b8063313ce56711610115578063313ce567146102aa57806337d11f5e146102c857806339509351146102e55780634b4a0aa3146103115780634e71e0c8146103355780635fb9c8cd1461033d57610158565b806306fdde031461015d578063078dfbe7146101da578063095ea7b31461021257806312686aae1461025257806318160ddd1461025a57806323b872dd14610274575b600080fd5b6101656104ac565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610210600480360360608110156101f057600080fd5b506001600160a01b03813516906020810135151590604001351515610542565b005b61023e6004803603604081101561022857600080fd5b506001600160a01b03813516906020013561068a565b604080519115158252519081900360200190f35b61023e6106a1565b6102626106aa565b60408051918252519081900360200190f35b61023e6004803603606081101561028a57600080fd5b506001600160a01b038135811691602081013590911690604001356106b0565b6102b261078f565b6040805160ff9092168252519081900360200190f35b610262600480360360208110156102de57600080fd5b50356107b3565b61023e600480360360408110156102fb57600080fd5b506001600160a01b038135169060200135610874565b6103196108aa565b604080516001600160a01b039092168252519081900360200190f35b6102106108ce565b6102626004803603602081101561035357600080fd5b5035610990565b6102626004803603602081101561037057600080fd5b50356001600160a01b0316610a4a565b610319610a65565b610165610a74565b61023e600480360360408110156103a657600080fd5b506001600160a01b038135169060200135610ad5565b61023e600480360360408110156103d257600080fd5b506001600160a01b038135169060200135610b0b565b61023e600480360360208110156103fe57600080fd5b50356001600160a01b0316610b59565b610210610b6e565b6102106004803603602081101561042c57600080fd5b50356001600160a01b0316610be1565b6102626004803603604081101561045257600080fd5b506001600160a01b0381358116916020013516610c69565b6102626004803603602081101561048057600080fd5b5035610c94565b610319610d21565b610262600480360360208110156104a557600080fd5b5035610d30565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105385780601f1061050d57610100808354040283529160200191610538565b820191906000526020600020905b81548152906001019060200180831161051b57829003601f168201915b5050505050905090565b6000546001600160a01b031633146105a1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8115610669576001600160a01b0383161515806105bb5750805b610604576040805162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015290519081900360640190fd5b600080546040516001600160a01b03808716939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055610685565b600180546001600160a01b0319166001600160a01b0385161790555b505050565b6000610697338484610e98565b5060015b92915050565b60075460ff1681565b60045490565b60075460009060ff1680156106d457503360009081526008602052604090205460ff165b15610723576106e4848484610f84565b6001600160a01b03841660009081526003602090815260408083203380855292529091205461071e91869161071990866110c7565b610e98565b610785565b60075460ff16610738576106e4848484610f84565b6040805162461bcd60e51b815260206004820152601b60248201527f77414d50207472616e73666572206e6f74207065726d69747465640000000000604482015290519081900360640190fd5b5060019392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061069b7f000000000000000000000000000000000000000000000000000000000000000060ff16600a0a61086e7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632986c0e56040518163ffffffff1660e01b815260040160206040518083038186803b15801561083b57600080fd5b505afa15801561084f573d6000803e3d6000fd5b505050506040513d602081101561086557600080fd5b505185906110d7565b906110fb565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091610697918590610719908661111a565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001546001600160a01b031633811461092e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b600061069b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632986c0e56040518163ffffffff1660e01b815260040160206040518083038186803b1580156109ee57600080fd5b505afa158015610a02573d6000803e3d6000fd5b505050506040513d6020811015610a1857600080fd5b505161086e8460ff7f000000000000000000000000000000000000000000000000000000000000000016600a0a6110d7565b6001600160a01b031660009081526002602052604090205490565b6000546001600160a01b031681565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105385780601f1061050d57610100808354040283529160200191610538565b3360008181526003602090815260408083206001600160a01b0387168452909152812054909161069791859061071990866110c7565b60075460009060ff168015610b2f57503360009081526008602052604090205460ff165b15610b4457610b3f338484610f84565b610697565b60075460ff1661073857610b3f338484610f84565b60086020526000908152604090205460ff1681565b6000546001600160a01b03163314610bcd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6007805460ff19811660ff90911615179055565b6000546001600160a01b03163314610c40576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03166000908152600860205260409020805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000610ca0338361112a565b6000610cab836107b3565b9050610ce16001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361120c565b6040805184815260208101839052815133927f805d22dc8260bd5834918c9333b6d3d9005ee354ba5824e5ac56bd61a5298f47928290030190a292915050565b6001546001600160a01b031681565b6000610d676001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633308561125e565b629896807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610dd857600080fd5b505afa158015610dec573d6000803e3d6000fd5b505050506040513d6020811015610e0257600080fd5b50511015610e415760405162461bcd60e51b815260040180806020018281038252604c81526020018061166f604c913960600191505060405180910390fd5b6000610e4c83610990565b9050610e5833826112be565b6040805184815260208101839052815133927f18a5ed48bb0a697c64a5aef8f28cec1f29ab01da27a45c5f835099781ef1ea46928290030190a292915050565b6001600160a01b038316610edd5760405162461bcd60e51b81526004018080602001828103825260248152602001806117016024913960400191505060405180910390fd5b6001600160a01b038216610f225760405162461bcd60e51b815260040180806020018281038252602281526020018061164d6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610fc95760405162461bcd60e51b81526004018080602001828103825260258152602001806116dc6025913960400191505060405180910390fd5b6001600160a01b03821661100e5760405162461bcd60e51b815260040180806020018281038252602381526020018061162a6023913960400191505060405180910390fd5b611019838383610685565b6001600160a01b03831660009081526002602052604090205461103c90826110c7565b6001600160a01b03808516600090815260026020526040808220939093559084168152205461106b908261111a565b6001600160a01b0380841660008181526002602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b8082038281111561069b57600080fd5b60008215806110f2575050818102818382816110ef57fe5b04145b61069b57600080fd5b600080821161110957600080fd5b81838161111257fe5b049392505050565b8082018281101561069b57600080fd5b6001600160a01b03821661116f5760405162461bcd60e51b81526004018080602001828103825260218152602001806116bb6021913960400191505060405180910390fd5b61117b82600083610685565b6001600160a01b03821660009081526002602052604090205461119e90826110c7565b6001600160a01b0383166000908152600260205260409020556004546111c490826110c7565b6004556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106859084906113b0565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526112b89085906113b0565b50505050565b6001600160a01b038216611319576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61132560008383610685565b600454611332908261111a565b6004556001600160a01b038216600090815260026020526040902054611358908261111a565b6001600160a01b03831660008181526002602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6060611405826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114619092919063ffffffff16565b8051909150156106855780806020019051602081101561142457600080fd5b50516106855760405162461bcd60e51b815260040180806020018281038252602a815260200180611725602a913960400191505060405180910390fd5b60606114708484600085611478565b949350505050565b606061148385611623565b6114d4576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115135780518252601f1990920191602091820191016114f4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611575576040519150601f19603f3d011682016040523d82523d6000602084013e61157a565b606091505b5091509150811561158e5791506114709050565b80511561159e5780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115e85781810151838201526020016115d0565b50505050905090810190601f1680156116155780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b3b15159056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373506c65617365206c656176652061206d696e696d756d206f6620302e303120414d5020696e2074686520466f72676520746f206163637275652046564f52207768696c65207772617070656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206ba5a55319fdfad7da1adc53b59d362eb471273bba8f90c6a83b5798d5634be464736f6c6343000705003300000000000000000000000051f8247bfca14c092ee50b0bdc9c428d60b6023f