{"matchId":"47039622","creationMatch":"match","runtimeMatch":"match","verifiedAt":"2026-09-02T14:17:30Z","creationBytecode":{"onchainBytecode":"0x610180604052348015610010575f80fd5b50604051611ada380380611ada83398101604081905261002f9161011f565b6001600160a01b038616158061004c57506001600160a01b038516155b8061005e57506001600160a01b038416155b8061007057506001600160a01b038316155b1561008e5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03808716608081905286821660a081905286831660c05291851660e05210806100be57856100c0565b865b6001600160a01b031661010052806100d857866100da565b855b6001600160a01b0316610120525062ffffff9091166101405260020b61016052506101a392505050565b80516001600160a01b038116811461011a575f80fd5b919050565b5f805f805f8060c08789031215610134575f80fd5b61013d87610104565b955061014b60208801610104565b945061015960408801610104565b935061016760608801610104565b9250608087015162ffffff8116811461017e575f80fd5b8092505060a08701518060020b8114610195575f80fd5b809150509295509295509295565b60805160a05160c05160e0516101005161012051610140516101605161187a6102605f395f61092401525f6108fb01525f6108d001525f6108ab01525f81816104210152818161064501528181610961015281816109f701528181610b8e01528181610c1801528181610c3f0152610cf601525f81816102bd015261075601525f8181610479015261073401525f8181610303015281816104bc015281816109bc01528181610bf401528181610fa0015261110d015261187a5ff3fe608060405234801561000f575f80fd5b50600436106101dc575f3560e01c806370d8905111610109578063d80a4d4d1161009e578063efca2eed1161006e578063efca2eed1461046b578063f53507f2146103b9578063f5b91b7b14610474578063ff122cea1461049b575f80fd5b8063d80a4d4d14610409578063dc4c90d31461041c578063e29eb83614610443578063e61aa6171461044c575f80fd5b806391dd7346116100d957806391dd7346146103c2578063997664d7146103e2578063bee0d6ad146103eb578063d74d6f4014610400575f80fd5b806370d890511461037c57806375ffe734146103915780638c40baef1461039a5780638d7036de146103b9575f80fd5b8063436596c41161017f5780635c9302c91161014f5780635c9302c9146103255780635e768c3a1461032d57806363453ae11461034c5780636e9e625314610374575f80fd5b8063436596c4146102b057806346904840146102b85780634bb4c78b146102df5780634eec9e09146102fe575f80fd5b806320bd8991116101ba57806320bd89911461024d57806325d2a3f314610278578063389c4116146102a05780633f90916a146102a8575f80fd5b80630a6e0fd4146101e05780630ebdf788146101f557806316ad82d71461021b575b5f80fd5b6101f36101ee36600461147e565b6104a4565b005b6102086102033660046114a6565b610622565b6040519081526020015b60405180910390f35b61023d6102293660046114bd565b600b6020525f908152604090205460ff1681565b6040519015158152602001610212565b61026061025b3660046114a6565b610780565b6040516001600160a01b039091168152602001610212565b6102086102863660046114bd565b6001600160a01b03165f9081526020819052604090205490565b600c54610208565b6102086107ae565b6101f36107d1565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086102ed3660046114a6565b60086020525f908152604090205481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086107e1565b61020861033b3660046114a6565b600a6020525f908152604090205481565b61035f61035a3660046114bd565b6107ef565b60408051928352602083019190915201610212565b61020861084d565b61038461086c565b6040516102129190611520565b61020860065481565b6102086103a83660046114a6565b60076020525f908152604090205481565b61020861138881565b6103d56103d036600461152e565b610954565b604051610212919061159c565b61020860045481565b6103f3610d84565b60405161021291906115d1565b61020860055481565b6101f361041736600461161c565b610de4565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860025481565b61020861045a3660046114a6565b60096020525f908152604090205481565b61020860035481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860015481565b805f036104af575050565b6104e46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610df2565b6001600160a01b0382165f908152600b602052604090205460ff16610568576001600160a01b0382165f818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b6001600160a01b0382165f908152602081905260408120805483929061058f908490611650565b925050819055508060025f8282546105a79190611650565b9091555081905060075f6105b96107e1565b81526020019081526020015f205f8282546105d49190611650565b90915550506040805182815242602082015233916001600160a01b038516917fb02f9b42d2edd6db60b8270da46bea71d6f3ededf95f39eac71b6356c48310c0910160405180910390a35050565b5f3330146106435760405163029a949d60e31b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166348c894918360405160200161068591815260200190565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016106b0919061159c565b5f604051808303815f875af11580156106cb573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106f29190810190611677565b806020019051810190610705919061172a565b9050805f0361072757604051632274e4f360e21b815260040160405180910390fd5b61077b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610e2e565b919050565b5f600c828154811061079457610794611741565b5f918252602090912001546001600160a01b031692915050565b5f6001546003546002546107c29190611755565b6107cc9190611650565b905090565b600c546107df905f90610e68565b565b5f6107cc6201518042611768565b6001600160a01b0381165f9081526020819052604081205481908082036108395760405163edec0cc160e01b81526001600160a01b03851660048201526024015b60405180910390fd5b6108438482610f08565b9250925050915091565b5f60075f6108596107e1565b81526020019081526020015f2054905090565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506040805160a0810182526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682527f000000000000000000000000000000000000000000000000000000000000000016602082015262ffffff7f000000000000000000000000000000000000000000000000000000000000000016918101919091527f000000000000000000000000000000000000000000000000000000000000000060020b60608201525f608082015290565b6060336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461099f5760405163570c108560e11b815260040160405180910390fd5b5f6109ac838501856114a6565b90505f6109b761086c565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316825f01516001600160a01b03161490505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3cd914c846040518060600160405280861515815260200188610a4290611787565b815260200186610a7057610a6b600173fffd8963efd1fc6a506488495d951d5263988d266117a1565b610a80565b610a806401000276a360016117c0565b6001600160a01b03168152506040518363ffffffff1660e01b8152600401610aa99291906117df565b6020604051808303815f875af1158015610ac5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae9919061172a565b90505f82610afb578360200151610afe565b83515b90505f83610b0d578451610b13565b84602001515b90505f84610b2a57610b2584600f0b90565b610b34565b610b348460801d90565b90505f85610b4b57610b468560801d90565b610b55565b610b5585600f0b90565b90505f610b6183611829565b604051632961046560e21b81526001600160a01b0387811660048301526001600160801b039290921692507f00000000000000000000000000000000000000000000000000000000000000009091169063a5841194906024015f604051808303815f87803b158015610bd1575f80fd5b505af1158015610be3573d5f803e3d5ffd5b50610c3d9250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690507f000000000000000000000000000000000000000000000000000000000000000083610e2e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166311da60b46040518163ffffffff1660e01b81526004016020604051808303815f875af1158015610c9a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cbe919061172a565b50604051630b0d9c0960e01b81526001600160a01b0385811660048301523060248301526001600160801b03841660448301819052917f000000000000000000000000000000000000000000000000000000000000000090911690630b0d9c09906064015f604051808303815f87803b158015610d39575f80fd5b505af1158015610d4b573d5f803e3d5ffd5b5050505080604051602001610d6291815260200190565b6040516020818303038152906040529a50505050505050505050505b92915050565b6060600c805480602002602001604051908101604052809291908181526020018280548015610dda57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610dbc575b5050505050905090565b610dee8282610e68565b5050565b610e008484848460016111b2565b610e2857604051635274afe760e01b81526001600160a01b0385166004820152602401610830565b50505050565b610e3b838383600161121f565b610e6357604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b505050565b600c5481831180610e7857508082115b15610ea75760405163cee0f63d60e01b8152600481018490526024810183905260448101829052606401610830565b825b82811015610e28575f600c8281548110610ec557610ec5611741565b5f9182526020808320909101546001600160a01b0316808352908290526040909120549091508015610efe57610efb8282610f08565b50505b5050600101610ea9565b6001600160a01b0382165f90815260208190526040812081905580612710610f3261138885611856565b610f3c9190611768565b9150610f488284611755565b90505f610f536107e1565b90508360035f828254610f669190611650565b90915550505f8181526008602052604081208054869290610f88908490611650565b9091555050821561113457610fc76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168685611281565b604051633243c79160e01b8152600481018490526001600160a01b03861690633243c791906024015f604051808303815f87803b158015611006575f80fd5b505af1925050508015611017575060015b6110c7576001600160a01b0385165f9081526020819052604081208054859290611042908490611650565b925050819055508260035f82825461105a9190611755565b90915550505f818152600860205260408120805485929061107c908490611755565b90915550506040518381526001600160a01b038616907f71798a5d2916fff98cd71106bffbd9ff401474148df1244980ebc2b5c68171cb9060200160405180910390a25f9250611100565b8260045f8282546110d89190611650565b90915550505f81815260096020526040812080548592906110fa908490611650565b90915550505b6111346001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016865f611281565b8160015f8282546111459190611650565b909155505f90506111546112d3565b60408051868152602081018690529081018290524260608201529091506001600160a01b038716907ff4b6b4adf17bd8e8a3f76cda303f62f49eeb1260ce0857ff965ece2d82022e829060800160405180910390a250509250929050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661120e578383151615611202573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b61128d8383835f61141e565b610e635761129e83835f600161141e565b6112c657604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b610e3b838383600161141e565b6001545f908082036112e6575f91505090565b6040516301d7bef160e31b8152600481018290523090630ebdf788906024016020604051808303815f875af192505050801561133f575060408051601f3d908101601f1916820190925261133c9181019061172a565b60015b61137d576040518181527fce39e8fa7258cd4a4c8f312edeab51ed2316a9c2c729f87d9138192160c53ac89060200160405180910390a15f91505090565b5f6001819055508160055f8282546113959190611650565b925050819055508060065f8282546113ad9190611650565b90915550819050600a5f6113bf6107e1565b81526020019081526020015f205f8282546113da9190611650565b909155505060408051838152602081018390527f7c831355b163c428ee9cc3f5fe6bc053b07f13b9e5657cd4659450938561ecd8910160405180910390a192915050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b80356001600160a01b038116811461077b575f80fd5b5f806040838503121561148f575f80fd5b61149883611468565b946020939093013593505050565b5f602082840312156114b6575f80fd5b5035919050565b5f602082840312156114cd575f80fd5b6114d682611468565b9392505050565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610d7e82846114dd565b5f806020838503121561153f575f80fd5b823567ffffffffffffffff811115611555575f80fd5b8301601f81018513611565575f80fd5b803567ffffffffffffffff81111561157b575f80fd5b85602082840101111561158c575f80fd5b6020919091019590945092505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b602080825282518282018190525f918401906040840190835b818110156116115783516001600160a01b03168352602093840193909201916001016115ea565b509095945050505050565b5f806040838503121561162d575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610d7e57610d7e61163c565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611687575f80fd5b815167ffffffffffffffff81111561169d575f80fd5b8201601f810184136116ad575f80fd5b805167ffffffffffffffff8111156116c7576116c7611663565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156116f6576116f6611663565b60405281815282820160200186101561170d575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f6020828403121561173a575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b81810381811115610d7e57610d7e61163c565b5f8261178257634e487b7160e01b5f52601260045260245ffd5b500490565b5f600160ff1b820161179b5761179b61163c565b505f0390565b6001600160a01b038281168282160390811115610d7e57610d7e61163c565b6001600160a01b038181168382160190811115610d7e57610d7e61163c565b6117e981846114dd565b8151151560a0820152602082015160c08201526040909101516001600160a01b031660e082015261012061010082018190525f9082015261014001919050565b5f81600f0b6f7fffffffffffffffffffffffffffffff19810361184e5761184e61163c565b5f0392915050565b8082028115828204841417610d7e57610d7e61163c56fea164736f6c634300081a000a0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd90000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d1680000000000000000000000008e7f5dc04df1cf50cb65a833354f5dcade3418f60000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409510000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000003c","recompiledBytecode":"0x610180604052348015610010575f80fd5b50604051611ada380380611ada83398101604081905261002f9161011f565b6001600160a01b038616158061004c57506001600160a01b038516155b8061005e57506001600160a01b038416155b8061007057506001600160a01b038316155b1561008e5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03808716608081905286821660a081905286831660c05291851660e05210806100be57856100c0565b865b6001600160a01b031661010052806100d857866100da565b855b6001600160a01b0316610120525062ffffff9091166101405260020b61016052506101a392505050565b80516001600160a01b038116811461011a575f80fd5b919050565b5f805f805f8060c08789031215610134575f80fd5b61013d87610104565b955061014b60208801610104565b945061015960408801610104565b935061016760608801610104565b9250608087015162ffffff8116811461017e575f80fd5b8092505060a08701518060020b8114610195575f80fd5b809150509295509295509295565b60805160a05160c05160e0516101005161012051610140516101605161187a6102605f395f61092401525f6108fb01525f6108d001525f6108ab01525f81816104210152818161064501528181610961015281816109f701528181610b8e01528181610c1801528181610c3f0152610cf601525f81816102bd015261075601525f8181610479015261073401525f8181610303015281816104bc015281816109bc01528181610bf401528181610fa0015261110d015261187a5ff3fe608060405234801561000f575f80fd5b50600436106101dc575f3560e01c806370d8905111610109578063d80a4d4d1161009e578063efca2eed1161006e578063efca2eed1461046b578063f53507f2146103b9578063f5b91b7b14610474578063ff122cea1461049b575f80fd5b8063d80a4d4d14610409578063dc4c90d31461041c578063e29eb83614610443578063e61aa6171461044c575f80fd5b806391dd7346116100d957806391dd7346146103c2578063997664d7146103e2578063bee0d6ad146103eb578063d74d6f4014610400575f80fd5b806370d890511461037c57806375ffe734146103915780638c40baef1461039a5780638d7036de146103b9575f80fd5b8063436596c41161017f5780635c9302c91161014f5780635c9302c9146103255780635e768c3a1461032d57806363453ae11461034c5780636e9e625314610374575f80fd5b8063436596c4146102b057806346904840146102b85780634bb4c78b146102df5780634eec9e09146102fe575f80fd5b806320bd8991116101ba57806320bd89911461024d57806325d2a3f314610278578063389c4116146102a05780633f90916a146102a8575f80fd5b80630a6e0fd4146101e05780630ebdf788146101f557806316ad82d71461021b575b5f80fd5b6101f36101ee36600461147e565b6104a4565b005b6102086102033660046114a6565b610622565b6040519081526020015b60405180910390f35b61023d6102293660046114bd565b600b6020525f908152604090205460ff1681565b6040519015158152602001610212565b61026061025b3660046114a6565b610780565b6040516001600160a01b039091168152602001610212565b6102086102863660046114bd565b6001600160a01b03165f9081526020819052604090205490565b600c54610208565b6102086107ae565b6101f36107d1565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086102ed3660046114a6565b60086020525f908152604090205481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086107e1565b61020861033b3660046114a6565b600a6020525f908152604090205481565b61035f61035a3660046114bd565b6107ef565b60408051928352602083019190915201610212565b61020861084d565b61038461086c565b6040516102129190611520565b61020860065481565b6102086103a83660046114a6565b60076020525f908152604090205481565b61020861138881565b6103d56103d036600461152e565b610954565b604051610212919061159c565b61020860045481565b6103f3610d84565b60405161021291906115d1565b61020860055481565b6101f361041736600461161c565b610de4565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860025481565b61020861045a3660046114a6565b60096020525f908152604090205481565b61020860035481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860015481565b805f036104af575050565b6104e46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610df2565b6001600160a01b0382165f908152600b602052604090205460ff16610568576001600160a01b0382165f818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b6001600160a01b0382165f908152602081905260408120805483929061058f908490611650565b925050819055508060025f8282546105a79190611650565b9091555081905060075f6105b96107e1565b81526020019081526020015f205f8282546105d49190611650565b90915550506040805182815242602082015233916001600160a01b038516917fb02f9b42d2edd6db60b8270da46bea71d6f3ededf95f39eac71b6356c48310c0910160405180910390a35050565b5f3330146106435760405163029a949d60e31b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166348c894918360405160200161068591815260200190565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016106b0919061159c565b5f604051808303815f875af11580156106cb573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106f29190810190611677565b806020019051810190610705919061172a565b9050805f0361072757604051632274e4f360e21b815260040160405180910390fd5b61077b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610e2e565b919050565b5f600c828154811061079457610794611741565b5f918252602090912001546001600160a01b031692915050565b5f6001546003546002546107c29190611755565b6107cc9190611650565b905090565b600c546107df905f90610e68565b565b5f6107cc6201518042611768565b6001600160a01b0381165f9081526020819052604081205481908082036108395760405163edec0cc160e01b81526001600160a01b03851660048201526024015b60405180910390fd5b6108438482610f08565b9250925050915091565b5f60075f6108596107e1565b81526020019081526020015f2054905090565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506040805160a0810182526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682527f000000000000000000000000000000000000000000000000000000000000000016602082015262ffffff7f000000000000000000000000000000000000000000000000000000000000000016918101919091527f000000000000000000000000000000000000000000000000000000000000000060020b60608201525f608082015290565b6060336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461099f5760405163570c108560e11b815260040160405180910390fd5b5f6109ac838501856114a6565b90505f6109b761086c565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316825f01516001600160a01b03161490505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3cd914c846040518060600160405280861515815260200188610a4290611787565b815260200186610a7057610a6b600173fffd8963efd1fc6a506488495d951d5263988d266117a1565b610a80565b610a806401000276a360016117c0565b6001600160a01b03168152506040518363ffffffff1660e01b8152600401610aa99291906117df565b6020604051808303815f875af1158015610ac5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae9919061172a565b90505f82610afb578360200151610afe565b83515b90505f83610b0d578451610b13565b84602001515b90505f84610b2a57610b2584600f0b90565b610b34565b610b348460801d90565b90505f85610b4b57610b468560801d90565b610b55565b610b5585600f0b90565b90505f610b6183611829565b604051632961046560e21b81526001600160a01b0387811660048301526001600160801b039290921692507f00000000000000000000000000000000000000000000000000000000000000009091169063a5841194906024015f604051808303815f87803b158015610bd1575f80fd5b505af1158015610be3573d5f803e3d5ffd5b50610c3d9250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690507f000000000000000000000000000000000000000000000000000000000000000083610e2e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166311da60b46040518163ffffffff1660e01b81526004016020604051808303815f875af1158015610c9a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cbe919061172a565b50604051630b0d9c0960e01b81526001600160a01b0385811660048301523060248301526001600160801b03841660448301819052917f000000000000000000000000000000000000000000000000000000000000000090911690630b0d9c09906064015f604051808303815f87803b158015610d39575f80fd5b505af1158015610d4b573d5f803e3d5ffd5b5050505080604051602001610d6291815260200190565b6040516020818303038152906040529a50505050505050505050505b92915050565b6060600c805480602002602001604051908101604052809291908181526020018280548015610dda57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610dbc575b5050505050905090565b610dee8282610e68565b5050565b610e008484848460016111b2565b610e2857604051635274afe760e01b81526001600160a01b0385166004820152602401610830565b50505050565b610e3b838383600161121f565b610e6357604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b505050565b600c5481831180610e7857508082115b15610ea75760405163cee0f63d60e01b8152600481018490526024810183905260448101829052606401610830565b825b82811015610e28575f600c8281548110610ec557610ec5611741565b5f9182526020808320909101546001600160a01b0316808352908290526040909120549091508015610efe57610efb8282610f08565b50505b5050600101610ea9565b6001600160a01b0382165f90815260208190526040812081905580612710610f3261138885611856565b610f3c9190611768565b9150610f488284611755565b90505f610f536107e1565b90508360035f828254610f669190611650565b90915550505f8181526008602052604081208054869290610f88908490611650565b9091555050821561113457610fc76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168685611281565b604051633243c79160e01b8152600481018490526001600160a01b03861690633243c791906024015f604051808303815f87803b158015611006575f80fd5b505af1925050508015611017575060015b6110c7576001600160a01b0385165f9081526020819052604081208054859290611042908490611650565b925050819055508260035f82825461105a9190611755565b90915550505f818152600860205260408120805485929061107c908490611755565b90915550506040518381526001600160a01b038616907f71798a5d2916fff98cd71106bffbd9ff401474148df1244980ebc2b5c68171cb9060200160405180910390a25f9250611100565b8260045f8282546110d89190611650565b90915550505f81815260096020526040812080548592906110fa908490611650565b90915550505b6111346001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016865f611281565b8160015f8282546111459190611650565b909155505f90506111546112d3565b60408051868152602081018690529081018290524260608201529091506001600160a01b038716907ff4b6b4adf17bd8e8a3f76cda303f62f49eeb1260ce0857ff965ece2d82022e829060800160405180910390a250509250929050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661120e578383151615611202573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b61128d8383835f61141e565b610e635761129e83835f600161141e565b6112c657604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b610e3b838383600161141e565b6001545f908082036112e6575f91505090565b6040516301d7bef160e31b8152600481018290523090630ebdf788906024016020604051808303815f875af192505050801561133f575060408051601f3d908101601f1916820190925261133c9181019061172a565b60015b61137d576040518181527fce39e8fa7258cd4a4c8f312edeab51ed2316a9c2c729f87d9138192160c53ac89060200160405180910390a15f91505090565b5f6001819055508160055f8282546113959190611650565b925050819055508060065f8282546113ad9190611650565b90915550819050600a5f6113bf6107e1565b81526020019081526020015f205f8282546113da9190611650565b909155505060408051838152602081018390527f7c831355b163c428ee9cc3f5fe6bc053b07f13b9e5657cd4659450938561ecd8910160405180910390a192915050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b80356001600160a01b038116811461077b575f80fd5b5f806040838503121561148f575f80fd5b61149883611468565b946020939093013593505050565b5f602082840312156114b6575f80fd5b5035919050565b5f602082840312156114cd575f80fd5b6114d682611468565b9392505050565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610d7e82846114dd565b5f806020838503121561153f575f80fd5b823567ffffffffffffffff811115611555575f80fd5b8301601f81018513611565575f80fd5b803567ffffffffffffffff81111561157b575f80fd5b85602082840101111561158c575f80fd5b6020919091019590945092505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b602080825282518282018190525f918401906040840190835b818110156116115783516001600160a01b03168352602093840193909201916001016115ea565b509095945050505050565b5f806040838503121561162d575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610d7e57610d7e61163c565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611687575f80fd5b815167ffffffffffffffff81111561169d575f80fd5b8201601f810184136116ad575f80fd5b805167ffffffffffffffff8111156116c7576116c7611663565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156116f6576116f6611663565b60405281815282820160200186101561170d575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f6020828403121561173a575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b81810381811115610d7e57610d7e61163c565b5f8261178257634e487b7160e01b5f52601260045260245ffd5b500490565b5f600160ff1b820161179b5761179b61163c565b505f0390565b6001600160a01b038281168282160390811115610d7e57610d7e61163c565b6001600160a01b038181168382160190811115610d7e57610d7e61163c565b6117e981846114dd565b8151151560a0820152602082015160c08201526040909101516001600160a01b031660e082015261012061010082018190525f9082015261014001919050565b5f81600f0b6f7fffffffffffffffffffffffffffffff19810361184e5761184e61163c565b5f0392915050565b8082028115828204841417610d7e57610d7e61163c56fea164736f6c634300081a000a","sourceMap":"2428:11582:26:-:0;;;5178:895;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;5417:29:26;;;;:52;;-1:-1:-1;;;;;;5450:19:26;;;5417:52;:83;;;-1:-1:-1;;;;;;5473:27:26;;;5417:83;:129;;;-1:-1:-1;;;;;;5520:26:26;;;5417:129;5400:177;;;5564:13;;-1:-1:-1;;;5564:13:26;;;;;;;;;;;5400:177;-1:-1:-1;;;;;5588:40:26;;;;;;;5638:20;;;;;;;5668:28;;;;;5706:40;;;;;5781:23;;5845:42;;5882:5;5845:42;;;5864:15;5845:42;-1:-1:-1;;;;;5814:74:26;;;5929:16;:42;;5956:15;5929:42;;;5948:5;5929:42;-1:-1:-1;;;;;5898:74:26;;;-1:-1:-1;5982:29:26;;;;;;6021:45;;;;-1:-1:-1;2428:11582:26;;-1:-1:-1;;;2428:11582:26;14:177:29;93:13;;-1:-1:-1;;;;;135:31:29;;125:42;;115:70;;181:1;178;171:12;115:70;14:177;;;:::o;196:783::-;308:6;316;324;332;340;348;401:3;389:9;380:7;376:23;372:33;369:53;;;418:1;415;408:12;369:53;441:40;471:9;441:40;:::i;:::-;431:50;;500:49;545:2;534:9;530:18;500:49;:::i;:::-;490:59;;568:49;613:2;602:9;598:18;568:49;:::i;:::-;558:59;;636:49;681:2;670:9;666:18;636:49;:::i;:::-;626:59;;728:3;717:9;713:19;707:26;773:8;766:5;762:20;755:5;752:31;742:59;;797:1;794;787:12;742:59;820:5;810:15;;;870:3;859:9;855:19;849:26;920:7;917:1;906:22;897:7;894:35;884:63;;943:1;940;933:12;884:63;966:7;956:17;;;196:783;;;;;;;;:::o;:::-;2428:11582:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa164736f6c634300081a000a","offset":6862}},"transformations":[{"type":"insert","offset":6874,"reason":"constructorArguments"}],"transformationValues":{"constructorArguments":"0x0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd90000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d1680000000000000000000000008e7f5dc04df1cf50cb65a833354f5dcade3418f60000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409510000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000003c"}},"runtimeBytecode":{"onchainBytecode":"0x608060405234801561000f575f80fd5b50600436106101dc575f3560e01c806370d8905111610109578063d80a4d4d1161009e578063efca2eed1161006e578063efca2eed1461046b578063f53507f2146103b9578063f5b91b7b14610474578063ff122cea1461049b575f80fd5b8063d80a4d4d14610409578063dc4c90d31461041c578063e29eb83614610443578063e61aa6171461044c575f80fd5b806391dd7346116100d957806391dd7346146103c2578063997664d7146103e2578063bee0d6ad146103eb578063d74d6f4014610400575f80fd5b806370d890511461037c57806375ffe734146103915780638c40baef1461039a5780638d7036de146103b9575f80fd5b8063436596c41161017f5780635c9302c91161014f5780635c9302c9146103255780635e768c3a1461032d57806363453ae11461034c5780636e9e625314610374575f80fd5b8063436596c4146102b057806346904840146102b85780634bb4c78b146102df5780634eec9e09146102fe575f80fd5b806320bd8991116101ba57806320bd89911461024d57806325d2a3f314610278578063389c4116146102a05780633f90916a146102a8575f80fd5b80630a6e0fd4146101e05780630ebdf788146101f557806316ad82d71461021b575b5f80fd5b6101f36101ee36600461147e565b6104a4565b005b6102086102033660046114a6565b610622565b6040519081526020015b60405180910390f35b61023d6102293660046114bd565b600b6020525f908152604090205460ff1681565b6040519015158152602001610212565b61026061025b3660046114a6565b610780565b6040516001600160a01b039091168152602001610212565b6102086102863660046114bd565b6001600160a01b03165f9081526020819052604090205490565b600c54610208565b6102086107ae565b6101f36107d1565b6102607f0000000000000000000000008e7f5dc04df1cf50cb65a833354f5dcade3418f681565b6102086102ed3660046114a6565b60086020525f908152604090205481565b6102607f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd981565b6102086107e1565b61020861033b3660046114a6565b600a6020525f908152604090205481565b61035f61035a3660046114bd565b6107ef565b60408051928352602083019190915201610212565b61020861084d565b61038461086c565b6040516102129190611520565b61020860065481565b6102086103a83660046114a6565b60076020525f908152604090205481565b61020861138881565b6103d56103d036600461152e565b610954565b604051610212919061159c565b61020860045481565b6103f3610d84565b60405161021291906115d1565b61020860055481565b6101f361041736600461161c565b610de4565b6102607f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095181565b61020860025481565b61020861045a3660046114a6565b60096020525f908152604090205481565b61020860035481565b6102607f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d16881565b61020860015481565b805f036104af575050565b6104e46001600160a01b037f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd916333084610df2565b6001600160a01b0382165f908152600b602052604090205460ff16610568576001600160a01b0382165f818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b6001600160a01b0382165f908152602081905260408120805483929061058f908490611650565b925050819055508060025f8282546105a79190611650565b9091555081905060075f6105b96107e1565b81526020019081526020015f205f8282546105d49190611650565b90915550506040805182815242602082015233916001600160a01b038516917fb02f9b42d2edd6db60b8270da46bea71d6f3ededf95f39eac71b6356c48310c0910160405180910390a35050565b5f3330146106435760405163029a949d60e31b815260040160405180910390fd5b7f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409516001600160a01b03166348c894918360405160200161068591815260200190565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016106b0919061159c565b5f604051808303815f875af11580156106cb573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106f29190810190611677565b806020019051810190610705919061172a565b9050805f0361072757604051632274e4f360e21b815260040160405180910390fd5b61077b6001600160a01b037f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d168167f0000000000000000000000008e7f5dc04df1cf50cb65a833354f5dcade3418f683610e2e565b919050565b5f600c828154811061079457610794611741565b5f918252602090912001546001600160a01b031692915050565b5f6001546003546002546107c29190611755565b6107cc9190611650565b905090565b600c546107df905f90610e68565b565b5f6107cc6201518042611768565b6001600160a01b0381165f9081526020819052604081205481908082036108395760405163edec0cc160e01b81526001600160a01b03851660048201526024015b60405180910390fd5b6108438482610f08565b9250925050915091565b5f60075f6108596107e1565b81526020019081526020015f2054905090565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506040805160a0810182526001600160a01b037f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9811682527f0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d16816602082015262ffffff7f0000000000000000000000000000000000000000000000000000000000000bb816918101919091527f000000000000000000000000000000000000000000000000000000000000003c60020b60608201525f608082015290565b6060336001600160a01b037f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951161461099f5760405163570c108560e11b815260040160405180910390fd5b5f6109ac838501856114a6565b90505f6109b761086c565b90505f7f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd96001600160a01b0316825f01516001600160a01b03161490505f7f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409516001600160a01b031663f3cd914c846040518060600160405280861515815260200188610a4290611787565b815260200186610a7057610a6b600173fffd8963efd1fc6a506488495d951d5263988d266117a1565b610a80565b610a806401000276a360016117c0565b6001600160a01b03168152506040518363ffffffff1660e01b8152600401610aa99291906117df565b6020604051808303815f875af1158015610ac5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae9919061172a565b90505f82610afb578360200151610afe565b83515b90505f83610b0d578451610b13565b84602001515b90505f84610b2a57610b2584600f0b90565b610b34565b610b348460801d90565b90505f85610b4b57610b468560801d90565b610b55565b610b5585600f0b90565b90505f610b6183611829565b604051632961046560e21b81526001600160a01b0387811660048301526001600160801b039290921692507f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409519091169063a5841194906024015f604051808303815f87803b158015610bd1575f80fd5b505af1158015610be3573d5f803e3d5ffd5b50610c3d9250506001600160a01b037f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd91690507f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095183610e2e565b7f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e409516001600160a01b03166311da60b46040518163ffffffff1660e01b81526004016020604051808303815f875af1158015610c9a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cbe919061172a565b50604051630b0d9c0960e01b81526001600160a01b0385811660048301523060248301526001600160801b03841660448301819052917f0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e4095190911690630b0d9c09906064015f604051808303815f87803b158015610d39575f80fd5b505af1158015610d4b573d5f803e3d5ffd5b5050505080604051602001610d6291815260200190565b6040516020818303038152906040529a50505050505050505050505b92915050565b6060600c805480602002602001604051908101604052809291908181526020018280548015610dda57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610dbc575b5050505050905090565b610dee8282610e68565b5050565b610e008484848460016111b2565b610e2857604051635274afe760e01b81526001600160a01b0385166004820152602401610830565b50505050565b610e3b838383600161121f565b610e6357604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b505050565b600c5481831180610e7857508082115b15610ea75760405163cee0f63d60e01b8152600481018490526024810183905260448101829052606401610830565b825b82811015610e28575f600c8281548110610ec557610ec5611741565b5f9182526020808320909101546001600160a01b0316808352908290526040909120549091508015610efe57610efb8282610f08565b50505b5050600101610ea9565b6001600160a01b0382165f90815260208190526040812081905580612710610f3261138885611856565b610f3c9190611768565b9150610f488284611755565b90505f610f536107e1565b90508360035f828254610f669190611650565b90915550505f8181526008602052604081208054869290610f88908490611650565b9091555050821561113457610fc76001600160a01b037f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9168685611281565b604051633243c79160e01b8152600481018490526001600160a01b03861690633243c791906024015f604051808303815f87803b158015611006575f80fd5b505af1925050508015611017575060015b6110c7576001600160a01b0385165f9081526020819052604081208054859290611042908490611650565b925050819055508260035f82825461105a9190611755565b90915550505f818152600860205260408120805485929061107c908490611755565b90915550506040518381526001600160a01b038616907f71798a5d2916fff98cd71106bffbd9ff401474148df1244980ebc2b5c68171cb9060200160405180910390a25f9250611100565b8260045f8282546110d89190611650565b90915550505f81815260096020526040812080548592906110fa908490611650565b90915550505b6111346001600160a01b037f0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd916865f611281565b8160015f8282546111459190611650565b909155505f90506111546112d3565b60408051868152602081018690529081018290524260608201529091506001600160a01b038716907ff4b6b4adf17bd8e8a3f76cda303f62f49eeb1260ce0857ff965ece2d82022e829060800160405180910390a250509250929050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661120e578383151615611202573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b61128d8383835f61141e565b610e635761129e83835f600161141e565b6112c657604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b610e3b838383600161141e565b6001545f908082036112e6575f91505090565b6040516301d7bef160e31b8152600481018290523090630ebdf788906024016020604051808303815f875af192505050801561133f575060408051601f3d908101601f1916820190925261133c9181019061172a565b60015b61137d576040518181527fce39e8fa7258cd4a4c8f312edeab51ed2316a9c2c729f87d9138192160c53ac89060200160405180910390a15f91505090565b5f6001819055508160055f8282546113959190611650565b925050819055508060065f8282546113ad9190611650565b90915550819050600a5f6113bf6107e1565b81526020019081526020015f205f8282546113da9190611650565b909155505060408051838152602081018390527f7c831355b163c428ee9cc3f5fe6bc053b07f13b9e5657cd4659450938561ecd8910160405180910390a192915050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b80356001600160a01b038116811461077b575f80fd5b5f806040838503121561148f575f80fd5b61149883611468565b946020939093013593505050565b5f602082840312156114b6575f80fd5b5035919050565b5f602082840312156114cd575f80fd5b6114d682611468565b9392505050565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610d7e82846114dd565b5f806020838503121561153f575f80fd5b823567ffffffffffffffff811115611555575f80fd5b8301601f81018513611565575f80fd5b803567ffffffffffffffff81111561157b575f80fd5b85602082840101111561158c575f80fd5b6020919091019590945092505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b602080825282518282018190525f918401906040840190835b818110156116115783516001600160a01b03168352602093840193909201916001016115ea565b509095945050505050565b5f806040838503121561162d575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610d7e57610d7e61163c565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611687575f80fd5b815167ffffffffffffffff81111561169d575f80fd5b8201601f810184136116ad575f80fd5b805167ffffffffffffffff8111156116c7576116c7611663565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156116f6576116f6611663565b60405281815282820160200186101561170d575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f6020828403121561173a575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b81810381811115610d7e57610d7e61163c565b5f8261178257634e487b7160e01b5f52601260045260245ffd5b500490565b5f600160ff1b820161179b5761179b61163c565b505f0390565b6001600160a01b038281168282160390811115610d7e57610d7e61163c565b6001600160a01b038181168382160190811115610d7e57610d7e61163c565b6117e981846114dd565b8151151560a0820152602082015160c08201526040909101516001600160a01b031660e082015261012061010082018190525f9082015261014001919050565b5f81600f0b6f7fffffffffffffffffffffffffffffff19810361184e5761184e61163c565b5f0392915050565b8082028115828204841417610d7e57610d7e61163c56fea164736f6c634300081a000a","recompiledBytecode":"0x608060405234801561000f575f80fd5b50600436106101dc575f3560e01c806370d8905111610109578063d80a4d4d1161009e578063efca2eed1161006e578063efca2eed1461046b578063f53507f2146103b9578063f5b91b7b14610474578063ff122cea1461049b575f80fd5b8063d80a4d4d14610409578063dc4c90d31461041c578063e29eb83614610443578063e61aa6171461044c575f80fd5b806391dd7346116100d957806391dd7346146103c2578063997664d7146103e2578063bee0d6ad146103eb578063d74d6f4014610400575f80fd5b806370d890511461037c57806375ffe734146103915780638c40baef1461039a5780638d7036de146103b9575f80fd5b8063436596c41161017f5780635c9302c91161014f5780635c9302c9146103255780635e768c3a1461032d57806363453ae11461034c5780636e9e625314610374575f80fd5b8063436596c4146102b057806346904840146102b85780634bb4c78b146102df5780634eec9e09146102fe575f80fd5b806320bd8991116101ba57806320bd89911461024d57806325d2a3f314610278578063389c4116146102a05780633f90916a146102a8575f80fd5b80630a6e0fd4146101e05780630ebdf788146101f557806316ad82d71461021b575b5f80fd5b6101f36101ee36600461147e565b6104a4565b005b6102086102033660046114a6565b610622565b6040519081526020015b60405180910390f35b61023d6102293660046114bd565b600b6020525f908152604090205460ff1681565b6040519015158152602001610212565b61026061025b3660046114a6565b610780565b6040516001600160a01b039091168152602001610212565b6102086102863660046114bd565b6001600160a01b03165f9081526020819052604090205490565b600c54610208565b6102086107ae565b6101f36107d1565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086102ed3660046114a6565b60086020525f908152604090205481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086107e1565b61020861033b3660046114a6565b600a6020525f908152604090205481565b61035f61035a3660046114bd565b6107ef565b60408051928352602083019190915201610212565b61020861084d565b61038461086c565b6040516102129190611520565b61020860065481565b6102086103a83660046114a6565b60076020525f908152604090205481565b61020861138881565b6103d56103d036600461152e565b610954565b604051610212919061159c565b61020860045481565b6103f3610d84565b60405161021291906115d1565b61020860055481565b6101f361041736600461161c565b610de4565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860025481565b61020861045a3660046114a6565b60096020525f908152604090205481565b61020860035481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860015481565b805f036104af575050565b6104e46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610df2565b6001600160a01b0382165f908152600b602052604090205460ff16610568576001600160a01b0382165f818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b6001600160a01b0382165f908152602081905260408120805483929061058f908490611650565b925050819055508060025f8282546105a79190611650565b9091555081905060075f6105b96107e1565b81526020019081526020015f205f8282546105d49190611650565b90915550506040805182815242602082015233916001600160a01b038516917fb02f9b42d2edd6db60b8270da46bea71d6f3ededf95f39eac71b6356c48310c0910160405180910390a35050565b5f3330146106435760405163029a949d60e31b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166348c894918360405160200161068591815260200190565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016106b0919061159c565b5f604051808303815f875af11580156106cb573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106f29190810190611677565b806020019051810190610705919061172a565b9050805f0361072757604051632274e4f360e21b815260040160405180910390fd5b61077b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610e2e565b919050565b5f600c828154811061079457610794611741565b5f918252602090912001546001600160a01b031692915050565b5f6001546003546002546107c29190611755565b6107cc9190611650565b905090565b600c546107df905f90610e68565b565b5f6107cc6201518042611768565b6001600160a01b0381165f9081526020819052604081205481908082036108395760405163edec0cc160e01b81526001600160a01b03851660048201526024015b60405180910390fd5b6108438482610f08565b9250925050915091565b5f60075f6108596107e1565b81526020019081526020015f2054905090565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506040805160a0810182526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682527f000000000000000000000000000000000000000000000000000000000000000016602082015262ffffff7f000000000000000000000000000000000000000000000000000000000000000016918101919091527f000000000000000000000000000000000000000000000000000000000000000060020b60608201525f608082015290565b6060336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461099f5760405163570c108560e11b815260040160405180910390fd5b5f6109ac838501856114a6565b90505f6109b761086c565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316825f01516001600160a01b03161490505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3cd914c846040518060600160405280861515815260200188610a4290611787565b815260200186610a7057610a6b600173fffd8963efd1fc6a506488495d951d5263988d266117a1565b610a80565b610a806401000276a360016117c0565b6001600160a01b03168152506040518363ffffffff1660e01b8152600401610aa99291906117df565b6020604051808303815f875af1158015610ac5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae9919061172a565b90505f82610afb578360200151610afe565b83515b90505f83610b0d578451610b13565b84602001515b90505f84610b2a57610b2584600f0b90565b610b34565b610b348460801d90565b90505f85610b4b57610b468560801d90565b610b55565b610b5585600f0b90565b90505f610b6183611829565b604051632961046560e21b81526001600160a01b0387811660048301526001600160801b039290921692507f00000000000000000000000000000000000000000000000000000000000000009091169063a5841194906024015f604051808303815f87803b158015610bd1575f80fd5b505af1158015610be3573d5f803e3d5ffd5b50610c3d9250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690507f000000000000000000000000000000000000000000000000000000000000000083610e2e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166311da60b46040518163ffffffff1660e01b81526004016020604051808303815f875af1158015610c9a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cbe919061172a565b50604051630b0d9c0960e01b81526001600160a01b0385811660048301523060248301526001600160801b03841660448301819052917f000000000000000000000000000000000000000000000000000000000000000090911690630b0d9c09906064015f604051808303815f87803b158015610d39575f80fd5b505af1158015610d4b573d5f803e3d5ffd5b5050505080604051602001610d6291815260200190565b6040516020818303038152906040529a50505050505050505050505b92915050565b6060600c805480602002602001604051908101604052809291908181526020018280548015610dda57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610dbc575b5050505050905090565b610dee8282610e68565b5050565b610e008484848460016111b2565b610e2857604051635274afe760e01b81526001600160a01b0385166004820152602401610830565b50505050565b610e3b838383600161121f565b610e6357604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b505050565b600c5481831180610e7857508082115b15610ea75760405163cee0f63d60e01b8152600481018490526024810183905260448101829052606401610830565b825b82811015610e28575f600c8281548110610ec557610ec5611741565b5f9182526020808320909101546001600160a01b0316808352908290526040909120549091508015610efe57610efb8282610f08565b50505b5050600101610ea9565b6001600160a01b0382165f90815260208190526040812081905580612710610f3261138885611856565b610f3c9190611768565b9150610f488284611755565b90505f610f536107e1565b90508360035f828254610f669190611650565b90915550505f8181526008602052604081208054869290610f88908490611650565b9091555050821561113457610fc76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168685611281565b604051633243c79160e01b8152600481018490526001600160a01b03861690633243c791906024015f604051808303815f87803b158015611006575f80fd5b505af1925050508015611017575060015b6110c7576001600160a01b0385165f9081526020819052604081208054859290611042908490611650565b925050819055508260035f82825461105a9190611755565b90915550505f818152600860205260408120805485929061107c908490611755565b90915550506040518381526001600160a01b038616907f71798a5d2916fff98cd71106bffbd9ff401474148df1244980ebc2b5c68171cb9060200160405180910390a25f9250611100565b8260045f8282546110d89190611650565b90915550505f81815260096020526040812080548592906110fa908490611650565b90915550505b6111346001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016865f611281565b8160015f8282546111459190611650565b909155505f90506111546112d3565b60408051868152602081018690529081018290524260608201529091506001600160a01b038716907ff4b6b4adf17bd8e8a3f76cda303f62f49eeb1260ce0857ff965ece2d82022e829060800160405180910390a250509250929050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661120e578383151615611202573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b61128d8383835f61141e565b610e635761129e83835f600161141e565b6112c657604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b610e3b838383600161141e565b6001545f908082036112e6575f91505090565b6040516301d7bef160e31b8152600481018290523090630ebdf788906024016020604051808303815f875af192505050801561133f575060408051601f3d908101601f1916820190925261133c9181019061172a565b60015b61137d576040518181527fce39e8fa7258cd4a4c8f312edeab51ed2316a9c2c729f87d9138192160c53ac89060200160405180910390a15f91505090565b5f6001819055508160055f8282546113959190611650565b925050819055508060065f8282546113ad9190611650565b90915550819050600a5f6113bf6107e1565b81526020019081526020015f205f8282546113da9190611650565b909155505060408051838152602081018390527f7c831355b163c428ee9cc3f5fe6bc053b07f13b9e5657cd4659450938561ecd8910160405180910390a192915050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b80356001600160a01b038116811461077b575f80fd5b5f806040838503121561148f575f80fd5b61149883611468565b946020939093013593505050565b5f602082840312156114b6575f80fd5b5035919050565b5f602082840312156114cd575f80fd5b6114d682611468565b9392505050565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610d7e82846114dd565b5f806020838503121561153f575f80fd5b823567ffffffffffffffff811115611555575f80fd5b8301601f81018513611565575f80fd5b803567ffffffffffffffff81111561157b575f80fd5b85602082840101111561158c575f80fd5b6020919091019590945092505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b602080825282518282018190525f918401906040840190835b818110156116115783516001600160a01b03168352602093840193909201916001016115ea565b509095945050505050565b5f806040838503121561162d575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610d7e57610d7e61163c565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611687575f80fd5b815167ffffffffffffffff81111561169d575f80fd5b8201601f810184136116ad575f80fd5b805167ffffffffffffffff8111156116c7576116c7611663565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156116f6576116f6611663565b60405281815282820160200186101561170d575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f6020828403121561173a575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b81810381811115610d7e57610d7e61163c565b5f8261178257634e487b7160e01b5f52601260045260245ffd5b500490565b5f600160ff1b820161179b5761179b61163c565b505f0390565b6001600160a01b038281168282160390811115610d7e57610d7e61163c565b6001600160a01b038181168382160190811115610d7e57610d7e61163c565b6117e981846114dd565b8151151560a0820152602082015160c08201526040909101516001600160a01b031660e082015261012061010082018190525f9082015261014001919050565b5f81600f0b6f7fffffffffffffffffffffffffffffff19810361184e5761184e61163c565b5f0392915050565b8082028115828204841417610d7e57610d7e61163c56fea164736f6c634300081a000a","sourceMap":"2428:11582:26:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6775:484;;;;;;:::i;:::-;;:::i;:::-;;11329:350;;;;;;:::i;:::-;;:::i;:::-;;;874:25:29;;;862:2;847:18;11329:350:26;;;;;;;;4220:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1266:14:29;;1259:22;1241:41;;1229:2;1214:18;4220:48:26;1101:187:29;13551:108:26;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1457:32:29;;;1439:51;;1427:2;1412:18;13551:108:26;1293:203:29;13232:107:26;;;;;;:::i;:::-;-1:-1:-1;;;;;13317:15:26;13291:7;13317:15;;;;;;;;;;;;13232:107;13345:98;13419:10;:17;13345:98;;13761:133;;;:::i;7870:89::-;;;:::i;2975:37::-;;;;;4041:55;;;;;;:::i;:::-;;;;;;;;;;;;;;2756:38;;;;;6079:100;;;:::i;4161:52::-;;;;;;:::i;:::-;;;;;;;;;;;;;;7539:251;;;;;;:::i;:::-;;:::i;:::-;;;;1897:25:29;;;1953:2;1938:18;;1931:34;;;;1870:18;7539:251:26;1723:248:29;13900:108:26;;;:::i;6264:290::-;;;:::i;:::-;;;;;;;:::i;3944:31::-;;;;;;3982:53;;;;;;:::i;:::-;;;;;;;;;;;;;;2600:44;;2639:5;2600:44;;11721:1329;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3756:29::-;;;;;;13449:96;;;:::i;:::-;;;;;;;:::i;3850:29::-;;;;;;8039:127;;;;;;:::i;:::-;;:::i;3112:41::-;;;;;3616:29;;;;;;4102:53;;;;;;:::i;:::-;;;;;;;;;;;;;;3651:31;;;;;;2856:28;;;;;3577:32;;;;;;6775:484;6848:6;6858:1;6848:11;6844:24;;6775:484;;:::o;6844:24::-;6877:66;-1:-1:-1;;;;;6877:14:26;:31;6909:10;6929:4;6936:6;6877:31;:66::i;:::-;-1:-1:-1;;;;;6959:17:26;;;;;;:10;:17;;;;;;;;6954:109;;-1:-1:-1;;;;;6992:17:26;;;;;;:10;:17;;;;;:24;;-1:-1:-1;;6992:24:26;7012:4;6992:24;;;;;;7030:10;:22;;;;;;;;;;;;;;-1:-1:-1;;;;;;7030:22:26;;;;;;6954:109;-1:-1:-1;;;;;7073:15:26;;:8;:15;;;;;;;;;;:25;;7092:6;;7073:8;:25;;7092:6;;7073:25;:::i;:::-;;;;;;;;7126:6;7108:14;;:24;;;;;;;:::i;:::-;;;;-1:-1:-1;7174:6:26;;-1:-1:-1;7142:14:26;:28;7157:12;:10;:12::i;:::-;7142:28;;;;;;;;;;;;:38;;;;;;;:::i;:::-;;;;-1:-1:-1;;7196:56:26;;;1897:25:29;;;7236:15:26;1953:2:29;1938:18;;1931:34;7216:10:26;;-1:-1:-1;;;;;7196:56:26;;;;;1870:18:29;7196:56:26;;;;;;;6775:484;;:::o;11329:350::-;11392:17;11425:10;11447:4;11425:27;11421:50;;11461:10;;-1:-1:-1;;;11461:10:26;;;;;;;;;;;11421:50;11504:11;-1:-1:-1;;;;;11504:18:26;;11534:8;11523:20;;;;;;874:25:29;;862:2;847:18;;728:177;11523:20:26;;;;;;;;;;;;;11504:40;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;11504:40:26;;;;;;;;;;;;:::i;:::-;11493:63;;;;;;;;;;;;:::i;:::-;11481:75;;11570:9;11583:1;11570:14;11566:54;;11593:27;;-1:-1:-1;;;11593:27:26;;;;;;;;;;;11566:54;11630:42;-1:-1:-1;;;;;11630:4:26;:17;11648:12;11662:9;11630:17;:42::i;:::-;11329:350;;;:::o;13551:108::-;13609:7;13635:10;13646:5;13635:17;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;13635:17:26;;13551:108;-1:-1:-1;;13551:108:26:o;13761:133::-;13808:7;13870:17;;13851:16;;13834:14;;:33;;;;:::i;:::-;:53;;;;:::i;:::-;13827:60;;13761:133;:::o;7870:89::-;7934:10;:17;7914:38;;7931:1;;7914:16;:38::i;:::-;7870:89::o;6079:100::-;6122:7;6148:24;6166:6;6148:15;:24;:::i;7539:251::-;-1:-1:-1;;;;;7665:15:26;;7592:21;7665:15;;;;;;;;;;;7592:21;;7694:11;;;7690:50;;7714:26;;-1:-1:-1;;;7714:26:26;;-1:-1:-1;;;;;1457:32:29;;7714:26:26;;;1439:51:29;1412:18;;7714:26:26;;;;;;;;7690:50;7757:26;7769:5;7776:6;7757:11;:26::i;:::-;7750:33;;;;;7539:251;;;:::o;13900:108::-;13947:7;13973:14;:28;13988:12;:10;:12::i;:::-;13973:28;;;;;;;;;;;;13966:35;;13900:108;:::o;6264:290::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6341:206:26;;;;;;;;-1:-1:-1;;;;;6374:14:26;6341:206;;;;6413:14;6341:206;;;;;;6446:8;6341:206;;;;;;;;6481:16;6341:206;;;;;;-1:-1:-1;6341:206:26;;;;;6264:290::o;11721:1329::-;11784:12;11812:10;-1:-1:-1;;;;;11834:11:26;11812:34;;11808:63;;11855:16;;-1:-1:-1;;;11855:16:26;;;;;;;;;;;11808:63;11881:16;11900:27;;;;11911:4;11900:27;:::i;:::-;11881:46;;11938:18;11959:13;:11;:13::i;:::-;11938:34;;11982:15;12042:14;-1:-1:-1;;;;;12000:57:26;12016:3;:13;;;-1:-1:-1;;;;;12000:57:26;;11982:75;;12068:18;12089:11;-1:-1:-1;;;;;12089:16:26;;12119:3;12136:225;;;;;;;;12177:10;12136:225;;;;;;12230:8;12222:17;;;:::i;:::-;12136:225;;;;12276:10;:70;;12319:27;12345:1;2042:49:19;12319:27:26;:::i;:::-;12276:70;;;12289:27;1862:10:19;12315:1:26;12289:27;:::i;:::-;-1:-1:-1;;;;;12136:225:26;;;;12089:298;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;12068:319;;12398:22;12423:10;:42;;12452:3;:13;;;12423:42;;;12436:13;;12423:42;12398:67;;12475:21;12499:10;:42;;12528:13;;12499:42;;;12512:3;:13;;;12499:42;12475:66;;12551:17;12571:10;:46;;12602:15;:5;2303:2:20;2292:28;;2147:189;12602:15:26;12571:46;;;12584:15;:5;2107:3:20;2103:22;;1958:183;12584:15:26;12551:66;;12627:16;12646:10;:46;;12677:15;:5;2107:3:20;2103:22;;1958:183;12677:15:26;12646:46;;;12659:15;:5;2303:2:20;2292:28;;2147:189;12659:15:26;12627:65;-1:-1:-1;12703:12:26;12734:11;12735:10;12734:11;:::i;:::-;12757:31;;-1:-1:-1;;;12757:31:26;;-1:-1:-1;;;;;1457:32:29;;;12757:31:26;;;1439:51:29;-1:-1:-1;;;;;12718:29:26;;;;;-1:-1:-1;12757:11:26;:16;;;;;;1412:18:29;;12757:31:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12798:55:26;;-1:-1:-1;;;;;;;12798:14:26;:27;;-1:-1:-1;12834:11:26;12848:4;12798:27;:55::i;:::-;12863:11;-1:-1:-1;;;;;12863:18:26;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;12950:55:26;;-1:-1:-1;;;12950:55:26;;-1:-1:-1;;;;;9103:32:29;;;12950:55:26;;;9085:51:29;12989:4:26;9152:18:29;;;9145:60;-1:-1:-1;;;;;12913:27:26;;9221:18:29;;;9214:34;;;12913:27:26;12950:11;:16;;;;;;9058:18:29;;12950:55:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13034:8;13023:20;;;;;;874:25:29;;862:2;847:18;;728:177;13023:20:26;;;;;;;;;;;;;13016:27;;;;;;;;;;;;11721:1329;;;;;:::o;13449:96::-;13493:16;13528:10;13521:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;13521:17:26;;;;;;;;;;;;;;;;;;;;;;;13449:96;:::o;8039:127::-;8121:38;8138:10;8150:8;8121:16;:38::i;:::-;8039:127;;:::o;1733:232:6:-;1838:47;1856:5;1863:4;1869:2;1873:5;1880:4;1838:17;:47::i;:::-;1833:126;;1908:40;;-1:-1:-1;;;1908:40:6;;-1:-1:-1;;;;;1457:32:29;;1908:40:6;;;1439:51:29;1412:18;;1908:40:6;1293:203:29;1833:126:6;1733:232;;;;:::o;1290:204::-;1377:37;1391:5;1398:2;1402:5;1409:4;1377:13;:37::i;:::-;1372:116;;1437:40;;-1:-1:-1;;;1437:40:6;;-1:-1:-1;;;;;1457:32:29;;1437:40:6;;;1439:51:29;1412:18;;1437:40:6;1293:203:29;1372:116:6;1290:204;;;:::o;8172:521:26:-;8269:10;:17;8300:21;;;;:39;;;8336:3;8325:8;:14;8300:39;8296:91;;;8348:39;;-1:-1:-1;;;8348:39:26;;;;;9461:25:29;;;9502:18;;;9495:34;;;9545:18;;;9538:34;;;9434:18;;8348:39:26;9259:319:29;8296:91:26;8414:10;8397:290;8430:8;8426:1;:12;8397:290;;;8459:13;8475:10;8486:1;8475:13;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;8475:13:26;8519:15;;;;;;;;;;;;8475:13;;-1:-1:-1;8637:11:26;;8633:43;;8650:26;8662:5;8669:6;8650:11;:26::i;:::-;;;8633:43;-1:-1:-1;;8440:3:26;;8397:290;;8699:1685;-1:-1:-1;;;;;8845:15:26;;8785:21;8845:15;;;;;;;;;;:19;;;8785:21;2743:6;8892:21;2639:5;8892:6;:21;:::i;:::-;8891:41;;;;:::i;:::-;8875:57;-1:-1:-1;9105:22:26;8875:57;9105:6;:22;:::i;:::-;9089:38;;9138:11;9152:12;:10;:12::i;:::-;9138:26;;9194:6;9174:16;;:26;;;;;;;:::i;:::-;;;;-1:-1:-1;;9210:21:26;;;;:16;:21;;;;;:31;;9235:6;;9210:21;:31;;9235:6;;9210:31;:::i;:::-;;;;-1:-1:-1;;9299:18:26;;9295:873;;9414:49;-1:-1:-1;;;;;9414:14:26;:27;9442:5;9449:13;9414:27;:49::i;:::-;9656:57;;-1:-1:-1;;;9656:57:26;;;;;874:25:29;;;-1:-1:-1;;;;;9656:42:26;;;;;847:18:29;;9656:57:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9652:455;;-1:-1:-1;;;;;9857:15:26;;:8;:15;;;;;;;;;;:32;;9876:13;;9857:8;:32;;9876:13;;9857:32;:::i;:::-;;;;;;;;9927:13;9907:16;;:33;;;;;;;:::i;:::-;;;;-1:-1:-1;;9958:21:26;;;;:16;:21;;;;;:38;;9983:13;;9958:21;:38;;9983:13;;9958:38;:::i;:::-;;;;-1:-1:-1;;10019:38:26;;874:25:29;;;-1:-1:-1;;;;;10019:38:26;;;;;862:2:29;847:18;10019:38:26;;;;;;;10091:1;10075:17;;9652:455;;;9750:13;9732:14;;:31;;;;;;;:::i;:::-;;;;-1:-1:-1;;9781:19:26;;;;:14;:19;;;;;:36;;9804:13;;9781:19;:36;;9804:13;;9781:36;:::i;:::-;;;;-1:-1:-1;;9652:455:26;10120:37;-1:-1:-1;;;;;10120:14:26;:27;10148:5;10155:1;10120:27;:37::i;:::-;10227:13;10206:17;;:34;;;;;;;:::i;:::-;;;;-1:-1:-1;10250:16:26;;-1:-1:-1;10269:13:26;:11;:13::i;:::-;10298:79;;;9987:25:29;;;10043:2;10028:18;;10021:34;;;10071:18;;;10064:34;;;10361:15:26;10129:2:29;10114:18;;10107:34;10250:32:26;;-1:-1:-1;;;;;;10298:79:26;;;;;9974:3:29;9959:19;10298:79:26;;;;;;;8835:1549;;8699:1685;;;;;:::o;10814:1393:6:-;11109:4;11103:11;-1:-1:-1;;;10972:12:6;11127:22;;;-1:-1:-1;;;;;11175:26:6;;;11169:4;11162:40;11228:24;;11222:4;11215:38;11273:4;11266:19;;;10972:12;11349:4;10972:12;11337:4;10972:12;;11321:5;11314;11309:45;11298:56;;11566:1;11559:4;11553:11;11550:18;11541:7;11537:32;11527:606;;11698:6;11688:7;11681:15;11677:28;11674:165;;;11754:16;11748:4;11743:3;11728:43;11804:16;11799:3;11792:29;11674:165;12115:1;12107:5;12095:18;12092:25;12073:16;12066:24;12062:56;12053:7;12049:70;12038:81;;11527:606;12153:4;12146:17;-1:-1:-1;12189:1:6;12183:4;12176:15;10814:1393;;-1:-1:-1;;;;;10814:1393:6:o;9022:1244::-;9249:4;9243:11;-1:-1:-1;;;9116:12:6;9267:22;;;-1:-1:-1;;;;;9315:24:6;;9309:4;9302:38;9360:4;9353:19;;;9116:12;9436:4;9116:12;9424:4;9116:12;;9408:5;9401;9396:45;9385:56;;9653:1;9646:4;9640:11;9637:18;9628:7;9624:32;9614:606;;9785:6;9775:7;9768:15;9764:28;9761:165;;;9841:16;9835:4;9830:3;9815:43;9891:16;9886:3;9879:29;9761:165;10202:1;10194:5;10182:18;10179:25;10160:16;10153:24;10149:56;10140:7;10136:70;10125:81;;9614:606;10240:4;10233:17;-1:-1:-1;9022:1244:6;;-1:-1:-1;;;;9022:1244:6:o;5169:367::-;5261:42;5274:5;5281:7;5290:5;5297;5261:12;:42::i;:::-;5256:274;;5324:37;5337:5;5344:7;5353:1;5356:4;5324:12;:37::i;:::-;5319:91;;5370:40;;-1:-1:-1;;;5370:40:6;;-1:-1:-1;;;;;1457:32:29;;5370:40:6;;;1439:51:29;1412:18;;5370:40:6;1293:203:29;5319:91:6;5429:41;5442:5;5449:7;5458:5;5465:4;5429:12;:41::i;10646:576:26:-;10734:17;;10687:16;;10765:13;;;10761:27;;10787:1;10780:8;;;10646:576;:::o;10761:27::-;10803:32;;-1:-1:-1;;;10803:32:26;;;;;874:25:29;;;10803:4:26;;:22;;847:18:29;;10803:32:26;;;;;;;;;;;;;;;;;;;-1:-1:-1;10803:32:26;;;;;;;;-1:-1:-1;;10803:32:26;;;;;;;;;;;;:::i;:::-;;;10799:417;;11155:28;;874:25:29;;;11155:28:26;;862:2:29;847:18;11155:28:26;;;;;;;11204:1;11197:8;;;10646:576;:::o;10799:417::-;10898:1;10878:17;:21;;;;10931:8;10913:14;;:26;;;;;;;:::i;:::-;;;;;;;;10973:9;10953:16;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;11027:9:26;;-1:-1:-1;10996:13:26;:27;11010:12;:10;:12::i;:::-;10996:27;;;;;;;;;;;;:40;;;;;;;:::i;:::-;;;;-1:-1:-1;;11055:33:26;;;1897:25:29;;;1953:2;1938:18;;1931:34;;;11055:33:26;;1870:18:29;11055:33:26;;;;;;;11109:9;10646:576;-1:-1:-1;;10646:576:26:o;12706:1252:6:-;12936:4;12930:11;-1:-1:-1;;;12804:12:6;12954:22;;;-1:-1:-1;;;;;13002:29:6;;12996:4;12989:43;13052:4;13045:19;;;12804:12;13128:4;12804:12;13116:4;12804:12;;13100:5;13093;13088:45;13077:56;;13345:1;13338:4;13332:11;13329:18;13320:7;13316:32;13306:606;;13477:6;13467:7;13460:15;13456:28;13453:165;;;13533:16;13527:4;13522:3;13507:43;13583:16;13578:3;13571:29;14:173:29;82:20;;-1:-1:-1;;;;;131:31:29;;121:42;;111:70;;177:1;174;167:12;192:300;260:6;268;321:2;309:9;300:7;296:23;292:32;289:52;;;337:1;334;327:12;289:52;360:29;379:9;360:29;:::i;:::-;350:39;458:2;443:18;;;;430:32;;-1:-1:-1;;;192:300:29:o;497:226::-;556:6;609:2;597:9;588:7;584:23;580:32;577:52;;;625:1;622;615:12;577:52;-1:-1:-1;670:23:29;;497:226;-1:-1:-1;497:226:29:o;910:186::-;969:6;1022:2;1010:9;1001:7;997:23;993:32;990:52;;;1038:1;1035;1028:12;990:52;1061:29;1080:9;1061:29;:::i;:::-;1051:39;910:186;-1:-1:-1;;;910:186:29:o;1976:424::-;2053:12;;-1:-1:-1;;;;;2049:38:29;;;2037:51;;2141:4;2130:16;;;2124:23;2120:49;;2104:14;;;2097:73;2223:4;2212:16;;;2206:23;2231:8;2202:38;2186:14;;;2179:62;2304:4;2293:16;;;2287:23;2284:1;2273:38;2257:14;;;2250:62;2365:4;2354:16;;;2348:23;2344:49;2328:14;;2321:73;1976:424::o;2405:247::-;2589:3;2574:19;;2602:44;2578:9;2628:6;2602:44;:::i;2657:586::-;2727:6;2735;2788:2;2776:9;2767:7;2763:23;2759:32;2756:52;;;2804:1;2801;2794:12;2756:52;2844:9;2831:23;2877:18;2869:6;2866:30;2863:50;;;2909:1;2906;2899:12;2863:50;2932:22;;2985:4;2977:13;;2973:27;-1:-1:-1;2963:55:29;;3014:1;3011;3004:12;2963:55;3054:2;3041:16;3080:18;3072:6;3069:30;3066:50;;;3112:1;3109;3102:12;3066:50;3157:7;3152:2;3143:6;3139:2;3135:15;3131:24;3128:37;3125:57;;;3178:1;3175;3168:12;3125:57;3209:2;3201:11;;;;;3231:6;;-1:-1:-1;2657:586:29;-1:-1:-1;;;2657:586:29:o;3248:416::-;3395:2;3384:9;3377:21;3358:4;3427:6;3421:13;3470:6;3465:2;3454:9;3450:18;3443:34;3529:6;3524:2;3516:6;3512:15;3507:2;3496:9;3492:18;3486:50;3585:1;3580:2;3571:6;3560:9;3556:22;3552:31;3545:42;3655:2;3648;3644:7;3639:2;3631:6;3627:15;3623:29;3612:9;3608:45;3604:54;3596:62;;;3248:416;;;;:::o;3669:637::-;3859:2;3871:21;;;3941:13;;3844:18;;;3963:22;;;3811:4;;4042:15;;;4016:2;4001:18;;;3811:4;4085:195;4099:6;4096:1;4093:13;4085:195;;;4164:13;;-1:-1:-1;;;;;4160:39:29;4148:52;;4229:2;4255:15;;;;4220:12;;;;4196:1;4114:9;4085:195;;;-1:-1:-1;4297:3:29;;3669:637;-1:-1:-1;;;;;3669:637:29:o;4311:346::-;4379:6;4387;4440:2;4428:9;4419:7;4415:23;4411:32;4408:52;;;4456:1;4453;4446:12;4408:52;-1:-1:-1;;4501:23:29;;;4621:2;4606:18;;;4593:32;;-1:-1:-1;4311:346:29:o;4891:127::-;4952:10;4947:3;4943:20;4940:1;4933:31;4983:4;4980:1;4973:15;5007:4;5004:1;4997:15;5023:125;5088:9;;;5109:10;;;5106:36;;;5122:18;;:::i;5153:127::-;5214:10;5209:3;5205:20;5202:1;5195:31;5245:4;5242:1;5235:15;5269:4;5266:1;5259:15;5285:934;5364:6;5417:2;5405:9;5396:7;5392:23;5388:32;5385:52;;;5433:1;5430;5423:12;5385:52;5466:9;5460:16;5499:18;5491:6;5488:30;5485:50;;;5531:1;5528;5521:12;5485:50;5554:22;;5607:4;5599:13;;5595:27;-1:-1:-1;5585:55:29;;5636:1;5633;5626:12;5585:55;5669:2;5663:9;5695:18;5687:6;5684:30;5681:56;;;5717:18;;:::i;:::-;5766:2;5760:9;5858:2;5820:17;;-1:-1:-1;;5816:31:29;;;5849:2;5812:40;5808:54;5796:67;;5893:18;5878:34;;5914:22;;;5875:62;5872:88;;;5940:18;;:::i;:::-;5976:2;5969:22;6000;;;6041:15;;;6058:2;6037:24;6034:37;-1:-1:-1;6031:57:29;;;6084:1;6081;6074:12;6031:57;6133:6;6128:2;6124;6120:11;6115:2;6107:6;6103:15;6097:43;6186:1;6160:19;;;6181:2;6156:28;6149:39;;;;6164:6;5285:934;-1:-1:-1;;;;5285:934:29:o;6224:184::-;6294:6;6347:2;6335:9;6326:7;6322:23;6318:32;6315:52;;;6363:1;6360;6353:12;6315:52;-1:-1:-1;6386:16:29;;6224:184;-1:-1:-1;6224:184:29:o;6413:127::-;6474:10;6469:3;6465:20;6462:1;6455:31;6505:4;6502:1;6495:15;6529:4;6526:1;6519:15;6545:128;6612:9;;;6633:11;;;6630:37;;;6647:18;;:::i;6678:217::-;6718:1;6744;6734:132;;6788:10;6783:3;6779:20;6776:1;6769:31;6823:4;6820:1;6813:15;6851:4;6848:1;6841:15;6734:132;-1:-1:-1;6880:9:29;;6678:217::o;6900:136::-;6935:3;-1:-1:-1;;;6956:22:29;;6953:48;;6981:18;;:::i;:::-;-1:-1:-1;7021:1:29;7017:13;;6900:136::o;7041:198::-;-1:-1:-1;;;;;7141:27:29;;;7112;;;7108:61;;7181:29;;7178:55;;;7213:18;;:::i;7244:195::-;-1:-1:-1;;;;;7313:27:29;;;7342;;;7309:61;;7382:28;;7379:54;;;7413:18;;:::i;7444:728::-;7789:44;7823:9;7815:6;7789:44;:::i;:::-;7884:13;;7877:21;7870:29;7864:3;7849:19;;7842:58;7955:4;7943:17;;7937:24;7931:3;7916:19;;7909:53;8021:4;8009:17;;;8003:24;-1:-1:-1;;;;;7999:50:29;7993:3;7978:19;;7971:79;8087:3;8081;8066:19;;8059:32;;;-1:-1:-1;8107:19:29;;;8100:30;8162:3;8147:19;;7444:728;-1:-1:-1;7444:728:29:o;8399:213::-;8434:3;8482:5;8478:2;8467:21;8516:34;8512:39;8503:7;8500:52;8497:78;;8555:18;;:::i;:::-;8595:1;8591:15;;8399:213;-1:-1:-1;;8399:213:29:o;9583:168::-;9656:9;;;9687;;9704:15;;;9698:22;;9684:37;9674:71;;9725:18;;:::i","linkReferences":{},"cborAuxdata":{"1":{"value":"0xa164736f6c634300081a000a","offset":6254}},"immutableReferences":{"3010":[{"start":771,"length":32},{"start":1212,"length":32},{"start":2492,"length":32},{"start":3060,"length":32},{"start":4000,"length":32},{"start":4365,"length":32}],"3014":[{"start":1145,"length":32},{"start":1844,"length":32}],"3017":[{"start":701,"length":32},{"start":1878,"length":32}],"3021":[{"start":1057,"length":32},{"start":1605,"length":32},{"start":2401,"length":32},{"start":2551,"length":32},{"start":2958,"length":32},{"start":3096,"length":32},{"start":3135,"length":32},{"start":3318,"length":32}],"3024":[{"start":2219,"length":32}],"3027":[{"start":2256,"length":32}],"3029":[{"start":2299,"length":32}],"3031":[{"start":2340,"length":32}]},"transformations":[{"id":"3017","type":"replace","offset":701,"reason":"immutable"},{"id":"3010","type":"replace","offset":771,"reason":"immutable"},{"id":"3021","type":"replace","offset":1057,"reason":"immutable"},{"id":"3014","type":"replace","offset":1145,"reason":"immutable"},{"id":"3010","type":"replace","offset":1212,"reason":"immutable"},{"id":"3021","type":"replace","offset":1605,"reason":"immutable"},{"id":"3014","type":"replace","offset":1844,"reason":"immutable"},{"id":"3017","type":"replace","offset":1878,"reason":"immutable"},{"id":"3024","type":"replace","offset":2219,"reason":"immutable"},{"id":"3027","type":"replace","offset":2256,"reason":"immutable"},{"id":"3029","type":"replace","offset":2299,"reason":"immutable"},{"id":"3031","type":"replace","offset":2340,"reason":"immutable"},{"id":"3021","type":"replace","offset":2401,"reason":"immutable"},{"id":"3010","type":"replace","offset":2492,"reason":"immutable"},{"id":"3021","type":"replace","offset":2551,"reason":"immutable"},{"id":"3021","type":"replace","offset":2958,"reason":"immutable"},{"id":"3010","type":"replace","offset":3060,"reason":"immutable"},{"id":"3021","type":"replace","offset":3096,"reason":"immutable"},{"id":"3021","type":"replace","offset":3135,"reason":"immutable"},{"id":"3021","type":"replace","offset":3318,"reason":"immutable"},{"id":"3010","type":"replace","offset":4000,"reason":"immutable"},{"id":"3010","type":"replace","offset":4365,"reason":"immutable"}],"transformationValues":{"immutables":{"3010":"0x0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9","3014":"0x0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d168","3017":"0x0000000000000000000000008e7f5dc04df1cf50cb65a833354f5dcade3418f6","3021":"0x0000000000000000000000008366a39cc670b4001a1121b8f6a443a643e40951","3024":"0x0000000000000000000000005d2e81cb3a6fece856b824dfd7e1d6d3dbad8cd9","3027":"0x0000000000000000000000005fc5360d0400a0fd4f2af552add042d716f1d168","3029":"0x0000000000000000000000000000000000000000000000000000000000000bb8","3031":"0x000000000000000000000000000000000000000000000000000000000000003c"}}},"deployment":{"transactionHash":"0x8f40c0fa30cccc6361363e60728d11b77b9c78218e1f247f62e729c6c3e560f7","blockNumber":"52043711","transactionIndex":"12","deployer":"0xd28d0b3dc4799D04E01A45f13b932ADAb89b7B0d"},"sources":{"src/FeeCollector.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\nimport {IPoolManager} from \"@uniswap/v4-core/src/interfaces/IPoolManager.sol\";\nimport {IUnlockCallback} from \"@uniswap/v4-core/src/interfaces/callback/IUnlockCallback.sol\";\nimport {IHooks} from \"@uniswap/v4-core/src/interfaces/IHooks.sol\";\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport {Currency} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {BalanceDelta} from \"@uniswap/v4-core/src/types/BalanceDelta.sol\";\nimport {SwapParams} from \"@uniswap/v4-core/src/types/PoolOperation.sol\";\nimport {TickMath} from \"@uniswap/v4-core/src/libraries/TickMath.sol\";\n\nimport {IFeeCollector} from \"./interfaces/IFeeCollector.sol\";\nimport {ILaunchpadToken} from \"./interfaces/ILaunchpadToken.sol\";\n\n/// @title FeeCollector\n/// @notice Receives every protocol fee the LaunchpadHook skims and splits it 50/50: half paid\n///         back to the holders of the token that generated it, half converted to USDG for the\n///         protocol operator.\n///\n/// @dev Dividends follow the token, not the share. A fee generated by PEPE trading is paid to\n///      PEPE holders, in TokenizedStock. Each launch keeps its own dividend pool; they are\n///      never mixed. The share itself pays no dividend — what it gets from the launchpad is\n///      demand, since every buy of every token is routed through it.\n///\n/// @dev No owner, no admin, no setters. The split is two constants, the recipient is an\n///      immutable, and `distribute` is callable by anyone for any token.\n///\n///      WHY `recordFee` IS PERMISSIONLESS. It pulls the stock off the caller before crediting\n///      it, so calling it is strictly a donation. That also lets this contract be deployed\n///      before the hook, which is what keeps the whole deployment graph acyclic.\n///\n///      THE USDG LEG. Fees arrive in stock, so the operator's half has to be sold. That makes\n///      the protocol a structural seller of the very asset the launchpad exists to create\n///      demand for, and it needs a stock/USDG pool deep enough to absorb it. If the swap\n///      cannot execute, the operator's half is held and retried — the dividend half is paid\n///      either way, so shareholders are never blocked by a thin conversion pool.\ncontract FeeCollector is IFeeCollector, IUnlockCallback {\n    using SafeERC20 for IERC20;\n\n    /// @notice Immutable split. Half to shareholders, half to the operator.\n    uint256 public constant DIVIDEND_BPS = 5_000;\n    uint256 public constant OPERATOR_BPS = 5_000;\n    uint256 private constant BPS_DENOMINATOR = 10_000;\n\n    IERC20 public immutable tokenizedStock;\n    /// @notice The stablecoin the operator is paid in.\n    IERC20 public immutable usdg;\n    /// @notice Where the operator's half lands. Set once, at construction, forever.\n    address public immutable feeRecipient;\n    /// @notice The v4 singleton. Conversions swap straight against it, not through a router.\n    IPoolManager public immutable poolManager;\n\n    // The stock/USDG conversion pool, stored field by field because a struct cannot be immutable.\n    Currency private immutable _coreCurrency0;\n    Currency private immutable _coreCurrency1;\n    uint24 private immutable _coreFee;\n    int24 private immutable _coreTickSpacing;\n\n    mapping(address token => uint256) private _pending;\n    /// @notice Stock earmarked for the operator that could not be converted yet.\n    uint256 public pendingConversion;\n\n    uint256 public totalCollected;\n    uint256 public totalDistributed;\n    /// @notice Cumulative stock paid out as shareholder dividends.\n    uint256 public totalDividends;\n    /// @notice Cumulative stock sold to pay the operator.\n    uint256 public stockConverted;\n    /// @notice Cumulative USDG delivered to the operator.\n    uint256 public operatorReceived;\n\n    mapping(uint256 day => uint256) public collectedOnDay;\n    mapping(uint256 day => uint256) public distributedOnDay;\n    mapping(uint256 day => uint256) public dividendsOnDay;\n    mapping(uint256 day => uint256) public operatorOnDay;\n\n    mapping(address token => bool) public isFeeToken;\n    address[] private _feeTokens;\n\n    error ZeroAddress();\n    error OnlySelf();\n    error NothingToDistribute(address token);\n    error InvalidRange(uint256 startIndex, uint256 endIndex, uint256 length);\n    error ConversionReturnedNothing();\n    error NotPoolManager();\n\n    event FeesRecorded(address indexed token, address indexed from, uint256 amount, uint256 timestamp);\n    event FeesDistributed(\n        address indexed token, uint256 dividendShare, uint256 operatorShare, uint256 usdgPaid, uint256 timestamp\n    );\n    /// @notice The stock/USDG pool could not absorb the sale; the stock is held for next time.\n    event ConversionDeferred(uint256 pendingStock);\n    /// @notice Nobody held the token yet, so its dividend could not be paid; held for next time.\n    event DividendDeferred(address indexed token, uint256 amount);\n    event OperatorPaid(uint256 stockSold, uint256 usdgReceived);\n\n    constructor(\n        address tokenizedStock_,\n        address usdg_,\n        address feeRecipient_,\n        address poolManager_,\n        uint24 conversionPoolFee_,\n        int24 conversionPoolTickSpacing_\n    ) {\n        if (\n            tokenizedStock_ == address(0) || usdg_ == address(0) || feeRecipient_ == address(0)\n                || poolManager_ == address(0)\n        ) revert ZeroAddress();\n\n        tokenizedStock = IERC20(tokenizedStock_);\n        usdg = IERC20(usdg_);\n        feeRecipient = feeRecipient_;\n        poolManager = IPoolManager(poolManager_);\n\n        bool stockIsCurrency0 = tokenizedStock_ < usdg_;\n        _coreCurrency0 = Currency.wrap(stockIsCurrency0 ? tokenizedStock_ : usdg_);\n        _coreCurrency1 = Currency.wrap(stockIsCurrency0 ? usdg_ : tokenizedStock_);\n        _coreFee = conversionPoolFee_;\n        _coreTickSpacing = conversionPoolTickSpacing_;\n    }\n\n    function currentDay() public view returns (uint256) {\n        return block.timestamp / 1 days;\n    }\n\n    /// @notice The stock/USDG pool the operator's half is sold into. No hook.\n    function corePoolKey() public view returns (PoolKey memory) {\n        return PoolKey({\n            currency0: _coreCurrency0,\n            currency1: _coreCurrency1,\n            fee: _coreFee,\n            tickSpacing: _coreTickSpacing,\n            hooks: IHooks(address(0))\n        });\n    }\n\n    // -------------------------------------------------------------------------\n    // Collection\n    // -------------------------------------------------------------------------\n\n    /// @inheritdoc IFeeCollector\n    function recordFee(address token, uint256 amount) external {\n        if (amount == 0) return;\n        tokenizedStock.safeTransferFrom(msg.sender, address(this), amount);\n\n        if (!isFeeToken[token]) {\n            isFeeToken[token] = true;\n            _feeTokens.push(token);\n        }\n\n        _pending[token] += amount;\n        totalCollected += amount;\n        collectedOnDay[currentDay()] += amount;\n\n        emit FeesRecorded(token, msg.sender, amount, block.timestamp);\n    }\n\n    // -------------------------------------------------------------------------\n    // Distribution\n    // -------------------------------------------------------------------------\n\n    /// @notice Split everything pending for `token`. Anyone may call this, for any token.\n    function distribute(address token) external returns (uint256 dividendShare, uint256 operatorShare) {\n        uint256 amount = _pending[token];\n        if (amount == 0) revert NothingToDistribute(token);\n        return _distribute(token, amount);\n    }\n\n    /// @notice `distribute` for every token that has ever accrued a fee.\n    function distributeAll() external {\n        _distributeRange(0, _feeTokens.length);\n    }\n\n    /// @notice Paginated `distributeAll`, over `[startIndex, endIndex)`.\n    function distributeRange(uint256 startIndex, uint256 endIndex) external {\n        _distributeRange(startIndex, endIndex);\n    }\n\n    function _distributeRange(uint256 startIndex, uint256 endIndex) internal {\n        uint256 len = _feeTokens.length;\n        if (startIndex > endIndex || endIndex > len) revert InvalidRange(startIndex, endIndex, len);\n        for (uint256 i = startIndex; i < endIndex; ++i) {\n            address token = _feeTokens[i];\n            uint256 amount = _pending[token];\n            // Skip rather than revert: one empty token must not block a whole page.\n            if (amount != 0) _distribute(token, amount);\n        }\n    }\n\n    function _distribute(address token, uint256 amount)\n        internal\n        returns (uint256 dividendShare, uint256 operatorShare)\n    {\n        _pending[token] = 0;\n\n        dividendShare = (amount * DIVIDEND_BPS) / BPS_DENOMINATOR;\n        // Remainder rather than a second multiplication, so the two halves always sum to\n        // exactly `amount` however the division rounds.\n        operatorShare = amount - dividendShare;\n\n        uint256 day = currentDay();\n        totalDistributed += amount;\n        distributedOnDay[day] += amount;\n\n        // --- the token's own holders ---\n        if (dividendShare != 0) {\n            // The token pulls, so approve exactly what it may take and no more.\n            tokenizedStock.forceApprove(token, dividendShare);\n\n            // Reverts while the whole supply is still sitting in the pool, i.e. before anyone\n            // holds any. Held rather than lost, and retried on the next call.\n            try ILaunchpadToken(token).distributeDividends(dividendShare) {\n                totalDividends += dividendShare;\n                dividendsOnDay[day] += dividendShare;\n            } catch {\n                _pending[token] += dividendShare;\n                totalDistributed -= dividendShare;\n                distributedOnDay[day] -= dividendShare;\n                emit DividendDeferred(token, dividendShare);\n                dividendShare = 0;\n            }\n            tokenizedStock.forceApprove(token, 0);\n        }\n\n        // --- operator ---\n        pendingConversion += operatorShare;\n        uint256 usdgPaid = _tryConvert();\n\n        emit FeesDistributed(token, dividendShare, operatorShare, usdgPaid, block.timestamp);\n    }\n\n    /// @dev Sells the queued stock for USDG and forwards it. If the pool cannot absorb it —\n    ///      not created, no liquidity, price moved — the stock stays queued and the next\n    ///      `distribute` retries. Shareholders are paid either way.\n    function _tryConvert() internal returns (uint256 usdgPaid) {\n        uint256 amountIn = pendingConversion;\n        if (amountIn == 0) return 0;\n\n        try this.executeConversion(amountIn) returns (uint256 amountOut) {\n            pendingConversion = 0;\n            stockConverted += amountIn;\n            operatorReceived += amountOut;\n            operatorOnDay[currentDay()] += amountOut;\n            emit OperatorPaid(amountIn, amountOut);\n            return amountOut;\n        } catch {\n            emit ConversionDeferred(amountIn);\n            return 0;\n        }\n    }\n\n    /// @notice External only so the caller above can `try`/`catch` it. Not callable by anyone else.\n    function executeConversion(uint256 amountIn) external returns (uint256 amountOut) {\n        if (msg.sender != address(this)) revert OnlySelf();\n        amountOut = abi.decode(poolManager.unlock(abi.encode(amountIn)), (uint256));\n        if (amountOut == 0) revert ConversionReturnedNothing();\n        usdg.safeTransfer(feeRecipient, amountOut);\n    }\n\n    /// @inheritdoc IUnlockCallback\n    function unlockCallback(bytes calldata data) external returns (bytes memory) {\n        if (msg.sender != address(poolManager)) revert NotPoolManager();\n        uint256 amountIn = abi.decode(data, (uint256));\n\n        PoolKey memory key = corePoolKey();\n        bool zeroForOne = Currency.unwrap(key.currency0) == address(tokenizedStock);\n\n        BalanceDelta delta = poolManager.swap(\n            key,\n            SwapParams({\n                zeroForOne: zeroForOne,\n                amountSpecified: -int256(amountIn),\n                sqrtPriceLimitX96: zeroForOne ? TickMath.MIN_SQRT_PRICE + 1 : TickMath.MAX_SQRT_PRICE - 1\n            }),\n            \"\"\n        );\n\n        Currency stockCurrency = zeroForOne ? key.currency0 : key.currency1;\n        Currency usdgCurrency = zeroForOne ? key.currency1 : key.currency0;\n        int128 stockDelta = zeroForOne ? delta.amount0() : delta.amount1();\n        int128 usdgDelta = zeroForOne ? delta.amount1() : delta.amount0();\n\n        uint256 owed = uint256(uint128(-stockDelta));\n        poolManager.sync(stockCurrency);\n        tokenizedStock.safeTransfer(address(poolManager), owed);\n        poolManager.settle();\n\n        uint256 received = uint256(uint128(usdgDelta));\n        poolManager.take(usdgCurrency, address(this), received);\n\n        return abi.encode(received);\n    }\n\n    // -------------------------------------------------------------------------\n    // Views\n    // -------------------------------------------------------------------------\n\n    function pendingFees(address token) external view returns (uint256) {\n        return _pending[token];\n    }\n\n    function feeTokenCount() external view returns (uint256) {\n        return _feeTokens.length;\n    }\n\n    function feeTokens() external view returns (address[] memory) {\n        return _feeTokens;\n    }\n\n    function feeTokenAt(uint256 index) external view returns (address) {\n        return _feeTokens[index];\n    }\n\n    /// @notice Stock sitting here undistributed, across every token plus the conversion queue.\n    function totalPending() external view returns (uint256) {\n        return totalCollected - totalDistributed + pendingConversion;\n    }\n\n    function dailyRevenue() external view returns (uint256) {\n        return collectedOnDay[currentDay()];\n    }\n}\n"},"lib/openzeppelin-contracts/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"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.7.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\nimport {IERC20Metadata} from \"../../../interfaces/IERC20Metadata.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    /// @dev Attempts to fetch the token decimals. A return value of false indicates that the attempt failed in some way.\n    function tryGetDecimals(IERC20 token) internal view returns (bool success, uint8 decimals) {\n        bytes4 selector = IERC20Metadata.decimals.selector;\n        assembly (\"memory-safe\") {\n            mstore(0x00, selector)\n            success := staticcall(gas(), token, 0x00, 4, 0x00, 0x20)\n            success := and(and(success, gt(returndatasize(), 0x1f)), lt(mload(0x00), 0x100))\n            decimals := mul(success, mload(0x00))\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 approve\n     * @param bubble Behavior switch if the approve 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"},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {IHooks} from \"./IHooks.sol\";\nimport {IERC6909Claims} from \"./external/IERC6909Claims.sol\";\nimport {IProtocolFees} from \"./IProtocolFees.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {IExtsload} from \"./IExtsload.sol\";\nimport {IExttload} from \"./IExttload.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\n\n/// @notice Interface for the PoolManager\ninterface IPoolManager is IProtocolFees, IERC6909Claims, IExtsload, IExttload {\n    /// @notice Thrown when a currency is not netted out after the contract is unlocked\n    error CurrencyNotSettled();\n\n    /// @notice Thrown when trying to interact with a non-initialized pool\n    error PoolNotInitialized();\n\n    /// @notice Thrown when unlock is called, but the contract is already unlocked\n    error AlreadyUnlocked();\n\n    /// @notice Thrown when a function is called that requires the contract to be unlocked, but it is not\n    error ManagerLocked();\n\n    /// @notice Pools are limited to type(int16).max tickSpacing in #initialize, to prevent overflow\n    error TickSpacingTooLarge(int24 tickSpacing);\n\n    /// @notice Pools must have a positive non-zero tickSpacing passed to #initialize\n    error TickSpacingTooSmall(int24 tickSpacing);\n\n    /// @notice PoolKey must have currencies where address(currency0) < address(currency1)\n    error CurrenciesOutOfOrderOrEqual(address currency0, address currency1);\n\n    /// @notice Thrown when a call to updateDynamicLPFee is made by an address that is not the hook,\n    /// or on a pool that does not have a dynamic swap fee.\n    error UnauthorizedDynamicLPFeeUpdate();\n\n    /// @notice Thrown when trying to swap amount of 0\n    error SwapAmountCannotBeZero();\n\n    ///@notice Thrown when native currency is passed to a non native settlement\n    error NonzeroNativeValue();\n\n    /// @notice Thrown when `clear` is called with an amount that is not exactly equal to the open currency delta.\n    error MustClearExactPositiveDelta();\n\n    /// @notice Emitted when a new pool is initialized\n    /// @param id The abi encoded hash of the pool key struct for the new pool\n    /// @param currency0 The first currency of the pool by address sort order\n    /// @param currency1 The second currency of the pool by address sort order\n    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n    /// @param tickSpacing The minimum number of ticks between initialized ticks\n    /// @param hooks The hooks contract address for the pool, or address(0) if none\n    /// @param sqrtPriceX96 The price of the pool on initialization\n    /// @param tick The initial tick of the pool corresponding to the initialized price\n    event Initialize(\n        PoolId indexed id,\n        Currency indexed currency0,\n        Currency indexed currency1,\n        uint24 fee,\n        int24 tickSpacing,\n        IHooks hooks,\n        uint160 sqrtPriceX96,\n        int24 tick\n    );\n\n    /// @notice Emitted when a liquidity position is modified\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that modified the pool\n    /// @param tickLower The lower tick of the position\n    /// @param tickUpper The upper tick of the position\n    /// @param liquidityDelta The amount of liquidity that was added or removed\n    /// @param salt The extra data to make positions unique\n    event ModifyLiquidity(\n        PoolId indexed id, address indexed sender, int24 tickLower, int24 tickUpper, int256 liquidityDelta, bytes32 salt\n    );\n\n    /// @notice Emitted for swaps between currency0 and currency1\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that initiated the swap call, and that received the callback\n    /// @param amount0 The delta of the currency0 balance of the pool\n    /// @param amount1 The delta of the currency1 balance of the pool\n    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\n    /// @param liquidity The liquidity of the pool after the swap\n    /// @param tick The log base 1.0001 of the price of the pool after the swap\n    /// @param fee The swap fee in hundredths of a bip\n    event Swap(\n        PoolId indexed id,\n        address indexed sender,\n        int128 amount0,\n        int128 amount1,\n        uint160 sqrtPriceX96,\n        uint128 liquidity,\n        int24 tick,\n        uint24 fee\n    );\n\n    /// @notice Emitted for donations\n    /// @param id The abi encoded hash of the pool key struct for the pool that was donated to\n    /// @param sender The address that initiated the donate call\n    /// @param amount0 The amount donated in currency0\n    /// @param amount1 The amount donated in currency1\n    event Donate(PoolId indexed id, address indexed sender, uint256 amount0, uint256 amount1);\n\n    /// @notice All interactions on the contract that account deltas require unlocking. A caller that calls `unlock` must implement\n    /// `IUnlockCallback(msg.sender).unlockCallback(data)`, where they interact with the remaining functions on this contract.\n    /// @dev The only functions callable without an unlocking are `initialize` and `updateDynamicLPFee`\n    /// @param data Any data to pass to the callback, via `IUnlockCallback(msg.sender).unlockCallback(data)`\n    /// @return The data returned by the call to `IUnlockCallback(msg.sender).unlockCallback(data)`\n    function unlock(bytes calldata data) external returns (bytes memory);\n\n    /// @notice Initialize the state for a given pool ID\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The pool key for the pool to initialize\n    /// @param sqrtPriceX96 The initial square root price\n    /// @return tick The initial tick of the pool\n    function initialize(PoolKey memory key, uint160 sqrtPriceX96) external returns (int24 tick);\n\n    /// @notice Modify the liquidity for the given pool\n    /// @dev Poke by calling with a zero liquidityDelta\n    /// @param key The pool to modify liquidity in\n    /// @param params The parameters for modifying the liquidity\n    /// @param hookData The data to pass through to the add/removeLiquidity hooks\n    /// @return callerDelta The balance delta of the caller of modifyLiquidity. This is the total of both principal, fee deltas, and hook deltas if applicable\n    /// @return feesAccrued The balance delta of the fees generated in the liquidity range. Returned for informational purposes\n    /// @dev Note that feesAccrued can be artificially inflated by a malicious actor and integrators should be careful using the value\n    /// For pools with a single liquidity position, actors can donate to themselves to inflate feeGrowthGlobal (and consequently feesAccrued)\n    /// atomically donating and collecting fees in the same unlockCallback may make the inflated value more extreme\n    function modifyLiquidity(PoolKey memory key, ModifyLiquidityParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta callerDelta, BalanceDelta feesAccrued);\n\n    /// @notice Swap against the given pool\n    /// @param key The pool to swap in\n    /// @param params The parameters for swapping\n    /// @param hookData The data to pass through to the swap hooks\n    /// @return swapDelta The balance delta of the address swapping\n    /// @dev Swapping on low liquidity pools may cause unexpected swap amounts when liquidity available is less than amountSpecified.\n    /// Additionally note that if interacting with hooks that have the BEFORE_SWAP_RETURNS_DELTA_FLAG or AFTER_SWAP_RETURNS_DELTA_FLAG\n    /// the hook may alter the swap input/output. Integrators should perform checks on the returned swapDelta.\n    function swap(PoolKey memory key, SwapParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta swapDelta);\n\n    /// @notice Donate the given currency amounts to the in-range liquidity providers of a pool\n    /// @dev Calls to donate can be frontrun adding just-in-time liquidity, with the aim of receiving a portion donated funds.\n    /// Donors should keep this in mind when designing donation mechanisms.\n    /// @dev This function donates to in-range LPs at slot0.tick. In certain edge-cases of the swap algorithm, the `sqrtPrice` of\n    /// a pool can be at the lower boundary of tick `n`, but the `slot0.tick` of the pool is already `n - 1`. In this case a call to\n    /// `donate` would donate to tick `n - 1` (slot0.tick) not tick `n` (getTickAtSqrtPrice(slot0.sqrtPriceX96)).\n    /// Read the comments in `Pool.swap()` for more information about this.\n    /// @param key The key of the pool to donate to\n    /// @param amount0 The amount of currency0 to donate\n    /// @param amount1 The amount of currency1 to donate\n    /// @param hookData The data to pass through to the donate hooks\n    /// @return BalanceDelta The delta of the caller after the donate\n    function donate(PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        external\n        returns (BalanceDelta);\n\n    /// @notice Writes the current ERC20 balance of the specified currency to transient storage\n    /// This is used to checkpoint balances for the manager and derive deltas for the caller.\n    /// @dev This MUST be called before any ERC20 tokens are sent into the contract, but can be skipped\n    /// for native tokens because the amount to settle is determined by the sent value.\n    /// However, if an ERC20 token has been synced and not settled, and the caller instead wants to settle\n    /// native funds, this function can be called with the native currency to then be able to settle the native currency\n    function sync(Currency currency) external;\n\n    /// @notice Called by the user to net out some value owed to the user\n    /// @dev Will revert if the requested amount is not available, consider using `mint` instead\n    /// @dev Can also be used as a mechanism for free flash loans\n    /// @param currency The currency to withdraw from the pool manager\n    /// @param to The address to withdraw to\n    /// @param amount The amount of currency to withdraw\n    function take(Currency currency, address to, uint256 amount) external;\n\n    /// @notice Called by the user to pay what is owed\n    /// @return paid The amount of currency settled\n    function settle() external payable returns (uint256 paid);\n\n    /// @notice Called by the user to pay on behalf of another address\n    /// @param recipient The address to credit for the payment\n    /// @return paid The amount of currency settled\n    function settleFor(address recipient) external payable returns (uint256 paid);\n\n    /// @notice WARNING - Any currency that is cleared, will be non-retrievable, and locked in the contract permanently.\n    /// A call to clear will zero out a positive balance WITHOUT a corresponding transfer.\n    /// @dev This could be used to clear a balance that is considered dust.\n    /// Additionally, the amount must be the exact positive balance. This is to enforce that the caller is aware of the amount being cleared.\n    function clear(Currency currency, uint256 amount) external;\n\n    /// @notice Called by the user to move value into ERC6909 balance\n    /// @param to The address to mint the tokens to\n    /// @param id The currency address to mint to ERC6909s, as a uint256\n    /// @param amount The amount of currency to mint\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function mint(address to, uint256 id, uint256 amount) external;\n\n    /// @notice Called by the user to move value from ERC6909 balance\n    /// @param from The address to burn the tokens from\n    /// @param id The currency address to burn from ERC6909s, as a uint256\n    /// @param amount The amount of currency to burn\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function burn(address from, uint256 id, uint256 amount) external;\n\n    /// @notice Updates the pools lp fees for the a pool that has enabled dynamic lp fees.\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The key of the pool to update dynamic LP fees for\n    /// @param newDynamicLPFee The new dynamic pool LP fee\n    function updateDynamicLPFee(PoolKey memory key, uint24 newDynamicLPFee) external;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for the callback executed when an address unlocks the pool manager\ninterface IUnlockCallback {\n    /// @notice Called by the pool manager on `msg.sender` when the manager is unlocked\n    /// @param data The data that was passed to the call to unlock\n    /// @return Any data that you want to be returned from the unlock call\n    function unlockCallback(bytes calldata data) external returns (bytes memory);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\nimport {BeforeSwapDelta} from \"../types/BeforeSwapDelta.sol\";\n\n/// @notice V4 decides whether to invoke specific hooks by inspecting the least significant bits\n/// of the address that the hooks contract is deployed to.\n/// For example, a hooks contract deployed to address: 0x0000000000000000000000000000000000002400\n/// has the lowest bits '10 0100 0000 0000' which would cause the 'before initialize' and 'after add liquidity' hooks to be used.\n/// See the Hooks library for the full spec.\n/// @dev Should only be callable by the v4 PoolManager.\ninterface IHooks {\n    /// @notice The hook called before the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @return bytes4 The function selector for the hook\n    function beforeInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96) external returns (bytes4);\n\n    /// @notice The hook called after the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @param tick The current tick after the state of a pool is initialized\n    /// @return bytes4 The function selector for the hook\n    function afterInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96, int24 tick)\n        external\n        returns (bytes4);\n\n    /// @notice The hook called before liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param delta The caller's balance delta after adding liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param delta The caller's balance delta after removing liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    /// @return uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)\n    function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata hookData)\n        external\n        returns (bytes4, BeforeSwapDelta, uint24);\n\n    /// @notice The hook called after a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param delta The amount owed to the caller (positive) or owed to the pool (negative)\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterSwap(\n        address sender,\n        PoolKey calldata key,\n        SwapParams calldata params,\n        BalanceDelta delta,\n        bytes calldata hookData\n    ) external returns (bytes4, int128);\n\n    /// @notice The hook called before donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function afterDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"./Currency.sol\";\nimport {IHooks} from \"../interfaces/IHooks.sol\";\nimport {PoolIdLibrary} from \"./PoolId.sol\";\n\nusing PoolIdLibrary for PoolKey global;\n\n/// @notice Returns the key for identifying a pool\nstruct PoolKey {\n    /// @notice The lower currency of the pool, sorted numerically\n    Currency currency0;\n    /// @notice The higher currency of the pool, sorted numerically\n    Currency currency1;\n    /// @notice The pool LP fee, capped at 1_000_000. If the highest bit is 1, the pool has a dynamic fee and must be exactly equal to 0x800000\n    uint24 fee;\n    /// @notice Ticks that involve positions must be a multiple of tick spacing\n    int24 tickSpacing;\n    /// @notice The hooks of the pool\n    IHooks hooks;\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IERC20Minimal} from \"../interfaces/external/IERC20Minimal.sol\";\nimport {CustomRevert} from \"../libraries/CustomRevert.sol\";\n\ntype Currency is address;\n\nusing {greaterThan as >, lessThan as <, greaterThanOrEqualTo as >=, equals as ==} for Currency global;\nusing CurrencyLibrary for Currency global;\n\nfunction equals(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) == Currency.unwrap(other);\n}\n\nfunction greaterThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) > Currency.unwrap(other);\n}\n\nfunction lessThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) < Currency.unwrap(other);\n}\n\nfunction greaterThanOrEqualTo(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) >= Currency.unwrap(other);\n}\n\n/// @title CurrencyLibrary\n/// @dev This library allows for transferring and holding native tokens and ERC20 tokens\nlibrary CurrencyLibrary {\n    /// @notice Additional context for ERC-7751 wrapped error when a native transfer fails\n    error NativeTransferFailed();\n\n    /// @notice Additional context for ERC-7751 wrapped error when an ERC20 transfer fails\n    error ERC20TransferFailed();\n\n    /// @notice A constant to represent the native currency\n    Currency public constant ADDRESS_ZERO = Currency.wrap(address(0));\n\n    function transfer(Currency currency, address to, uint256 amount) internal {\n        // altered from https://github.com/transmissions11/solmate/blob/44a9963d4c78111f77caa0e65d677b8b46d6f2e6/src/utils/SafeTransferLib.sol\n        // modified custom error selectors\n\n        bool success;\n        if (currency.isAddressZero()) {\n            assembly (\"memory-safe\") {\n                // Transfer the ETH and revert if it fails.\n                success := call(gas(), to, amount, 0, 0, 0, 0)\n            }\n            // revert with NativeTransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(to, bytes4(0), NativeTransferFailed.selector);\n            }\n        } else {\n            assembly (\"memory-safe\") {\n                // Get a pointer to some free memory.\n                let fmp := mload(0x40)\n\n                // Write the abi-encoded calldata into memory, beginning with the function selector.\n                mstore(fmp, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)\n                mstore(add(fmp, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the \"to\" argument.\n                mstore(add(fmp, 36), amount) // Append the \"amount\" argument. Masking not required as it's a full 32 byte type.\n\n                success :=\n                    and(\n                        // Set success to whether the call reverted, if not we check it either\n                        // returned exactly 1 (can't just be non-zero data), or had no return data.\n                        or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),\n                        // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.\n                        // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.\n                        // Counterintuitively, this call must be positioned second to the or() call in the\n                        // surrounding and() call or else returndatasize() will be zero during the computation.\n                        call(gas(), currency, 0, fmp, 68, 0, 32)\n                    )\n\n                // Now clean the memory we used\n                mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `to` were stored here\n                mstore(add(fmp, 0x20), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here\n                mstore(add(fmp, 0x40), 0) // 4 bytes of `amount` were stored here\n            }\n            // revert with ERC20TransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(\n                    Currency.unwrap(currency), IERC20Minimal.transfer.selector, ERC20TransferFailed.selector\n                );\n            }\n        }\n    }\n\n    function balanceOfSelf(Currency currency) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return address(this).balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(address(this));\n        }\n    }\n\n    function balanceOf(Currency currency, address owner) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return owner.balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(owner);\n        }\n    }\n\n    function isAddressZero(Currency currency) internal pure returns (bool) {\n        return Currency.unwrap(currency) == Currency.unwrap(ADDRESS_ZERO);\n    }\n\n    function toId(Currency currency) internal pure returns (uint256) {\n        return uint160(Currency.unwrap(currency));\n    }\n\n    // If the upper 12 bytes are non-zero, they will be zero-ed out\n    // Therefore, fromId() and toId() are not inverses of each other\n    function fromId(uint256 id) internal pure returns (Currency) {\n        return Currency.wrap(address(uint160(id)));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {SafeCast} from \"../libraries/SafeCast.sol\";\n\n/// @dev Two `int128` values packed into a single `int256` where the upper 128 bits represent the amount0\n/// and the lower 128 bits represent the amount1.\ntype BalanceDelta is int256;\n\nusing {add as +, sub as -, eq as ==, neq as !=} for BalanceDelta global;\nusing BalanceDeltaLibrary for BalanceDelta global;\nusing SafeCast for int256;\n\nfunction toBalanceDelta(int128 _amount0, int128 _amount1) pure returns (BalanceDelta balanceDelta) {\n    assembly (\"memory-safe\") {\n        balanceDelta := or(shl(128, _amount0), and(sub(shl(128, 1), 1), _amount1))\n    }\n}\n\nfunction add(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := add(a0, b0)\n        res1 := add(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction sub(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := sub(a0, b0)\n        res1 := sub(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction eq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) == BalanceDelta.unwrap(b);\n}\n\nfunction neq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) != BalanceDelta.unwrap(b);\n}\n\n/// @notice Library for getting the amount0 and amount1 deltas from the BalanceDelta type\nlibrary BalanceDeltaLibrary {\n    /// @notice A BalanceDelta of 0\n    BalanceDelta public constant ZERO_DELTA = BalanceDelta.wrap(0);\n\n    function amount0(BalanceDelta balanceDelta) internal pure returns (int128 _amount0) {\n        assembly (\"memory-safe\") {\n            _amount0 := sar(128, balanceDelta)\n        }\n    }\n\n    function amount1(BalanceDelta balanceDelta) internal pure returns (int128 _amount1) {\n        assembly (\"memory-safe\") {\n            _amount1 := signextend(15, balanceDelta)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\n\n/// @notice Parameter struct for `ModifyLiquidity` pool operations\nstruct ModifyLiquidityParams {\n    // the lower and upper tick of the position\n    int24 tickLower;\n    int24 tickUpper;\n    // how to modify the liquidity\n    int256 liquidityDelta;\n    // a value to set if you want unique liquidity positions at the same range\n    bytes32 salt;\n}\n\n/// @notice Parameter struct for `Swap` pool operations\nstruct SwapParams {\n    /// Whether to swap token0 for token1 or vice versa\n    bool zeroForOne;\n    /// The desired input amount if negative (exactIn), or the desired output amount if positive (exactOut)\n    int256 amountSpecified;\n    /// The sqrt price at which, if reached, the swap will stop executing\n    uint160 sqrtPriceLimitX96;\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {BitMath} from \"./BitMath.sol\";\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Math library for computing sqrt prices from ticks and vice versa\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\n/// prices between 2**-128 and 2**128\nlibrary TickMath {\n    using CustomRevert for bytes4;\n\n    /// @notice Thrown when the tick passed to #getSqrtPriceAtTick is not between MIN_TICK and MAX_TICK\n    error InvalidTick(int24 tick);\n    /// @notice Thrown when the price passed to #getTickAtSqrtPrice does not correspond to a price between MIN_TICK and MAX_TICK\n    error InvalidSqrtPrice(uint160 sqrtPriceX96);\n\n    /// @dev The minimum tick that may be passed to #getSqrtPriceAtTick computed from log base 1.0001 of 2**-128\n    /// @dev If ever MIN_TICK and MAX_TICK are not centered around 0, the absTick logic in getSqrtPriceAtTick cannot be used\n    int24 internal constant MIN_TICK = -887272;\n    /// @dev The maximum tick that may be passed to #getSqrtPriceAtTick computed from log base 1.0001 of 2**128\n    /// @dev If ever MIN_TICK and MAX_TICK are not centered around 0, the absTick logic in getSqrtPriceAtTick cannot be used\n    int24 internal constant MAX_TICK = 887272;\n\n    /// @dev The minimum tick spacing value drawn from the range of type int16 that is greater than 0, i.e. min from the range [1, 32767]\n    int24 internal constant MIN_TICK_SPACING = 1;\n    /// @dev The maximum tick spacing value drawn from the range of type int16, i.e. max from the range [1, 32767]\n    int24 internal constant MAX_TICK_SPACING = type(int16).max;\n\n    /// @dev The minimum value that can be returned from #getSqrtPriceAtTick. Equivalent to getSqrtPriceAtTick(MIN_TICK)\n    uint160 internal constant MIN_SQRT_PRICE = 4295128739;\n    /// @dev The maximum value that can be returned from #getSqrtPriceAtTick. Equivalent to getSqrtPriceAtTick(MAX_TICK)\n    uint160 internal constant MAX_SQRT_PRICE = 1461446703485210103287273052203988822378723970342;\n    /// @dev A threshold used for optimized bounds check, equals `MAX_SQRT_PRICE - MIN_SQRT_PRICE - 1`\n    uint160 internal constant MAX_SQRT_PRICE_MINUS_MIN_SQRT_PRICE_MINUS_ONE =\n        1461446703485210103287273052203988822378723970342 - 4295128739 - 1;\n\n    /// @notice Given a tickSpacing, compute the maximum usable tick\n    function maxUsableTick(int24 tickSpacing) internal pure returns (int24) {\n        unchecked {\n            return (MAX_TICK / tickSpacing) * tickSpacing;\n        }\n    }\n\n    /// @notice Given a tickSpacing, compute the minimum usable tick\n    function minUsableTick(int24 tickSpacing) internal pure returns (int24) {\n        unchecked {\n            return (MIN_TICK / tickSpacing) * tickSpacing;\n        }\n    }\n\n    /// @notice Calculates sqrt(1.0001^tick) * 2^96\n    /// @dev Throws if |tick| > max tick\n    /// @param tick The input tick for the above formula\n    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the price of the two assets (currency1/currency0)\n    /// at the given tick\n    function getSqrtPriceAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {\n        unchecked {\n            uint256 absTick;\n            assembly (\"memory-safe\") {\n                tick := signextend(2, tick)\n                // mask = 0 if tick >= 0 else -1 (all 1s)\n                let mask := sar(255, tick)\n                // if tick >= 0, |tick| = tick = 0 ^ tick\n                // if tick < 0, |tick| = ~~|tick| = ~(-|tick| - 1) = ~(tick - 1) = (-1) ^ (tick - 1)\n                // either way, |tick| = mask ^ (tick + mask)\n                absTick := xor(mask, add(mask, tick))\n            }\n\n            if (absTick > uint256(int256(MAX_TICK))) InvalidTick.selector.revertWith(tick);\n\n            // The tick is decomposed into bits, and for each bit with index i that is set, the product of 1/sqrt(1.0001^(2^i))\n            // is calculated (using Q128.128). The constants used for this calculation are rounded to the nearest integer\n\n            // Equivalent to:\n            //     price = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000;\n            //     or price = int(2**128 / sqrt(1.0001)) if (absTick & 0x1) else 1 << 128\n            uint256 price;\n            assembly (\"memory-safe\") {\n                price := xor(shl(128, 1), mul(xor(shl(128, 1), 0xfffcb933bd6fad37aa2d162d1a594001), and(absTick, 0x1)))\n            }\n            if (absTick & 0x2 != 0) price = (price * 0xfff97272373d413259a46990580e213a) >> 128;\n            if (absTick & 0x4 != 0) price = (price * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\n            if (absTick & 0x8 != 0) price = (price * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\n            if (absTick & 0x10 != 0) price = (price * 0xffcb9843d60f6159c9db58835c926644) >> 128;\n            if (absTick & 0x20 != 0) price = (price * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\n            if (absTick & 0x40 != 0) price = (price * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\n            if (absTick & 0x80 != 0) price = (price * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\n            if (absTick & 0x100 != 0) price = (price * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\n            if (absTick & 0x200 != 0) price = (price * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\n            if (absTick & 0x400 != 0) price = (price * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\n            if (absTick & 0x800 != 0) price = (price * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\n            if (absTick & 0x1000 != 0) price = (price * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\n            if (absTick & 0x2000 != 0) price = (price * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\n            if (absTick & 0x4000 != 0) price = (price * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\n            if (absTick & 0x8000 != 0) price = (price * 0x31be135f97d08fd981231505542fcfa6) >> 128;\n            if (absTick & 0x10000 != 0) price = (price * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\n            if (absTick & 0x20000 != 0) price = (price * 0x5d6af8dedb81196699c329225ee604) >> 128;\n            if (absTick & 0x40000 != 0) price = (price * 0x2216e584f5fa1ea926041bedfe98) >> 128;\n            if (absTick & 0x80000 != 0) price = (price * 0x48a170391f7dc42444e8fa2) >> 128;\n\n            assembly (\"memory-safe\") {\n                // if (tick > 0) price = type(uint256).max / price;\n                if sgt(tick, 0) { price := div(not(0), price) }\n\n                // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\n                // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\n                // we round up in the division so getTickAtSqrtPrice of the output price is always consistent\n                // `sub(shl(32, 1), 1)` is `type(uint32).max`\n                // `price + type(uint32).max` will not overflow because `price` fits in 192 bits\n                sqrtPriceX96 := shr(32, add(price, sub(shl(32, 1), 1)))\n            }\n        }\n    }\n\n    /// @notice Calculates the greatest tick value such that getSqrtPriceAtTick(tick) <= sqrtPriceX96\n    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_PRICE, as MIN_SQRT_PRICE is the lowest value getSqrtPriceAtTick may\n    /// ever return.\n    /// @param sqrtPriceX96 The sqrt price for which to compute the tick as a Q64.96\n    /// @return tick The greatest tick for which the getSqrtPriceAtTick(tick) is less than or equal to the input sqrtPriceX96\n    function getTickAtSqrtPrice(uint160 sqrtPriceX96) internal pure returns (int24 tick) {\n        unchecked {\n            // Equivalent: if (sqrtPriceX96 < MIN_SQRT_PRICE || sqrtPriceX96 >= MAX_SQRT_PRICE) revert InvalidSqrtPrice();\n            // second inequality must be >= because the price can never reach the price at the max tick\n            // if sqrtPriceX96 < MIN_SQRT_PRICE, the `sub` underflows and `gt` is true\n            // if sqrtPriceX96 >= MAX_SQRT_PRICE, sqrtPriceX96 - MIN_SQRT_PRICE > MAX_SQRT_PRICE - MIN_SQRT_PRICE - 1\n            if ((sqrtPriceX96 - MIN_SQRT_PRICE) > MAX_SQRT_PRICE_MINUS_MIN_SQRT_PRICE_MINUS_ONE) {\n                InvalidSqrtPrice.selector.revertWith(sqrtPriceX96);\n            }\n\n            uint256 price = uint256(sqrtPriceX96) << 32;\n\n            uint256 r = price;\n            uint256 msb = BitMath.mostSignificantBit(r);\n\n            if (msb >= 128) r = price >> (msb - 127);\n            else r = price << (127 - msb);\n\n            int256 log_2 = (int256(msb) - 128) << 64;\n\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(63, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(62, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(61, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(60, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(59, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(58, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(57, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(56, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(55, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(54, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(53, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(52, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(51, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(50, f))\n            }\n\n            int256 log_sqrt10001 = log_2 * 255738958999603826347141; // Q22.128 number\n\n            // Magic number represents the ceiling of the maximum value of the error when approximating log_sqrt10001(x)\n            int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);\n\n            // Magic number represents the minimum value of the error when approximating log_sqrt10001(x), when\n            // sqrtPrice is from the range (2^-64, 2^64). This is safe as MIN_SQRT_PRICE is more than 2^-64. If MIN_SQRT_PRICE\n            // is changed, this may need to be changed too\n            int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);\n\n            tick = tickLow == tickHi ? tickLow : getSqrtPriceAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;\n        }\n    }\n}\n"},"src/interfaces/IFeeCollector.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @notice Sink for protocol fees skimmed by the LaunchpadHook, and the 50/30/20 splitter.\ninterface IFeeCollector {\n    /// @notice Deposit `amount` of TokenizedStock and attribute it to `token`.\n    /// @dev Permissionless by design: the caller must actually transfer the stock in,\n    ///      so there is nothing to gain by calling it. This is what lets the hook push\n    ///      fees without the FeeCollector needing to trust (or even know) the hook,\n    ///      which keeps the deployment graph acyclic.\n    function recordFee(address token, uint256 amount) external;\n\n    function pendingFees(address token) external view returns (uint256);\n\n    function totalCollected() external view returns (uint256);\n\n    function totalDistributed() external view returns (uint256);\n\n    /// @notice Cumulative stock paid out to shareholders as dividends.\n    function totalDividends() external view returns (uint256);\n\n    /// @notice Cumulative stock sold to pay the operator.\n    function stockConverted() external view returns (uint256);\n\n    /// @notice Cumulative USDG delivered to the operator.\n    function operatorReceived() external view returns (uint256);\n\n    /// @notice Operator-earmarked stock waiting on conversion-pool liquidity.\n    function pendingConversion() external view returns (uint256);\n\n    function collectedOnDay(uint256 day) external view returns (uint256);\n\n    function distributedOnDay(uint256 day) external view returns (uint256);\n\n    function dividendsOnDay(uint256 day) external view returns (uint256);\n\n    function operatorOnDay(uint256 day) external view returns (uint256);\n\n    function feeTokenCount() external view returns (uint256);\n}\n"},"src/interfaces/ILaunchpadToken.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @notice The minimal ERC-20 the LaunchpadFactory clones for every launch, and the dividend\n///         ledger for that token's own holders.\ninterface ILaunchpadToken {\n    /// @notice The address that called `createToken` / `createTokenWithBlink`.\n    function creator() external view returns (address);\n\n    /// @notice Pay `amount` of the dividend token in, shared pro rata among holders.\n    /// @dev Reverts while the circulating supply is still below `MIN_ELIGIBLE_SUPPLY` — i.e.\n    ///      before anyone actually holds the token. Callers should treat that as \"retry later\".\n    function distributeDividends(uint256 amount) external;\n\n    /// @notice Circulating supply that accrues dividends. Excludes the v4 PoolManager.\n    function dividendEligibleSupply() external view returns (uint256);\n\n    function totalDividendsDistributed() external view returns (uint256);\n\n    function totalDividendsClaimed() external view returns (uint256);\n\n    function totalDividendsSwept() external view returns (uint256);\n\n    function withdrawableDividendOf(address account) external view returns (uint256);\n\n    function claim() external returns (uint256 amount);\n\n    function claimFor(address account) external returns (uint256 amount);\n\n    /// @notice Unix timestamp at which the blink window ends. 0 if the token never had one.\n    function blinkEnd() external view returns (uint64);\n\n    function blinkActive() external view returns (bool);\n\n    function whitelistedApps() external view returns (address[] memory);\n}\n"},"lib/openzeppelin-contracts/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"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for claims over a contract balance, wrapped as a ERC6909\ninterface IERC6909Claims {\n    /*//////////////////////////////////////////////////////////////\n                                 EVENTS\n    //////////////////////////////////////////////////////////////*/\n\n    event OperatorSet(address indexed owner, address indexed operator, bool approved);\n\n    event Approval(address indexed owner, address indexed spender, uint256 indexed id, uint256 amount);\n\n    event Transfer(address caller, address indexed from, address indexed to, uint256 indexed id, uint256 amount);\n\n    /*//////////////////////////////////////////////////////////////\n                                 FUNCTIONS\n    //////////////////////////////////////////////////////////////*/\n\n    /// @notice Owner balance of an id.\n    /// @param owner The address of the owner.\n    /// @param id The id of the token.\n    /// @return amount The balance of the token.\n    function balanceOf(address owner, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Spender allowance of an id.\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @return amount The allowance of the token.\n    function allowance(address owner, address spender, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Checks if a spender is approved by an owner as an operator\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @return approved The approval status.\n    function isOperator(address owner, address spender) external view returns (bool approved);\n\n    /// @notice Transfers an amount of an id from the caller to a receiver.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transfer(address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Transfers an amount of an id from a sender to a receiver.\n    /// @param sender The address of the sender.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transferFrom(address sender, address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Approves an amount of an id to a spender.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always\n    function approve(address spender, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Sets or removes an operator for the caller.\n    /// @param operator The address of the operator.\n    /// @param approved The approval status.\n    /// @return bool True, always\n    function setOperator(address operator, bool approved) external returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\n\n/// @notice Interface for all protocol-fee related functions in the pool manager\ninterface IProtocolFees {\n    /// @notice Thrown when protocol fee is set too high\n    error ProtocolFeeTooLarge(uint24 fee);\n\n    /// @notice Thrown when collectProtocolFees or setProtocolFee is not called by the controller.\n    error InvalidCaller();\n\n    /// @notice Thrown when collectProtocolFees is attempted on a token that is synced.\n    error ProtocolFeeCurrencySynced();\n\n    /// @notice Emitted when the protocol fee controller address is updated in setProtocolFeeController.\n    event ProtocolFeeControllerUpdated(address indexed protocolFeeController);\n\n    /// @notice Emitted when the protocol fee is updated for a pool.\n    event ProtocolFeeUpdated(PoolId indexed id, uint24 protocolFee);\n\n    /// @notice Given a currency address, returns the protocol fees accrued in that currency\n    /// @param currency The currency to check\n    /// @return amount The amount of protocol fees accrued in the currency\n    function protocolFeesAccrued(Currency currency) external view returns (uint256 amount);\n\n    /// @notice Sets the protocol fee for the given pool\n    /// @param key The key of the pool to set a protocol fee for\n    /// @param newProtocolFee The fee to set\n    function setProtocolFee(PoolKey memory key, uint24 newProtocolFee) external;\n\n    /// @notice Sets the protocol fee controller\n    /// @param controller The new protocol fee controller\n    function setProtocolFeeController(address controller) external;\n\n    /// @notice Collects the protocol fees for a given recipient and currency, returning the amount collected\n    /// @dev This will revert if the contract is unlocked\n    /// @param recipient The address to receive the protocol fees\n    /// @param currency The currency to withdraw\n    /// @param amount The amount of currency to withdraw\n    /// @return amountCollected The amount of currency successfully withdrawn\n    function collectProtocolFees(address recipient, Currency currency, uint256 amount)\n        external\n        returns (uint256 amountCollected);\n\n    /// @notice Returns the current protocol fee controller address\n    /// @return address The current protocol fee controller address\n    function protocolFeeController() external view returns (address);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"./PoolKey.sol\";\n\ntype PoolId is bytes32;\n\n/// @notice Library for computing the ID of a pool\nlibrary PoolIdLibrary {\n    /// @notice Returns value equal to keccak256(abi.encode(poolKey))\n    function toId(PoolKey memory poolKey) internal pure returns (PoolId poolId) {\n        assembly (\"memory-safe\") {\n            // 0xa0 represents the total size of the poolKey struct (5 slots of 32 bytes)\n            poolId := keccak256(poolKey, 0xa0)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for functions to access any storage slot in a contract\ninterface IExtsload {\n    /// @notice Called by external contracts to access granular pool state\n    /// @param slot Key of slot to sload\n    /// @return value The value of the slot as bytes32\n    function extsload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access granular pool state\n    /// @param startSlot Key of slot to start sloading from\n    /// @param nSlots Number of slots to load into return value\n    /// @return values List of loaded values.\n    function extsload(bytes32 startSlot, uint256 nSlots) external view returns (bytes32[] memory values);\n\n    /// @notice Called by external contracts to access sparse pool state\n    /// @param slots List of slots to SLOAD from.\n    /// @return values List of loaded values.\n    function extsload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\n/// @notice Interface for functions to access any transient storage slot in a contract\ninterface IExttload {\n    /// @notice Called by external contracts to access transient storage of the contract\n    /// @param slot Key of slot to tload\n    /// @return value The value of the slot as bytes32\n    function exttload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access sparse transient pool state\n    /// @param slots List of slots to tload\n    /// @return values List of loaded values\n    function exttload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// Return type of the beforeSwap hook.\n// Upper 128 bits is the delta in specified tokens. Lower 128 bits is delta in unspecified tokens (to match the afterSwap hook)\ntype BeforeSwapDelta is int256;\n\n// Creates a BeforeSwapDelta from specified and unspecified\nfunction toBeforeSwapDelta(int128 deltaSpecified, int128 deltaUnspecified)\n    pure\n    returns (BeforeSwapDelta beforeSwapDelta)\n{\n    assembly (\"memory-safe\") {\n        beforeSwapDelta := or(shl(128, deltaSpecified), and(sub(shl(128, 1), 1), deltaUnspecified))\n    }\n}\n\n/// @notice Library for getting the specified and unspecified deltas from the BeforeSwapDelta type\nlibrary BeforeSwapDeltaLibrary {\n    /// @notice A BeforeSwapDelta of 0\n    BeforeSwapDelta public constant ZERO_DELTA = BeforeSwapDelta.wrap(0);\n\n    /// extracts int128 from the upper 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap\n    function getSpecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaSpecified) {\n        assembly (\"memory-safe\") {\n            deltaSpecified := sar(128, delta)\n        }\n    }\n\n    /// extracts int128 from the lower 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap and afterSwap\n    function getUnspecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaUnspecified) {\n        assembly (\"memory-safe\") {\n            deltaUnspecified := signextend(15, delta)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Minimal ERC20 interface for Uniswap\n/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3\ninterface IERC20Minimal {\n    /// @notice Returns an account's balance in the token\n    /// @param account The account for which to look up the number of tokens it has, i.e. its balance\n    /// @return The number of tokens held by the account\n    function balanceOf(address account) external view returns (uint256);\n\n    /// @notice Transfers the amount of token from the `msg.sender` to the recipient\n    /// @param recipient The account that will receive the amount transferred\n    /// @param amount The number of tokens to send from the sender to the recipient\n    /// @return Returns true for a successful transfer, false for an unsuccessful transfer\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Returns the current allowance given to a spender by an owner\n    /// @param owner The account of the token owner\n    /// @param spender The account of the token spender\n    /// @return The current allowance granted by `owner` to `spender`\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n    /// @param spender The account which will be allowed to spend a given amount of the owners tokens\n    /// @param amount The amount of tokens allowed to be used by `spender`\n    /// @return Returns true for a successful approval, false for unsuccessful\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n    /// @param sender The account from which the transfer will be initiated\n    /// @param recipient The recipient of the transfer\n    /// @param amount The amount of the transfer\n    /// @return Returns true for a successful transfer, false for unsuccessful\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\n    /// @param from The account from which the tokens were sent, i.e. the balance decreased\n    /// @param to The account to which the tokens were sent, i.e. the balance increased\n    /// @param value The amount of tokens that were transferred\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.\n    /// @param owner The account that approved spending of its tokens\n    /// @param spender The account for which the spending allowance was modified\n    /// @param value The new allowance from the owner to the spender\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Library for reverting with custom errors efficiently\n/// @notice Contains functions for reverting with custom errors with different argument types efficiently\n/// @dev To use this library, declare `using CustomRevert for bytes4;` and replace `revert CustomError()` with\n/// `CustomError.selector.revertWith()`\n/// @dev The functions may tamper with the free memory pointer but it is fine since the call context is exited immediately\nlibrary CustomRevert {\n    /// @dev ERC-7751 error for wrapping bubbled up reverts\n    error WrappedError(address target, bytes4 selector, bytes reason, bytes details);\n\n    /// @dev Reverts with the selector of a custom error in the scratch space\n    function revertWith(bytes4 selector) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            revert(0, 0x04)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an address argument in the scratch space\n    function revertWith(bytes4 selector, address addr) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(addr, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an int24 argument in the scratch space\n    function revertWith(bytes4 selector, int24 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, signextend(2, value))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with a uint160 argument in the scratch space\n    function revertWith(bytes4 selector, uint160 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(value, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two int24 arguments\n    function revertWith(bytes4 selector, int24 value1, int24 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), signextend(2, value1))\n            mstore(add(fmp, 0x24), signextend(2, value2))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two uint160 arguments\n    function revertWith(bytes4 selector, uint160 value1, uint160 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two address arguments\n    function revertWith(bytes4 selector, address value1, address value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @notice bubble up the revert message returned by a call and revert with a wrapped ERC-7751 error\n    /// @dev this method can be vulnerable to revert data bombs\n    function bubbleUpAndRevertWith(\n        address revertingContract,\n        bytes4 revertingFunctionSelector,\n        bytes4 additionalContext\n    ) internal pure {\n        bytes4 wrappedErrorSelector = WrappedError.selector;\n        assembly (\"memory-safe\") {\n            // Ensure the size of the revert data is a multiple of 32 bytes\n            let encodedDataSize := mul(div(add(returndatasize(), 31), 32), 32)\n\n            let fmp := mload(0x40)\n\n            // Encode wrapped error selector, address, function selector, offset, additional context, size, revert reason\n            mstore(fmp, wrappedErrorSelector)\n            mstore(add(fmp, 0x04), and(revertingContract, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(\n                add(fmp, 0x24),\n                and(revertingFunctionSelector, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            // offset revert reason\n            mstore(add(fmp, 0x44), 0x80)\n            // offset additional context\n            mstore(add(fmp, 0x64), add(0xa0, encodedDataSize))\n            // size revert reason\n            mstore(add(fmp, 0x84), returndatasize())\n            // revert reason\n            returndatacopy(add(fmp, 0xa4), 0, returndatasize())\n            // size additional context\n            mstore(add(fmp, add(0xa4, encodedDataSize)), 0x04)\n            // additional context\n            mstore(\n                add(fmp, add(0xc4, encodedDataSize)),\n                and(additionalContext, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            revert(fmp, add(0xe4, encodedDataSize))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Safe casting methods\n/// @notice Contains methods for safely casting between types\nlibrary SafeCast {\n    using CustomRevert for bytes4;\n\n    error SafeCastOverflow();\n\n    /// @notice Cast a uint256 to a uint160, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint160\n    function toUint160(uint256 x) internal pure returns (uint160 y) {\n        y = uint160(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a uint128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint128\n    function toUint128(uint256 x) internal pure returns (uint128 y) {\n        y = uint128(x);\n        if (x != y) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a int128 to a uint128, revert on overflow or underflow\n    /// @param x The int128 to be casted\n    /// @return y The casted integer, now type uint128\n    function toUint128(int128 x) internal pure returns (uint128 y) {\n        if (x < 0) SafeCastOverflow.selector.revertWith();\n        y = uint128(x);\n    }\n\n    /// @notice Cast a int256 to a int128, revert on overflow or underflow\n    /// @param x The int256 to be downcasted\n    /// @return y The downcasted integer, now type int128\n    function toInt128(int256 x) internal pure returns (int128 y) {\n        y = int128(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int256, revert on overflow\n    /// @param x The uint256 to be casted\n    /// @return y The casted integer, now type int256\n    function toInt256(uint256 x) internal pure returns (int256 y) {\n        y = int256(x);\n        if (y < 0) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return The downcasted integer, now type int128\n    function toInt128(uint256 x) internal pure returns (int128) {\n        if (x >= 1 << 127) SafeCastOverflow.selector.revertWith();\n        return int128(int256(x));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title BitMath\n/// @dev This library provides functionality for computing bit properties of an unsigned integer\n/// @author Solady (https://github.com/Vectorized/solady/blob/8200a70e8dc2a77ecb074fc2e99a2a0d36547522/src/utils/LibBit.sol)\nlibrary BitMath {\n    /// @notice Returns the index of the most significant bit of the number,\n    ///     where the least significant bit is at index 0 and the most significant bit is at index 255\n    /// @param x the value for which to compute the most significant bit, must be greater than 0\n    /// @return r the index of the most significant bit\n    function mostSignificantBit(uint256 x) internal pure returns (uint8 r) {\n        require(x > 0);\n\n        assembly (\"memory-safe\") {\n            r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))\n            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\n            r := or(r, shl(4, lt(0xffff, shr(r, x))))\n            r := or(r, shl(3, lt(0xff, shr(r, x))))\n            // forgefmt: disable-next-item\n            r := or(r, byte(and(0x1f, shr(shr(r, x), 0x8421084210842108cc6318c6db6d54be)),\n                0x0706060506020500060203020504000106050205030304010505030400000000))\n        }\n    }\n\n    /// @notice Returns the index of the least significant bit of the number,\n    ///     where the least significant bit is at index 0 and the most significant bit is at index 255\n    /// @param x the value for which to compute the least significant bit, must be greater than 0\n    /// @return r the index of the least significant bit\n    function leastSignificantBit(uint256 x) internal pure returns (uint8 r) {\n        require(x > 0);\n\n        assembly (\"memory-safe\") {\n            // Isolate the least significant bit.\n            x := and(x, sub(0, x))\n            // For the upper 3 bits of the result, use a De Bruijn-like lookup.\n            // Credit to adhusson: https://blog.adhusson.com/cheap-find-first-set-evm/\n            // forgefmt: disable-next-item\n            r := shl(5, shr(252, shl(shl(2, shr(250, mul(x,\n                0xb6db6db6ddddddddd34d34d349249249210842108c6318c639ce739cffffffff))),\n                0x8040405543005266443200005020610674053026020000107506200176117077)))\n            // For the lower 5 bits of the result, use a De Bruijn lookup.\n            // forgefmt: disable-next-item\n            r := or(r, byte(and(div(0xd76453e0, shr(r, x)), 0x1f),\n                0x001f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/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"},"lib/openzeppelin-contracts/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"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},"lib/openzeppelin-contracts/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.26+commit.8a97fa7a","compilerSettings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts/=lib/openzeppelin-contracts/","@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/","v4-core/=lib/v4-periphery/lib/v4-core/src/","v4-periphery/=lib/v4-periphery/","permit2/=lib/v4-periphery/lib/permit2/","forge-std/=lib/forge-std/src/","ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/","solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/","forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/","@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/","hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/"]},"name":"FeeCollector","fullyQualifiedName":"src/FeeCollector.sol:FeeCollector"},"abi":[{"type":"constructor","inputs":[{"name":"tokenizedStock_","type":"address","internalType":"address"},{"name":"usdg_","type":"address","internalType":"address"},{"name":"feeRecipient_","type":"address","internalType":"address"},{"name":"poolManager_","type":"address","internalType":"address"},{"name":"conversionPoolFee_","type":"uint24","internalType":"uint24"},{"name":"conversionPoolTickSpacing_","type":"int24","internalType":"int24"}],"stateMutability":"nonpayable"},{"name":"ConversionReturnedNothing","type":"error","inputs":[]},{"name":"InvalidRange","type":"error","inputs":[{"name":"startIndex","type":"uint256","internalType":"uint256"},{"name":"endIndex","type":"uint256","internalType":"uint256"},{"name":"length","type":"uint256","internalType":"uint256"}]},{"name":"NotPoolManager","type":"error","inputs":[]},{"name":"NothingToDistribute","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"OnlySelf","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"ConversionDeferred","type":"event","inputs":[{"name":"pendingStock","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"DividendDeferred","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"FeesDistributed","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"dividendShare","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"operatorShare","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"usdgPaid","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"FeesRecorded","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"OperatorPaid","type":"event","inputs":[{"name":"stockSold","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"usdgReceived","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"DIVIDEND_BPS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"OPERATOR_BPS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"collectedOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"corePoolKey","type":"function","inputs":[],"outputs":[{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"}],"stateMutability":"view"},{"name":"currentDay","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"dailyRevenue","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"distribute","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"dividendShare","type":"uint256","internalType":"uint256"},{"name":"operatorShare","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"distributeAll","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"distributeRange","type":"function","inputs":[{"name":"startIndex","type":"uint256","internalType":"uint256"},{"name":"endIndex","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"distributedOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"dividendsOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"executeConversion","type":"function","inputs":[{"name":"amountIn","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"amountOut","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"feeRecipient","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeTokenAt","type":"function","inputs":[{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeTokenCount","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"feeTokens","type":"function","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"isFeeToken","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"operatorOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"operatorReceived","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingConversion","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingFees","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"poolManager","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPoolManager"}],"stateMutability":"view"},{"name":"recordFee","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"stockConverted","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"tokenizedStock","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"},{"name":"totalCollected","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalDistributed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalDividends","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalPending","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"unlockCallback","type":"function","inputs":[{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes","internalType":"bytes"}],"stateMutability":"nonpayable"},{"name":"usdg","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"}],"metadata":{"compiler":{"version":"0.8.26+commit.8a97fa7a"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"address","name":"tokenizedStock_","type":"address"},{"internalType":"address","name":"usdg_","type":"address"},{"internalType":"address","name":"feeRecipient_","type":"address"},{"internalType":"address","name":"poolManager_","type":"address"},{"internalType":"uint24","name":"conversionPoolFee_","type":"uint24"},{"internalType":"int24","name":"conversionPoolTickSpacing_","type":"int24"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ConversionReturnedNothing","type":"error"},{"inputs":[{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"InvalidRange","type":"error"},{"inputs":[],"name":"NotPoolManager","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"NothingToDistribute","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"pendingStock","type":"uint256"}],"name":"ConversionDeferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DividendDeferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"dividendShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"operatorShare","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdgPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"FeesDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"FeesRecorded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"stockSold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdgReceived","type":"uint256"}],"name":"OperatorPaid","type":"event"},{"inputs":[],"name":"DIVIDEND_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"name":"collectedOnDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"corePoolKey","outputs":[{"components":[{"internalType":"Currency","name":"currency0","type":"address"},{"internalType":"Currency","name":"currency1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"contract IHooks","name":"hooks","type":"address"}],"internalType":"struct PoolKey","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyRevenue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"distribute","outputs":[{"internalType":"uint256","name":"dividendShare","type":"uint256"},{"internalType":"uint256","name":"operatorShare","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"distributeRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"name":"distributedOnDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"name":"dividendsOnDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"executeConversion","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"feeTokenAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"isFeeToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"day","type":"uint256"}],"name":"operatorOnDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingConversion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"pendingFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolManager","outputs":[{"internalType":"contract IPoolManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recordFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stockConverted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenizedStock","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"unlockCallback","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdg","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"devdoc":{"details":"Dividends follow the token, not the share. A fee generated by PEPE trading is paid to      PEPE holders, in TokenizedStock. Each launch keeps its own dividend pool; they are      never mixed. The share itself pays no dividend — what it gets from the launchpad is      demand, since every buy of every token is routed through it.No owner, no admin, no setters. The split is two constants, the recipient is an      immutable, and `distribute` is callable by anyone for any token.      WHY `recordFee` IS PERMISSIONLESS. It pulls the stock off the caller before crediting      it, so calling it is strictly a donation. That also lets this contract be deployed      before the hook, which is what keeps the whole deployment graph acyclic.      THE USDG LEG. Fees arrive in stock, so the operator's half has to be sold. That makes      the protocol a structural seller of the very asset the launchpad exists to create      demand for, and it needs a stock/USDG pool deep enough to absorb it. If the swap      cannot execute, the operator's half is held and retried — the dividend half is paid      either way, so shareholders are never blocked by a thin conversion pool.","errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"kind":"dev","methods":{"recordFee(address,uint256)":{"details":"Permissionless by design: the caller must actually transfer the stock in,      so there is nothing to gain by calling it. This is what lets the hook push      fees without the FeeCollector needing to trust (or even know) the hook,      which keeps the deployment graph acyclic."},"unlockCallback(bytes)":{"params":{"data":"The data that was passed to the call to unlock"},"returns":{"_0":"Any data that you want to be returned from the unlock call"}}},"title":"FeeCollector","version":1},"userdoc":{"events":{"ConversionDeferred(uint256)":{"notice":"The stock/USDG pool could not absorb the sale; the stock is held for next time."},"DividendDeferred(address,uint256)":{"notice":"Nobody held the token yet, so its dividend could not be paid; held for next time."}},"kind":"user","methods":{"DIVIDEND_BPS()":{"notice":"Immutable split. Half to shareholders, half to the operator."},"corePoolKey()":{"notice":"The stock/USDG pool the operator's half is sold into. No hook."},"distribute(address)":{"notice":"Split everything pending for `token`. Anyone may call this, for any token."},"distributeAll()":{"notice":"`distribute` for every token that has ever accrued a fee."},"distributeRange(uint256,uint256)":{"notice":"Paginated `distributeAll`, over `[startIndex, endIndex)`."},"executeConversion(uint256)":{"notice":"External only so the caller above can `try`/`catch` it. Not callable by anyone else."},"feeRecipient()":{"notice":"Where the operator's half lands. Set once, at construction, forever."},"operatorReceived()":{"notice":"Cumulative USDG delivered to the operator."},"pendingConversion()":{"notice":"Stock earmarked for the operator that could not be converted yet."},"poolManager()":{"notice":"The v4 singleton. Conversions swap straight against it, not through a router."},"recordFee(address,uint256)":{"notice":"Deposit `amount` of TokenizedStock and attribute it to `token`."},"stockConverted()":{"notice":"Cumulative stock sold to pay the operator."},"totalDividends()":{"notice":"Cumulative stock paid out as shareholder dividends."},"totalPending()":{"notice":"Stock sitting here undistributed, across every token plus the conversion queue."},"unlockCallback(bytes)":{"notice":"Called by the pool manager on `msg.sender` when the manager is unlocked"},"usdg()":{"notice":"The stablecoin the operator is paid in."}},"notice":"Receives every protocol fee the LaunchpadHook skims and splits it 50/50: half paid         back to the holders of the token that generated it, half converted to USDG for the         protocol operator.","version":1}},"settings":{"compilationTarget":{"src/FeeCollector.sol":"FeeCollector"},"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"none"},"optimizer":{"enabled":true,"runs":200},"remappings":[":@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/",":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",":@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/",":ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/",":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",":forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",":forge-std/=lib/forge-std/src/",":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",":hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/",":openzeppelin-contracts/=lib/openzeppelin-contracts/",":permit2/=lib/v4-periphery/lib/permit2/",":solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/",":v4-core/=lib/v4-periphery/lib/v4-core/src/",":v4-periphery/=lib/v4-periphery/"]},"sources":{"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"keccak256":"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d","license":"MIT","urls":["bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100","dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"keccak256":"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc","license":"MIT","urls":["bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037","dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"keccak256":"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44","license":"MIT","urls":["bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d","dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF"]},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"keccak256":"0xd735962e3d6660884153ba8a972b5f100dde4c482f2ff1c525ba7fdefb154cbd","license":"MIT","urls":["bzz-raw://5a264d17b093f585844b0d977e9f60555b8c8d6513b304fde863cdf652a0d336","dweb:/ipfs/QmWXfaJisjVnrjTUjZGryZpMob9wKivvtbodLS3PTc1ttq"]},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"keccak256":"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2","license":"MIT","urls":["bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303","dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV"]},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"keccak256":"0xd6fa4088198f04eef10c5bce8a2f4d60554b7ec4b987f684393c01bf79b94d9f","license":"MIT","urls":["bzz-raw://f95ee0bbd4dd3ac730d066ba3e785ded4565e890dbec2fa7d3b9fe3bad9d0d6e","dweb:/ipfs/QmSLr6bHkPFWT7ntj34jmwfyskpwo97T9jZUrk5sz3sdtR"]},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"keccak256":"0x318ea37780610ca7808852275651885d428669402b81488cb7434fde361e9704","license":"MIT","urls":["bzz-raw://4aad80ad93cedad85619900fd7c2084c4d2f4b28f1dbda27e491c5f4fd31025d","dweb:/ipfs/QmUyXtX7FUi2u1W5fs7ufka9XkRVb5ss2menQHTsrsSmqZ"]},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c","license":"MIT","urls":["bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617","dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"keccak256":"0x80b53ca4907d6f0088c3b931f2b72cad1dc4615a95094d96bd0fb8dff8d5ba43","license":"MIT","urls":["bzz-raw://375c69148622aab7a3537d5fd37d373a8e9731022c8d87bdaee46233b0a99fe1","dweb:/ipfs/QmXFjdoYRxsA5B1kyuxEXgNf3FBoL1zPvy26Qy8EtpdFRN"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"keccak256":"0xc6b68283ebd8d1c789df536756726eed51c589134bb20821b236a0d22a135937","license":"MIT","urls":["bzz-raw://294394f72dfc219689209f4130d85601dfd0d63c8d47578050d312db70f9b6c8","dweb:/ipfs/QmTDMQ3oxCGHgEBU48a3Lp4S1rRjc8vVCxkhE5ZNej1bsY"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"keccak256":"0xc131ffa2d04c10a012fe715fe2c115811526b7ea34285cf0a04ce7ce8320da8d","license":"MIT","urls":["bzz-raw://3b212358897db5d99c21244d88f97b2e788527552cb430629b472a8cc6289aec","dweb:/ipfs/QmQtwV4dDe2RYk2ErLpaAX7U82jWh1L6Lw2HRuKDvBi84G"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"keccak256":"0xbdab3544da3d32dfdf7457baa94e17d5a3012952428559e013ffac45d067038e","license":"MIT","urls":["bzz-raw://ce95ff864468e37c76adf71df061d4f3d6f3a5ec1f9bc3aea090463bc72798f4","dweb:/ipfs/QmSbWh1pLbz51yQF4HEu5NRhr8XVv9JYGEw1hq1HudAnCi"]},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"keccak256":"0x32a666e588a2f66334430357bb1e2424fe7eebeb98a3364b1dd16eb6ccca9848","license":"MIT","urls":["bzz-raw://85751d302125881f72e5f8af051c2d5d9b1f606ebaea8ca7d04fccdd27cc252d","dweb:/ipfs/QmeRwomeh9NWm6A6fgNA4KZPQZHPpdKsPQyYsHSFmvud7J"]},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"keccak256":"0x58c82f2bd9d7c097ed09bd0991fedc403b0ec270eb3d0158bfb095c06a03d719","license":"MIT","urls":["bzz-raw://91168ca26a10980df2cdc3fbfe8ddf372c002b7ef19e3c59a0c9870d64198f1b","dweb:/ipfs/QmUSpaM825vd1SwvF38esgbdLgYiPwefKaFERTWvUi6uSK"]},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"keccak256":"0xeccadf1bf69ba2eb51f2fe4fa511bc7bb05bbd6b9f9a3cb8e5d83d9582613e0f","license":"MIT","urls":["bzz-raw://118757369892687b99ef46ce28d6861f62c098285bd7687a4f17f7e44e5f81de","dweb:/ipfs/QmUxqbYqQtcEwwFbb9e6BBMePEaSgN8C45v6RKubD4ib8d"]},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"keccak256":"0xa586f345739e52b0488a0fe40b6e375cce67fdd25758408b0efcb5133ad96a48","license":"MIT","urls":["bzz-raw://e8c557b7e52abdbbd82e415a1acc27921446a7fd090b7d4877e52be72619547f","dweb:/ipfs/QmXE2KNPbXmGX8BQF3ei6zhzRTnhoTQg39XmqMnkhbr6QK"]},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"keccak256":"0x51b9be4f5c4fd3e80cbc9631a65244a2eb2be250b6b7f128a2035080e18aee8d","license":"MIT","urls":["bzz-raw://fe98bbd5498e912146b9319827fc63621eb66ff55d5baae0fa02a7a972ab8d1e","dweb:/ipfs/QmY5hCuyrtgsJtk4AavrxcvBkRrChfr4N6ZnhdC8roPpNi"]},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"keccak256":"0x111ed3031b6990c80a93ae35dde6b6ac0b7e6af471388fdd7461e91edda9b7de","license":"MIT","urls":["bzz-raw://c9ea883c98d6ae1829160d0977bb5195761cfd5bc81692d0a941f45717f594cd","dweb:/ipfs/QmZPwxzaeMNv536wzrAMrMswu7vMHuqPVpjcqL3YvCMoxt"]},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"keccak256":"0x42c4a24f996a14d358be397b71f7ec9d7daf666aaec78002c63315a6ee67aa86","license":"MIT","urls":["bzz-raw://c3db86e2ba3679105fc32edec656c70282e1fede6cab11217702443f6c26fa59","dweb:/ipfs/QmX4yaaSPdKQzYNRsezjTvZKsubzS8JRTEGFD3fPpTTCcj"]},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"keccak256":"0x4e1a11e154eb06106cb1c4598f06cca5f5ca16eaa33494ba2f0e74981123eca8","license":"MIT","urls":["bzz-raw://a79a57f7b240783b045168d1c4f774ac1812caf8f9a83cb6959a86b0b07b6c70","dweb:/ipfs/QmTb5kvxwDNW8jDuQaqdJ445cCFejNkUqEB17Bjo8UBiva"]},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"keccak256":"0xa719c8fe51e0a9524280178f19f6851bcc3b3b60e73618f3d60905d35ae5569f","license":"MIT","urls":["bzz-raw://7436928dc9de35c6c7c5c636cb51adaf295cfd590da83b19a004ae33cbec9ef9","dweb:/ipfs/QmRJ9yZkUpzk4433GX3LgVVL8jwpbSYSUwXcucKisf3v4H"]},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"keccak256":"0x2a774312d91285313d569da1a718c909655da5432310417692097a1d4dc83a78","license":"MIT","urls":["bzz-raw://a2c7a0379955cff9c17ab9e61f95e42909aa5947c22740f86ce940d09856f782","dweb:/ipfs/QmaAuo8UBYXsGrVuKh8iRoAAdqwtg1jDq515cW1ZRP5m9K"]},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"keccak256":"0x4a0b84b282577ff6f8acf13ec9f4d32dbb9348748b49611d00e68bee96609c93","license":"MIT","urls":["bzz-raw://45f9d62ab3d51b52957279e353853ba1547c3182c9a1e3d1846ada4a90263b01","dweb:/ipfs/QmS8NG84ccQS1yXVD8cv3eKX7J1UKxuJhbUfHTQR2opKF5"]},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"keccak256":"0x308311916ea0f5c2fd878b6a2751eb223d170a69e33f601fae56dfe3c5d392af","license":"MIT","urls":["bzz-raw://669c2cd7ac17690b5d8831e0bda72822376c3a04b36afed6d31df4d75fe60918","dweb:/ipfs/QmT6EpkxqU8VF3WsgrZ66F3s1cCQRffR95z1HDYZz7ph6y"]},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"keccak256":"0xf89856e0580d7a4856d3187a76858377ccee9d59702d230c338d84388221b786","license":"MIT","urls":["bzz-raw://6f3118fa189025695c37fdf0bdd1190f085ad097484d3c88cf4c56d1db65f639","dweb:/ipfs/QmamXpgtB8GV1CaFLvqefPWSoikLDhMk1yU4heBnVzU8gi"]},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"keccak256":"0x7a1a107fc1f2208abb2c9364c8c54e56e98dca27673e9441bed2b949b6382162","license":"MIT","urls":["bzz-raw://4ad2470383bc5595d5af17840c64971f457adac68895a4db41ba5c71a4478e07","dweb:/ipfs/QmdwKhBHDZFuqXrR2BfDBD9r7rB2ULGQBznsajRTkTmL4c"]},"src/FeeCollector.sol":{"keccak256":"0x45808630803754f4ff294cb538dee426fccadc8664d87aeb2543e966a4f2e46a","license":"MIT","urls":["bzz-raw://d76180b494dd6e223cb65cbe23ff006f33687237783127b71b812a7e0aced4e9","dweb:/ipfs/QmZt8fm7SHosrCBZEmhdr42qmEmgNRkwrDkg9NdoGAiS2U"]},"src/interfaces/IFeeCollector.sol":{"keccak256":"0x0a83ebc9e661980522757cb21a227ad2ad2ef2682feb343093bf86c96aff1e16","license":"MIT","urls":["bzz-raw://8dbda426b110c371feb087a0aea493de642bade5e7eda5174b39d6660de8212a","dweb:/ipfs/QmWnotezoQS4CrqPpDRj219F8o5kv24jUgQungdac23TXf"]},"src/interfaces/ILaunchpadToken.sol":{"keccak256":"0x005f7693452d4698173887d0aaf01b1a3901d5242f1469d61cb1bba5e9d0be08","license":"MIT","urls":["bzz-raw://fe05821413c6d8a468abc22d480d2d73614f675b639eed97eac527c68caeebc6","dweb:/ipfs/QmegL8eRYVKiYHFqX4cXXZPzta2t7hgjdDVBoku6qNpBAS"]}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_array(t_address)dyn_storage":{"base":"t_address","label":"address[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_uint256)":{"key":"t_uint256","label":"mapping(uint256 => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_mapping(t_address,t_uint256)","astId":3035,"label":"_pending","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"1","type":"t_uint256","astId":3038,"label":"pendingConversion","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"2","type":"t_uint256","astId":3040,"label":"totalCollected","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"3","type":"t_uint256","astId":3042,"label":"totalDistributed","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"4","type":"t_uint256","astId":3045,"label":"totalDividends","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"5","type":"t_uint256","astId":3048,"label":"stockConverted","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"6","type":"t_uint256","astId":3051,"label":"operatorReceived","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"7","type":"t_mapping(t_uint256,t_uint256)","astId":3055,"label":"collectedOnDay","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"8","type":"t_mapping(t_uint256,t_uint256)","astId":3059,"label":"distributedOnDay","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"9","type":"t_mapping(t_uint256,t_uint256)","astId":3063,"label":"dividendsOnDay","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"10","type":"t_mapping(t_uint256,t_uint256)","astId":3067,"label":"operatorOnDay","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"11","type":"t_mapping(t_address,t_bool)","astId":3071,"label":"isFeeToken","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"12","type":"t_array(t_address)dyn_storage","astId":3074,"label":"_feeTokens","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"}]},"transientStorageLayout":null,"userdoc":{"kind":"user","events":{"ConversionDeferred(uint256)":{"notice":"The stock/USDG pool could not absorb the sale; the stock is held for next time."},"DividendDeferred(address,uint256)":{"notice":"Nobody held the token yet, so its dividend could not be paid; held for next time."}},"notice":"Receives every protocol fee the LaunchpadHook skims and splits it 50/50: half paid         back to the holders of the token that generated it, half converted to USDG for the         protocol operator.","methods":{"usdg()":{"notice":"The stablecoin the operator is paid in."},"corePoolKey()":{"notice":"The stock/USDG pool the operator's half is sold into. No hook."},"poolManager()":{"notice":"The v4 singleton. Conversions swap straight against it, not through a router."},"DIVIDEND_BPS()":{"notice":"Immutable split. Half to shareholders, half to the operator."},"feeRecipient()":{"notice":"Where the operator's half lands. Set once, at construction, forever."},"totalPending()":{"notice":"Stock sitting here undistributed, across every token plus the conversion queue."},"distributeAll()":{"notice":"`distribute` for every token that has ever accrued a fee."},"stockConverted()":{"notice":"Cumulative stock sold to pay the operator."},"totalDividends()":{"notice":"Cumulative stock paid out as shareholder dividends."},"operatorReceived()":{"notice":"Cumulative USDG delivered to the operator."},"distribute(address)":{"notice":"Split everything pending for `token`. Anyone may call this, for any token."},"pendingConversion()":{"notice":"Stock earmarked for the operator that could not be converted yet."},"unlockCallback(bytes)":{"notice":"Called by the pool manager on `msg.sender` when the manager is unlocked"},"executeConversion(uint256)":{"notice":"External only so the caller above can `try`/`catch` it. Not callable by anyone else."},"recordFee(address,uint256)":{"notice":"Deposit `amount` of TokenizedStock and attribute it to `token`."},"distributeRange(uint256,uint256)":{"notice":"Paginated `distributeAll`, over `[startIndex, endIndex)`."}},"version":1},"devdoc":{"kind":"dev","title":"FeeCollector","errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"details":"Dividends follow the token, not the share. A fee generated by PEPE trading is paid to      PEPE holders, in TokenizedStock. Each launch keeps its own dividend pool; they are      never mixed. The share itself pays no dividend — what it gets from the launchpad is      demand, since every buy of every token is routed through it.No owner, no admin, no setters. The split is two constants, the recipient is an      immutable, and `distribute` is callable by anyone for any token.      WHY `recordFee` IS PERMISSIONLESS. It pulls the stock off the caller before crediting      it, so calling it is strictly a donation. That also lets this contract be deployed      before the hook, which is what keeps the whole deployment graph acyclic.      THE USDG LEG. Fees arrive in stock, so the operator's half has to be sold. That makes      the protocol a structural seller of the very asset the launchpad exists to create      demand for, and it needs a stock/USDG pool deep enough to absorb it. If the swap      cannot execute, the operator's half is held and retried — the dividend half is paid      either way, so shareholders are never blocked by a thin conversion pool.","methods":{"unlockCallback(bytes)":{"params":{"data":"The data that was passed to the call to unlock"},"returns":{"_0":"Any data that you want to be returned from the unlock call"}},"recordFee(address,uint256)":{"details":"Permissionless by design: the caller must actually transfer the stock in,      so there is nothing to gain by calling it. This is what lets the hook push      fees without the FeeCollector needing to trust (or even know) the hook,      which keeps the deployment graph acyclic."}},"version":1},"sourceIds":{"src/FeeCollector.sol":{"id":26},"src/interfaces/IFeeCollector.sol":{"id":27},"src/interfaces/ILaunchpadToken.sol":{"id":28},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"id":23},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"id":24},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"id":22},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"id":10},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"id":16},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"id":18},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"id":19},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"id":20},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"id":25},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"id":8},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"id":9},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"id":2},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"id":21},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"id":1},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":4},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"id":17},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"id":0},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"id":11},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"id":12},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"id":3},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":6},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"id":7},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"id":14},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"id":15},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"id":13},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":5}},"additionalInput":null,"stdJsonInput":{"sources":{"src/FeeCollector.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\nimport {IPoolManager} from \"@uniswap/v4-core/src/interfaces/IPoolManager.sol\";\nimport {IUnlockCallback} from \"@uniswap/v4-core/src/interfaces/callback/IUnlockCallback.sol\";\nimport {IHooks} from \"@uniswap/v4-core/src/interfaces/IHooks.sol\";\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport {Currency} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {BalanceDelta} from \"@uniswap/v4-core/src/types/BalanceDelta.sol\";\nimport {SwapParams} from \"@uniswap/v4-core/src/types/PoolOperation.sol\";\nimport {TickMath} from \"@uniswap/v4-core/src/libraries/TickMath.sol\";\n\nimport {IFeeCollector} from \"./interfaces/IFeeCollector.sol\";\nimport {ILaunchpadToken} from \"./interfaces/ILaunchpadToken.sol\";\n\n/// @title FeeCollector\n/// @notice Receives every protocol fee the LaunchpadHook skims and splits it 50/50: half paid\n///         back to the holders of the token that generated it, half converted to USDG for the\n///         protocol operator.\n///\n/// @dev Dividends follow the token, not the share. A fee generated by PEPE trading is paid to\n///      PEPE holders, in TokenizedStock. Each launch keeps its own dividend pool; they are\n///      never mixed. The share itself pays no dividend — what it gets from the launchpad is\n///      demand, since every buy of every token is routed through it.\n///\n/// @dev No owner, no admin, no setters. The split is two constants, the recipient is an\n///      immutable, and `distribute` is callable by anyone for any token.\n///\n///      WHY `recordFee` IS PERMISSIONLESS. It pulls the stock off the caller before crediting\n///      it, so calling it is strictly a donation. That also lets this contract be deployed\n///      before the hook, which is what keeps the whole deployment graph acyclic.\n///\n///      THE USDG LEG. Fees arrive in stock, so the operator's half has to be sold. That makes\n///      the protocol a structural seller of the very asset the launchpad exists to create\n///      demand for, and it needs a stock/USDG pool deep enough to absorb it. If the swap\n///      cannot execute, the operator's half is held and retried — the dividend half is paid\n///      either way, so shareholders are never blocked by a thin conversion pool.\ncontract FeeCollector is IFeeCollector, IUnlockCallback {\n    using SafeERC20 for IERC20;\n\n    /// @notice Immutable split. Half to shareholders, half to the operator.\n    uint256 public constant DIVIDEND_BPS = 5_000;\n    uint256 public constant OPERATOR_BPS = 5_000;\n    uint256 private constant BPS_DENOMINATOR = 10_000;\n\n    IERC20 public immutable tokenizedStock;\n    /// @notice The stablecoin the operator is paid in.\n    IERC20 public immutable usdg;\n    /// @notice Where the operator's half lands. Set once, at construction, forever.\n    address public immutable feeRecipient;\n    /// @notice The v4 singleton. Conversions swap straight against it, not through a router.\n    IPoolManager public immutable poolManager;\n\n    // The stock/USDG conversion pool, stored field by field because a struct cannot be immutable.\n    Currency private immutable _coreCurrency0;\n    Currency private immutable _coreCurrency1;\n    uint24 private immutable _coreFee;\n    int24 private immutable _coreTickSpacing;\n\n    mapping(address token => uint256) private _pending;\n    /// @notice Stock earmarked for the operator that could not be converted yet.\n    uint256 public pendingConversion;\n\n    uint256 public totalCollected;\n    uint256 public totalDistributed;\n    /// @notice Cumulative stock paid out as shareholder dividends.\n    uint256 public totalDividends;\n    /// @notice Cumulative stock sold to pay the operator.\n    uint256 public stockConverted;\n    /// @notice Cumulative USDG delivered to the operator.\n    uint256 public operatorReceived;\n\n    mapping(uint256 day => uint256) public collectedOnDay;\n    mapping(uint256 day => uint256) public distributedOnDay;\n    mapping(uint256 day => uint256) public dividendsOnDay;\n    mapping(uint256 day => uint256) public operatorOnDay;\n\n    mapping(address token => bool) public isFeeToken;\n    address[] private _feeTokens;\n\n    error ZeroAddress();\n    error OnlySelf();\n    error NothingToDistribute(address token);\n    error InvalidRange(uint256 startIndex, uint256 endIndex, uint256 length);\n    error ConversionReturnedNothing();\n    error NotPoolManager();\n\n    event FeesRecorded(address indexed token, address indexed from, uint256 amount, uint256 timestamp);\n    event FeesDistributed(\n        address indexed token, uint256 dividendShare, uint256 operatorShare, uint256 usdgPaid, uint256 timestamp\n    );\n    /// @notice The stock/USDG pool could not absorb the sale; the stock is held for next time.\n    event ConversionDeferred(uint256 pendingStock);\n    /// @notice Nobody held the token yet, so its dividend could not be paid; held for next time.\n    event DividendDeferred(address indexed token, uint256 amount);\n    event OperatorPaid(uint256 stockSold, uint256 usdgReceived);\n\n    constructor(\n        address tokenizedStock_,\n        address usdg_,\n        address feeRecipient_,\n        address poolManager_,\n        uint24 conversionPoolFee_,\n        int24 conversionPoolTickSpacing_\n    ) {\n        if (\n            tokenizedStock_ == address(0) || usdg_ == address(0) || feeRecipient_ == address(0)\n                || poolManager_ == address(0)\n        ) revert ZeroAddress();\n\n        tokenizedStock = IERC20(tokenizedStock_);\n        usdg = IERC20(usdg_);\n        feeRecipient = feeRecipient_;\n        poolManager = IPoolManager(poolManager_);\n\n        bool stockIsCurrency0 = tokenizedStock_ < usdg_;\n        _coreCurrency0 = Currency.wrap(stockIsCurrency0 ? tokenizedStock_ : usdg_);\n        _coreCurrency1 = Currency.wrap(stockIsCurrency0 ? usdg_ : tokenizedStock_);\n        _coreFee = conversionPoolFee_;\n        _coreTickSpacing = conversionPoolTickSpacing_;\n    }\n\n    function currentDay() public view returns (uint256) {\n        return block.timestamp / 1 days;\n    }\n\n    /// @notice The stock/USDG pool the operator's half is sold into. No hook.\n    function corePoolKey() public view returns (PoolKey memory) {\n        return PoolKey({\n            currency0: _coreCurrency0,\n            currency1: _coreCurrency1,\n            fee: _coreFee,\n            tickSpacing: _coreTickSpacing,\n            hooks: IHooks(address(0))\n        });\n    }\n\n    // -------------------------------------------------------------------------\n    // Collection\n    // -------------------------------------------------------------------------\n\n    /// @inheritdoc IFeeCollector\n    function recordFee(address token, uint256 amount) external {\n        if (amount == 0) return;\n        tokenizedStock.safeTransferFrom(msg.sender, address(this), amount);\n\n        if (!isFeeToken[token]) {\n            isFeeToken[token] = true;\n            _feeTokens.push(token);\n        }\n\n        _pending[token] += amount;\n        totalCollected += amount;\n        collectedOnDay[currentDay()] += amount;\n\n        emit FeesRecorded(token, msg.sender, amount, block.timestamp);\n    }\n\n    // -------------------------------------------------------------------------\n    // Distribution\n    // -------------------------------------------------------------------------\n\n    /// @notice Split everything pending for `token`. Anyone may call this, for any token.\n    function distribute(address token) external returns (uint256 dividendShare, uint256 operatorShare) {\n        uint256 amount = _pending[token];\n        if (amount == 0) revert NothingToDistribute(token);\n        return _distribute(token, amount);\n    }\n\n    /// @notice `distribute` for every token that has ever accrued a fee.\n    function distributeAll() external {\n        _distributeRange(0, _feeTokens.length);\n    }\n\n    /// @notice Paginated `distributeAll`, over `[startIndex, endIndex)`.\n    function distributeRange(uint256 startIndex, uint256 endIndex) external {\n        _distributeRange(startIndex, endIndex);\n    }\n\n    function _distributeRange(uint256 startIndex, uint256 endIndex) internal {\n        uint256 len = _feeTokens.length;\n        if (startIndex > endIndex || endIndex > len) revert InvalidRange(startIndex, endIndex, len);\n        for (uint256 i = startIndex; i < endIndex; ++i) {\n            address token = _feeTokens[i];\n            uint256 amount = _pending[token];\n            // Skip rather than revert: one empty token must not block a whole page.\n            if (amount != 0) _distribute(token, amount);\n        }\n    }\n\n    function _distribute(address token, uint256 amount)\n        internal\n        returns (uint256 dividendShare, uint256 operatorShare)\n    {\n        _pending[token] = 0;\n\n        dividendShare = (amount * DIVIDEND_BPS) / BPS_DENOMINATOR;\n        // Remainder rather than a second multiplication, so the two halves always sum to\n        // exactly `amount` however the division rounds.\n        operatorShare = amount - dividendShare;\n\n        uint256 day = currentDay();\n        totalDistributed += amount;\n        distributedOnDay[day] += amount;\n\n        // --- the token's own holders ---\n        if (dividendShare != 0) {\n            // The token pulls, so approve exactly what it may take and no more.\n            tokenizedStock.forceApprove(token, dividendShare);\n\n            // Reverts while the whole supply is still sitting in the pool, i.e. before anyone\n            // holds any. Held rather than lost, and retried on the next call.\n            try ILaunchpadToken(token).distributeDividends(dividendShare) {\n                totalDividends += dividendShare;\n                dividendsOnDay[day] += dividendShare;\n            } catch {\n                _pending[token] += dividendShare;\n                totalDistributed -= dividendShare;\n                distributedOnDay[day] -= dividendShare;\n                emit DividendDeferred(token, dividendShare);\n                dividendShare = 0;\n            }\n            tokenizedStock.forceApprove(token, 0);\n        }\n\n        // --- operator ---\n        pendingConversion += operatorShare;\n        uint256 usdgPaid = _tryConvert();\n\n        emit FeesDistributed(token, dividendShare, operatorShare, usdgPaid, block.timestamp);\n    }\n\n    /// @dev Sells the queued stock for USDG and forwards it. If the pool cannot absorb it —\n    ///      not created, no liquidity, price moved — the stock stays queued and the next\n    ///      `distribute` retries. Shareholders are paid either way.\n    function _tryConvert() internal returns (uint256 usdgPaid) {\n        uint256 amountIn = pendingConversion;\n        if (amountIn == 0) return 0;\n\n        try this.executeConversion(amountIn) returns (uint256 amountOut) {\n            pendingConversion = 0;\n            stockConverted += amountIn;\n            operatorReceived += amountOut;\n            operatorOnDay[currentDay()] += amountOut;\n            emit OperatorPaid(amountIn, amountOut);\n            return amountOut;\n        } catch {\n            emit ConversionDeferred(amountIn);\n            return 0;\n        }\n    }\n\n    /// @notice External only so the caller above can `try`/`catch` it. Not callable by anyone else.\n    function executeConversion(uint256 amountIn) external returns (uint256 amountOut) {\n        if (msg.sender != address(this)) revert OnlySelf();\n        amountOut = abi.decode(poolManager.unlock(abi.encode(amountIn)), (uint256));\n        if (amountOut == 0) revert ConversionReturnedNothing();\n        usdg.safeTransfer(feeRecipient, amountOut);\n    }\n\n    /// @inheritdoc IUnlockCallback\n    function unlockCallback(bytes calldata data) external returns (bytes memory) {\n        if (msg.sender != address(poolManager)) revert NotPoolManager();\n        uint256 amountIn = abi.decode(data, (uint256));\n\n        PoolKey memory key = corePoolKey();\n        bool zeroForOne = Currency.unwrap(key.currency0) == address(tokenizedStock);\n\n        BalanceDelta delta = poolManager.swap(\n            key,\n            SwapParams({\n                zeroForOne: zeroForOne,\n                amountSpecified: -int256(amountIn),\n                sqrtPriceLimitX96: zeroForOne ? TickMath.MIN_SQRT_PRICE + 1 : TickMath.MAX_SQRT_PRICE - 1\n            }),\n            \"\"\n        );\n\n        Currency stockCurrency = zeroForOne ? key.currency0 : key.currency1;\n        Currency usdgCurrency = zeroForOne ? key.currency1 : key.currency0;\n        int128 stockDelta = zeroForOne ? delta.amount0() : delta.amount1();\n        int128 usdgDelta = zeroForOne ? delta.amount1() : delta.amount0();\n\n        uint256 owed = uint256(uint128(-stockDelta));\n        poolManager.sync(stockCurrency);\n        tokenizedStock.safeTransfer(address(poolManager), owed);\n        poolManager.settle();\n\n        uint256 received = uint256(uint128(usdgDelta));\n        poolManager.take(usdgCurrency, address(this), received);\n\n        return abi.encode(received);\n    }\n\n    // -------------------------------------------------------------------------\n    // Views\n    // -------------------------------------------------------------------------\n\n    function pendingFees(address token) external view returns (uint256) {\n        return _pending[token];\n    }\n\n    function feeTokenCount() external view returns (uint256) {\n        return _feeTokens.length;\n    }\n\n    function feeTokens() external view returns (address[] memory) {\n        return _feeTokens;\n    }\n\n    function feeTokenAt(uint256 index) external view returns (address) {\n        return _feeTokens[index];\n    }\n\n    /// @notice Stock sitting here undistributed, across every token plus the conversion queue.\n    function totalPending() external view returns (uint256) {\n        return totalCollected - totalDistributed + pendingConversion;\n    }\n\n    function dailyRevenue() external view returns (uint256) {\n        return collectedOnDay[currentDay()];\n    }\n}\n"},"src/interfaces/IFeeCollector.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @notice Sink for protocol fees skimmed by the LaunchpadHook, and the 50/30/20 splitter.\ninterface IFeeCollector {\n    /// @notice Deposit `amount` of TokenizedStock and attribute it to `token`.\n    /// @dev Permissionless by design: the caller must actually transfer the stock in,\n    ///      so there is nothing to gain by calling it. This is what lets the hook push\n    ///      fees without the FeeCollector needing to trust (or even know) the hook,\n    ///      which keeps the deployment graph acyclic.\n    function recordFee(address token, uint256 amount) external;\n\n    function pendingFees(address token) external view returns (uint256);\n\n    function totalCollected() external view returns (uint256);\n\n    function totalDistributed() external view returns (uint256);\n\n    /// @notice Cumulative stock paid out to shareholders as dividends.\n    function totalDividends() external view returns (uint256);\n\n    /// @notice Cumulative stock sold to pay the operator.\n    function stockConverted() external view returns (uint256);\n\n    /// @notice Cumulative USDG delivered to the operator.\n    function operatorReceived() external view returns (uint256);\n\n    /// @notice Operator-earmarked stock waiting on conversion-pool liquidity.\n    function pendingConversion() external view returns (uint256);\n\n    function collectedOnDay(uint256 day) external view returns (uint256);\n\n    function distributedOnDay(uint256 day) external view returns (uint256);\n\n    function dividendsOnDay(uint256 day) external view returns (uint256);\n\n    function operatorOnDay(uint256 day) external view returns (uint256);\n\n    function feeTokenCount() external view returns (uint256);\n}\n"},"src/interfaces/ILaunchpadToken.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/// @notice The minimal ERC-20 the LaunchpadFactory clones for every launch, and the dividend\n///         ledger for that token's own holders.\ninterface ILaunchpadToken {\n    /// @notice The address that called `createToken` / `createTokenWithBlink`.\n    function creator() external view returns (address);\n\n    /// @notice Pay `amount` of the dividend token in, shared pro rata among holders.\n    /// @dev Reverts while the circulating supply is still below `MIN_ELIGIBLE_SUPPLY` — i.e.\n    ///      before anyone actually holds the token. Callers should treat that as \"retry later\".\n    function distributeDividends(uint256 amount) external;\n\n    /// @notice Circulating supply that accrues dividends. Excludes the v4 PoolManager.\n    function dividendEligibleSupply() external view returns (uint256);\n\n    function totalDividendsDistributed() external view returns (uint256);\n\n    function totalDividendsClaimed() external view returns (uint256);\n\n    function totalDividendsSwept() external view returns (uint256);\n\n    function withdrawableDividendOf(address account) external view returns (uint256);\n\n    function claim() external returns (uint256 amount);\n\n    function claimFor(address account) external returns (uint256 amount);\n\n    /// @notice Unix timestamp at which the blink window ends. 0 if the token never had one.\n    function blinkEnd() external view returns (uint64);\n\n    function blinkActive() external view returns (bool);\n\n    function whitelistedApps() external view returns (address[] memory);\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"./PoolKey.sol\";\n\ntype PoolId is bytes32;\n\n/// @notice Library for computing the ID of a pool\nlibrary PoolIdLibrary {\n    /// @notice Returns value equal to keccak256(abi.encode(poolKey))\n    function toId(PoolKey memory poolKey) internal pure returns (PoolId poolId) {\n        assembly (\"memory-safe\") {\n            // 0xa0 represents the total size of the poolKey struct (5 slots of 32 bytes)\n            poolId := keccak256(poolKey, 0xa0)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"./Currency.sol\";\nimport {IHooks} from \"../interfaces/IHooks.sol\";\nimport {PoolIdLibrary} from \"./PoolId.sol\";\n\nusing PoolIdLibrary for PoolKey global;\n\n/// @notice Returns the key for identifying a pool\nstruct PoolKey {\n    /// @notice The lower currency of the pool, sorted numerically\n    Currency currency0;\n    /// @notice The higher currency of the pool, sorted numerically\n    Currency currency1;\n    /// @notice The pool LP fee, capped at 1_000_000. If the highest bit is 1, the pool has a dynamic fee and must be exactly equal to 0x800000\n    uint24 fee;\n    /// @notice Ticks that involve positions must be a multiple of tick spacing\n    int24 tickSpacing;\n    /// @notice The hooks of the pool\n    IHooks hooks;\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IERC20Minimal} from \"../interfaces/external/IERC20Minimal.sol\";\nimport {CustomRevert} from \"../libraries/CustomRevert.sol\";\n\ntype Currency is address;\n\nusing {greaterThan as >, lessThan as <, greaterThanOrEqualTo as >=, equals as ==} for Currency global;\nusing CurrencyLibrary for Currency global;\n\nfunction equals(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) == Currency.unwrap(other);\n}\n\nfunction greaterThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) > Currency.unwrap(other);\n}\n\nfunction lessThan(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) < Currency.unwrap(other);\n}\n\nfunction greaterThanOrEqualTo(Currency currency, Currency other) pure returns (bool) {\n    return Currency.unwrap(currency) >= Currency.unwrap(other);\n}\n\n/// @title CurrencyLibrary\n/// @dev This library allows for transferring and holding native tokens and ERC20 tokens\nlibrary CurrencyLibrary {\n    /// @notice Additional context for ERC-7751 wrapped error when a native transfer fails\n    error NativeTransferFailed();\n\n    /// @notice Additional context for ERC-7751 wrapped error when an ERC20 transfer fails\n    error ERC20TransferFailed();\n\n    /// @notice A constant to represent the native currency\n    Currency public constant ADDRESS_ZERO = Currency.wrap(address(0));\n\n    function transfer(Currency currency, address to, uint256 amount) internal {\n        // altered from https://github.com/transmissions11/solmate/blob/44a9963d4c78111f77caa0e65d677b8b46d6f2e6/src/utils/SafeTransferLib.sol\n        // modified custom error selectors\n\n        bool success;\n        if (currency.isAddressZero()) {\n            assembly (\"memory-safe\") {\n                // Transfer the ETH and revert if it fails.\n                success := call(gas(), to, amount, 0, 0, 0, 0)\n            }\n            // revert with NativeTransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(to, bytes4(0), NativeTransferFailed.selector);\n            }\n        } else {\n            assembly (\"memory-safe\") {\n                // Get a pointer to some free memory.\n                let fmp := mload(0x40)\n\n                // Write the abi-encoded calldata into memory, beginning with the function selector.\n                mstore(fmp, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)\n                mstore(add(fmp, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the \"to\" argument.\n                mstore(add(fmp, 36), amount) // Append the \"amount\" argument. Masking not required as it's a full 32 byte type.\n\n                success :=\n                    and(\n                        // Set success to whether the call reverted, if not we check it either\n                        // returned exactly 1 (can't just be non-zero data), or had no return data.\n                        or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),\n                        // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.\n                        // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.\n                        // Counterintuitively, this call must be positioned second to the or() call in the\n                        // surrounding and() call or else returndatasize() will be zero during the computation.\n                        call(gas(), currency, 0, fmp, 68, 0, 32)\n                    )\n\n                // Now clean the memory we used\n                mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `to` were stored here\n                mstore(add(fmp, 0x20), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here\n                mstore(add(fmp, 0x40), 0) // 4 bytes of `amount` were stored here\n            }\n            // revert with ERC20TransferFailed, containing the bubbled up error as an argument\n            if (!success) {\n                CustomRevert.bubbleUpAndRevertWith(\n                    Currency.unwrap(currency), IERC20Minimal.transfer.selector, ERC20TransferFailed.selector\n                );\n            }\n        }\n    }\n\n    function balanceOfSelf(Currency currency) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return address(this).balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(address(this));\n        }\n    }\n\n    function balanceOf(Currency currency, address owner) internal view returns (uint256) {\n        if (currency.isAddressZero()) {\n            return owner.balance;\n        } else {\n            return IERC20Minimal(Currency.unwrap(currency)).balanceOf(owner);\n        }\n    }\n\n    function isAddressZero(Currency currency) internal pure returns (bool) {\n        return Currency.unwrap(currency) == Currency.unwrap(ADDRESS_ZERO);\n    }\n\n    function toId(Currency currency) internal pure returns (uint256) {\n        return uint160(Currency.unwrap(currency));\n    }\n\n    // If the upper 12 bytes are non-zero, they will be zero-ed out\n    // Therefore, fromId() and toId() are not inverses of each other\n    function fromId(uint256 id) internal pure returns (Currency) {\n        return Currency.wrap(address(uint160(id)));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\nimport {BeforeSwapDelta} from \"../types/BeforeSwapDelta.sol\";\n\n/// @notice V4 decides whether to invoke specific hooks by inspecting the least significant bits\n/// of the address that the hooks contract is deployed to.\n/// For example, a hooks contract deployed to address: 0x0000000000000000000000000000000000002400\n/// has the lowest bits '10 0100 0000 0000' which would cause the 'before initialize' and 'after add liquidity' hooks to be used.\n/// See the Hooks library for the full spec.\n/// @dev Should only be callable by the v4 PoolManager.\ninterface IHooks {\n    /// @notice The hook called before the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @return bytes4 The function selector for the hook\n    function beforeInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96) external returns (bytes4);\n\n    /// @notice The hook called after the state of a pool is initialized\n    /// @param sender The initial msg.sender for the initialize call\n    /// @param key The key for the pool being initialized\n    /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n    /// @param tick The current tick after the state of a pool is initialized\n    /// @return bytes4 The function selector for the hook\n    function afterInitialize(address sender, PoolKey calldata key, uint160 sqrtPriceX96, int24 tick)\n        external\n        returns (bytes4);\n\n    /// @notice The hook called before liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is added\n    /// @param sender The initial msg.sender for the add liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for adding liquidity\n    /// @param delta The caller's balance delta after adding liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterAddLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after liquidity is removed\n    /// @param sender The initial msg.sender for the remove liquidity call\n    /// @param key The key for the pool\n    /// @param params The parameters for removing liquidity\n    /// @param delta The caller's balance delta after removing liquidity; the sum of principal delta, fees accrued, and hook delta\n    /// @param feesAccrued The fees accrued since the last time fees were collected from this position\n    /// @param hookData Arbitrary data handed into the PoolManager by the liquidity provider to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BalanceDelta The hook's delta in token0 and token1. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterRemoveLiquidity(\n        address sender,\n        PoolKey calldata key,\n        ModifyLiquidityParams calldata params,\n        BalanceDelta delta,\n        BalanceDelta feesAccrued,\n        bytes calldata hookData\n    ) external returns (bytes4, BalanceDelta);\n\n    /// @notice The hook called before a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return BeforeSwapDelta The hook's delta in specified and unspecified currencies. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    /// @return uint24 Optionally override the lp fee, only used if three conditions are met: 1. the Pool has a dynamic fee, 2. the value's 2nd highest bit is set (23rd bit, 0x400000), and 3. the value is less than or equal to the maximum fee (1 million)\n    function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata hookData)\n        external\n        returns (bytes4, BeforeSwapDelta, uint24);\n\n    /// @notice The hook called after a swap\n    /// @param sender The initial msg.sender for the swap call\n    /// @param key The key for the pool\n    /// @param params The parameters for the swap\n    /// @param delta The amount owed to the caller (positive) or owed to the pool (negative)\n    /// @param hookData Arbitrary data handed into the PoolManager by the swapper to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    /// @return int128 The hook's delta in unspecified currency. Positive: the hook is owed/took currency, negative: the hook owes/sent currency\n    function afterSwap(\n        address sender,\n        PoolKey calldata key,\n        SwapParams calldata params,\n        BalanceDelta delta,\n        bytes calldata hookData\n    ) external returns (bytes4, int128);\n\n    /// @notice The hook called before donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function beforeDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n\n    /// @notice The hook called after donate\n    /// @param sender The initial msg.sender for the donate call\n    /// @param key The key for the pool\n    /// @param amount0 The amount of token0 being donated\n    /// @param amount1 The amount of token1 being donated\n    /// @param hookData Arbitrary data handed into the PoolManager by the donor to be be passed on to the hook\n    /// @return bytes4 The function selector for the hook\n    function afterDonate(\n        address sender,\n        PoolKey calldata key,\n        uint256 amount0,\n        uint256 amount1,\n        bytes calldata hookData\n    ) external returns (bytes4);\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title BitMath\n/// @dev This library provides functionality for computing bit properties of an unsigned integer\n/// @author Solady (https://github.com/Vectorized/solady/blob/8200a70e8dc2a77ecb074fc2e99a2a0d36547522/src/utils/LibBit.sol)\nlibrary BitMath {\n    /// @notice Returns the index of the most significant bit of the number,\n    ///     where the least significant bit is at index 0 and the most significant bit is at index 255\n    /// @param x the value for which to compute the most significant bit, must be greater than 0\n    /// @return r the index of the most significant bit\n    function mostSignificantBit(uint256 x) internal pure returns (uint8 r) {\n        require(x > 0);\n\n        assembly (\"memory-safe\") {\n            r := shl(7, lt(0xffffffffffffffffffffffffffffffff, x))\n            r := or(r, shl(6, lt(0xffffffffffffffff, shr(r, x))))\n            r := or(r, shl(5, lt(0xffffffff, shr(r, x))))\n            r := or(r, shl(4, lt(0xffff, shr(r, x))))\n            r := or(r, shl(3, lt(0xff, shr(r, x))))\n            // forgefmt: disable-next-item\n            r := or(r, byte(and(0x1f, shr(shr(r, x), 0x8421084210842108cc6318c6db6d54be)),\n                0x0706060506020500060203020504000106050205030304010505030400000000))\n        }\n    }\n\n    /// @notice Returns the index of the least significant bit of the number,\n    ///     where the least significant bit is at index 0 and the most significant bit is at index 255\n    /// @param x the value for which to compute the least significant bit, must be greater than 0\n    /// @return r the index of the least significant bit\n    function leastSignificantBit(uint256 x) internal pure returns (uint8 r) {\n        require(x > 0);\n\n        assembly (\"memory-safe\") {\n            // Isolate the least significant bit.\n            x := and(x, sub(0, x))\n            // For the upper 3 bits of the result, use a De Bruijn-like lookup.\n            // Credit to adhusson: https://blog.adhusson.com/cheap-find-first-set-evm/\n            // forgefmt: disable-next-item\n            r := shl(5, shr(252, shl(shl(2, shr(250, mul(x,\n                0xb6db6db6ddddddddd34d34d349249249210842108c6318c639ce739cffffffff))),\n                0x8040405543005266443200005020610674053026020000107506200176117077)))\n            // For the lower 5 bits of the result, use a De Bruijn lookup.\n            // forgefmt: disable-next-item\n            r := or(r, byte(and(div(0xd76453e0, shr(r, x)), 0x1f),\n                0x001f0d1e100c1d070f090b19131c1706010e11080a1a141802121b1503160405))\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Safe casting methods\n/// @notice Contains methods for safely casting between types\nlibrary SafeCast {\n    using CustomRevert for bytes4;\n\n    error SafeCastOverflow();\n\n    /// @notice Cast a uint256 to a uint160, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint160\n    function toUint160(uint256 x) internal pure returns (uint160 y) {\n        y = uint160(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a uint128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return y The downcasted integer, now type uint128\n    function toUint128(uint256 x) internal pure returns (uint128 y) {\n        y = uint128(x);\n        if (x != y) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a int128 to a uint128, revert on overflow or underflow\n    /// @param x The int128 to be casted\n    /// @return y The casted integer, now type uint128\n    function toUint128(int128 x) internal pure returns (uint128 y) {\n        if (x < 0) SafeCastOverflow.selector.revertWith();\n        y = uint128(x);\n    }\n\n    /// @notice Cast a int256 to a int128, revert on overflow or underflow\n    /// @param x The int256 to be downcasted\n    /// @return y The downcasted integer, now type int128\n    function toInt128(int256 x) internal pure returns (int128 y) {\n        y = int128(x);\n        if (y != x) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int256, revert on overflow\n    /// @param x The uint256 to be casted\n    /// @return y The casted integer, now type int256\n    function toInt256(uint256 x) internal pure returns (int256 y) {\n        y = int256(x);\n        if (y < 0) SafeCastOverflow.selector.revertWith();\n    }\n\n    /// @notice Cast a uint256 to a int128, revert on overflow\n    /// @param x The uint256 to be downcasted\n    /// @return The downcasted integer, now type int128\n    function toInt128(uint256 x) internal pure returns (int128) {\n        if (x >= 1 << 127) SafeCastOverflow.selector.revertWith();\n        return int128(int256(x));\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {BitMath} from \"./BitMath.sol\";\nimport {CustomRevert} from \"./CustomRevert.sol\";\n\n/// @title Math library for computing sqrt prices from ticks and vice versa\n/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports\n/// prices between 2**-128 and 2**128\nlibrary TickMath {\n    using CustomRevert for bytes4;\n\n    /// @notice Thrown when the tick passed to #getSqrtPriceAtTick is not between MIN_TICK and MAX_TICK\n    error InvalidTick(int24 tick);\n    /// @notice Thrown when the price passed to #getTickAtSqrtPrice does not correspond to a price between MIN_TICK and MAX_TICK\n    error InvalidSqrtPrice(uint160 sqrtPriceX96);\n\n    /// @dev The minimum tick that may be passed to #getSqrtPriceAtTick computed from log base 1.0001 of 2**-128\n    /// @dev If ever MIN_TICK and MAX_TICK are not centered around 0, the absTick logic in getSqrtPriceAtTick cannot be used\n    int24 internal constant MIN_TICK = -887272;\n    /// @dev The maximum tick that may be passed to #getSqrtPriceAtTick computed from log base 1.0001 of 2**128\n    /// @dev If ever MIN_TICK and MAX_TICK are not centered around 0, the absTick logic in getSqrtPriceAtTick cannot be used\n    int24 internal constant MAX_TICK = 887272;\n\n    /// @dev The minimum tick spacing value drawn from the range of type int16 that is greater than 0, i.e. min from the range [1, 32767]\n    int24 internal constant MIN_TICK_SPACING = 1;\n    /// @dev The maximum tick spacing value drawn from the range of type int16, i.e. max from the range [1, 32767]\n    int24 internal constant MAX_TICK_SPACING = type(int16).max;\n\n    /// @dev The minimum value that can be returned from #getSqrtPriceAtTick. Equivalent to getSqrtPriceAtTick(MIN_TICK)\n    uint160 internal constant MIN_SQRT_PRICE = 4295128739;\n    /// @dev The maximum value that can be returned from #getSqrtPriceAtTick. Equivalent to getSqrtPriceAtTick(MAX_TICK)\n    uint160 internal constant MAX_SQRT_PRICE = 1461446703485210103287273052203988822378723970342;\n    /// @dev A threshold used for optimized bounds check, equals `MAX_SQRT_PRICE - MIN_SQRT_PRICE - 1`\n    uint160 internal constant MAX_SQRT_PRICE_MINUS_MIN_SQRT_PRICE_MINUS_ONE =\n        1461446703485210103287273052203988822378723970342 - 4295128739 - 1;\n\n    /// @notice Given a tickSpacing, compute the maximum usable tick\n    function maxUsableTick(int24 tickSpacing) internal pure returns (int24) {\n        unchecked {\n            return (MAX_TICK / tickSpacing) * tickSpacing;\n        }\n    }\n\n    /// @notice Given a tickSpacing, compute the minimum usable tick\n    function minUsableTick(int24 tickSpacing) internal pure returns (int24) {\n        unchecked {\n            return (MIN_TICK / tickSpacing) * tickSpacing;\n        }\n    }\n\n    /// @notice Calculates sqrt(1.0001^tick) * 2^96\n    /// @dev Throws if |tick| > max tick\n    /// @param tick The input tick for the above formula\n    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the price of the two assets (currency1/currency0)\n    /// at the given tick\n    function getSqrtPriceAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {\n        unchecked {\n            uint256 absTick;\n            assembly (\"memory-safe\") {\n                tick := signextend(2, tick)\n                // mask = 0 if tick >= 0 else -1 (all 1s)\n                let mask := sar(255, tick)\n                // if tick >= 0, |tick| = tick = 0 ^ tick\n                // if tick < 0, |tick| = ~~|tick| = ~(-|tick| - 1) = ~(tick - 1) = (-1) ^ (tick - 1)\n                // either way, |tick| = mask ^ (tick + mask)\n                absTick := xor(mask, add(mask, tick))\n            }\n\n            if (absTick > uint256(int256(MAX_TICK))) InvalidTick.selector.revertWith(tick);\n\n            // The tick is decomposed into bits, and for each bit with index i that is set, the product of 1/sqrt(1.0001^(2^i))\n            // is calculated (using Q128.128). The constants used for this calculation are rounded to the nearest integer\n\n            // Equivalent to:\n            //     price = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000;\n            //     or price = int(2**128 / sqrt(1.0001)) if (absTick & 0x1) else 1 << 128\n            uint256 price;\n            assembly (\"memory-safe\") {\n                price := xor(shl(128, 1), mul(xor(shl(128, 1), 0xfffcb933bd6fad37aa2d162d1a594001), and(absTick, 0x1)))\n            }\n            if (absTick & 0x2 != 0) price = (price * 0xfff97272373d413259a46990580e213a) >> 128;\n            if (absTick & 0x4 != 0) price = (price * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;\n            if (absTick & 0x8 != 0) price = (price * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;\n            if (absTick & 0x10 != 0) price = (price * 0xffcb9843d60f6159c9db58835c926644) >> 128;\n            if (absTick & 0x20 != 0) price = (price * 0xff973b41fa98c081472e6896dfb254c0) >> 128;\n            if (absTick & 0x40 != 0) price = (price * 0xff2ea16466c96a3843ec78b326b52861) >> 128;\n            if (absTick & 0x80 != 0) price = (price * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;\n            if (absTick & 0x100 != 0) price = (price * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;\n            if (absTick & 0x200 != 0) price = (price * 0xf987a7253ac413176f2b074cf7815e54) >> 128;\n            if (absTick & 0x400 != 0) price = (price * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;\n            if (absTick & 0x800 != 0) price = (price * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;\n            if (absTick & 0x1000 != 0) price = (price * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;\n            if (absTick & 0x2000 != 0) price = (price * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;\n            if (absTick & 0x4000 != 0) price = (price * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;\n            if (absTick & 0x8000 != 0) price = (price * 0x31be135f97d08fd981231505542fcfa6) >> 128;\n            if (absTick & 0x10000 != 0) price = (price * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;\n            if (absTick & 0x20000 != 0) price = (price * 0x5d6af8dedb81196699c329225ee604) >> 128;\n            if (absTick & 0x40000 != 0) price = (price * 0x2216e584f5fa1ea926041bedfe98) >> 128;\n            if (absTick & 0x80000 != 0) price = (price * 0x48a170391f7dc42444e8fa2) >> 128;\n\n            assembly (\"memory-safe\") {\n                // if (tick > 0) price = type(uint256).max / price;\n                if sgt(tick, 0) { price := div(not(0), price) }\n\n                // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.\n                // we then downcast because we know the result always fits within 160 bits due to our tick input constraint\n                // we round up in the division so getTickAtSqrtPrice of the output price is always consistent\n                // `sub(shl(32, 1), 1)` is `type(uint32).max`\n                // `price + type(uint32).max` will not overflow because `price` fits in 192 bits\n                sqrtPriceX96 := shr(32, add(price, sub(shl(32, 1), 1)))\n            }\n        }\n    }\n\n    /// @notice Calculates the greatest tick value such that getSqrtPriceAtTick(tick) <= sqrtPriceX96\n    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_PRICE, as MIN_SQRT_PRICE is the lowest value getSqrtPriceAtTick may\n    /// ever return.\n    /// @param sqrtPriceX96 The sqrt price for which to compute the tick as a Q64.96\n    /// @return tick The greatest tick for which the getSqrtPriceAtTick(tick) is less than or equal to the input sqrtPriceX96\n    function getTickAtSqrtPrice(uint160 sqrtPriceX96) internal pure returns (int24 tick) {\n        unchecked {\n            // Equivalent: if (sqrtPriceX96 < MIN_SQRT_PRICE || sqrtPriceX96 >= MAX_SQRT_PRICE) revert InvalidSqrtPrice();\n            // second inequality must be >= because the price can never reach the price at the max tick\n            // if sqrtPriceX96 < MIN_SQRT_PRICE, the `sub` underflows and `gt` is true\n            // if sqrtPriceX96 >= MAX_SQRT_PRICE, sqrtPriceX96 - MIN_SQRT_PRICE > MAX_SQRT_PRICE - MIN_SQRT_PRICE - 1\n            if ((sqrtPriceX96 - MIN_SQRT_PRICE) > MAX_SQRT_PRICE_MINUS_MIN_SQRT_PRICE_MINUS_ONE) {\n                InvalidSqrtPrice.selector.revertWith(sqrtPriceX96);\n            }\n\n            uint256 price = uint256(sqrtPriceX96) << 32;\n\n            uint256 r = price;\n            uint256 msb = BitMath.mostSignificantBit(r);\n\n            if (msb >= 128) r = price >> (msb - 127);\n            else r = price << (127 - msb);\n\n            int256 log_2 = (int256(msb) - 128) << 64;\n\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(63, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(62, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(61, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(60, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(59, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(58, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(57, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(56, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(55, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(54, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(53, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(52, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(51, f))\n                r := shr(f, r)\n            }\n            assembly (\"memory-safe\") {\n                r := shr(127, mul(r, r))\n                let f := shr(128, r)\n                log_2 := or(log_2, shl(50, f))\n            }\n\n            int256 log_sqrt10001 = log_2 * 255738958999603826347141; // Q22.128 number\n\n            // Magic number represents the ceiling of the maximum value of the error when approximating log_sqrt10001(x)\n            int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);\n\n            // Magic number represents the minimum value of the error when approximating log_sqrt10001(x), when\n            // sqrtPrice is from the range (2^-64, 2^64). This is safe as MIN_SQRT_PRICE is more than 2^-64. If MIN_SQRT_PRICE\n            // is changed, this may need to be changed too\n            int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);\n\n            tick = tickLow == tickHi ? tickLow : getSqrtPriceAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {SafeCast} from \"../libraries/SafeCast.sol\";\n\n/// @dev Two `int128` values packed into a single `int256` where the upper 128 bits represent the amount0\n/// and the lower 128 bits represent the amount1.\ntype BalanceDelta is int256;\n\nusing {add as +, sub as -, eq as ==, neq as !=} for BalanceDelta global;\nusing BalanceDeltaLibrary for BalanceDelta global;\nusing SafeCast for int256;\n\nfunction toBalanceDelta(int128 _amount0, int128 _amount1) pure returns (BalanceDelta balanceDelta) {\n    assembly (\"memory-safe\") {\n        balanceDelta := or(shl(128, _amount0), and(sub(shl(128, 1), 1), _amount1))\n    }\n}\n\nfunction add(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := add(a0, b0)\n        res1 := add(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction sub(BalanceDelta a, BalanceDelta b) pure returns (BalanceDelta) {\n    int256 res0;\n    int256 res1;\n    assembly (\"memory-safe\") {\n        let a0 := sar(128, a)\n        let a1 := signextend(15, a)\n        let b0 := sar(128, b)\n        let b1 := signextend(15, b)\n        res0 := sub(a0, b0)\n        res1 := sub(a1, b1)\n    }\n    return toBalanceDelta(res0.toInt128(), res1.toInt128());\n}\n\nfunction eq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) == BalanceDelta.unwrap(b);\n}\n\nfunction neq(BalanceDelta a, BalanceDelta b) pure returns (bool) {\n    return BalanceDelta.unwrap(a) != BalanceDelta.unwrap(b);\n}\n\n/// @notice Library for getting the amount0 and amount1 deltas from the BalanceDelta type\nlibrary BalanceDeltaLibrary {\n    /// @notice A BalanceDelta of 0\n    BalanceDelta public constant ZERO_DELTA = BalanceDelta.wrap(0);\n\n    function amount0(BalanceDelta balanceDelta) internal pure returns (int128 _amount0) {\n        assembly (\"memory-safe\") {\n            _amount0 := sar(128, balanceDelta)\n        }\n    }\n\n    function amount1(BalanceDelta balanceDelta) internal pure returns (int128 _amount1) {\n        assembly (\"memory-safe\") {\n            _amount1 := signextend(15, balanceDelta)\n        }\n    }\n}\n"},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\n\n/// @notice Parameter struct for `ModifyLiquidity` pool operations\nstruct ModifyLiquidityParams {\n    // the lower and upper tick of the position\n    int24 tickLower;\n    int24 tickUpper;\n    // how to modify the liquidity\n    int256 liquidityDelta;\n    // a value to set if you want unique liquidity positions at the same range\n    bytes32 salt;\n}\n\n/// @notice Parameter struct for `Swap` pool operations\nstruct SwapParams {\n    /// Whether to swap token0 for token1 or vice versa\n    bool zeroForOne;\n    /// The desired input amount if negative (exactIn), or the desired output amount if positive (exactOut)\n    int256 amountSpecified;\n    /// The sqrt price at which, if reached, the swap will stop executing\n    uint160 sqrtPriceLimitX96;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for functions to access any storage slot in a contract\ninterface IExtsload {\n    /// @notice Called by external contracts to access granular pool state\n    /// @param slot Key of slot to sload\n    /// @return value The value of the slot as bytes32\n    function extsload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access granular pool state\n    /// @param startSlot Key of slot to start sloading from\n    /// @param nSlots Number of slots to load into return value\n    /// @return values List of loaded values.\n    function extsload(bytes32 startSlot, uint256 nSlots) external view returns (bytes32[] memory values);\n\n    /// @notice Called by external contracts to access sparse pool state\n    /// @param slots List of slots to SLOAD from.\n    /// @return values List of loaded values.\n    function extsload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\n/// @notice Interface for functions to access any transient storage slot in a contract\ninterface IExttload {\n    /// @notice Called by external contracts to access transient storage of the contract\n    /// @param slot Key of slot to tload\n    /// @return value The value of the slot as bytes32\n    function exttload(bytes32 slot) external view returns (bytes32 value);\n\n    /// @notice Called by external contracts to access sparse transient pool state\n    /// @param slots List of slots to tload\n    /// @return values List of loaded values\n    function exttload(bytes32[] calldata slots) external view returns (bytes32[] memory values);\n}\n"},"lib/openzeppelin-contracts/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"},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// Return type of the beforeSwap hook.\n// Upper 128 bits is the delta in specified tokens. Lower 128 bits is delta in unspecified tokens (to match the afterSwap hook)\ntype BeforeSwapDelta is int256;\n\n// Creates a BeforeSwapDelta from specified and unspecified\nfunction toBeforeSwapDelta(int128 deltaSpecified, int128 deltaUnspecified)\n    pure\n    returns (BeforeSwapDelta beforeSwapDelta)\n{\n    assembly (\"memory-safe\") {\n        beforeSwapDelta := or(shl(128, deltaSpecified), and(sub(shl(128, 1), 1), deltaUnspecified))\n    }\n}\n\n/// @notice Library for getting the specified and unspecified deltas from the BeforeSwapDelta type\nlibrary BeforeSwapDeltaLibrary {\n    /// @notice A BeforeSwapDelta of 0\n    BeforeSwapDelta public constant ZERO_DELTA = BeforeSwapDelta.wrap(0);\n\n    /// extracts int128 from the upper 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap\n    function getSpecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaSpecified) {\n        assembly (\"memory-safe\") {\n            deltaSpecified := sar(128, delta)\n        }\n    }\n\n    /// extracts int128 from the lower 128 bits of the BeforeSwapDelta\n    /// returned by beforeSwap and afterSwap\n    function getUnspecifiedDelta(BeforeSwapDelta delta) internal pure returns (int128 deltaUnspecified) {\n        assembly (\"memory-safe\") {\n            deltaUnspecified := signextend(15, delta)\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/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"},"lib/openzeppelin-contracts/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"},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Library for reverting with custom errors efficiently\n/// @notice Contains functions for reverting with custom errors with different argument types efficiently\n/// @dev To use this library, declare `using CustomRevert for bytes4;` and replace `revert CustomError()` with\n/// `CustomError.selector.revertWith()`\n/// @dev The functions may tamper with the free memory pointer but it is fine since the call context is exited immediately\nlibrary CustomRevert {\n    /// @dev ERC-7751 error for wrapping bubbled up reverts\n    error WrappedError(address target, bytes4 selector, bytes reason, bytes details);\n\n    /// @dev Reverts with the selector of a custom error in the scratch space\n    function revertWith(bytes4 selector) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            revert(0, 0x04)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an address argument in the scratch space\n    function revertWith(bytes4 selector, address addr) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(addr, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with an int24 argument in the scratch space\n    function revertWith(bytes4 selector, int24 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, signextend(2, value))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with a uint160 argument in the scratch space\n    function revertWith(bytes4 selector, uint160 value) internal pure {\n        assembly (\"memory-safe\") {\n            mstore(0, selector)\n            mstore(0x04, and(value, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(0, 0x24)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two int24 arguments\n    function revertWith(bytes4 selector, int24 value1, int24 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), signextend(2, value1))\n            mstore(add(fmp, 0x24), signextend(2, value2))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two uint160 arguments\n    function revertWith(bytes4 selector, uint160 value1, uint160 value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @dev Reverts with a custom error with two address arguments\n    function revertWith(bytes4 selector, address value1, address value2) internal pure {\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(fmp, selector)\n            mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))\n            revert(fmp, 0x44)\n        }\n    }\n\n    /// @notice bubble up the revert message returned by a call and revert with a wrapped ERC-7751 error\n    /// @dev this method can be vulnerable to revert data bombs\n    function bubbleUpAndRevertWith(\n        address revertingContract,\n        bytes4 revertingFunctionSelector,\n        bytes4 additionalContext\n    ) internal pure {\n        bytes4 wrappedErrorSelector = WrappedError.selector;\n        assembly (\"memory-safe\") {\n            // Ensure the size of the revert data is a multiple of 32 bytes\n            let encodedDataSize := mul(div(add(returndatasize(), 31), 32), 32)\n\n            let fmp := mload(0x40)\n\n            // Encode wrapped error selector, address, function selector, offset, additional context, size, revert reason\n            mstore(fmp, wrappedErrorSelector)\n            mstore(add(fmp, 0x04), and(revertingContract, 0xffffffffffffffffffffffffffffffffffffffff))\n            mstore(\n                add(fmp, 0x24),\n                and(revertingFunctionSelector, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            // offset revert reason\n            mstore(add(fmp, 0x44), 0x80)\n            // offset additional context\n            mstore(add(fmp, 0x64), add(0xa0, encodedDataSize))\n            // size revert reason\n            mstore(add(fmp, 0x84), returndatasize())\n            // revert reason\n            returndatacopy(add(fmp, 0xa4), 0, returndatasize())\n            // size additional context\n            mstore(add(fmp, add(0xa4, encodedDataSize)), 0x04)\n            // additional context\n            mstore(\n                add(fmp, add(0xc4, encodedDataSize)),\n                and(additionalContext, 0xffffffff00000000000000000000000000000000000000000000000000000000)\n            )\n            revert(fmp, add(0xe4, encodedDataSize))\n        }\n    }\n}\n"},"lib/openzeppelin-contracts/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"},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\nimport {IHooks} from \"./IHooks.sol\";\nimport {IERC6909Claims} from \"./external/IERC6909Claims.sol\";\nimport {IProtocolFees} from \"./IProtocolFees.sol\";\nimport {BalanceDelta} from \"../types/BalanceDelta.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {IExtsload} from \"./IExtsload.sol\";\nimport {IExttload} from \"./IExttload.sol\";\nimport {ModifyLiquidityParams, SwapParams} from \"../types/PoolOperation.sol\";\n\n/// @notice Interface for the PoolManager\ninterface IPoolManager is IProtocolFees, IERC6909Claims, IExtsload, IExttload {\n    /// @notice Thrown when a currency is not netted out after the contract is unlocked\n    error CurrencyNotSettled();\n\n    /// @notice Thrown when trying to interact with a non-initialized pool\n    error PoolNotInitialized();\n\n    /// @notice Thrown when unlock is called, but the contract is already unlocked\n    error AlreadyUnlocked();\n\n    /// @notice Thrown when a function is called that requires the contract to be unlocked, but it is not\n    error ManagerLocked();\n\n    /// @notice Pools are limited to type(int16).max tickSpacing in #initialize, to prevent overflow\n    error TickSpacingTooLarge(int24 tickSpacing);\n\n    /// @notice Pools must have a positive non-zero tickSpacing passed to #initialize\n    error TickSpacingTooSmall(int24 tickSpacing);\n\n    /// @notice PoolKey must have currencies where address(currency0) < address(currency1)\n    error CurrenciesOutOfOrderOrEqual(address currency0, address currency1);\n\n    /// @notice Thrown when a call to updateDynamicLPFee is made by an address that is not the hook,\n    /// or on a pool that does not have a dynamic swap fee.\n    error UnauthorizedDynamicLPFeeUpdate();\n\n    /// @notice Thrown when trying to swap amount of 0\n    error SwapAmountCannotBeZero();\n\n    ///@notice Thrown when native currency is passed to a non native settlement\n    error NonzeroNativeValue();\n\n    /// @notice Thrown when `clear` is called with an amount that is not exactly equal to the open currency delta.\n    error MustClearExactPositiveDelta();\n\n    /// @notice Emitted when a new pool is initialized\n    /// @param id The abi encoded hash of the pool key struct for the new pool\n    /// @param currency0 The first currency of the pool by address sort order\n    /// @param currency1 The second currency of the pool by address sort order\n    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n    /// @param tickSpacing The minimum number of ticks between initialized ticks\n    /// @param hooks The hooks contract address for the pool, or address(0) if none\n    /// @param sqrtPriceX96 The price of the pool on initialization\n    /// @param tick The initial tick of the pool corresponding to the initialized price\n    event Initialize(\n        PoolId indexed id,\n        Currency indexed currency0,\n        Currency indexed currency1,\n        uint24 fee,\n        int24 tickSpacing,\n        IHooks hooks,\n        uint160 sqrtPriceX96,\n        int24 tick\n    );\n\n    /// @notice Emitted when a liquidity position is modified\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that modified the pool\n    /// @param tickLower The lower tick of the position\n    /// @param tickUpper The upper tick of the position\n    /// @param liquidityDelta The amount of liquidity that was added or removed\n    /// @param salt The extra data to make positions unique\n    event ModifyLiquidity(\n        PoolId indexed id, address indexed sender, int24 tickLower, int24 tickUpper, int256 liquidityDelta, bytes32 salt\n    );\n\n    /// @notice Emitted for swaps between currency0 and currency1\n    /// @param id The abi encoded hash of the pool key struct for the pool that was modified\n    /// @param sender The address that initiated the swap call, and that received the callback\n    /// @param amount0 The delta of the currency0 balance of the pool\n    /// @param amount1 The delta of the currency1 balance of the pool\n    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96\n    /// @param liquidity The liquidity of the pool after the swap\n    /// @param tick The log base 1.0001 of the price of the pool after the swap\n    /// @param fee The swap fee in hundredths of a bip\n    event Swap(\n        PoolId indexed id,\n        address indexed sender,\n        int128 amount0,\n        int128 amount1,\n        uint160 sqrtPriceX96,\n        uint128 liquidity,\n        int24 tick,\n        uint24 fee\n    );\n\n    /// @notice Emitted for donations\n    /// @param id The abi encoded hash of the pool key struct for the pool that was donated to\n    /// @param sender The address that initiated the donate call\n    /// @param amount0 The amount donated in currency0\n    /// @param amount1 The amount donated in currency1\n    event Donate(PoolId indexed id, address indexed sender, uint256 amount0, uint256 amount1);\n\n    /// @notice All interactions on the contract that account deltas require unlocking. A caller that calls `unlock` must implement\n    /// `IUnlockCallback(msg.sender).unlockCallback(data)`, where they interact with the remaining functions on this contract.\n    /// @dev The only functions callable without an unlocking are `initialize` and `updateDynamicLPFee`\n    /// @param data Any data to pass to the callback, via `IUnlockCallback(msg.sender).unlockCallback(data)`\n    /// @return The data returned by the call to `IUnlockCallback(msg.sender).unlockCallback(data)`\n    function unlock(bytes calldata data) external returns (bytes memory);\n\n    /// @notice Initialize the state for a given pool ID\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The pool key for the pool to initialize\n    /// @param sqrtPriceX96 The initial square root price\n    /// @return tick The initial tick of the pool\n    function initialize(PoolKey memory key, uint160 sqrtPriceX96) external returns (int24 tick);\n\n    /// @notice Modify the liquidity for the given pool\n    /// @dev Poke by calling with a zero liquidityDelta\n    /// @param key The pool to modify liquidity in\n    /// @param params The parameters for modifying the liquidity\n    /// @param hookData The data to pass through to the add/removeLiquidity hooks\n    /// @return callerDelta The balance delta of the caller of modifyLiquidity. This is the total of both principal, fee deltas, and hook deltas if applicable\n    /// @return feesAccrued The balance delta of the fees generated in the liquidity range. Returned for informational purposes\n    /// @dev Note that feesAccrued can be artificially inflated by a malicious actor and integrators should be careful using the value\n    /// For pools with a single liquidity position, actors can donate to themselves to inflate feeGrowthGlobal (and consequently feesAccrued)\n    /// atomically donating and collecting fees in the same unlockCallback may make the inflated value more extreme\n    function modifyLiquidity(PoolKey memory key, ModifyLiquidityParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta callerDelta, BalanceDelta feesAccrued);\n\n    /// @notice Swap against the given pool\n    /// @param key The pool to swap in\n    /// @param params The parameters for swapping\n    /// @param hookData The data to pass through to the swap hooks\n    /// @return swapDelta The balance delta of the address swapping\n    /// @dev Swapping on low liquidity pools may cause unexpected swap amounts when liquidity available is less than amountSpecified.\n    /// Additionally note that if interacting with hooks that have the BEFORE_SWAP_RETURNS_DELTA_FLAG or AFTER_SWAP_RETURNS_DELTA_FLAG\n    /// the hook may alter the swap input/output. Integrators should perform checks on the returned swapDelta.\n    function swap(PoolKey memory key, SwapParams memory params, bytes calldata hookData)\n        external\n        returns (BalanceDelta swapDelta);\n\n    /// @notice Donate the given currency amounts to the in-range liquidity providers of a pool\n    /// @dev Calls to donate can be frontrun adding just-in-time liquidity, with the aim of receiving a portion donated funds.\n    /// Donors should keep this in mind when designing donation mechanisms.\n    /// @dev This function donates to in-range LPs at slot0.tick. In certain edge-cases of the swap algorithm, the `sqrtPrice` of\n    /// a pool can be at the lower boundary of tick `n`, but the `slot0.tick` of the pool is already `n - 1`. In this case a call to\n    /// `donate` would donate to tick `n - 1` (slot0.tick) not tick `n` (getTickAtSqrtPrice(slot0.sqrtPriceX96)).\n    /// Read the comments in `Pool.swap()` for more information about this.\n    /// @param key The key of the pool to donate to\n    /// @param amount0 The amount of currency0 to donate\n    /// @param amount1 The amount of currency1 to donate\n    /// @param hookData The data to pass through to the donate hooks\n    /// @return BalanceDelta The delta of the caller after the donate\n    function donate(PoolKey memory key, uint256 amount0, uint256 amount1, bytes calldata hookData)\n        external\n        returns (BalanceDelta);\n\n    /// @notice Writes the current ERC20 balance of the specified currency to transient storage\n    /// This is used to checkpoint balances for the manager and derive deltas for the caller.\n    /// @dev This MUST be called before any ERC20 tokens are sent into the contract, but can be skipped\n    /// for native tokens because the amount to settle is determined by the sent value.\n    /// However, if an ERC20 token has been synced and not settled, and the caller instead wants to settle\n    /// native funds, this function can be called with the native currency to then be able to settle the native currency\n    function sync(Currency currency) external;\n\n    /// @notice Called by the user to net out some value owed to the user\n    /// @dev Will revert if the requested amount is not available, consider using `mint` instead\n    /// @dev Can also be used as a mechanism for free flash loans\n    /// @param currency The currency to withdraw from the pool manager\n    /// @param to The address to withdraw to\n    /// @param amount The amount of currency to withdraw\n    function take(Currency currency, address to, uint256 amount) external;\n\n    /// @notice Called by the user to pay what is owed\n    /// @return paid The amount of currency settled\n    function settle() external payable returns (uint256 paid);\n\n    /// @notice Called by the user to pay on behalf of another address\n    /// @param recipient The address to credit for the payment\n    /// @return paid The amount of currency settled\n    function settleFor(address recipient) external payable returns (uint256 paid);\n\n    /// @notice WARNING - Any currency that is cleared, will be non-retrievable, and locked in the contract permanently.\n    /// A call to clear will zero out a positive balance WITHOUT a corresponding transfer.\n    /// @dev This could be used to clear a balance that is considered dust.\n    /// Additionally, the amount must be the exact positive balance. This is to enforce that the caller is aware of the amount being cleared.\n    function clear(Currency currency, uint256 amount) external;\n\n    /// @notice Called by the user to move value into ERC6909 balance\n    /// @param to The address to mint the tokens to\n    /// @param id The currency address to mint to ERC6909s, as a uint256\n    /// @param amount The amount of currency to mint\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function mint(address to, uint256 id, uint256 amount) external;\n\n    /// @notice Called by the user to move value from ERC6909 balance\n    /// @param from The address to burn the tokens from\n    /// @param id The currency address to burn from ERC6909s, as a uint256\n    /// @param amount The amount of currency to burn\n    /// @dev The id is converted to a uint160 to correspond to a currency address\n    /// If the upper 12 bytes are not 0, they will be 0-ed out\n    function burn(address from, uint256 id, uint256 amount) external;\n\n    /// @notice Updates the pools lp fees for the a pool that has enabled dynamic lp fees.\n    /// @dev A swap fee totaling MAX_SWAP_FEE (100%) makes exact output swaps impossible since the input is entirely consumed by the fee\n    /// @param key The key of the pool to update dynamic LP fees for\n    /// @param newDynamicLPFee The new dynamic pool LP fee\n    function updateDynamicLPFee(PoolKey memory key, uint24 newDynamicLPFee) external;\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"../types/Currency.sol\";\nimport {PoolId} from \"../types/PoolId.sol\";\nimport {PoolKey} from \"../types/PoolKey.sol\";\n\n/// @notice Interface for all protocol-fee related functions in the pool manager\ninterface IProtocolFees {\n    /// @notice Thrown when protocol fee is set too high\n    error ProtocolFeeTooLarge(uint24 fee);\n\n    /// @notice Thrown when collectProtocolFees or setProtocolFee is not called by the controller.\n    error InvalidCaller();\n\n    /// @notice Thrown when collectProtocolFees is attempted on a token that is synced.\n    error ProtocolFeeCurrencySynced();\n\n    /// @notice Emitted when the protocol fee controller address is updated in setProtocolFeeController.\n    event ProtocolFeeControllerUpdated(address indexed protocolFeeController);\n\n    /// @notice Emitted when the protocol fee is updated for a pool.\n    event ProtocolFeeUpdated(PoolId indexed id, uint24 protocolFee);\n\n    /// @notice Given a currency address, returns the protocol fees accrued in that currency\n    /// @param currency The currency to check\n    /// @return amount The amount of protocol fees accrued in the currency\n    function protocolFeesAccrued(Currency currency) external view returns (uint256 amount);\n\n    /// @notice Sets the protocol fee for the given pool\n    /// @param key The key of the pool to set a protocol fee for\n    /// @param newProtocolFee The fee to set\n    function setProtocolFee(PoolKey memory key, uint24 newProtocolFee) external;\n\n    /// @notice Sets the protocol fee controller\n    /// @param controller The new protocol fee controller\n    function setProtocolFeeController(address controller) external;\n\n    /// @notice Collects the protocol fees for a given recipient and currency, returning the amount collected\n    /// @dev This will revert if the contract is unlocked\n    /// @param recipient The address to receive the protocol fees\n    /// @param currency The currency to withdraw\n    /// @param amount The amount of currency to withdraw\n    /// @return amountCollected The amount of currency successfully withdrawn\n    function collectProtocolFees(address recipient, Currency currency, uint256 amount)\n        external\n        returns (uint256 amountCollected);\n\n    /// @notice Returns the current protocol fee controller address\n    /// @return address The current protocol fee controller address\n    function protocolFeeController() external view returns (address);\n}\n"},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.7.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\nimport {IERC20Metadata} from \"../../../interfaces/IERC20Metadata.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    /// @dev Attempts to fetch the token decimals. A return value of false indicates that the attempt failed in some way.\n    function tryGetDecimals(IERC20 token) internal view returns (bool success, uint8 decimals) {\n        bytes4 selector = IERC20Metadata.decimals.selector;\n        assembly (\"memory-safe\") {\n            mstore(0x00, selector)\n            success := staticcall(gas(), token, 0x00, 4, 0x00, 0x20)\n            success := and(and(success, gt(returndatasize(), 0x1f)), lt(mload(0x00), 0x100))\n            decimals := mul(success, mload(0x00))\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 approve\n     * @param bubble Behavior switch if the approve 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"},"lib/openzeppelin-contracts/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"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @title Minimal ERC20 interface for Uniswap\n/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3\ninterface IERC20Minimal {\n    /// @notice Returns an account's balance in the token\n    /// @param account The account for which to look up the number of tokens it has, i.e. its balance\n    /// @return The number of tokens held by the account\n    function balanceOf(address account) external view returns (uint256);\n\n    /// @notice Transfers the amount of token from the `msg.sender` to the recipient\n    /// @param recipient The account that will receive the amount transferred\n    /// @param amount The number of tokens to send from the sender to the recipient\n    /// @return Returns true for a successful transfer, false for an unsuccessful transfer\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Returns the current allowance given to a spender by an owner\n    /// @param owner The account of the token owner\n    /// @param spender The account of the token spender\n    /// @return The current allowance granted by `owner` to `spender`\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n    /// @param spender The account which will be allowed to spend a given amount of the owners tokens\n    /// @param amount The amount of tokens allowed to be used by `spender`\n    /// @return Returns true for a successful approval, false for unsuccessful\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n    /// @param sender The account from which the transfer will be initiated\n    /// @param recipient The recipient of the transfer\n    /// @param amount The amount of the transfer\n    /// @return Returns true for a successful transfer, false for unsuccessful\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\n    /// @param from The account from which the tokens were sent, i.e. the balance decreased\n    /// @param to The account to which the tokens were sent, i.e. the balance increased\n    /// @param value The amount of tokens that were transferred\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.\n    /// @param owner The account that approved spending of its tokens\n    /// @param spender The account for which the spending allowance was modified\n    /// @param value The new allowance from the owner to the spender\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for claims over a contract balance, wrapped as a ERC6909\ninterface IERC6909Claims {\n    /*//////////////////////////////////////////////////////////////\n                                 EVENTS\n    //////////////////////////////////////////////////////////////*/\n\n    event OperatorSet(address indexed owner, address indexed operator, bool approved);\n\n    event Approval(address indexed owner, address indexed spender, uint256 indexed id, uint256 amount);\n\n    event Transfer(address caller, address indexed from, address indexed to, uint256 indexed id, uint256 amount);\n\n    /*//////////////////////////////////////////////////////////////\n                                 FUNCTIONS\n    //////////////////////////////////////////////////////////////*/\n\n    /// @notice Owner balance of an id.\n    /// @param owner The address of the owner.\n    /// @param id The id of the token.\n    /// @return amount The balance of the token.\n    function balanceOf(address owner, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Spender allowance of an id.\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @return amount The allowance of the token.\n    function allowance(address owner, address spender, uint256 id) external view returns (uint256 amount);\n\n    /// @notice Checks if a spender is approved by an owner as an operator\n    /// @param owner The address of the owner.\n    /// @param spender The address of the spender.\n    /// @return approved The approval status.\n    function isOperator(address owner, address spender) external view returns (bool approved);\n\n    /// @notice Transfers an amount of an id from the caller to a receiver.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transfer(address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Transfers an amount of an id from a sender to a receiver.\n    /// @param sender The address of the sender.\n    /// @param receiver The address of the receiver.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always, unless the function reverts\n    function transferFrom(address sender, address receiver, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Approves an amount of an id to a spender.\n    /// @param spender The address of the spender.\n    /// @param id The id of the token.\n    /// @param amount The amount of the token.\n    /// @return bool True, always\n    function approve(address spender, uint256 id, uint256 amount) external returns (bool);\n\n    /// @notice Sets or removes an operator for the caller.\n    /// @param operator The address of the operator.\n    /// @param approved The approval status.\n    /// @return bool True, always\n    function setOperator(address operator, bool approved) external returns (bool);\n}\n"},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Interface for the callback executed when an address unlocks the pool manager\ninterface IUnlockCallback {\n    /// @notice Called by the pool manager on `msg.sender` when the manager is unlocked\n    /// @param data The data that was passed to the call to unlock\n    /// @return Any data that you want to be returned from the unlock call\n    function unlockCallback(bytes calldata data) external returns (bytes memory);\n}\n"},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"}},"language":"Solidity","settings":{"viaIR":false,"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin-contracts/=lib/openzeppelin-contracts/","@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/","v4-core/=lib/v4-periphery/lib/v4-core/src/","v4-periphery/=lib/v4-periphery/","permit2/=lib/v4-periphery/lib/permit2/","forge-std/=lib/forge-std/src/","ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/","solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/","forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/","@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/","hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/"]}},"stdJsonOutput":{"sources":{"src/FeeCollector.sol":{"id":26},"src/interfaces/IFeeCollector.sol":{"id":27},"src/interfaces/ILaunchpadToken.sol":{"id":28},"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol":{"id":23},"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol":{"id":24},"lib/v4-periphery/lib/v4-core/src/types/Currency.sol":{"id":22},"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol":{"id":10},"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol":{"id":16},"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol":{"id":18},"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol":{"id":19},"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol":{"id":20},"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol":{"id":25},"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol":{"id":8},"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol":{"id":9},"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol":{"id":2},"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol":{"id":21},"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol":{"id":1},"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol":{"id":4},"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol":{"id":17},"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol":{"id":0},"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol":{"id":11},"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol":{"id":12},"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol":{"id":3},"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol":{"id":6},"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol":{"id":7},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol":{"id":14},"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol":{"id":15},"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol":{"id":13},"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol":{"id":5}},"contracts":{"src/FeeCollector.sol":{"FeeCollector":{"abi":[{"type":"constructor","inputs":[{"name":"tokenizedStock_","type":"address","internalType":"address"},{"name":"usdg_","type":"address","internalType":"address"},{"name":"feeRecipient_","type":"address","internalType":"address"},{"name":"poolManager_","type":"address","internalType":"address"},{"name":"conversionPoolFee_","type":"uint24","internalType":"uint24"},{"name":"conversionPoolTickSpacing_","type":"int24","internalType":"int24"}],"stateMutability":"nonpayable"},{"name":"ConversionReturnedNothing","type":"error","inputs":[]},{"name":"InvalidRange","type":"error","inputs":[{"name":"startIndex","type":"uint256","internalType":"uint256"},{"name":"endIndex","type":"uint256","internalType":"uint256"},{"name":"length","type":"uint256","internalType":"uint256"}]},{"name":"NotPoolManager","type":"error","inputs":[]},{"name":"NothingToDistribute","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"OnlySelf","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"ZeroAddress","type":"error","inputs":[]},{"name":"ConversionDeferred","type":"event","inputs":[{"name":"pendingStock","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"DividendDeferred","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"FeesDistributed","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"dividendShare","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"operatorShare","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"usdgPaid","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"FeesRecorded","type":"event","inputs":[{"name":"token","type":"address","indexed":true,"internalType":"address"},{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"timestamp","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"OperatorPaid","type":"event","inputs":[{"name":"stockSold","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"usdgReceived","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"name":"DIVIDEND_BPS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"OPERATOR_BPS","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"collectedOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"corePoolKey","type":"function","inputs":[],"outputs":[{"name":"","type":"tuple","components":[{"name":"currency0","type":"address","internalType":"Currency"},{"name":"currency1","type":"address","internalType":"Currency"},{"name":"fee","type":"uint24","internalType":"uint24"},{"name":"tickSpacing","type":"int24","internalType":"int24"},{"name":"hooks","type":"address","internalType":"contract IHooks"}],"internalType":"struct PoolKey"}],"stateMutability":"view"},{"name":"currentDay","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"dailyRevenue","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"distribute","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"dividendShare","type":"uint256","internalType":"uint256"},{"name":"operatorShare","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"distributeAll","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"distributeRange","type":"function","inputs":[{"name":"startIndex","type":"uint256","internalType":"uint256"},{"name":"endIndex","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"distributedOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"dividendsOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"executeConversion","type":"function","inputs":[{"name":"amountIn","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"amountOut","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"name":"feeRecipient","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeTokenAt","type":"function","inputs":[{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"feeTokenCount","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"feeTokens","type":"function","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"name":"isFeeToken","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"operatorOnDay","type":"function","inputs":[{"name":"day","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"operatorReceived","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingConversion","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"pendingFees","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"poolManager","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPoolManager"}],"stateMutability":"view"},{"name":"recordFee","type":"function","inputs":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"stockConverted","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"tokenizedStock","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"},{"name":"totalCollected","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalDistributed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalDividends","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"totalPending","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"unlockCallback","type":"function","inputs":[{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bytes","internalType":"bytes"}],"stateMutability":"nonpayable"},{"name":"usdg","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IERC20"}],"stateMutability":"view"}],"metadata":"{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenizedStock_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"usdg_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"feeRecipient_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"poolManager_\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"conversionPoolFee_\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"conversionPoolTickSpacing_\",\"type\":\"int24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ConversionReturnedNothing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"startIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"InvalidRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotPoolManager\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"NothingToDistribute\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlySelf\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"pendingStock\",\"type\":\"uint256\"}],\"name\":\"ConversionDeferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"DividendDeferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dividendShare\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"operatorShare\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"usdgPaid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"FeesDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"FeesRecorded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stockSold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"usdgReceived\",\"type\":\"uint256\"}],\"name\":\"OperatorPaid\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DIVIDEND_BPS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"OPERATOR_BPS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"day\",\"type\":\"uint256\"}],\"name\":\"collectedOnDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"corePoolKey\",\"outputs\":[{\"components\":[{\"internalType\":\"Currency\",\"name\":\"currency0\",\"type\":\"address\"},{\"internalType\":\"Currency\",\"name\":\"currency1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"contract IHooks\",\"name\":\"hooks\",\"type\":\"address\"}],\"internalType\":\"struct PoolKey\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dailyRevenue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"distribute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dividendShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"operatorShare\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"distributeAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"startIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endIndex\",\"type\":\"uint256\"}],\"name\":\"distributeRange\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"day\",\"type\":\"uint256\"}],\"name\":\"distributedOnDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"day\",\"type\":\"uint256\"}],\"name\":\"dividendsOnDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"name\":\"executeConversion\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"feeTokenAt\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeTokenCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeTokens\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isFeeToken\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"day\",\"type\":\"uint256\"}],\"name\":\"operatorOnDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"operatorReceived\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingConversion\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"pendingFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolManager\",\"outputs\":[{\"internalType\":\"contract IPoolManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"recordFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stockConverted\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenizedStock\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalCollected\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalDistributed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalDividends\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalPending\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"unlockCallback\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usdg\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Dividends follow the token, not the share. A fee generated by PEPE trading is paid to      PEPE holders, in TokenizedStock. Each launch keeps its own dividend pool; they are      never mixed. The share itself pays no dividend — what it gets from the launchpad is      demand, since every buy of every token is routed through it.No owner, no admin, no setters. The split is two constants, the recipient is an      immutable, and `distribute` is callable by anyone for any token.      WHY `recordFee` IS PERMISSIONLESS. It pulls the stock off the caller before crediting      it, so calling it is strictly a donation. That also lets this contract be deployed      before the hook, which is what keeps the whole deployment graph acyclic.      THE USDG LEG. Fees arrive in stock, so the operator's half has to be sold. That makes      the protocol a structural seller of the very asset the launchpad exists to create      demand for, and it needs a stock/USDG pool deep enough to absorb it. If the swap      cannot execute, the operator's half is held and retried — the dividend half is paid      either way, so shareholders are never blocked by a thin conversion pool.\",\"errors\":{\"SafeERC20FailedOperation(address)\":[{\"details\":\"An operation with an ERC-20 token failed.\"}]},\"kind\":\"dev\",\"methods\":{\"recordFee(address,uint256)\":{\"details\":\"Permissionless by design: the caller must actually transfer the stock in,      so there is nothing to gain by calling it. This is what lets the hook push      fees without the FeeCollector needing to trust (or even know) the hook,      which keeps the deployment graph acyclic.\"},\"unlockCallback(bytes)\":{\"params\":{\"data\":\"The data that was passed to the call to unlock\"},\"returns\":{\"_0\":\"Any data that you want to be returned from the unlock call\"}}},\"title\":\"FeeCollector\",\"version\":1},\"userdoc\":{\"events\":{\"ConversionDeferred(uint256)\":{\"notice\":\"The stock/USDG pool could not absorb the sale; the stock is held for next time.\"},\"DividendDeferred(address,uint256)\":{\"notice\":\"Nobody held the token yet, so its dividend could not be paid; held for next time.\"}},\"kind\":\"user\",\"methods\":{\"DIVIDEND_BPS()\":{\"notice\":\"Immutable split. Half to shareholders, half to the operator.\"},\"corePoolKey()\":{\"notice\":\"The stock/USDG pool the operator's half is sold into. No hook.\"},\"distribute(address)\":{\"notice\":\"Split everything pending for `token`. Anyone may call this, for any token.\"},\"distributeAll()\":{\"notice\":\"`distribute` for every token that has ever accrued a fee.\"},\"distributeRange(uint256,uint256)\":{\"notice\":\"Paginated `distributeAll`, over `[startIndex, endIndex)`.\"},\"executeConversion(uint256)\":{\"notice\":\"External only so the caller above can `try`/`catch` it. Not callable by anyone else.\"},\"feeRecipient()\":{\"notice\":\"Where the operator's half lands. Set once, at construction, forever.\"},\"operatorReceived()\":{\"notice\":\"Cumulative USDG delivered to the operator.\"},\"pendingConversion()\":{\"notice\":\"Stock earmarked for the operator that could not be converted yet.\"},\"poolManager()\":{\"notice\":\"The v4 singleton. Conversions swap straight against it, not through a router.\"},\"recordFee(address,uint256)\":{\"notice\":\"Deposit `amount` of TokenizedStock and attribute it to `token`.\"},\"stockConverted()\":{\"notice\":\"Cumulative stock sold to pay the operator.\"},\"totalDividends()\":{\"notice\":\"Cumulative stock paid out as shareholder dividends.\"},\"totalPending()\":{\"notice\":\"Stock sitting here undistributed, across every token plus the conversion queue.\"},\"unlockCallback(bytes)\":{\"notice\":\"Called by the pool manager on `msg.sender` when the manager is unlocked\"},\"usdg()\":{\"notice\":\"The stablecoin the operator is paid in.\"}},\"notice\":\"Receives every protocol fee the LaunchpadHook skims and splits it 50/50: half paid         back to the holders of the token that generated it, half converted to USDG for the         protocol operator.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/FeeCollector.sol\":\"FeeCollector\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/\",\":ds-test/=lib/v4-periphery/lib/v4-core/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/\",\":forge-std/=lib/forge-std/src/\",\":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/\",\":hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":permit2/=lib/v4-periphery/lib/permit2/\",\":solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/\",\":v4-core/=lib/v4-periphery/lib/v4-core/src/\",\":v4-periphery/=lib/v4-periphery/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol\":{\"keccak256\":\"0xd5ea07362ab630a6a3dee4285a74cf2377044ca2e4be472755ad64d7c5d4b69d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da5e832b40fc5c3145d3781e2e5fa60ac2052c9d08af7e300dc8ab80c4343100\",\"dweb:/ipfs/QmTzf7N5ZUdh5raqtzbM11yexiUoLC9z3Ws632MCuycq1d\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol\":{\"keccak256\":\"0x0afcb7e740d1537b252cb2676f600465ce6938398569f09ba1b9ca240dde2dfc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1c299900ac4ec268d4570ecef0d697a3013cd11a6eb74e295ee3fbc945056037\",\"dweb:/ipfs/Qmab9owJoxcA7vJT5XNayCMaUR1qxqj1NDzzisduwaJMcZ\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol\":{\"keccak256\":\"0x1a6221315ce0307746c2c4827c125d821ee796c74a676787762f4778671d4f44\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1bb2332a7ee26dd0b0de9b7fe266749f54820c99ab6a3bcb6f7e6b751d47ee2d\",\"dweb:/ipfs/QmcRWpaBeCYkhy68PR3B4AgD7asuQk7PwkWxrvJbZcikLF\"]},\"lib/openzeppelin-contracts/contracts/interfaces/IERC20Metadata.sol\":{\"keccak256\":\"0xd735962e3d6660884153ba8a972b5f100dde4c482f2ff1c525ba7fdefb154cbd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5a264d17b093f585844b0d977e9f60555b8c8d6513b304fde863cdf652a0d336\",\"dweb:/ipfs/QmWXfaJisjVnrjTUjZGryZpMob9wKivvtbodLS3PTc1ttq\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x74ed01eb66b923d0d0cfe3be84604ac04b76482a55f9dd655e1ef4d367f95bc2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5282825a626cfe924e504274b864a652b0023591fa66f06a067b25b51ba9b303\",\"dweb:/ipfs/QmeCfPykghhMc81VJTrHTC7sF6CRvaA1FXVq2pJhwYp1dV\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"keccak256\":\"0xd6fa4088198f04eef10c5bce8a2f4d60554b7ec4b987f684393c01bf79b94d9f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f95ee0bbd4dd3ac730d066ba3e785ded4565e890dbec2fa7d3b9fe3bad9d0d6e\",\"dweb:/ipfs/QmSLr6bHkPFWT7ntj34jmwfyskpwo97T9jZUrk5sz3sdtR\"]},\"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0x318ea37780610ca7808852275651885d428669402b81488cb7434fde361e9704\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4aad80ad93cedad85619900fd7c2084c4d2f4b28f1dbda27e491c5f4fd31025d\",\"dweb:/ipfs/QmUyXtX7FUi2u1W5fs7ufka9XkRVb5ss2menQHTsrsSmqZ\"]},\"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IExtsload.sol\":{\"keccak256\":\"0x80b53ca4907d6f0088c3b931f2b72cad1dc4615a95094d96bd0fb8dff8d5ba43\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://375c69148622aab7a3537d5fd37d373a8e9731022c8d87bdaee46233b0a99fe1\",\"dweb:/ipfs/QmXFjdoYRxsA5B1kyuxEXgNf3FBoL1zPvy26Qy8EtpdFRN\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IExttload.sol\":{\"keccak256\":\"0xc6b68283ebd8d1c789df536756726eed51c589134bb20821b236a0d22a135937\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://294394f72dfc219689209f4130d85601dfd0d63c8d47578050d312db70f9b6c8\",\"dweb:/ipfs/QmTDMQ3oxCGHgEBU48a3Lp4S1rRjc8vVCxkhE5ZNej1bsY\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IHooks.sol\":{\"keccak256\":\"0xc131ffa2d04c10a012fe715fe2c115811526b7ea34285cf0a04ce7ce8320da8d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3b212358897db5d99c21244d88f97b2e788527552cb430629b472a8cc6289aec\",\"dweb:/ipfs/QmQtwV4dDe2RYk2ErLpaAX7U82jWh1L6Lw2HRuKDvBi84G\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IPoolManager.sol\":{\"keccak256\":\"0xbdab3544da3d32dfdf7457baa94e17d5a3012952428559e013ffac45d067038e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ce95ff864468e37c76adf71df061d4f3d6f3a5ec1f9bc3aea090463bc72798f4\",\"dweb:/ipfs/QmSbWh1pLbz51yQF4HEu5NRhr8XVv9JYGEw1hq1HudAnCi\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/IProtocolFees.sol\":{\"keccak256\":\"0x32a666e588a2f66334430357bb1e2424fe7eebeb98a3364b1dd16eb6ccca9848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://85751d302125881f72e5f8af051c2d5d9b1f606ebaea8ca7d04fccdd27cc252d\",\"dweb:/ipfs/QmeRwomeh9NWm6A6fgNA4KZPQZHPpdKsPQyYsHSFmvud7J\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/callback/IUnlockCallback.sol\":{\"keccak256\":\"0x58c82f2bd9d7c097ed09bd0991fedc403b0ec270eb3d0158bfb095c06a03d719\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://91168ca26a10980df2cdc3fbfe8ddf372c002b7ef19e3c59a0c9870d64198f1b\",\"dweb:/ipfs/QmUSpaM825vd1SwvF38esgbdLgYiPwefKaFERTWvUi6uSK\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC20Minimal.sol\":{\"keccak256\":\"0xeccadf1bf69ba2eb51f2fe4fa511bc7bb05bbd6b9f9a3cb8e5d83d9582613e0f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://118757369892687b99ef46ce28d6861f62c098285bd7687a4f17f7e44e5f81de\",\"dweb:/ipfs/QmUxqbYqQtcEwwFbb9e6BBMePEaSgN8C45v6RKubD4ib8d\"]},\"lib/v4-periphery/lib/v4-core/src/interfaces/external/IERC6909Claims.sol\":{\"keccak256\":\"0xa586f345739e52b0488a0fe40b6e375cce67fdd25758408b0efcb5133ad96a48\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8c557b7e52abdbbd82e415a1acc27921446a7fd090b7d4877e52be72619547f\",\"dweb:/ipfs/QmXE2KNPbXmGX8BQF3ei6zhzRTnhoTQg39XmqMnkhbr6QK\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/BitMath.sol\":{\"keccak256\":\"0x51b9be4f5c4fd3e80cbc9631a65244a2eb2be250b6b7f128a2035080e18aee8d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fe98bbd5498e912146b9319827fc63621eb66ff55d5baae0fa02a7a972ab8d1e\",\"dweb:/ipfs/QmY5hCuyrtgsJtk4AavrxcvBkRrChfr4N6ZnhdC8roPpNi\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/CustomRevert.sol\":{\"keccak256\":\"0x111ed3031b6990c80a93ae35dde6b6ac0b7e6af471388fdd7461e91edda9b7de\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c9ea883c98d6ae1829160d0977bb5195761cfd5bc81692d0a941f45717f594cd\",\"dweb:/ipfs/QmZPwxzaeMNv536wzrAMrMswu7vMHuqPVpjcqL3YvCMoxt\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/SafeCast.sol\":{\"keccak256\":\"0x42c4a24f996a14d358be397b71f7ec9d7daf666aaec78002c63315a6ee67aa86\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c3db86e2ba3679105fc32edec656c70282e1fede6cab11217702443f6c26fa59\",\"dweb:/ipfs/QmX4yaaSPdKQzYNRsezjTvZKsubzS8JRTEGFD3fPpTTCcj\"]},\"lib/v4-periphery/lib/v4-core/src/libraries/TickMath.sol\":{\"keccak256\":\"0x4e1a11e154eb06106cb1c4598f06cca5f5ca16eaa33494ba2f0e74981123eca8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a79a57f7b240783b045168d1c4f774ac1812caf8f9a83cb6959a86b0b07b6c70\",\"dweb:/ipfs/QmTb5kvxwDNW8jDuQaqdJ445cCFejNkUqEB17Bjo8UBiva\"]},\"lib/v4-periphery/lib/v4-core/src/types/BalanceDelta.sol\":{\"keccak256\":\"0xa719c8fe51e0a9524280178f19f6851bcc3b3b60e73618f3d60905d35ae5569f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7436928dc9de35c6c7c5c636cb51adaf295cfd590da83b19a004ae33cbec9ef9\",\"dweb:/ipfs/QmRJ9yZkUpzk4433GX3LgVVL8jwpbSYSUwXcucKisf3v4H\"]},\"lib/v4-periphery/lib/v4-core/src/types/BeforeSwapDelta.sol\":{\"keccak256\":\"0x2a774312d91285313d569da1a718c909655da5432310417692097a1d4dc83a78\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a2c7a0379955cff9c17ab9e61f95e42909aa5947c22740f86ce940d09856f782\",\"dweb:/ipfs/QmaAuo8UBYXsGrVuKh8iRoAAdqwtg1jDq515cW1ZRP5m9K\"]},\"lib/v4-periphery/lib/v4-core/src/types/Currency.sol\":{\"keccak256\":\"0x4a0b84b282577ff6f8acf13ec9f4d32dbb9348748b49611d00e68bee96609c93\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://45f9d62ab3d51b52957279e353853ba1547c3182c9a1e3d1846ada4a90263b01\",\"dweb:/ipfs/QmS8NG84ccQS1yXVD8cv3eKX7J1UKxuJhbUfHTQR2opKF5\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolId.sol\":{\"keccak256\":\"0x308311916ea0f5c2fd878b6a2751eb223d170a69e33f601fae56dfe3c5d392af\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://669c2cd7ac17690b5d8831e0bda72822376c3a04b36afed6d31df4d75fe60918\",\"dweb:/ipfs/QmT6EpkxqU8VF3WsgrZ66F3s1cCQRffR95z1HDYZz7ph6y\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolKey.sol\":{\"keccak256\":\"0xf89856e0580d7a4856d3187a76858377ccee9d59702d230c338d84388221b786\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6f3118fa189025695c37fdf0bdd1190f085ad097484d3c88cf4c56d1db65f639\",\"dweb:/ipfs/QmamXpgtB8GV1CaFLvqefPWSoikLDhMk1yU4heBnVzU8gi\"]},\"lib/v4-periphery/lib/v4-core/src/types/PoolOperation.sol\":{\"keccak256\":\"0x7a1a107fc1f2208abb2c9364c8c54e56e98dca27673e9441bed2b949b6382162\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ad2470383bc5595d5af17840c64971f457adac68895a4db41ba5c71a4478e07\",\"dweb:/ipfs/QmdwKhBHDZFuqXrR2BfDBD9r7rB2ULGQBznsajRTkTmL4c\"]},\"src/FeeCollector.sol\":{\"keccak256\":\"0x45808630803754f4ff294cb538dee426fccadc8664d87aeb2543e966a4f2e46a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d76180b494dd6e223cb65cbe23ff006f33687237783127b71b812a7e0aced4e9\",\"dweb:/ipfs/QmZt8fm7SHosrCBZEmhdr42qmEmgNRkwrDkg9NdoGAiS2U\"]},\"src/interfaces/IFeeCollector.sol\":{\"keccak256\":\"0x0a83ebc9e661980522757cb21a227ad2ad2ef2682feb343093bf86c96aff1e16\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8dbda426b110c371feb087a0aea493de642bade5e7eda5174b39d6660de8212a\",\"dweb:/ipfs/QmWnotezoQS4CrqPpDRj219F8o5kv24jUgQungdac23TXf\"]},\"src/interfaces/ILaunchpadToken.sol\":{\"keccak256\":\"0x005f7693452d4698173887d0aaf01b1a3901d5242f1469d61cb1bba5e9d0be08\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fe05821413c6d8a468abc22d480d2d73614f675b639eed97eac527c68caeebc6\",\"dweb:/ipfs/QmegL8eRYVKiYHFqX4cXXZPzta2t7hgjdDVBoku6qNpBAS\"]}},\"version\":1}","userdoc":{"kind":"user","events":{"ConversionDeferred(uint256)":{"notice":"The stock/USDG pool could not absorb the sale; the stock is held for next time."},"DividendDeferred(address,uint256)":{"notice":"Nobody held the token yet, so its dividend could not be paid; held for next time."}},"notice":"Receives every protocol fee the LaunchpadHook skims and splits it 50/50: half paid         back to the holders of the token that generated it, half converted to USDG for the         protocol operator.","methods":{"usdg()":{"notice":"The stablecoin the operator is paid in."},"corePoolKey()":{"notice":"The stock/USDG pool the operator's half is sold into. No hook."},"poolManager()":{"notice":"The v4 singleton. Conversions swap straight against it, not through a router."},"DIVIDEND_BPS()":{"notice":"Immutable split. Half to shareholders, half to the operator."},"feeRecipient()":{"notice":"Where the operator's half lands. Set once, at construction, forever."},"totalPending()":{"notice":"Stock sitting here undistributed, across every token plus the conversion queue."},"distributeAll()":{"notice":"`distribute` for every token that has ever accrued a fee."},"stockConverted()":{"notice":"Cumulative stock sold to pay the operator."},"totalDividends()":{"notice":"Cumulative stock paid out as shareholder dividends."},"operatorReceived()":{"notice":"Cumulative USDG delivered to the operator."},"distribute(address)":{"notice":"Split everything pending for `token`. Anyone may call this, for any token."},"pendingConversion()":{"notice":"Stock earmarked for the operator that could not be converted yet."},"unlockCallback(bytes)":{"notice":"Called by the pool manager on `msg.sender` when the manager is unlocked"},"executeConversion(uint256)":{"notice":"External only so the caller above can `try`/`catch` it. Not callable by anyone else."},"recordFee(address,uint256)":{"notice":"Deposit `amount` of TokenizedStock and attribute it to `token`."},"distributeRange(uint256,uint256)":{"notice":"Paginated `distributeAll`, over `[startIndex, endIndex)`."}},"version":1},"devdoc":{"kind":"dev","title":"FeeCollector","errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"details":"Dividends follow the token, not the share. A fee generated by PEPE trading is paid to      PEPE holders, in TokenizedStock. Each launch keeps its own dividend pool; they are      never mixed. The share itself pays no dividend — what it gets from the launchpad is      demand, since every buy of every token is routed through it.No owner, no admin, no setters. The split is two constants, the recipient is an      immutable, and `distribute` is callable by anyone for any token.      WHY `recordFee` IS PERMISSIONLESS. It pulls the stock off the caller before crediting      it, so calling it is strictly a donation. That also lets this contract be deployed      before the hook, which is what keeps the whole deployment graph acyclic.      THE USDG LEG. Fees arrive in stock, so the operator's half has to be sold. That makes      the protocol a structural seller of the very asset the launchpad exists to create      demand for, and it needs a stock/USDG pool deep enough to absorb it. If the swap      cannot execute, the operator's half is held and retried — the dividend half is paid      either way, so shareholders are never blocked by a thin conversion pool.","methods":{"unlockCallback(bytes)":{"params":{"data":"The data that was passed to the call to unlock"},"returns":{"_0":"Any data that you want to be returned from the unlock call"}},"recordFee(address,uint256)":{"details":"Permissionless by design: the caller must actually transfer the stock in,      so there is nothing to gain by calling it. This is what lets the hook push      fees without the FeeCollector needing to trust (or even know) the hook,      which keeps the deployment graph acyclic."}},"version":1},"storageLayout":{"types":{"t_bool":{"label":"bool","encoding":"inplace","numberOfBytes":"1"},"t_address":{"label":"address","encoding":"inplace","numberOfBytes":"20"},"t_uint256":{"label":"uint256","encoding":"inplace","numberOfBytes":"32"},"t_mapping(t_address,t_bool)":{"key":"t_address","label":"mapping(address => bool)","value":"t_bool","encoding":"mapping","numberOfBytes":"32"},"t_array(t_address)dyn_storage":{"base":"t_address","label":"address[]","encoding":"dynamic_array","numberOfBytes":"32"},"t_mapping(t_address,t_uint256)":{"key":"t_address","label":"mapping(address => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"},"t_mapping(t_uint256,t_uint256)":{"key":"t_uint256","label":"mapping(uint256 => uint256)","value":"t_uint256","encoding":"mapping","numberOfBytes":"32"}},"storage":[{"slot":"0","type":"t_mapping(t_address,t_uint256)","astId":3035,"label":"_pending","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"1","type":"t_uint256","astId":3038,"label":"pendingConversion","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"2","type":"t_uint256","astId":3040,"label":"totalCollected","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"3","type":"t_uint256","astId":3042,"label":"totalDistributed","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"4","type":"t_uint256","astId":3045,"label":"totalDividends","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"5","type":"t_uint256","astId":3048,"label":"stockConverted","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"6","type":"t_uint256","astId":3051,"label":"operatorReceived","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"7","type":"t_mapping(t_uint256,t_uint256)","astId":3055,"label":"collectedOnDay","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"8","type":"t_mapping(t_uint256,t_uint256)","astId":3059,"label":"distributedOnDay","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"9","type":"t_mapping(t_uint256,t_uint256)","astId":3063,"label":"dividendsOnDay","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"10","type":"t_mapping(t_uint256,t_uint256)","astId":3067,"label":"operatorOnDay","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"11","type":"t_mapping(t_address,t_bool)","astId":3071,"label":"isFeeToken","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"},{"slot":"12","type":"t_array(t_address)dyn_storage","astId":3074,"label":"_feeTokens","offset":0,"contract":"src/FeeCollector.sol:FeeCollector"}]},"transientStorageLayout":null,"evm":{"bytecode":{"object":"610180604052348015610010575f80fd5b50604051611ada380380611ada83398101604081905261002f9161011f565b6001600160a01b038616158061004c57506001600160a01b038516155b8061005e57506001600160a01b038416155b8061007057506001600160a01b038316155b1561008e5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03808716608081905286821660a081905286831660c05291851660e05210806100be57856100c0565b865b6001600160a01b031661010052806100d857866100da565b855b6001600160a01b0316610120525062ffffff9091166101405260020b61016052506101a392505050565b80516001600160a01b038116811461011a575f80fd5b919050565b5f805f805f8060c08789031215610134575f80fd5b61013d87610104565b955061014b60208801610104565b945061015960408801610104565b935061016760608801610104565b9250608087015162ffffff8116811461017e575f80fd5b8092505060a08701518060020b8114610195575f80fd5b809150509295509295509295565b60805160a05160c05160e0516101005161012051610140516101605161187a6102605f395f61092401525f6108fb01525f6108d001525f6108ab01525f81816104210152818161064501528181610961015281816109f701528181610b8e01528181610c1801528181610c3f0152610cf601525f81816102bd015261075601525f8181610479015261073401525f8181610303015281816104bc015281816109bc01528181610bf401528181610fa0015261110d015261187a5ff3fe608060405234801561000f575f80fd5b50600436106101dc575f3560e01c806370d8905111610109578063d80a4d4d1161009e578063efca2eed1161006e578063efca2eed1461046b578063f53507f2146103b9578063f5b91b7b14610474578063ff122cea1461049b575f80fd5b8063d80a4d4d14610409578063dc4c90d31461041c578063e29eb83614610443578063e61aa6171461044c575f80fd5b806391dd7346116100d957806391dd7346146103c2578063997664d7146103e2578063bee0d6ad146103eb578063d74d6f4014610400575f80fd5b806370d890511461037c57806375ffe734146103915780638c40baef1461039a5780638d7036de146103b9575f80fd5b8063436596c41161017f5780635c9302c91161014f5780635c9302c9146103255780635e768c3a1461032d57806363453ae11461034c5780636e9e625314610374575f80fd5b8063436596c4146102b057806346904840146102b85780634bb4c78b146102df5780634eec9e09146102fe575f80fd5b806320bd8991116101ba57806320bd89911461024d57806325d2a3f314610278578063389c4116146102a05780633f90916a146102a8575f80fd5b80630a6e0fd4146101e05780630ebdf788146101f557806316ad82d71461021b575b5f80fd5b6101f36101ee36600461147e565b6104a4565b005b6102086102033660046114a6565b610622565b6040519081526020015b60405180910390f35b61023d6102293660046114bd565b600b6020525f908152604090205460ff1681565b6040519015158152602001610212565b61026061025b3660046114a6565b610780565b6040516001600160a01b039091168152602001610212565b6102086102863660046114bd565b6001600160a01b03165f9081526020819052604090205490565b600c54610208565b6102086107ae565b6101f36107d1565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086102ed3660046114a6565b60086020525f908152604090205481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086107e1565b61020861033b3660046114a6565b600a6020525f908152604090205481565b61035f61035a3660046114bd565b6107ef565b60408051928352602083019190915201610212565b61020861084d565b61038461086c565b6040516102129190611520565b61020860065481565b6102086103a83660046114a6565b60076020525f908152604090205481565b61020861138881565b6103d56103d036600461152e565b610954565b604051610212919061159c565b61020860045481565b6103f3610d84565b60405161021291906115d1565b61020860055481565b6101f361041736600461161c565b610de4565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860025481565b61020861045a3660046114a6565b60096020525f908152604090205481565b61020860035481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860015481565b805f036104af575050565b6104e46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610df2565b6001600160a01b0382165f908152600b602052604090205460ff16610568576001600160a01b0382165f818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b6001600160a01b0382165f908152602081905260408120805483929061058f908490611650565b925050819055508060025f8282546105a79190611650565b9091555081905060075f6105b96107e1565b81526020019081526020015f205f8282546105d49190611650565b90915550506040805182815242602082015233916001600160a01b038516917fb02f9b42d2edd6db60b8270da46bea71d6f3ededf95f39eac71b6356c48310c0910160405180910390a35050565b5f3330146106435760405163029a949d60e31b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166348c894918360405160200161068591815260200190565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016106b0919061159c565b5f604051808303815f875af11580156106cb573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106f29190810190611677565b806020019051810190610705919061172a565b9050805f0361072757604051632274e4f360e21b815260040160405180910390fd5b61077b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610e2e565b919050565b5f600c828154811061079457610794611741565b5f918252602090912001546001600160a01b031692915050565b5f6001546003546002546107c29190611755565b6107cc9190611650565b905090565b600c546107df905f90610e68565b565b5f6107cc6201518042611768565b6001600160a01b0381165f9081526020819052604081205481908082036108395760405163edec0cc160e01b81526001600160a01b03851660048201526024015b60405180910390fd5b6108438482610f08565b9250925050915091565b5f60075f6108596107e1565b81526020019081526020015f2054905090565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506040805160a0810182526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682527f000000000000000000000000000000000000000000000000000000000000000016602082015262ffffff7f000000000000000000000000000000000000000000000000000000000000000016918101919091527f000000000000000000000000000000000000000000000000000000000000000060020b60608201525f608082015290565b6060336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461099f5760405163570c108560e11b815260040160405180910390fd5b5f6109ac838501856114a6565b90505f6109b761086c565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316825f01516001600160a01b03161490505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3cd914c846040518060600160405280861515815260200188610a4290611787565b815260200186610a7057610a6b600173fffd8963efd1fc6a506488495d951d5263988d266117a1565b610a80565b610a806401000276a360016117c0565b6001600160a01b03168152506040518363ffffffff1660e01b8152600401610aa99291906117df565b6020604051808303815f875af1158015610ac5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae9919061172a565b90505f82610afb578360200151610afe565b83515b90505f83610b0d578451610b13565b84602001515b90505f84610b2a57610b2584600f0b90565b610b34565b610b348460801d90565b90505f85610b4b57610b468560801d90565b610b55565b610b5585600f0b90565b90505f610b6183611829565b604051632961046560e21b81526001600160a01b0387811660048301526001600160801b039290921692507f00000000000000000000000000000000000000000000000000000000000000009091169063a5841194906024015f604051808303815f87803b158015610bd1575f80fd5b505af1158015610be3573d5f803e3d5ffd5b50610c3d9250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690507f000000000000000000000000000000000000000000000000000000000000000083610e2e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166311da60b46040518163ffffffff1660e01b81526004016020604051808303815f875af1158015610c9a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cbe919061172a565b50604051630b0d9c0960e01b81526001600160a01b0385811660048301523060248301526001600160801b03841660448301819052917f000000000000000000000000000000000000000000000000000000000000000090911690630b0d9c09906064015f604051808303815f87803b158015610d39575f80fd5b505af1158015610d4b573d5f803e3d5ffd5b5050505080604051602001610d6291815260200190565b6040516020818303038152906040529a50505050505050505050505b92915050565b6060600c805480602002602001604051908101604052809291908181526020018280548015610dda57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610dbc575b5050505050905090565b610dee8282610e68565b5050565b610e008484848460016111b2565b610e2857604051635274afe760e01b81526001600160a01b0385166004820152602401610830565b50505050565b610e3b838383600161121f565b610e6357604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b505050565b600c5481831180610e7857508082115b15610ea75760405163cee0f63d60e01b8152600481018490526024810183905260448101829052606401610830565b825b82811015610e28575f600c8281548110610ec557610ec5611741565b5f9182526020808320909101546001600160a01b0316808352908290526040909120549091508015610efe57610efb8282610f08565b50505b5050600101610ea9565b6001600160a01b0382165f90815260208190526040812081905580612710610f3261138885611856565b610f3c9190611768565b9150610f488284611755565b90505f610f536107e1565b90508360035f828254610f669190611650565b90915550505f8181526008602052604081208054869290610f88908490611650565b9091555050821561113457610fc76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168685611281565b604051633243c79160e01b8152600481018490526001600160a01b03861690633243c791906024015f604051808303815f87803b158015611006575f80fd5b505af1925050508015611017575060015b6110c7576001600160a01b0385165f9081526020819052604081208054859290611042908490611650565b925050819055508260035f82825461105a9190611755565b90915550505f818152600860205260408120805485929061107c908490611755565b90915550506040518381526001600160a01b038616907f71798a5d2916fff98cd71106bffbd9ff401474148df1244980ebc2b5c68171cb9060200160405180910390a25f9250611100565b8260045f8282546110d89190611650565b90915550505f81815260096020526040812080548592906110fa908490611650565b90915550505b6111346001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016865f611281565b8160015f8282546111459190611650565b909155505f90506111546112d3565b60408051868152602081018690529081018290524260608201529091506001600160a01b038716907ff4b6b4adf17bd8e8a3f76cda303f62f49eeb1260ce0857ff965ece2d82022e829060800160405180910390a250509250929050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661120e578383151615611202573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b61128d8383835f61141e565b610e635761129e83835f600161141e565b6112c657604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b610e3b838383600161141e565b6001545f908082036112e6575f91505090565b6040516301d7bef160e31b8152600481018290523090630ebdf788906024016020604051808303815f875af192505050801561133f575060408051601f3d908101601f1916820190925261133c9181019061172a565b60015b61137d576040518181527fce39e8fa7258cd4a4c8f312edeab51ed2316a9c2c729f87d9138192160c53ac89060200160405180910390a15f91505090565b5f6001819055508160055f8282546113959190611650565b925050819055508060065f8282546113ad9190611650565b90915550819050600a5f6113bf6107e1565b81526020019081526020015f205f8282546113da9190611650565b909155505060408051838152602081018390527f7c831355b163c428ee9cc3f5fe6bc053b07f13b9e5657cd4659450938561ecd8910160405180910390a192915050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b80356001600160a01b038116811461077b575f80fd5b5f806040838503121561148f575f80fd5b61149883611468565b946020939093013593505050565b5f602082840312156114b6575f80fd5b5035919050565b5f602082840312156114cd575f80fd5b6114d682611468565b9392505050565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610d7e82846114dd565b5f806020838503121561153f575f80fd5b823567ffffffffffffffff811115611555575f80fd5b8301601f81018513611565575f80fd5b803567ffffffffffffffff81111561157b575f80fd5b85602082840101111561158c575f80fd5b6020919091019590945092505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b602080825282518282018190525f918401906040840190835b818110156116115783516001600160a01b03168352602093840193909201916001016115ea565b509095945050505050565b5f806040838503121561162d575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610d7e57610d7e61163c565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611687575f80fd5b815167ffffffffffffffff81111561169d575f80fd5b8201601f810184136116ad575f80fd5b805167ffffffffffffffff8111156116c7576116c7611663565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156116f6576116f6611663565b60405281815282820160200186101561170d575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f6020828403121561173a575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b81810381811115610d7e57610d7e61163c565b5f8261178257634e487b7160e01b5f52601260045260245ffd5b500490565b5f600160ff1b820161179b5761179b61163c565b505f0390565b6001600160a01b038281168282160390811115610d7e57610d7e61163c565b6001600160a01b038181168382160190811115610d7e57610d7e61163c565b6117e981846114dd565b8151151560a0820152602082015160c08201526040909101516001600160a01b031660e082015261012061010082018190525f9082015261014001919050565b5f81600f0b6f7fffffffffffffffffffffffffffffff19810361184e5761184e61163c565b5f0392915050565b8082028115828204841417610d7e57610d7e61163c56fea164736f6c634300081a000a","sourceMap":"2428:11582:26:-:0;;;5178:895;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;5417:29:26;;;;:52;;-1:-1:-1;;;;;;5450:19:26;;;5417:52;:83;;;-1:-1:-1;;;;;;5473:27:26;;;5417:83;:129;;;-1:-1:-1;;;;;;5520:26:26;;;5417:129;5400:177;;;5564:13;;-1:-1:-1;;;5564:13:26;;;;;;;;;;;5400:177;-1:-1:-1;;;;;5588:40:26;;;;;;;5638:20;;;;;;;5668:28;;;;;5706:40;;;;;5781:23;;5845:42;;5882:5;5845:42;;;5864:15;5845:42;-1:-1:-1;;;;;5814:74:26;;;5929:16;:42;;5956:15;5929:42;;;5948:5;5929:42;-1:-1:-1;;;;;5898:74:26;;;-1:-1:-1;5982:29:26;;;;;;6021:45;;;;-1:-1:-1;2428:11582:26;;-1:-1:-1;;;2428:11582:26;14:177:29;93:13;;-1:-1:-1;;;;;135:31:29;;125:42;;115:70;;181:1;178;171:12;115:70;14:177;;;:::o;196:783::-;308:6;316;324;332;340;348;401:3;389:9;380:7;376:23;372:33;369:53;;;418:1;415;408:12;369:53;441:40;471:9;441:40;:::i;:::-;431:50;;500:49;545:2;534:9;530:18;500:49;:::i;:::-;490:59;;568:49;613:2;602:9;598:18;568:49;:::i;:::-;558:59;;636:49;681:2;670:9;666:18;636:49;:::i;:::-;626:59;;728:3;717:9;713:19;707:26;773:8;766:5;762:20;755:5;752:31;742:59;;797:1;794;787:12;742:59;820:5;810:15;;;870:3;859:9;855:19;849:26;920:7;917:1;906:22;897:7;894:35;884:63;;943:1;940;933:12;884:63;966:7;956:17;;;196:783;;;;;;;;:::o;:::-;2428:11582:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"608060405234801561000f575f80fd5b50600436106101dc575f3560e01c806370d8905111610109578063d80a4d4d1161009e578063efca2eed1161006e578063efca2eed1461046b578063f53507f2146103b9578063f5b91b7b14610474578063ff122cea1461049b575f80fd5b8063d80a4d4d14610409578063dc4c90d31461041c578063e29eb83614610443578063e61aa6171461044c575f80fd5b806391dd7346116100d957806391dd7346146103c2578063997664d7146103e2578063bee0d6ad146103eb578063d74d6f4014610400575f80fd5b806370d890511461037c57806375ffe734146103915780638c40baef1461039a5780638d7036de146103b9575f80fd5b8063436596c41161017f5780635c9302c91161014f5780635c9302c9146103255780635e768c3a1461032d57806363453ae11461034c5780636e9e625314610374575f80fd5b8063436596c4146102b057806346904840146102b85780634bb4c78b146102df5780634eec9e09146102fe575f80fd5b806320bd8991116101ba57806320bd89911461024d57806325d2a3f314610278578063389c4116146102a05780633f90916a146102a8575f80fd5b80630a6e0fd4146101e05780630ebdf788146101f557806316ad82d71461021b575b5f80fd5b6101f36101ee36600461147e565b6104a4565b005b6102086102033660046114a6565b610622565b6040519081526020015b60405180910390f35b61023d6102293660046114bd565b600b6020525f908152604090205460ff1681565b6040519015158152602001610212565b61026061025b3660046114a6565b610780565b6040516001600160a01b039091168152602001610212565b6102086102863660046114bd565b6001600160a01b03165f9081526020819052604090205490565b600c54610208565b6102086107ae565b6101f36107d1565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086102ed3660046114a6565b60086020525f908152604090205481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6102086107e1565b61020861033b3660046114a6565b600a6020525f908152604090205481565b61035f61035a3660046114bd565b6107ef565b60408051928352602083019190915201610212565b61020861084d565b61038461086c565b6040516102129190611520565b61020860065481565b6102086103a83660046114a6565b60076020525f908152604090205481565b61020861138881565b6103d56103d036600461152e565b610954565b604051610212919061159c565b61020860045481565b6103f3610d84565b60405161021291906115d1565b61020860055481565b6101f361041736600461161c565b610de4565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860025481565b61020861045a3660046114a6565b60096020525f908152604090205481565b61020860035481565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b61020860015481565b805f036104af575050565b6104e46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610df2565b6001600160a01b0382165f908152600b602052604090205460ff16610568576001600160a01b0382165f818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b6001600160a01b0382165f908152602081905260408120805483929061058f908490611650565b925050819055508060025f8282546105a79190611650565b9091555081905060075f6105b96107e1565b81526020019081526020015f205f8282546105d49190611650565b90915550506040805182815242602082015233916001600160a01b038516917fb02f9b42d2edd6db60b8270da46bea71d6f3ededf95f39eac71b6356c48310c0910160405180910390a35050565b5f3330146106435760405163029a949d60e31b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166348c894918360405160200161068591815260200190565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016106b0919061159c565b5f604051808303815f875af11580156106cb573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106f29190810190611677565b806020019051810190610705919061172a565b9050805f0361072757604051632274e4f360e21b815260040160405180910390fd5b61077b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610e2e565b919050565b5f600c828154811061079457610794611741565b5f918252602090912001546001600160a01b031692915050565b5f6001546003546002546107c29190611755565b6107cc9190611650565b905090565b600c546107df905f90610e68565b565b5f6107cc6201518042611768565b6001600160a01b0381165f9081526020819052604081205481908082036108395760405163edec0cc160e01b81526001600160a01b03851660048201526024015b60405180910390fd5b6108438482610f08565b9250925050915091565b5f60075f6108596107e1565b81526020019081526020015f2054905090565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152506040805160a0810182526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682527f000000000000000000000000000000000000000000000000000000000000000016602082015262ffffff7f000000000000000000000000000000000000000000000000000000000000000016918101919091527f000000000000000000000000000000000000000000000000000000000000000060020b60608201525f608082015290565b6060336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461099f5760405163570c108560e11b815260040160405180910390fd5b5f6109ac838501856114a6565b90505f6109b761086c565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316825f01516001600160a01b03161490505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3cd914c846040518060600160405280861515815260200188610a4290611787565b815260200186610a7057610a6b600173fffd8963efd1fc6a506488495d951d5263988d266117a1565b610a80565b610a806401000276a360016117c0565b6001600160a01b03168152506040518363ffffffff1660e01b8152600401610aa99291906117df565b6020604051808303815f875af1158015610ac5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae9919061172a565b90505f82610afb578360200151610afe565b83515b90505f83610b0d578451610b13565b84602001515b90505f84610b2a57610b2584600f0b90565b610b34565b610b348460801d90565b90505f85610b4b57610b468560801d90565b610b55565b610b5585600f0b90565b90505f610b6183611829565b604051632961046560e21b81526001600160a01b0387811660048301526001600160801b039290921692507f00000000000000000000000000000000000000000000000000000000000000009091169063a5841194906024015f604051808303815f87803b158015610bd1575f80fd5b505af1158015610be3573d5f803e3d5ffd5b50610c3d9250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690507f000000000000000000000000000000000000000000000000000000000000000083610e2e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166311da60b46040518163ffffffff1660e01b81526004016020604051808303815f875af1158015610c9a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cbe919061172a565b50604051630b0d9c0960e01b81526001600160a01b0385811660048301523060248301526001600160801b03841660448301819052917f000000000000000000000000000000000000000000000000000000000000000090911690630b0d9c09906064015f604051808303815f87803b158015610d39575f80fd5b505af1158015610d4b573d5f803e3d5ffd5b5050505080604051602001610d6291815260200190565b6040516020818303038152906040529a50505050505050505050505b92915050565b6060600c805480602002602001604051908101604052809291908181526020018280548015610dda57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610dbc575b5050505050905090565b610dee8282610e68565b5050565b610e008484848460016111b2565b610e2857604051635274afe760e01b81526001600160a01b0385166004820152602401610830565b50505050565b610e3b838383600161121f565b610e6357604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b505050565b600c5481831180610e7857508082115b15610ea75760405163cee0f63d60e01b8152600481018490526024810183905260448101829052606401610830565b825b82811015610e28575f600c8281548110610ec557610ec5611741565b5f9182526020808320909101546001600160a01b0316808352908290526040909120549091508015610efe57610efb8282610f08565b50505b5050600101610ea9565b6001600160a01b0382165f90815260208190526040812081905580612710610f3261138885611856565b610f3c9190611768565b9150610f488284611755565b90505f610f536107e1565b90508360035f828254610f669190611650565b90915550505f8181526008602052604081208054869290610f88908490611650565b9091555050821561113457610fc76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168685611281565b604051633243c79160e01b8152600481018490526001600160a01b03861690633243c791906024015f604051808303815f87803b158015611006575f80fd5b505af1925050508015611017575060015b6110c7576001600160a01b0385165f9081526020819052604081208054859290611042908490611650565b925050819055508260035f82825461105a9190611755565b90915550505f818152600860205260408120805485929061107c908490611755565b90915550506040518381526001600160a01b038616907f71798a5d2916fff98cd71106bffbd9ff401474148df1244980ebc2b5c68171cb9060200160405180910390a25f9250611100565b8260045f8282546110d89190611650565b90915550505f81815260096020526040812080548592906110fa908490611650565b90915550505b6111346001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016865f611281565b8160015f8282546111459190611650565b909155505f90506111546112d3565b60408051868152602081018690529081018290524260608201529091506001600160a01b038716907ff4b6b4adf17bd8e8a3f76cda303f62f49eeb1260ce0857ff965ece2d82022e829060800160405180910390a250509250929050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f5114831661120e578383151615611202573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b61128d8383835f61141e565b610e635761129e83835f600161141e565b6112c657604051635274afe760e01b81526001600160a01b0384166004820152602401610830565b610e3b838383600161141e565b6001545f908082036112e6575f91505090565b6040516301d7bef160e31b8152600481018290523090630ebdf788906024016020604051808303815f875af192505050801561133f575060408051601f3d908101601f1916820190925261133c9181019061172a565b60015b61137d576040518181527fce39e8fa7258cd4a4c8f312edeab51ed2316a9c2c729f87d9138192160c53ac89060200160405180910390a15f91505090565b5f6001819055508160055f8282546113959190611650565b925050819055508060065f8282546113ad9190611650565b90915550819050600a5f6113bf6107e1565b81526020019081526020015f205f8282546113da9190611650565b909155505060408051838152602081018390527f7c831355b163c428ee9cc3f5fe6bc053b07f13b9e5657cd4659450938561ecd8910160405180910390a192915050565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611275578383151615611269573d5f823e3d81fd5b80356001600160a01b038116811461077b575f80fd5b5f806040838503121561148f575f80fd5b61149883611468565b946020939093013593505050565b5f602082840312156114b6575f80fd5b5035919050565b5f602082840312156114cd575f80fd5b6114d682611468565b9392505050565b80516001600160a01b03908116835260208083015182169084015260408083015162ffffff169084015260608083015160020b9084015260809182015116910152565b60a08101610d7e82846114dd565b5f806020838503121561153f575f80fd5b823567ffffffffffffffff811115611555575f80fd5b8301601f81018513611565575f80fd5b803567ffffffffffffffff81111561157b575f80fd5b85602082840101111561158c575f80fd5b6020919091019590945092505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b602080825282518282018190525f918401906040840190835b818110156116115783516001600160a01b03168352602093840193909201916001016115ea565b509095945050505050565b5f806040838503121561162d575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610d7e57610d7e61163c565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611687575f80fd5b815167ffffffffffffffff81111561169d575f80fd5b8201601f810184136116ad575f80fd5b805167ffffffffffffffff8111156116c7576116c7611663565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156116f6576116f6611663565b60405281815282820160200186101561170d575f80fd5b8160208401602083015e5f91810160200191909152949350505050565b5f6020828403121561173a575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b81810381811115610d7e57610d7e61163c565b5f8261178257634e487b7160e01b5f52601260045260245ffd5b500490565b5f600160ff1b820161179b5761179b61163c565b505f0390565b6001600160a01b038281168282160390811115610d7e57610d7e61163c565b6001600160a01b038181168382160190811115610d7e57610d7e61163c565b6117e981846114dd565b8151151560a0820152602082015160c08201526040909101516001600160a01b031660e082015261012061010082018190525f9082015261014001919050565b5f81600f0b6f7fffffffffffffffffffffffffffffff19810361184e5761184e61163c565b5f0392915050565b8082028115828204841417610d7e57610d7e61163c56fea164736f6c634300081a000a","sourceMap":"2428:11582:26:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6775:484;;;;;;:::i;:::-;;:::i;:::-;;11329:350;;;;;;:::i;:::-;;:::i;:::-;;;874:25:29;;;862:2;847:18;11329:350:26;;;;;;;;4220:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1266:14:29;;1259:22;1241:41;;1229:2;1214:18;4220:48:26;1101:187:29;13551:108:26;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1457:32:29;;;1439:51;;1427:2;1412:18;13551:108:26;1293:203:29;13232:107:26;;;;;;:::i;:::-;-1:-1:-1;;;;;13317:15:26;13291:7;13317:15;;;;;;;;;;;;13232:107;13345:98;13419:10;:17;13345:98;;13761:133;;;:::i;7870:89::-;;;:::i;2975:37::-;;;;;4041:55;;;;;;:::i;:::-;;;;;;;;;;;;;;2756:38;;;;;6079:100;;;:::i;4161:52::-;;;;;;:::i;:::-;;;;;;;;;;;;;;7539:251;;;;;;:::i;:::-;;:::i;:::-;;;;1897:25:29;;;1953:2;1938:18;;1931:34;;;;1870:18;7539:251:26;1723:248:29;13900:108:26;;;:::i;6264:290::-;;;:::i;:::-;;;;;;;:::i;3944:31::-;;;;;;3982:53;;;;;;:::i;:::-;;;;;;;;;;;;;;2600:44;;2639:5;2600:44;;11721:1329;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3756:29::-;;;;;;13449:96;;;:::i;:::-;;;;;;;:::i;3850:29::-;;;;;;8039:127;;;;;;:::i;:::-;;:::i;3112:41::-;;;;;3616:29;;;;;;4102:53;;;;;;:::i;:::-;;;;;;;;;;;;;;3651:31;;;;;;2856:28;;;;;3577:32;;;;;;6775:484;6848:6;6858:1;6848:11;6844:24;;6775:484;;:::o;6844:24::-;6877:66;-1:-1:-1;;;;;6877:14:26;:31;6909:10;6929:4;6936:6;6877:31;:66::i;:::-;-1:-1:-1;;;;;6959:17:26;;;;;;:10;:17;;;;;;;;6954:109;;-1:-1:-1;;;;;6992:17:26;;;;;;:10;:17;;;;;:24;;-1:-1:-1;;6992:24:26;7012:4;6992:24;;;;;;7030:10;:22;;;;;;;;;;;;;;-1:-1:-1;;;;;;7030:22:26;;;;;;6954:109;-1:-1:-1;;;;;7073:15:26;;:8;:15;;;;;;;;;;:25;;7092:6;;7073:8;:25;;7092:6;;7073:25;:::i;:::-;;;;;;;;7126:6;7108:14;;:24;;;;;;;:::i;:::-;;;;-1:-1:-1;7174:6:26;;-1:-1:-1;7142:14:26;:28;7157:12;:10;:12::i;:::-;7142:28;;;;;;;;;;;;:38;;;;;;;:::i;:::-;;;;-1:-1:-1;;7196:56:26;;;1897:25:29;;;7236:15:26;1953:2:29;1938:18;;1931:34;7216:10:26;;-1:-1:-1;;;;;7196:56:26;;;;;1870:18:29;7196:56:26;;;;;;;6775:484;;:::o;11329:350::-;11392:17;11425:10;11447:4;11425:27;11421:50;;11461:10;;-1:-1:-1;;;11461:10:26;;;;;;;;;;;11421:50;11504:11;-1:-1:-1;;;;;11504:18:26;;11534:8;11523:20;;;;;;874:25:29;;862:2;847:18;;728:177;11523:20:26;;;;;;;;;;;;;11504:40;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;11504:40:26;;;;;;;;;;;;:::i;:::-;11493:63;;;;;;;;;;;;:::i;:::-;11481:75;;11570:9;11583:1;11570:14;11566:54;;11593:27;;-1:-1:-1;;;11593:27:26;;;;;;;;;;;11566:54;11630:42;-1:-1:-1;;;;;11630:4:26;:17;11648:12;11662:9;11630:17;:42::i;:::-;11329:350;;;:::o;13551:108::-;13609:7;13635:10;13646:5;13635:17;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;13635:17:26;;13551:108;-1:-1:-1;;13551:108:26:o;13761:133::-;13808:7;13870:17;;13851:16;;13834:14;;:33;;;;:::i;:::-;:53;;;;:::i;:::-;13827:60;;13761:133;:::o;7870:89::-;7934:10;:17;7914:38;;7931:1;;7914:16;:38::i;:::-;7870:89::o;6079:100::-;6122:7;6148:24;6166:6;6148:15;:24;:::i;7539:251::-;-1:-1:-1;;;;;7665:15:26;;7592:21;7665:15;;;;;;;;;;;7592:21;;7694:11;;;7690:50;;7714:26;;-1:-1:-1;;;7714:26:26;;-1:-1:-1;;;;;1457:32:29;;7714:26:26;;;1439:51:29;1412:18;;7714:26:26;;;;;;;;7690:50;7757:26;7769:5;7776:6;7757:11;:26::i;:::-;7750:33;;;;;7539:251;;;:::o;13900:108::-;13947:7;13973:14;:28;13988:12;:10;:12::i;:::-;13973:28;;;;;;;;;;;;13966:35;;13900:108;:::o;6264:290::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6341:206:26;;;;;;;;-1:-1:-1;;;;;6374:14:26;6341:206;;;;6413:14;6341:206;;;;;;6446:8;6341:206;;;;;;;;6481:16;6341:206;;;;;;-1:-1:-1;6341:206:26;;;;;6264:290::o;11721:1329::-;11784:12;11812:10;-1:-1:-1;;;;;11834:11:26;11812:34;;11808:63;;11855:16;;-1:-1:-1;;;11855:16:26;;;;;;;;;;;11808:63;11881:16;11900:27;;;;11911:4;11900:27;:::i;:::-;11881:46;;11938:18;11959:13;:11;:13::i;:::-;11938:34;;11982:15;12042:14;-1:-1:-1;;;;;12000:57:26;12016:3;:13;;;-1:-1:-1;;;;;12000:57:26;;11982:75;;12068:18;12089:11;-1:-1:-1;;;;;12089:16:26;;12119:3;12136:225;;;;;;;;12177:10;12136:225;;;;;;12230:8;12222:17;;;:::i;:::-;12136:225;;;;12276:10;:70;;12319:27;12345:1;2042:49:19;12319:27:26;:::i;:::-;12276:70;;;12289:27;1862:10:19;12315:1:26;12289:27;:::i;:::-;-1:-1:-1;;;;;12136:225:26;;;;12089:298;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;12068:319;;12398:22;12423:10;:42;;12452:3;:13;;;12423:42;;;12436:13;;12423:42;12398:67;;12475:21;12499:10;:42;;12528:13;;12499:42;;;12512:3;:13;;;12499:42;12475:66;;12551:17;12571:10;:46;;12602:15;:5;2303:2:20;2292:28;;2147:189;12602:15:26;12571:46;;;12584:15;:5;2107:3:20;2103:22;;1958:183;12584:15:26;12551:66;;12627:16;12646:10;:46;;12677:15;:5;2107:3:20;2103:22;;1958:183;12677:15:26;12646:46;;;12659:15;:5;2303:2:20;2292:28;;2147:189;12659:15:26;12627:65;-1:-1:-1;12703:12:26;12734:11;12735:10;12734:11;:::i;:::-;12757:31;;-1:-1:-1;;;12757:31:26;;-1:-1:-1;;;;;1457:32:29;;;12757:31:26;;;1439:51:29;-1:-1:-1;;;;;12718:29:26;;;;;-1:-1:-1;12757:11:26;:16;;;;;;1412:18:29;;12757:31:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12798:55:26;;-1:-1:-1;;;;;;;12798:14:26;:27;;-1:-1:-1;12834:11:26;12848:4;12798:27;:55::i;:::-;12863:11;-1:-1:-1;;;;;12863:18:26;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;12950:55:26;;-1:-1:-1;;;12950:55:26;;-1:-1:-1;;;;;9103:32:29;;;12950:55:26;;;9085:51:29;12989:4:26;9152:18:29;;;9145:60;-1:-1:-1;;;;;12913:27:26;;9221:18:29;;;9214:34;;;12913:27:26;12950:11;:16;;;;;;9058:18:29;;12950:55:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13034:8;13023:20;;;;;;874:25:29;;862:2;847:18;;728:177;13023:20:26;;;;;;;;;;;;;13016:27;;;;;;;;;;;;11721:1329;;;;;:::o;13449:96::-;13493:16;13528:10;13521:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;13521:17:26;;;;;;;;;;;;;;;;;;;;;;;13449:96;:::o;8039:127::-;8121:38;8138:10;8150:8;8121:16;:38::i;:::-;8039:127;;:::o;1733:232:6:-;1838:47;1856:5;1863:4;1869:2;1873:5;1880:4;1838:17;:47::i;:::-;1833:126;;1908:40;;-1:-1:-1;;;1908:40:6;;-1:-1:-1;;;;;1457:32:29;;1908:40:6;;;1439:51:29;1412:18;;1908:40:6;1293:203:29;1833:126:6;1733:232;;;;:::o;1290:204::-;1377:37;1391:5;1398:2;1402:5;1409:4;1377:13;:37::i;:::-;1372:116;;1437:40;;-1:-1:-1;;;1437:40:6;;-1:-1:-1;;;;;1457:32:29;;1437:40:6;;;1439:51:29;1412:18;;1437:40:6;1293:203:29;1372:116:6;1290:204;;;:::o;8172:521:26:-;8269:10;:17;8300:21;;;;:39;;;8336:3;8325:8;:14;8300:39;8296:91;;;8348:39;;-1:-1:-1;;;8348:39:26;;;;;9461:25:29;;;9502:18;;;9495:34;;;9545:18;;;9538:34;;;9434:18;;8348:39:26;9259:319:29;8296:91:26;8414:10;8397:290;8430:8;8426:1;:12;8397:290;;;8459:13;8475:10;8486:1;8475:13;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;8475:13:26;8519:15;;;;;;;;;;;;8475:13;;-1:-1:-1;8637:11:26;;8633:43;;8650:26;8662:5;8669:6;8650:11;:26::i;:::-;;;8633:43;-1:-1:-1;;8440:3:26;;8397:290;;8699:1685;-1:-1:-1;;;;;8845:15:26;;8785:21;8845:15;;;;;;;;;;:19;;;8785:21;2743:6;8892:21;2639:5;8892:6;:21;:::i;:::-;8891:41;;;;:::i;:::-;8875:57;-1:-1:-1;9105:22:26;8875:57;9105:6;:22;:::i;:::-;9089:38;;9138:11;9152:12;:10;:12::i;:::-;9138:26;;9194:6;9174:16;;:26;;;;;;;:::i;:::-;;;;-1:-1:-1;;9210:21:26;;;;:16;:21;;;;;:31;;9235:6;;9210:21;:31;;9235:6;;9210:31;:::i;:::-;;;;-1:-1:-1;;9299:18:26;;9295:873;;9414:49;-1:-1:-1;;;;;9414:14:26;:27;9442:5;9449:13;9414:27;:49::i;:::-;9656:57;;-1:-1:-1;;;9656:57:26;;;;;874:25:29;;;-1:-1:-1;;;;;9656:42:26;;;;;847:18:29;;9656:57:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9652:455;;-1:-1:-1;;;;;9857:15:26;;:8;:15;;;;;;;;;;:32;;9876:13;;9857:8;:32;;9876:13;;9857:32;:::i;:::-;;;;;;;;9927:13;9907:16;;:33;;;;;;;:::i;:::-;;;;-1:-1:-1;;9958:21:26;;;;:16;:21;;;;;:38;;9983:13;;9958:21;:38;;9983:13;;9958:38;:::i;:::-;;;;-1:-1:-1;;10019:38:26;;874:25:29;;;-1:-1:-1;;;;;10019:38:26;;;;;862:2:29;847:18;10019:38:26;;;;;;;10091:1;10075:17;;9652:455;;;9750:13;9732:14;;:31;;;;;;;:::i;:::-;;;;-1:-1:-1;;9781:19:26;;;;:14;:19;;;;;:36;;9804:13;;9781:19;:36;;9804:13;;9781:36;:::i;:::-;;;;-1:-1:-1;;9652:455:26;10120:37;-1:-1:-1;;;;;10120:14:26;:27;10148:5;10155:1;10120:27;:37::i;:::-;10227:13;10206:17;;:34;;;;;;;:::i;:::-;;;;-1:-1:-1;10250:16:26;;-1:-1:-1;10269:13:26;:11;:13::i;:::-;10298:79;;;9987:25:29;;;10043:2;10028:18;;10021:34;;;10071:18;;;10064:34;;;10361:15:26;10129:2:29;10114:18;;10107:34;10250:32:26;;-1:-1:-1;;;;;;10298:79:26;;;;;9974:3:29;9959:19;10298:79:26;;;;;;;8835:1549;;8699:1685;;;;;:::o;10814:1393:6:-;11109:4;11103:11;-1:-1:-1;;;10972:12:6;11127:22;;;-1:-1:-1;;;;;11175:26:6;;;11169:4;11162:40;11228:24;;11222:4;11215:38;11273:4;11266:19;;;10972:12;11349:4;10972:12;11337:4;10972:12;;11321:5;11314;11309:45;11298:56;;11566:1;11559:4;11553:11;11550:18;11541:7;11537:32;11527:606;;11698:6;11688:7;11681:15;11677:28;11674:165;;;11754:16;11748:4;11743:3;11728:43;11804:16;11799:3;11792:29;11674:165;12115:1;12107:5;12095:18;12092:25;12073:16;12066:24;12062:56;12053:7;12049:70;12038:81;;11527:606;12153:4;12146:17;-1:-1:-1;12189:1:6;12183:4;12176:15;10814:1393;;-1:-1:-1;;;;;10814:1393:6:o;9022:1244::-;9249:4;9243:11;-1:-1:-1;;;9116:12:6;9267:22;;;-1:-1:-1;;;;;9315:24:6;;9309:4;9302:38;9360:4;9353:19;;;9116:12;9436:4;9116:12;9424:4;9116:12;;9408:5;9401;9396:45;9385:56;;9653:1;9646:4;9640:11;9637:18;9628:7;9624:32;9614:606;;9785:6;9775:7;9768:15;9764:28;9761:165;;;9841:16;9835:4;9830:3;9815:43;9891:16;9886:3;9879:29;9761:165;10202:1;10194:5;10182:18;10179:25;10160:16;10153:24;10149:56;10140:7;10136:70;10125:81;;9614:606;10240:4;10233:17;-1:-1:-1;9022:1244:6;;-1:-1:-1;;;;9022:1244:6:o;5169:367::-;5261:42;5274:5;5281:7;5290:5;5297;5261:12;:42::i;:::-;5256:274;;5324:37;5337:5;5344:7;5353:1;5356:4;5324:12;:37::i;:::-;5319:91;;5370:40;;-1:-1:-1;;;5370:40:6;;-1:-1:-1;;;;;1457:32:29;;5370:40:6;;;1439:51:29;1412:18;;5370:40:6;1293:203:29;5319:91:6;5429:41;5442:5;5449:7;5458:5;5465:4;5429:12;:41::i;10646:576:26:-;10734:17;;10687:16;;10765:13;;;10761:27;;10787:1;10780:8;;;10646:576;:::o;10761:27::-;10803:32;;-1:-1:-1;;;10803:32:26;;;;;874:25:29;;;10803:4:26;;:22;;847:18:29;;10803:32:26;;;;;;;;;;;;;;;;;;;-1:-1:-1;10803:32:26;;;;;;;;-1:-1:-1;;10803:32:26;;;;;;;;;;;;:::i;:::-;;;10799:417;;11155:28;;874:25:29;;;11155:28:26;;862:2:29;847:18;11155:28:26;;;;;;;11204:1;11197:8;;;10646:576;:::o;10799:417::-;10898:1;10878:17;:21;;;;10931:8;10913:14;;:26;;;;;;;:::i;:::-;;;;;;;;10973:9;10953:16;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;11027:9:26;;-1:-1:-1;10996:13:26;:27;11010:12;:10;:12::i;:::-;10996:27;;;;;;;;;;;;:40;;;;;;;:::i;:::-;;;;-1:-1:-1;;11055:33:26;;;1897:25:29;;;1953:2;1938:18;;1931:34;;;11055:33:26;;1870:18:29;11055:33:26;;;;;;;11109:9;10646:576;-1:-1:-1;;10646:576:26:o;12706:1252:6:-;12936:4;12930:11;-1:-1:-1;;;12804:12:6;12954:22;;;-1:-1:-1;;;;;13002:29:6;;12996:4;12989:43;13052:4;13045:19;;;12804:12;13128:4;12804:12;13116:4;12804:12;;13100:5;13093;13088:45;13077:56;;13345:1;13338:4;13332:11;13329:18;13320:7;13316:32;13306:606;;13477:6;13467:7;13460:15;13456:28;13453:165;;;13533:16;13527:4;13522:3;13507:43;13583:16;13578:3;13571:29;14:173:29;82:20;;-1:-1:-1;;;;;131:31:29;;121:42;;111:70;;177:1;174;167:12;192:300;260:6;268;321:2;309:9;300:7;296:23;292:32;289:52;;;337:1;334;327:12;289:52;360:29;379:9;360:29;:::i;:::-;350:39;458:2;443:18;;;;430:32;;-1:-1:-1;;;192:300:29:o;497:226::-;556:6;609:2;597:9;588:7;584:23;580:32;577:52;;;625:1;622;615:12;577:52;-1:-1:-1;670:23:29;;497:226;-1:-1:-1;497:226:29:o;910:186::-;969:6;1022:2;1010:9;1001:7;997:23;993:32;990:52;;;1038:1;1035;1028:12;990:52;1061:29;1080:9;1061:29;:::i;:::-;1051:39;910:186;-1:-1:-1;;;910:186:29:o;1976:424::-;2053:12;;-1:-1:-1;;;;;2049:38:29;;;2037:51;;2141:4;2130:16;;;2124:23;2120:49;;2104:14;;;2097:73;2223:4;2212:16;;;2206:23;2231:8;2202:38;2186:14;;;2179:62;2304:4;2293:16;;;2287:23;2284:1;2273:38;2257:14;;;2250:62;2365:4;2354:16;;;2348:23;2344:49;2328:14;;2321:73;1976:424::o;2405:247::-;2589:3;2574:19;;2602:44;2578:9;2628:6;2602:44;:::i;2657:586::-;2727:6;2735;2788:2;2776:9;2767:7;2763:23;2759:32;2756:52;;;2804:1;2801;2794:12;2756:52;2844:9;2831:23;2877:18;2869:6;2866:30;2863:50;;;2909:1;2906;2899:12;2863:50;2932:22;;2985:4;2977:13;;2973:27;-1:-1:-1;2963:55:29;;3014:1;3011;3004:12;2963:55;3054:2;3041:16;3080:18;3072:6;3069:30;3066:50;;;3112:1;3109;3102:12;3066:50;3157:7;3152:2;3143:6;3139:2;3135:15;3131:24;3128:37;3125:57;;;3178:1;3175;3168:12;3125:57;3209:2;3201:11;;;;;3231:6;;-1:-1:-1;2657:586:29;-1:-1:-1;;;2657:586:29:o;3248:416::-;3395:2;3384:9;3377:21;3358:4;3427:6;3421:13;3470:6;3465:2;3454:9;3450:18;3443:34;3529:6;3524:2;3516:6;3512:15;3507:2;3496:9;3492:18;3486:50;3585:1;3580:2;3571:6;3560:9;3556:22;3552:31;3545:42;3655:2;3648;3644:7;3639:2;3631:6;3627:15;3623:29;3612:9;3608:45;3604:54;3596:62;;;3248:416;;;;:::o;3669:637::-;3859:2;3871:21;;;3941:13;;3844:18;;;3963:22;;;3811:4;;4042:15;;;4016:2;4001:18;;;3811:4;4085:195;4099:6;4096:1;4093:13;4085:195;;;4164:13;;-1:-1:-1;;;;;4160:39:29;4148:52;;4229:2;4255:15;;;;4220:12;;;;4196:1;4114:9;4085:195;;;-1:-1:-1;4297:3:29;;3669:637;-1:-1:-1;;;;;3669:637:29:o;4311:346::-;4379:6;4387;4440:2;4428:9;4419:7;4415:23;4411:32;4408:52;;;4456:1;4453;4446:12;4408:52;-1:-1:-1;;4501:23:29;;;4621:2;4606:18;;;4593:32;;-1:-1:-1;4311:346:29:o;4891:127::-;4952:10;4947:3;4943:20;4940:1;4933:31;4983:4;4980:1;4973:15;5007:4;5004:1;4997:15;5023:125;5088:9;;;5109:10;;;5106:36;;;5122:18;;:::i;5153:127::-;5214:10;5209:3;5205:20;5202:1;5195:31;5245:4;5242:1;5235:15;5269:4;5266:1;5259:15;5285:934;5364:6;5417:2;5405:9;5396:7;5392:23;5388:32;5385:52;;;5433:1;5430;5423:12;5385:52;5466:9;5460:16;5499:18;5491:6;5488:30;5485:50;;;5531:1;5528;5521:12;5485:50;5554:22;;5607:4;5599:13;;5595:27;-1:-1:-1;5585:55:29;;5636:1;5633;5626:12;5585:55;5669:2;5663:9;5695:18;5687:6;5684:30;5681:56;;;5717:18;;:::i;:::-;5766:2;5760:9;5858:2;5820:17;;-1:-1:-1;;5816:31:29;;;5849:2;5812:40;5808:54;5796:67;;5893:18;5878:34;;5914:22;;;5875:62;5872:88;;;5940:18;;:::i;:::-;5976:2;5969:22;6000;;;6041:15;;;6058:2;6037:24;6034:37;-1:-1:-1;6031:57:29;;;6084:1;6081;6074:12;6031:57;6133:6;6128:2;6124;6120:11;6115:2;6107:6;6103:15;6097:43;6186:1;6160:19;;;6181:2;6156:28;6149:39;;;;6164:6;5285:934;-1:-1:-1;;;;5285:934:29:o;6224:184::-;6294:6;6347:2;6335:9;6326:7;6322:23;6318:32;6315:52;;;6363:1;6360;6353:12;6315:52;-1:-1:-1;6386:16:29;;6224:184;-1:-1:-1;6224:184:29:o;6413:127::-;6474:10;6469:3;6465:20;6462:1;6455:31;6505:4;6502:1;6495:15;6529:4;6526:1;6519:15;6545:128;6612:9;;;6633:11;;;6630:37;;;6647:18;;:::i;6678:217::-;6718:1;6744;6734:132;;6788:10;6783:3;6779:20;6776:1;6769:31;6823:4;6820:1;6813:15;6851:4;6848:1;6841:15;6734:132;-1:-1:-1;6880:9:29;;6678:217::o;6900:136::-;6935:3;-1:-1:-1;;;6956:22:29;;6953:48;;6981:18;;:::i;:::-;-1:-1:-1;7021:1:29;7017:13;;6900:136::o;7041:198::-;-1:-1:-1;;;;;7141:27:29;;;7112;;;7108:61;;7181:29;;7178:55;;;7213:18;;:::i;7244:195::-;-1:-1:-1;;;;;7313:27:29;;;7342;;;7309:61;;7382:28;;7379:54;;;7413:18;;:::i;7444:728::-;7789:44;7823:9;7815:6;7789:44;:::i;:::-;7884:13;;7877:21;7870:29;7864:3;7849:19;;7842:58;7955:4;7943:17;;7937:24;7931:3;7916:19;;7909:53;8021:4;8009:17;;;8003:24;-1:-1:-1;;;;;7999:50:29;7993:3;7978:19;;7971:79;8087:3;8081;8066:19;;8059:32;;;-1:-1:-1;8107:19:29;;;8100:30;8162:3;8147:19;;7444:728;-1:-1:-1;7444:728:29:o;8399:213::-;8434:3;8482:5;8478:2;8467:21;8516:34;8512:39;8503:7;8500:52;8497:78;;8555:18;;:::i;:::-;8595:1;8591:15;;8399:213;-1:-1:-1;;8399:213:29:o;9583:168::-;9656:9;;;9687;;9704:15;;;9698:22;;9684:37;9674:71;;9725:18;;:::i","linkReferences":{},"immutableReferences":{"3010":[{"start":771,"length":32},{"start":1212,"length":32},{"start":2492,"length":32},{"start":3060,"length":32},{"start":4000,"length":32},{"start":4365,"length":32}],"3014":[{"start":1145,"length":32},{"start":1844,"length":32}],"3017":[{"start":701,"length":32},{"start":1878,"length":32}],"3021":[{"start":1057,"length":32},{"start":1605,"length":32},{"start":2401,"length":32},{"start":2551,"length":32},{"start":2958,"length":32},{"start":3096,"length":32},{"start":3135,"length":32},{"start":3318,"length":32}],"3024":[{"start":2219,"length":32}],"3027":[{"start":2256,"length":32}],"3029":[{"start":2299,"length":32}],"3031":[{"start":2340,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"collectedOnDay(uint256)","signatureHash4":"0x8c40baef","signatureHash32":"0x8c40baef881b646da925a9890441a899530c69ca4e3b4ee77cff2afe9f47f735"},{"signature":"corePoolKey()","signatureHash4":"0x70d89051","signatureHash32":"0x70d890519006719d7257e5cab9f895b5165f9595a108b1143a7e6956dade7e42"},{"signature":"currentDay()","signatureHash4":"0x5c9302c9","signatureHash32":"0x5c9302c9a8205c6b8ef0c76dd125de585b87489780ec737f30bcd14bcded00fa"},{"signature":"dailyRevenue()","signatureHash4":"0x6e9e6253","signatureHash32":"0x6e9e6253231e3e26b95d689bdf60967d910416a4be2c409d2913aa4462083987"},{"signature":"distribute(address)","signatureHash4":"0x63453ae1","signatureHash32":"0x63453ae1433664ce75e0ad264c693c068775faeefa746548185b0c6d4163fd7f"},{"signature":"distributeAll()","signatureHash4":"0x436596c4","signatureHash32":"0x436596c49fec62f7254ad7e71edcaf9096ae35badaf179155ad9850879fdf17c"},{"signature":"distributedOnDay(uint256)","signatureHash4":"0x4bb4c78b","signatureHash32":"0x4bb4c78bf131c9c4154601829c6c0ea7b7d4bc7f4de2d70676656bd31c590638"},{"signature":"distributeRange(uint256,uint256)","signatureHash4":"0xd80a4d4d","signatureHash32":"0xd80a4d4d606ee94e93bbc0fa374df72d447c74b3f48ac37ebbe92860eb35015b"},{"signature":"DIVIDEND_BPS()","signatureHash4":"0x8d7036de","signatureHash32":"0x8d7036de4b6d030f546138ef173a5d84d2d70d9d64d9cc18721f7db9becb4b7b"},{"signature":"dividendsOnDay(uint256)","signatureHash4":"0xe61aa617","signatureHash32":"0xe61aa61784cf112132fb56ef42b3bf4c2bc1d9b14fe8c4b310e18b708fdd4131"},{"signature":"executeConversion(uint256)","signatureHash4":"0x0ebdf788","signatureHash32":"0x0ebdf78823d3ecdf764a397af9d609aa90c6df5a587748f84d8499c6876bae52"},{"signature":"feeRecipient()","signatureHash4":"0x46904840","signatureHash32":"0x46904840b6b05d7bd13973931bbfab50fdf290a35cb7abbfdd5a1d4a81b1e8e8"},{"signature":"feeTokenAt(uint256)","signatureHash4":"0x20bd8991","signatureHash32":"0x20bd8991f96d1dbef6d4a38a5e57fb9a47c43bc27e9a1c6cf955c550f48c4b45"},{"signature":"feeTokenCount()","signatureHash4":"0x389c4116","signatureHash32":"0x389c4116ad00dcb4b5c9abd3a082adf94d4773794ac03b288488d3c7f8eef0a9"},{"signature":"feeTokens()","signatureHash4":"0xbee0d6ad","signatureHash32":"0xbee0d6ad4f9287d83a20c8d91b06c3c318e2337cea431f62307509d634f5974e"},{"signature":"isFeeToken(address)","signatureHash4":"0x16ad82d7","signatureHash32":"0x16ad82d7721b829231360fbff3ae34d7db5acd254abc5d69abc031774dd1ed3f"},{"signature":"OPERATOR_BPS()","signatureHash4":"0xf53507f2","signatureHash32":"0xf53507f2359b6bfb73ad1492d8c423711921323842c3efcf6af46970a336ff6e"},{"signature":"operatorOnDay(uint256)","signatureHash4":"0x5e768c3a","signatureHash32":"0x5e768c3a6b94032b0f5caba32324f7c6b00ff02dcbc2452b407513845ae856ce"},{"signature":"operatorReceived()","signatureHash4":"0x75ffe734","signatureHash32":"0x75ffe7343bacd780d90e93d56089b3f891ea8c714acfce49b9872050e3f5af18"},{"signature":"pendingConversion()","signatureHash4":"0xff122cea","signatureHash32":"0xff122cea1c91ac6c326cd808392fa70d09a8c2f7c4ad8cad5c0e72f9376a1f63"},{"signature":"pendingFees(address)","signatureHash4":"0x25d2a3f3","signatureHash32":"0x25d2a3f3c960121f21a07be1f064c89ffdab67eb59e06530ac5938e678059788"},{"signature":"poolManager()","signatureHash4":"0xdc4c90d3","signatureHash32":"0xdc4c90d3c2342c5afe26871a21a4ecf482fcb45ae1ac8294d1dcff7a134352c0"},{"signature":"recordFee(address,uint256)","signatureHash4":"0x0a6e0fd4","signatureHash32":"0x0a6e0fd48df475205ae244a0ff055731d3dd1183af8b9dd13c34ef04d821089b"},{"signature":"stockConverted()","signatureHash4":"0xd74d6f40","signatureHash32":"0xd74d6f40951ca3d923ea0501d7063d33b887f1599ec0945b1416e2d9c0b4cb74"},{"signature":"tokenizedStock()","signatureHash4":"0x4eec9e09","signatureHash32":"0x4eec9e09e31199c5c42576aff183626ca7e66b2b1c8be0238c9c2b909ac02401"},{"signature":"totalCollected()","signatureHash4":"0xe29eb836","signatureHash32":"0xe29eb836579abfec6d7baf79ddb133772fb79e6129454e387f1f9542a21444db"},{"signature":"totalDistributed()","signatureHash4":"0xefca2eed","signatureHash32":"0xefca2eed654bb4a83d5ea8a1d7692af546eaec62b9fa8389a76ab5fa332a78fc"},{"signature":"totalDividends()","signatureHash4":"0x997664d7","signatureHash32":"0x997664d7625127c729fa7f32439aaff99e301459a5f091527a675d99139c684a"},{"signature":"totalPending()","signatureHash4":"0x3f90916a","signatureHash32":"0x3f90916af74fda6807270cfab35afc14623d1ef84dc7a10091fdfb2fe7a55ea7"},{"signature":"unlockCallback(bytes)","signatureHash4":"0x91dd7346","signatureHash32":"0x91dd7346410d7d3e1561ab65859d8ebbee84f666c7eb10ddc6d9424bc35ec2ee"},{"signature":"usdg()","signatureHash4":"0xf5b91b7b","signatureHash32":"0xf5b91b7b903127e0965b789c058e9dcf2bd05a9536f450b688499af17e4f918d"}],"event":[{"signature":"ConversionDeferred(uint256)","signatureHash4":"0xce39e8fa","signatureHash32":"0xce39e8fa7258cd4a4c8f312edeab51ed2316a9c2c729f87d9138192160c53ac8"},{"signature":"DividendDeferred(address,uint256)","signatureHash4":"0x71798a5d","signatureHash32":"0x71798a5d2916fff98cd71106bffbd9ff401474148df1244980ebc2b5c68171cb"},{"signature":"FeesDistributed(address,uint256,uint256,uint256,uint256)","signatureHash4":"0xf4b6b4ad","signatureHash32":"0xf4b6b4adf17bd8e8a3f76cda303f62f49eeb1260ce0857ff965ece2d82022e82"},{"signature":"FeesRecorded(address,address,uint256,uint256)","signatureHash4":"0xb02f9b42","signatureHash32":"0xb02f9b42d2edd6db60b8270da46bea71d6f3ededf95f39eac71b6356c48310c0"},{"signature":"OperatorPaid(uint256,uint256)","signatureHash4":"0x7c831355","signatureHash32":"0x7c831355b163c428ee9cc3f5fe6bc053b07f13b9e5657cd4659450938561ecd8"}],"error":[{"signature":"ConversionReturnedNothing()","signatureHash4":"0x89d393cc","signatureHash32":"0x89d393ccbb88d2d337bb93043c28bcf3f4898de966b15446f1e480fec943c1e0"},{"signature":"InvalidRange(uint256,uint256,uint256)","signatureHash4":"0xcee0f63d","signatureHash32":"0xcee0f63dc5d53708446471ad52bcc8852505df6de1f23859119a12cbf179d918"},{"signature":"NothingToDistribute(address)","signatureHash4":"0xedec0cc1","signatureHash32":"0xedec0cc16088c36332ea33f451320ba8518668fee94e8c88d80dc7c50ff269ba"},{"signature":"NotPoolManager()","signatureHash4":"0xae18210a","signatureHash32":"0xae18210ab62e9620e84799499bafdb3202a30943ba8cb533c4bac9cdc8ced60b"},{"signature":"OnlySelf()","signatureHash4":"0x14d4a4e8","signatureHash32":"0x14d4a4e8a5140da60b7a280478fb427da973ca582a83cf5dbad8c5f2abee9ba4"},{"signature":"SafeERC20FailedOperation(address)","signatureHash4":"0x5274afe7","signatureHash32":"0x5274afe73c98b4749fc91ffae6b7b574e7842cb2144a159e9377a5f20b32edf9"},{"signature":"ZeroAddress()","signatureHash4":"0xd92e233d","signatureHash32":"0xd92e233df2717d4a40030e20904abd27b68fcbeede117eaaccbbdac9618c8c73"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"match","chainId":"4663","address":"0x36767386Fc48bc3AA9b35a378177A1254D9EeDDf"}