{"constructor_args":"0x00000000000000000000000000000000000000000000000000000000001e8480000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000022ab0554b1f3371850f0c1790e86403c9344d2440000000000000000000000000000000000000000000000000000000068f7b8ed0000000000000000000000000000000000000000000000000000000000000006245052505459000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062450525054590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c68747470733a2f2f696e766573746f722d6c616e64696e766573742d6465762e646967697368617265732e746563682f696e766573746f722f73686172652d63657274696669636174652f330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001568747470733a2f2f6c616e64696e766573742e696f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000","is_partially_verified":true,"is_changed_bytecode":false,"abi":[{"inputs":[{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint64","name":"_allowedInvestors","type":"uint64"},{"internalType":"uint8","name":"_decimalsPlaces","type":"uint8"},{"internalType":"string","name":"_ShareCertificate","type":"string"},{"internalType":"string","name":"_CompanyHomepage","type":"string"},{"internalType":"string","name":"_CompanyLegalDocs","type":"string"},{"internalType":"address","name":"_atomicSwapContractAddress","type":"address"},{"internalType":"uint64","name":"_tradingHoldingPeriod","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"_allowedInvestors","type":"uint64"}],"name":"AllowedInvestorsReset","type":"event"},{"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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_CompanyHomepage","type":"string"}],"name":"CompanyHomepageReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_CompanyLegalDocs","type":"string"}],"name":"CompanyLegalDocsReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"_tradingHoldingPeriod","type":"uint64"}],"name":"HoldingPeriodReset","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":"amount","type":"uint256"}],"name":"IssuerForceTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"receiveRestriction","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sendRestriction","type":"uint256"}],"name":"KYCDataForUserSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintTokens","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":"string","name":"_ShareCertificate","type":"string"}],"name":"ShareCertificateReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferFrom","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"string","name":"message","type":"string"},{"indexed":false,"internalType":"uint8","name":"errorCode","type":"uint8"}],"name":"TransferRestrictionDetected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"WhitelistAuthorityStatusRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"WhitelistAuthorityStatusSet","type":"event"},{"inputs":[],"name":"CompanyHomepage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CompanyLegalDocs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IssuancePlatform","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ShareCertificate","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowedInvestors","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":[{"internalType":"address[]","name":"account","type":"address[]"},{"internalType":"uint256","name":"receiveRestriction","type":"uint256"},{"internalType":"uint256","name":"sendRestriction","type":"uint256"}],"name":"bulkWhitelistWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTotalInvestors","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"detectTransferRestriction","outputs":[{"internalType":"uint8","name":"status","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"forceTransferToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getKYCData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getWhitelistAuthorityStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"issuanceProtocol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"restrictionCode","type":"uint8"}],"name":"messageForTransferRestriction","outputs":[{"internalType":"string","name":"message","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"receiveRestriction","type":"uint256"},{"internalType":"uint256","name":"sendRestriction","type":"uint256"}],"name":"modifyKYCData","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":"address","name":"user","type":"address"}],"name":"removeWhitelistAuthorityStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_allowedInvestors","type":"uint64"}],"name":"resetAllowedInvestors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_CompanyHomepage","type":"string"}],"name":"resetCompanyHomepage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_CompanyLegalDocs","type":"string"}],"name":"resetCompanyLegalDocs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ShareCertificate","type":"string"}],"name":"resetShareCertificate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tradingHoldingPeriod","type":"uint64"}],"name":"setTradingHoldingPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"setWhitelistAuthorityStatus","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":[],"name":"tradingHoldingPeriod","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"london","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":false,"license_type":"none","is_blueprint":false,"name":"ERC1404TokenMinKYCv13","creation_bytecode":"0x600c80547fffffffffffffffff0000000000000000ffffffffffffffff000000000000000016600160801b179055601e6101a09081527f4e6f207472616e73666572207265737472696374696f6e7320666f756e6400006101c05260a090815261028060405260666101e081815260c09162002bfa61020039815260200160405180608001604052806044815260200162002cc86044913981526020016040518060400160405280602081526020017f5a65726f207472616e7366657220616d6f756e74206e6f7420616c6c6f776564815250815260200160405180606001604052806024815260200162002d7260249139815260200160405180606001604052806026815260200162002bd46026913981526020016040518060a001604052806068815260200162002c606068913981526020016040518060a001604052806066815260200162002d0c6066913990526200016090600d9060086200042c565b503480156200016e57600080fd5b5060405162002d9638038062002d9683398101604081905262000191916200060f565b88886003620001a18382620007d5565b506004620001b08282620007d5565b505050620001cd620001c76200030b60201b60201c565b6200030f565b60ff8616608052600c80546001600160401b03808416600160801b02600160801b600160c01b031990921691909117825533600081815260066020818152604080842060019081905560078084528286208290556001600160a01b038b1686529383528185208190559282528084208390558654958e166801000000000000000002600160401b600160801b031990961695909517909555828252600890945291909120805460ff191690921790915560096200028b8782620007d5565b50600a6200029a8682620007d5565b50600b620002a98582620007d5565b50620002b6818c62000361565b806001600160a01b03167f7b47457f3af09e5f794b020fd74160963a808f5985883496a096d403d380c3438c604051620002f291815260200190565b60405180910390a25050505050505050505050620008c9565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003bc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620003d09190620008a1565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b82805482825590600052602060002090810192821562000477579160200282015b82811115620004775782518290620004669082620007d5565b50916020019190600101906200044d565b506200048592915062000489565b5090565b8082111562000485576000620004a08282620004aa565b5060010162000489565b508054620004b89062000747565b6000825580601f10620004c9575050565b601f016020900490600052602060002090810190620004e99190620004ec565b50565b5b80821115620004855760008155600101620004ed565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200052b57600080fd5b81516001600160401b038082111562000548576200054862000503565b604051601f8301601f19908116603f0116810190828211818310171562000573576200057362000503565b816040528381526020925086838588010111156200059057600080fd5b600091505b83821015620005b4578582018301518183018401529082019062000595565b600093810190920192909252949350505050565b80516001600160401b0381168114620005e057600080fd5b919050565b805160ff81168114620005e057600080fd5b80516001600160a01b0381168114620005e057600080fd5b6000806000806000806000806000806101408b8d0312156200063057600080fd5b8a5160208c0151909a506001600160401b03808211156200065057600080fd5b6200065e8e838f0162000519565b9a5060408d01519150808211156200067557600080fd5b620006838e838f0162000519565b99506200069360608e01620005c8565b9850620006a360808e01620005e5565b975060a08d0151915080821115620006ba57600080fd5b620006c88e838f0162000519565b965060c08d0151915080821115620006df57600080fd5b620006ed8e838f0162000519565b955060e08d01519150808211156200070457600080fd5b50620007138d828e0162000519565b935050620007256101008c01620005f7565b9150620007366101208c01620005c8565b90509295989b9194979a5092959850565b600181811c908216806200075c57607f821691505b6020821081036200077d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200042757600081815260208120601f850160051c81016020861015620007ac5750805b601f850160051c820191505b81811015620007cd57828155600101620007b8565b505050505050565b81516001600160401b03811115620007f157620007f162000503565b620008098162000802845462000747565b8462000783565b602080601f831160018114620008415760008415620008285750858301515b600019600386901b1c1916600185901b178555620007cd565b600085815260208120601f198616915b82811015620008725788860151825594840194600190910190840162000851565b5085821015620008915787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620008c357634e487b7160e01b600052601160045260246000fd5b92915050565b6080516122ef620008e560003960006102e501526122ef6000f3fe608060405234801561001057600080fd5b506004361061023d5760003560e01c8063715018a61161013b578063abc30a4b116100b8578063d4ce14151161007c578063d4ce14151461056d578063da76e2f314610580578063dd62ed3e14610593578063e8379421146105a6578063f2fde38b146105d257600080fd5b8063abc30a4b14610519578063ac893db11461052c578063b1b5932a1461053f578063c319e41c14610547578063c97c59d21461055a57600080fd5b806395d89b41116100ff57806395d89b411461048d5780639dc29fac14610495578063a457c2d7146104a8578063a9059cbb146104bb578063ab47a2f9146104ce57600080fd5b8063715018a6146104285780637cae04f7146104305780637f4ab1dd1461045757806384f9007f1461046a5780638da5cb5b1461047257600080fd5b80633a24ddc5116101c957806359a72ddc1161018d57806359a72ddc146103b0578063639c86ce146103b85780636401ca76146103d2578063654b6f15146103ec57806370a082311461041557600080fd5b80633a24ddc51461032a57806340c10f191461033d578063459688361461035057806351aebcd41461037b57806354fd4d501461038e57600080fd5b80631efcaeaf116102105780631efcaeaf146102aa57806323b872dd146102bd5780632b8e797a146102d0578063313ce567146102e3578063395093511461031757600080fd5b806306fdde0314610242578063095ea7b31461026057806309fc38921461028357806318160ddd14610298575b600080fd5b61024a6105e5565b6040516102579190611d9b565b60405180910390f35b61027361026e366004611dc5565b610677565b6040519015158152602001610257565b610296610291366004611def565b610691565b005b6002545b604051908152602001610257565b6102966102b8366004611e70565b61079a565b6102736102cb366004611e99565b6108c0565b6102966102de366004611ed5565b6109c3565b7f00000000000000000000000000000000000000000000000000000000000000005b60405160ff9091168152602001610257565b610273610325366004611dc5565b610a07565b610273610338366004611dc5565b610a29565b61027361034b366004611dc5565b610ab2565b600c54610363906001600160401b031681565b6040516001600160401b039091168152602001610257565b610296610389366004611f08565b610dc5565b61024a60405180604001604052806003815260200162312e3360e81b81525081565b61024a610e18565b600c5461036390600160801b90046001600160401b031681565b600c5461036390600160401b90046001600160401b031681565b61024a6040518060400160405280600a8152602001694469676953686172657360b01b81525081565b61029c610423366004611f79565b610ea6565b610296610ec1565b61024a60405180604001604052806008815260200167115490cb4c4d0c0d60c21b81525081565b61024a610465366004611f94565b610ed5565b61024a610fdb565b6005546040516001600160a01b039091168152602001610257565b61024a610fe8565b6102736104a3366004611dc5565b610ff7565b6102736104b6366004611dc5565b61114f565b6102736104c9366004611dc5565b6111d5565b6105046104dc366004611f79565b6001600160a01b03166000908152600660209081526040808320546007909252909120549091565b60408051928352602083019190915201610257565b610296610527366004611f08565b611217565b61029661053a366004611f08565b61125e565b61024a6112a5565b610296610555366004611f79565b6112b2565b610296610568366004611e70565b61130e565b61030561057b366004611e99565b611371565b61029661058e366004611f79565b611510565b61029c6105a1366004611fb7565b611569565b6102736105b4366004611f79565b6001600160a01b031660009081526008602052604090205460ff1690565b6102966105e0366004611f79565b611594565b6060600380546105f490611fea565b80601f016020809104026020016040519081016040528092919081815260200182805461062090611fea565b801561066d5780601f106106425761010080835404028352916020019161066d565b820191906000526020600020905b81548152906001019060200180831161065057829003601f168201915b5050505050905090565b60003361068581858561160d565b60019150505b92915050565b3360009081526008602052604090205460ff1615156001146106ce5760405162461bcd60e51b81526004016106c590612024565b60405180910390fd5b60328311156107455760405162461bcd60e51b815260206004820152603760248201527f42756c6b2077686974656c697374696e67206d6f7265207468616e203530206160448201527f6464726573736573206973206e6f7420616c6c6f77656400000000000000000060648201526084016106c5565b60005b838110156107935761078185858381811061076557610765612090565b905060200201602081019061077a9190611f79565b8484611731565b8061078b816120bc565b915050610748565b5050505050565b6107a2611795565b6001600160401b038116158015906107c85750600c546001600160401b03908116908216105b156108595760405162461bcd60e51b815260206004820152605560248201527f416c6c6f77656420546f6b656e20686f6c646572732063616e6e6f742062652060448201527f6c657373207468616e2063757272656e7420746f6b656e20686f6c646572732060648201527477697468206e6f6e2d7a65726f2062616c616e636560581b608482015260a4016106c5565b600c80546fffffffffffffffff00000000000000001916600160401b6001600160401b038416908102919091179091556040519081527f1134176aea4af31aec882084c2f0ff7992edea27ff97aafe9ce284c91e623b7d906020015b60405180910390a150565b600083838360006108d2848484611371565b905060ff8116156109515760006108e882610ed5565b9050836001600160a01b0316856001600160a01b03167fc844cc4ce519449488974a66d44d457e85e232edb0f90bd63eb0778f4b5c54c0838560405161092f9291906120d5565b60405180910390a38060405162461bcd60e51b81526004016106c59190611d9b565b61095e88888860006117ef565b866001600160a01b0316886001600160a01b0316336001600160a01b03167f5f7542858008eeb041631f30e6109ae94b83a58e9a58261dd2c42c508850f939896040516109ad91815260200190565b60405180910390a4506001979650505050505050565b3360009081526008602052604090205460ff1615156001146109f75760405162461bcd60e51b81526004016106c590612024565b610a02838383611731565b505050565b600033610685818585610a1a8383611569565b610a2491906120fa565b61160d565b6000610a33611795565b610a5183610a496005546001600160a01b031690565b8460016117ef565b6005546001600160a01b03166001600160a01b0316836001600160a01b03167f625f1e576665168ff9b3fd5510766eca672f1c97ca53cf82b4e8d96e02271b7d84604051610aa191815260200190565b60405180910390a350600192915050565b6000610abc611795565b6001600160a01b038316610b125760405162461bcd60e51b815260206004820152601e60248201527f4d696e74696e6720616464726573732063616e6e6f74206265207a65726f000060448201526064016106c5565b6001600160a01b0383166000908152600660205260408120549003610b8a5760405162461bcd60e51b815260206004820152602860248201527f41646472657373206973206e6f74207965742077686974656c697374656420626044820152673c9034b9b9bab2b960c11b60648201526084016106c5565b60008211610bda5760405162461bcd60e51b815260206004820152601c60248201527f5a65726f20616d6f756e742063616e6e6f74206265206d696e7465640000000060448201526064016106c5565b6005546001600160a01b03848116911614801590610bfe5750610bfc83610ea6565b155b8015610c1b5750600c54600160401b90046001600160401b031615155b8015610c4e5750600c546001600160401b03600160401b8204811691610c439116600161210d565b6001600160401b0316115b15610d0d5760405162461bcd60e51b815260206004820152607f60248201527f4d696e74696e67206e6f7420616c6c6f77656420746f2074686973206164647260448201527f65737320617320616c6c6f77656420746f6b656e20686f6c646572207265737460648201527f72696374696f6e20697320696e20706c61636520616e64206d696e74696e672060848201527f77696c6c20696e6372656173652074686520616c6c6f776564206c696d69740060a482015260c4016106c5565b610d1683610ea6565b158015610d3157506005546001600160a01b03848116911614155b15610d6f57600c54610d4d906001600160401b0316600161210d565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b610d7983836118e1565b826001600160a01b03167f7b47457f3af09e5f794b020fd74160963a808f5985883496a096d403d380c34383604051610db491815260200190565b60405180910390a250600192915050565b610dcd611795565b600b610dda828483612198565b507fa555e96a9f6d83b18cbe170e5fd71ebb56fc55f86a115539e9f3038182075a508282604051610e0c929190612257565b60405180910390a15050565b60098054610e2590611fea565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5190611fea565b8015610e9e5780601f10610e7357610100808354040283529160200191610e9e565b820191906000526020600020905b815481529060010190602001808311610e8157829003601f168201915b505050505081565b6001600160a01b031660009081526020819052604090205490565b610ec9611795565b610ed360006119a0565b565b600d54606090610ee790600190612286565b8260ff1611610fa057600d8260ff1681548110610f0657610f06612090565b906000526020600020018054610f1b90611fea565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4790611fea565b8015610f945780601f10610f6957610100808354040283529160200191610f94565b820191906000526020600020905b815481529060010190602001808311610f7757829003601f168201915b50505050509050919050565b5060408051808201909152601981527f4572726f7220636f6465206973206e6f7420646566696e65640000000000000060208201525b919050565b600a8054610e2590611fea565b6060600480546105f490611fea565b6000611001611795565b6001600160a01b0383166110575760405162461bcd60e51b815260206004820152601b60248201527f4275726e20616464726573732063616e6e6f74206265207a65726f000000000060448201526064016106c5565b600082116110a75760405162461bcd60e51b815260206004820152601c60248201527f5a65726f20616d6f756e742063616e6e6f74206265206275726e65640000000060448201526064016106c5565b6110b183836119f2565b6110ba83610ea6565b1580156110d557506005546001600160a01b03848116911614155b1561111457600c546110f2906001906001600160401b0316612299565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b826001600160a01b03167f388d6102a0230861b4e9646fb5acda1c5ec15d39df2b619d39c25d16a126849083604051610db491815260200190565b6000338161115d8286611569565b9050838110156111bd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106c5565b6111ca828686840361160d565b506001949350505050565b600033838360006111e7848484611371565b905060ff8116156111fd5760006108e882610ed5565b61120a33888860016117ef565b5060019695505050505050565b61121f611795565b600a61122c828483612198565b507f824a3f3055c070014bc7157744915537c646ae1a287c988d79ec124d88938e948282604051610e0c929190612257565b611266611795565b6009611273828483612198565b507f4295968313e92c7dd40aa9c85be9b7246ff59503751e11205c85795a2f74fdb38282604051610e0c929190612257565b600b8054610e2590611fea565b6112ba611795565b6001600160a01b038116600081815260086020908152604091829020805460ff1916600117905590519182527fea54bdb8a4594aaac063e3b01ab3e613bf4cb045d085502c81497c9696aca8b291016108b5565b611316611795565b600c805467ffffffffffffffff60801b1916600160801b6001600160401b038416908102919091179091556040519081527f9a2bb66598018882d816bc64a2ff56e12b3f2937da4d9e90674915a34a04d810906020016108b5565b600c54600090600160801b90046001600160401b0316421080156113a357506005546001600160a01b03858116911614155b156113b057506002611509565b60018210156113c157506003611509565b6001600160a01b03841660009081526007602052604081205490036113e857506004611509565b6001600160a01b038316600090815260066020526040812054900361140f57506005611509565b6001600160a01b03841660009081526007602052604090205442101561143757506006611509565b6001600160a01b03831660009081526006602052604090205442101561145f57506007611509565b600c54600160401b90046001600160401b031661147e57506000611509565b600061148984610ea6565b11806114a257506005546001600160a01b038481169116145b156114af57506000611509565b600c546001600160401b03600160401b82048116911610156114d357506000611509565b816114dd85610ea6565b1480156114f857506005546001600160a01b03858116911614155b1561150557506000611509565b5060015b9392505050565b611518611795565b6001600160a01b038116600081815260086020908152604091829020805460ff1916905590519182527f24546dc0f5df685d7c979edd1b0bcc4d85ac6a59974976d7217c9f0d930d3ff091016108b5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61159c611795565b6001600160a01b0381166116015760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106c5565b61160a816119a0565b50565b6001600160a01b03831661166f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106c5565b6001600160a01b0382166116d05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106c5565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166000818152600660209081526040808320869055600782529182902084905581518581529081018490527fc78ee1de8eb00c83baa5f9bf324f00dd286b754a3826292de51c92c3e7a0cab5910160405180910390a2505050565b6005546001600160a01b03163314610ed35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106c5565b6117f883610ea6565b15801561181357506005546001600160a01b03848116911614155b1561185157600c5461182f906001600160401b0316600161210d565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b80151560010361186b57611866848484611b24565b611878565b611876848484611cc8565b505b61188184610ea6565b15801561189c57506005546001600160a01b03858116911614155b156118db57600c546118b9906001906001600160401b0316612299565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b50505050565b6001600160a01b0382166119375760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106c5565b806002600082825461194991906120fa565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611a525760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106c5565b6001600160a01b03821660009081526020819052604090205481811015611ac65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106c5565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b038316611b885760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106c5565b6001600160a01b038216611bea5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106c5565b6001600160a01b03831660009081526020819052604090205481811015611c625760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106c5565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36118db565b600033611cd6858285611ce1565b6111ca858585611b24565b6000611ced8484611569565b905060001981146118db5781811015611d485760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106c5565b6118db848484840361160d565b6000815180845260005b81811015611d7b57602081850181015186830182015201611d5f565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006115096020830184611d55565b80356001600160a01b0381168114610fd657600080fd5b60008060408385031215611dd857600080fd5b611de183611dae565b946020939093013593505050565b60008060008060608587031215611e0557600080fd5b84356001600160401b0380821115611e1c57600080fd5b818701915087601f830112611e3057600080fd5b813581811115611e3f57600080fd5b8860208260051b8501011115611e5457600080fd5b6020928301999098509187013596604001359550909350505050565b600060208284031215611e8257600080fd5b81356001600160401b038116811461150957600080fd5b600080600060608486031215611eae57600080fd5b611eb784611dae565b9250611ec560208501611dae565b9150604084013590509250925092565b600080600060608486031215611eea57600080fd5b611ef384611dae565b95602085013595506040909401359392505050565b60008060208385031215611f1b57600080fd5b82356001600160401b0380821115611f3257600080fd5b818501915085601f830112611f4657600080fd5b813581811115611f5557600080fd5b866020828501011115611f6757600080fd5b60209290920196919550909350505050565b600060208284031215611f8b57600080fd5b61150982611dae565b600060208284031215611fa657600080fd5b813560ff8116811461150957600080fd5b60008060408385031215611fca57600080fd5b611fd383611dae565b9150611fe160208401611dae565b90509250929050565b600181811c90821680611ffe57607f821691505b60208210810361201e57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526046908201527f4f6e6c7920617574686f72697a6564206164647265737365732063616e20636f60408201527f6e74726f6c2077686974656c697374696e67206f6620686f6c6465722061646460608201526572657373657360d01b608082015260a00190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016120ce576120ce6120a6565b5060010190565b6040815260006120e86040830185611d55565b905060ff831660208301529392505050565b8082018082111561068b5761068b6120a6565b6001600160401b0381811683821601908082111561212d5761212d6120a6565b5092915050565b634e487b7160e01b600052604160045260246000fd5b601f821115610a0257600081815260208120601f850160051c810160208610156121715750805b601f850160051c820191505b818110156121905782815560010161217d565b505050505050565b6001600160401b038311156121af576121af612134565b6121c3836121bd8354611fea565b8361214a565b6000601f8411600181146121f757600085156121df5750838201355b600019600387901b1c1916600186901b178355610793565b600083815260209020601f19861690835b828110156122285786850135825560209485019460019092019101612208565b50868210156122455760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b8181038181111561068b5761068b6120a6565b6001600160401b0382811682821603908082111561212d5761212d6120a656fea264697066735822122029e88ae49fcaed5bce8a9fd2a77d8472f5ee4fa47154e7f6257366791e84e72264736f6c634300081300335265636569766572206973206e6f742077686974656c6973746564206f7220626c6f636b65644d617820616c6c6f776564206164647265737365732077697468206e6f6e2d7a65726f207265737472696374696f6e20697320696e20706c6163652c2074686973207472616e736665722077696c6c206578636565642074686973206c696d69746174696f6e53656e6465722069732077686974656c697374656420627574206973206e6f7420656c696769626c6520746f2073656e6420746f6b656e7320616e6420756e64657220686f6c64696e6720706572696f6420284b59432074696d65207265737472696374696f6e29416c6c207472616e7366657273206172652064697361626c6564206265636175736520486f6c64696e6720506572696f64206973206e6f7420796574206578706972656452656365697665722069732077686974656c697374656420627574206973206e6f742079657420656c696769626c6520746f207265636569766520746f6b656e7320696e206869732077616c6c657420284b59432074696d65207265737472696374696f6e2953656e646572206973206e6f742077686974656c6973746564206f7220626c6f636b656400000000000000000000000000000000000000000000000000000000001e8480000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000022ab0554b1f3371850f0c1790e86403c9344d2440000000000000000000000000000000000000000000000000000000068f7b8ed0000000000000000000000000000000000000000000000000000000000000006245052505459000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062450525054590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c68747470733a2f2f696e766573746f722d6c616e64696e766573742d6465762e646967697368617265732e746563682f696e766573746f722f73686172652d63657274696669636174652f330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001568747470733a2f2f6c616e64696e766573742e696f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-02-14T14:03:46.658194Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.8.19+commit.7dd6d404","decoded_constructor_args":[["2000000",{"internalType":"uint256","name":"_initialSupply","type":"uint256"}],["$PRPTY",{"internalType":"string","name":"_name","type":"string"}],["$PRPTY",{"internalType":"string","name":"_symbol","type":"string"}],["0",{"internalType":"uint64","name":"_allowedInvestors","type":"uint64"}],["0",{"internalType":"uint8","name":"_decimalsPlaces","type":"uint8"}],["https://investor-landinvest-dev.digishares.tech/investor/share-certificate/3",{"internalType":"string","name":"_ShareCertificate","type":"string"}],["https://landinvest.io",{"internalType":"string","name":"_CompanyHomepage","type":"string"}],["",{"internalType":"string","name":"_CompanyLegalDocs","type":"string"}],["0x22Ab0554b1f3371850F0C1790e86403C9344d244",{"internalType":"address","name":"_atomicSwapContractAddress","type":"address"}],["1761065197",{"internalType":"uint64","name":"_tradingHoldingPeriod","type":"uint64"}]],"sourcify_repo_url":null,"optimization_runs":200,"compiler_settings":{"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","murky/=lib/murky/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/","openzeppelin/=lib/openzeppelin-contracts/contracts/"]},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x608060405234801561001057600080fd5b506004361061023d5760003560e01c8063715018a61161013b578063abc30a4b116100b8578063d4ce14151161007c578063d4ce14151461056d578063da76e2f314610580578063dd62ed3e14610593578063e8379421146105a6578063f2fde38b146105d257600080fd5b8063abc30a4b14610519578063ac893db11461052c578063b1b5932a1461053f578063c319e41c14610547578063c97c59d21461055a57600080fd5b806395d89b41116100ff57806395d89b411461048d5780639dc29fac14610495578063a457c2d7146104a8578063a9059cbb146104bb578063ab47a2f9146104ce57600080fd5b8063715018a6146104285780637cae04f7146104305780637f4ab1dd1461045757806384f9007f1461046a5780638da5cb5b1461047257600080fd5b80633a24ddc5116101c957806359a72ddc1161018d57806359a72ddc146103b0578063639c86ce146103b85780636401ca76146103d2578063654b6f15146103ec57806370a082311461041557600080fd5b80633a24ddc51461032a57806340c10f191461033d578063459688361461035057806351aebcd41461037b57806354fd4d501461038e57600080fd5b80631efcaeaf116102105780631efcaeaf146102aa57806323b872dd146102bd5780632b8e797a146102d0578063313ce567146102e3578063395093511461031757600080fd5b806306fdde0314610242578063095ea7b31461026057806309fc38921461028357806318160ddd14610298575b600080fd5b61024a6105e5565b6040516102579190611d9b565b60405180910390f35b61027361026e366004611dc5565b610677565b6040519015158152602001610257565b610296610291366004611def565b610691565b005b6002545b604051908152602001610257565b6102966102b8366004611e70565b61079a565b6102736102cb366004611e99565b6108c0565b6102966102de366004611ed5565b6109c3565b7f00000000000000000000000000000000000000000000000000000000000000005b60405160ff9091168152602001610257565b610273610325366004611dc5565b610a07565b610273610338366004611dc5565b610a29565b61027361034b366004611dc5565b610ab2565b600c54610363906001600160401b031681565b6040516001600160401b039091168152602001610257565b610296610389366004611f08565b610dc5565b61024a60405180604001604052806003815260200162312e3360e81b81525081565b61024a610e18565b600c5461036390600160801b90046001600160401b031681565b600c5461036390600160401b90046001600160401b031681565b61024a6040518060400160405280600a8152602001694469676953686172657360b01b81525081565b61029c610423366004611f79565b610ea6565b610296610ec1565b61024a60405180604001604052806008815260200167115490cb4c4d0c0d60c21b81525081565b61024a610465366004611f94565b610ed5565b61024a610fdb565b6005546040516001600160a01b039091168152602001610257565b61024a610fe8565b6102736104a3366004611dc5565b610ff7565b6102736104b6366004611dc5565b61114f565b6102736104c9366004611dc5565b6111d5565b6105046104dc366004611f79565b6001600160a01b03166000908152600660209081526040808320546007909252909120549091565b60408051928352602083019190915201610257565b610296610527366004611f08565b611217565b61029661053a366004611f08565b61125e565b61024a6112a5565b610296610555366004611f79565b6112b2565b610296610568366004611e70565b61130e565b61030561057b366004611e99565b611371565b61029661058e366004611f79565b611510565b61029c6105a1366004611fb7565b611569565b6102736105b4366004611f79565b6001600160a01b031660009081526008602052604090205460ff1690565b6102966105e0366004611f79565b611594565b6060600380546105f490611fea565b80601f016020809104026020016040519081016040528092919081815260200182805461062090611fea565b801561066d5780601f106106425761010080835404028352916020019161066d565b820191906000526020600020905b81548152906001019060200180831161065057829003601f168201915b5050505050905090565b60003361068581858561160d565b60019150505b92915050565b3360009081526008602052604090205460ff1615156001146106ce5760405162461bcd60e51b81526004016106c590612024565b60405180910390fd5b60328311156107455760405162461bcd60e51b815260206004820152603760248201527f42756c6b2077686974656c697374696e67206d6f7265207468616e203530206160448201527f6464726573736573206973206e6f7420616c6c6f77656400000000000000000060648201526084016106c5565b60005b838110156107935761078185858381811061076557610765612090565b905060200201602081019061077a9190611f79565b8484611731565b8061078b816120bc565b915050610748565b5050505050565b6107a2611795565b6001600160401b038116158015906107c85750600c546001600160401b03908116908216105b156108595760405162461bcd60e51b815260206004820152605560248201527f416c6c6f77656420546f6b656e20686f6c646572732063616e6e6f742062652060448201527f6c657373207468616e2063757272656e7420746f6b656e20686f6c646572732060648201527477697468206e6f6e2d7a65726f2062616c616e636560581b608482015260a4016106c5565b600c80546fffffffffffffffff00000000000000001916600160401b6001600160401b038416908102919091179091556040519081527f1134176aea4af31aec882084c2f0ff7992edea27ff97aafe9ce284c91e623b7d906020015b60405180910390a150565b600083838360006108d2848484611371565b905060ff8116156109515760006108e882610ed5565b9050836001600160a01b0316856001600160a01b03167fc844cc4ce519449488974a66d44d457e85e232edb0f90bd63eb0778f4b5c54c0838560405161092f9291906120d5565b60405180910390a38060405162461bcd60e51b81526004016106c59190611d9b565b61095e88888860006117ef565b866001600160a01b0316886001600160a01b0316336001600160a01b03167f5f7542858008eeb041631f30e6109ae94b83a58e9a58261dd2c42c508850f939896040516109ad91815260200190565b60405180910390a4506001979650505050505050565b3360009081526008602052604090205460ff1615156001146109f75760405162461bcd60e51b81526004016106c590612024565b610a02838383611731565b505050565b600033610685818585610a1a8383611569565b610a2491906120fa565b61160d565b6000610a33611795565b610a5183610a496005546001600160a01b031690565b8460016117ef565b6005546001600160a01b03166001600160a01b0316836001600160a01b03167f625f1e576665168ff9b3fd5510766eca672f1c97ca53cf82b4e8d96e02271b7d84604051610aa191815260200190565b60405180910390a350600192915050565b6000610abc611795565b6001600160a01b038316610b125760405162461bcd60e51b815260206004820152601e60248201527f4d696e74696e6720616464726573732063616e6e6f74206265207a65726f000060448201526064016106c5565b6001600160a01b0383166000908152600660205260408120549003610b8a5760405162461bcd60e51b815260206004820152602860248201527f41646472657373206973206e6f74207965742077686974656c697374656420626044820152673c9034b9b9bab2b960c11b60648201526084016106c5565b60008211610bda5760405162461bcd60e51b815260206004820152601c60248201527f5a65726f20616d6f756e742063616e6e6f74206265206d696e7465640000000060448201526064016106c5565b6005546001600160a01b03848116911614801590610bfe5750610bfc83610ea6565b155b8015610c1b5750600c54600160401b90046001600160401b031615155b8015610c4e5750600c546001600160401b03600160401b8204811691610c439116600161210d565b6001600160401b0316115b15610d0d5760405162461bcd60e51b815260206004820152607f60248201527f4d696e74696e67206e6f7420616c6c6f77656420746f2074686973206164647260448201527f65737320617320616c6c6f77656420746f6b656e20686f6c646572207265737460648201527f72696374696f6e20697320696e20706c61636520616e64206d696e74696e672060848201527f77696c6c20696e6372656173652074686520616c6c6f776564206c696d69740060a482015260c4016106c5565b610d1683610ea6565b158015610d3157506005546001600160a01b03848116911614155b15610d6f57600c54610d4d906001600160401b0316600161210d565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b610d7983836118e1565b826001600160a01b03167f7b47457f3af09e5f794b020fd74160963a808f5985883496a096d403d380c34383604051610db491815260200190565b60405180910390a250600192915050565b610dcd611795565b600b610dda828483612198565b507fa555e96a9f6d83b18cbe170e5fd71ebb56fc55f86a115539e9f3038182075a508282604051610e0c929190612257565b60405180910390a15050565b60098054610e2590611fea565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5190611fea565b8015610e9e5780601f10610e7357610100808354040283529160200191610e9e565b820191906000526020600020905b815481529060010190602001808311610e8157829003601f168201915b505050505081565b6001600160a01b031660009081526020819052604090205490565b610ec9611795565b610ed360006119a0565b565b600d54606090610ee790600190612286565b8260ff1611610fa057600d8260ff1681548110610f0657610f06612090565b906000526020600020018054610f1b90611fea565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4790611fea565b8015610f945780601f10610f6957610100808354040283529160200191610f94565b820191906000526020600020905b815481529060010190602001808311610f7757829003601f168201915b50505050509050919050565b5060408051808201909152601981527f4572726f7220636f6465206973206e6f7420646566696e65640000000000000060208201525b919050565b600a8054610e2590611fea565b6060600480546105f490611fea565b6000611001611795565b6001600160a01b0383166110575760405162461bcd60e51b815260206004820152601b60248201527f4275726e20616464726573732063616e6e6f74206265207a65726f000000000060448201526064016106c5565b600082116110a75760405162461bcd60e51b815260206004820152601c60248201527f5a65726f20616d6f756e742063616e6e6f74206265206275726e65640000000060448201526064016106c5565b6110b183836119f2565b6110ba83610ea6565b1580156110d557506005546001600160a01b03848116911614155b1561111457600c546110f2906001906001600160401b0316612299565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b826001600160a01b03167f388d6102a0230861b4e9646fb5acda1c5ec15d39df2b619d39c25d16a126849083604051610db491815260200190565b6000338161115d8286611569565b9050838110156111bd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106c5565b6111ca828686840361160d565b506001949350505050565b600033838360006111e7848484611371565b905060ff8116156111fd5760006108e882610ed5565b61120a33888860016117ef565b5060019695505050505050565b61121f611795565b600a61122c828483612198565b507f824a3f3055c070014bc7157744915537c646ae1a287c988d79ec124d88938e948282604051610e0c929190612257565b611266611795565b6009611273828483612198565b507f4295968313e92c7dd40aa9c85be9b7246ff59503751e11205c85795a2f74fdb38282604051610e0c929190612257565b600b8054610e2590611fea565b6112ba611795565b6001600160a01b038116600081815260086020908152604091829020805460ff1916600117905590519182527fea54bdb8a4594aaac063e3b01ab3e613bf4cb045d085502c81497c9696aca8b291016108b5565b611316611795565b600c805467ffffffffffffffff60801b1916600160801b6001600160401b038416908102919091179091556040519081527f9a2bb66598018882d816bc64a2ff56e12b3f2937da4d9e90674915a34a04d810906020016108b5565b600c54600090600160801b90046001600160401b0316421080156113a357506005546001600160a01b03858116911614155b156113b057506002611509565b60018210156113c157506003611509565b6001600160a01b03841660009081526007602052604081205490036113e857506004611509565b6001600160a01b038316600090815260066020526040812054900361140f57506005611509565b6001600160a01b03841660009081526007602052604090205442101561143757506006611509565b6001600160a01b03831660009081526006602052604090205442101561145f57506007611509565b600c54600160401b90046001600160401b031661147e57506000611509565b600061148984610ea6565b11806114a257506005546001600160a01b038481169116145b156114af57506000611509565b600c546001600160401b03600160401b82048116911610156114d357506000611509565b816114dd85610ea6565b1480156114f857506005546001600160a01b03858116911614155b1561150557506000611509565b5060015b9392505050565b611518611795565b6001600160a01b038116600081815260086020908152604091829020805460ff1916905590519182527f24546dc0f5df685d7c979edd1b0bcc4d85ac6a59974976d7217c9f0d930d3ff091016108b5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61159c611795565b6001600160a01b0381166116015760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106c5565b61160a816119a0565b50565b6001600160a01b03831661166f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106c5565b6001600160a01b0382166116d05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106c5565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166000818152600660209081526040808320869055600782529182902084905581518581529081018490527fc78ee1de8eb00c83baa5f9bf324f00dd286b754a3826292de51c92c3e7a0cab5910160405180910390a2505050565b6005546001600160a01b03163314610ed35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106c5565b6117f883610ea6565b15801561181357506005546001600160a01b03848116911614155b1561185157600c5461182f906001600160401b0316600161210d565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b80151560010361186b57611866848484611b24565b611878565b611876848484611cc8565b505b61188184610ea6565b15801561189c57506005546001600160a01b03858116911614155b156118db57600c546118b9906001906001600160401b0316612299565b600c805467ffffffffffffffff19166001600160401b03929092169190911790555b50505050565b6001600160a01b0382166119375760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106c5565b806002600082825461194991906120fa565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611a525760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106c5565b6001600160a01b03821660009081526020819052604090205481811015611ac65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106c5565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b038316611b885760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106c5565b6001600160a01b038216611bea5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106c5565b6001600160a01b03831660009081526020819052604090205481811015611c625760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106c5565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36118db565b600033611cd6858285611ce1565b6111ca858585611b24565b6000611ced8484611569565b905060001981146118db5781811015611d485760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106c5565b6118db848484840361160d565b6000815180845260005b81811015611d7b57602081850181015186830182015201611d5f565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006115096020830184611d55565b80356001600160a01b0381168114610fd657600080fd5b60008060408385031215611dd857600080fd5b611de183611dae565b946020939093013593505050565b60008060008060608587031215611e0557600080fd5b84356001600160401b0380821115611e1c57600080fd5b818701915087601f830112611e3057600080fd5b813581811115611e3f57600080fd5b8860208260051b8501011115611e5457600080fd5b6020928301999098509187013596604001359550909350505050565b600060208284031215611e8257600080fd5b81356001600160401b038116811461150957600080fd5b600080600060608486031215611eae57600080fd5b611eb784611dae565b9250611ec560208501611dae565b9150604084013590509250925092565b600080600060608486031215611eea57600080fd5b611ef384611dae565b95602085013595506040909401359392505050565b60008060208385031215611f1b57600080fd5b82356001600160401b0380821115611f3257600080fd5b818501915085601f830112611f4657600080fd5b813581811115611f5557600080fd5b866020828501011115611f6757600080fd5b60209290920196919550909350505050565b600060208284031215611f8b57600080fd5b61150982611dae565b600060208284031215611fa657600080fd5b813560ff8116811461150957600080fd5b60008060408385031215611fca57600080fd5b611fd383611dae565b9150611fe160208401611dae565b90509250929050565b600181811c90821680611ffe57607f821691505b60208210810361201e57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526046908201527f4f6e6c7920617574686f72697a6564206164647265737365732063616e20636f60408201527f6e74726f6c2077686974656c697374696e67206f6620686f6c6465722061646460608201526572657373657360d01b608082015260a00190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016120ce576120ce6120a6565b5060010190565b6040815260006120e86040830185611d55565b905060ff831660208301529392505050565b8082018082111561068b5761068b6120a6565b6001600160401b0381811683821601908082111561212d5761212d6120a6565b5092915050565b634e487b7160e01b600052604160045260246000fd5b601f821115610a0257600081815260208120601f850160051c810160208610156121715750805b601f850160051c820191505b818110156121905782815560010161217d565b505050505050565b6001600160401b038311156121af576121af612134565b6121c3836121bd8354611fea565b8361214a565b6000601f8411600181146121f757600085156121df5750838201355b600019600387901b1c1916600186901b178355610793565b600083815260209020601f19861690835b828110156122285786850135825560209485019460019092019101612208565b50868210156122455760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b8181038181111561068b5761068b6120a6565b6001600160401b0382811682821603908082111561212d5761212d6120a656fea264697066735822122029e88ae49fcaed5bce8a9fd2a77d8472f5ee4fa47154e7f6257366791e84e72264736f6c63430008130033","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity 0.8.19;\n\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)\n\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\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     * @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 `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, 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 `from` to `to` 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 from,\n        address to,\n        uint256 amount\n    ) external returns (bool);\n}\n\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\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\n// OpenZeppelin Contracts v4.4.1 (utils/Context.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 Context {\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}\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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * 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 ERC20 is Context, IERC20, IERC20Metadata {\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    constructor(string memory name_, string memory symbol_) {\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     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `amount`.\n     */\n    function transfer(address to, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, 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     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\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        address owner = _msgSender();\n        _approve(owner, 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     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(\n        address from,\n        address to,\n        uint256 amount\n    ) public virtual override returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, amount);\n        _transfer(from, to, amount);\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        address owner = _msgSender();\n        _approve(owner, spender, allowance(owner, 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        address owner = _msgSender();\n        uint256 currentAllowance = allowance(owner, spender);\n        require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n        unchecked {\n            _approve(owner, spender, currentAllowance - subtractedValue);\n        }\n\n        return true;\n    }\n\n    /**\n     * @dev Moves `amount` of tokens from `from` to `to`.\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     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     */\n    function _transfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual {\n        require(from != address(0), \"ERC20: transfer from the zero address\");\n        require(to != address(0), \"ERC20: transfer to the zero address\");\n\n        _beforeTokenTransfer(from, to, amount);\n\n        uint256 fromBalance = _balances[from];\n        require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n        unchecked {\n            _balances[from] = fromBalance - amount;\n            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n            // decrementing then incrementing.\n            _balances[to] += amount;\n        }\n\n        emit Transfer(from, to, amount);\n\n        _afterTokenTransfer(from, to, 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        unchecked {\n            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n            _balances[account] += amount;\n        }\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            // Overflow not possible: amount <= accountBalance <= totalSupply.\n            _totalSupply -= amount;\n        }\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 Updates `owner` s allowance for `spender` based on spent `amount`.\n     *\n     * Does not update the allowance amount in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Might emit an {Approval} event.\n     */\n    function _spendAllowance(\n        address owner,\n        address spender,\n        uint256 amount\n    ) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance != type(uint256).max) {\n            require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n            unchecked {\n                _approve(owner, spender, currentAllowance - amount);\n            }\n        }\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}\n\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.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 Ownable is Context {\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    constructor() {\n        _transferOwnership(_msgSender());\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\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 the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\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        _transferOwnership(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        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n\nabstract contract IERC1404 {\n    /// @notice Detects if a transfer will be reverted and if so returns an appropriate reference code\n    /// @param from Sending address\n    /// @param to Receiving address\n    /// @param value Amount of tokens being transferred\n    /// @return Code by which to reference message for rejection reasoning\n    /// @dev Overwrite with your custom transfer restriction logic\n    function  detectTransferRestriction (address from, address to, uint256 value) public virtual view returns (uint8);\n\n    /// @notice Returns a human-readable message for a given restriction code\n    /// @param restrictionCode Identifier for looking up a message\n    /// @return Text showing the restriction's reasoning\n    /// @dev Overwrite with your custom message and restrictionCode handling\n    function  messageForTransferRestriction  (uint8 restrictionCode) public virtual view returns (string memory);\n}\n\ncontract ERC1404TokenMinKYCv13 is ERC20, Ownable, IERC1404 {\n\n\t// Set receive and send restrictions on investors\n\t// date is Linux Epoch datetime\n\t// Default values is 0 which means investor is not whitelisted\n    mapping (address => uint256) private _receiveRestriction;  \n\tmapping (address => uint256) private _sendRestriction;\n\n\t// These addresses act as whitelist authority and can call modifyKYCData\n\t// There is possibility that issuer may let third party like Exchange to control \n\t// whitelisting addresses \n    mapping (address => bool) private _whitelistControlAuthority;\n\n\tevent TransferRestrictionDetected( address indexed from, address indexed to, string message, uint8 errorCode );\n\tevent BurnTokens(address indexed account, uint256 amount);\n\tevent MintTokens(address indexed account, uint256 amount);\n\tevent KYCDataForUserSet (address indexed account, uint256 receiveRestriction, uint256 sendRestriction);\n    event ShareCertificateReset (string _ShareCertificate);\n    event CompanyHomepageReset (string _CompanyHomepage);\n    event CompanyLegalDocsReset (string _CompanyLegalDocs);\n\tevent AllowedInvestorsReset(uint64 _allowedInvestors);\n\tevent HoldingPeriodReset(uint64 _tradingHoldingPeriod);\n\tevent WhitelistAuthorityStatusSet(address user);\n\tevent WhitelistAuthorityStatusRemoved(address user);\n\tevent TransferFrom( address indexed spender, address indexed sender, address indexed recipient, uint256 amount );\n\tevent IssuerForceTransfer (address indexed from, address indexed to, uint256 amount);\n\n\tstring public constant version = \"1.3\";\n\tstring public constant IssuancePlatform = \"DigiShares\";\n\tstring public constant issuanceProtocol = \"ERC-1404\";\n\tstring public ShareCertificate;\n\tstring public CompanyHomepage;\n\tstring public CompanyLegalDocs;\n\n\t// These variables control how many investors can have non-zero token balance\n\t// if allowedInvestors = 0 then there is no limit of number of investors who can \n\t// hold non-zero balance\n\tuint8 private constant ANY_NUMBER_OF_TOKEN_HOLDERS_ALLOWED = 0; \n\tuint8 private immutable _decimals;\t\n\tuint64 public currentTotalInvestors = 0;\t\t\n\tuint64 public allowedInvestors;\n\n\t// Holding period in EpochTime, if set in future then it will stop \n\t// all transfers between investors\n\tuint64 public tradingHoldingPeriod = 1;\n\n\t// Transfer Restriction Codes and corresponding error message in _messageForTransferRestriction\n\tuint8 private constant NO_TRANSFER_RESTRICTION_FOUND = 0;\n\tuint8 private constant MAX_ALLOWED_INVESTORS_EXCEED = 1;\n\tuint8 private constant TRANSFERS_DISABLED = 2;\n\tuint8 private constant TRANSFER_VALUE_CANNOT_ZERO = 3;\n\tuint8 private constant SENDER_NOT_WHITELISTED_OR_BLOCKED = 4;\n\tuint8 private constant RECEIVER_NOT_WHITELISTED_OR_BLOCKED = 5;\n\tuint8 private constant SENDER_UNDER_HOLDING_PERIOD = 6;\n\tuint8 private constant RECEIVER_UNDER_HOLDING_PERIOD = 7;\n\tstring[] private _messageForTransferRestriction = [\n\t\t\"No transfer restrictions found\", \n\t\t\"Max allowed addresses with non-zero restriction is in place, this transfer will exceed this limitation\", \n\t\t\"All transfers are disabled because Holding Period is not yet expired\", \n\t\t\"Zero transfer amount not allowed\",\n\t\t\"Sender is not whitelisted or blocked\",\n\t\t\"Receiver is not whitelisted or blocked\",\n\t\t\"Sender is whitelisted but is not eligible to send tokens and under holding period (KYC time restriction)\",\n\t\t\"Receiver is whitelisted but is not yet eligible to receive tokens in his wallet (KYC time restriction)\"\n\t];\t\n\n\tconstructor(\n\t\tuint256 _initialSupply, \n\t\tstring memory _name,  \n\t\tstring memory _symbol, \n\t\tuint64 _allowedInvestors, \n\t\tuint8 _decimalsPlaces, \n\t\tstring memory _ShareCertificate, \n\t\tstring memory _CompanyHomepage, \n\t\tstring memory _CompanyLegalDocs, \n\t\taddress _atomicSwapContractAddress,\n\t\tuint64  _tradingHoldingPeriod\n\t) ERC20(_name, _symbol)  {\n\n\t\t\taddress tmpSenderAddress = msg.sender;\n\n\t\t\t_decimals = _decimalsPlaces;\n\t\t\ttradingHoldingPeriod = _tradingHoldingPeriod;\n\n\t\t\t// These variables set EPOCH time    1 = 1 January 1970\n\t\t\t_receiveRestriction[tmpSenderAddress] = 1;\n\t\t\t_sendRestriction[tmpSenderAddress] = 1;\n\t\t\t_receiveRestriction[_atomicSwapContractAddress] = 1;\n\t\t\t_sendRestriction[_atomicSwapContractAddress] = 1;\n\n\t\t\tallowedInvestors = _allowedInvestors;\n\n\t\t\t// add message sender to whitelist authority list\n\t\t\t_whitelistControlAuthority[tmpSenderAddress] = true;\n\n\t\t\tShareCertificate = _ShareCertificate;\n\t\t\tCompanyHomepage = _CompanyHomepage;\n\t\t\tCompanyLegalDocs = _CompanyLegalDocs;\n\n\t\t\t_mint(tmpSenderAddress , _initialSupply);\n\t\t\temit MintTokens(tmpSenderAddress, _initialSupply);\n\t}\n\n\t// ------------------------------------------------------------------------\n\t// Modifiers for this contract \n\t// ------------------------------------------------------------------------\n    modifier onlyWhitelistControlAuthority () {\n\n\t  \trequire(_whitelistControlAuthority[msg.sender] == true, \"Only authorized addresses can control whitelisting of holder addresses\");\n        _;\n\n    }\n\n    modifier notRestricted (\n\t\taddress from, \n\t\taddress to, \n\t\tuint256 value \n\t) {\n\n        uint8 restrictionCode = detectTransferRestriction(from, to, value);\n\t\tif( restrictionCode != NO_TRANSFER_RESTRICTION_FOUND ) {\n\n\t\t\tstring memory errorMessage = messageForTransferRestriction(restrictionCode);\n\t\t\temit TransferRestrictionDetected( from, to, errorMessage, restrictionCode );\n        \trevert(errorMessage);\n\n\t\t} else \n        \t_;\n\n    }\n\n\t// ERC20 interface\n    function decimals() public view override returns (uint8) {\n        return _decimals;\n    }\n\t\n\n    function mint (address account, uint256 amount)\t\t\n    external        \n\tOwnable.onlyOwner\n    returns (bool)\n    {\n\t\trequire ( account != address(0), \"Minting address cannot be zero\");\n\t\trequire ( _receiveRestriction[account] != 0, \"Address is not yet whitelisted by issuer\" );\n\t\trequire ( amount > 0, \"Zero amount cannot be minted\" );\n\t\t\n\t\t// This is special case while minting tokens. if issuer is trying to mint to a address while max token holder restriction\n\t\t// is in place and smart contract already has max tpken holders then this will revert this transaction as it will result in\n\t\t// currentTotalInvestors getting larger than allowedInvestors. The issuer account is exempted from this condition as\n\t\t// issuer account is not counted in currentTotalInvestors\n\t\tif( \n\t\t\t( account != Ownable.owner() ) &&       // issuer account is exempted from this condition\n\t\t\t( ERC20.balanceOf(account) == 0 ) &&    // account has zero balance so it will increase currentTotalInvestors\n\t\t\t( allowedInvestors != ANY_NUMBER_OF_TOKEN_HOLDERS_ALLOWED ) &&    // max number of token holder restriction is in place \n\t\t\t( currentTotalInvestors + 1 ) > allowedInvestors ) // make sure minting to account with 0 balance do not exceed allowedInvestors\n\t\t{\n\t\t\trevert (\"Minting not allowed to this address as allowed token holder restriction is in place and minting will increase the allowed limit\");\n\t\t}\n\n\t\t// minting will sure increase currentTotalInvestors if address balance is 0\n\t\tif( ERC20.balanceOf(account) == 0 && account != Ownable.owner() ) {\n\t\t\tcurrentTotalInvestors = currentTotalInvestors + 1;\n\t\t}\n\n\t\tERC20._mint(account, amount);\t\t \n\t\temit MintTokens(account, amount);\n\t\treturn true;\n    }\n\n    function burn (address account, uint256 amount)\n\texternal     \n\tOwnable.onlyOwner\n    returns (bool)\n    {\n\t\trequire( account != address(0), \"Burn address cannot be zero\");\n\t\trequire ( amount > 0, \"Zero amount cannot be burned\" );\t\t\n\n\t\tERC20._burn(account, amount);\n\n\t\t// burning will decrease currentTotalInvestors if address balance becomes 0\n\t\tif( ERC20.balanceOf(account) == 0 && account != Ownable.owner() ) {\n\t\t\tcurrentTotalInvestors = currentTotalInvestors - 1;\n\t\t}\n\n\t\t emit BurnTokens(account, amount);\t\t \n\t\t return true;\n    }\n\n\t// ------------------------------------------------------------------------\n\t// Token Links and Document information management \n\t// ------------------------------------------------------------------------\n    function resetShareCertificate(\n\t\tstring calldata _ShareCertificate\n\t) \n\texternal \n\tOwnable.onlyOwner {\n\n\t\t ShareCertificate = _ShareCertificate;\n\t\t emit ShareCertificateReset (_ShareCertificate);\n\n    }\n\n    function resetCompanyHomepage(\n\t\tstring calldata _CompanyHomepage\n\t) \n\texternal \n\tOwnable.onlyOwner {\n\n\t\t CompanyHomepage = _CompanyHomepage;\n\t\t emit CompanyHomepageReset (_CompanyHomepage);\n\n    }\n\t\n    function resetCompanyLegalDocs(\n\t\tstring calldata _CompanyLegalDocs\n\t) \n\texternal \n\tOwnable.onlyOwner {\n\n\t\tCompanyLegalDocs = _CompanyLegalDocs;\n\t\temit CompanyLegalDocsReset (_CompanyLegalDocs);\n\n    }\n\n\t// --------------------------------------------------------------------------------------\n\t// Manage number of addresses who can hold non-zero balance and holding period management\n\t// --------------------------------------------------------------------------------------\n\t// _allowedInvestors = 0    No limit on number of investors (or number of addresses with non-zero balance)         \n\t// _allowedInvestors > 0    only X number of addresses can have non zero balance \n    function resetAllowedInvestors(\n\t\tuint64 _allowedInvestors\n\t) \n\texternal \n\tOwnable.onlyOwner {\n\n\t\tif( _allowedInvestors != ANY_NUMBER_OF_TOKEN_HOLDERS_ALLOWED && _allowedInvestors < currentTotalInvestors ) {\n\t\t\trevert( \"Allowed Token holders cannot be less than current token holders with non-zero balance\");\n\t\t}\n\n\t\tallowedInvestors = _allowedInvestors;\n\t\temit AllowedInvestorsReset(_allowedInvestors);\n\t\t\n    }\n\n    function setTradingHoldingPeriod (\n\t\tuint64 _tradingHoldingPeriod\n\t) \n\texternal \n\tOwnable.onlyOwner {\n\n\t\t tradingHoldingPeriod = _tradingHoldingPeriod;\n\t\t emit HoldingPeriodReset(_tradingHoldingPeriod);\n\n    }\n\n\t//-----------------------------------------------------------------------\n    // Manage whitelist authority and KYC status\n\t//-----------------------------------------------------------------------\n\t\n\tfunction setWhitelistAuthorityStatus(\n\t\taddress user\n\t) \n\texternal \n\tOwnable.onlyOwner {\n\n\t\t_whitelistControlAuthority[user] = true;\n\t\temit WhitelistAuthorityStatusSet(user);\n\n\t}\n\n\tfunction removeWhitelistAuthorityStatus(\n\t\taddress user\n\t) \n\texternal \n\tOwnable.onlyOwner {\n\n\t\tdelete _whitelistControlAuthority[user];\n\t\temit WhitelistAuthorityStatusRemoved(user);\n\n\t}\t\n\n\tfunction getWhitelistAuthorityStatus(\n\t\taddress user\n\t) \n\texternal \n\tview\n\treturns (bool) {\n\n\t\t return _whitelistControlAuthority[user];\n\n\t}\t\n\t\n\n  \t// Set Receive and Send restrictions on addresses. Both values are EPOCH time\n\tfunction modifyKYCData (\n\t\taddress account, \n\t\tuint256 receiveRestriction, \n\t\tuint256 sendRestriction \n\t) \n\texternal \n\tonlyWhitelistControlAuthority { \n\t\tsetupKYCDataForUser( account, receiveRestriction, sendRestriction );\n\t}\n\n\tfunction bulkWhitelistWallets (\n\t\taddress[] calldata account, \n\t\tuint256 receiveRestriction, \n\t\tuint256 sendRestriction \n\t) \n\texternal \n\tonlyWhitelistControlAuthority { \n\n\t\tif(account.length > 50) {\n\t\t\trevert (\"Bulk whitelisting more than 50 addresses is not allowed\");\n\t\t}\n\n\t\tfor (uint i=0; i<account.length; i++) {\n\t\t\tsetupKYCDataForUser( account[i], receiveRestriction, sendRestriction );\t\t\t\n\t\t}\t\t\n\n\t}\n\n\tfunction setupKYCDataForUser (\n\t\taddress account, \n\t\tuint256 receiveRestriction, \n\t\tuint256 sendRestriction\n\t) internal {\t\n\n\t\t_receiveRestriction[account] = receiveRestriction;\n\t\t_sendRestriction[account] = sendRestriction;\t\t\n\t\temit KYCDataForUserSet (account, receiveRestriction, sendRestriction);\n\n\t}\n\n\tfunction getKYCData ( \n\t\taddress user \n\t) \n\texternal \n\tview\n\treturns ( uint256, uint256 ) {\n\n\t\treturn (_receiveRestriction[user] , _sendRestriction[user] );\n\n\t}\n\t//-----------------------------------------------------------------------\n\n\t//-----------------------------------------------------------------------\n\t// These are ERC1404 interface implementations \n\t//-----------------------------------------------------------------------\n\n    function detectTransferRestriction (address _from, address _to, uint256 value) \n\toverride\n\tpublic \n\tview \n\treturns ( uint8 status )  {\t\n\n\t      \t// check if holding period is in effect on overall transfers and sender is not owner. \n\t\t\t// only owner is allowed to transfer under holding period\n\t\t  \tif(block.timestamp < tradingHoldingPeriod && _from != Ownable.owner()) {\n\t\t\t \treturn TRANSFERS_DISABLED;   \n\t\t\t}\n\n\t\t  \tif( value < 1) {\n\t\t  \t  \treturn TRANSFER_VALUE_CANNOT_ZERO;   \n\t\t\t}\n\n\t\t  \tif( _sendRestriction[_from] == 0 ) {\n\t\t\t\treturn SENDER_NOT_WHITELISTED_OR_BLOCKED;   // Sender is not whitelisted or blocked\n\t\t\t}\n\n\t\t  \tif( _receiveRestriction[_to] == 0 ) {\n\t\t\t\treturn RECEIVER_NOT_WHITELISTED_OR_BLOCKED;\t// Receiver is not whitelisted or blocked\n\t\t\t}\n\n\t\t\tif( _sendRestriction[_from] > block.timestamp ) {\n\t\t\t\treturn SENDER_UNDER_HOLDING_PERIOD;\t// Receiver is whitelisted but is not eligible to send tokens and still under holding period (KYC time restriction)\n\t\t\t}\n\n\t\t\tif( _receiveRestriction[_to] > block.timestamp ) {\n\t\t\t\treturn RECEIVER_UNDER_HOLDING_PERIOD;\t// Receiver is whitelisted but is not yet eligible to receive tokens in his wallet (KYC time restriction)\n\t\t\t}\n\n\t\t\t// Following conditions make sure number of token holders will stay within limit if max token holder restriction is in place\n\t\t\t// allowedInvestors = 0 means no restriction on number of token holders and is the default setting\n\t\t\tif(allowedInvestors == ANY_NUMBER_OF_TOKEN_HOLDERS_ALLOWED) {\n\t\t\t\treturn NO_TRANSFER_RESTRICTION_FOUND;\n\t\t\t} else {\n\t\t\t\tif( ERC20.balanceOf(_to) > 0 || _to == Ownable.owner()) {\n\t\t\t\t\t// token can be transferred if the receiver already holding tokens and already counted in currentTotalInvestors\n\t\t\t\t\t// or receiver is issuer account. issuer/owner account do not count in currentTotalInvestors\n\t\t\t\t\treturn NO_TRANSFER_RESTRICTION_FOUND;\n\t\t\t\t} else {\n\t\t\t\t\t// if To address has zero balance then check this transfer do not exceed allowedInvestors as \n\t\t\t\t\t// this transfer will surely increase currentTotalInvestors\n\t\t\t\t\tif(  currentTotalInvestors < allowedInvestors  ) {\n\t\t\t\t\t\t// currentTotalInvestors is within limits of allowedInvestors\n\t\t\t\t\t\treturn NO_TRANSFER_RESTRICTION_FOUND;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// In this section currentTotalInvestors = allowedInvestors and no more transfers to new investors are allowed\n\t\t\t\t\t\t// except following conditions \n\t\t\t\t\t\t// 1. sender is sending his whole balance to another whitelisted investor regardless he has any balance or not\n\t\t\t\t\t\t// 2. sender must not be owner/issuer\n\t\t\t\t\t\t//    owner sending his whole balance to investor will exceed allowedInvestors restriction if currentTotalInvestors = allowedInvestors\n\t\t\t\t\t\tif( ERC20.balanceOf(_from) == value && _from != Ownable.owner()) {    \n\t\t\t\t\t\t\treturn NO_TRANSFER_RESTRICTION_FOUND;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn MAX_ALLOWED_INVESTORS_EXCEED;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n    }\n\n    function messageForTransferRestriction (uint8 restrictionCode)\n\toverride\n    public\t\n    view \n\treturns ( string memory message )\n    {\n\n\t\tif(restrictionCode <= (_messageForTransferRestriction.length - 1) ) {\n\t\t\tmessage = _messageForTransferRestriction[restrictionCode];\n\t\t} else {\n\t\t\tmessage = \"Error code is not defined\";\n\t\t}\n\n    }\n\t//-----------------------------------------------------------------------\n\n\t//-----------------------------------------------------------------------\n\t// Transfers\n\t//-----------------------------------------------------------------------\n\n    function transfer(\n        address recipient,\n        uint256 amount\n    ) \t\n\toverride\n\tpublic \n\tnotRestricted (msg.sender, recipient, amount)\n\treturns (bool) {\n\n\t\ttransferSharesBetweenInvestors ( msg.sender, recipient, amount, true );\n\t\treturn true;\n\n    }\n\n    function transferFrom (\n        address sender,\n        address recipient,\n        uint256 amount\n    ) \n\tpublic\n\toverride\n\tnotRestricted (sender, recipient, amount)\n\treturns (bool)\t{\t\n\n\t\ttransferSharesBetweenInvestors ( sender, recipient, amount, false );\n\t\temit TransferFrom( msg.sender, sender, recipient, amount );\n\t\treturn true;\n\n    }\n\n\t// Force transfer of token back to issuer\n\tfunction forceTransferToken (\n        address from,\n        uint256 amount\n\t) \n\tOwnable.onlyOwner\n\texternal \n\treturns (bool)  {\n\t\t\n\t\ttransferSharesBetweenInvestors ( from, Ownable.owner(), amount, true );\n\t\temit IssuerForceTransfer (from, Ownable.owner(), amount);\n\t\treturn true;\n\n\t}\n\n\t// Transfer tokens from one account to other\n\t// Also manage current number of token holders\n\tfunction transferSharesBetweenInvestors (\n        address sender,\n        address recipient,\n        uint256 amount,\n\t\tbool simpleTransfer\t   // true = transfer,   false = transferFrom\n\t) \n\tinternal {\n\n\t\t// Transfer will surely increase currentTotalInvestors if recipient current balance is 0\n\t\tif( ERC20.balanceOf(recipient) == 0 && recipient != Ownable.owner() ) {\n\t\t\tcurrentTotalInvestors = currentTotalInvestors + 1;\n\t\t}\n\n\t\tif( simpleTransfer == true ) {\n\t\t\tERC20._transfer(sender, recipient, amount);\n\t\t} else {\n\t\t\tERC20.transferFrom(sender, recipient, amount);\n\t\t}\n\n\t\tif( ERC20.balanceOf(sender) == 0 && sender != Ownable.owner() ) {\n\t\t\tcurrentTotalInvestors = currentTotalInvestors - 1;\t\t\n\t\t}\n\n\t}\n\n}\n\n/*\n\n\tVersion 1.1\n\n\t1. Forceful take over of token   ( forceTransferToken )\n\n\t2. Bulk whitelisting  ( bulkWhitelistWallets )\n\n\tVersion 1.2\n\n\t1. Dedicated transfer restriction codes defined in detectTransferRestriction and their descriptions in messageForTransferRestriction\n\n\t2. Events for multiple activities being performed  \n\n\t3. tradingHoldingPeriod - Holding period has been implemented. Admin can setup a future date and all investor transfers will be disabled \n\ttill that date. Previous it was a boolean variable with true and false\n\n\tVersion 1.3\n\n\t1. Integration with openzeppelin library\n\t\n\t2. detectTransferRestriction  restructure\n\n*/\n","creation_status":"success","file_path":"src/ERC1404TokenMinKYCv13.flattened.sol"}