{"matchId":"47533024","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-09-08T16:11:19Z","creationBytecode":{"onchainBytecode":"0x60c03461015f57601f6112db38819003918201601f19168301916001600160401b038311848410176101635780849260609460405283398101031261015f5780516001600160a01b038116919082900361015f5760208101516001600160a01b0381169182820361015f5760400151916001600160a01b0383169081840361015f57841561014c57600180546001600160a01b03199081169091555f80549182168717815560405196916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a360017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005515908115610143575b506101345760805260a05261116390816101788239608051816103cf015260a05181818161021301526107aa0152f35b63d92e233d60e01b5f5260045ffd5b9050155f610104565b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c908163032bbf4f146106235750806319165587146105df578063384711cc1461058f5780634cfc4d30146105715780635ad7fc171461053a5780635bb478081461049d578063715018a61461047e57806379ba5097146103fe57806382589038146103ba578063892823f7146103445780638da5cb5b1461031d578063a3f8eace146102cd578063b224cf641461026a578063c45a015514610242578063c4b7de97146101fe578063d79779b2146101c3578063d8fb93371461018b578063e30c3978146101635763f2fde38b146100ed575f80fd5b3461015f57602036600319011261015f5761010661065a565b61010e610e1b565b60018060a01b0316806bffffffffffffffffffffffff60a01b600154161760015560018060a01b035f54167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227005f80a3005b5f80fd5b3461015f575f36600319011261015f576001546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b036101ac61065a565b165f526003602052602060405f2054604051908152f35b3461015f57602036600319011261015f576001600160a01b036101e461065a565b165f5260036020526020600160405f200154604051908152f35b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f576002546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b0361028b61065a565b165f526003602052606060405f2061ffff600860018060a01b0360078401541692015460405192835260018060a01b038116602084015260a01c166040820152f35b3461015f57602036600319011261015f576001600160a01b036102ee61065a565b165f526003602052602061031560405f2061030f60038201549142906110b4565b90610670565b604051908152f35b3461015f575f36600319011261015f575f546040516001600160a01b039091168152602090f35b3461015f5760a036600319011261015f5761035d61065a565b6044356001600160a01b038116810361015f576064356001600160a01b038116810361015f576084359161ffff8316830361015f576103a79361039e610da6565b60243590610adc565b60015f51602061110e5f395f51905f5255005b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f57600154336001600160a01b0382160361046b576001600160a01b03199081166001555f805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b63118cdaa760e01b5f523360045260245ffd5b3461015f575f36600319011261015f576317d5c96560e11b5f5260045ffd5b3461015f57602036600319011261015f576104b661065a565b6104be610e1b565b600254906001600160a01b03821661052c576001600160a01b031690811561051d576001600160a01b03191681176002556040519081527f1edf3afd4ac789736e00d216cd88be164ddcef26a6eedcc30cdb0cb62f3741b190602090a1005b63d92e233d60e01b5f5260045ffd5b62dc149f60e41b5f5260045ffd5b3461015f57604036600319011261015f5761055361065a565b6024356001600160a01b038116810361015f5761056f91610a3d565b005b3461015f575f36600319011261015f57602060405163096601808152f35b3461015f57602036600319011261015f576001600160a01b036105b061065a565b165f526003602052602061031560405f2061030f6105d76001830154600384015490610670565b9142906110b4565b3461015f57602036600319011261015f57602061060a6105fd61065a565b610605610da6565b610705565b60015f51602061110e5f395f51905f5255604051908152f35b3461015f57602036600319011261015f576020906001600160a01b0361064761065a565b165f5260038252600260405f2001548152f35b600435906001600160a01b038216820361015f57565b9190820180921161067d57565b634e487b7160e01b5f52601160045260245ffd5b8181029291811591840414171561067d57565b81156106ae570490565b634e487b7160e01b5f52601260045260245ffd5b9190820391821161067d57565b90601f8019910116810190811067ffffffffffffffff8211176106f157604052565b634e487b7160e01b5f52604160045260245ffd5b6002549091905f906001600160a01b031615610a2e576001600160a01b038381165f81815260036020526040902060078101805491969294909390911633141580610a17575b610a08576107594287610dde565b600386019586549687156109fd57905f600892556001810161077c898254610670565b90550161271061079461ffff835460a01c1689610691565b04926107a084896106c2565b9460018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169260405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109ee575b60405215610938575b856108c7575b5085610844575b505050507f82e416ba72d10e709b5de7ac16f5f49ff1d94f22d55bf582d353d3c313a1e8dd9160409182519182526020820152a2565b546001600160a01b0316823b156108c3576040516309ad4dd960e01b81526001600160a01b03918216600482015291166024820152604481018590529082908290606490829084905af180156108b8576108a0575b808061080e565b6108ab8280926106cf565b6108b55780610899565b80fd5b6040513d84823e3d90fd5b8380fd5b546001600160a01b0316833b1561015f576040516309ad4dd960e01b81526001600160a01b0391821660048201529083166024820152604481018690525f8160648183885af1801561092d5715610807576109259194505f906106cf565b5f925f610807565b6040513d5f823e3d90fd5b60405163095ea7b360e01b5f52846004525f60245260205f604481808d5af19060015f51148216156109d6575b604052156109a25760405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109b5575b604052610801575b87635274afe760e01b5f5260045260245ffd5b9060018115166109cd57893b15153d1516169061099a565b503d5f823e3d90fd5b9060018115166109cd57893b15153d15161690610965565b90893b15153d151616906107f8565b505f96505050505050565b630da3333b60e01b5f5260045ffd5b5060088601546001600160a01b031633141561074b565b631966391b60e11b5f5260045ffd5b6002546001600160a01b03163303610a2e576001600160a01b03169081158015610acb575b61051d575f82815260036020526040902060070180546001600160a01b039283169392169190838314610ac55780546001600160a01b031916841790557f38f9c71383b6e3fe639172c6b3a3d4418fa722b4abf99bfd8e31f92bd5ea23f05f80a4565b50505050565b506001600160a01b03811615610a62565b92936001600160a01b038416939291841561051d576002546001600160a01b031615610a2e57610b0c3385610e4f565b15610d97578015610cc8576001600160a01b038316158015610d86575b8015610d77575b610d68576040516370a0823160e01b8152306004820152602081602481895afa90811561092d575f91610d36575b50604051916323b872dd60e01b5f52336004523060245260445260205f606481808a5af160015f5114811615610d17575b826040525f60605215610d04576370a0823160e01b8252306004830152602082602481895afa801561092d575f90610cd0575b610bcc92506106c2565b948515610cc857610bf492855f52600360205260405f2094610bee4287610dde565b85610fa3565b600481018054610c14610c078683610670565b9180610cb4575f90610691565b6309660180860286810463096601800361067d57610c368391610c3b93610670565b6106a4565b9155426005830155610c4d8142610670565b60068301556309660180036309660180811161067d57610c6d90426106c2565b90816002820155610c7f848254610670565b905560405192835260208301527f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c542960403393a3565b610cc24260068701546106c2565b90610691565b505050505050565b506020823d602011610cfc575b81610cea602093836106cf565b8101031261015f57610bcc9151610bc2565b3d9150610cdd565b85635274afe760e01b5f5260045260245ffd5b6001811516610d2d57863b15153d151616610b8f565b823d5f823e3d90fd5b90506020813d602011610d60575b81610d51602093836106cf565b8101031261015f57515f610b5e565b3d9150610d44565b63a7d7d0c560e01b5f5260045ffd5b5061271061ffff831611610b30565b506001600160a01b03861615610b29565b63ba13c3d960e01b5f5260045ffd5b60025f51602061110e5f395f51905f525414610dcf5760025f51602061110e5f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b600590610deb83826110b4565b80610df557500155565b60048201610e048282546106c2565b9055610e1560038301918254610670565b90550155565b5f546001600160a01b0316330361046b57565b51906001600160a01b038216820361015f57565b5190811515820361015f57565b6002546001600160a01b0316908115610f9c57604051631e7945ad60e11b81526001600160a01b0390911660048201529061012090829060249082905afa90811561092d575f91610eb1575b50602001516001600160a01b0391821691161490565b9050610120813d8211610f94575b81610ecd61012093836106cf565b8101031261015f5760405190610120820182811067ffffffffffffffff8211176106f157604052610efd81610e2e565b8252610f0b60208201610e2e565b6020830152610f1c60408201610e2e565b6040830152610f2d60608201610e2e565b6060830152610f3e60808201610e2e565b608083015260a081015161ffff8116810361015f57610f88916101009160a0850152610f6c60c08201610e42565b60c0850152610f7d60e08201610e42565b60e085015201610e42565b6101008201525f610e9b565b3d9150610ebf565b5050505f90565b91600483015415806110a8575b611001575050600801546001600160a01b0380821692169190911480159290610feb575b5050610fdc57565b638a621fd960e01b5f5260045ffd5b61ffff91925081169160a01c1614155f80610fd4565b6007830180549295937fa92f5227e67257769e49f294586ea055f8d5714595dfdcc2d8a0cac8a3e50fbe93602093600892916001600160a01b031615611087575b500180546001600160b01b0319166001600160a01b0396871690811760a087901b61ffff60a01b1617909155905460405161ffff9590951685529095908516941692a4565b83546001600160a01b0319166001600160a01b03919091161783555f611042565b50600383015415610fb0565b90600482015491821580156110ff575b610f9c57600681015490818310156110f95792610cc2610c36926110f060056110f697015480926106c2565b946106c2565b90565b50505090565b5060058101548211156110c456fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220f824fefce66b4cf1569e7d371fa6370cdccc1c2f8a88bdedc443c0ce47e0831a64736f6c63430008230033000000000000000000000000b60ea6a621613ff22263ba160e0e8accaca704b0000000000000000000000000b60ea6a621613ff22263ba160e0e8accaca704b0000000000000000000000000899ecd0bb962d674da4f4b1916200b70a7d37d1c","recompiledBytecode":"0x60c03461015f57601f6112db38819003918201601f19168301916001600160401b038311848410176101635780849260609460405283398101031261015f5780516001600160a01b038116919082900361015f5760208101516001600160a01b0381169182820361015f5760400151916001600160a01b0383169081840361015f57841561014c57600180546001600160a01b03199081169091555f80549182168717815560405196916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a360017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005515908115610143575b506101345760805260a05261116390816101788239608051816103cf015260a05181818161021301526107aa0152f35b63d92e233d60e01b5f5260045ffd5b9050155f610104565b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c908163032bbf4f146106235750806319165587146105df578063384711cc1461058f5780634cfc4d30146105715780635ad7fc171461053a5780635bb478081461049d578063715018a61461047e57806379ba5097146103fe57806382589038146103ba578063892823f7146103445780638da5cb5b1461031d578063a3f8eace146102cd578063b224cf641461026a578063c45a015514610242578063c4b7de97146101fe578063d79779b2146101c3578063d8fb93371461018b578063e30c3978146101635763f2fde38b146100ed575f80fd5b3461015f57602036600319011261015f5761010661065a565b61010e610e1b565b60018060a01b0316806bffffffffffffffffffffffff60a01b600154161760015560018060a01b035f54167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227005f80a3005b5f80fd5b3461015f575f36600319011261015f576001546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b036101ac61065a565b165f526003602052602060405f2054604051908152f35b3461015f57602036600319011261015f576001600160a01b036101e461065a565b165f5260036020526020600160405f200154604051908152f35b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f576002546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b0361028b61065a565b165f526003602052606060405f2061ffff600860018060a01b0360078401541692015460405192835260018060a01b038116602084015260a01c166040820152f35b3461015f57602036600319011261015f576001600160a01b036102ee61065a565b165f526003602052602061031560405f2061030f60038201549142906110b4565b90610670565b604051908152f35b3461015f575f36600319011261015f575f546040516001600160a01b039091168152602090f35b3461015f5760a036600319011261015f5761035d61065a565b6044356001600160a01b038116810361015f576064356001600160a01b038116810361015f576084359161ffff8316830361015f576103a79361039e610da6565b60243590610adc565b60015f51602061110e5f395f51905f5255005b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f57600154336001600160a01b0382160361046b576001600160a01b03199081166001555f805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b63118cdaa760e01b5f523360045260245ffd5b3461015f575f36600319011261015f576317d5c96560e11b5f5260045ffd5b3461015f57602036600319011261015f576104b661065a565b6104be610e1b565b600254906001600160a01b03821661052c576001600160a01b031690811561051d576001600160a01b03191681176002556040519081527f1edf3afd4ac789736e00d216cd88be164ddcef26a6eedcc30cdb0cb62f3741b190602090a1005b63d92e233d60e01b5f5260045ffd5b62dc149f60e41b5f5260045ffd5b3461015f57604036600319011261015f5761055361065a565b6024356001600160a01b038116810361015f5761056f91610a3d565b005b3461015f575f36600319011261015f57602060405163096601808152f35b3461015f57602036600319011261015f576001600160a01b036105b061065a565b165f526003602052602061031560405f2061030f6105d76001830154600384015490610670565b9142906110b4565b3461015f57602036600319011261015f57602061060a6105fd61065a565b610605610da6565b610705565b60015f51602061110e5f395f51905f5255604051908152f35b3461015f57602036600319011261015f576020906001600160a01b0361064761065a565b165f5260038252600260405f2001548152f35b600435906001600160a01b038216820361015f57565b9190820180921161067d57565b634e487b7160e01b5f52601160045260245ffd5b8181029291811591840414171561067d57565b81156106ae570490565b634e487b7160e01b5f52601260045260245ffd5b9190820391821161067d57565b90601f8019910116810190811067ffffffffffffffff8211176106f157604052565b634e487b7160e01b5f52604160045260245ffd5b6002549091905f906001600160a01b031615610a2e576001600160a01b038381165f81815260036020526040902060078101805491969294909390911633141580610a17575b610a08576107594287610dde565b600386019586549687156109fd57905f600892556001810161077c898254610670565b90550161271061079461ffff835460a01c1689610691565b04926107a084896106c2565b9460018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169260405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109ee575b60405215610938575b856108c7575b5085610844575b505050507f82e416ba72d10e709b5de7ac16f5f49ff1d94f22d55bf582d353d3c313a1e8dd9160409182519182526020820152a2565b546001600160a01b0316823b156108c3576040516309ad4dd960e01b81526001600160a01b03918216600482015291166024820152604481018590529082908290606490829084905af180156108b8576108a0575b808061080e565b6108ab8280926106cf565b6108b55780610899565b80fd5b6040513d84823e3d90fd5b8380fd5b546001600160a01b0316833b1561015f576040516309ad4dd960e01b81526001600160a01b0391821660048201529083166024820152604481018690525f8160648183885af1801561092d5715610807576109259194505f906106cf565b5f925f610807565b6040513d5f823e3d90fd5b60405163095ea7b360e01b5f52846004525f60245260205f604481808d5af19060015f51148216156109d6575b604052156109a25760405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109b5575b604052610801575b87635274afe760e01b5f5260045260245ffd5b9060018115166109cd57893b15153d1516169061099a565b503d5f823e3d90fd5b9060018115166109cd57893b15153d15161690610965565b90893b15153d151616906107f8565b505f96505050505050565b630da3333b60e01b5f5260045ffd5b5060088601546001600160a01b031633141561074b565b631966391b60e11b5f5260045ffd5b6002546001600160a01b03163303610a2e576001600160a01b03169081158015610acb575b61051d575f82815260036020526040902060070180546001600160a01b039283169392169190838314610ac55780546001600160a01b031916841790557f38f9c71383b6e3fe639172c6b3a3d4418fa722b4abf99bfd8e31f92bd5ea23f05f80a4565b50505050565b506001600160a01b03811615610a62565b92936001600160a01b038416939291841561051d576002546001600160a01b031615610a2e57610b0c3385610e4f565b15610d97578015610cc8576001600160a01b038316158015610d86575b8015610d77575b610d68576040516370a0823160e01b8152306004820152602081602481895afa90811561092d575f91610d36575b50604051916323b872dd60e01b5f52336004523060245260445260205f606481808a5af160015f5114811615610d17575b826040525f60605215610d04576370a0823160e01b8252306004830152602082602481895afa801561092d575f90610cd0575b610bcc92506106c2565b948515610cc857610bf492855f52600360205260405f2094610bee4287610dde565b85610fa3565b600481018054610c14610c078683610670565b9180610cb4575f90610691565b6309660180860286810463096601800361067d57610c368391610c3b93610670565b6106a4565b9155426005830155610c4d8142610670565b60068301556309660180036309660180811161067d57610c6d90426106c2565b90816002820155610c7f848254610670565b905560405192835260208301527f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c542960403393a3565b610cc24260068701546106c2565b90610691565b505050505050565b506020823d602011610cfc575b81610cea602093836106cf565b8101031261015f57610bcc9151610bc2565b3d9150610cdd565b85635274afe760e01b5f5260045260245ffd5b6001811516610d2d57863b15153d151616610b8f565b823d5f823e3d90fd5b90506020813d602011610d60575b81610d51602093836106cf565b8101031261015f57515f610b5e565b3d9150610d44565b63a7d7d0c560e01b5f5260045ffd5b5061271061ffff831611610b30565b506001600160a01b03861615610b29565b63ba13c3d960e01b5f5260045ffd5b60025f51602061110e5f395f51905f525414610dcf5760025f51602061110e5f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b600590610deb83826110b4565b80610df557500155565b60048201610e048282546106c2565b9055610e1560038301918254610670565b90550155565b5f546001600160a01b0316330361046b57565b51906001600160a01b038216820361015f57565b5190811515820361015f57565b6002546001600160a01b0316908115610f9c57604051631e7945ad60e11b81526001600160a01b0390911660048201529061012090829060249082905afa90811561092d575f91610eb1575b50602001516001600160a01b0391821691161490565b9050610120813d8211610f94575b81610ecd61012093836106cf565b8101031261015f5760405190610120820182811067ffffffffffffffff8211176106f157604052610efd81610e2e565b8252610f0b60208201610e2e565b6020830152610f1c60408201610e2e565b6040830152610f2d60608201610e2e565b6060830152610f3e60808201610e2e565b608083015260a081015161ffff8116810361015f57610f88916101009160a0850152610f6c60c08201610e42565b60c0850152610f7d60e08201610e42565b60e085015201610e42565b6101008201525f610e9b565b3d9150610ebf565b5050505f90565b91600483015415806110a8575b611001575050600801546001600160a01b0380821692169190911480159290610feb575b5050610fdc57565b638a621fd960e01b5f5260045ffd5b61ffff91925081169160a01c1614155f80610fd4565b6007830180549295937fa92f5227e67257769e49f294586ea055f8d5714595dfdcc2d8a0cac8a3e50fbe93602093600892916001600160a01b031615611087575b500180546001600160b01b0319166001600160a01b0396871690811760a087901b61ffff60a01b1617909155905460405161ffff9590951685529095908516941692a4565b83546001600160a01b0319166001600160a01b03919091161783555f611042565b50600383015415610fb0565b90600482015491821580156110ff575b610f9c57600681015490818310156110f95792610cc2610c36926110f060056110f697015480926106c2565b946106c2565b90565b50505090565b5060058101548211156110c456fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220f824fefce66b4cf1569e7d371fa6370cdccc1c2f8a88bdedc443c0ce47e0831a64736f6c63430008230033","sourceMap":"2090:13499:19:-:0;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;1273:26:0;;1269:95;;2090:13499:19;;;-1:-1:-1;;;;;;2090:13499:19;;;;;;-1:-1:-1;2090:13499:19;;;;;;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;3052:40:0;;-1:-1:-1;3052:40:0;2093:20:1;1505:66:13;2365:1;4049:33:19;:70;;;;;-1:-1:-1;4045:96:19;;;4151:22;;4183;;2090:13499;;;;;;4151:22;2090:13499;;;;;4183:22;2090:13499;;;;;;;;;;;4045:96;4128:13;;;-1:-1:-1;4128:13:19;;-1:-1:-1;4128:13:19;4049:70;4086:33;;;4049:70;;;1269:95:0;1322:31;;;-1:-1:-1;1322:31:0;-1:-1:-1;1322:31:0;2090:13499:19;;-1:-1:-1;1322:31:0;2090:13499:19;-1:-1:-1;2090:13499:19;;;;;;-1:-1:-1;2090:13499:19;;;;;-1:-1:-1;2090:13499:19","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220f824fefce66b4cf1569e7d371fa6370cdccc1c2f8a88bdedc443c0ce47e0831a64736f6c63430008230033","offset":4774}},"transformations":[{"type":"insert","offset":4827,"reason":"constructorArguments"}],"transformationValues":{"constructorArguments":"0x000000000000000000000000b60ea6a621613ff22263ba160e0e8accaca704b0000000000000000000000000b60ea6a621613ff22263ba160e0e8accaca704b0000000000000000000000000899ecd0bb962d674da4f4b1916200b70a7d37d1c"}},"runtimeBytecode":{"onchainBytecode":"0x6080806040526004361015610012575f80fd5b5f3560e01c908163032bbf4f146106235750806319165587146105df578063384711cc1461058f5780634cfc4d30146105715780635ad7fc171461053a5780635bb478081461049d578063715018a61461047e57806379ba5097146103fe57806382589038146103ba578063892823f7146103445780638da5cb5b1461031d578063a3f8eace146102cd578063b224cf641461026a578063c45a015514610242578063c4b7de97146101fe578063d79779b2146101c3578063d8fb93371461018b578063e30c3978146101635763f2fde38b146100ed575f80fd5b3461015f57602036600319011261015f5761010661065a565b61010e610e1b565b60018060a01b0316806bffffffffffffffffffffffff60a01b600154161760015560018060a01b035f54167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227005f80a3005b5f80fd5b3461015f575f36600319011261015f576001546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b036101ac61065a565b165f526003602052602060405f2054604051908152f35b3461015f57602036600319011261015f576001600160a01b036101e461065a565b165f5260036020526020600160405f200154604051908152f35b3461015f575f36600319011261015f576040517f000000000000000000000000899ecd0bb962d674da4f4b1916200b70a7d37d1c6001600160a01b03168152602090f35b3461015f575f36600319011261015f576002546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b0361028b61065a565b165f526003602052606060405f2061ffff600860018060a01b0360078401541692015460405192835260018060a01b038116602084015260a01c166040820152f35b3461015f57602036600319011261015f576001600160a01b036102ee61065a565b165f526003602052602061031560405f2061030f60038201549142906110b4565b90610670565b604051908152f35b3461015f575f36600319011261015f575f546040516001600160a01b039091168152602090f35b3461015f5760a036600319011261015f5761035d61065a565b6044356001600160a01b038116810361015f576064356001600160a01b038116810361015f576084359161ffff8316830361015f576103a79361039e610da6565b60243590610adc565b60015f51602061110e5f395f51905f5255005b3461015f575f36600319011261015f576040517f000000000000000000000000b60ea6a621613ff22263ba160e0e8accaca704b06001600160a01b03168152602090f35b3461015f575f36600319011261015f57600154336001600160a01b0382160361046b576001600160a01b03199081166001555f805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b63118cdaa760e01b5f523360045260245ffd5b3461015f575f36600319011261015f576317d5c96560e11b5f5260045ffd5b3461015f57602036600319011261015f576104b661065a565b6104be610e1b565b600254906001600160a01b03821661052c576001600160a01b031690811561051d576001600160a01b03191681176002556040519081527f1edf3afd4ac789736e00d216cd88be164ddcef26a6eedcc30cdb0cb62f3741b190602090a1005b63d92e233d60e01b5f5260045ffd5b62dc149f60e41b5f5260045ffd5b3461015f57604036600319011261015f5761055361065a565b6024356001600160a01b038116810361015f5761056f91610a3d565b005b3461015f575f36600319011261015f57602060405163096601808152f35b3461015f57602036600319011261015f576001600160a01b036105b061065a565b165f526003602052602061031560405f2061030f6105d76001830154600384015490610670565b9142906110b4565b3461015f57602036600319011261015f57602061060a6105fd61065a565b610605610da6565b610705565b60015f51602061110e5f395f51905f5255604051908152f35b3461015f57602036600319011261015f576020906001600160a01b0361064761065a565b165f5260038252600260405f2001548152f35b600435906001600160a01b038216820361015f57565b9190820180921161067d57565b634e487b7160e01b5f52601160045260245ffd5b8181029291811591840414171561067d57565b81156106ae570490565b634e487b7160e01b5f52601260045260245ffd5b9190820391821161067d57565b90601f8019910116810190811067ffffffffffffffff8211176106f157604052565b634e487b7160e01b5f52604160045260245ffd5b6002549091905f906001600160a01b031615610a2e576001600160a01b038381165f81815260036020526040902060078101805491969294909390911633141580610a17575b610a08576107594287610dde565b600386019586549687156109fd57905f600892556001810161077c898254610670565b90550161271061079461ffff835460a01c1689610691565b04926107a084896106c2565b9460018060a01b037f000000000000000000000000899ecd0bb962d674da4f4b1916200b70a7d37d1c169260405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109ee575b60405215610938575b856108c7575b5085610844575b505050507f82e416ba72d10e709b5de7ac16f5f49ff1d94f22d55bf582d353d3c313a1e8dd9160409182519182526020820152a2565b546001600160a01b0316823b156108c3576040516309ad4dd960e01b81526001600160a01b03918216600482015291166024820152604481018590529082908290606490829084905af180156108b8576108a0575b808061080e565b6108ab8280926106cf565b6108b55780610899565b80fd5b6040513d84823e3d90fd5b8380fd5b546001600160a01b0316833b1561015f576040516309ad4dd960e01b81526001600160a01b0391821660048201529083166024820152604481018690525f8160648183885af1801561092d5715610807576109259194505f906106cf565b5f925f610807565b6040513d5f823e3d90fd5b60405163095ea7b360e01b5f52846004525f60245260205f604481808d5af19060015f51148216156109d6575b604052156109a25760405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109b5575b604052610801575b87635274afe760e01b5f5260045260245ffd5b9060018115166109cd57893b15153d1516169061099a565b503d5f823e3d90fd5b9060018115166109cd57893b15153d15161690610965565b90893b15153d151616906107f8565b505f96505050505050565b630da3333b60e01b5f5260045ffd5b5060088601546001600160a01b031633141561074b565b631966391b60e11b5f5260045ffd5b6002546001600160a01b03163303610a2e576001600160a01b03169081158015610acb575b61051d575f82815260036020526040902060070180546001600160a01b039283169392169190838314610ac55780546001600160a01b031916841790557f38f9c71383b6e3fe639172c6b3a3d4418fa722b4abf99bfd8e31f92bd5ea23f05f80a4565b50505050565b506001600160a01b03811615610a62565b92936001600160a01b038416939291841561051d576002546001600160a01b031615610a2e57610b0c3385610e4f565b15610d97578015610cc8576001600160a01b038316158015610d86575b8015610d77575b610d68576040516370a0823160e01b8152306004820152602081602481895afa90811561092d575f91610d36575b50604051916323b872dd60e01b5f52336004523060245260445260205f606481808a5af160015f5114811615610d17575b826040525f60605215610d04576370a0823160e01b8252306004830152602082602481895afa801561092d575f90610cd0575b610bcc92506106c2565b948515610cc857610bf492855f52600360205260405f2094610bee4287610dde565b85610fa3565b600481018054610c14610c078683610670565b9180610cb4575f90610691565b6309660180860286810463096601800361067d57610c368391610c3b93610670565b6106a4565b9155426005830155610c4d8142610670565b60068301556309660180036309660180811161067d57610c6d90426106c2565b90816002820155610c7f848254610670565b905560405192835260208301527f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c542960403393a3565b610cc24260068701546106c2565b90610691565b505050505050565b506020823d602011610cfc575b81610cea602093836106cf565b8101031261015f57610bcc9151610bc2565b3d9150610cdd565b85635274afe760e01b5f5260045260245ffd5b6001811516610d2d57863b15153d151616610b8f565b823d5f823e3d90fd5b90506020813d602011610d60575b81610d51602093836106cf565b8101031261015f57515f610b5e565b3d9150610d44565b63a7d7d0c560e01b5f5260045ffd5b5061271061ffff831611610b30565b506001600160a01b03861615610b29565b63ba13c3d960e01b5f5260045ffd5b60025f51602061110e5f395f51905f525414610dcf5760025f51602061110e5f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b600590610deb83826110b4565b80610df557500155565b60048201610e048282546106c2565b9055610e1560038301918254610670565b90550155565b5f546001600160a01b0316330361046b57565b51906001600160a01b038216820361015f57565b5190811515820361015f57565b6002546001600160a01b0316908115610f9c57604051631e7945ad60e11b81526001600160a01b0390911660048201529061012090829060249082905afa90811561092d575f91610eb1575b50602001516001600160a01b0391821691161490565b9050610120813d8211610f94575b81610ecd61012093836106cf565b8101031261015f5760405190610120820182811067ffffffffffffffff8211176106f157604052610efd81610e2e565b8252610f0b60208201610e2e565b6020830152610f1c60408201610e2e565b6040830152610f2d60608201610e2e565b6060830152610f3e60808201610e2e565b608083015260a081015161ffff8116810361015f57610f88916101009160a0850152610f6c60c08201610e42565b60c0850152610f7d60e08201610e42565b60e085015201610e42565b6101008201525f610e9b565b3d9150610ebf565b5050505f90565b91600483015415806110a8575b611001575050600801546001600160a01b0380821692169190911480159290610feb575b5050610fdc57565b638a621fd960e01b5f5260045ffd5b61ffff91925081169160a01c1614155f80610fd4565b6007830180549295937fa92f5227e67257769e49f294586ea055f8d5714595dfdcc2d8a0cac8a3e50fbe93602093600892916001600160a01b031615611087575b500180546001600160b01b0319166001600160a01b0396871690811760a087901b61ffff60a01b1617909155905460405161ffff9590951685529095908516941692a4565b83546001600160a01b0319166001600160a01b03919091161783555f611042565b50600383015415610fb0565b90600482015491821580156110ff575b610f9c57600681015490818310156110f95792610cc2610c36926110f060056110f697015480926106c2565b946106c2565b90565b50505090565b5060058101548211156110c456fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220f824fefce66b4cf1569e7d371fa6370cdccc1c2f8a88bdedc443c0ce47e0831a64736f6c63430008230033","recompiledBytecode":"0x6080806040526004361015610012575f80fd5b5f3560e01c908163032bbf4f146106235750806319165587146105df578063384711cc1461058f5780634cfc4d30146105715780635ad7fc171461053a5780635bb478081461049d578063715018a61461047e57806379ba5097146103fe57806382589038146103ba578063892823f7146103445780638da5cb5b1461031d578063a3f8eace146102cd578063b224cf641461026a578063c45a015514610242578063c4b7de97146101fe578063d79779b2146101c3578063d8fb93371461018b578063e30c3978146101635763f2fde38b146100ed575f80fd5b3461015f57602036600319011261015f5761010661065a565b61010e610e1b565b60018060a01b0316806bffffffffffffffffffffffff60a01b600154161760015560018060a01b035f54167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227005f80a3005b5f80fd5b3461015f575f36600319011261015f576001546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b036101ac61065a565b165f526003602052602060405f2054604051908152f35b3461015f57602036600319011261015f576001600160a01b036101e461065a565b165f5260036020526020600160405f200154604051908152f35b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f576002546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b0361028b61065a565b165f526003602052606060405f2061ffff600860018060a01b0360078401541692015460405192835260018060a01b038116602084015260a01c166040820152f35b3461015f57602036600319011261015f576001600160a01b036102ee61065a565b165f526003602052602061031560405f2061030f60038201549142906110b4565b90610670565b604051908152f35b3461015f575f36600319011261015f575f546040516001600160a01b039091168152602090f35b3461015f5760a036600319011261015f5761035d61065a565b6044356001600160a01b038116810361015f576064356001600160a01b038116810361015f576084359161ffff8316830361015f576103a79361039e610da6565b60243590610adc565b60015f51602061110e5f395f51905f5255005b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f57600154336001600160a01b0382160361046b576001600160a01b03199081166001555f805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b63118cdaa760e01b5f523360045260245ffd5b3461015f575f36600319011261015f576317d5c96560e11b5f5260045ffd5b3461015f57602036600319011261015f576104b661065a565b6104be610e1b565b600254906001600160a01b03821661052c576001600160a01b031690811561051d576001600160a01b03191681176002556040519081527f1edf3afd4ac789736e00d216cd88be164ddcef26a6eedcc30cdb0cb62f3741b190602090a1005b63d92e233d60e01b5f5260045ffd5b62dc149f60e41b5f5260045ffd5b3461015f57604036600319011261015f5761055361065a565b6024356001600160a01b038116810361015f5761056f91610a3d565b005b3461015f575f36600319011261015f57602060405163096601808152f35b3461015f57602036600319011261015f576001600160a01b036105b061065a565b165f526003602052602061031560405f2061030f6105d76001830154600384015490610670565b9142906110b4565b3461015f57602036600319011261015f57602061060a6105fd61065a565b610605610da6565b610705565b60015f51602061110e5f395f51905f5255604051908152f35b3461015f57602036600319011261015f576020906001600160a01b0361064761065a565b165f5260038252600260405f2001548152f35b600435906001600160a01b038216820361015f57565b9190820180921161067d57565b634e487b7160e01b5f52601160045260245ffd5b8181029291811591840414171561067d57565b81156106ae570490565b634e487b7160e01b5f52601260045260245ffd5b9190820391821161067d57565b90601f8019910116810190811067ffffffffffffffff8211176106f157604052565b634e487b7160e01b5f52604160045260245ffd5b6002549091905f906001600160a01b031615610a2e576001600160a01b038381165f81815260036020526040902060078101805491969294909390911633141580610a17575b610a08576107594287610dde565b600386019586549687156109fd57905f600892556001810161077c898254610670565b90550161271061079461ffff835460a01c1689610691565b04926107a084896106c2565b9460018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169260405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109ee575b60405215610938575b856108c7575b5085610844575b505050507f82e416ba72d10e709b5de7ac16f5f49ff1d94f22d55bf582d353d3c313a1e8dd9160409182519182526020820152a2565b546001600160a01b0316823b156108c3576040516309ad4dd960e01b81526001600160a01b03918216600482015291166024820152604481018590529082908290606490829084905af180156108b8576108a0575b808061080e565b6108ab8280926106cf565b6108b55780610899565b80fd5b6040513d84823e3d90fd5b8380fd5b546001600160a01b0316833b1561015f576040516309ad4dd960e01b81526001600160a01b0391821660048201529083166024820152604481018690525f8160648183885af1801561092d5715610807576109259194505f906106cf565b5f925f610807565b6040513d5f823e3d90fd5b60405163095ea7b360e01b5f52846004525f60245260205f604481808d5af19060015f51148216156109d6575b604052156109a25760405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109b5575b604052610801575b87635274afe760e01b5f5260045260245ffd5b9060018115166109cd57893b15153d1516169061099a565b503d5f823e3d90fd5b9060018115166109cd57893b15153d15161690610965565b90893b15153d151616906107f8565b505f96505050505050565b630da3333b60e01b5f5260045ffd5b5060088601546001600160a01b031633141561074b565b631966391b60e11b5f5260045ffd5b6002546001600160a01b03163303610a2e576001600160a01b03169081158015610acb575b61051d575f82815260036020526040902060070180546001600160a01b039283169392169190838314610ac55780546001600160a01b031916841790557f38f9c71383b6e3fe639172c6b3a3d4418fa722b4abf99bfd8e31f92bd5ea23f05f80a4565b50505050565b506001600160a01b03811615610a62565b92936001600160a01b038416939291841561051d576002546001600160a01b031615610a2e57610b0c3385610e4f565b15610d97578015610cc8576001600160a01b038316158015610d86575b8015610d77575b610d68576040516370a0823160e01b8152306004820152602081602481895afa90811561092d575f91610d36575b50604051916323b872dd60e01b5f52336004523060245260445260205f606481808a5af160015f5114811615610d17575b826040525f60605215610d04576370a0823160e01b8252306004830152602082602481895afa801561092d575f90610cd0575b610bcc92506106c2565b948515610cc857610bf492855f52600360205260405f2094610bee4287610dde565b85610fa3565b600481018054610c14610c078683610670565b9180610cb4575f90610691565b6309660180860286810463096601800361067d57610c368391610c3b93610670565b6106a4565b9155426005830155610c4d8142610670565b60068301556309660180036309660180811161067d57610c6d90426106c2565b90816002820155610c7f848254610670565b905560405192835260208301527f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c542960403393a3565b610cc24260068701546106c2565b90610691565b505050505050565b506020823d602011610cfc575b81610cea602093836106cf565b8101031261015f57610bcc9151610bc2565b3d9150610cdd565b85635274afe760e01b5f5260045260245ffd5b6001811516610d2d57863b15153d151616610b8f565b823d5f823e3d90fd5b90506020813d602011610d60575b81610d51602093836106cf565b8101031261015f57515f610b5e565b3d9150610d44565b63a7d7d0c560e01b5f5260045ffd5b5061271061ffff831611610b30565b506001600160a01b03861615610b29565b63ba13c3d960e01b5f5260045ffd5b60025f51602061110e5f395f51905f525414610dcf5760025f51602061110e5f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b600590610deb83826110b4565b80610df557500155565b60048201610e048282546106c2565b9055610e1560038301918254610670565b90550155565b5f546001600160a01b0316330361046b57565b51906001600160a01b038216820361015f57565b5190811515820361015f57565b6002546001600160a01b0316908115610f9c57604051631e7945ad60e11b81526001600160a01b0390911660048201529061012090829060249082905afa90811561092d575f91610eb1575b50602001516001600160a01b0391821691161490565b9050610120813d8211610f94575b81610ecd61012093836106cf565b8101031261015f5760405190610120820182811067ffffffffffffffff8211176106f157604052610efd81610e2e565b8252610f0b60208201610e2e565b6020830152610f1c60408201610e2e565b6040830152610f2d60608201610e2e565b6060830152610f3e60808201610e2e565b608083015260a081015161ffff8116810361015f57610f88916101009160a0850152610f6c60c08201610e42565b60c0850152610f7d60e08201610e42565b60e085015201610e42565b6101008201525f610e9b565b3d9150610ebf565b5050505f90565b91600483015415806110a8575b611001575050600801546001600160a01b0380821692169190911480159290610feb575b5050610fdc57565b638a621fd960e01b5f5260045ffd5b61ffff91925081169160a01c1614155f80610fd4565b6007830180549295937fa92f5227e67257769e49f294586ea055f8d5714595dfdcc2d8a0cac8a3e50fbe93602093600892916001600160a01b031615611087575b500180546001600160b01b0319166001600160a01b0396871690811760a087901b61ffff60a01b1617909155905460405161ffff9590951685529095908516941692a4565b83546001600160a01b0319166001600160a01b03919091161783555f611042565b50600383015415610fb0565b90600482015491821580156110ff575b610f9c57600681015490818310156110f95792610cc2610c36926110f060056110f697015480926106c2565b946106c2565b90565b50505090565b5060058101548211156110c456fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220f824fefce66b4cf1569e7d371fa6370cdccc1c2f8a88bdedc443c0ce47e0831a64736f6c63430008230033","sourceMap":"2090:13499:19:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;2090:13499:19;;;;;;;;;;1738:24:1;2090:13499:19;;;1738:24:1;2090:13499:19;;;;;;;;;1777:43:1;2090:13499:19;1777:43:1;;2090:13499:19;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;10268:7;2090:13499;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;10483:7;2090:13499;;;10483:28;2090:13499;;;10483:28;2090:13499;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;3527:44;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;3577:22;2090:13499;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;11995:7;2090:13499;;;;;;;12047:19;2090:13499;;;;;12027:18;;;2090:13499;;12047:19;;2090:13499;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;11592:7;2090:13499;;;11623:60;2090:13499;;;11644:39;11592:7;11623:18;;2090:13499;11667:15;;11644:39;;:::i;:::-;11623:60;;:::i;:::-;2090:13499;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;:::i;:::-;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;;;3054:1:13;2989:103;;;:::i;:::-;2090:13499:19;;3054:1:13;;:::i;:::-;2090:13499:19;-1:-1:-1;;;;;;;;;;;2090:13499:19;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;3477:44;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;1311:13:1;2090:13499:19;735:10:11;-1:-1:-1;;;;;2090:13499:19;;2339:24:1;2335:96;;-1:-1:-1;;;;;;2090:13499:19;;;1311:13:1;2090:13499:19;;;;735:10:11;2090:13499:19;;;;;;;-1:-1:-1;;;;;2090:13499:19;;3052:40:0;;2090:13499:19;3052:40:0;2090:13499:19;2335:96:1;2386:34;;;2090:13499:19;2386:34:1;735:10:11;2090:13499:19;;;;2386:34:1;2090:13499:19;;;;;;-1:-1:-1;;2090:13499:19;;;;4909:28;;;2090:13499;4909:28;2090:13499;;4909:28;2090:13499;;;;;;-1:-1:-1;;2090:13499:19;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;4450:7:19;2090:13499;;-1:-1:-1;;;;;2090:13499:19;;4446:54;;-1:-1:-1;;;;;2090:13499:19;;4514:22;;4510:48;;-1:-1:-1;;;;;;2090:13499:19;;;4450:7;2090:13499;;;;;;4601:20;;2090:13499;;4601:20;2090:13499;4510:48;4545:13;;;2090:13499;4545:13;2090:13499;;4545:13;4446:54;4480:20;;;2090:13499;4480:20;2090:13499;;4480:20;2090:13499;;;;;;-1:-1:-1;;2090:13499:19;;;;;;:::i;:::-;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;;2634:12;2090:13499;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;11364:7;2090:13499;;;12353:78;2090:13499;;;12392:39;12353:36;:15;;;2090:13499;11364:7;12371:18;;2090:13499;12353:36;;:::i;:::-;12415:15;;12392:39;;:::i;2090:13499::-;;;;;;-1:-1:-1;;2090:13499:19;;;;;8005:961;2090:13499;;:::i;:::-;2989:103:13;;:::i;:::-;8005:961:19;:::i;:::-;2365:1:13;-1:-1:-1;;;;;;;;;;;2090:13499:19;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;11143:7;2090:13499;;11143:27;2090:13499;;;11143:27;2090:13499;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2579:6::-;;;;;;;:::o;:::-;2090:13499;;;2579:6;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;2090:13499;;;-1:-1:-1;2579:6:19;;;;;-1:-1:-1;2579:6:19;8005:961;8100:7;2090:13499;8005:961;;;-1:-1:-1;;;;;;;2090:13499:19;8100:21;8096:46;;-1:-1:-1;;;;;2090:13499:19;;;-1:-1:-1;2090:13499:19;;;8176:7;2090:13499;;;;;8218:18;;;2090:13499;;;;;;8218:18;;2090:13499;;;8204:10;:32;;;:69;;8005:961;8200:102;;8328:15;;;;:::i;:::-;8176:7;8365:18;;2090:13499;;;8397:13;;;8393:27;;2090:13499;-1:-1:-1;8537:21:19;2090:13499;;8462:15;;;:27;2090:13499;;;8462:27;:::i;:::-;2090:13499;;8537:21;2579:6;8526:32;2090:13499;;;;;;8526:32;;:::i;:::-;2579:6;8608:25;;;;;:::i;:::-;2090:13499;;;;;;8679:9;2090:13499;5190:42:10;2090:13499:19;12233:1072:10;12199:23;;;-1:-1:-1;12233:1072:10;;;;;;;2090:13499:19;-1:-1:-1;12233:1072:10;;;;;;;8462:15:19;-1:-1:-1;12233:1072:10;;;;;;;8005:961:19;2090:13499;12233:1072:10;5189:43;5185:274;;8005:961:19;8714:19;8710:90;;8005:961;8814:18;;8810:87;;8005:961;2090:13499;;;;8913:46;2090:13499;;;;;;;;;2579:6;;2090:13499;8913:46;8005:961::o;8810:87::-;2090:13499;-1:-1:-1;;;;;2090:13499:19;8834:63;;;;;2090:13499;;-1:-1:-1;;;8834:63:19;;-1:-1:-1;;;;;2090:13499:19;;;12233:1072:10;8834:63:19;;2090:13499;;;2579:6;;;2090:13499;2579:6;;;2090:13499;;;;;;;;2579:6;;2090:13499;;;;8834:63;;;;;;;;8810:87;;;;;8834:63;;;;;;:::i;:::-;2090:13499;;8834:63;;;2090:13499;;;8834:63;2090:13499;;2579:6;2090:13499;;2579:6;;;;8834:63;2090:13499;;;8710:90;2090:13499;-1:-1:-1;;;;;2090:13499:19;8735:65;;;;;2090:13499;;-1:-1:-1;;;8735:65:19;;-1:-1:-1;;;;;2090:13499:19;;;12233:1072:10;8735:65:19;;2090:13499;;;;2579:6;;;2090:13499;2579:6;;;2090:13499;;;-1:-1:-1;2090:13499:19;2579:6;2090:13499;-1:-1:-1;8735:65:19;;;;;;;;8710:90;8735:65;;;;;-1:-1:-1;8735:65:19;;:::i;:::-;-1:-1:-1;8735:65:19;;8710:90;;8735:65;2090:13499;;2579:6;-1:-1:-1;2579:6:19;;;;;5185:274:10;2090:13499:19;12233:1072:10;12199:23;;;-1:-1:-1;12233:1072:10;;;;-1:-1:-1;12233:1072:10;;2090:13499:19;-1:-1:-1;12233:1072:10;;;;;;;8462:15:19;-1:-1:-1;12233:1072:10;;;;;;;5185:274;2090:13499:19;12233:1072:10;5252:38;5248:91;;2090:13499:19;12233:1072:10;12199:23;;;-1:-1:-1;12233:1072:10;;;;;;;2090:13499:19;-1:-1:-1;12233:1072:10;;;;;;;8462:15:19;-1:-1:-1;12233:1072:10;;;;;;;5185:274;2090:13499:19;12233:1072:10;5185:274;5353:95;;5299:40;;;;-1:-1:-1;5408:40:10;12233:1072;2090:13499:19;12233:1072:10;-1:-1:-1;5408:40:10;12233:1072;;8462:15:19;12233:1072:10;;;;;;;;;;;;;;;;;;;-1:-1:-1;12233:1072:10;;;;;;;8462:15:19;12233:1072:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8393:27:19;-1:-1:-1;;;;;;;;;8412:8:19:o;8200:102::-;8282:20;;;-1:-1:-1;8282:20:19;;-1:-1:-1;8282:20:19;8204:69;-1:-1:-1;8254:19:19;;;2090:13499;-1:-1:-1;;;;;2090:13499:19;8204:10;8240:33;;8204:69;;8096:46;8130:12;;;-1:-1:-1;8130:12:19;;-1:-1:-1;8130:12:19;9587:506;9693:7;2090:13499;-1:-1:-1;;;;;2090:13499:19;9679:10;:21;9675:46;;-1:-1:-1;;;;;2090:13499:19;;9735:19;;:49;;;;9587:506;9731:75;;-1:-1:-1;2090:13499:19;;;9840:7;2090:13499;;;;;9892:18;;2090:13499;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;9924:33;;;9920:46;;2090:13499;;-1:-1:-1;;;;;;2090:13499:19;;;;;10023:63;-1:-1:-1;;10023:63:19;9587:506::o;9920:46::-;9959:7;;;;:::o;9735:49::-;-1:-1:-1;;;;;;2090:13499:19;;9758:26;9735:49;;5217:2101;;;-1:-1:-1;;;;;2090:13499:19;;;5217:2101;;5425:19;;5421:45;;5480:7;2090:13499;-1:-1:-1;;;;;2090:13499:19;5480:21;5476:46;;5537:38;5564:10;5537:38;;:::i;:::-;5536:39;5532:73;;5619:11;;5615:24;;-1:-1:-1;;;;;2090:13499:19;;5652:30;:65;;;;5217:2101;5652:103;;;;5217:2101;5648:162;;2090:13499;;-1:-1:-1;;;6255:38:19;;6287:4;6255:38;;;2090:13499;;;6255:38;2090:13499;6255:38;;;;;;;;5442:1;6255:38;;;5217:2101;1767:47:10;2090:13499:19;10404:1148:10;10365:28;;;;5442:1:19;10404:1148:10;5564:10:19;6255:38;10404:1148:10;6287:4:19;6255:38;10404:1148:10;;;2090:13499:19;5442:1;10404:1148:10;;;;;;1809:4;5442:1:19;10404:1148:10;;;;;;;5217:2101:19;10404:1148:10;2090:13499:19;10404:1148:10;5442:1:19;10404:1148:10;;1766:48;1762:126;;-1:-1:-1;;;6387:38:19;;6287:4;6255:38;6387;;2090:13499;;6387:38;6255;6387;;;;;;;;5442:1;6387:38;;;5217:2101;6387:54;;;;:::i;:::-;6455:11;;;6451:24;;6678:19;2090:13499;;5442:1;2090:13499;6508:7;2090:13499;;;5442:1;2090:13499;6548:15;6588:5;6548:15;6588:5;;:::i;:::-;6678:19;;:::i;:::-;6255:38;6736:16;;2090:13499;;6936:36;6787:25;;;;:::i;:::-;6850:48;:21;;;5442:1;6850:48;6936:36;:::i;:::-;2634:12;2090:13499;;;;;2634:12;2090:13499;;;6936:64;;;6935:83;6936:64;;:::i;:::-;6935:83;:::i;:::-;2090:13499;;6548:15;7072:12;;;2090:13499;7117:24;6548:15;;7117:24;:::i;:::-;7102:12;;;2090:13499;2634:12;2579:6;2634:12;2579:6;;;;7168:45;6548:15;;7168:45;:::i;:::-;7151:14;;5480:7;7151:14;;2090:13499;7223:23;2090:13499;;;7223:23;:::i;:::-;2090:13499;;;;;;;;2579:6;;2090:13499;7262:49;2090:13499;5564:10;7262:49;;5217:2101::o;6850:48::-;6878:20;6548:15;6878:12;;;2090:13499;6878:20;:::i;:::-;6850:48;6936:36;:::i;6451:24::-;6468:7;;;;;;:::o;6387:38::-;;2090:13499;6387:38;;2090:13499;6387:38;;;;;;2090:13499;6387:38;;;:::i;:::-;;;2090:13499;;;;6387:54;2090:13499;;6387:38;;;;;-1:-1:-1;6387:38:19;;1762:126:10;5299:40;;;;5442:1:19;1837:40:10;6255:38:19;2090:13499;6255:38;5442:1;1837:40:10;10404:1148;1809:4;10404:1148;;;;;;;;;;;;;;;;;;5442:1:19;10404:1148:10;;;;;6255:38:19;;;2090:13499;6255:38;;2090:13499;6255:38;;;;;;2090:13499;6255:38;;;:::i;:::-;;;2090:13499;;;;;6255:38;;;;;;-1:-1:-1;6255:38:19;;5648:162;5778:21;;;5442:1;5778:21;;5442:1;5778:21;5652:103;2090:13499;2579:6;2090:13499;;;5721:34;5652:103;;:65;-1:-1:-1;;;;;;2090:13499:19;;5686:31;5652:65;;5532:73;5584:21;;;5442:1;5584:21;;5442:1;5584:21;3749:292:13;2407:1;-1:-1:-1;;;;;;;;;;;2090:13499:19;4560:63:13;3644:93;;2407:1;-1:-1:-1;;;;;;;;;;;2090:13499:19;3749:292:13:o;3644:93::-;3696:30;;;-1:-1:-1;3696:30:13;;-1:-1:-1;3696:30:13;12601:298:19;12872:12;12601:298;12699:29;;;;:::i;:::-;12742:16;12738:125;;12872:12;;2090:13499;12601:298::o;12738:125::-;12774:16;;;:31;2090:13499;;;12774:31;:::i;:::-;2090:13499;;12819:33;:18;;;2090:13499;;;12819:33;:::i;:::-;2090:13499;;12872:12;2090:13499;12601:298::o;1796:162:0:-;1710:6;2090:13499:19;-1:-1:-1;;;;;2090:13499:19;735:10:11;1855:23:0;1851:101;;1796:162::o;2090:13499:19:-;;;-1:-1:-1;;;;;2090:13499:19;;;;;;:::o;:::-;;;;;;;;;;:::o;15356:231::-;15458:7;2090:13499;-1:-1:-1;;;;;2090:13499:19;;15458:21;;15454:39;;2090:13499;;-1:-1:-1;;;15520:54:19;;-1:-1:-1;;;;;2090:13499:19;;;15520:54;;;2090:13499;;15520:54;;2090:13499;;15520:54;;2090:13499;;15520:54;;;;;;;2090:13499;15520:54;;;15356:231;-1:-1:-1;2090:13499:19;15520:60;2090:13499;-1:-1:-1;;;;;2090:13499:19;;;;;15510:70;;15356:231::o;15520:54::-;;;;;;;;;;;;;;;;;:::i;:::-;;;2090:13499;;;;;;2579:6;15520:54;2579:6;;;;;;;;;;;2090:13499;2579:6;2090:13499;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;2579:6;2090:13499;;;:::i;:::-;2579:6;2090:13499;;;;;:::i;:::-;;;;;15520:54;;;;;;-1:-1:-1;15520:54:19;;15454:39;15481:12;;;2090:13499;15481:12;:::o;13665:1519::-;;13899:16;;;2090:13499;13899:21;:48;;;13665:1519;13957:750;;-1:-1:-1;;15034:19:19;;2090:13499;-1:-1:-1;;;;;2090:13499:19;;;;;15034:40;;;;;;;;:88;;13665:1519;15030:148;;;;13665:1519::o;15030:148::-;15145:22;;;-1:-1:-1;15145:22:19;13899:16;-1:-1:-1;15145:22:19;15034:88;2090:13499;;;;;;;;;;15078:44;;15034:88;;;;13957:750;14354:18;;;2090:13499;;14354:18;;;14586:90;;2090:13499;;14471:19;;14354:18;-1:-1:-1;;;;;2090:13499:19;14354:32;14350:108;;13957:750;-1:-1:-1;14471:19:19;2090:13499;;-1:-1:-1;;;;;;2090:13499:19;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;-1:-1:-1;;;2090:13499:19;;;;;;;;;;;;;;;;;;;;;;;;14586:90;14690:7::o;14350:108::-;2090:13499;;-1:-1:-1;;;;;;2090:13499:19;-1:-1:-1;;;;;2090:13499:19;;;;;;;-1:-1:-1;14350:108:19;;13899:48;13924:18;;;;2090:13499;13924:23;13899:48;;12999:413;;13110:16;;;2090:13499;13110:21;;;:46;;;;12999:413;13106:60;;13189:12;;;2090:13499;13180:21;;;;;13176:50;;13280:12;13320:20;13358:26;13280:12;13265:27;13280:12;13357:48;13280:12;;2090:13499;13265:27;;;:::i;:::-;13320:20;;:::i;13357:48::-;12999:413;:::o;13176:50::-;13203:23;;;;:::o;13110:46::-;13144:12;;;;2090:13499;13135:21;;;13110:46;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa2646970667358221220f824fefce66b4cf1569e7d371fa6370cdccc1c2f8a88bdedc443c0ce47e0831a64736f6c63430008230033","offset":4398}},"immutableReferences":{"7094":[{"start":975,"length":32}],"7097":[{"start":531,"length":32},{"start":1962,"length":32}]},"transformations":[{"id":"7097","type":"replace","offset":531,"reason":"immutable"},{"id":"7094","type":"replace","offset":975,"reason":"immutable"},{"id":"7097","type":"replace","offset":1962,"reason":"immutable"}],"transformationValues":{"immutables":{"7094":"0x000000000000000000000000b60ea6a621613ff22263ba160e0e8accaca704b0","7097":"0x000000000000000000000000899ecd0bb962d674da4f4b1916200b70a7d37d1c"}}},"deployment":{"transactionHash":"0xad71e345cc366ea1bbea7106710ca19d22a909f3fe8918a2e3e056f43bf13ad5","blockNumber":"57816681","transactionIndex":"9","deployer":"0x42939046CeE36C4cADaA4fa8be999C2d5037FE4D"},"sources":{"src/BrishopBuybackVault.sol":{"content":"// SPDX-License-Identifier: MIT\n// Derived from the MIT PONS v2 verified source. See ../NOTICE.md.\npragma solidity ^0.8.26;\n\nimport {Ownable} from \"@openzeppelin/contracts/access/Ownable.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {ReentrancyGuard} from \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IBrishopFeeEscrow, IBrishopFeePolicy, IBrishopLaunchFactory} from \"./interfaces/IBrishop.sol\";\n\n/**\n * @title BrishopBuybackVault\n * @notice Holds every launch's bought-back memecoin supply and releases it\n * linearly over five years instead of burning it immediately, splitting\n * every release between the creator and the protocol on the launch's\n * recorded fee shares. One shared deployment serves every launch, the same\n * \"single deployment for every token\" pattern BrishopFeeEscrow already uses.\n *\n * Note that the split applies to the release, not to the funding. The\n * permanent curve carves the buyback slice out of the creator's share of\n * the fees alone, so the creator funds the entire lock and then receives\n * only their fee share of it back. Enabling a buyback therefore moves value\n * from the creator to the protocol relative to taking the fees directly,\n * by an amount that grows with `buybackBurnBps`.\n *\n * Deposits use a weighted-average vesting clock instead of per-deposit\n * tranches: a launch's fee sweep can add to its lock on every single sweep,\n * and tracking an unbounded array of tranches would make `release()`'s gas\n * cost grow forever. Instead, each new deposit shifts the launch's single\n * `vestingStart` forward by an amount proportional to the deposit's share\n * of the new total, so a large existing lock is barely disturbed by a small\n * top-up, and a small existing lock is pulled close to the new deposit's own\n * clock. `vestedAmount` at any time reflects a fair, size-weighted blend\n * across every deposit made so far.\n */\ncontract BrishopBuybackVault is Ownable2Step, ReentrancyGuard {\n    using SafeERC20 for IERC20;\n\n    struct LaunchVest {\n        uint256 totalLocked;\n        uint256 totalReleased;\n        uint256 vestingStart;\n        uint256 vestedUnreleased;\n        uint256 unvestedAmount;\n        uint256 lastUpdate;\n        uint256 vestingEnd;\n        address creatorRecipient;\n        address protocolRecipient;\n        uint16 protocolFeeShareBps;\n    }\n\n    uint256 private constant BASIS_POINTS = 10_000;\n    uint256 public constant VESTING_DURATION = 5 * 365 days;\n\n    error ZeroAddress();\n    error AlreadyInitialized();\n    error NotFactory();\n    error NotAuthorizedLocker();\n    error NotVestBeneficiary();\n    error InvalidVestingTerms();\n    error VestingTermsMismatch();\n    error OwnershipCannotBeRenounced();\n\n    event FactorySet(address factory);\n    event Locked(address indexed token, address indexed depositor, uint256 amount, uint256 newVestingStart);\n    event VestingTermsSnapshotted(\n        address indexed token,\n        address indexed creatorRecipient,\n        address indexed protocolRecipient,\n        uint256 protocolFeeShareBps\n    );\n    event Released(address indexed token, uint256 creatorAmount, uint256 protocolAmount);\n    event CreatorRecipientUpdated(\n        address indexed token, address indexed previousRecipient, address indexed newRecipient\n    );\n\n    IBrishopFeePolicy public immutable feePolicy;\n    IBrishopFeeEscrow public immutable feeEscrow;\n    address public factory;\n\n    mapping(address token => LaunchVest) private _vaults;\n\n    /**\n     * @param initialOwner Administrative owner; only used to wire the factory once.\n     * @param feePolicy_ Shared Brishop protocol/creator fee policy.\n     * @param feeEscrow_ Shared claimable balance ledger releases are paid through.\n     */\n    constructor(address initialOwner, IBrishopFeePolicy feePolicy_, IBrishopFeeEscrow feeEscrow_) Ownable(initialOwner) {\n        if (address(feePolicy_) == address(0) || address(feeEscrow_) == address(0)) revert ZeroAddress();\n        feePolicy = feePolicy_;\n        feeEscrow = feeEscrow_;\n    }\n\n    /**\n     * @notice One-time wiring of the v2 factory, set after both are\n     * deployed, used to authorize each launch's bonding curve as a locker.\n     */\n    function setFactory(address factory_) external onlyOwner {\n        if (factory != address(0)) revert AlreadyInitialized();\n        if (factory_ == address(0)) revert ZeroAddress();\n        factory = factory_;\n        emit FactorySet(factory_);\n    }\n\n    /**\n     * @notice Permanently disabled. Ownership here exists only to perform the\n     * one-time factory wiring, and renouncing before that wiring would strand\n     * every future buyback lock.\n     */\n    function renounceOwnership() public pure override {\n        revert OwnershipCannotBeRenounced();\n    }\n\n    /**\n     * @notice Locks `amount` of `token` into its five-year vest, preserving\n     * the supplied beneficiaries and split for the active vesting epoch.\n     * Restricted to this token's registered Brishop curve, looked up live\n     * from the factory.\n     */\n    function lock(\n        address token,\n        uint256 amount,\n        address creatorRecipient,\n        address protocolRecipient,\n        uint16 protocolFeeShareBps\n    ) external nonReentrant {\n        if (token == address(0)) revert ZeroAddress();\n        if (factory == address(0)) revert NotFactory();\n        if (!_isAuthorizedLocker(token, msg.sender)) revert NotAuthorizedLocker();\n        if (amount == 0) return;\n        if (creatorRecipient == address(0) || protocolRecipient == address(0) || protocolFeeShareBps > BASIS_POINTS) {\n            revert InvalidVestingTerms();\n        }\n\n        // Schedule against what arrived, not what was asked for. Recording a\n        // nominal amount the vault never received would make the final\n        // release of the epoch revert on its own balance, stranding the tail\n        // of the vest. Every other ERC-20 boundary in the protocol measures\n        // this delta; this one is no different for being fed by our own\n        // launcher token today.\n        uint256 balanceBefore = IERC20(token).balanceOf(address(this));\n        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);\n        amount = IERC20(token).balanceOf(address(this)) - balanceBefore;\n        if (amount == 0) return;\n\n        LaunchVest storage v = _vaults[token];\n        uint256 nowTs = block.timestamp;\n        _checkpoint(v, nowTs);\n        _setOrValidateVestingTerms(v, token, creatorRecipient, protocolRecipient, protocolFeeShareBps);\n\n        uint256 existingUnvested = v.unvestedAmount;\n        uint256 combinedAmount = existingUnvested + amount;\n        uint256 remainingDuration = existingUnvested == 0 ? 0 : v.vestingEnd - nowTs;\n        uint256 combinedDuration = (existingUnvested * remainingDuration + amount * VESTING_DURATION) / combinedAmount;\n\n        v.unvestedAmount = combinedAmount;\n        v.lastUpdate = nowTs;\n        v.vestingEnd = nowTs + combinedDuration;\n        v.vestingStart = nowTs - (VESTING_DURATION - combinedDuration);\n        v.totalLocked += amount;\n\n        emit Locked(token, msg.sender, amount, v.vestingStart);\n    }\n\n    /**\n     * @notice Releases every currently vested, not-yet-released token for\n     * `token`, using the beneficiaries and split frozen for its active\n     * vesting epoch.\n     * @dev Restricted to the two parties a release pays. Letting anyone\n     * choose when value leaves the vest is harmful in two ways. A caller can\n     * time a release inside the protocol owner's creator-recipient recovery\n     * window, flushing vested tokens to the very address the recovery exists\n     * to abandon. A caller can also advance the checkpoint every second, so\n     * each step rounds its newly vested amount down to zero and the vest\n     * stalls without ever paying out.\n     */\n    function release(address token) external nonReentrant returns (uint256 released) {\n        if (factory == address(0)) revert NotFactory();\n\n        LaunchVest storage v = _vaults[token];\n        if (msg.sender != v.creatorRecipient && msg.sender != v.protocolRecipient) revert NotVestBeneficiary();\n\n        _checkpoint(v, block.timestamp);\n        released = v.vestedUnreleased;\n        if (released == 0) return 0;\n        v.vestedUnreleased = 0;\n        v.totalReleased += released;\n\n        uint256 protocolAmount = (released * v.protocolFeeShareBps) / BASIS_POINTS;\n        uint256 creatorAmount = released - protocolAmount;\n\n        IERC20(token).forceApprove(address(feeEscrow), released);\n        if (protocolAmount != 0) feeEscrow.creditToken(v.protocolRecipient, token, protocolAmount);\n        if (creatorAmount != 0) feeEscrow.creditToken(v.creatorRecipient, token, creatorAmount);\n\n        emit Released(token, creatorAmount, protocolAmount);\n    }\n\n    /**\n     * @notice Redirects a launch's buyback vest to a new creator recipient.\n     * Restricted to the factory, which forwards both self-service creator\n     * transfers and protocol-owner recovery overrides here, so vested\n     * buyback tokens track the same recipient as immediate creator fees\n     * rather than remaining stranded on the launch-time address. Vested but\n     * not-yet-released tokens follow the new recipient too, matching the\n     * intent of wallet recovery. Only the protocol split terms stay bound to\n     * the launch snapshot; the creator identity is managed here instead.\n     */\n    function updateCreatorRecipient(address token, address newRecipient) external {\n        if (msg.sender != factory) revert NotFactory();\n        if (token == address(0) || newRecipient == address(0)) revert ZeroAddress();\n\n        LaunchVest storage v = _vaults[token];\n        address previousRecipient = v.creatorRecipient;\n        if (previousRecipient == newRecipient) return;\n        v.creatorRecipient = newRecipient;\n        emit CreatorRecipientUpdated(token, previousRecipient, newRecipient);\n    }\n\n    /**\n     * @notice Total amount of `token` ever locked into this vault.\n     */\n    function totalLocked(address token) external view returns (uint256) {\n        return _vaults[token].totalLocked;\n    }\n\n    /**\n     * @notice Total amount of `token` already released from this vault.\n     */\n    function totalReleased(address token) external view returns (uint256) {\n        return _vaults[token].totalReleased;\n    }\n\n    /**\n     * @notice The launch's current weighted-average vesting start time.\n     * @dev Reporting only. Vesting is accounted from `vestedUnreleased`,\n     * `unvestedAmount`, `lastUpdate` and `vestingEnd`, which are settled on\n     * every lock and release. Interpolating this value against\n     * `VESTING_DURATION` will not reproduce `vestedAmount`, because already\n     * vested tokens are banked at each deposit rather than recomputed from\n     * the shifted clock. Read `vestedAmount` for the authoritative figure.\n     */\n    function vestingStart(address token) external view returns (uint256) {\n        return _vaults[token].vestingStart;\n    }\n\n    /**\n     * @notice Amount of `token` vested so far, released or not.\n     */\n    function vestedAmount(address token) external view returns (uint256) {\n        return _vestedAmount(_vaults[token]);\n    }\n\n    /**\n     * @notice Amount of `token` currently releasable: vested but not yet released.\n     */\n    function releasable(address token) external view returns (uint256) {\n        LaunchVest storage v = _vaults[token];\n        return v.vestedUnreleased + _previewNewlyVested(v, block.timestamp);\n    }\n\n    /**\n     * @notice Returns the immutable terms for the token's active vesting epoch.\n     */\n    function vestingTerms(address token)\n        external\n        view\n        returns (address creatorRecipient, address protocolRecipient, uint16 protocolFeeShareBps)\n    {\n        LaunchVest storage v = _vaults[token];\n        return (v.creatorRecipient, v.protocolRecipient, v.protocolFeeShareBps);\n    }\n\n    /**\n     * @dev Linear vest over VESTING_DURATION from the launch's current\n     * weighted-average start time, capped at the total ever locked.\n     */\n    function _vestedAmount(LaunchVest storage v) private view returns (uint256) {\n        return v.totalReleased + v.vestedUnreleased + _previewNewlyVested(v, block.timestamp);\n    }\n\n    /**\n     * @dev Crystallizes the linear portion vested since the previous state\n     * update while preserving the existing schedule's maturity.\n     */\n    function _checkpoint(LaunchVest storage v, uint256 nowTs) private {\n        uint256 newlyVested = _previewNewlyVested(v, nowTs);\n        if (newlyVested != 0) {\n            v.unvestedAmount -= newlyVested;\n            v.vestedUnreleased += newlyVested;\n        }\n        v.lastUpdate = nowTs;\n    }\n\n    /**\n     * @dev Previews how much of the active schedule vested since lastUpdate.\n     */\n    function _previewNewlyVested(LaunchVest storage v, uint256 nowTs) private view returns (uint256) {\n        if (v.unvestedAmount == 0 || nowTs <= v.lastUpdate) return 0;\n        if (nowTs >= v.vestingEnd) return v.unvestedAmount;\n\n        uint256 remainingDuration = v.vestingEnd - v.lastUpdate;\n        uint256 elapsed = nowTs - v.lastUpdate;\n        return (v.unvestedAmount * elapsed) / remainingDuration;\n    }\n\n    /**\n     * @dev A new epoch begins only after every token in the prior epoch has\n     * been released. This keeps every active weighted-average vest bound to\n     * one immutable set of beneficiaries without unbounded tranche storage.\n     */\n    function _setOrValidateVestingTerms(\n        LaunchVest storage v,\n        address token,\n        address creatorRecipient,\n        address protocolRecipient,\n        uint16 protocolFeeShareBps\n    ) private {\n        bool newEpoch = v.unvestedAmount == 0 && v.vestedUnreleased == 0;\n        if (newEpoch) {\n            // Seed the buyback beneficiary only when it has never been set.\n            // Once the factory has redirected the vest through\n            // updateCreatorRecipient (a creator transfer or a protocol\n            // recovery override), a later lock must not silently reset it\n            // back to the launch-time recipient, even across a fresh epoch.\n            if (v.creatorRecipient == address(0)) {\n                v.creatorRecipient = creatorRecipient;\n            }\n            v.protocolRecipient = protocolRecipient;\n            v.protocolFeeShareBps = protocolFeeShareBps;\n            emit VestingTermsSnapshotted(token, v.creatorRecipient, protocolRecipient, protocolFeeShareBps);\n            return;\n        }\n\n        // The creator recipient is deliberately excluded from this check: it\n        // is managed independently through updateCreatorRecipient, so recovery\n        // can move the vest without ever bricking a subsequent lock on a terms\n        // mismatch. The protocol split terms remain immutable per launch.\n        if (v.protocolRecipient != protocolRecipient || v.protocolFeeShareBps != protocolFeeShareBps) {\n            revert VestingTermsMismatch();\n        }\n    }\n\n    /**\n     * @dev Only the token's own registered curve may lock its buybacks.\n     * No per-launch administrator action or shared external hook is needed.\n     */\n    function _isAuthorizedLocker(address token, address caller) private view returns (bool) {\n        if (factory == address(0)) return false;\n        return caller == IBrishopLaunchFactory(factory).getLaunchedToken(token).curve;\n    }\n}\n"},"src/interfaces/IBrishop.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.26;\n\ninterface IBrishopFeeEscrow {\n    function credit(address recipient) external payable;\n    function creditToken(address recipient, address token, uint256 amount) external;\n    function claim() external returns (uint256);\n    function claim(uint256 amount) external returns (uint256);\n    function claimToken(address token) external returns (uint256);\n    function claimToken(address token, uint256 amount) external returns (uint256);\n    function balanceOf(address recipient) external view returns (uint256);\n    function balanceOfToken(address recipient, address token) external view returns (uint256);\n}\n\n// Names retained from PONS for fee-policy compatibility. buybackBurnBps funds\n// purchases locked in the five-year vault; it does not burn those tokens.\nstruct FeePolicySnapshot {\n    address protocolFeeRecipient;\n    uint16 protocolFeeShareBps;\n    uint16 buybackBurnBps;\n    uint16 hookFeeBps;\n    uint16 maxInternalPriceImpactBps;\n}\n\ninterface IBrishopFeePolicy {\n    function feeSweepOperator() external view returns (address);\n    function currentFeePolicy() external view returns (FeePolicySnapshot memory);\n}\n\ninterface IBrishopSnipeTax {\n    function snipeTaxStartBps() external view returns (uint256);\n    function snipeTaxSeconds() external view returns (uint256);\n}\n\ninterface IBrishopLaunchFactory {\n    struct LaunchedToken {\n        address token;\n        address curve;\n        address deployer;\n        address creatorFeeRecipient;\n        address pairToken;\n        uint16 creatorTaxBps;\n        bool buybackEnabled;\n        bool personality;\n        bool exists;\n    }\n    function getLaunchedToken(address token) external view returns (LaunchedToken memory);\n}\n"},"@openzeppelin/contracts/utils/ReentrancyGuard.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/ReentrancyGuard.sol)\n\npragma solidity ^0.8.20;\n\nimport {StorageSlot} from \"./StorageSlot.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,\n * consider using {ReentrancyGuardTransient} instead.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n *\n * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced\n * by the {ReentrancyGuardTransient} variant in v6.0.\n *\n * @custom:stateless\n */\nabstract contract ReentrancyGuard {\n    using StorageSlot for bytes32;\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant REENTRANCY_GUARD_STORAGE =\n        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant NOT_ENTERED = 1;\n    uint256 private constant ENTERED = 2;\n\n    /**\n     * @dev Unauthorized reentrant call.\n     */\n    error ReentrancyGuardReentrantCall();\n\n    constructor() {\n        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    /**\n     * @dev A `view` only version of {nonReentrant}. Use to block view functions\n     * from being called, preventing reading from inconsistent contract state.\n     *\n     * CAUTION: This is a \"view\" modifier and does not change the reentrancy\n     * status. Use it only on view functions. For payable or non-payable functions,\n     * use the standard {nonReentrant} modifier instead.\n     */\n    modifier nonReentrantView() {\n        _nonReentrantBeforeView();\n        _;\n    }\n\n    function _nonReentrantBeforeView() private view {\n        if (_reentrancyGuardEntered()) {\n            revert ReentrancyGuardReentrantCall();\n        }\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be NOT_ENTERED\n        _nonReentrantBeforeView();\n\n        // Any calls to nonReentrant after this point will fail\n        _reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return _reentrancyGuardStorageSlot().getUint256Slot().value == ENTERED;\n    }\n\n    function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {\n        return REENTRANCY_GUARD_STORAGE;\n    }\n}\n"},"@openzeppelin/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\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 value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n     * 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 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        if (!_safeTransfer(token, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        if (!_safeTransferFrom(token, from, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n        return _safeTransfer(token, to, value, false);\n    }\n\n    /**\n     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n        return _safeTransferFrom(token, from, to, value, false);\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        if (!_safeApprove(token, spender, value, false)) {\n            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n     * return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.transfer.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(to, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n     * value: the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param from The sender of the tokens\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransferFrom(\n        IERC20 token,\n        address from,\n        address to,\n        uint256 value,\n        bool bubble\n    ) private returns (bool success) {\n        bytes4 selector = IERC20.transferFrom.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(from, shr(96, not(0))))\n            mstore(0x24, and(to, shr(96, not(0))))\n            mstore(0x44, value)\n            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n            mstore(0x60, 0)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n     * the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param spender The spender of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.approve.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(spender, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n}\n"},"@openzeppelin/contracts/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.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 * The initial owner is set to the address provided by the deployer. This can\n * 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    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\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        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling 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        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\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"},"@openzeppelin/contracts/access/Ownable2Step.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.20;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * This extension of the {Ownable} contract includes a two-step mechanism to transfer\n * ownership, where the new owner must call {acceptOwnership} in order to replace the\n * old one. This can help prevent common mistakes, such as transfers of ownership to\n * incorrect accounts, or to contracts that are unable to interact with the\n * permission system.\n *\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2Step is Ownable {\n    address private _pendingOwner;\n\n    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Returns the address of the pending owner.\n     */\n    function pendingOwner() public view virtual returns (address) {\n        return _pendingOwner;\n    }\n\n    /**\n     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n     * Can only be called by the current owner.\n     *\n     * Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.\n     */\n    function transferOwnership(address newOwner) public virtual override onlyOwner {\n        _pendingOwner = newOwner;\n        emit OwnershipTransferStarted(owner(), newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual override {\n        delete _pendingOwner;\n        super._transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev The new owner accepts the ownership transfer.\n     */\n    function acceptOwnership() public virtual {\n        address sender = _msgSender();\n        if (pendingOwner() != sender) {\n            revert OwnableUnauthorizedAccount(sender);\n        }\n        _transferOwnership(sender);\n    }\n}\n"},"@openzeppelin/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"},"@openzeppelin/contracts/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(newImplementation.code.length > 0);\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary StorageSlot {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    struct Int256Slot {\n        int256 value;\n    }\n\n    struct StringSlot {\n        string value;\n    }\n\n    struct BytesSlot {\n        bytes value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n     */\n    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `StringSlot` with member `value` located at `slot`.\n     */\n    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n     */\n    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n     */\n    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n     */\n    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n}\n"},"@openzeppelin/contracts/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"@openzeppelin/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"@openzeppelin/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"@openzeppelin/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.35+commit.47b9dedd","compilerSettings":{"viaIR":true,"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun"},"name":"BrishopBuybackVault","fullyQualifiedName":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},"abi":[{"type":"constructor","inputs":[{"name":"initialOwner","type":"address","internalType":"address"},{"name":"feePolicy_","type":"address","internalType":"contract IBrishopFeePolicy"},{"name":"feeEscrow_","type":"address","internalType":"contract IBrishopFeeEscrow"}],"stateMutability":"nonpayable"},{"name":"AlreadyInitialized","type":"error","inputs":[]},{"name":"InvalidVestingTerms","type":"error","inputs":[]},{"name":"NotAuthorizedLocker","type":"error","inputs":[]},{"name":"NotFactory","type":"error","inputs":[]},{"name":"NotVestBeneficiary","type":"error","inputs":[]},{"name":"OwnableInvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"OwnableUnauthorizedAccount","type":"error","inputs":[{"name":"account","type":"address","internalType":"address"}]},{"name":"OwnershipCannotBeRenounced","type":"error","inputs":[]},{"name":"ReentrancyGuardReentrantCall","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"VestingTermsMismatch","type":"error","inputs":[]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"CreatorRecipientUpdated","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"previousRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"newRecipient","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"FactorySet","type":"event","inputs":[{"name":"factory","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Locked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"depositor","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"newVestingStart","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"OwnershipTransferStarted","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Released","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"creatorAmount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"protocolAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"VestingTermsSnapshotted","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"creatorRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"protocolRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"protocolFeeShareBps","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"VESTING_DURATION","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"acceptOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"factory","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeEscrow","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IBrishopFeeEscrow"}],"stateMutability":"view"},{"name":"feePolicy","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IBrishopFeePolicy"}],"stateMutability":"view"},{"name":"lock","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"creatorRecipient","type":"address","internalType":"address"},{"name":"protocolRecipient","type":"address","internalType":"address"},{"name":"protocolFeeShareBps","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"pendingOwner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"releasable","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"release","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"released","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"pure"},{"name":"setFactory","type":"function","inputs":[{"name":"factory_","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"totalLocked","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalReleased","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"updateCreatorRecipient","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"newRecipient","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"vestedAmount","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"vestingStart","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"vestingTerms","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"creatorRecipient","type":"address","internalType":"address"},{"name":"protocolRecipient","type":"address","internalType":"address"},{"name":"protocolFeeShareBps","type":"uint16","internalType":"uint16"}],"stateMutability":"view"}],"metadata":{"compiler":{"version":"0.8.35+commit.47b9dedd"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"contract IBrishopFeePolicy","name":"feePolicy_","type":"address"},{"internalType":"contract IBrishopFeeEscrow","name":"feeEscrow_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"InvalidVestingTerms","type":"error"},{"inputs":[],"name":"NotAuthorizedLocker","type":"error"},{"inputs":[],"name":"NotFactory","type":"error"},{"inputs":[],"name":"NotVestBeneficiary","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnershipCannotBeRenounced","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"VestingTermsMismatch","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"previousRecipient","type":"address"},{"indexed":true,"internalType":"address","name":"newRecipient","type":"address"}],"name":"CreatorRecipientUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"factory","type":"address"}],"name":"FactorySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newVestingStart","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"creatorAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"protocolAmount","type":"uint256"}],"name":"Released","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"creatorRecipient","type":"address"},{"indexed":true,"internalType":"address","name":"protocolRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"protocolFeeShareBps","type":"uint256"}],"name":"VestingTermsSnapshotted","type":"event"},{"inputs":[],"name":"VESTING_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeEscrow","outputs":[{"internalType":"contract IBrishopFeeEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePolicy","outputs":[{"internalType":"contract IBrishopFeePolicy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"creatorRecipient","type":"address"},{"internalType":"address","name":"protocolRecipient","type":"address"},{"internalType":"uint16","name":"protocolFeeShareBps","type":"uint16"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"release","outputs":[{"internalType":"uint256","name":"released","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"factory_","type":"address"}],"name":"setFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"totalLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"newRecipient","type":"address"}],"name":"updateCreatorRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"vestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"vestingStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"vestingTerms","outputs":[{"internalType":"address","name":"creatorRecipient","type":"address"},{"internalType":"address","name":"protocolRecipient","type":"address"},{"internalType":"uint16","name":"protocolFeeShareBps","type":"uint16"}],"stateMutability":"view","type":"function"}],"devdoc":{"errors":{"OwnableInvalidOwner(address)":[{"details":"The owner is not a valid owner account. (eg. `address(0)`)"}],"OwnableUnauthorizedAccount(address)":[{"details":"The caller account is not authorized to perform an operation."}],"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"kind":"dev","methods":{"acceptOwnership()":{"details":"The new owner accepts the ownership transfer."},"constructor":{"params":{"feeEscrow_":"Shared claimable balance ledger releases are paid through.","feePolicy_":"Shared Brishop protocol/creator fee policy.","initialOwner":"Administrative owner; only used to wire the factory once."}},"owner()":{"details":"Returns the address of the current owner."},"pendingOwner()":{"details":"Returns the address of the pending owner."},"release(address)":{"details":"Restricted to the two parties a release pays. Letting anyone choose when value leaves the vest is harmful in two ways. A caller can time a release inside the protocol owner's creator-recipient recovery window, flushing vested tokens to the very address the recovery exists to abandon. A caller can also advance the checkpoint every second, so each step rounds its newly vested amount down to zero and the vest stalls without ever paying out."},"transferOwnership(address)":{"details":"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner. Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer."},"vestingStart(address)":{"details":"Reporting only. Vesting is accounted from `vestedUnreleased`, `unvestedAmount`, `lastUpdate` and `vestingEnd`, which are settled on every lock and release. Interpolating this value against `VESTING_DURATION` will not reproduce `vestedAmount`, because already vested tokens are banked at each deposit rather than recomputed from the shifted clock. Read `vestedAmount` for the authoritative figure."}},"title":"BrishopBuybackVault","version":1},"userdoc":{"kind":"user","methods":{"lock(address,uint256,address,address,uint16)":{"notice":"Locks `amount` of `token` into its five-year vest, preserving the supplied beneficiaries and split for the active vesting epoch. Restricted to this token's registered Brishop curve, looked up live from the factory."},"releasable(address)":{"notice":"Amount of `token` currently releasable: vested but not yet released."},"release(address)":{"notice":"Releases every currently vested, not-yet-released token for `token`, using the beneficiaries and split frozen for its active vesting epoch."},"renounceOwnership()":{"notice":"Permanently disabled. Ownership here exists only to perform the one-time factory wiring, and renouncing before that wiring would strand every future buyback lock."},"setFactory(address)":{"notice":"One-time wiring of the v2 factory, set after both are deployed, used to authorize each launch's bonding curve as a locker."},"totalLocked(address)":{"notice":"Total amount of `token` ever locked into this vault."},"totalReleased(address)":{"notice":"Total amount of `token` already released from this vault."},"updateCreatorRecipient(address,address)":{"notice":"Redirects a launch's buyback vest to a new creator recipient. Restricted to the factory, which forwards both self-service creator transfers and protocol-owner recovery overrides here, so vested buyback tokens track the same recipient as immediate creator fees rather than remaining stranded on the launch-time address. Vested but not-yet-released tokens follow the new recipient too, matching the intent of wallet recovery. Only the protocol split terms stay bound to the launch snapshot; the creator identity is managed here instead."},"vestedAmount(address)":{"notice":"Amount of `token` vested so far, released or not."},"vestingStart(address)":{"notice":"The launch's current weighted-average vesting start time."},"vestingTerms(address)":{"notice":"Returns the immutable terms for the token's active vesting epoch."}},"notice":"Holds every launch's bought-back memecoin supply and releases it linearly over five years instead of burning it immediately, splitting every release between the creator and the protocol on the launch's recorded fee shares. One shared deployment serves every launch, the same \"single deployment for every token\" pattern BrishopFeeEscrow already uses. Note that the split applies to the release, not to the funding. The permanent curve carves the buyback slice out of the creator's share of the fees alone, so the creator funds the entire lock and then receives only their fee share of it back. Enabling a buyback therefore moves value from the creator to the protocol relative to taking the fees directly, by an amount that grows with `buybackBurnBps`. Deposits use a weighted-average vesting clock instead of per-deposit tranches: a launch's fee sweep can add to its lock on every single sweep, and tracking an unbounded array of tranches would make `release()`'s gas cost grow forever. Instead, each new deposit shifts the launch's single `vestingStart` forward by an amount proportional to the deposit's share of the new total, so a large existing lock is barely disturbed by a small top-up, and a small existing lock is pulled close to the new deposit's own clock. `vestedAmount` at any time reflects a fair, size-weighted blend across every deposit made so far.","version":1}},"settings":{"compilationTarget":{"src/BrishopBuybackVault.sol":"BrishopBuybackVault"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[],"viaIR":true},"sources":{"@openzeppelin/contracts/access/Ownable.sol":{"keccak256":"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb","license":"MIT","urls":["bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6","dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a"]},"@openzeppelin/contracts/access/Ownable2Step.sol":{"keccak256":"0xdcad8898fda432696597752e8ec361b87d85c82cb258115427af006dacf7128c","license":"MIT","urls":["bzz-raw://e2c9d517f0c136d54bd00cd57959d25681d4d6273f5bbbc263afe228303772f0","dweb:/ipfs/QmReNFjXBiufByiAAzfSQ2SM5r3qeUErn46BmN3yVRvrek"]},"@openzeppelin/contracts/interfaces/IERC1363.sol":{"keccak256":"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d","license":"MIT","urls":["bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100","dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d"]},"@openzeppelin/contracts/interfaces/IERC165.sol":{"keccak256":"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc","license":"MIT","urls":["bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037","dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ"]},"@openzeppelin/contracts/interfaces/IERC20.sol":{"keccak256":"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44","license":"MIT","urls":["bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d","dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF"]},"@openzeppelin/contracts/token/ERC20/IERC20.sol":{"keccak256":"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2","license":"MIT","urls":["bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303","dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV"]},"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol":{"keccak256":"0x304d732678032a9781ae85c8f204c8fba3d3a5e31c02616964e75cfdc5049098","license":"MIT","urls":["bzz-raw://299ced486011781dc98f638059678323c03079fefae1482abaa2135b22fa92d0","dweb:/ipfs/QmbZNbcPTBxNvwChavN2kkZZs7xHhYL7mv51KrxMhsMs3j"]},"@openzeppelin/contracts/utils/Context.sol":{"keccak256":"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2","license":"MIT","urls":["bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12","dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF"]},"@openzeppelin/contracts/utils/ReentrancyGuard.sol":{"keccak256":"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53","license":"MIT","urls":["bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99","dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N"]},"@openzeppelin/contracts/utils/StorageSlot.sol":{"keccak256":"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97","license":"MIT","urls":["bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b","dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM"]},"@openzeppelin/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c","license":"MIT","urls":["bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617","dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u"]},"src/BrishopBuybackVault.sol":{"keccak256":"0x0becf05283bc8b8964a8d100e23b887a188c82c95fcad98e22f5217ffc9e58c9","license":"MIT","urls":["bzz-raw://137a6aaded4724a3474b3c08067693245523ed517a84aafc5c146353852bb32d","dweb:/ipfs/QmQ4JfAQYR3eqhowQgibERLGiTfowSnH1QRWY6D1983eFW"]},"src/interfaces/IBrishop.sol":{"keccak256":"0x329d57dfed260932f89ed7a9f0b91ed7236e12777f41ebf8599495ce294a8d2f","license":"MIT","urls":["bzz-raw://dd6053f039743beb42223b3228361129753dce8717c96291dba5820e52ef9892","dweb:/ipfs/QmeSF8Mo9XyXb3ZGp8ns6h2cLo1G8n4f8UyyUoHe8w4piF"]}},"version":1},"storageLayout":{"types":{"t_uint16":{"label":"uint16","encoding":"inplace","numberOfBytes":"2"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_struct(LaunchVest)7027_storage":{"label":"struct BrishopBuybackVault.LaunchVest","members":[{"slot":"0","type":"t_uint256","astId":7008,"label":"totalLocked","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"1","type":"t_uint256","astId":7010,"label":"totalReleased","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"2","type":"t_uint256","astId":7012,"label":"vestingStart","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"3","type":"t_uint256","astId":7014,"label":"vestedUnreleased","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"4","type":"t_uint256","astId":7016,"label":"unvestedAmount","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"5","type":"t_uint256","astId":7018,"label":"lastUpdate","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"6","type":"t_uint256","astId":7020,"label":"vestingEnd","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"7","type":"t_address","astId":7022,"label":"creatorRecipient","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"8","type":"t_address","astId":7024,"label":"protocolRecipient","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"8","type":"t_uint16","astId":7026,"label":"protocolFeeShareBps","offset":20,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"}],"encoding":"inplace","numberOfBytes":"288"},"t_mapping(t_address,t_struct(LaunchVest)7027_storage)":{"key":"t_address","label":"mapping(address => struct BrishopBuybackVault.LaunchVest)","value":"t_struct(LaunchVest)7027_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_address","astId":8,"label":"_owner","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"1","type":"t_address","astId":156,"label":"_pendingOwner","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"2","type":"t_address","astId":7099,"label":"factory","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"3","type":"t_mapping(t_address,t_struct(LaunchVest)7027_storage)","astId":7104,"label":"_vaults","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"}]},"transientStorageLayout":{"types":null,"storage":[]},"userdoc":{"kind":"user","notice":"Holds every launch's bought-back memecoin supply and releases it linearly over five years instead of burning it immediately, splitting every release between the creator and the protocol on the launch's recorded fee shares. One shared deployment serves every launch, the same \"single deployment for every token\" pattern BrishopFeeEscrow already uses. Note that the split applies to the release, not to the funding. The permanent curve carves the buyback slice out of the creator's share of the fees alone, so the creator funds the entire lock and then receives only their fee share of it back. Enabling a buyback therefore moves value from the creator to the protocol relative to taking the fees directly, by an amount that grows with `buybackBurnBps`. Deposits use a weighted-average vesting clock instead of per-deposit tranches: a launch's fee sweep can add to its lock on every single sweep, and tracking an unbounded array of tranches would make `release()`'s gas cost grow forever. Instead, each new deposit shifts the launch's single `vestingStart` forward by an amount proportional to the deposit's share of the new total, so a large existing lock is barely disturbed by a small top-up, and a small existing lock is pulled close to the new deposit's own clock. `vestedAmount` at any time reflects a fair, size-weighted blend across every deposit made so far.","methods":{"release(address)":{"notice":"Releases every currently vested, not-yet-released token for `token`, using the beneficiaries and split frozen for its active vesting epoch."},"releasable(address)":{"notice":"Amount of `token` currently releasable: vested but not yet released."},"renounceOwnership()":{"notice":"Permanently disabled. Ownership here exists only to perform the one-time factory wiring, and renouncing before that wiring would strand every future buyback lock."},"setFactory(address)":{"notice":"One-time wiring of the v2 factory, set after both are deployed, used to authorize each launch's bonding curve as a locker."},"totalLocked(address)":{"notice":"Total amount of `token` ever locked into this vault."},"vestedAmount(address)":{"notice":"Amount of `token` vested so far, released or not."},"vestingStart(address)":{"notice":"The launch's current weighted-average vesting start time."},"vestingTerms(address)":{"notice":"Returns the immutable terms for the token's active vesting epoch."},"totalReleased(address)":{"notice":"Total amount of `token` already released from this vault."},"updateCreatorRecipient(address,address)":{"notice":"Redirects a launch's buyback vest to a new creator recipient. Restricted to the factory, which forwards both self-service creator transfers and protocol-owner recovery overrides here, so vested buyback tokens track the same recipient as immediate creator fees rather than remaining stranded on the launch-time address. Vested but not-yet-released tokens follow the new recipient too, matching the intent of wallet recovery. Only the protocol split terms stay bound to the launch snapshot; the creator identity is managed here instead."},"lock(address,uint256,address,address,uint16)":{"notice":"Locks `amount` of `token` into its five-year vest, preserving the supplied beneficiaries and split for the active vesting epoch. Restricted to this token's registered Brishop curve, looked up live from the factory."}},"version":1},"devdoc":{"kind":"dev","title":"BrishopBuybackVault","errors":{"OwnableInvalidOwner(address)":[{"details":"The owner is not a valid owner account. (eg. `address(0)`)"}],"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"OwnableUnauthorizedAccount(address)":[{"details":"The caller account is not authorized to perform an operation."}]},"methods":{"owner()":{"details":"Returns the address of the current owner."},"constructor":{"params":{"feeEscrow_":"Shared claimable balance ledger releases are paid through.","feePolicy_":"Shared Brishop protocol/creator fee policy.","initialOwner":"Administrative owner; only used to wire the factory once."}},"pendingOwner()":{"details":"Returns the address of the pending owner."},"release(address)":{"details":"Restricted to the two parties a release pays. Letting anyone choose when value leaves the vest is harmful in two ways. A caller can time a release inside the protocol owner's creator-recipient recovery window, flushing vested tokens to the very address the recovery exists to abandon. A caller can also advance the checkpoint every second, so each step rounds its newly vested amount down to zero and the vest stalls without ever paying out."},"acceptOwnership()":{"details":"The new owner accepts the ownership transfer."},"vestingStart(address)":{"details":"Reporting only. Vesting is accounted from `vestedUnreleased`, `unvestedAmount`, `lastUpdate` and `vestingEnd`, which are settled on every lock and release. Interpolating this value against `VESTING_DURATION` will not reproduce `vestedAmount`, because already vested tokens are banked at each deposit rather than recomputed from the shifted clock. Read `vestedAmount` for the authoritative figure."},"transferOwnership(address)":{"details":"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner. Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer."}},"version":1},"sourceIds":{"src/BrishopBuybackVault.sol":{"id":19},"src/interfaces/IBrishop.sol":{"id":25},"@openzeppelin/contracts/utils/Context.sol":{"id":11},"@openzeppelin/contracts/access/Ownable.sol":{"id":0},"@openzeppelin/contracts/interfaces/IERC20.sol":{"id":4},"@openzeppelin/contracts/utils/StorageSlot.sol":{"id":14},"@openzeppelin/contracts/interfaces/IERC165.sol":{"id":3},"@openzeppelin/contracts/token/ERC20/IERC20.sol":{"id":7},"@openzeppelin/contracts/access/Ownable2Step.sol":{"id":1},"@openzeppelin/contracts/interfaces/IERC1363.sol":{"id":2},"@openzeppelin/contracts/utils/ReentrancyGuard.sol":{"id":13},"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol":{"id":10},"@openzeppelin/contracts/utils/introspection/IERC165.sol":{"id":15}},"additionalInput":null,"stdJsonInput":{"sources":{"src/BrishopBuybackVault.sol":{"content":"// SPDX-License-Identifier: MIT\n// Derived from the MIT PONS v2 verified source. See ../NOTICE.md.\npragma solidity ^0.8.26;\n\nimport {Ownable} from \"@openzeppelin/contracts/access/Ownable.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {ReentrancyGuard} from \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IBrishopFeeEscrow, IBrishopFeePolicy, IBrishopLaunchFactory} from \"./interfaces/IBrishop.sol\";\n\n/**\n * @title BrishopBuybackVault\n * @notice Holds every launch's bought-back memecoin supply and releases it\n * linearly over five years instead of burning it immediately, splitting\n * every release between the creator and the protocol on the launch's\n * recorded fee shares. One shared deployment serves every launch, the same\n * \"single deployment for every token\" pattern BrishopFeeEscrow already uses.\n *\n * Note that the split applies to the release, not to the funding. The\n * permanent curve carves the buyback slice out of the creator's share of\n * the fees alone, so the creator funds the entire lock and then receives\n * only their fee share of it back. Enabling a buyback therefore moves value\n * from the creator to the protocol relative to taking the fees directly,\n * by an amount that grows with `buybackBurnBps`.\n *\n * Deposits use a weighted-average vesting clock instead of per-deposit\n * tranches: a launch's fee sweep can add to its lock on every single sweep,\n * and tracking an unbounded array of tranches would make `release()`'s gas\n * cost grow forever. Instead, each new deposit shifts the launch's single\n * `vestingStart` forward by an amount proportional to the deposit's share\n * of the new total, so a large existing lock is barely disturbed by a small\n * top-up, and a small existing lock is pulled close to the new deposit's own\n * clock. `vestedAmount` at any time reflects a fair, size-weighted blend\n * across every deposit made so far.\n */\ncontract BrishopBuybackVault is Ownable2Step, ReentrancyGuard {\n    using SafeERC20 for IERC20;\n\n    struct LaunchVest {\n        uint256 totalLocked;\n        uint256 totalReleased;\n        uint256 vestingStart;\n        uint256 vestedUnreleased;\n        uint256 unvestedAmount;\n        uint256 lastUpdate;\n        uint256 vestingEnd;\n        address creatorRecipient;\n        address protocolRecipient;\n        uint16 protocolFeeShareBps;\n    }\n\n    uint256 private constant BASIS_POINTS = 10_000;\n    uint256 public constant VESTING_DURATION = 5 * 365 days;\n\n    error ZeroAddress();\n    error AlreadyInitialized();\n    error NotFactory();\n    error NotAuthorizedLocker();\n    error NotVestBeneficiary();\n    error InvalidVestingTerms();\n    error VestingTermsMismatch();\n    error OwnershipCannotBeRenounced();\n\n    event FactorySet(address factory);\n    event Locked(address indexed token, address indexed depositor, uint256 amount, uint256 newVestingStart);\n    event VestingTermsSnapshotted(\n        address indexed token,\n        address indexed creatorRecipient,\n        address indexed protocolRecipient,\n        uint256 protocolFeeShareBps\n    );\n    event Released(address indexed token, uint256 creatorAmount, uint256 protocolAmount);\n    event CreatorRecipientUpdated(\n        address indexed token, address indexed previousRecipient, address indexed newRecipient\n    );\n\n    IBrishopFeePolicy public immutable feePolicy;\n    IBrishopFeeEscrow public immutable feeEscrow;\n    address public factory;\n\n    mapping(address token => LaunchVest) private _vaults;\n\n    /**\n     * @param initialOwner Administrative owner; only used to wire the factory once.\n     * @param feePolicy_ Shared Brishop protocol/creator fee policy.\n     * @param feeEscrow_ Shared claimable balance ledger releases are paid through.\n     */\n    constructor(address initialOwner, IBrishopFeePolicy feePolicy_, IBrishopFeeEscrow feeEscrow_) Ownable(initialOwner) {\n        if (address(feePolicy_) == address(0) || address(feeEscrow_) == address(0)) revert ZeroAddress();\n        feePolicy = feePolicy_;\n        feeEscrow = feeEscrow_;\n    }\n\n    /**\n     * @notice One-time wiring of the v2 factory, set after both are\n     * deployed, used to authorize each launch's bonding curve as a locker.\n     */\n    function setFactory(address factory_) external onlyOwner {\n        if (factory != address(0)) revert AlreadyInitialized();\n        if (factory_ == address(0)) revert ZeroAddress();\n        factory = factory_;\n        emit FactorySet(factory_);\n    }\n\n    /**\n     * @notice Permanently disabled. Ownership here exists only to perform the\n     * one-time factory wiring, and renouncing before that wiring would strand\n     * every future buyback lock.\n     */\n    function renounceOwnership() public pure override {\n        revert OwnershipCannotBeRenounced();\n    }\n\n    /**\n     * @notice Locks `amount` of `token` into its five-year vest, preserving\n     * the supplied beneficiaries and split for the active vesting epoch.\n     * Restricted to this token's registered Brishop curve, looked up live\n     * from the factory.\n     */\n    function lock(\n        address token,\n        uint256 amount,\n        address creatorRecipient,\n        address protocolRecipient,\n        uint16 protocolFeeShareBps\n    ) external nonReentrant {\n        if (token == address(0)) revert ZeroAddress();\n        if (factory == address(0)) revert NotFactory();\n        if (!_isAuthorizedLocker(token, msg.sender)) revert NotAuthorizedLocker();\n        if (amount == 0) return;\n        if (creatorRecipient == address(0) || protocolRecipient == address(0) || protocolFeeShareBps > BASIS_POINTS) {\n            revert InvalidVestingTerms();\n        }\n\n        // Schedule against what arrived, not what was asked for. Recording a\n        // nominal amount the vault never received would make the final\n        // release of the epoch revert on its own balance, stranding the tail\n        // of the vest. Every other ERC-20 boundary in the protocol measures\n        // this delta; this one is no different for being fed by our own\n        // launcher token today.\n        uint256 balanceBefore = IERC20(token).balanceOf(address(this));\n        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);\n        amount = IERC20(token).balanceOf(address(this)) - balanceBefore;\n        if (amount == 0) return;\n\n        LaunchVest storage v = _vaults[token];\n        uint256 nowTs = block.timestamp;\n        _checkpoint(v, nowTs);\n        _setOrValidateVestingTerms(v, token, creatorRecipient, protocolRecipient, protocolFeeShareBps);\n\n        uint256 existingUnvested = v.unvestedAmount;\n        uint256 combinedAmount = existingUnvested + amount;\n        uint256 remainingDuration = existingUnvested == 0 ? 0 : v.vestingEnd - nowTs;\n        uint256 combinedDuration = (existingUnvested * remainingDuration + amount * VESTING_DURATION) / combinedAmount;\n\n        v.unvestedAmount = combinedAmount;\n        v.lastUpdate = nowTs;\n        v.vestingEnd = nowTs + combinedDuration;\n        v.vestingStart = nowTs - (VESTING_DURATION - combinedDuration);\n        v.totalLocked += amount;\n\n        emit Locked(token, msg.sender, amount, v.vestingStart);\n    }\n\n    /**\n     * @notice Releases every currently vested, not-yet-released token for\n     * `token`, using the beneficiaries and split frozen for its active\n     * vesting epoch.\n     * @dev Restricted to the two parties a release pays. Letting anyone\n     * choose when value leaves the vest is harmful in two ways. A caller can\n     * time a release inside the protocol owner's creator-recipient recovery\n     * window, flushing vested tokens to the very address the recovery exists\n     * to abandon. A caller can also advance the checkpoint every second, so\n     * each step rounds its newly vested amount down to zero and the vest\n     * stalls without ever paying out.\n     */\n    function release(address token) external nonReentrant returns (uint256 released) {\n        if (factory == address(0)) revert NotFactory();\n\n        LaunchVest storage v = _vaults[token];\n        if (msg.sender != v.creatorRecipient && msg.sender != v.protocolRecipient) revert NotVestBeneficiary();\n\n        _checkpoint(v, block.timestamp);\n        released = v.vestedUnreleased;\n        if (released == 0) return 0;\n        v.vestedUnreleased = 0;\n        v.totalReleased += released;\n\n        uint256 protocolAmount = (released * v.protocolFeeShareBps) / BASIS_POINTS;\n        uint256 creatorAmount = released - protocolAmount;\n\n        IERC20(token).forceApprove(address(feeEscrow), released);\n        if (protocolAmount != 0) feeEscrow.creditToken(v.protocolRecipient, token, protocolAmount);\n        if (creatorAmount != 0) feeEscrow.creditToken(v.creatorRecipient, token, creatorAmount);\n\n        emit Released(token, creatorAmount, protocolAmount);\n    }\n\n    /**\n     * @notice Redirects a launch's buyback vest to a new creator recipient.\n     * Restricted to the factory, which forwards both self-service creator\n     * transfers and protocol-owner recovery overrides here, so vested\n     * buyback tokens track the same recipient as immediate creator fees\n     * rather than remaining stranded on the launch-time address. Vested but\n     * not-yet-released tokens follow the new recipient too, matching the\n     * intent of wallet recovery. Only the protocol split terms stay bound to\n     * the launch snapshot; the creator identity is managed here instead.\n     */\n    function updateCreatorRecipient(address token, address newRecipient) external {\n        if (msg.sender != factory) revert NotFactory();\n        if (token == address(0) || newRecipient == address(0)) revert ZeroAddress();\n\n        LaunchVest storage v = _vaults[token];\n        address previousRecipient = v.creatorRecipient;\n        if (previousRecipient == newRecipient) return;\n        v.creatorRecipient = newRecipient;\n        emit CreatorRecipientUpdated(token, previousRecipient, newRecipient);\n    }\n\n    /**\n     * @notice Total amount of `token` ever locked into this vault.\n     */\n    function totalLocked(address token) external view returns (uint256) {\n        return _vaults[token].totalLocked;\n    }\n\n    /**\n     * @notice Total amount of `token` already released from this vault.\n     */\n    function totalReleased(address token) external view returns (uint256) {\n        return _vaults[token].totalReleased;\n    }\n\n    /**\n     * @notice The launch's current weighted-average vesting start time.\n     * @dev Reporting only. Vesting is accounted from `vestedUnreleased`,\n     * `unvestedAmount`, `lastUpdate` and `vestingEnd`, which are settled on\n     * every lock and release. Interpolating this value against\n     * `VESTING_DURATION` will not reproduce `vestedAmount`, because already\n     * vested tokens are banked at each deposit rather than recomputed from\n     * the shifted clock. Read `vestedAmount` for the authoritative figure.\n     */\n    function vestingStart(address token) external view returns (uint256) {\n        return _vaults[token].vestingStart;\n    }\n\n    /**\n     * @notice Amount of `token` vested so far, released or not.\n     */\n    function vestedAmount(address token) external view returns (uint256) {\n        return _vestedAmount(_vaults[token]);\n    }\n\n    /**\n     * @notice Amount of `token` currently releasable: vested but not yet released.\n     */\n    function releasable(address token) external view returns (uint256) {\n        LaunchVest storage v = _vaults[token];\n        return v.vestedUnreleased + _previewNewlyVested(v, block.timestamp);\n    }\n\n    /**\n     * @notice Returns the immutable terms for the token's active vesting epoch.\n     */\n    function vestingTerms(address token)\n        external\n        view\n        returns (address creatorRecipient, address protocolRecipient, uint16 protocolFeeShareBps)\n    {\n        LaunchVest storage v = _vaults[token];\n        return (v.creatorRecipient, v.protocolRecipient, v.protocolFeeShareBps);\n    }\n\n    /**\n     * @dev Linear vest over VESTING_DURATION from the launch's current\n     * weighted-average start time, capped at the total ever locked.\n     */\n    function _vestedAmount(LaunchVest storage v) private view returns (uint256) {\n        return v.totalReleased + v.vestedUnreleased + _previewNewlyVested(v, block.timestamp);\n    }\n\n    /**\n     * @dev Crystallizes the linear portion vested since the previous state\n     * update while preserving the existing schedule's maturity.\n     */\n    function _checkpoint(LaunchVest storage v, uint256 nowTs) private {\n        uint256 newlyVested = _previewNewlyVested(v, nowTs);\n        if (newlyVested != 0) {\n            v.unvestedAmount -= newlyVested;\n            v.vestedUnreleased += newlyVested;\n        }\n        v.lastUpdate = nowTs;\n    }\n\n    /**\n     * @dev Previews how much of the active schedule vested since lastUpdate.\n     */\n    function _previewNewlyVested(LaunchVest storage v, uint256 nowTs) private view returns (uint256) {\n        if (v.unvestedAmount == 0 || nowTs <= v.lastUpdate) return 0;\n        if (nowTs >= v.vestingEnd) return v.unvestedAmount;\n\n        uint256 remainingDuration = v.vestingEnd - v.lastUpdate;\n        uint256 elapsed = nowTs - v.lastUpdate;\n        return (v.unvestedAmount * elapsed) / remainingDuration;\n    }\n\n    /**\n     * @dev A new epoch begins only after every token in the prior epoch has\n     * been released. This keeps every active weighted-average vest bound to\n     * one immutable set of beneficiaries without unbounded tranche storage.\n     */\n    function _setOrValidateVestingTerms(\n        LaunchVest storage v,\n        address token,\n        address creatorRecipient,\n        address protocolRecipient,\n        uint16 protocolFeeShareBps\n    ) private {\n        bool newEpoch = v.unvestedAmount == 0 && v.vestedUnreleased == 0;\n        if (newEpoch) {\n            // Seed the buyback beneficiary only when it has never been set.\n            // Once the factory has redirected the vest through\n            // updateCreatorRecipient (a creator transfer or a protocol\n            // recovery override), a later lock must not silently reset it\n            // back to the launch-time recipient, even across a fresh epoch.\n            if (v.creatorRecipient == address(0)) {\n                v.creatorRecipient = creatorRecipient;\n            }\n            v.protocolRecipient = protocolRecipient;\n            v.protocolFeeShareBps = protocolFeeShareBps;\n            emit VestingTermsSnapshotted(token, v.creatorRecipient, protocolRecipient, protocolFeeShareBps);\n            return;\n        }\n\n        // The creator recipient is deliberately excluded from this check: it\n        // is managed independently through updateCreatorRecipient, so recovery\n        // can move the vest without ever bricking a subsequent lock on a terms\n        // mismatch. The protocol split terms remain immutable per launch.\n        if (v.protocolRecipient != protocolRecipient || v.protocolFeeShareBps != protocolFeeShareBps) {\n            revert VestingTermsMismatch();\n        }\n    }\n\n    /**\n     * @dev Only the token's own registered curve may lock its buybacks.\n     * No per-launch administrator action or shared external hook is needed.\n     */\n    function _isAuthorizedLocker(address token, address caller) private view returns (bool) {\n        if (factory == address(0)) return false;\n        return caller == IBrishopLaunchFactory(factory).getLaunchedToken(token).curve;\n    }\n}\n"},"src/interfaces/IBrishop.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.26;\n\ninterface IBrishopFeeEscrow {\n    function credit(address recipient) external payable;\n    function creditToken(address recipient, address token, uint256 amount) external;\n    function claim() external returns (uint256);\n    function claim(uint256 amount) external returns (uint256);\n    function claimToken(address token) external returns (uint256);\n    function claimToken(address token, uint256 amount) external returns (uint256);\n    function balanceOf(address recipient) external view returns (uint256);\n    function balanceOfToken(address recipient, address token) external view returns (uint256);\n}\n\n// Names retained from PONS for fee-policy compatibility. buybackBurnBps funds\n// purchases locked in the five-year vault; it does not burn those tokens.\nstruct FeePolicySnapshot {\n    address protocolFeeRecipient;\n    uint16 protocolFeeShareBps;\n    uint16 buybackBurnBps;\n    uint16 hookFeeBps;\n    uint16 maxInternalPriceImpactBps;\n}\n\ninterface IBrishopFeePolicy {\n    function feeSweepOperator() external view returns (address);\n    function currentFeePolicy() external view returns (FeePolicySnapshot memory);\n}\n\ninterface IBrishopSnipeTax {\n    function snipeTaxStartBps() external view returns (uint256);\n    function snipeTaxSeconds() external view returns (uint256);\n}\n\ninterface IBrishopLaunchFactory {\n    struct LaunchedToken {\n        address token;\n        address curve;\n        address deployer;\n        address creatorFeeRecipient;\n        address pairToken;\n        uint16 creatorTaxBps;\n        bool buybackEnabled;\n        bool personality;\n        bool exists;\n    }\n    function getLaunchedToken(address token) external view returns (LaunchedToken memory);\n}\n"},"@openzeppelin/contracts/utils/Context.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},"@openzeppelin/contracts/access/Ownable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.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 * The initial owner is set to the address provided by the deployer. This can\n * 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    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\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        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling 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        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\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"},"@openzeppelin/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"@openzeppelin/contracts/utils/StorageSlot.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(newImplementation.code.length > 0);\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary StorageSlot {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    struct Int256Slot {\n        int256 value;\n    }\n\n    struct StringSlot {\n        string value;\n    }\n\n    struct BytesSlot {\n        bytes value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n     */\n    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `StringSlot` with member `value` located at `slot`.\n     */\n    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n     */\n    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n     */\n    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n     */\n    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n}\n"},"@openzeppelin/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"@openzeppelin/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\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 value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n     * 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 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},"@openzeppelin/contracts/access/Ownable2Step.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.20;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * This extension of the {Ownable} contract includes a two-step mechanism to transfer\n * ownership, where the new owner must call {acceptOwnership} in order to replace the\n * old one. This can help prevent common mistakes, such as transfers of ownership to\n * incorrect accounts, or to contracts that are unable to interact with the\n * permission system.\n *\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2Step is Ownable {\n    address private _pendingOwner;\n\n    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Returns the address of the pending owner.\n     */\n    function pendingOwner() public view virtual returns (address) {\n        return _pendingOwner;\n    }\n\n    /**\n     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n     * Can only be called by the current owner.\n     *\n     * Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.\n     */\n    function transferOwnership(address newOwner) public virtual override onlyOwner {\n        _pendingOwner = newOwner;\n        emit OwnershipTransferStarted(owner(), newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual override {\n        delete _pendingOwner;\n        super._transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev The new owner accepts the ownership transfer.\n     */\n    function acceptOwnership() public virtual {\n        address sender = _msgSender();\n        if (pendingOwner() != sender) {\n            revert OwnableUnauthorizedAccount(sender);\n        }\n        _transferOwnership(sender);\n    }\n}\n"},"@openzeppelin/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"},"@openzeppelin/contracts/utils/ReentrancyGuard.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/ReentrancyGuard.sol)\n\npragma solidity ^0.8.20;\n\nimport {StorageSlot} from \"./StorageSlot.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,\n * consider using {ReentrancyGuardTransient} instead.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n *\n * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced\n * by the {ReentrancyGuardTransient} variant in v6.0.\n *\n * @custom:stateless\n */\nabstract contract ReentrancyGuard {\n    using StorageSlot for bytes32;\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant REENTRANCY_GUARD_STORAGE =\n        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant NOT_ENTERED = 1;\n    uint256 private constant ENTERED = 2;\n\n    /**\n     * @dev Unauthorized reentrant call.\n     */\n    error ReentrancyGuardReentrantCall();\n\n    constructor() {\n        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    /**\n     * @dev A `view` only version of {nonReentrant}. Use to block view functions\n     * from being called, preventing reading from inconsistent contract state.\n     *\n     * CAUTION: This is a \"view\" modifier and does not change the reentrancy\n     * status. Use it only on view functions. For payable or non-payable functions,\n     * use the standard {nonReentrant} modifier instead.\n     */\n    modifier nonReentrantView() {\n        _nonReentrantBeforeView();\n        _;\n    }\n\n    function _nonReentrantBeforeView() private view {\n        if (_reentrancyGuardEntered()) {\n            revert ReentrancyGuardReentrantCall();\n        }\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be NOT_ENTERED\n        _nonReentrantBeforeView();\n\n        // Any calls to nonReentrant after this point will fail\n        _reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return _reentrancyGuardStorageSlot().getUint256Slot().value == ENTERED;\n    }\n\n    function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {\n        return REENTRANCY_GUARD_STORAGE;\n    }\n}\n"},"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        if (!_safeTransfer(token, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        if (!_safeTransferFrom(token, from, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n        return _safeTransfer(token, to, value, false);\n    }\n\n    /**\n     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n        return _safeTransferFrom(token, from, to, value, false);\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        if (!_safeApprove(token, spender, value, false)) {\n            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n     * return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.transfer.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(to, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n     * value: the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param from The sender of the tokens\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransferFrom(\n        IERC20 token,\n        address from,\n        address to,\n        uint256 value,\n        bool bubble\n    ) private returns (bool success) {\n        bytes4 selector = IERC20.transferFrom.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(from, shr(96, not(0))))\n            mstore(0x24, and(to, shr(96, not(0))))\n            mstore(0x44, value)\n            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n            mstore(0x60, 0)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n     * the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param spender The spender of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.approve.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(spender, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n}\n"},"@openzeppelin/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"}},"language":"Solidity","settings":{"viaIR":true,"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun"}},"stdJsonOutput":{"sources":{"src/BrishopBuybackVault.sol":{"id":19},"src/interfaces/IBrishop.sol":{"id":25},"@openzeppelin/contracts/utils/Context.sol":{"id":11},"@openzeppelin/contracts/access/Ownable.sol":{"id":0},"@openzeppelin/contracts/interfaces/IERC20.sol":{"id":4},"@openzeppelin/contracts/utils/StorageSlot.sol":{"id":14},"@openzeppelin/contracts/interfaces/IERC165.sol":{"id":3},"@openzeppelin/contracts/token/ERC20/IERC20.sol":{"id":7},"@openzeppelin/contracts/access/Ownable2Step.sol":{"id":1},"@openzeppelin/contracts/interfaces/IERC1363.sol":{"id":2},"@openzeppelin/contracts/utils/ReentrancyGuard.sol":{"id":13},"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol":{"id":10},"@openzeppelin/contracts/utils/introspection/IERC165.sol":{"id":15}},"contracts":{"src/BrishopBuybackVault.sol":{"BrishopBuybackVault":{"abi":[{"type":"constructor","inputs":[{"name":"initialOwner","type":"address","internalType":"address"},{"name":"feePolicy_","type":"address","internalType":"contract IBrishopFeePolicy"},{"name":"feeEscrow_","type":"address","internalType":"contract IBrishopFeeEscrow"}],"stateMutability":"nonpayable"},{"name":"AlreadyInitialized","type":"error","inputs":[]},{"name":"InvalidVestingTerms","type":"error","inputs":[]},{"name":"NotAuthorizedLocker","type":"error","inputs":[]},{"name":"NotFactory","type":"error","inputs":[]},{"name":"NotVestBeneficiary","type":"error","inputs":[]},{"name":"OwnableInvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"OwnableUnauthorizedAccount","type":"error","inputs":[{"name":"account","type":"address","internalType":"address"}]},{"name":"OwnershipCannotBeRenounced","type":"error","inputs":[]},{"name":"ReentrancyGuardReentrantCall","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"VestingTermsMismatch","type":"error","inputs":[]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"CreatorRecipientUpdated","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"previousRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"newRecipient","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"FactorySet","type":"event","inputs":[{"name":"factory","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"name":"Locked","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"depositor","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"newVestingStart","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"OwnershipTransferStarted","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Released","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"creatorAmount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"protocolAmount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"VestingTermsSnapshotted","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"creatorRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"protocolRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"protocolFeeShareBps","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"VESTING_DURATION","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"acceptOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"factory","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeEscrow","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IBrishopFeeEscrow"}],"stateMutability":"view"},{"name":"feePolicy","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IBrishopFeePolicy"}],"stateMutability":"view"},{"name":"lock","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"creatorRecipient","type":"address","internalType":"address"},{"name":"protocolRecipient","type":"address","internalType":"address"},{"name":"protocolFeeShareBps","type":"uint16","internalType":"uint16"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"pendingOwner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"releasable","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"release","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"released","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"pure"},{"name":"setFactory","type":"function","inputs":[{"name":"factory_","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"totalLocked","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalReleased","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"updateCreatorRecipient","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"newRecipient","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"vestedAmount","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"vestingStart","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"vestingTerms","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"creatorRecipient","type":"address","internalType":"address"},{"name":"protocolRecipient","type":"address","internalType":"address"},{"name":"protocolFeeShareBps","type":"uint16","internalType":"uint16"}],"stateMutability":"view"}],"metadata":"{\"compiler\":{\"version\":\"0.8.35+commit.47b9dedd\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"contract IBrishopFeePolicy\",\"name\":\"feePolicy_\",\"type\":\"address\"},{\"internalType\":\"contract IBrishopFeeEscrow\",\"name\":\"feeEscrow_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidVestingTerms\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotAuthorizedLocker\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotFactory\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotVestBeneficiary\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OwnershipCannotBeRenounced\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"VestingTermsMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousRecipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newRecipient\",\"type\":\"address\"}],\"name\":\"CreatorRecipientUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"factory\",\"type\":\"address\"}],\"name\":\"FactorySet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newVestingStart\",\"type\":\"uint256\"}],\"name\":\"Locked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"creatorAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolAmount\",\"type\":\"uint256\"}],\"name\":\"Released\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"creatorRecipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"protocolRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFeeShareBps\",\"type\":\"uint256\"}],\"name\":\"VestingTermsSnapshotted\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"VESTING_DURATION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeEscrow\",\"outputs\":[{\"internalType\":\"contract IBrishopFeeEscrow\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feePolicy\",\"outputs\":[{\"internalType\":\"contract IBrishopFeePolicy\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"creatorRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"protocolRecipient\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"protocolFeeShareBps\",\"type\":\"uint16\"}],\"name\":\"lock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"releasable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"release\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"released\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"factory_\",\"type\":\"address\"}],\"name\":\"setFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"totalLocked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"totalReleased\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newRecipient\",\"type\":\"address\"}],\"name\":\"updateCreatorRecipient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"vestedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"vestingStart\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"vestingTerms\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"creatorRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"protocolRecipient\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"protocolFeeShareBps\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"ReentrancyGuardReentrantCall()\":[{\"details\":\"Unauthorized reentrant call.\"}],\"SafeERC20FailedOperation(address)\":[{\"details\":\"An operation with an ERC-20 token failed.\"}]},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"constructor\":{\"params\":{\"feeEscrow_\":\"Shared claimable balance ledger releases are paid through.\",\"feePolicy_\":\"Shared Brishop protocol/creator fee policy.\",\"initialOwner\":\"Administrative owner; only used to wire the factory once.\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"release(address)\":{\"details\":\"Restricted to the two parties a release pays. Letting anyone choose when value leaves the vest is harmful in two ways. A caller can time a release inside the protocol owner's creator-recipient recovery window, flushing vested tokens to the very address the recovery exists to abandon. A caller can also advance the checkpoint every second, so each step rounds its newly vested amount down to zero and the vest stalls without ever paying out.\"},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner. Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.\"},\"vestingStart(address)\":{\"details\":\"Reporting only. Vesting is accounted from `vestedUnreleased`, `unvestedAmount`, `lastUpdate` and `vestingEnd`, which are settled on every lock and release. Interpolating this value against `VESTING_DURATION` will not reproduce `vestedAmount`, because already vested tokens are banked at each deposit rather than recomputed from the shifted clock. Read `vestedAmount` for the authoritative figure.\"}},\"title\":\"BrishopBuybackVault\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"lock(address,uint256,address,address,uint16)\":{\"notice\":\"Locks `amount` of `token` into its five-year vest, preserving the supplied beneficiaries and split for the active vesting epoch. Restricted to this token's registered Brishop curve, looked up live from the factory.\"},\"releasable(address)\":{\"notice\":\"Amount of `token` currently releasable: vested but not yet released.\"},\"release(address)\":{\"notice\":\"Releases every currently vested, not-yet-released token for `token`, using the beneficiaries and split frozen for its active vesting epoch.\"},\"renounceOwnership()\":{\"notice\":\"Permanently disabled. Ownership here exists only to perform the one-time factory wiring, and renouncing before that wiring would strand every future buyback lock.\"},\"setFactory(address)\":{\"notice\":\"One-time wiring of the v2 factory, set after both are deployed, used to authorize each launch's bonding curve as a locker.\"},\"totalLocked(address)\":{\"notice\":\"Total amount of `token` ever locked into this vault.\"},\"totalReleased(address)\":{\"notice\":\"Total amount of `token` already released from this vault.\"},\"updateCreatorRecipient(address,address)\":{\"notice\":\"Redirects a launch's buyback vest to a new creator recipient. Restricted to the factory, which forwards both self-service creator transfers and protocol-owner recovery overrides here, so vested buyback tokens track the same recipient as immediate creator fees rather than remaining stranded on the launch-time address. Vested but not-yet-released tokens follow the new recipient too, matching the intent of wallet recovery. Only the protocol split terms stay bound to the launch snapshot; the creator identity is managed here instead.\"},\"vestedAmount(address)\":{\"notice\":\"Amount of `token` vested so far, released or not.\"},\"vestingStart(address)\":{\"notice\":\"The launch's current weighted-average vesting start time.\"},\"vestingTerms(address)\":{\"notice\":\"Returns the immutable terms for the token's active vesting epoch.\"}},\"notice\":\"Holds every launch's bought-back memecoin supply and releases it linearly over five years instead of burning it immediately, splitting every release between the creator and the protocol on the launch's recorded fee shares. One shared deployment serves every launch, the same \\\"single deployment for every token\\\" pattern BrishopFeeEscrow already uses. Note that the split applies to the release, not to the funding. The permanent curve carves the buyback slice out of the creator's share of the fees alone, so the creator funds the entire lock and then receives only their fee share of it back. Enabling a buyback therefore moves value from the creator to the protocol relative to taking the fees directly, by an amount that grows with `buybackBurnBps`. Deposits use a weighted-average vesting clock instead of per-deposit tranches: a launch's fee sweep can add to its lock on every single sweep, and tracking an unbounded array of tranches would make `release()`'s gas cost grow forever. Instead, each new deposit shifts the launch's single `vestingStart` forward by an amount proportional to the deposit's share of the new total, so a large existing lock is barely disturbed by a small top-up, and a small existing lock is pulled close to the new deposit's own clock. `vestedAmount` at any time reflects a fair, size-weighted blend across every deposit made so far.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/BrishopBuybackVault.sol\":\"BrishopBuybackVault\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8ed324d3920bb545059d66ab97d43e43ee85fd3bd52e03e401f020afb0b120f6\",\"dweb:/ipfs/QmfEckWLmZkDDcoWrkEvMWhms66xwTLff9DDhegYpvHo1a\"]},\"@openzeppelin/contracts/access/Ownable2Step.sol\":{\"keccak256\":\"0xdcad8898fda432696597752e8ec361b87d85c82cb258115427af006dacf7128c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e2c9d517f0c136d54bd00cd57959d25681d4d6273f5bbbc263afe228303772f0\",\"dweb:/ipfs/QmReNFjXBiufByiAAzfSQ2SM5r3qeUErn46BmN3yVRvrek\"]},\"@openzeppelin/contracts/interfaces/IERC1363.sol\":{\"keccak256\":\"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100\",\"dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d\"]},\"@openzeppelin/contracts/interfaces/IERC165.sol\":{\"keccak256\":\"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037\",\"dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ\"]},\"@openzeppelin/contracts/interfaces/IERC20.sol\":{\"keccak256\":\"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d\",\"dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303\",\"dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV\"]},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0x304d732678032a9781ae85c8f204c8fba3d3a5e31c02616964e75cfdc5049098\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://299ced486011781dc98f638059678323c03079fefae1482abaa2135b22fa92d0\",\"dweb:/ipfs/QmbZNbcPTBxNvwChavN2kkZZs7xHhYL7mv51KrxMhsMs3j\"]},\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]},\"@openzeppelin/contracts/utils/ReentrancyGuard.sol\":{\"keccak256\":\"0xa516cbf1c7d15d3517c2d668601ce016c54395bf5171918a14e2686977465f53\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1e1d079e8edfb58efd23a311e315a4807b01b5d1cf153f8fa2d0608b9dec3e99\",\"dweb:/ipfs/QmTBExeX2SDTkn5xbk5ssbYSx7VqRp9H4Ux1CY4uQM4b9N\"]},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9f660b1f351b757dfe01438e59888f31f33ded3afcf5cb5b0d9bf9aa6f320a8b\",\"dweb:/ipfs/QmarDJ5hZEgBtCmmrVzEZWjub9769eD686jmzb2XpSU1cM\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]},\"src/BrishopBuybackVault.sol\":{\"keccak256\":\"0x0becf05283bc8b8964a8d100e23b887a188c82c95fcad98e22f5217ffc9e58c9\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://137a6aaded4724a3474b3c08067693245523ed517a84aafc5c146353852bb32d\",\"dweb:/ipfs/QmQ4JfAQYR3eqhowQgibERLGiTfowSnH1QRWY6D1983eFW\"]},\"src/interfaces/IBrishop.sol\":{\"keccak256\":\"0x329d57dfed260932f89ed7a9f0b91ed7236e12777f41ebf8599495ce294a8d2f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://dd6053f039743beb42223b3228361129753dce8717c96291dba5820e52ef9892\",\"dweb:/ipfs/QmeSF8Mo9XyXb3ZGp8ns6h2cLo1G8n4f8UyyUoHe8w4piF\"]}},\"version\":1}","userdoc":{"kind":"user","notice":"Holds every launch's bought-back memecoin supply and releases it linearly over five years instead of burning it immediately, splitting every release between the creator and the protocol on the launch's recorded fee shares. One shared deployment serves every launch, the same \"single deployment for every token\" pattern BrishopFeeEscrow already uses. Note that the split applies to the release, not to the funding. The permanent curve carves the buyback slice out of the creator's share of the fees alone, so the creator funds the entire lock and then receives only their fee share of it back. Enabling a buyback therefore moves value from the creator to the protocol relative to taking the fees directly, by an amount that grows with `buybackBurnBps`. Deposits use a weighted-average vesting clock instead of per-deposit tranches: a launch's fee sweep can add to its lock on every single sweep, and tracking an unbounded array of tranches would make `release()`'s gas cost grow forever. Instead, each new deposit shifts the launch's single `vestingStart` forward by an amount proportional to the deposit's share of the new total, so a large existing lock is barely disturbed by a small top-up, and a small existing lock is pulled close to the new deposit's own clock. `vestedAmount` at any time reflects a fair, size-weighted blend across every deposit made so far.","methods":{"release(address)":{"notice":"Releases every currently vested, not-yet-released token for `token`, using the beneficiaries and split frozen for its active vesting epoch."},"releasable(address)":{"notice":"Amount of `token` currently releasable: vested but not yet released."},"renounceOwnership()":{"notice":"Permanently disabled. Ownership here exists only to perform the one-time factory wiring, and renouncing before that wiring would strand every future buyback lock."},"setFactory(address)":{"notice":"One-time wiring of the v2 factory, set after both are deployed, used to authorize each launch's bonding curve as a locker."},"totalLocked(address)":{"notice":"Total amount of `token` ever locked into this vault."},"vestedAmount(address)":{"notice":"Amount of `token` vested so far, released or not."},"vestingStart(address)":{"notice":"The launch's current weighted-average vesting start time."},"vestingTerms(address)":{"notice":"Returns the immutable terms for the token's active vesting epoch."},"totalReleased(address)":{"notice":"Total amount of `token` already released from this vault."},"updateCreatorRecipient(address,address)":{"notice":"Redirects a launch's buyback vest to a new creator recipient. Restricted to the factory, which forwards both self-service creator transfers and protocol-owner recovery overrides here, so vested buyback tokens track the same recipient as immediate creator fees rather than remaining stranded on the launch-time address. Vested but not-yet-released tokens follow the new recipient too, matching the intent of wallet recovery. Only the protocol split terms stay bound to the launch snapshot; the creator identity is managed here instead."},"lock(address,uint256,address,address,uint16)":{"notice":"Locks `amount` of `token` into its five-year vest, preserving the supplied beneficiaries and split for the active vesting epoch. Restricted to this token's registered Brishop curve, looked up live from the factory."}},"version":1},"devdoc":{"kind":"dev","title":"BrishopBuybackVault","errors":{"OwnableInvalidOwner(address)":[{"details":"The owner is not a valid owner account. (eg. `address(0)`)"}],"ReentrancyGuardReentrantCall()":[{"details":"Unauthorized reentrant call."}],"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}],"OwnableUnauthorizedAccount(address)":[{"details":"The caller account is not authorized to perform an operation."}]},"methods":{"owner()":{"details":"Returns the address of the current owner."},"constructor":{"params":{"feeEscrow_":"Shared claimable balance ledger releases are paid through.","feePolicy_":"Shared Brishop protocol/creator fee policy.","initialOwner":"Administrative owner; only used to wire the factory once."}},"pendingOwner()":{"details":"Returns the address of the pending owner."},"release(address)":{"details":"Restricted to the two parties a release pays. Letting anyone choose when value leaves the vest is harmful in two ways. A caller can time a release inside the protocol owner's creator-recipient recovery window, flushing vested tokens to the very address the recovery exists to abandon. A caller can also advance the checkpoint every second, so each step rounds its newly vested amount down to zero and the vest stalls without ever paying out."},"acceptOwnership()":{"details":"The new owner accepts the ownership transfer."},"vestingStart(address)":{"details":"Reporting only. Vesting is accounted from `vestedUnreleased`, `unvestedAmount`, `lastUpdate` and `vestingEnd`, which are settled on every lock and release. Interpolating this value against `VESTING_DURATION` will not reproduce `vestedAmount`, because already vested tokens are banked at each deposit rather than recomputed from the shifted clock. Read `vestedAmount` for the authoritative figure."},"transferOwnership(address)":{"details":"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner. Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer."}},"version":1},"storageLayout":{"types":{"t_uint16":{"label":"uint16","encoding":"inplace","numberOfBytes":"2"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_struct(LaunchVest)7027_storage":{"label":"struct BrishopBuybackVault.LaunchVest","members":[{"slot":"0","type":"t_uint256","astId":7008,"label":"totalLocked","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"1","type":"t_uint256","astId":7010,"label":"totalReleased","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"2","type":"t_uint256","astId":7012,"label":"vestingStart","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"3","type":"t_uint256","astId":7014,"label":"vestedUnreleased","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"4","type":"t_uint256","astId":7016,"label":"unvestedAmount","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"5","type":"t_uint256","astId":7018,"label":"lastUpdate","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"6","type":"t_uint256","astId":7020,"label":"vestingEnd","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"7","type":"t_address","astId":7022,"label":"creatorRecipient","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"8","type":"t_address","astId":7024,"label":"protocolRecipient","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"8","type":"t_uint16","astId":7026,"label":"protocolFeeShareBps","offset":20,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"}],"encoding":"inplace","numberOfBytes":"288"},"t_mapping(t_address,t_struct(LaunchVest)7027_storage)":{"key":"t_address","label":"mapping(address => struct BrishopBuybackVault.LaunchVest)","value":"t_struct(LaunchVest)7027_storage","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_address","astId":8,"label":"_owner","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"1","type":"t_address","astId":156,"label":"_pendingOwner","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"2","type":"t_address","astId":7099,"label":"factory","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"},{"slot":"3","type":"t_mapping(t_address,t_struct(LaunchVest)7027_storage)","astId":7104,"label":"_vaults","offset":0,"contract":"src/BrishopBuybackVault.sol:BrishopBuybackVault"}]},"transientStorageLayout":{"types":null,"storage":[]},"evm":{"bytecode":{"object":"60c03461015f57601f6112db38819003918201601f19168301916001600160401b038311848410176101635780849260609460405283398101031261015f5780516001600160a01b038116919082900361015f5760208101516001600160a01b0381169182820361015f5760400151916001600160a01b0383169081840361015f57841561014c57600180546001600160a01b03199081169091555f80549182168717815560405196916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a360017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f005515908115610143575b506101345760805260a05261116390816101788239608051816103cf015260a05181818161021301526107aa0152f35b63d92e233d60e01b5f5260045ffd5b9050155f610104565b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c908163032bbf4f146106235750806319165587146105df578063384711cc1461058f5780634cfc4d30146105715780635ad7fc171461053a5780635bb478081461049d578063715018a61461047e57806379ba5097146103fe57806382589038146103ba578063892823f7146103445780638da5cb5b1461031d578063a3f8eace146102cd578063b224cf641461026a578063c45a015514610242578063c4b7de97146101fe578063d79779b2146101c3578063d8fb93371461018b578063e30c3978146101635763f2fde38b146100ed575f80fd5b3461015f57602036600319011261015f5761010661065a565b61010e610e1b565b60018060a01b0316806bffffffffffffffffffffffff60a01b600154161760015560018060a01b035f54167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227005f80a3005b5f80fd5b3461015f575f36600319011261015f576001546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b036101ac61065a565b165f526003602052602060405f2054604051908152f35b3461015f57602036600319011261015f576001600160a01b036101e461065a565b165f5260036020526020600160405f200154604051908152f35b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f576002546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b0361028b61065a565b165f526003602052606060405f2061ffff600860018060a01b0360078401541692015460405192835260018060a01b038116602084015260a01c166040820152f35b3461015f57602036600319011261015f576001600160a01b036102ee61065a565b165f526003602052602061031560405f2061030f60038201549142906110b4565b90610670565b604051908152f35b3461015f575f36600319011261015f575f546040516001600160a01b039091168152602090f35b3461015f5760a036600319011261015f5761035d61065a565b6044356001600160a01b038116810361015f576064356001600160a01b038116810361015f576084359161ffff8316830361015f576103a79361039e610da6565b60243590610adc565b60015f51602061110e5f395f51905f5255005b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f57600154336001600160a01b0382160361046b576001600160a01b03199081166001555f805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b63118cdaa760e01b5f523360045260245ffd5b3461015f575f36600319011261015f576317d5c96560e11b5f5260045ffd5b3461015f57602036600319011261015f576104b661065a565b6104be610e1b565b600254906001600160a01b03821661052c576001600160a01b031690811561051d576001600160a01b03191681176002556040519081527f1edf3afd4ac789736e00d216cd88be164ddcef26a6eedcc30cdb0cb62f3741b190602090a1005b63d92e233d60e01b5f5260045ffd5b62dc149f60e41b5f5260045ffd5b3461015f57604036600319011261015f5761055361065a565b6024356001600160a01b038116810361015f5761056f91610a3d565b005b3461015f575f36600319011261015f57602060405163096601808152f35b3461015f57602036600319011261015f576001600160a01b036105b061065a565b165f526003602052602061031560405f2061030f6105d76001830154600384015490610670565b9142906110b4565b3461015f57602036600319011261015f57602061060a6105fd61065a565b610605610da6565b610705565b60015f51602061110e5f395f51905f5255604051908152f35b3461015f57602036600319011261015f576020906001600160a01b0361064761065a565b165f5260038252600260405f2001548152f35b600435906001600160a01b038216820361015f57565b9190820180921161067d57565b634e487b7160e01b5f52601160045260245ffd5b8181029291811591840414171561067d57565b81156106ae570490565b634e487b7160e01b5f52601260045260245ffd5b9190820391821161067d57565b90601f8019910116810190811067ffffffffffffffff8211176106f157604052565b634e487b7160e01b5f52604160045260245ffd5b6002549091905f906001600160a01b031615610a2e576001600160a01b038381165f81815260036020526040902060078101805491969294909390911633141580610a17575b610a08576107594287610dde565b600386019586549687156109fd57905f600892556001810161077c898254610670565b90550161271061079461ffff835460a01c1689610691565b04926107a084896106c2565b9460018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169260405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109ee575b60405215610938575b856108c7575b5085610844575b505050507f82e416ba72d10e709b5de7ac16f5f49ff1d94f22d55bf582d353d3c313a1e8dd9160409182519182526020820152a2565b546001600160a01b0316823b156108c3576040516309ad4dd960e01b81526001600160a01b03918216600482015291166024820152604481018590529082908290606490829084905af180156108b8576108a0575b808061080e565b6108ab8280926106cf565b6108b55780610899565b80fd5b6040513d84823e3d90fd5b8380fd5b546001600160a01b0316833b1561015f576040516309ad4dd960e01b81526001600160a01b0391821660048201529083166024820152604481018690525f8160648183885af1801561092d5715610807576109259194505f906106cf565b5f925f610807565b6040513d5f823e3d90fd5b60405163095ea7b360e01b5f52846004525f60245260205f604481808d5af19060015f51148216156109d6575b604052156109a25760405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109b5575b604052610801575b87635274afe760e01b5f5260045260245ffd5b9060018115166109cd57893b15153d1516169061099a565b503d5f823e3d90fd5b9060018115166109cd57893b15153d15161690610965565b90893b15153d151616906107f8565b505f96505050505050565b630da3333b60e01b5f5260045ffd5b5060088601546001600160a01b031633141561074b565b631966391b60e11b5f5260045ffd5b6002546001600160a01b03163303610a2e576001600160a01b03169081158015610acb575b61051d575f82815260036020526040902060070180546001600160a01b039283169392169190838314610ac55780546001600160a01b031916841790557f38f9c71383b6e3fe639172c6b3a3d4418fa722b4abf99bfd8e31f92bd5ea23f05f80a4565b50505050565b506001600160a01b03811615610a62565b92936001600160a01b038416939291841561051d576002546001600160a01b031615610a2e57610b0c3385610e4f565b15610d97578015610cc8576001600160a01b038316158015610d86575b8015610d77575b610d68576040516370a0823160e01b8152306004820152602081602481895afa90811561092d575f91610d36575b50604051916323b872dd60e01b5f52336004523060245260445260205f606481808a5af160015f5114811615610d17575b826040525f60605215610d04576370a0823160e01b8252306004830152602082602481895afa801561092d575f90610cd0575b610bcc92506106c2565b948515610cc857610bf492855f52600360205260405f2094610bee4287610dde565b85610fa3565b600481018054610c14610c078683610670565b9180610cb4575f90610691565b6309660180860286810463096601800361067d57610c368391610c3b93610670565b6106a4565b9155426005830155610c4d8142610670565b60068301556309660180036309660180811161067d57610c6d90426106c2565b90816002820155610c7f848254610670565b905560405192835260208301527f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c542960403393a3565b610cc24260068701546106c2565b90610691565b505050505050565b506020823d602011610cfc575b81610cea602093836106cf565b8101031261015f57610bcc9151610bc2565b3d9150610cdd565b85635274afe760e01b5f5260045260245ffd5b6001811516610d2d57863b15153d151616610b8f565b823d5f823e3d90fd5b90506020813d602011610d60575b81610d51602093836106cf565b8101031261015f57515f610b5e565b3d9150610d44565b63a7d7d0c560e01b5f5260045ffd5b5061271061ffff831611610b30565b506001600160a01b03861615610b29565b63ba13c3d960e01b5f5260045ffd5b60025f51602061110e5f395f51905f525414610dcf5760025f51602061110e5f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b600590610deb83826110b4565b80610df557500155565b60048201610e048282546106c2565b9055610e1560038301918254610670565b90550155565b5f546001600160a01b0316330361046b57565b51906001600160a01b038216820361015f57565b5190811515820361015f57565b6002546001600160a01b0316908115610f9c57604051631e7945ad60e11b81526001600160a01b0390911660048201529061012090829060249082905afa90811561092d575f91610eb1575b50602001516001600160a01b0391821691161490565b9050610120813d8211610f94575b81610ecd61012093836106cf565b8101031261015f5760405190610120820182811067ffffffffffffffff8211176106f157604052610efd81610e2e565b8252610f0b60208201610e2e565b6020830152610f1c60408201610e2e565b6040830152610f2d60608201610e2e565b6060830152610f3e60808201610e2e565b608083015260a081015161ffff8116810361015f57610f88916101009160a0850152610f6c60c08201610e42565b60c0850152610f7d60e08201610e42565b60e085015201610e42565b6101008201525f610e9b565b3d9150610ebf565b5050505f90565b91600483015415806110a8575b611001575050600801546001600160a01b0380821692169190911480159290610feb575b5050610fdc57565b638a621fd960e01b5f5260045ffd5b61ffff91925081169160a01c1614155f80610fd4565b6007830180549295937fa92f5227e67257769e49f294586ea055f8d5714595dfdcc2d8a0cac8a3e50fbe93602093600892916001600160a01b031615611087575b500180546001600160b01b0319166001600160a01b0396871690811760a087901b61ffff60a01b1617909155905460405161ffff9590951685529095908516941692a4565b83546001600160a01b0319166001600160a01b03919091161783555f611042565b50600383015415610fb0565b90600482015491821580156110ff575b610f9c57600681015490818310156110f95792610cc2610c36926110f060056110f697015480926106c2565b946106c2565b90565b50505090565b5060058101548211156110c456fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220f824fefce66b4cf1569e7d371fa6370cdccc1c2f8a88bdedc443c0ce47e0831a64736f6c63430008230033","sourceMap":"2090:13499:19:-:0;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;1273:26:0;;1269:95;;2090:13499:19;;;-1:-1:-1;;;;;;2090:13499:19;;;;;;-1:-1:-1;2090:13499:19;;;;;;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;3052:40:0;;-1:-1:-1;3052:40:0;2093:20:1;1505:66:13;2365:1;4049:33:19;:70;;;;;-1:-1:-1;4045:96:19;;;4151:22;;4183;;2090:13499;;;;;;4151:22;2090:13499;;;;;4183:22;2090:13499;;;;;;;;;;;4045:96;4128:13;;;-1:-1:-1;4128:13:19;;-1:-1:-1;4128:13:19;4049:70;4086:33;;;4049:70;;;1269:95:0;1322:31;;;-1:-1:-1;1322:31:0;-1:-1:-1;1322:31:0;2090:13499:19;;-1:-1:-1;1322:31:0;2090:13499:19;-1:-1:-1;2090:13499:19;;;;;;-1:-1:-1;2090:13499:19;;;;;-1:-1:-1;2090:13499:19","linkReferences":{}},"deployedBytecode":{"object":"6080806040526004361015610012575f80fd5b5f3560e01c908163032bbf4f146106235750806319165587146105df578063384711cc1461058f5780634cfc4d30146105715780635ad7fc171461053a5780635bb478081461049d578063715018a61461047e57806379ba5097146103fe57806382589038146103ba578063892823f7146103445780638da5cb5b1461031d578063a3f8eace146102cd578063b224cf641461026a578063c45a015514610242578063c4b7de97146101fe578063d79779b2146101c3578063d8fb93371461018b578063e30c3978146101635763f2fde38b146100ed575f80fd5b3461015f57602036600319011261015f5761010661065a565b61010e610e1b565b60018060a01b0316806bffffffffffffffffffffffff60a01b600154161760015560018060a01b035f54167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227005f80a3005b5f80fd5b3461015f575f36600319011261015f576001546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b036101ac61065a565b165f526003602052602060405f2054604051908152f35b3461015f57602036600319011261015f576001600160a01b036101e461065a565b165f5260036020526020600160405f200154604051908152f35b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f576002546040516001600160a01b039091168152602090f35b3461015f57602036600319011261015f576001600160a01b0361028b61065a565b165f526003602052606060405f2061ffff600860018060a01b0360078401541692015460405192835260018060a01b038116602084015260a01c166040820152f35b3461015f57602036600319011261015f576001600160a01b036102ee61065a565b165f526003602052602061031560405f2061030f60038201549142906110b4565b90610670565b604051908152f35b3461015f575f36600319011261015f575f546040516001600160a01b039091168152602090f35b3461015f5760a036600319011261015f5761035d61065a565b6044356001600160a01b038116810361015f576064356001600160a01b038116810361015f576084359161ffff8316830361015f576103a79361039e610da6565b60243590610adc565b60015f51602061110e5f395f51905f5255005b3461015f575f36600319011261015f576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461015f575f36600319011261015f57600154336001600160a01b0382160361046b576001600160a01b03199081166001555f805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b63118cdaa760e01b5f523360045260245ffd5b3461015f575f36600319011261015f576317d5c96560e11b5f5260045ffd5b3461015f57602036600319011261015f576104b661065a565b6104be610e1b565b600254906001600160a01b03821661052c576001600160a01b031690811561051d576001600160a01b03191681176002556040519081527f1edf3afd4ac789736e00d216cd88be164ddcef26a6eedcc30cdb0cb62f3741b190602090a1005b63d92e233d60e01b5f5260045ffd5b62dc149f60e41b5f5260045ffd5b3461015f57604036600319011261015f5761055361065a565b6024356001600160a01b038116810361015f5761056f91610a3d565b005b3461015f575f36600319011261015f57602060405163096601808152f35b3461015f57602036600319011261015f576001600160a01b036105b061065a565b165f526003602052602061031560405f2061030f6105d76001830154600384015490610670565b9142906110b4565b3461015f57602036600319011261015f57602061060a6105fd61065a565b610605610da6565b610705565b60015f51602061110e5f395f51905f5255604051908152f35b3461015f57602036600319011261015f576020906001600160a01b0361064761065a565b165f5260038252600260405f2001548152f35b600435906001600160a01b038216820361015f57565b9190820180921161067d57565b634e487b7160e01b5f52601160045260245ffd5b8181029291811591840414171561067d57565b81156106ae570490565b634e487b7160e01b5f52601260045260245ffd5b9190820391821161067d57565b90601f8019910116810190811067ffffffffffffffff8211176106f157604052565b634e487b7160e01b5f52604160045260245ffd5b6002549091905f906001600160a01b031615610a2e576001600160a01b038381165f81815260036020526040902060078101805491969294909390911633141580610a17575b610a08576107594287610dde565b600386019586549687156109fd57905f600892556001810161077c898254610670565b90550161271061079461ffff835460a01c1689610691565b04926107a084896106c2565b9460018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169260405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109ee575b60405215610938575b856108c7575b5085610844575b505050507f82e416ba72d10e709b5de7ac16f5f49ff1d94f22d55bf582d353d3c313a1e8dd9160409182519182526020820152a2565b546001600160a01b0316823b156108c3576040516309ad4dd960e01b81526001600160a01b03918216600482015291166024820152604481018590529082908290606490829084905af180156108b8576108a0575b808061080e565b6108ab8280926106cf565b6108b55780610899565b80fd5b6040513d84823e3d90fd5b8380fd5b546001600160a01b0316833b1561015f576040516309ad4dd960e01b81526001600160a01b0391821660048201529083166024820152604481018690525f8160648183885af1801561092d5715610807576109259194505f906106cf565b5f925f610807565b6040513d5f823e3d90fd5b60405163095ea7b360e01b5f52846004525f60245260205f604481808d5af19060015f51148216156109d6575b604052156109a25760405163095ea7b360e01b5f52846004528a60245260205f604481808d5af19060015f51148216156109b5575b604052610801575b87635274afe760e01b5f5260045260245ffd5b9060018115166109cd57893b15153d1516169061099a565b503d5f823e3d90fd5b9060018115166109cd57893b15153d15161690610965565b90893b15153d151616906107f8565b505f96505050505050565b630da3333b60e01b5f5260045ffd5b5060088601546001600160a01b031633141561074b565b631966391b60e11b5f5260045ffd5b6002546001600160a01b03163303610a2e576001600160a01b03169081158015610acb575b61051d575f82815260036020526040902060070180546001600160a01b039283169392169190838314610ac55780546001600160a01b031916841790557f38f9c71383b6e3fe639172c6b3a3d4418fa722b4abf99bfd8e31f92bd5ea23f05f80a4565b50505050565b506001600160a01b03811615610a62565b92936001600160a01b038416939291841561051d576002546001600160a01b031615610a2e57610b0c3385610e4f565b15610d97578015610cc8576001600160a01b038316158015610d86575b8015610d77575b610d68576040516370a0823160e01b8152306004820152602081602481895afa90811561092d575f91610d36575b50604051916323b872dd60e01b5f52336004523060245260445260205f606481808a5af160015f5114811615610d17575b826040525f60605215610d04576370a0823160e01b8252306004830152602082602481895afa801561092d575f90610cd0575b610bcc92506106c2565b948515610cc857610bf492855f52600360205260405f2094610bee4287610dde565b85610fa3565b600481018054610c14610c078683610670565b9180610cb4575f90610691565b6309660180860286810463096601800361067d57610c368391610c3b93610670565b6106a4565b9155426005830155610c4d8142610670565b60068301556309660180036309660180811161067d57610c6d90426106c2565b90816002820155610c7f848254610670565b905560405192835260208301527f967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c542960403393a3565b610cc24260068701546106c2565b90610691565b505050505050565b506020823d602011610cfc575b81610cea602093836106cf565b8101031261015f57610bcc9151610bc2565b3d9150610cdd565b85635274afe760e01b5f5260045260245ffd5b6001811516610d2d57863b15153d151616610b8f565b823d5f823e3d90fd5b90506020813d602011610d60575b81610d51602093836106cf565b8101031261015f57515f610b5e565b3d9150610d44565b63a7d7d0c560e01b5f5260045ffd5b5061271061ffff831611610b30565b506001600160a01b03861615610b29565b63ba13c3d960e01b5f5260045ffd5b60025f51602061110e5f395f51905f525414610dcf5760025f51602061110e5f395f51905f5255565b633ee5aeb560e01b5f5260045ffd5b600590610deb83826110b4565b80610df557500155565b60048201610e048282546106c2565b9055610e1560038301918254610670565b90550155565b5f546001600160a01b0316330361046b57565b51906001600160a01b038216820361015f57565b5190811515820361015f57565b6002546001600160a01b0316908115610f9c57604051631e7945ad60e11b81526001600160a01b0390911660048201529061012090829060249082905afa90811561092d575f91610eb1575b50602001516001600160a01b0391821691161490565b9050610120813d8211610f94575b81610ecd61012093836106cf565b8101031261015f5760405190610120820182811067ffffffffffffffff8211176106f157604052610efd81610e2e565b8252610f0b60208201610e2e565b6020830152610f1c60408201610e2e565b6040830152610f2d60608201610e2e565b6060830152610f3e60808201610e2e565b608083015260a081015161ffff8116810361015f57610f88916101009160a0850152610f6c60c08201610e42565b60c0850152610f7d60e08201610e42565b60e085015201610e42565b6101008201525f610e9b565b3d9150610ebf565b5050505f90565b91600483015415806110a8575b611001575050600801546001600160a01b0380821692169190911480159290610feb575b5050610fdc57565b638a621fd960e01b5f5260045ffd5b61ffff91925081169160a01c1614155f80610fd4565b6007830180549295937fa92f5227e67257769e49f294586ea055f8d5714595dfdcc2d8a0cac8a3e50fbe93602093600892916001600160a01b031615611087575b500180546001600160b01b0319166001600160a01b0396871690811760a087901b61ffff60a01b1617909155905460405161ffff9590951685529095908516941692a4565b83546001600160a01b0319166001600160a01b03919091161783555f611042565b50600383015415610fb0565b90600482015491821580156110ff575b610f9c57600681015490818310156110f95792610cc2610c36926110f060056110f697015480926106c2565b946106c2565b90565b50505090565b5060058101548211156110c456fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220f824fefce66b4cf1569e7d371fa6370cdccc1c2f8a88bdedc443c0ce47e0831a64736f6c63430008230033","sourceMap":"2090:13499:19:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;2090:13499:19;;;;;;;;;;1738:24:1;2090:13499:19;;;1738:24:1;2090:13499:19;;;;;;;;;1777:43:1;2090:13499:19;1777:43:1;;2090:13499:19;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;10268:7;2090:13499;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;10483:7;2090:13499;;;10483:28;2090:13499;;;10483:28;2090:13499;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;3527:44;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;3577:22;2090:13499;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;11995:7;2090:13499;;;;;;;12047:19;2090:13499;;;;;12027:18;;;2090:13499;;12047:19;;2090:13499;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;11592:7;2090:13499;;;11623:60;2090:13499;;;11644:39;11592:7;11623:18;;2090:13499;11667:15;;11644:39;;:::i;:::-;11623:60;;:::i;:::-;2090:13499;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;:::i;:::-;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;;;;;3054:1:13;2989:103;;;:::i;:::-;2090:13499:19;;3054:1:13;;:::i;:::-;2090:13499:19;-1:-1:-1;;;;;;;;;;;2090:13499:19;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;3477:44;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;1311:13:1;2090:13499:19;735:10:11;-1:-1:-1;;;;;2090:13499:19;;2339:24:1;2335:96;;-1:-1:-1;;;;;;2090:13499:19;;;1311:13:1;2090:13499:19;;;;735:10:11;2090:13499:19;;;;;;;-1:-1:-1;;;;;2090:13499:19;;3052:40:0;;2090:13499:19;3052:40:0;2090:13499:19;2335:96:1;2386:34;;;2090:13499:19;2386:34:1;735:10:11;2090:13499:19;;;;2386:34:1;2090:13499:19;;;;;;-1:-1:-1;;2090:13499:19;;;;4909:28;;;2090:13499;4909:28;2090:13499;;4909:28;2090:13499;;;;;;-1:-1:-1;;2090:13499:19;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;4450:7:19;2090:13499;;-1:-1:-1;;;;;2090:13499:19;;4446:54;;-1:-1:-1;;;;;2090:13499:19;;4514:22;;4510:48;;-1:-1:-1;;;;;;2090:13499:19;;;4450:7;2090:13499;;;;;;4601:20;;2090:13499;;4601:20;2090:13499;4510:48;4545:13;;;2090:13499;4545:13;2090:13499;;4545:13;4446:54;4480:20;;;2090:13499;4480:20;2090:13499;;4480:20;2090:13499;;;;;;-1:-1:-1;;2090:13499:19;;;;;;:::i;:::-;;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;;2634:12;2090:13499;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;11364:7;2090:13499;;;12353:78;2090:13499;;;12392:39;12353:36;:15;;;2090:13499;11364:7;12371:18;;2090:13499;12353:36;;:::i;:::-;12415:15;;12392:39;;:::i;2090:13499::-;;;;;;-1:-1:-1;;2090:13499:19;;;;;8005:961;2090:13499;;:::i;:::-;2989:103:13;;:::i;:::-;8005:961:19;:::i;:::-;2365:1:13;-1:-1:-1;;;;;;;;;;;2090:13499:19;;;;;;;;;;;;;-1:-1:-1;;2090:13499:19;;;;;;-1:-1:-1;;;;;2090:13499:19;;:::i;:::-;;;;11143:7;2090:13499;;11143:27;2090:13499;;;11143:27;2090:13499;;;;;;;;-1:-1:-1;;;;;2090:13499:19;;;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2579:6::-;;;;;;;:::o;:::-;2090:13499;;;2579:6;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;2090:13499;;;-1:-1:-1;2579:6:19;;;;;-1:-1:-1;2579:6:19;8005:961;8100:7;2090:13499;8005:961;;;-1:-1:-1;;;;;;;2090:13499:19;8100:21;8096:46;;-1:-1:-1;;;;;2090:13499:19;;;-1:-1:-1;2090:13499:19;;;8176:7;2090:13499;;;;;8218:18;;;2090:13499;;;;;;8218:18;;2090:13499;;;8204:10;:32;;;:69;;8005:961;8200:102;;8328:15;;;;:::i;:::-;8176:7;8365:18;;2090:13499;;;8397:13;;;8393:27;;2090:13499;-1:-1:-1;8537:21:19;2090:13499;;8462:15;;;:27;2090:13499;;;8462:27;:::i;:::-;2090:13499;;8537:21;2579:6;8526:32;2090:13499;;;;;;8526:32;;:::i;:::-;2579:6;8608:25;;;;;:::i;:::-;2090:13499;;;;;;8679:9;2090:13499;5190:42:10;2090:13499:19;12233:1072:10;12199:23;;;-1:-1:-1;12233:1072:10;;;;;;;2090:13499:19;-1:-1:-1;12233:1072:10;;;;;;;8462:15:19;-1:-1:-1;12233:1072:10;;;;;;;8005:961:19;2090:13499;12233:1072:10;5189:43;5185:274;;8005:961:19;8714:19;8710:90;;8005:961;8814:18;;8810:87;;8005:961;2090:13499;;;;8913:46;2090:13499;;;;;;;;;2579:6;;2090:13499;8913:46;8005:961::o;8810:87::-;2090:13499;-1:-1:-1;;;;;2090:13499:19;8834:63;;;;;2090:13499;;-1:-1:-1;;;8834:63:19;;-1:-1:-1;;;;;2090:13499:19;;;12233:1072:10;8834:63:19;;2090:13499;;;2579:6;;;2090:13499;2579:6;;;2090:13499;;;;;;;;2579:6;;2090:13499;;;;8834:63;;;;;;;;8810:87;;;;;8834:63;;;;;;:::i;:::-;2090:13499;;8834:63;;;2090:13499;;;8834:63;2090:13499;;2579:6;2090:13499;;2579:6;;;;8834:63;2090:13499;;;8710:90;2090:13499;-1:-1:-1;;;;;2090:13499:19;8735:65;;;;;2090:13499;;-1:-1:-1;;;8735:65:19;;-1:-1:-1;;;;;2090:13499:19;;;12233:1072:10;8735:65:19;;2090:13499;;;;2579:6;;;2090:13499;2579:6;;;2090:13499;;;-1:-1:-1;2090:13499:19;2579:6;2090:13499;-1:-1:-1;8735:65:19;;;;;;;;8710:90;8735:65;;;;;-1:-1:-1;8735:65:19;;:::i;:::-;-1:-1:-1;8735:65:19;;8710:90;;8735:65;2090:13499;;2579:6;-1:-1:-1;2579:6:19;;;;;5185:274:10;2090:13499:19;12233:1072:10;12199:23;;;-1:-1:-1;12233:1072:10;;;;-1:-1:-1;12233:1072:10;;2090:13499:19;-1:-1:-1;12233:1072:10;;;;;;;8462:15:19;-1:-1:-1;12233:1072:10;;;;;;;5185:274;2090:13499:19;12233:1072:10;5252:38;5248:91;;2090:13499:19;12233:1072:10;12199:23;;;-1:-1:-1;12233:1072:10;;;;;;;2090:13499:19;-1:-1:-1;12233:1072:10;;;;;;;8462:15:19;-1:-1:-1;12233:1072:10;;;;;;;5185:274;2090:13499:19;12233:1072:10;5185:274;5353:95;;5299:40;;;;-1:-1:-1;5408:40:10;12233:1072;2090:13499:19;12233:1072:10;-1:-1:-1;5408:40:10;12233:1072;;8462:15:19;12233:1072:10;;;;;;;;;;;;;;;;;;;-1:-1:-1;12233:1072:10;;;;;;;8462:15:19;12233:1072:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8393:27:19;-1:-1:-1;;;;;;;;;8412:8:19:o;8200:102::-;8282:20;;;-1:-1:-1;8282:20:19;;-1:-1:-1;8282:20:19;8204:69;-1:-1:-1;8254:19:19;;;2090:13499;-1:-1:-1;;;;;2090:13499:19;8204:10;8240:33;;8204:69;;8096:46;8130:12;;;-1:-1:-1;8130:12:19;;-1:-1:-1;8130:12:19;9587:506;9693:7;2090:13499;-1:-1:-1;;;;;2090:13499:19;9679:10;:21;9675:46;;-1:-1:-1;;;;;2090:13499:19;;9735:19;;:49;;;;9587:506;9731:75;;-1:-1:-1;2090:13499:19;;;9840:7;2090:13499;;;;;9892:18;;2090:13499;;-1:-1:-1;;;;;2090:13499:19;;;;;;;;9924:33;;;9920:46;;2090:13499;;-1:-1:-1;;;;;;2090:13499:19;;;;;10023:63;-1:-1:-1;;10023:63:19;9587:506::o;9920:46::-;9959:7;;;;:::o;9735:49::-;-1:-1:-1;;;;;;2090:13499:19;;9758:26;9735:49;;5217:2101;;;-1:-1:-1;;;;;2090:13499:19;;;5217:2101;;5425:19;;5421:45;;5480:7;2090:13499;-1:-1:-1;;;;;2090:13499:19;5480:21;5476:46;;5537:38;5564:10;5537:38;;:::i;:::-;5536:39;5532:73;;5619:11;;5615:24;;-1:-1:-1;;;;;2090:13499:19;;5652:30;:65;;;;5217:2101;5652:103;;;;5217:2101;5648:162;;2090:13499;;-1:-1:-1;;;6255:38:19;;6287:4;6255:38;;;2090:13499;;;6255:38;2090:13499;6255:38;;;;;;;;5442:1;6255:38;;;5217:2101;1767:47:10;2090:13499:19;10404:1148:10;10365:28;;;;5442:1:19;10404:1148:10;5564:10:19;6255:38;10404:1148:10;6287:4:19;6255:38;10404:1148:10;;;2090:13499:19;5442:1;10404:1148:10;;;;;;1809:4;5442:1:19;10404:1148:10;;;;;;;5217:2101:19;10404:1148:10;2090:13499:19;10404:1148:10;5442:1:19;10404:1148:10;;1766:48;1762:126;;-1:-1:-1;;;6387:38:19;;6287:4;6255:38;6387;;2090:13499;;6387:38;6255;6387;;;;;;;;5442:1;6387:38;;;5217:2101;6387:54;;;;:::i;:::-;6455:11;;;6451:24;;6678:19;2090:13499;;5442:1;2090:13499;6508:7;2090:13499;;;5442:1;2090:13499;6548:15;6588:5;6548:15;6588:5;;:::i;:::-;6678:19;;:::i;:::-;6255:38;6736:16;;2090:13499;;6936:36;6787:25;;;;:::i;:::-;6850:48;:21;;;5442:1;6850:48;6936:36;:::i;:::-;2634:12;2090:13499;;;;;2634:12;2090:13499;;;6936:64;;;6935:83;6936:64;;:::i;:::-;6935:83;:::i;:::-;2090:13499;;6548:15;7072:12;;;2090:13499;7117:24;6548:15;;7117:24;:::i;:::-;7102:12;;;2090:13499;2634:12;2579:6;2634:12;2579:6;;;;7168:45;6548:15;;7168:45;:::i;:::-;7151:14;;5480:7;7151:14;;2090:13499;7223:23;2090:13499;;;7223:23;:::i;:::-;2090:13499;;;;;;;;2579:6;;2090:13499;7262:49;2090:13499;5564:10;7262:49;;5217:2101::o;6850:48::-;6878:20;6548:15;6878:12;;;2090:13499;6878:20;:::i;:::-;6850:48;6936:36;:::i;6451:24::-;6468:7;;;;;;:::o;6387:38::-;;2090:13499;6387:38;;2090:13499;6387:38;;;;;;2090:13499;6387:38;;;:::i;:::-;;;2090:13499;;;;6387:54;2090:13499;;6387:38;;;;;-1:-1:-1;6387:38:19;;1762:126:10;5299:40;;;;5442:1:19;1837:40:10;6255:38:19;2090:13499;6255:38;5442:1;1837:40:10;10404:1148;1809:4;10404:1148;;;;;;;;;;;;;;;;;;5442:1:19;10404:1148:10;;;;;6255:38:19;;;2090:13499;6255:38;;2090:13499;6255:38;;;;;;2090:13499;6255:38;;;:::i;:::-;;;2090:13499;;;;;6255:38;;;;;;-1:-1:-1;6255:38:19;;5648:162;5778:21;;;5442:1;5778:21;;5442:1;5778:21;5652:103;2090:13499;2579:6;2090:13499;;;5721:34;5652:103;;:65;-1:-1:-1;;;;;;2090:13499:19;;5686:31;5652:65;;5532:73;5584:21;;;5442:1;5584:21;;5442:1;5584:21;3749:292:13;2407:1;-1:-1:-1;;;;;;;;;;;2090:13499:19;4560:63:13;3644:93;;2407:1;-1:-1:-1;;;;;;;;;;;2090:13499:19;3749:292:13:o;3644:93::-;3696:30;;;-1:-1:-1;3696:30:13;;-1:-1:-1;3696:30:13;12601:298:19;12872:12;12601:298;12699:29;;;;:::i;:::-;12742:16;12738:125;;12872:12;;2090:13499;12601:298::o;12738:125::-;12774:16;;;:31;2090:13499;;;12774:31;:::i;:::-;2090:13499;;12819:33;:18;;;2090:13499;;;12819:33;:::i;:::-;2090:13499;;12872:12;2090:13499;12601:298::o;1796:162:0:-;1710:6;2090:13499:19;-1:-1:-1;;;;;2090:13499:19;735:10:11;1855:23:0;1851:101;;1796:162::o;2090:13499:19:-;;;-1:-1:-1;;;;;2090:13499:19;;;;;;:::o;:::-;;;;;;;;;;:::o;15356:231::-;15458:7;2090:13499;-1:-1:-1;;;;;2090:13499:19;;15458:21;;15454:39;;2090:13499;;-1:-1:-1;;;15520:54:19;;-1:-1:-1;;;;;2090:13499:19;;;15520:54;;;2090:13499;;15520:54;;2090:13499;;15520:54;;2090:13499;;15520:54;;;;;;;2090:13499;15520:54;;;15356:231;-1:-1:-1;2090:13499:19;15520:60;2090:13499;-1:-1:-1;;;;;2090:13499:19;;;;;15510:70;;15356:231::o;15520:54::-;;;;;;;;;;;;;;;;;:::i;:::-;;;2090:13499;;;;;;2579:6;15520:54;2579:6;;;;;;;;;;;2090:13499;2579:6;2090:13499;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;2579:6;2090:13499;;;:::i;:::-;2579:6;2090:13499;;;;;:::i;:::-;;;;;15520:54;;;;;;-1:-1:-1;15520:54:19;;15454:39;15481:12;;;2090:13499;15481:12;:::o;13665:1519::-;;13899:16;;;2090:13499;13899:21;:48;;;13665:1519;13957:750;;-1:-1:-1;;15034:19:19;;2090:13499;-1:-1:-1;;;;;2090:13499:19;;;;;15034:40;;;;;;;;:88;;13665:1519;15030:148;;;;13665:1519::o;15030:148::-;15145:22;;;-1:-1:-1;15145:22:19;13899:16;-1:-1:-1;15145:22:19;15034:88;2090:13499;;;;;;;;;;15078:44;;15034:88;;;;13957:750;14354:18;;;2090:13499;;14354:18;;;14586:90;;2090:13499;;14471:19;;14354:18;-1:-1:-1;;;;;2090:13499:19;14354:32;14350:108;;13957:750;-1:-1:-1;14471:19:19;2090:13499;;-1:-1:-1;;;;;;2090:13499:19;-1:-1:-1;;;;;2090:13499:19;;;;;;;;;;-1:-1:-1;;;2090:13499:19;;;;;;;;;;;;;;;;;;;;;;;;14586:90;14690:7::o;14350:108::-;2090:13499;;-1:-1:-1;;;;;;2090:13499:19;-1:-1:-1;;;;;2090:13499:19;;;;;;;-1:-1:-1;14350:108:19;;13899:48;13924:18;;;;2090:13499;13924:23;13899:48;;12999:413;;13110:16;;;2090:13499;13110:21;;;:46;;;;12999:413;13106:60;;13189:12;;;2090:13499;13180:21;;;;;13176:50;;13280:12;13320:20;13358:26;13280:12;13265:27;13280:12;13357:48;13280:12;;2090:13499;13265:27;;;:::i;:::-;13320:20;;:::i;13357:48::-;12999:413;:::o;13176:50::-;13203:23;;;;:::o;13110:46::-;13144:12;;;;2090:13499;13135:21;;;13110:46;","linkReferences":{},"immutableReferences":{"7094":[{"start":975,"length":32}],"7097":[{"start":531,"length":32},{"start":1962,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"acceptOwnership()","signatureHash4":"0x79ba5097","signatureHash32":"0x79ba5097e5519a381a52113cdcc59540d13f73fd9d26abc0453484a096cc96f2"},{"signature":"factory()","signatureHash4":"0xc45a0155","signatureHash32":"0xc45a01550ceb4bc5c6b2e6f722b5033a03078f9bd6673457375ba94c26ac1cf0"},{"signature":"feeEscrow()","signatureHash4":"0xc4b7de97","signatureHash32":"0xc4b7de97cd4ac57ef574c54dc88537fe05d3734b2fab89e3bb031fccc9d91d6d"},{"signature":"feePolicy()","signatureHash4":"0x82589038","signatureHash32":"0x82589038801a2392f29fb666d0a5e5ffe046fbed3dc17c1d1cc3aec9ec1f5f65"},{"signature":"lock(address,uint256,address,address,uint16)","signatureHash4":"0x892823f7","signatureHash32":"0x892823f79b59c09ecf56501e8c2855dfdc72f2d8f5cff16400ee683c2932ebb5"},{"signature":"owner()","signatureHash4":"0x8da5cb5b","signatureHash32":"0x8da5cb5b36e7f68c1d2e56001220cdbdd3ba2616072f718acfda4a06441a807d"},{"signature":"pendingOwner()","signatureHash4":"0xe30c3978","signatureHash32":"0xe30c3978ddd82956a01b5cb08d17f1a2d73e636aeefb7b36f896e41d4c2aab90"},{"signature":"releasable(address)","signatureHash4":"0xa3f8eace","signatureHash32":"0xa3f8eaceb8363f2351a3aa940ef4282b526eda545e5d30ad782a94b33aeb2303"},{"signature":"release(address)","signatureHash4":"0x19165587","signatureHash32":"0x19165587d81f9d3d0d57225d38f5bb5163beb87e4b5fafa3a2f80c53398d9874"},{"signature":"renounceOwnership()","signatureHash4":"0x715018a6","signatureHash32":"0x715018a616b5f2044428f6fadb7deef4ce9ca76ef60ea57978964ad137bbe7ae"},{"signature":"setFactory(address)","signatureHash4":"0x5bb47808","signatureHash32":"0x5bb478080db4659f0bf53448f830ba5bb3a7143ac6c2cb3ea0e300beb5d46fbf"},{"signature":"totalLocked(address)","signatureHash4":"0xd8fb9337","signatureHash32":"0xd8fb933769883d4b307923e978782dac0c107cdbbf0746db3e453729c1e90477"},{"signature":"totalReleased(address)","signatureHash4":"0xd79779b2","signatureHash32":"0xd79779b20e556d9c3f2e90a1a38e4691bb27b5189b696cb328df17c767dc6d6b"},{"signature":"transferOwnership(address)","signatureHash4":"0xf2fde38b","signatureHash32":"0xf2fde38b092330466c661fc723d5289b90272a3e580e3187d1d7ef788506c557"},{"signature":"updateCreatorRecipient(address,address)","signatureHash4":"0x5ad7fc17","signatureHash32":"0x5ad7fc174518af645855d99639b380a91f43e1333ad84450734810fe0571c0cc"},{"signature":"vestedAmount(address)","signatureHash4":"0x384711cc","signatureHash32":"0x384711ccf1504b5ca820933f87bb92ef123fe6bcdc17b418e5e606342330592e"},{"signature":"VESTING_DURATION()","signatureHash4":"0x4cfc4d30","signatureHash32":"0x4cfc4d303b50770565bc0ff664a31c6846acb8dd54c6727015fb0e1f5ec4791e"},{"signature":"vestingStart(address)","signatureHash4":"0x032bbf4f","signatureHash32":"0x032bbf4f37536b5ebf7d06afcbd4555b90a38084a271001c181d5ec805372214"},{"signature":"vestingTerms(address)","signatureHash4":"0xb224cf64","signatureHash32":"0xb224cf642c3b7f075269b1f85afe83403029766aeb9f38ed4bcd4565bf2032b5"}],"event":[{"signature":"CreatorRecipientUpdated(address,address,address)","signatureHash4":"0x38f9c713","signatureHash32":"0x38f9c71383b6e3fe639172c6b3a3d4418fa722b4abf99bfd8e31f92bd5ea23f0"},{"signature":"FactorySet(address)","signatureHash4":"0x1edf3afd","signatureHash32":"0x1edf3afd4ac789736e00d216cd88be164ddcef26a6eedcc30cdb0cb62f3741b1"},{"signature":"Locked(address,address,uint256,uint256)","signatureHash4":"0x967ad762","signatureHash32":"0x967ad762aa9070ada8db64577288e214771e89667066ae38e8750cb8a86c5429"},{"signature":"OwnershipTransferred(address,address)","signatureHash4":"0x8be0079c","signatureHash32":"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"},{"signature":"OwnershipTransferStarted(address,address)","signatureHash4":"0x38d16b8c","signatureHash32":"0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700"},{"signature":"Released(address,uint256,uint256)","signatureHash4":"0x82e416ba","signatureHash32":"0x82e416ba72d10e709b5de7ac16f5f49ff1d94f22d55bf582d353d3c313a1e8dd"},{"signature":"VestingTermsSnapshotted(address,address,address,uint256)","signatureHash4":"0xa92f5227","signatureHash32":"0xa92f5227e67257769e49f294586ea055f8d5714595dfdcc2d8a0cac8a3e50fbe"}],"error":[{"signature":"AlreadyInitialized()","signatureHash4":"0x0dc149f0","signatureHash32":"0x0dc149f07762891dbcea3fe72770f3d63a1863fc54b2f084e8c59ec476996927"},{"signature":"InvalidVestingTerms()","signatureHash4":"0xa7d7d0c5","signatureHash32":"0xa7d7d0c5b13d387e25bf19acfff08fff8608aefcbbe2348fd7e52fbb4a1fab48"},{"signature":"NotAuthorizedLocker()","signatureHash4":"0xba13c3d9","signatureHash32":"0xba13c3d90da4e8e32157c11721cb3c91fe441b10056ed0f05cfd443801ae5532"},{"signature":"NotFactory()","signatureHash4":"0x32cc7236","signatureHash32":"0x32cc723614e775fc4a8386492bc9a860c12fe98d5f5f28ec17e265818645b229"},{"signature":"NotVestBeneficiary()","signatureHash4":"0x0da3333b","signatureHash32":"0x0da3333bb1fc3965e0ce2fab7c370d2acaa883fea336db37951749c154b0dbfa"},{"signature":"OwnableInvalidOwner(address)","signatureHash4":"0x1e4fbdf7","signatureHash32":"0x1e4fbdf7f3ef8bcaa855599e3abf48b232380f183f08f6f813d9ffa5bd585188"},{"signature":"OwnableUnauthorizedAccount(address)","signatureHash4":"0x118cdaa7","signatureHash32":"0x118cdaa7a341953d1887a2245fd6665d741c67c8c50581daa59e1d03373fa188"},{"signature":"OwnershipCannotBeRenounced()","signatureHash4":"0x2fab92ca","signatureHash32":"0x2fab92ca4da7e80162387e93e02720bc4b98838c093385cac8fecf71a9b7de25"},{"signature":"ReentrancyGuardReentrantCall()","signatureHash4":"0x3ee5aeb5","signatureHash32":"0x3ee5aeb571de7fc460830b4d0017439a1ca56fb0bc39062227ade4fe4a24c1ca"},{"signature":"SafeERC20FailedOperation(address)","signatureHash4":"0x5274afe7","signatureHash32":"0x5274afe73c98b4749fc91ffae6b7b574e7842cb2144a159e9377a5f20b32edf9"},{"signature":"VestingTermsMismatch()","signatureHash4":"0x8a621fd9","signatureHash32":"0x8a621fd96b45c781773a2380a58916b87128482bf97a33a0b6bd3d9debb438b1"},{"signature":"ZeroAddress()","signatureHash4":"0xd92e233d","signatureHash32":"0xd92e233df2717d4a40030e20904abd27b68fcbeede117eaaccbbdac9618c8c73"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"exact_match","chainId":"4663","address":"0x81ffB09b8ABb42D0F6DC78A186ddf5E37b68e39B"}