[ { "inputs": [ { "internalType": "address", "name": "_SY", "type": "address" }, { "internalType": "string", "name": "_name", "type": "string" }, { "internalType": "string", "name": "_symbol", "type": "string" }, { "internalType": "uint8", "name": "__decimals", "type": "uint8" }, { "internalType": "uint256", "name": "_expiry", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "InvalidShortString", "type": "error" }, { "inputs": [], "name": "OnlyYCFactory", "type": "error" }, { "inputs": [], "name": "OnlyYT", "type": "error" }, { "inputs": [ { "internalType": "string", "name": "str", "type": "string" } ], "name": "StringTooLong", "type": "error" }, { "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": [], "name": "EIP712DomainChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [], "name": "DOMAIN_SEPARATOR", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SY", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "YT", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "burnByYT", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "eip712Domain", "outputs": [ { "internalType": "bytes1", "name": "fields", "type": "bytes1" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "version", "type": "string" }, { "internalType": "uint256", "name": "chainId", "type": "uint256" }, { "internalType": "address", "name": "verifyingContract", "type": "address" }, { "internalType": "bytes32", "name": "salt", "type": "bytes32" }, { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "expiry", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "factory", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_YT", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "isExpired", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "mintByYT", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "nonces", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "permit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "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": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ]
6101e0604090808252346200048e5762001e83803803809162000023828562000492565b833981019060a0818303126200048e578051926001600160a01b03841684036200048e5760208281015190946001600160401b039490918581116200048e578162000070918601620004d9565b9083850151908682116200048e576200008b918601620004d9565b9260608501519460ff861686036200048e57608001519481519782890189811089821117620003a2578352600191828a52818a0192603160f81b845285518a8111620003a25760038054918383811c9316801562000483575b868410146200046f57601f9283811162000427575b508086848211600114620003c2575f91620003b6575b505f1982841b1c191690841b1781555b8951918c8311620003a25760049a8b548581811c9116801562000397575b8882101462000384578281116200033c575b5086918411600114620002d5579383949184925f95620002c9575b50501b925f19911b1c19161787555b608052600280546001600160f81b0316600160f81b1790556200019c8462000534565b92610140938452620001ae8a620006cf565b94610160958652828151910120926101009a848c5251902096610120978089524660c0528251938401947f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f86528385015260608401524660808401523060a084015260a0835260c0830199838b10908b1117620002b6575088905251902060a0523060e0526101809283526101c09485526101a09333855261166597886200081e893960805188610a0d015260a051886111e1015260c051886112ad015260e051886111ab0152518761123001525186611256015251856108310152518461085b0152518361069901525182818161038e01526104da01525181818161011d0152610a490152f35b604190634e487b7160e01b5f525260245ffd5b015193505f806200016a565b9190601f198416928c5f5284885f20945f5b8a898383106200032457505050106200030a575b50505050811b01875562000179565b01519060f8845f19921b161c191690555f808080620002fb565b868601518955909701969485019488935001620002e7565b8c5f52875f208380870160051c8201928a88106200037a575b0160051c019086905b8281106200036e5750506200014f565b5f81550186906200035e565b9250819262000355565b60228d634e487b7160e01b5f525260245ffd5b90607f16906200013d565b634e487b7160e01b5f52604160045260245ffd5b90508901515f6200010f565b5f8481528881208794509190601f198416908a8e5b8383106200040f575050508311620003f7575b5050811b0181556200011f565b8b01515f1983861b60f8161c191690555f80620003ea565b840151855589969094019392830192018a8e620003d7565b825f52865f208480840160051c82019289851062000465575b0160051c019085905b82811062000459575050620000f9565b5f815501859062000449565b9250819262000440565b634e487b7160e01b5f52602260045260245ffd5b92607f1692620000e4565b5f80fd5b601f909101601f19168101906001600160401b03821190821017620003a257604052565b5f5b838110620004c85750505f910152565b8181015183820152602001620004b8565b81601f820112156200048e5780516001600160401b038111620003a2576040519262000510601f8301601f19166020018562000492565b818452602082840101116200048e57620005319160208085019101620004b6565b90565b80516020919082811015620005b3575090601f8251116200057157808251920151908083106200056357501790565b825f19910360031b1b161790565b604490620005a59260405193849263305a27a960e01b845280600485015282519283918260248701528686019101620004b6565b601f01601f19168101030190fd5b6001600160401b038111620003a2576005928354926001938481811c91168015620006c4575b838210146200046f57601f811162000690575b5081601f84116001146200062a57509282939183925f946200061e575b50501b915f199060031b1c191617905560ff90565b015192505f8062000609565b919083601f198116875f52845f20945f905b888383106200067557505050106200065c575b505050811b01905560ff90565b01515f1960f88460031b161c191690555f80806200064f565b8587015188559096019594850194879350908101906200063c565b855f5284601f845f209201871c820191601f8601881c015b828110620006b8575050620005ec565b5f8155018590620006a8565b90607f1690620005d9565b805160209081811015620006fc5750601f8251116200057157808251920151908083106200056357501790565b906001600160401b038211620003a257600654926001938481811c9116801562000812575b838210146200046f57601f8111620007db575b5081601f84116001146200077357509282939183925f9462000767575b50501b915f199060031b1c19161760065560ff90565b015192505f8062000751565b919083601f19811660065f52845f20945f905b88838310620007c05750505010620007a7575b505050811b0160065560ff90565b01515f1960f88460031b161c191690555f808062000799565b85870151885590960195948501948793509081019062000786565b60065f5284601f845f20920160051c820191601f860160051c015b8281106200080657505062000734565b5f8155018590620007f6565b90607f16906200072156fe6080604090808252600480361015610015575f80fd5b5f3560e01c91826306fdde0314610cba57508163095ea7b314610c8a57816312a31dcc14610b8657816318160ddd14610b5e57816323b872dd14610a6e5781632f13b60c14610a31578163313ce567146109f45781633644e515146109d157816370a082311461099b578163781c18db1461096f5781637ecebe001461093857816384b0196e1461081a57816395d89b411461072e578163a9059cbb146106c8578163afd27bf514610685578163b64761f914610509578163c45a0155146104c6578163c4d66de81461033f578163d505accf1461018d57508063dd62ed3e146101445763e184c9be14610107575f80fd5b34610140575f36600319011261014057602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b5f80fd5b5034610140578060031936011261014057602090610160610dc7565b610168610ddd565b9060018060a01b038091165f5260018452825f2091165f528252805f20549051908152f35b9050346101405760e0366003190112610140576101a8610dc7565b6101b0610ddd565b906044359260643560843560ff81168103610140578142116102fc5760018060a01b039081851692835f526007602052885f209081549160018301905589519060208201927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98452868c840152858a1660608401528a608084015260a083015260c082015260c0815260e0810181811067ffffffffffffffff8211176102e9578a525190206102939161028b916102656111a8565b908b519161190160f01b83526002830152602282015260c43591604260a4359220611491565b919091611517565b16036102a657506102a49350610ec9565b005b606490602086519162461bcd60e51b8352820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152fd5b604187634e487b7160e01b5f525260245ffd5b865162461bcd60e51b8152602081850152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606490fd5b823461014057602036600319011261014057610359610dc7565b90600880549360ff85831c1615948580966104b9575b80156104a2575b156104485760ff198116600117835585610437575b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036104295750805462010000600160b01b0319811660109490941b62010000600160b01b0316938417825592936103ea57005b610100600160b01b0319909216909217905551600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1005b825163fe10817360e01b8152fd5b61ffff19166101011782558561038b565b835162461bcd60e51b8152602081840152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b1580156103765750600160ff821614610376565b50600160ff82161061036f565b8234610140575f36600319011261014057517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b905034610140578160031936011261014057610523610dc7565b60085460243593916001600160a01b039160101c82163303610676571691821561062a57825f525f602052815f20548481106105dc578490845f525f60205203825f205560018060f81b03808511610140576002549181861682841603908282116105c957506001600160f81b0319909216911617600255519182525f917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602090a3005b601190634e487b7160e01b5f525260245ffd5b506020608492519162461bcd60e51b8352820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152fd5b6020608492519162461bcd60e51b8352820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152fd5b505051631622975360e31b8152fd5b8234610140575f36600319011261014057517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b82346101405780600319360112610140576020906106e4610dc7565b610719600254916106fb60028460f81c1415610e7d565b6001600160f81b03928316600160f91b176002556024359033610fe8565b600160f81b9060025416176002555160018152f35b905034610140575f36600319011261014057815191825f835461075081610df3565b90818452602095600191876001821691825f146107f3575050600114610797575b5050506107939291610784910385610e5b565b51928284938452830190610d89565b0390f35b5f90815286935091907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8284106107db5750505082010181610784610793610771565b8054848a0186015288955087949093019281016107c2565b60ff19168782015293151560051b8601909301935084925061078491506107939050610771565b905034610140575f366003190112610140576108557f00000000000000000000000000000000000000000000000000000000000000006112d3565b9161087f7f00000000000000000000000000000000000000000000000000000000000000006113d4565b815191602091602084019484861067ffffffffffffffff87111761092557506108da82602092876108cd99989795525f85528151988998600f60f81b8a5260e0868b015260e08a0190610d89565b9188830390890152610d89565b914660608701523060808701525f60a087015285830360c087015251918281520192915f5b82811061090e57505050500390f35b8351855286955093810193928101926001016108ff565b604190634e487b7160e01b5f525260245ffd5b8234610140576020366003190112610140576020906001600160a01b0361095d610dc7565b165f5260078252805f20549051908152f35b8234610140575f36600319011261014057600854905160109190911c6001600160a01b03168152602090f35b8234610140576020366003190112610140576020906001600160a01b036109c0610dc7565b165f525f8252805f20549051908152f35b8234610140575f366003190112610140576020906109ed6111a8565b9051908152f35b8234610140575f366003190112610140576020905160ff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b8234610140575f3660031901126101405760209051427f000000000000000000000000000000000000000000000000000000000000000011158152f35b823461014057606036600319011261014057610a88610dc7565b610a90610ddd565b6044359060025492610aa860028560f81c1415610e7d565b6001600160f81b03938416600160f91b176002556001600160a01b0381165f9081526001602081815287832033845290529086902054908101610af5575b60208686610719878787610fe8565b838110610b1b576020965090610b1384610719959493033383610ec9565b909192610ae6565b855162461bcd60e51b8152602081890152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b8234610140575f3660031901126101405760025490516001600160f81b039091168152602090f35b8234610140578060031936011261014057610b9f610dc7565b60085460243592916001600160a01b039160101c82163303610c7a5716928315610c38576001600160f81b03808411610140576002549181851682841601908282116105c95750926020925f95927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef95169060ff60f81b1617600255858552848352808520610c2f838254610fc7565b905551908152a3005b6020606492519162461bcd60e51b8352820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b8251631622975360e31b81528590fd5b8234610140578060031936011261014057602090610cb3610ca9610dc7565b6024359033610ec9565b5160018152f35b8334610140575f3660031901126101405760035490825f610cda84610df3565b808352602094600190866001821691825f14610d67575050600114610d0c575b50506107939291610784910385610e5b565b9085925060035f527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b915f925b828410610d4f5750505082010181610784610cfa565b8054848a018601528895508794909301928101610d39565b60ff19168682015292151560051b850190920192508391506107849050610cfa565b91908251928382525f5b848110610db3575050825f602080949584010152601f8019910116010190565b602081830181015184830182015201610d93565b600435906001600160a01b038216820361014057565b602435906001600160a01b038216820361014057565b90600182811c92168015610e21575b6020831014610e0d57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610e02565b6040810190811067ffffffffffffffff821117610e4757604052565b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff821117610e4757604052565b15610e8457565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b6001600160a01b03908116918215610f765716918215610f265760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591835f526001825260405f20855f5282528060405f2055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b91908201809211610fd457565b634e487b7160e01b5f52601160045260245ffd5b6001600160a01b039081169182156111555716918215611104578282146110bf57815f525f60205260405f205481811061106b57817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92602092855f525f84520360405f2055845f5260405f20611060828254610fc7565b9055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152601760248201527f45524332303a207472616e7366657220746f2073656c660000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614806112aa575b15611203577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff821117610e475760405251902090565b507f000000000000000000000000000000000000000000000000000000000000000046146111da565b60ff81146113115760ff811690601f82116112ff57604051916112f583610e2b565b8252602082015290565b604051632cd44ac360e21b8152600490fd5b50604051600554815f61132383610df3565b808352926020906001908181169081156113b05750600114611351575b505061134e92500382610e5b565b90565b91509260055f527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0935f925b828410611398575061134e9450505081016020015f80611340565b8554878501830152948501948694509281019261137d565b9150506020925061134e94915060ff191682840152151560051b8201015f80611340565b60ff81146113f65760ff811690601f82116112ff57604051916112f583610e2b565b50604051600654815f61140883610df3565b808352926020906001908181169081156113b0575060011461143257505061134e92500382610e5b565b91509260065f527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f935f925b828410611479575061134e9450505081016020015f80611340565b8554878501830152948501948694509281019261145e565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841161150c576020935f9360ff60809460405194855216868401526040830152606082015282805260015afa15611501575f516001600160a01b038116156114f957905f90565b505f90600190565b6040513d5f823e3d90fd5b505050505f90600390565b600581101561161b57806115285750565b600181036115755760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606490fd5b600281036115c25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606490fd5b6003146115cb57565b60405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608490fd5b634e487b7160e01b5f52602160045260245ffdfea26469706673582212200d51e535bf6478c7f5aff1d65cf69f512ad47971999c485828a925178ac2894364736f6c63430008160033000000000000000000000000f904fa59d1eacec21d758ccd2fe43261a1dd547000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000066c13980000000000000000000000000000000000000000000000000000000000000001950542053706c6963652077555344422031384155473230323400000000000000000000000000000000000000000000000000000000000000000000000000001250542d77555344422d3138415547323032340000000000000000000000000000