{"constructor_args":null,"is_partially_verified":true,"is_changed_bytecode":false,"abi":[{"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":"_user","type":"address"}],"name":"BlockPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"BlockReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_blockedUser","type":"address"},{"indexed":false,"internalType":"uint256","name":"_balance","type":"uint256"}],"name":"DestroyedBlockedFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_destination","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"}],"name":"NewPrivilegedContract","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":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"}],"name":"RemovedPrivilegedContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_trustedDeFiContract","type":"address"}],"name":"addPrivilegedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"addToBlockedList","outputs":[],"stateMutability":"nonpayable","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":"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":"_blockedUser","type":"address"}],"name":"destroyBlockedFunds","outputs":[],"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":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isTrusted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_destination","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"multiTransfer","outputs":[],"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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeFromBlockedList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedDeFiContract","type":"address"}],"name":"removePrivilegedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[],"is_verified_via_sourcify":true,"can_be_visualized_via_sol2uml":true,"evm_version":"istanbul","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":false,"license_type":"none","is_blueprint":false,"name":"TetherToken","creation_bytecode":"0x608060405234801561001057600080fd5b506120ec806100206000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80635546efd8116100de578063a457c2d711610097578063dd62ed3e11610071578063dd62ed3e146106db578063de355a3c14610709578063f2fde38b1461072f578063fbac39511461075557610173565b8063a457c2d714610666578063a9059cbb14610692578063db006a75146106be57610173565b80635546efd8146105c057806370a08231146105e6578063715018a61461060c5780638da5cb5b1461061457806395d89b411461063857806396d648791461064057610173565b80631e89d545116101305780631e89d545146103cb57806323b872dd146104ee578063313ce5671461052457806339509351146105425780633c7c9b901461056e57806340c10f191461059457610173565b806306fdde0314610178578063095ea7b3146101f55780630e27a385146102355780631624f6c61461025d57806318160ddd1461038b5780631a14f449146103a5575b600080fd5b61018061077b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ba5781810151838201526020016101a2565b50505050905090810190601f1680156101e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102216004803603604081101561020b57600080fd5b506001600160a01b038135169060200135610812565b604080519115158252519081900360200190f35b61025b6004803603602081101561024b57600080fd5b50356001600160a01b0316610830565b005b61025b6004803603606081101561027357600080fd5b810190602081018135600160201b81111561028d57600080fd5b82018360208201111561029f57600080fd5b803590602001918460018302840111600160201b831117156102c057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561031257600080fd5b82018360208201111561032457600080fd5b803590602001918460018302840111600160201b8311171561034557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506109079050565b6103936109c7565b60408051918252519081900360200190f35b61025b600480360360208110156103bb57600080fd5b50356001600160a01b03166109cd565b61025b600480360360408110156103e157600080fd5b810190602081018135600160201b8111156103fb57600080fd5b82018360208201111561040d57600080fd5b803590602001918460208302840111600160201b8311171561042e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561047d57600080fd5b82018360208201111561048f57600080fd5b803590602001918460208302840111600160201b831117156104b057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a6e945050505050565b6102216004803603606081101561050457600080fd5b506001600160a01b03813581169160208101359091169060400135610b73565b61052c610c91565b6040805160ff9092168252519081900360200190f35b6102216004803603604081101561055857600080fd5b506001600160a01b038135169060200135610c9a565b61025b6004803603602081101561058457600080fd5b50356001600160a01b0316610cf3565b61025b600480360360408110156105aa57600080fd5b506001600160a01b038135169060200135610d97565b61025b600480360360208110156105d657600080fd5b50356001600160a01b0316610e3c565b610393600480360360208110156105fc57600080fd5b50356001600160a01b0316610ee0565b61025b610efb565b61061c610f9d565b604080516001600160a01b039092168252519081900360200190f35b610180610fac565b6102216004803603602081101561065657600080fd5b50356001600160a01b031661100d565b6102216004803603604081101561067c57600080fd5b506001600160a01b038135169060200135611022565b610221600480360360408110156106a857600080fd5b506001600160a01b038135169060200135611090565b61025b600480360360208110156106d457600080fd5b5035611149565b610393600480360360408110156106f157600080fd5b506001600160a01b03813581169160200135166111e8565b61025b6004803603602081101561071f57600080fd5b50356001600160a01b031661121c565b61025b6004803603602081101561074557600080fd5b50356001600160a01b03166112bd565b6102216004803603602081101561076b57600080fd5b50356001600160a01b03166113b6565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108075780601f106107dc57610100808354040283529160200191610807565b820191906000526020600020905b8154815290600101906020018083116107ea57829003601f168201915b505050505090505b90565b600061082661081f6113cb565b84846113cf565b5060015b92915050565b6108386113cb565b6097546001600160a01b03908116911614610888576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260c9602052604090205460ff166108ad57600080fd5b60006108b882610ee0565b90506108c482826114bb565b6040805182815290516001600160a01b038416917f6a2859ae7902313752498feb80a014e6e7275fe964c79aa965db815db1c7f1e9919081900360200190a25050565b600054610100900460ff168061092057506109206115c3565b8061092e575060005460ff16155b6109695760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015610994576000805460ff1961ff0019909116610100171660011790555b61099c6115c9565b6109a6848461167b565b6109af82611730565b80156109c1576000805461ff00191690555b50505050565b60675490565b6109d56113cb565b6097546001600160a01b03908116911614610a25576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260c96020526040808220805460ff19169055517f665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c279190a250565b60c96000610a7a6113cb565b6001600160a01b0316815260208101919091526040016000205460ff1615610ad35760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b8051825114610b29576040805162461bcd60e51b815260206004820152601d60248201527f45524332303a206d756c74695472616e73666572206d69736d61746368000000604482015290519081900360640190fd5b60005b8251811015610b6e57610b65838281518110610b4457fe5b6020026020010151838381518110610b5857fe5b6020026020010151611090565b50600101610b2c565b505050565b600060c96000610b816113cb565b6001600160a01b0316815260208101919091526040016000205460ff1615610bda5760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b6001600160a01b038316301415610c225760405162461bcd60e51b8152600401808060200182810382526027815260200180611f646027913960400191505060405180910390fd5b6001600160a01b038416600090815260c9602052604090205460ff1615610c4857600080fd5b6001600160a01b038316600090815260ca602052604090205460ff1615610c7c57610c74848484611746565b506001610c8a565b610c878484846118af565b90505b9392505050565b606a5460ff1690565b6000610826610ca76113cb565b84610cee8560666000610cb86113cb565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61193716565b6113cf565b610cfb6113cb565b6097546001600160a01b03908116911614610d4b576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260c96020526040808220805460ff19166001179055517f406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c79190a250565b610d9f6113cb565b6097546001600160a01b03908116911614610def576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b610df98282611991565b6040805182815290516001600160a01b038416917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885919081900360200190a25050565b610e446113cb565b6097546001600160a01b03908116911614610e94576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260ca6020526040808220805460ff19166001179055517f783cda63e44f9c07bbe4cf839a147c52931d0cd508a4930af9d1656a1201f0369190a250565b6001600160a01b031660009081526065602052604090205490565b610f036113cb565b6097546001600160a01b03908116911614610f53576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b6097546001600160a01b031690565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108075780601f106107dc57610100808354040283529160200191610807565b60ca6020526000908152604090205460ff1681565b600061082661102f6113cb565b84610cee8560405180606001604052806025815260200161209260259139606660006110596113cb565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611a8f16565b600060c9600061109e6113cb565b6001600160a01b0316815260208101919091526040016000205460ff16156110f75760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b6001600160a01b03831630141561113f5760405162461bcd60e51b8152600401808060200182810382526027815260200180611f646027913960400191505060405180910390fd5b610c8a8383611b26565b6111516113cb565b6097546001600160a01b039081169116146111a1576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6111b26111ac610f9d565b826114bb565b6040805182815290517f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a449181900360200190a150565b6001600160a01b038116600090815260ca602052604081205460ff1615611212575060001961082a565b610c8a8383611b3a565b6112246113cb565b6097546001600160a01b03908116911614611274576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260ca6020526040808220805460ff19169055517fdda50bf0570e969140ea1a415f2cd2636674ab5a19402b052918462b58c4297e9190a250565b6112c56113cb565b6097546001600160a01b03908116911614611315576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b03811661135a5760405162461bcd60e51b8152600401808060200182810382526026815260200180611ef66026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60c96020526000908152604090205460ff1681565b3390565b6001600160a01b0383166114145760405162461bcd60e51b815260040180806020018281038252602481526020018061206e6024913960400191505060405180910390fd5b6001600160a01b0382166114595760405162461bcd60e51b8152600401808060200182810382526022815260200180611f1c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0382166115005760405162461bcd60e51b81526004018080602001828103825260218152602001806120286021913960400191505060405180910390fd5b61150c82600083610b6e565b61154f81604051806060016040528060228152602001611ed4602291396001600160a01b038516600090815260656020526040902054919063ffffffff611a8f16565b6001600160a01b03831660009081526065602052604090205560675461157b908263ffffffff611b6516565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b303b1590565b600054610100900460ff16806115e257506115e26115c3565b806115f0575060005460ff16155b61162b5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611656576000805460ff1961ff0019909116610100171660011790555b61165e611ba7565b611666611c47565b8015611678576000805461ff00191690555b50565b600054610100900460ff168061169457506116946115c3565b806116a2575060005460ff16155b6116dd5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611708576000805460ff1961ff0019909116610100171660011790555b611710611ba7565b61171a8383611d40565b8015610b6e576000805461ff0019169055505050565b606a805460ff191660ff92909216919091179055565b6001600160a01b03831661178b5760405162461bcd60e51b81526004018080602001828103825260258152602001806120496025913960400191505060405180910390fd5b6001600160a01b0382166117d05760405162461bcd60e51b8152600401808060200182810382526023815260200180611eb16023913960400191505060405180910390fd5b6117db838383610b6e565b61181e81604051806060016040528060268152602001611f3e602691396001600160a01b038616600090815260656020526040902054919063ffffffff611a8f16565b6001600160a01b038085166000908152606560205260408082209390935590841681522054611853908263ffffffff61193716565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60006118bc848484611746565b61192d846118c86113cb565b610cee85604051806060016040528060288152602001611fb2602891396001600160a01b038a166000908152606660205260408120906119066113cb565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611a8f16565b5060019392505050565b600082820183811015610c8a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166119ec576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6119f860008383610b6e565b606754611a0b908263ffffffff61193716565b6067556001600160a01b038216600090815260656020526040902054611a37908263ffffffff61193716565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115611b1e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ae3578181015183820152602001611acb565b50505050905090810190601f168015611b105780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610826611b336113cb565b8484611746565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b6000610c8a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a8f565b600054610100900460ff1680611bc05750611bc06115c3565b80611bce575060005460ff16155b611c095760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611666576000805460ff1961ff0019909116610100171660011790558015611678576000805461ff001916905550565b600054610100900460ff1680611c605750611c606115c3565b80611c6e575060005460ff16155b611ca95760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611cd4576000805460ff1961ff0019909116610100171660011790555b6000611cde6113cb565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015611678576000805461ff001916905550565b600054610100900460ff1680611d595750611d596115c3565b80611d67575060005460ff16155b611da25760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611dcd576000805460ff1961ff0019909116610100171660011790555b8251611de0906068906020860190611e18565b508151611df4906069906020850190611e18565b50606a805460ff191660121790558015610b6e576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e5957805160ff1916838001178555611e86565b82800160010185558215611e86579182015b82811115611e86578251825591602001919060010190611e6b565b50611e92929150611e96565b5090565b61080f91905b80821115611e925760008155600101611e9c56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220746f2074686520636f6e74726163742061646472657373426c6f636b65643a207472616e73666572732061726520626c6f636b656420666f72207573657245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209bd48493690397b69078b1f07048f3b238367ce6d30cf0bdfe8c58478ef13d4e64736f6c63430006020033","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2024-08-14T02:15:49.132972Z","is_verified_via_verifier_alliance":false,"compiler_version":"0.6.2+commit.bacdbe57","decoded_constructor_args":null,"sourcify_repo_url":"https://repo.sourcify.dev/1/0xe6A2c1642455Ce65d07abB417a461C6E1BED47a1","optimization_runs":200,"compiler_settings":{"evmVersion":"istanbul","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x608060405234801561001057600080fd5b50600436106101735760003560e01c80635546efd8116100de578063a457c2d711610097578063dd62ed3e11610071578063dd62ed3e146106db578063de355a3c14610709578063f2fde38b1461072f578063fbac39511461075557610173565b8063a457c2d714610666578063a9059cbb14610692578063db006a75146106be57610173565b80635546efd8146105c057806370a08231146105e6578063715018a61461060c5780638da5cb5b1461061457806395d89b411461063857806396d648791461064057610173565b80631e89d545116101305780631e89d545146103cb57806323b872dd146104ee578063313ce5671461052457806339509351146105425780633c7c9b901461056e57806340c10f191461059457610173565b806306fdde0314610178578063095ea7b3146101f55780630e27a385146102355780631624f6c61461025d57806318160ddd1461038b5780631a14f449146103a5575b600080fd5b61018061077b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ba5781810151838201526020016101a2565b50505050905090810190601f1680156101e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102216004803603604081101561020b57600080fd5b506001600160a01b038135169060200135610812565b604080519115158252519081900360200190f35b61025b6004803603602081101561024b57600080fd5b50356001600160a01b0316610830565b005b61025b6004803603606081101561027357600080fd5b810190602081018135600160201b81111561028d57600080fd5b82018360208201111561029f57600080fd5b803590602001918460018302840111600160201b831117156102c057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561031257600080fd5b82018360208201111561032457600080fd5b803590602001918460018302840111600160201b8311171561034557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506109079050565b6103936109c7565b60408051918252519081900360200190f35b61025b600480360360208110156103bb57600080fd5b50356001600160a01b03166109cd565b61025b600480360360408110156103e157600080fd5b810190602081018135600160201b8111156103fb57600080fd5b82018360208201111561040d57600080fd5b803590602001918460208302840111600160201b8311171561042e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561047d57600080fd5b82018360208201111561048f57600080fd5b803590602001918460208302840111600160201b831117156104b057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a6e945050505050565b6102216004803603606081101561050457600080fd5b506001600160a01b03813581169160208101359091169060400135610b73565b61052c610c91565b6040805160ff9092168252519081900360200190f35b6102216004803603604081101561055857600080fd5b506001600160a01b038135169060200135610c9a565b61025b6004803603602081101561058457600080fd5b50356001600160a01b0316610cf3565b61025b600480360360408110156105aa57600080fd5b506001600160a01b038135169060200135610d97565b61025b600480360360208110156105d657600080fd5b50356001600160a01b0316610e3c565b610393600480360360208110156105fc57600080fd5b50356001600160a01b0316610ee0565b61025b610efb565b61061c610f9d565b604080516001600160a01b039092168252519081900360200190f35b610180610fac565b6102216004803603602081101561065657600080fd5b50356001600160a01b031661100d565b6102216004803603604081101561067c57600080fd5b506001600160a01b038135169060200135611022565b610221600480360360408110156106a857600080fd5b506001600160a01b038135169060200135611090565b61025b600480360360208110156106d457600080fd5b5035611149565b610393600480360360408110156106f157600080fd5b506001600160a01b03813581169160200135166111e8565b61025b6004803603602081101561071f57600080fd5b50356001600160a01b031661121c565b61025b6004803603602081101561074557600080fd5b50356001600160a01b03166112bd565b6102216004803603602081101561076b57600080fd5b50356001600160a01b03166113b6565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108075780601f106107dc57610100808354040283529160200191610807565b820191906000526020600020905b8154815290600101906020018083116107ea57829003601f168201915b505050505090505b90565b600061082661081f6113cb565b84846113cf565b5060015b92915050565b6108386113cb565b6097546001600160a01b03908116911614610888576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260c9602052604090205460ff166108ad57600080fd5b60006108b882610ee0565b90506108c482826114bb565b6040805182815290516001600160a01b038416917f6a2859ae7902313752498feb80a014e6e7275fe964c79aa965db815db1c7f1e9919081900360200190a25050565b600054610100900460ff168061092057506109206115c3565b8061092e575060005460ff16155b6109695760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015610994576000805460ff1961ff0019909116610100171660011790555b61099c6115c9565b6109a6848461167b565b6109af82611730565b80156109c1576000805461ff00191690555b50505050565b60675490565b6109d56113cb565b6097546001600160a01b03908116911614610a25576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260c96020526040808220805460ff19169055517f665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c279190a250565b60c96000610a7a6113cb565b6001600160a01b0316815260208101919091526040016000205460ff1615610ad35760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b8051825114610b29576040805162461bcd60e51b815260206004820152601d60248201527f45524332303a206d756c74695472616e73666572206d69736d61746368000000604482015290519081900360640190fd5b60005b8251811015610b6e57610b65838281518110610b4457fe5b6020026020010151838381518110610b5857fe5b6020026020010151611090565b50600101610b2c565b505050565b600060c96000610b816113cb565b6001600160a01b0316815260208101919091526040016000205460ff1615610bda5760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b6001600160a01b038316301415610c225760405162461bcd60e51b8152600401808060200182810382526027815260200180611f646027913960400191505060405180910390fd5b6001600160a01b038416600090815260c9602052604090205460ff1615610c4857600080fd5b6001600160a01b038316600090815260ca602052604090205460ff1615610c7c57610c74848484611746565b506001610c8a565b610c878484846118af565b90505b9392505050565b606a5460ff1690565b6000610826610ca76113cb565b84610cee8560666000610cb86113cb565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61193716565b6113cf565b610cfb6113cb565b6097546001600160a01b03908116911614610d4b576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260c96020526040808220805460ff19166001179055517f406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c79190a250565b610d9f6113cb565b6097546001600160a01b03908116911614610def576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b610df98282611991565b6040805182815290516001600160a01b038416917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885919081900360200190a25050565b610e446113cb565b6097546001600160a01b03908116911614610e94576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260ca6020526040808220805460ff19166001179055517f783cda63e44f9c07bbe4cf839a147c52931d0cd508a4930af9d1656a1201f0369190a250565b6001600160a01b031660009081526065602052604090205490565b610f036113cb565b6097546001600160a01b03908116911614610f53576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b6097546001600160a01b031690565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108075780601f106107dc57610100808354040283529160200191610807565b60ca6020526000908152604090205460ff1681565b600061082661102f6113cb565b84610cee8560405180606001604052806025815260200161209260259139606660006110596113cb565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611a8f16565b600060c9600061109e6113cb565b6001600160a01b0316815260208101919091526040016000205460ff16156110f75760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b6001600160a01b03831630141561113f5760405162461bcd60e51b8152600401808060200182810382526027815260200180611f646027913960400191505060405180910390fd5b610c8a8383611b26565b6111516113cb565b6097546001600160a01b039081169116146111a1576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6111b26111ac610f9d565b826114bb565b6040805182815290517f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a449181900360200190a150565b6001600160a01b038116600090815260ca602052604081205460ff1615611212575060001961082a565b610c8a8383611b3a565b6112246113cb565b6097546001600160a01b03908116911614611274576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260ca6020526040808220805460ff19169055517fdda50bf0570e969140ea1a415f2cd2636674ab5a19402b052918462b58c4297e9190a250565b6112c56113cb565b6097546001600160a01b03908116911614611315576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b03811661135a5760405162461bcd60e51b8152600401808060200182810382526026815260200180611ef66026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60c96020526000908152604090205460ff1681565b3390565b6001600160a01b0383166114145760405162461bcd60e51b815260040180806020018281038252602481526020018061206e6024913960400191505060405180910390fd5b6001600160a01b0382166114595760405162461bcd60e51b8152600401808060200182810382526022815260200180611f1c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0382166115005760405162461bcd60e51b81526004018080602001828103825260218152602001806120286021913960400191505060405180910390fd5b61150c82600083610b6e565b61154f81604051806060016040528060228152602001611ed4602291396001600160a01b038516600090815260656020526040902054919063ffffffff611a8f16565b6001600160a01b03831660009081526065602052604090205560675461157b908263ffffffff611b6516565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b303b1590565b600054610100900460ff16806115e257506115e26115c3565b806115f0575060005460ff16155b61162b5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611656576000805460ff1961ff0019909116610100171660011790555b61165e611ba7565b611666611c47565b8015611678576000805461ff00191690555b50565b600054610100900460ff168061169457506116946115c3565b806116a2575060005460ff16155b6116dd5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611708576000805460ff1961ff0019909116610100171660011790555b611710611ba7565b61171a8383611d40565b8015610b6e576000805461ff0019169055505050565b606a805460ff191660ff92909216919091179055565b6001600160a01b03831661178b5760405162461bcd60e51b81526004018080602001828103825260258152602001806120496025913960400191505060405180910390fd5b6001600160a01b0382166117d05760405162461bcd60e51b8152600401808060200182810382526023815260200180611eb16023913960400191505060405180910390fd5b6117db838383610b6e565b61181e81604051806060016040528060268152602001611f3e602691396001600160a01b038616600090815260656020526040902054919063ffffffff611a8f16565b6001600160a01b038085166000908152606560205260408082209390935590841681522054611853908263ffffffff61193716565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60006118bc848484611746565b61192d846118c86113cb565b610cee85604051806060016040528060288152602001611fb2602891396001600160a01b038a166000908152606660205260408120906119066113cb565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611a8f16565b5060019392505050565b600082820183811015610c8a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166119ec576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6119f860008383610b6e565b606754611a0b908263ffffffff61193716565b6067556001600160a01b038216600090815260656020526040902054611a37908263ffffffff61193716565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115611b1e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ae3578181015183820152602001611acb565b50505050905090810190601f168015611b105780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610826611b336113cb565b8484611746565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b6000610c8a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a8f565b600054610100900460ff1680611bc05750611bc06115c3565b80611bce575060005460ff16155b611c095760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611666576000805460ff1961ff0019909116610100171660011790558015611678576000805461ff001916905550565b600054610100900460ff1680611c605750611c606115c3565b80611c6e575060005460ff16155b611ca95760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611cd4576000805460ff1961ff0019909116610100171660011790555b6000611cde6113cb565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015611678576000805461ff001916905550565b600054610100900460ff1680611d595750611d596115c3565b80611d67575060005460ff16155b611da25760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611dcd576000805460ff1961ff0019909116610100171660011790555b8251611de0906068906020860190611e18565b508151611df4906069906020850190611e18565b50606a805460ff191660121790558015610b6e576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e5957805160ff1916838001178555611e86565b82800160010185558215611e86579182015b82811115611e86578251825591602001919060010190611e6b565b50611e92929150611e96565b5090565b61080f91905b80821115611e925760008155600101611e9c56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220746f2074686520636f6e74726163742061646472657373426c6f636b65643a207472616e73666572732061726520626c6f636b656420666f72207573657245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209bd48493690397b69078b1f07048f3b238367ce6d30cf0bdfe8c58478ef13d4e64736f6c63430006020033","source_code":"pragma solidity 0.6.2;\n\n\n/**\n * @title Initializable\n *\n * @dev Helper contract to support initializer functions. To use it, replace\n * the constructor with a function that has the `initializer` modifier.\n * WARNING: Unlike constructors, initializer functions must be manually\n * invoked. This applies both to deploying an Initializable contract, as well\n * as extending an Initializable contract via inheritance.\n * WARNING: When used with inheritance, manual care must be taken to not invoke\n * a parent initializer twice, or ensure that all initializers are idempotent,\n * because this is not dealt with automatically as with constructors.\n */\ncontract Initializable {\n\n  /**\n   * @dev Indicates that the contract has been initialized.\n   */\n  bool private initialized;\n\n  /**\n   * @dev Indicates that the contract is in the process of being initialized.\n   */\n  bool private initializing;\n\n  /**\n   * @dev Modifier to use in the initializer function of a contract.\n   */\n  modifier initializer() {\n    require(initializing || isConstructor() || !initialized, \"Contract instance has already been initialized\");\n\n    bool isTopLevelCall = !initializing;\n    if (isTopLevelCall) {\n      initializing = true;\n      initialized = true;\n    }\n\n    _;\n\n    if (isTopLevelCall) {\n      initializing = false;\n    }\n  }\n\n  /// @dev Returns true if and only if the function is running in the constructor\n  function isConstructor() private view returns (bool) {\n    // extcodesize checks the size of the code stored in an address, and\n    // address returns the current address. Since the code is still not\n    // deployed when running a constructor, any checks on its code size will\n    // yield zero, making it an effective way to detect if a contract is\n    // under construction or not.\n    address self = address(this);\n    uint256 cs;\n    assembly { cs := extcodesize(self) }\n    return cs == 0;\n  }\n\n  // Reserved storage space to allow for layout changes in the future.\n  uint256[50] private ______gap;\n}\n\n/*\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with GSN meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\ncontract ContextUpgradeSafe is Initializable {\n    // Empty internal constructor, to prevent people from mistakenly deploying\n    // an instance of this contract, which should be used via inheritance.\n\n    function __Context_init() internal initializer {\n        __Context_init_unchained();\n    }\n\n    function __Context_init_unchained() internal initializer {\n\n\n    }\n\n\n    function _msgSender() internal view virtual returns (address payable) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes memory) {\n        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n        return msg.data;\n    }\n\n    uint256[50] private __gap;\n}\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\ncontract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {\n    address private _owner;\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the deployer as the initial owner.\n     */\n\n    function __Ownable_init() internal initializer {\n        __Context_init_unchained();\n        __Ownable_init_unchained();\n    }\n\n    function __Ownable_init_unchained() internal initializer {\n\n\n        address msgSender = _msgSender();\n        _owner = msgSender;\n        emit OwnershipTransferred(address(0), msgSender);\n\n    }\n\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        require(_owner == _msgSender(), \"Ownable: caller is not the owner\");\n        _;\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions anymore. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby removing any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        emit OwnershipTransferred(_owner, address(0));\n        _owner = address(0);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n        emit OwnershipTransferred(_owner, newOwner);\n        _owner = newOwner;\n    }\n\n    uint256[49] private __gap;\n}\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `recipient`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `sender` to `recipient` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\n * checks.\n *\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\n * in bugs, because programmers usually assume that an overflow raises an\n * error, which is the standard behavior in high level programming languages.\n * `SafeMath` restores this intuition by reverting the transaction when an\n * operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeMath {\n    /**\n     * @dev Returns the addition of two unsigned integers, reverting on\n     * overflow.\n     *\n     * Counterpart to Solidity's `+` operator.\n     *\n     * Requirements:\n     * - Addition cannot overflow.\n     */\n    function add(uint256 a, uint256 b) internal pure returns (uint256) {\n        uint256 c = a + b;\n        require(c >= a, \"SafeMath: addition overflow\");\n\n        return c;\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, reverting on\n     * overflow (when the result is negative).\n     *\n     * Counterpart to Solidity's `-` operator.\n     *\n     * Requirements:\n     * - Subtraction cannot overflow.\n     */\n    function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n        return sub(a, b, \"SafeMath: subtraction overflow\");\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n     * overflow (when the result is negative).\n     *\n     * Counterpart to Solidity's `-` operator.\n     *\n     * Requirements:\n     * - Subtraction cannot overflow.\n     */\n    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n        require(b <= a, errorMessage);\n        uint256 c = a - b;\n\n        return c;\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, reverting on\n     * overflow.\n     *\n     * Counterpart to Solidity's `*` operator.\n     *\n     * Requirements:\n     * - Multiplication cannot overflow.\n     */\n    function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n        // benefit is lost if 'b' is also tested.\n        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n        if (a == 0) {\n            return 0;\n        }\n\n        uint256 c = a * b;\n        require(c / a == b, \"SafeMath: multiplication overflow\");\n\n        return c;\n    }\n\n    /**\n     * @dev Returns the integer division of two unsigned integers. Reverts on\n     * division by zero. The result is rounded towards zero.\n     *\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\n     * uses an invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     * - The divisor cannot be zero.\n     */\n    function div(uint256 a, uint256 b) internal pure returns (uint256) {\n        return div(a, b, \"SafeMath: division by zero\");\n    }\n\n    /**\n     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\n     * division by zero. The result is rounded towards zero.\n     *\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\n     * uses an invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     * - The divisor cannot be zero.\n     */\n    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n        // Solidity only automatically asserts when dividing by 0\n        require(b > 0, errorMessage);\n        uint256 c = a / b;\n        // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n\n        return c;\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n     * Reverts when dividing by zero.\n     *\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\n     * invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     * - The divisor cannot be zero.\n     */\n    function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n        return mod(a, b, \"SafeMath: modulo by zero\");\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n     * Reverts with custom message when dividing by zero.\n     *\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\n     * invalid opcode to revert (consuming all remaining gas).\n     *\n     * Requirements:\n     * - The divisor cannot be zero.\n     */\n    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n        require(b != 0, errorMessage);\n        return a % b;\n    }\n}\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts\n        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned\n        // for accounts without code, i.e. `keccak256('')`\n        bytes32 codehash;\n        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;\n        // solhint-disable-next-line no-inline-assembly\n        assembly { codehash := extcodehash(account) }\n        return (codehash != accountHash && codehash != 0x0);\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\n        (bool success, ) = recipient.call{ value: amount }(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n}\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20MinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin guidelines: functions revert instead\n * of returning `false` on failure. This behavior is nonetheless conventional\n * and does not conflict with the expectations of ERC20 applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20UpgradeSafe is Initializable, ContextUpgradeSafe, IERC20 {\n    using SafeMath for uint256;\n    using Address for address;\n\n    mapping (address => uint256) private _balances;\n\n    mapping (address => mapping (address => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n    uint8 private _decimals;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\n     * a default value of 18.\n     *\n     * To select a different value for {decimals}, use {_setupDecimals}.\n     *\n     * All three of these values are immutable: they can only be set once during\n     * construction.\n     */\n\n    function __ERC20_init(string memory name, string memory symbol) internal initializer {\n        __Context_init_unchained();\n        __ERC20_init_unchained(name, symbol);\n    }\n\n    function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer {\n\n\n        _name = name;\n        _symbol = symbol;\n        _decimals = 18;\n\n    }\n\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5,05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\n     * called.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view returns (uint8) {\n        return _decimals;\n    }\n\n    /**\n     * @dev See {IERC20-totalSupply}.\n     */\n    function totalSupply() public view override returns (uint256) {\n        return _totalSupply;\n    }\n\n    /**\n     * @dev See {IERC20-balanceOf}.\n     */\n    function balanceOf(address account) public view override returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `recipient` cannot be the zero address.\n     * - the caller must have a balance of at least `amount`.\n     */\n    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\n        _transfer(_msgSender(), recipient, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-allowance}.\n     */\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\n        _approve(_msgSender(), spender, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Emits an {Approval} event indicating the updated allowance. This is not\n     * required by the EIP. See the note at the beginning of {ERC20};\n     *\n     * Requirements:\n     * - `sender` and `recipient` cannot be the zero address.\n     * - `sender` must have a balance of at least `amount`.\n     * - the caller must have allowance for ``sender``'s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\n        _transfer(sender, recipient, amount);\n        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\n        return true;\n    }\n\n    /**\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\n        return true;\n    }\n\n    /**\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `spender` must have allowance for the caller of at least\n     * `subtractedValue`.\n     */\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\n        return true;\n    }\n\n    /**\n     * @dev Moves tokens `amount` from `sender` to `recipient`.\n     *\n     * This is internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * Requirements:\n     *\n     * - `sender` cannot be the zero address.\n     * - `recipient` cannot be the zero address.\n     * - `sender` must have a balance of at least `amount`.\n     */\n    function _transfer(address sender, address recipient, uint256 amount) internal virtual {\n        require(sender != address(0), \"ERC20: transfer from the zero address\");\n        require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n        _beforeTokenTransfer(sender, recipient, amount);\n\n        _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\n        _balances[recipient] = _balances[recipient].add(amount);\n        emit Transfer(sender, recipient, amount);\n    }\n\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n     * the total supply.\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * Requirements\n     *\n     * - `to` cannot be the zero address.\n     */\n    function _mint(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: mint to the zero address\");\n\n        _beforeTokenTransfer(address(0), account, amount);\n\n        _totalSupply = _totalSupply.add(amount);\n        _balances[account] = _balances[account].add(amount);\n        emit Transfer(address(0), account, amount);\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from `account`, reducing the\n     * total supply.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * Requirements\n     *\n     * - `account` cannot be the zero address.\n     * - `account` must have at least `amount` tokens.\n     */\n    function _burn(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: burn from the zero address\");\n\n        _beforeTokenTransfer(account, address(0), amount);\n\n        _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\n        _totalSupply = _totalSupply.sub(amount);\n        emit Transfer(account, address(0), amount);\n    }\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.\n     *\n     * This is internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     */\n    function _approve(address owner, address spender, uint256 amount) internal virtual {\n        require(owner != address(0), \"ERC20: approve from the zero address\");\n        require(spender != address(0), \"ERC20: approve to the zero address\");\n\n        _allowances[owner][spender] = amount;\n        emit Approval(owner, spender, amount);\n    }\n\n    /**\n     * @dev Sets {decimals} to a value other than the default one of 18.\n     *\n     * WARNING: This function should only be called from the constructor. Most\n     * applications that interact with token contracts will not expect\n     * {decimals} to ever change, and may work incorrectly if it does.\n     */\n    function _setupDecimals(uint8 decimals_) internal {\n        _decimals = decimals_;\n    }\n\n    /**\n     * @dev Hook that is called before any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * will be to transferred to `to`.\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\n\n    uint256[44] private __gap;\n}\n\n/*\n\n   Copyright Tether.to 2020\n\n   Author Will Harborne\n\n   Licensed under the Apache License, Version 2.0\n   http://www.apache.org/licenses/LICENSE-2.0\n\n*/\ncontract WithBlockedList is OwnableUpgradeSafe {\n\n    /**\n     * @dev Reverts if called by a blocked account\n     */\n    modifier onlyNotBlocked() {\n      require(!isBlocked[_msgSender()], \"Blocked: transfers are blocked for user\");\n      _;\n    }\n\n    mapping (address => bool) public isBlocked;\n\n    function addToBlockedList (address _user) public onlyOwner {\n        isBlocked[_user] = true;\n        emit BlockPlaced(_user);\n    }\n\n    function removeFromBlockedList (address _user) public onlyOwner {\n        isBlocked[_user] = false;\n        emit BlockReleased(_user);\n    }\n\n    event BlockPlaced(address indexed _user);\n\n    event BlockReleased(address indexed _user);\n\n}\n\n/*\n\n   Copyright Tether.to 2020\n\n   Author Will Harborne\n\n   Licensed under the Apache License, Version 2.0\n   http://www.apache.org/licenses/LICENSE-2.0\n\n*/\ncontract TetherToken is Initializable, ERC20UpgradeSafe, OwnableUpgradeSafe, WithBlockedList {\n\n  mapping(address => bool) public isTrusted;\n\n  function initialize(\n    string memory _name,\n    string memory _symbol,\n    uint8 _decimals\n  ) public initializer {\n    __Ownable_init();\n    __ERC20_init(_name, _symbol);\n    _setupDecimals(_decimals);\n  }\n\n  function allowance(address _owner, address _spender) public view virtual override returns (uint256) {\n    if (isTrusted[_spender]) {\n      return 2**256 - 1;\n    }\n    return super.allowance(_owner, _spender);\n  }\n\n  function transfer(address _recipient, uint256 _amount) public virtual override onlyNotBlocked returns (bool) {\n    require(_recipient != address(this), \"ERC20: transfer to the contract address\");\n    return super.transfer(_recipient, _amount);\n  }\n\n  function transferFrom(address _sender, address _recipient, uint256 _amount) public virtual override onlyNotBlocked returns (bool) {\n    require(_recipient != address(this), \"ERC20: transfer to the contract address\");\n    require(!isBlocked[_sender]);\n    if (isTrusted[_recipient]) {\n      _transfer(_sender, _recipient, _amount);\n      return true;\n    }\n    return super.transferFrom(_sender, _recipient, _amount);\n  }\n\n  function multiTransfer(address[] memory _recipients, uint256[] memory _values) public onlyNotBlocked {\n    require(_recipients.length == _values.length , \"ERC20: multiTransfer mismatch\");\n    for (uint256 i = 0; i < _recipients.length; i++) {\n      transfer(_recipients[i], _values[i]);\n    }\n  }\n\n  function addPrivilegedContract(address _trustedDeFiContract) public onlyOwner {\n    isTrusted[_trustedDeFiContract] = true;\n    emit NewPrivilegedContract(_trustedDeFiContract);\n  }\n\n  function removePrivilegedContract(address _trustedDeFiContract) public onlyOwner {\n    isTrusted[_trustedDeFiContract] = false;\n    emit RemovedPrivilegedContract(_trustedDeFiContract);\n  }\n\n  function mint(address _destination, uint256 _amount) public onlyOwner {\n    _mint(_destination, _amount);\n    emit Mint(_destination, _amount);\n  }\n\n  function redeem(uint256 _amount) public onlyOwner {\n    _burn(owner(), _amount);\n    emit Redeem(_amount);\n  }\n\n  function destroyBlockedFunds (address _blockedUser) public onlyOwner {\n     require(isBlocked[_blockedUser]);\n     uint blockedFunds = balanceOf(_blockedUser);\n     _burn(_blockedUser, blockedFunds);\n     emit DestroyedBlockedFunds(_blockedUser, blockedFunds);\n }\n\n  event NewPrivilegedContract(address indexed _contract);\n  event RemovedPrivilegedContract(address indexed _contract);\n  event Mint(address indexed _destination, uint _amount);\n  event Redeem(uint _amount);\n  event DestroyedBlockedFunds(address indexed _blockedUser, uint _balance);\n\n}","creation_status":"success","file_path":"TetherToken.sol"}