{"file_path":"project:/contracts/Tether/TetherToken.sol","creation_status":"success","source_code":"pragma solidity 0.8.4;\n\nimport \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\";\nimport \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol\";\nimport \"./WithBlockedList.sol\";\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*/\n\n\ncontract TetherToken is Initializable, ERC20PermitUpgradeable, OwnableUpgradeable, WithBlockedList {\n\n  // Unused variable retained to preserve storage slots across upgrades\n  mapping(address => bool) public isTrusted;\n\n  uint8 private tetherDecimals;\n\n  function initialize(\n    string memory _name,\n    string memory _symbol,\n    uint8 _decimals\n  ) public initializer {\n    tetherDecimals = _decimals;\n    __Ownable_init();\n    __ERC20_init(_name, _symbol);\n    __ERC20Permit_init(_name);\n  }\n\n  function decimals() public view virtual override returns (uint8) {\n      return tetherDecimals;\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    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 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 Mint(address indexed _destination, uint _amount);\n  event Redeem(uint _amount);\n  event DestroyedBlockedFunds(address indexed _blockedUser, uint _balance);\n\n}\n","deployed_bytecode":"0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de578063a457c2d711610097578063db006a7511610071578063db006a7514610362578063dd62ed3e14610375578063f2fde38b146103ae578063fbac3951146103c157600080fd5b8063a457c2d714610329578063a9059cbb1461033c578063d505accf1461034f57600080fd5b806370a082311461029e578063715018a6146102c75780637ecebe00146102cf5780638da5cb5b146102e257806395d89b41146102fd57806396d648791461030557600080fd5b80631e89d5451161014b5780633644e515116101255780633644e5151461025d57806339509351146102655780633c7c9b901461027857806340c10f191461028b57600080fd5b80631e89d5451461022157806323b872dd14610234578063313ce5671461024757600080fd5b806306fdde0314610193578063095ea7b3146101b15780630e27a385146101d45780631624f6c6146101e957806318160ddd146101fc5780631a14f4491461020e575b600080fd5b61019b6103e4565b6040516101a89190611db7565b60405180910390f35b6101c46101bf366004611c44565b610476565b60405190151581526020016101a8565b6101e76101e2366004611b54565b61048c565b005b6101e76101f7366004611d2e565b61054e565b6035545b6040519081526020016101a8565b6101e761021c366004611b54565b6105e8565b6101e761022f366004611c6d565b61065b565b6101c4610242366004611ba0565b610758565b6101005460405160ff90911681526020016101a8565b6102006107ea565b6101c4610273366004611c44565b6107f9565b6101e7610286366004611b54565b610835565b6101e7610299366004611c44565b6108ab565b6102006102ac366004611b54565b6001600160a01b031660009081526033602052604090205490565b6101e761091a565b6102006102dd366004611b54565b610950565b60cc546040516001600160a01b0390911681526020016101a8565b61019b610970565b6101c4610313366004611b54565b60ff602081905260009182526040909120541681565b6101c4610337366004611c44565b61097f565b6101c461034a366004611c44565b610a18565b6101e761035d366004611bdb565b610a82565b6101e7610370366004611d9f565b610bc8565b610200610383366004611b6e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b6101e76103bc366004611b54565b610c43565b6101c46103cf366004611b54565b60fe6020526000908152604090205460ff1681565b6060603680546103f390611f9f565b80601f016020809104026020016040519081016040528092919081815260200182805461041f90611f9f565b801561046c5780601f106104415761010080835404028352916020019161046c565b820191906000526020600020905b81548152906001019060200180831161044f57829003601f168201915b5050505050905090565b6000610483338484610cde565b50600192915050565b60cc546001600160a01b031633146104bf5760405162461bcd60e51b81526004016104b690611ee6565b60405180910390fd5b6001600160a01b038116600090815260fe602052604090205460ff166104e457600080fd5b6001600160a01b0381166000908152603360205260409020546105078282610e02565b816001600160a01b03167f6a2859ae7902313752498feb80a014e6e7275fe964c79aa965db815db1c7f1e98260405161054291815260200190565b60405180910390a25050565b600054610100900460ff1680610567575060005460ff16155b6105835760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff161580156105a5576000805461ffff19166101011790555b610100805460ff191660ff84161790556105bd610f50565b6105c78484610fcb565b6105d08461104a565b80156105e2576000805461ff00191690555b50505050565b60cc546001600160a01b031633146106125760405162461bcd60e51b81526004016104b690611ee6565b6001600160a01b038116600081815260fe6020526040808220805460ff19169055517f665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c279190a250565b33600090815260fe602052604090205460ff161561068b5760405162461bcd60e51b81526004016104b690611e9f565b80518251146106dc5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a206d756c74695472616e73666572206d69736d6174636800000060448201526064016104b6565b60005b82518110156107535761074083828151811061070b57634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061073357634e487b7160e01b600052603260045260246000fd5b6020026020010151610a18565b508061074b81611fd4565b9150506106df565b505050565b33600090815260fe602052604081205460ff16156107885760405162461bcd60e51b81526004016104b690611e9f565b6001600160a01b0383163014156107b15760405162461bcd60e51b81526004016104b690611e0a565b6001600160a01b038416600090815260fe602052604090205460ff16156107d757600080fd5b6107e28484846110eb565b949350505050565b60006107f4611195565b905090565b3360008181526034602090815260408083206001600160a01b03871684529091528120549091610483918590610830908690611f70565b610cde565b60cc546001600160a01b0316331461085f5760405162461bcd60e51b81526004016104b690611ee6565b6001600160a01b038116600081815260fe6020526040808220805460ff19166001179055517f406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c79190a250565b60cc546001600160a01b031633146108d55760405162461bcd60e51b81526004016104b690611ee6565b6108df8282611210565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161054291815260200190565b60cc546001600160a01b031633146109445760405162461bcd60e51b81526004016104b690611ee6565b61094e60006112ef565b565b6001600160a01b0381166000908152609960205260408120545b92915050565b6060603780546103f390611f9f565b3360009081526034602090815260408083206001600160a01b038616845290915281205482811015610a015760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104b6565b610a0e3385858403610cde565b5060019392505050565b33600090815260fe602052604081205460ff1615610a485760405162461bcd60e51b81526004016104b690611e9f565b6001600160a01b038316301415610a715760405162461bcd60e51b81526004016104b690611e0a565b610a7b8383611341565b9392505050565b83421115610ad25760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016104b6565b6000609a54888888610ae38c61134e565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610b3e82611376565b90506000610b4e828787876113c4565b9050896001600160a01b0316816001600160a01b031614610bb15760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016104b6565b610bbc8a8a8a610cde565b50505050505050505050565b60cc546001600160a01b03163314610bf25760405162461bcd60e51b81526004016104b690611ee6565b610c0d610c0760cc546001600160a01b031690565b82610e02565b6040518181527f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a449060200160405180910390a150565b60cc546001600160a01b03163314610c6d5760405162461bcd60e51b81526004016104b690611ee6565b6001600160a01b038116610cd25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b6565b610cdb816112ef565b50565b6001600160a01b038316610d405760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104b6565b6001600160a01b038216610da15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104b6565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038216610e625760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104b6565b6001600160a01b03821660009081526033602052604090205481811015610ed65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104b6565b6001600160a01b0383166000908152603360205260408120838303905560358054849290610f05908490611f88565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600054610100900460ff1680610f69575060005460ff16155b610f855760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff16158015610fa7576000805461ffff19166101011790555b610faf61156d565b610fb76115d7565b8015610cdb576000805461ff001916905550565b600054610100900460ff1680610fe4575060005460ff16155b6110005760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff16158015611022576000805461ffff19166101011790555b61102a61156d565b6110348383611637565b8015610753576000805461ff0019169055505050565b600054610100900460ff1680611063575060005460ff16155b61107f5760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff161580156110a1576000805461ffff19166101011790555b6110a961156d565b6110cc82604051806040016040528060018152602001603160f81b8152506116cc565b6110d582611756565b80156110e7576000805461ff00191690555b5050565b60006110f88484846117e6565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561117d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016104b6565b61118a8533858403610cde565b506001949350505050565b60006107f47f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6111c460655490565b6066546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b6001600160a01b0382166112665760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104b6565b80603560008282546112789190611f70565b90915550506001600160a01b038216600090815260336020526040812080548392906112a5908490611f70565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60cc80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006104833384846117e6565b6001600160a01b03811660009081526099602052604090208054600181018255905b50919050565b600061096a611383611195565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156114415760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104b6565b8360ff16601b148061145657508360ff16601c145b6114ad5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104b6565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611501573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166115645760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104b6565b95945050505050565b600054610100900460ff1680611586575060005460ff16155b6115a25760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff16158015610fb7576000805461ffff19166101011790558015610cdb576000805461ff001916905550565b600054610100900460ff16806115f0575060005460ff16155b61160c5760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff1615801561162e576000805461ffff19166101011790555b610fb7336112ef565b600054610100900460ff1680611650575060005460ff16155b61166c5760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff1615801561168e576000805461ffff19166101011790555b82516116a19060369060208601906119b4565b5081516116b59060379060208501906119b4565b508015610753576000805461ff0019169055505050565b600054610100900460ff16806116e5575060005460ff16155b6117015760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff16158015611723576000805461ffff19166101011790555b82516020808501919091208351918401919091206065919091556066558015610753576000805461ff0019169055505050565b600054610100900460ff168061176f575060005460ff16155b61178b5760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff161580156117ad576000805461ffff19166101011790555b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9609a5580156110e7576000805461ff00191690555050565b6001600160a01b03831661184a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104b6565b6001600160a01b0382166118ac5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104b6565b6001600160a01b038316600090815260336020526040902054818110156119245760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104b6565b6001600160a01b0380851660009081526033602052604080822085850390559185168152908120805484929061195b908490611f70565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516119a791815260200190565b60405180910390a36105e2565b8280546119c090611f9f565b90600052602060002090601f0160209004810192826119e25760008555611a28565b82601f106119fb57805160ff1916838001178555611a28565b82800160010185558215611a28579182015b82811115611a28578251825591602001919060010190611a0d565b50611a34929150611a38565b5090565b5b80821115611a345760008155600101611a39565b80356001600160a01b0381168114611a6457600080fd5b919050565b600082601f830112611a79578081fd5b81356020611a8e611a8983611f4c565b611f1b565b80838252828201915082860187848660051b8901011115611aad578586fd5b855b85811015611acb57813584529284019290840190600101611aaf565b5090979650505050505050565b600082601f830112611ae8578081fd5b813567ffffffffffffffff811115611b0257611b02612005565b611b15601f8201601f1916602001611f1b565b818152846020838601011115611b29578283fd5b816020850160208301379081016020019190915292915050565b803560ff81168114611a6457600080fd5b600060208284031215611b65578081fd5b610a7b82611a4d565b60008060408385031215611b80578081fd5b611b8983611a4d565b9150611b9760208401611a4d565b90509250929050565b600080600060608486031215611bb4578081fd5b611bbd84611a4d565b9250611bcb60208501611a4d565b9150604084013590509250925092565b600080600080600080600060e0888a031215611bf5578283fd5b611bfe88611a4d565b9650611c0c60208901611a4d565b95506040880135945060608801359350611c2860808901611b43565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611c56578182fd5b611c5f83611a4d565b946020939093013593505050565b60008060408385031215611c7f578182fd5b823567ffffffffffffffff80821115611c96578384fd5b818501915085601f830112611ca9578384fd5b81356020611cb9611a8983611f4c565b8083825282820191508286018a848660051b8901011115611cd8578889fd5b8896505b84871015611d0157611ced81611a4d565b835260019690960195918301918301611cdc565b5096505086013592505080821115611d17578283fd5b50611d2485828601611a69565b9150509250929050565b600080600060608486031215611d42578283fd5b833567ffffffffffffffff80821115611d59578485fd5b611d6587838801611ad8565b94506020860135915080821115611d7a578384fd5b50611d8786828701611ad8565b925050611d9660408501611b43565b90509250925092565b600060208284031215611db0578081fd5b5035919050565b6000602080835283518082850152825b81811015611de357858101830151858201604001528201611dc7565b81811115611df45783604083870101525b50601f01601f1916929092016040019392505050565b60208082526027908201527f45524332303a207472616e7366657220746f2074686520636f6e7472616374206040820152666164647265737360c81b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526027908201527f426c6f636b65643a207472616e73666572732061726520626c6f636b6564206660408201526637b9103ab9b2b960c91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611f4457611f44612005565b604052919050565b600067ffffffffffffffff821115611f6657611f66612005565b5060051b60200190565b60008219821115611f8357611f83611fef565b500190565b600082821015611f9a57611f9a611fef565b500390565b600181811c90821680611fb357607f821691505b6020821081141561137057634e487b7160e01b600052602260045260246000fd5b6000600019821415611fe857611fe8611fef565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220bb79ca0b135c484a5d62b9ba62e3a76ff11b2c3cc91c7d7bc102c162046e820164736f6c63430008040033","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"istanbul","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"optimization_runs":200,"sourcify_repo_url":"https://repo.sourcify.dev/contracts/full_match/1/0x4C0d2c74A8D26f1E4F5653021c521F5471F9e566/","decoded_constructor_args":null,"compiler_version":"0.8.4+commit.c7e474f2","is_verified_via_verifier_alliance":false,"verified_at":"2024-08-10T13:11:44.794657Z","implementations":[],"proxy_type":null,"external_libraries":[],"creation_bytecode":"0x608060405234801561001057600080fd5b50612051806100206000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de578063a457c2d711610097578063db006a7511610071578063db006a7514610362578063dd62ed3e14610375578063f2fde38b146103ae578063fbac3951146103c157600080fd5b8063a457c2d714610329578063a9059cbb1461033c578063d505accf1461034f57600080fd5b806370a082311461029e578063715018a6146102c75780637ecebe00146102cf5780638da5cb5b146102e257806395d89b41146102fd57806396d648791461030557600080fd5b80631e89d5451161014b5780633644e515116101255780633644e5151461025d57806339509351146102655780633c7c9b901461027857806340c10f191461028b57600080fd5b80631e89d5451461022157806323b872dd14610234578063313ce5671461024757600080fd5b806306fdde0314610193578063095ea7b3146101b15780630e27a385146101d45780631624f6c6146101e957806318160ddd146101fc5780631a14f4491461020e575b600080fd5b61019b6103e4565b6040516101a89190611db7565b60405180910390f35b6101c46101bf366004611c44565b610476565b60405190151581526020016101a8565b6101e76101e2366004611b54565b61048c565b005b6101e76101f7366004611d2e565b61054e565b6035545b6040519081526020016101a8565b6101e761021c366004611b54565b6105e8565b6101e761022f366004611c6d565b61065b565b6101c4610242366004611ba0565b610758565b6101005460405160ff90911681526020016101a8565b6102006107ea565b6101c4610273366004611c44565b6107f9565b6101e7610286366004611b54565b610835565b6101e7610299366004611c44565b6108ab565b6102006102ac366004611b54565b6001600160a01b031660009081526033602052604090205490565b6101e761091a565b6102006102dd366004611b54565b610950565b60cc546040516001600160a01b0390911681526020016101a8565b61019b610970565b6101c4610313366004611b54565b60ff602081905260009182526040909120541681565b6101c4610337366004611c44565b61097f565b6101c461034a366004611c44565b610a18565b6101e761035d366004611bdb565b610a82565b6101e7610370366004611d9f565b610bc8565b610200610383366004611b6e565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b6101e76103bc366004611b54565b610c43565b6101c46103cf366004611b54565b60fe6020526000908152604090205460ff1681565b6060603680546103f390611f9f565b80601f016020809104026020016040519081016040528092919081815260200182805461041f90611f9f565b801561046c5780601f106104415761010080835404028352916020019161046c565b820191906000526020600020905b81548152906001019060200180831161044f57829003601f168201915b5050505050905090565b6000610483338484610cde565b50600192915050565b60cc546001600160a01b031633146104bf5760405162461bcd60e51b81526004016104b690611ee6565b60405180910390fd5b6001600160a01b038116600090815260fe602052604090205460ff166104e457600080fd5b6001600160a01b0381166000908152603360205260409020546105078282610e02565b816001600160a01b03167f6a2859ae7902313752498feb80a014e6e7275fe964c79aa965db815db1c7f1e98260405161054291815260200190565b60405180910390a25050565b600054610100900460ff1680610567575060005460ff16155b6105835760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff161580156105a5576000805461ffff19166101011790555b610100805460ff191660ff84161790556105bd610f50565b6105c78484610fcb565b6105d08461104a565b80156105e2576000805461ff00191690555b50505050565b60cc546001600160a01b031633146106125760405162461bcd60e51b81526004016104b690611ee6565b6001600160a01b038116600081815260fe6020526040808220805460ff19169055517f665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c279190a250565b33600090815260fe602052604090205460ff161561068b5760405162461bcd60e51b81526004016104b690611e9f565b80518251146106dc5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a206d756c74695472616e73666572206d69736d6174636800000060448201526064016104b6565b60005b82518110156107535761074083828151811061070b57634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061073357634e487b7160e01b600052603260045260246000fd5b6020026020010151610a18565b508061074b81611fd4565b9150506106df565b505050565b33600090815260fe602052604081205460ff16156107885760405162461bcd60e51b81526004016104b690611e9f565b6001600160a01b0383163014156107b15760405162461bcd60e51b81526004016104b690611e0a565b6001600160a01b038416600090815260fe602052604090205460ff16156107d757600080fd5b6107e28484846110eb565b949350505050565b60006107f4611195565b905090565b3360008181526034602090815260408083206001600160a01b03871684529091528120549091610483918590610830908690611f70565b610cde565b60cc546001600160a01b0316331461085f5760405162461bcd60e51b81526004016104b690611ee6565b6001600160a01b038116600081815260fe6020526040808220805460ff19166001179055517f406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c79190a250565b60cc546001600160a01b031633146108d55760405162461bcd60e51b81526004016104b690611ee6565b6108df8282611210565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161054291815260200190565b60cc546001600160a01b031633146109445760405162461bcd60e51b81526004016104b690611ee6565b61094e60006112ef565b565b6001600160a01b0381166000908152609960205260408120545b92915050565b6060603780546103f390611f9f565b3360009081526034602090815260408083206001600160a01b038616845290915281205482811015610a015760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104b6565b610a0e3385858403610cde565b5060019392505050565b33600090815260fe602052604081205460ff1615610a485760405162461bcd60e51b81526004016104b690611e9f565b6001600160a01b038316301415610a715760405162461bcd60e51b81526004016104b690611e0a565b610a7b8383611341565b9392505050565b83421115610ad25760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016104b6565b6000609a54888888610ae38c61134e565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610b3e82611376565b90506000610b4e828787876113c4565b9050896001600160a01b0316816001600160a01b031614610bb15760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016104b6565b610bbc8a8a8a610cde565b50505050505050505050565b60cc546001600160a01b03163314610bf25760405162461bcd60e51b81526004016104b690611ee6565b610c0d610c0760cc546001600160a01b031690565b82610e02565b6040518181527f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a449060200160405180910390a150565b60cc546001600160a01b03163314610c6d5760405162461bcd60e51b81526004016104b690611ee6565b6001600160a01b038116610cd25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104b6565b610cdb816112ef565b50565b6001600160a01b038316610d405760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104b6565b6001600160a01b038216610da15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104b6565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038216610e625760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104b6565b6001600160a01b03821660009081526033602052604090205481811015610ed65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104b6565b6001600160a01b0383166000908152603360205260408120838303905560358054849290610f05908490611f88565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600054610100900460ff1680610f69575060005460ff16155b610f855760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff16158015610fa7576000805461ffff19166101011790555b610faf61156d565b610fb76115d7565b8015610cdb576000805461ff001916905550565b600054610100900460ff1680610fe4575060005460ff16155b6110005760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff16158015611022576000805461ffff19166101011790555b61102a61156d565b6110348383611637565b8015610753576000805461ff0019169055505050565b600054610100900460ff1680611063575060005460ff16155b61107f5760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff161580156110a1576000805461ffff19166101011790555b6110a961156d565b6110cc82604051806040016040528060018152602001603160f81b8152506116cc565b6110d582611756565b80156110e7576000805461ff00191690555b5050565b60006110f88484846117e6565b6001600160a01b03841660009081526034602090815260408083203384529091529020548281101561117d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016104b6565b61118a8533858403610cde565b506001949350505050565b60006107f47f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6111c460655490565b6066546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b6001600160a01b0382166112665760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104b6565b80603560008282546112789190611f70565b90915550506001600160a01b038216600090815260336020526040812080548392906112a5908490611f70565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60cc80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006104833384846117e6565b6001600160a01b03811660009081526099602052604090208054600181018255905b50919050565b600061096a611383611195565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156114415760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104b6565b8360ff16601b148061145657508360ff16601c145b6114ad5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104b6565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611501573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166115645760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104b6565b95945050505050565b600054610100900460ff1680611586575060005460ff16155b6115a25760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff16158015610fb7576000805461ffff19166101011790558015610cdb576000805461ff001916905550565b600054610100900460ff16806115f0575060005460ff16155b61160c5760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff1615801561162e576000805461ffff19166101011790555b610fb7336112ef565b600054610100900460ff1680611650575060005460ff16155b61166c5760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff1615801561168e576000805461ffff19166101011790555b82516116a19060369060208601906119b4565b5081516116b59060379060208501906119b4565b508015610753576000805461ff0019169055505050565b600054610100900460ff16806116e5575060005460ff16155b6117015760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff16158015611723576000805461ffff19166101011790555b82516020808501919091208351918401919091206065919091556066558015610753576000805461ff0019169055505050565b600054610100900460ff168061176f575060005460ff16155b61178b5760405162461bcd60e51b81526004016104b690611e51565b600054610100900460ff161580156117ad576000805461ffff19166101011790555b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9609a5580156110e7576000805461ff00191690555050565b6001600160a01b03831661184a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104b6565b6001600160a01b0382166118ac5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104b6565b6001600160a01b038316600090815260336020526040902054818110156119245760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104b6565b6001600160a01b0380851660009081526033602052604080822085850390559185168152908120805484929061195b908490611f70565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516119a791815260200190565b60405180910390a36105e2565b8280546119c090611f9f565b90600052602060002090601f0160209004810192826119e25760008555611a28565b82601f106119fb57805160ff1916838001178555611a28565b82800160010185558215611a28579182015b82811115611a28578251825591602001919060010190611a0d565b50611a34929150611a38565b5090565b5b80821115611a345760008155600101611a39565b80356001600160a01b0381168114611a6457600080fd5b919050565b600082601f830112611a79578081fd5b81356020611a8e611a8983611f4c565b611f1b565b80838252828201915082860187848660051b8901011115611aad578586fd5b855b85811015611acb57813584529284019290840190600101611aaf565b5090979650505050505050565b600082601f830112611ae8578081fd5b813567ffffffffffffffff811115611b0257611b02612005565b611b15601f8201601f1916602001611f1b565b818152846020838601011115611b29578283fd5b816020850160208301379081016020019190915292915050565b803560ff81168114611a6457600080fd5b600060208284031215611b65578081fd5b610a7b82611a4d565b60008060408385031215611b80578081fd5b611b8983611a4d565b9150611b9760208401611a4d565b90509250929050565b600080600060608486031215611bb4578081fd5b611bbd84611a4d565b9250611bcb60208501611a4d565b9150604084013590509250925092565b600080600080600080600060e0888a031215611bf5578283fd5b611bfe88611a4d565b9650611c0c60208901611a4d565b95506040880135945060608801359350611c2860808901611b43565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215611c56578182fd5b611c5f83611a4d565b946020939093013593505050565b60008060408385031215611c7f578182fd5b823567ffffffffffffffff80821115611c96578384fd5b818501915085601f830112611ca9578384fd5b81356020611cb9611a8983611f4c565b8083825282820191508286018a848660051b8901011115611cd8578889fd5b8896505b84871015611d0157611ced81611a4d565b835260019690960195918301918301611cdc565b5096505086013592505080821115611d17578283fd5b50611d2485828601611a69565b9150509250929050565b600080600060608486031215611d42578283fd5b833567ffffffffffffffff80821115611d59578485fd5b611d6587838801611ad8565b94506020860135915080821115611d7a578384fd5b50611d8786828701611ad8565b925050611d9660408501611b43565b90509250925092565b600060208284031215611db0578081fd5b5035919050565b6000602080835283518082850152825b81811015611de357858101830151858201604001528201611dc7565b81811115611df45783604083870101525b50601f01601f1916929092016040019392505050565b60208082526027908201527f45524332303a207472616e7366657220746f2074686520636f6e7472616374206040820152666164647265737360c81b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526027908201527f426c6f636b65643a207472616e73666572732061726520626c6f636b6564206660408201526637b9103ab9b2b960c91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715611f4457611f44612005565b604052919050565b600067ffffffffffffffff821115611f6657611f66612005565b5060051b60200190565b60008219821115611f8357611f83611fef565b500190565b600082821015611f9a57611f9a611fef565b500390565b600181811c90821680611fb357607f821691505b6020821081141561137057634e487b7160e01b600052602260045260246000fd5b6000600019821415611fe857611fe8611fef565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220bb79ca0b135c484a5d62b9ba62e3a76ff11b2c3cc91c7d7bc102c162046e820164736f6c63430008040033","name":"TetherToken","is_blueprint":false,"license_type":"none","is_fully_verified":true,"is_verified_via_eth_bytecode_db":true,"language":"solidity","evm_version":"istanbul","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":true,"additional_sources":[{"file_path":"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\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 */\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\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    function __Ownable_init() internal initializer {\n        __Context_init_unchained();\n        __Ownable_init_unchained();\n    }\n\n    function __Ownable_init_unchained() internal initializer {\n        _setOwner(_msgSender());\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual 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        _setOwner(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        _setOwner(newOwner);\n    }\n\n    function _setOwner(address newOwner) private {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n    uint256[49] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n */\nabstract contract Initializable {\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 protect an initializer function from being invoked twice.\n     */\n    modifier initializer() {\n        require(_initializing || !_initialized, \"Initializable: contract is already 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"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20Upgradeable.sol\";\nimport \"./extensions/IERC20MetadataUpgradeable.sol\";\nimport \"../../utils/ContextUpgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\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 {ERC20PresetMinterPauser}.\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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\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\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * The default value of {decimals} is 18. To select a different value for\n     * {decimals} you should overload it.\n     *\n     * All two of these values are immutable: they can only be set once during\n     * construction.\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        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual override 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 virtual override 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 this function is\n     * overridden;\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 virtual override returns (uint8) {\n        return 18;\n    }\n\n    /**\n     * @dev See {IERC20-totalSupply}.\n     */\n    function totalSupply() public view virtual override returns (uint256) {\n        return _totalSupply;\n    }\n\n    /**\n     * @dev See {IERC20-balanceOf}.\n     */\n    function balanceOf(address account) public view virtual 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     *\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(\n        address sender,\n        address recipient,\n        uint256 amount\n    ) public virtual override returns (bool) {\n        _transfer(sender, recipient, amount);\n\n        uint256 currentAllowance = _allowances[sender][_msgSender()];\n        require(currentAllowance >= amount, \"ERC20: transfer amount exceeds allowance\");\n        unchecked {\n            _approve(sender, _msgSender(), currentAllowance - amount);\n        }\n\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] + 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        uint256 currentAllowance = _allowances[_msgSender()][spender];\n        require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n        unchecked {\n            _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n        }\n\n        return true;\n    }\n\n    /**\n     * @dev Moves `amount` of tokens from `sender` to `recipient`.\n     *\n     * This 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(\n        address sender,\n        address recipient,\n        uint256 amount\n    ) 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        uint256 senderBalance = _balances[sender];\n        require(senderBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n        unchecked {\n            _balances[sender] = senderBalance - amount;\n        }\n        _balances[recipient] += amount;\n\n        emit Transfer(sender, recipient, amount);\n\n        _afterTokenTransfer(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     * - `account` 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 += amount;\n        _balances[account] += amount;\n        emit Transfer(address(0), account, amount);\n\n        _afterTokenTransfer(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        uint256 accountBalance = _balances[account];\n        require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n        unchecked {\n            _balances[account] = accountBalance - amount;\n        }\n        _totalSupply -= amount;\n\n        emit Transfer(account, address(0), amount);\n\n        _afterTokenTransfer(account, address(0), amount);\n    }\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n     *\n     * This 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(\n        address owner,\n        address spender,\n        uint256 amount\n    ) 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 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 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(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual {}\n\n    /**\n     * @dev Hook that is called after 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     * has been transferred to `to`.\n     * - when `from` is zero, `amount` tokens have been minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual {}\n    uint256[45] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20Upgradeable {\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(\n        address sender,\n        address recipient,\n        uint256 amount\n    ) 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"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20Upgradeable.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./draft-IERC20PermitUpgradeable.sol\";\nimport \"../ERC20Upgradeable.sol\";\nimport \"../../../utils/cryptography/draft-EIP712Upgradeable.sol\";\nimport \"../../../utils/cryptography/ECDSAUpgradeable.sol\";\nimport \"../../../utils/CountersUpgradeable.sol\";\nimport \"../../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * _Available since v3.4._\n */\nabstract contract ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IERC20PermitUpgradeable, EIP712Upgradeable {\n    using CountersUpgradeable for CountersUpgradeable.Counter;\n\n    mapping(address => CountersUpgradeable.Counter) private _nonces;\n\n    // solhint-disable-next-line var-name-mixedcase\n    bytes32 private _PERMIT_TYPEHASH;\n\n    /**\n     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `\"1\"`.\n     *\n     * It's a good idea to use the same `name` that is defined as the ERC20 token name.\n     */\n    function __ERC20Permit_init(string memory name) internal initializer {\n        __Context_init_unchained();\n        __EIP712_init_unchained(name, \"1\");\n        __ERC20Permit_init_unchained(name);\n    }\n\n    function __ERC20Permit_init_unchained(string memory name) internal initializer {\n        _PERMIT_TYPEHASH = keccak256(\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\");}\n\n    /**\n     * @dev See {IERC20Permit-permit}.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) public virtual override {\n        require(block.timestamp <= deadline, \"ERC20Permit: expired deadline\");\n\n        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));\n\n        bytes32 hash = _hashTypedDataV4(structHash);\n\n        address signer = ECDSAUpgradeable.recover(hash, v, r, s);\n        require(signer == owner, \"ERC20Permit: invalid signature\");\n\n        _approve(owner, spender, value);\n    }\n\n    /**\n     * @dev See {IERC20Permit-nonces}.\n     */\n    function nonces(address owner) public view virtual override returns (uint256) {\n        return _nonces[owner].current();\n    }\n\n    /**\n     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view override returns (bytes32) {\n        return _domainSeparatorV4();\n    }\n\n    /**\n     * @dev \"Consume a nonce\": return the current value and increment.\n     *\n     * _Available since v4.1._\n     */\n    function _useNonce(address owner) internal virtual returns (uint256 current) {\n        CountersUpgradeable.Counter storage nonce = _nonces[owner];\n        current = nonce.current();\n        nonce.increment();\n    }\n    uint256[49] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20PermitUpgradeable {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\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 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 */\nabstract contract ContextUpgradeable is Initializable {\n    function __Context_init() internal initializer {\n        __Context_init_unchained();\n    }\n\n    function __Context_init_unchained() internal initializer {\n    }\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n    uint256[50] private __gap;\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @title Counters\n * @author Matt Condon (@shrugs)\n * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\n *\n * Include with `using Counters for Counters.Counter;`\n */\nlibrary CountersUpgradeable {\n    struct Counter {\n        // This variable should never be directly accessed by users of the library: interactions must be restricted to\n        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\n        // this feature: see https://github.com/ethereum/solidity/issues/4637\n        uint256 _value; // default: 0\n    }\n\n    function current(Counter storage counter) internal view returns (uint256) {\n        return counter._value;\n    }\n\n    function increment(Counter storage counter) internal {\n        unchecked {\n            counter._value += 1;\n        }\n    }\n\n    function decrement(Counter storage counter) internal {\n        uint256 value = counter._value;\n        require(value > 0, \"Counter: decrement overflow\");\n        unchecked {\n            counter._value = value - 1;\n        }\n    }\n\n    function reset(Counter storage counter) internal {\n        counter._value = 0;\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSAUpgradeable {\n    /**\n     * @dev Returns the address that signed a hashed message (`hash`) with\n     * `signature`. This address can then be used for verification purposes.\n     *\n     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n     * this function rejects them by requiring the `s` value to be in the lower\n     * half order, and the `v` value to be either 27 or 28.\n     *\n     * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n     * verification to be secure: it is possible to craft signatures that\n     * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n     * this is by receiving a hash of the original message (which may otherwise\n     * be too long), and then calling {toEthSignedMessageHash} on it.\n     *\n     * Documentation for signature generation:\n     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\n     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\n     */\n    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n        // Check the signature length\n        // - case 65: r,s,v signature (standard)\n        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._\n        if (signature.length == 65) {\n            bytes32 r;\n            bytes32 s;\n            uint8 v;\n            // ecrecover takes the signature parameters, and the only way to get them\n            // currently is to use assembly.\n            assembly {\n                r := mload(add(signature, 0x20))\n                s := mload(add(signature, 0x40))\n                v := byte(0, mload(add(signature, 0x60)))\n            }\n            return recover(hash, v, r, s);\n        } else if (signature.length == 64) {\n            bytes32 r;\n            bytes32 vs;\n            // ecrecover takes the signature parameters, and the only way to get them\n            // currently is to use assembly.\n            assembly {\n                r := mload(add(signature, 0x20))\n                vs := mload(add(signature, 0x40))\n            }\n            return recover(hash, r, vs);\n        } else {\n            revert(\"ECDSA: invalid signature length\");\n        }\n    }\n\n    /**\n     * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately.\n     *\n     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\n     *\n     * _Available since v4.2._\n     */\n    function recover(\n        bytes32 hash,\n        bytes32 r,\n        bytes32 vs\n    ) internal pure returns (address) {\n        bytes32 s;\n        uint8 v;\n        assembly {\n            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\n            v := add(shr(255, vs), 27)\n        }\n        return recover(hash, v, r, s);\n    }\n\n    /**\n     * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately.\n     */\n    function recover(\n        bytes32 hash,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal pure returns (address) {\n        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most\n        // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n        //\n        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n        // these malleable signatures as well.\n        require(\n            uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,\n            \"ECDSA: invalid signature 's' value\"\n        );\n        require(v == 27 || v == 28, \"ECDSA: invalid signature 'v' value\");\n\n        // If the signature is valid (and not malleable), return the signer address\n        address signer = ecrecover(hash, v, r, s);\n        require(signer != address(0), \"ECDSA: invalid signature\");\n\n        return signer;\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n     * produces hash corresponding to the one signed with the\n     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\n     * JSON-RPC method as part of EIP-191.\n     *\n     * See {recover}.\n     */\n    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\n        // 32 is the length in bytes of hash,\n        // enforced by the type signature above\n        return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n32\", hash));\n    }\n\n    /**\n     * @dev Returns an Ethereum Signed Typed Data, created from a\n     * `domainSeparator` and a `structHash`. This produces hash corresponding\n     * to the one signed with the\n     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\n     * JSON-RPC method as part of EIP-712.\n     *\n     * See {recover}.\n     */\n    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\n        return keccak256(abi.encodePacked(\"\\x19\\x01\", domainSeparator, structHash));\n    }\n}\n"},{"file_path":"@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ECDSAUpgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\n *\n * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\n * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\n * they need in their contracts using a combination of `abi.encode` and `keccak256`.\n *\n * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\n * ({_hashTypedDataV4}).\n *\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\n * the chain id to protect against replay attacks on an eventual fork of the chain.\n *\n * NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\n *\n * _Available since v3.4._\n */\nabstract contract EIP712Upgradeable is Initializable {\n    /* solhint-disable var-name-mixedcase */\n    bytes32 private _HASHED_NAME;\n    bytes32 private _HASHED_VERSION;\n    bytes32 private constant _TYPE_HASH = keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n    /* solhint-enable var-name-mixedcase */\n\n    /**\n     * @dev Initializes the domain separator and parameter caches.\n     *\n     * The meaning of `name` and `version` is specified in\n     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\n     *\n     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\n     * - `version`: the current major version of the signing domain.\n     *\n     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\n     * contract upgrade].\n     */\n    function __EIP712_init(string memory name, string memory version) internal initializer {\n        __EIP712_init_unchained(name, version);\n    }\n\n    function __EIP712_init_unchained(string memory name, string memory version) internal initializer {\n        bytes32 hashedName = keccak256(bytes(name));\n        bytes32 hashedVersion = keccak256(bytes(version));\n        _HASHED_NAME = hashedName;\n        _HASHED_VERSION = hashedVersion;\n    }\n\n    /**\n     * @dev Returns the domain separator for the current chain.\n     */\n    function _domainSeparatorV4() internal view returns (bytes32) {\n        return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash());\n    }\n\n    function _buildDomainSeparator(\n        bytes32 typeHash,\n        bytes32 nameHash,\n        bytes32 versionHash\n    ) private view returns (bytes32) {\n        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));\n    }\n\n    /**\n     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\n     * function returns the hash of the fully encoded EIP712 message for this domain.\n     *\n     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\n     *\n     * ```solidity\n     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(\n     *     keccak256(\"Mail(address to,string contents)\"),\n     *     mailTo,\n     *     keccak256(bytes(mailContents))\n     * )));\n     * address signer = ECDSA.recover(digest, signature);\n     * ```\n     */\n    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\n        return ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash);\n    }\n\n    /**\n     * @dev The hash of the name parameter for the EIP712 domain.\n     *\n     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n     * are a concern.\n     */\n    function _EIP712NameHash() internal virtual view returns (bytes32) {\n        return _HASHED_NAME;\n    }\n\n    /**\n     * @dev The hash of the version parameter for the EIP712 domain.\n     *\n     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n     * are a concern.\n     */\n    function _EIP712VersionHash() internal virtual view returns (bytes32) {\n        return _HASHED_VERSION;\n    }\n    uint256[50] private __gap;\n}\n"},{"file_path":"project:/contracts/Tether/WithBlockedList.sol","source_code":"pragma solidity 0.8.4;\n\nimport \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\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*/\n\n\ncontract WithBlockedList is OwnableUpgradeable {\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"}],"certified":false,"conflicting_implementations":null,"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":"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","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":[],"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"}],"is_changed_bytecode":false,"is_partially_verified":false,"constructor_args":null}