{"matchId":"48783466","creationMatch":"match","runtimeMatch":"match","verifiedAt":"2026-09-10T21:05:59Z","creationBytecode":{"onchainBytecode":"0x60c0346100a057601f610b7538819003918201601f19168301916001600160401b038311848410176100a45780849260409485528339810103126100a0578051906001600160a01b03821682036100a05760200151906001600160a01b03821682036100a05760805260a052604051610abc90816100b98239608051818181605a0152818161042e0152610737015260a0518181816106a9015261089d0152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608080604052600436101561001c575b50361561001a575f80fd5b005b5f905f3560e01c9081636afdd8501461088b575080639edf87a31461008c5763e8dd7fc30361000f57346100895780600319360112610089576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b80fd5b50366003190161016081126107c65760a0136107c65760a435801515918282036107c657610124356001600160a01b0381169360e435939060c4358684036107c6576101443567ffffffffffffffff81116107c657366023820112156107c65780600401359067ffffffffffffffff82116107c65736602483830101116107c657604051600160fc1b6020820152600181529261012a6021856108e8565b60408051959061013a81886108e8565b60018752601f19015f5b81811061087a575050604051600360f91b6020820152600360fa1b6021820152600f60f81b6022820152600381529361017e6023866108e8565b60405193608061018e81876108e8565b60038652601f19015f5b818110610855575050604051906101ae826108cc565b604051906101bb826108cc565b6004356001600160a01b03811681036107c65782526024356001600160a01b03811681036107c657602083015260443562ffffff811681036107c65760408301526064358060020b81036107c6576060830152608435916001600160a01b03831683036107c6578e6fffffffffffffffffffffffffffffffff6103269683610318966080849601528752602087019889525f60206040890192848d1684528460608b01961686528060246040519961027c85601f19601f860116018c6108e8565b828b5201838a013787010152608087019485526040519889976020808a01525160018060a01b0381511660408a015260018060a01b0360208201511660608a015262ffffff60408201511660808a0152606081015160020b60a08a0152608060018060a01b039101511660c089015251151560e0880152511661010086015251166101208401525161012061014084015261016083019061090a565b03601f1981018352826108e8565b61032f8361092e565b526103398261092e565b50851561084757610348610985565b955b156108395761035761096f565b955b604080516001600160a01b038316602082015290810183905261037f8160608101610318565b6103888461094f565b526103928361094f565b50604080516001600160a01b03891660208201529081018b90526103b98160608101610318565b6103c28461095f565b526103cc8361095f565b506001600160a01b03168061066157505034156106525761040691610318610418925b60405194859360406020860152606085019061090a565b838103601f190160408501529061099b565b6104218361092e565b5261042b8261092e565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690813b1561064e5791859161048d61049f9460405195869485938493630d64d59360e21b855260606004860152606485019061090a565b8381036003190160248501529061099b565b610104356044830152039134905af180156106435790849161062a575b50506104c7816109f3565b9380851061061357506001600160a01b038116908161055b5750508180808581945af1156104fd5750602091505b604051908152f35b9050601f19601f3d011690604051926390bfb86560e01b84526004840152806024840152608060448401528160a00160648401523d60848401523d9060a484013e808201600460a482015260c4633d2cec6f60e21b91015260e40190fd5b91509360406020846044819482855197889263a9059cbb60e01b845260048401528a60248401525af13d15601f3d116001855114161716928281528260208201520152156105ad5750602091506104f5565b6040516390bfb86560e01b8152600481019390935263a9059cbb60e01b602484015260806044840152601f3d01601f191660a0810160648501523d608485015291503d9060a484013e808201600460a482015260c4633c9fd93960e21b91015260e40190fd5b63d28d3eb560e01b84526004859052602452604483fd5b81610634916108e8565b61063f57825f6104bc565b8280fd5b6040513d86823e3d90fd5b8580fd5b632a9ffab760e21b8752600487fd5b3461082a576106a06040516323b872dd60e01b60208201523360248201523060448201528360648201526064815261069a6084826108e8565b82610a64565b60018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169160405160205f81830163095ea7b360e01b8152866024850152846044850152604484526106f86064856108e8565b83519082875af15f513d8261080e575b5050156107ca575b50823b156107c6576040516387517c4560e01b815260048101929092526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602484015216604482015265ffffffffffff6064820152905f908290608490829084905af180156107bb57610799575b5061040691610318610418926103ef565b610418919750916107ad5f610406946108e8565b6103185f9892505091610788565b6040513d5f823e3d90fd5b5f80fd5b6108089061080260405163095ea7b360e01b60208201528660248201525f6044820152604481526107fc6064826108e8565b85610a64565b83610a64565b5f610710565b9091506108225750823b15155b5f80610708565b60011461081b565b632a9ffab760e21b5f5260045ffd5b610841610985565b95610359565b61084f61096f565b9561034a565b806060602080938a01015201610198565b634e487b7160e01b5f52604160045260245ffd5b806060602080938b01015201610144565b346107c6575f3660031901126107c6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b60a0810190811067ffffffffffffffff82111761086657604052565b90601f8019910116810190811067ffffffffffffffff82111761086657604052565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b80511561093b5760200190565b634e487b7160e01b5f52603260045260245ffd5b80516001101561093b5760400190565b80516002101561093b5760600190565b6024356001600160a01b03811681036107c65790565b6004356001600160a01b03811681036107c65790565b9080602083519182815201916020808360051b8301019401925f915b8383106109c657505050505090565b90919293946020806109e4600193601f19868203018752895161090a565b970193019301919392906109b7565b6001600160a01b031680610a0657504790565b6020602491604051928380926370a0823160e01b82523060048301525afa9081156107bb575f91610a35575090565b90506020813d602011610a5c575b81610a50602093836108e8565b810103126107c6575190565b3d9150610a43565b905f602091828151910182855af1156107bb575f513d610ab357506001600160a01b0381163b155b610a935750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b60011415610a8c5600000000000000000000000066a9893cc07d91d95644aedd05d03f95e1dba8af000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3","recompiledBytecode":"0x60c0346100a057601f610b7538819003918201601f19168301916001600160401b038311848410176100a45780849260409485528339810103126100a0578051906001600160a01b03821682036100a05760200151906001600160a01b03821682036100a05760805260a052604051610abc90816100b98239608051818181605a0152818161042e0152610737015260a0518181816106a9015261089d0152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608080604052600436101561001c575b50361561001a575f80fd5b005b5f905f3560e01c9081636afdd8501461088b575080639edf87a31461008c5763e8dd7fc30361000f57346100895780600319360112610089576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b80fd5b50366003190161016081126107c65760a0136107c65760a435801515918282036107c657610124356001600160a01b0381169360e435939060c4358684036107c6576101443567ffffffffffffffff81116107c657366023820112156107c65780600401359067ffffffffffffffff82116107c65736602483830101116107c657604051600160fc1b6020820152600181529261012a6021856108e8565b60408051959061013a81886108e8565b60018752601f19015f5b81811061087a575050604051600360f91b6020820152600360fa1b6021820152600f60f81b6022820152600381529361017e6023866108e8565b60405193608061018e81876108e8565b60038652601f19015f5b818110610855575050604051906101ae826108cc565b604051906101bb826108cc565b6004356001600160a01b03811681036107c65782526024356001600160a01b03811681036107c657602083015260443562ffffff811681036107c65760408301526064358060020b81036107c6576060830152608435916001600160a01b03831683036107c6578e6fffffffffffffffffffffffffffffffff6103269683610318966080849601528752602087019889525f60206040890192848d1684528460608b01961686528060246040519961027c85601f19601f860116018c6108e8565b828b5201838a013787010152608087019485526040519889976020808a01525160018060a01b0381511660408a015260018060a01b0360208201511660608a015262ffffff60408201511660808a0152606081015160020b60a08a0152608060018060a01b039101511660c089015251151560e0880152511661010086015251166101208401525161012061014084015261016083019061090a565b03601f1981018352826108e8565b61032f8361092e565b526103398261092e565b50851561084757610348610985565b955b156108395761035761096f565b955b604080516001600160a01b038316602082015290810183905261037f8160608101610318565b6103888461094f565b526103928361094f565b50604080516001600160a01b03891660208201529081018b90526103b98160608101610318565b6103c28461095f565b526103cc8361095f565b506001600160a01b03168061066157505034156106525761040691610318610418925b60405194859360406020860152606085019061090a565b838103601f190160408501529061099b565b6104218361092e565b5261042b8261092e565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690813b1561064e5791859161048d61049f9460405195869485938493630d64d59360e21b855260606004860152606485019061090a565b8381036003190160248501529061099b565b610104356044830152039134905af180156106435790849161062a575b50506104c7816109f3565b9380851061061357506001600160a01b038116908161055b5750508180808581945af1156104fd5750602091505b604051908152f35b9050601f19601f3d011690604051926390bfb86560e01b84526004840152806024840152608060448401528160a00160648401523d60848401523d9060a484013e808201600460a482015260c4633d2cec6f60e21b91015260e40190fd5b91509360406020846044819482855197889263a9059cbb60e01b845260048401528a60248401525af13d15601f3d116001855114161716928281528260208201520152156105ad5750602091506104f5565b6040516390bfb86560e01b8152600481019390935263a9059cbb60e01b602484015260806044840152601f3d01601f191660a0810160648501523d608485015291503d9060a484013e808201600460a482015260c4633c9fd93960e21b91015260e40190fd5b63d28d3eb560e01b84526004859052602452604483fd5b81610634916108e8565b61063f57825f6104bc565b8280fd5b6040513d86823e3d90fd5b8580fd5b632a9ffab760e21b8752600487fd5b3461082a576106a06040516323b872dd60e01b60208201523360248201523060448201528360648201526064815261069a6084826108e8565b82610a64565b60018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169160405160205f81830163095ea7b360e01b8152866024850152846044850152604484526106f86064856108e8565b83519082875af15f513d8261080e575b5050156107ca575b50823b156107c6576040516387517c4560e01b815260048101929092526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602484015216604482015265ffffffffffff6064820152905f908290608490829084905af180156107bb57610799575b5061040691610318610418926103ef565b610418919750916107ad5f610406946108e8565b6103185f9892505091610788565b6040513d5f823e3d90fd5b5f80fd5b6108089061080260405163095ea7b360e01b60208201528660248201525f6044820152604481526107fc6064826108e8565b85610a64565b83610a64565b5f610710565b9091506108225750823b15155b5f80610708565b60011461081b565b632a9ffab760e21b5f5260045ffd5b610841610985565b95610359565b61084f61096f565b9561034a565b806060602080938a01015201610198565b634e487b7160e01b5f52604160045260245ffd5b806060602080938b01015201610144565b346107c6575f3660031901126107c6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b60a0810190811067ffffffffffffffff82111761086657604052565b90601f8019910116810190811067ffffffffffffffff82111761086657604052565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b80511561093b5760200190565b634e487b7160e01b5f52603260045260245ffd5b80516001101561093b5760400190565b80516002101561093b5760600190565b6024356001600160a01b03811681036107c65790565b6004356001600160a01b03811681036107c65790565b9080602083519182815201916020808360051b8301019401925f915b8383106109c657505050505090565b90919293946020806109e4600193601f19868203018752895161090a565b970193019301919392906109b7565b6001600160a01b031680610a0657504790565b6020602491604051928380926370a0823160e01b82523060048301525afa9081156107bb575f91610a35575090565b90506020813d602011610a5c575b81610a50602093836108e8565b810103126107c6575190565b3d9150610a43565b905f602091828151910182855af1156107bb575f513d610ab357506001600160a01b0381163b155b610a935750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b60011415610a8c56","sourceMap":"770:2994:30:-:0;;;;;;;;;;;;;-1:-1:-1;;770:2994:30;;;;-1:-1:-1;;;;;770:2994:30;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;770:2994:30;;;;;;;;;;-1:-1:-1;;;;;770:2994:30;;;;;;1113:34;;1157:17;;770:2994;;;;;;;;1113:34;770:2994;;;;;;;;;;;;;;;1157:17;770:2994;;;;;;;;;;;;-1:-1:-1;770:2994:30;;;;;;-1:-1:-1;770:2994:30;;;;;-1:-1:-1;770:2994:30","linkReferences":{},"cborAuxdata":{},"transformations":[{"type":"insert","offset":2933,"reason":"constructorArguments"}],"transformationValues":{"constructorArguments":"0x00000000000000000000000066a9893cc07d91d95644aedd05d03f95e1dba8af000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3"}},"runtimeBytecode":{"onchainBytecode":"0x608080604052600436101561001c575b50361561001a575f80fd5b005b5f905f3560e01c9081636afdd8501461088b575080639edf87a31461008c5763e8dd7fc30361000f57346100895780600319360112610089576040517f00000000000000000000000066a9893cc07d91d95644aedd05d03f95e1dba8af6001600160a01b03168152602090f35b80fd5b50366003190161016081126107c65760a0136107c65760a435801515918282036107c657610124356001600160a01b0381169360e435939060c4358684036107c6576101443567ffffffffffffffff81116107c657366023820112156107c65780600401359067ffffffffffffffff82116107c65736602483830101116107c657604051600160fc1b6020820152600181529261012a6021856108e8565b60408051959061013a81886108e8565b60018752601f19015f5b81811061087a575050604051600360f91b6020820152600360fa1b6021820152600f60f81b6022820152600381529361017e6023866108e8565b60405193608061018e81876108e8565b60038652601f19015f5b818110610855575050604051906101ae826108cc565b604051906101bb826108cc565b6004356001600160a01b03811681036107c65782526024356001600160a01b03811681036107c657602083015260443562ffffff811681036107c65760408301526064358060020b81036107c6576060830152608435916001600160a01b03831683036107c6578e6fffffffffffffffffffffffffffffffff6103269683610318966080849601528752602087019889525f60206040890192848d1684528460608b01961686528060246040519961027c85601f19601f860116018c6108e8565b828b5201838a013787010152608087019485526040519889976020808a01525160018060a01b0381511660408a015260018060a01b0360208201511660608a015262ffffff60408201511660808a0152606081015160020b60a08a0152608060018060a01b039101511660c089015251151560e0880152511661010086015251166101208401525161012061014084015261016083019061090a565b03601f1981018352826108e8565b61032f8361092e565b526103398261092e565b50851561084757610348610985565b955b156108395761035761096f565b955b604080516001600160a01b038316602082015290810183905261037f8160608101610318565b6103888461094f565b526103928361094f565b50604080516001600160a01b03891660208201529081018b90526103b98160608101610318565b6103c28461095f565b526103cc8361095f565b506001600160a01b03168061066157505034156106525761040691610318610418925b60405194859360406020860152606085019061090a565b838103601f190160408501529061099b565b6104218361092e565b5261042b8261092e565b507f00000000000000000000000066a9893cc07d91d95644aedd05d03f95e1dba8af6001600160a01b031690813b1561064e5791859161048d61049f9460405195869485938493630d64d59360e21b855260606004860152606485019061090a565b8381036003190160248501529061099b565b610104356044830152039134905af180156106435790849161062a575b50506104c7816109f3565b9380851061061357506001600160a01b038116908161055b5750508180808581945af1156104fd5750602091505b604051908152f35b9050601f19601f3d011690604051926390bfb86560e01b84526004840152806024840152608060448401528160a00160648401523d60848401523d9060a484013e808201600460a482015260c4633d2cec6f60e21b91015260e40190fd5b91509360406020846044819482855197889263a9059cbb60e01b845260048401528a60248401525af13d15601f3d116001855114161716928281528260208201520152156105ad5750602091506104f5565b6040516390bfb86560e01b8152600481019390935263a9059cbb60e01b602484015260806044840152601f3d01601f191660a0810160648501523d608485015291503d9060a484013e808201600460a482015260c4633c9fd93960e21b91015260e40190fd5b63d28d3eb560e01b84526004859052602452604483fd5b81610634916108e8565b61063f57825f6104bc565b8280fd5b6040513d86823e3d90fd5b8580fd5b632a9ffab760e21b8752600487fd5b3461082a576106a06040516323b872dd60e01b60208201523360248201523060448201528360648201526064815261069a6084826108e8565b82610a64565b60018060a01b037f000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3169160405160205f81830163095ea7b360e01b8152866024850152846044850152604484526106f86064856108e8565b83519082875af15f513d8261080e575b5050156107ca575b50823b156107c6576040516387517c4560e01b815260048101929092526001600160a01b037f00000000000000000000000066a9893cc07d91d95644aedd05d03f95e1dba8af8116602484015216604482015265ffffffffffff6064820152905f908290608490829084905af180156107bb57610799575b5061040691610318610418926103ef565b610418919750916107ad5f610406946108e8565b6103185f9892505091610788565b6040513d5f823e3d90fd5b5f80fd5b6108089061080260405163095ea7b360e01b60208201528660248201525f6044820152604481526107fc6064826108e8565b85610a64565b83610a64565b5f610710565b9091506108225750823b15155b5f80610708565b60011461081b565b632a9ffab760e21b5f5260045ffd5b610841610985565b95610359565b61084f61096f565b9561034a565b806060602080938a01015201610198565b634e487b7160e01b5f52604160045260245ffd5b806060602080938b01015201610144565b346107c6575f3660031901126107c6577f000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba36001600160a01b03168152602090f35b60a0810190811067ffffffffffffffff82111761086657604052565b90601f8019910116810190811067ffffffffffffffff82111761086657604052565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b80511561093b5760200190565b634e487b7160e01b5f52603260045260245ffd5b80516001101561093b5760400190565b80516002101561093b5760600190565b6024356001600160a01b03811681036107c65790565b6004356001600160a01b03811681036107c65790565b9080602083519182815201916020808360051b8301019401925f915b8383106109c657505050505090565b90919293946020806109e4600193601f19868203018752895161090a565b970193019301919392906109b7565b6001600160a01b031680610a0657504790565b6020602491604051928380926370a0823160e01b82523060048301525afa9081156107bb575f91610a35575090565b90506020813d602011610a5c575b81610a50602093836108e8565b810103126107c6575190565b3d9150610a43565b905f602091828151910182855af1156107bb575f513d610ab357506001600160a01b0381163b155b610a935750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b60011415610a8c56","recompiledBytecode":"0x608080604052600436101561001c575b50361561001a575f80fd5b005b5f905f3560e01c9081636afdd8501461088b575080639edf87a31461008c5763e8dd7fc30361000f57346100895780600319360112610089576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b80fd5b50366003190161016081126107c65760a0136107c65760a435801515918282036107c657610124356001600160a01b0381169360e435939060c4358684036107c6576101443567ffffffffffffffff81116107c657366023820112156107c65780600401359067ffffffffffffffff82116107c65736602483830101116107c657604051600160fc1b6020820152600181529261012a6021856108e8565b60408051959061013a81886108e8565b60018752601f19015f5b81811061087a575050604051600360f91b6020820152600360fa1b6021820152600f60f81b6022820152600381529361017e6023866108e8565b60405193608061018e81876108e8565b60038652601f19015f5b818110610855575050604051906101ae826108cc565b604051906101bb826108cc565b6004356001600160a01b03811681036107c65782526024356001600160a01b03811681036107c657602083015260443562ffffff811681036107c65760408301526064358060020b81036107c6576060830152608435916001600160a01b03831683036107c6578e6fffffffffffffffffffffffffffffffff6103269683610318966080849601528752602087019889525f60206040890192848d1684528460608b01961686528060246040519961027c85601f19601f860116018c6108e8565b828b5201838a013787010152608087019485526040519889976020808a01525160018060a01b0381511660408a015260018060a01b0360208201511660608a015262ffffff60408201511660808a0152606081015160020b60a08a0152608060018060a01b039101511660c089015251151560e0880152511661010086015251166101208401525161012061014084015261016083019061090a565b03601f1981018352826108e8565b61032f8361092e565b526103398261092e565b50851561084757610348610985565b955b156108395761035761096f565b955b604080516001600160a01b038316602082015290810183905261037f8160608101610318565b6103888461094f565b526103928361094f565b50604080516001600160a01b03891660208201529081018b90526103b98160608101610318565b6103c28461095f565b526103cc8361095f565b506001600160a01b03168061066157505034156106525761040691610318610418925b60405194859360406020860152606085019061090a565b838103601f190160408501529061099b565b6104218361092e565b5261042b8261092e565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690813b1561064e5791859161048d61049f9460405195869485938493630d64d59360e21b855260606004860152606485019061090a565b8381036003190160248501529061099b565b610104356044830152039134905af180156106435790849161062a575b50506104c7816109f3565b9380851061061357506001600160a01b038116908161055b5750508180808581945af1156104fd5750602091505b604051908152f35b9050601f19601f3d011690604051926390bfb86560e01b84526004840152806024840152608060448401528160a00160648401523d60848401523d9060a484013e808201600460a482015260c4633d2cec6f60e21b91015260e40190fd5b91509360406020846044819482855197889263a9059cbb60e01b845260048401528a60248401525af13d15601f3d116001855114161716928281528260208201520152156105ad5750602091506104f5565b6040516390bfb86560e01b8152600481019390935263a9059cbb60e01b602484015260806044840152601f3d01601f191660a0810160648501523d608485015291503d9060a484013e808201600460a482015260c4633c9fd93960e21b91015260e40190fd5b63d28d3eb560e01b84526004859052602452604483fd5b81610634916108e8565b61063f57825f6104bc565b8280fd5b6040513d86823e3d90fd5b8580fd5b632a9ffab760e21b8752600487fd5b3461082a576106a06040516323b872dd60e01b60208201523360248201523060448201528360648201526064815261069a6084826108e8565b82610a64565b60018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169160405160205f81830163095ea7b360e01b8152866024850152846044850152604484526106f86064856108e8565b83519082875af15f513d8261080e575b5050156107ca575b50823b156107c6576040516387517c4560e01b815260048101929092526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602484015216604482015265ffffffffffff6064820152905f908290608490829084905af180156107bb57610799575b5061040691610318610418926103ef565b610418919750916107ad5f610406946108e8565b6103185f9892505091610788565b6040513d5f823e3d90fd5b5f80fd5b6108089061080260405163095ea7b360e01b60208201528660248201525f6044820152604481526107fc6064826108e8565b85610a64565b83610a64565b5f610710565b9091506108225750823b15155b5f80610708565b60011461081b565b632a9ffab760e21b5f5260045ffd5b610841610985565b95610359565b61084f61096f565b9561034a565b806060602080938a01015201610198565b634e487b7160e01b5f52604160045260245ffd5b806060602080938b01015201610144565b346107c6575f3660031901126107c6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b60a0810190811067ffffffffffffffff82111761086657604052565b90601f8019910116810190811067ffffffffffffffff82111761086657604052565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b80511561093b5760200190565b634e487b7160e01b5f52603260045260245ffd5b80516001101561093b5760400190565b80516002101561093b5760600190565b6024356001600160a01b03811681036107c65790565b6004356001600160a01b03811681036107c65790565b9080602083519182815201916020808360051b8301019401925f915b8383106109c657505050505090565b90919293946020806109e4600193601f19868203018752895161090a565b970193019301919392906109b7565b6001600160a01b031680610a0657504790565b6020602491604051928380926370a0823160e01b82523060048301525afa9081156107bb575f91610a35575090565b90506020813d602011610a5c575b81610a50602093836108e8565b810103126107c6575190565b3d9150610a43565b905f602091828151910182855af1156107bb575f513d610ab357506001600160a01b0381163b155b610a935750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b60011415610a8c56","sourceMap":"770:2994:30:-:0;;;;;;;;;;-1:-1:-1;770:2994:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;839:50;-1:-1:-1;;;;;770:2994:30;;;;;;;;;;-1:-1:-1;770:2994:30;-1:-1:-1;;770:2994:30;;;;;;;-1:-1:-1;770:2994:30;;;;;;;;;;;;;;;-1:-1:-1;;;;;770:2994:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;770:2994:30;1525:41;;1454:4:11;770:2994:30;1525:41;;770:2994;1525:41;;770:2994;1525:41;:::i;:::-;1454:4:11;770:2994:30;;;;1454:4:11;;770:2994:30;1454:4:11;:::i;:::-;770:2994:30;1454:4:11;;-1:-1:-1;;1454:4:11;770:2994:30;1454:4:11;;;;;;-1:-1:-1;;770:2994:30;;-1:-1:-1;;;770:2994:30;1660:105;;1454:4:11;-1:-1:-1;;;1525:41:30;1475:4:28;;1454::11;-1:-1:-1;;;1475:4:28;;;1454::11;770:2994:30;1660:105;;770:2994;1660:105;770:2994;;1660:105;:::i;:::-;770:2994;;;1454:4:11;;;770:2994:30;1454:4:11;:::i;:::-;1660:105:30;1454:4:11;;-1:-1:-1;;1454:4:11;770:2994:30;1454:4:11;;;;;;770:2994:30;;;;1454:4:11;;;;:::i;:::-;770:2994:30;;1454:4:11;;;;:::i;:::-;770:2994:30;;-1:-1:-1;;;;;770:2994:30;;;;;;1475:4:28;;770:2994:30;;-1:-1:-1;;;;;770:2994:30;;;;;;;1475:4:28;;;;;;;;;;;;770:2994:30;1475:4:28;;;;;;;;;;;;1454::11;1475::28;;;;;;-1:-1:-1;;;;;770:2994:30;;;;;;1475:4:28;;2058:282:30;1475:4:28;;;;;;;;;;;770:2994:30;2082:248;;1475:4:28;;;770:2994:30;;;2082:248;;1475:4:28;;;;;;2082:248:30;1454:4:11;2082:248:30;;1475:4:28;;;;770:2994:30;;;;1525:41;1454:4:11;1525:41:30;;;770:2994;1454:4:11;;;1475::28;1454::11;;:::i;:::-;1475::28;;;770:2994:30;1475:4:28;;;;;;;;;2082:248:30;;1475:4:28;;;770:2994:30;;2058:282;;;770:2994;2058:282;;;1475:4:28;;770:2994:30;;;;;1475:4:28;;770:2994:30;;1475:4:28;;770:2994:30;;;;;;;1475:4:28;;;770:2994:30;1454:4:11;1475::28;;770:2994:30;1475:4:28;770:2994:30;1475:4:28;;;;;;;;1454::11;1475::28;;;;;770:2994:30;1475:4:28;;;;770:2994:30;;;;;1475:4:28;;;770:2994:30;;1475:4:28;;770:2994:30;1475:4:28;770:2994:30;;;1475:4:28;;;;;770:2994:30;1475:4:28;;;;;770:2994:30;1475:4:28;;;;770:2994:30;;1475:4:28;;;770:2994:30;1475:4:28;;;;:::i;:::-;2058:282:30;1525:41;;2058:282;;;;;;:::i;:::-;2046:294;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;2373:50:30;;;;2386:17;;:::i;:::-;2373:50;;2456;;;2469:17;;:::i;:::-;2456:50;;770:2994;;;-1:-1:-1;;;;;770:2994:30;;;2529:32;;770:2994;1475:4:28;;;770:2994:30;;;2529:32;770:2994;1475:4:28;;;2529:32:30;1475:4:28;2529:32:30;2517:44;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;770:2994:30;;;-1:-1:-1;;;;;770:2994:30;;;2583:37;;770:2994;1475:4:28;;;770:2994:30;;;2583:37;770:2994;1475:4:28;;;2583:37:30;1475:4:28;2583:37:30;2571:49;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;;;;;;770:2994:30;4998:58:23;2635:26:30;;2681:9;;;:14;2677:74;;1475:4:28;2631:421:30;1475:4:28;3074:27:30;2631:421;;770:2994;;3074:27;;;770:2994;;3074:27;;1475:4:28;1454::11;1475::28;;;;:::i;:::-;;;;-1:-1:-1;;1475:4:28;770:2994:30;1475:4:28;;;1525:41:30;1475:4:28;:::i;3074:27:30:-;3062:39;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;3111:16:30;-1:-1:-1;;;;;770:2994:30;;3111:72;;;;;770:2994;;;1475:4:28;;770:2994:30;;;1475:4:28;;;;;;;;;;3111:72:30;;1454:4:11;770:2994:30;3111:72;;1475:4:28;;;;;;:::i;:::-;;;;-1:-1:-1;;1475:4:28;770:2994:30;1475:4:28;;;770:2994:30;1475:4:28;:::i;:::-;770:2994:30;;1475:4:28;;;770:2994:30;3111:72;3144:9;;3111:72;;;;;;;;;;;;2631:421;3206:27;;;;;:::i;:::-;3247:24;;;;3243:111;;-1:-1:-1;;;;;;770:2994:30;;;4998:58:23;1769:24;;1809:163;;;;;;;;;;2085:8;2081:127;;1765:2574;770:2994:30;1765:2574:23;;;770:2994:30;;;;;;2081:127:23;1525:41:30;;;;770:2994;3741:1424:19;;;;770:2994:30;3741:1424:19;3710:21;;;;3741:1424;;770:2994:30;3741:1424:19;;;;770:2994:30;3741:1424:19;;;1475:4:28;;3741:1424:19;;;;770:2994:30;3741:1424:19;1475:4:28;3741:1424:19;;;;1475:4:28;3741:1424:19;;;;;770:2994:30;3741:1424:19;;;;;;770:2994:30;;3741:1424:19;;;770:2994:30;2163:29:23;;;3741:1424:19;;;770:2994:30;3741:1424:19;;;1765:2574:23;2238:1774;;;770:2994:30;;2238:1774:23;1475:4:28;2238:1774:23;;;;;;;;;;;;;770:2994:30;2238:1774:23;;;;770:2994:30;2238:1774:23;;;;;;;770:2994:30;2238:1774:23;;770:2994:30;2238:1774:23;;;;;;;;;;;770:2994:30;2238:1774:23;;;;;4124:8;4120:209;;1765:2574;770:2994:30;1765:2574:23;;;;4120:209;770:2994:30;3741:1424:19;-1:-1:-1;;;3741:1424:19;;770:2994:30;3741:1424:19;;;;;;-1:-1:-1;;;770:2994:30;3741:1424:19;;;1475:4:28;;3741:1424:19;;;1525:41:30;3741:1424:19;;-1:-1:-1;;3741:1424:19;770:2994:30;3741:1424:19;;1475:4:28;3741:1424:19;;;;1475:4:28;3741:1424:19;;;;-1:-1:-1;3741:1424:19;;770:2994:30;3741:1424:19;;;;;;770:2994:30;;3741:1424:19;;;770:2994:30;4268:28:23;;;3741:1424:19;;;770:2994:30;3741:1424:19;;;3243:111:30;-1:-1:-1;;;3294:49:30;;770:2994;;;;;;1475:4:28;3294:49:30;;3111:72;;;;;:::i;:::-;770:2994;;3111:72;;;;770:2994;;;;3111:72;770:2994;;1475:4:28;770:2994:30;;1475:4:28;;;;3111:72:30;770:2994;;;2677:74;-1:-1:-1;;;2722:14:30;;770:2994;2826:14;2722;2631:421;2785:9;2781:74;;1745:53:4;770:2994:30;;1475:4:28;;;770:2994:30;1745:53:4;;;2960:10:30;770:2994;1745:53:4;;770:2994:30;2980:4;1475::28;770:2994:30;;;;1475:4:28;770:2994:30;;;1475:4:28;1745:53:4;;;1475:4:28;1745:53:4;;:::i;:::-;;;:::i;:::-;770:2994:30;;;;;3550:7;770:2994;;;;;;4515:47:4;;;1475:4:28;;;4515:47:4;;;770:2994:30;4515:47:4;;770:2994:30;;1475:4:28;770:2994:30;;;1475:4:28;4515:47:4;;;1475:4:28;4515:47:4;;:::i;:::-;9086:199;;;;;;;770:2994:30;9086:199:4;;9301:80;;;2631:421:30;4577:45:4;;;4573:201;;2631:421:30;3635:84;;;;;;770:2994;;-1:-1:-1;;;3635:84:30;;770:2994;3635:84;;770:2994;;;;-1:-1:-1;;;;;3666:16:30;770:2994;;;;;;;1475:4:28;770:2994:30;;;3702:16;1475:4:28;770:2994:30;;;;-1:-1:-1;;770:2994:30;;1475:4:28;;770:2994:30;;-1:-1:-1;;3635:84:30;;;;;;;;2631:421;;1475:4:28;2631:421:30;1475:4:28;3074:27:30;2631:421;;;3635:84;3074:27;3635:84;;;;;770:2994;1475:4:28;3635:84:30;;:::i;:::-;1475:4:28;770:2994:30;3635:84;;;;;;;;770:2994;;1475:4:28;770:2994:30;1475:4:28;;;;;3635:84:30;770:2994;;;4573:201:4;4750:12;770:2994:30;4665:43:4;770:2994:30;;1475:4:28;;;770:2994:30;4665:43:4;;;;770:2994:30;4665:43:4;;770:2994:30;;1475:4:28;770:2994:30;;;1475:4:28;4665:43:4;;;1475:4:28;4665:43:4;;:::i;:::-;;;:::i;:::-;4750:12;;:::i;:::-;4573:201;;;9301:80;9313:67;;-1:-1:-1;9313:15:4;;9331:26;;;:30;;9313:67;9301:80;;;;9313:67;770:2994:30;9364:16:4;9313:67;;2781:74:30;2826:14;;;770:2994;2826:14;770:2994;;2826:14;2456:50;2489:17;;:::i;:::-;2456:50;;;2373;2406:17;;:::i;:::-;2373:50;;;1454:4:11;;;770:2994:30;1454:4:11;;;;;;;;;;;;;770:2994:30;1454:4:11;;;;;770:2994:30;1454:4:11;;;;770:2994:30;1454:4:11;;;;;;;;;770:2994:30;;;;;;-1:-1:-1;;770:2994:30;;;;895:33;-1:-1:-1;;;;;770:2994:30;;;;;;1454:4:11;770:2994:30;1454:4:11;;;;;;;;;;;;;:::o;:::-;;;1525:41:30;;1454:4:11;;;;;;;;;;;;;;;;:::o;1475::28:-;;;;;;;;;;;;;;;;;-1:-1:-1;1475:4:28;;;;;;1454::11;;-1:-1:-1;;1454:4:11;1475::28;;;:::o;:::-;;;;;;;;;:::o;:::-;1454::11;;;770:2994:30;1475:4:28;;;;;770:2994:30;1475:4:28;;;;1454::11;1475::28;;;;;;;:::o;:::-;;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;;;;770:2994:30;;;;;;1475:4:28;:::o;:::-;770:2994:30;1475:4:28;-1:-1:-1;;;;;770:2994:30;;;;;;1475:4:28;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1475:4:28;;;;;;;;;;;;;:::o;:::-;1525:41:30;;;;;1475:4:28;1525:41:30;1475:4:28;;1525:41:30;;;1475:4:28;;;;;;;;;:::i;:::-;;;;;;;;;;;;;4351:276:23;-1:-1:-1;;;;;770:2994:30;4998:58:23;4439:24;;4486:21;;4479:28;:::o;4435:186::-;770:2994:30;4545:65:23;770:2994:30;;;1475:4:28;;;;;;;4545:65:23;;4604:4;4545:65;;;770:2994:30;4545:65:23;;;;;;;770:2994:30;4545:65:23;;;4538:72;;:::o;4545:65::-;;;770:2994:30;4545:65:23;;770:2994:30;4545:65:23;;;;;;770:2994:30;4545:65:23;;;:::i;:::-;;;770:2994:30;;;;;4538:72:23;:::o;4545:65::-;;;-1:-1:-1;4545:65:23;;7686:720:4;;-1:-1:-1;7823:421:4;7686:720;7823:421;;;;;;;;;;;;-1:-1:-1;7823:421:4;;8258:15;;-1:-1:-1;;;;;;770:2994:30;;8276:26:4;:31;8258:68;8254:146;;7686:720;:::o;8254:146::-;-1:-1:-1;;;;8349:40:4;;;-1:-1:-1;;;;;770:2994:30;;;;8349:40:4;770:2994:30;;;8349:40:4;8258:68;8325:1;8310:16;;8258:68;","linkReferences":{},"cborAuxdata":{},"immutableReferences":{"3070":[{"start":90,"length":32},{"start":1070,"length":32},{"start":1847,"length":32}],"3073":[{"start":1705,"length":32},{"start":2205,"length":32}]},"transformations":[{"id":"3070","type":"replace","offset":90,"reason":"immutable"},{"id":"3070","type":"replace","offset":1070,"reason":"immutable"},{"id":"3073","type":"replace","offset":1705,"reason":"immutable"},{"id":"3070","type":"replace","offset":1847,"reason":"immutable"},{"id":"3073","type":"replace","offset":2205,"reason":"immutable"}],"transformationValues":{"immutables":{"3070":"0x00000000000000000000000066a9893cc07d91d95644aedd05d03f95e1dba8af","3073":"0x000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3"}}},"deployment":{"transactionHash":"0x6fd0e877dae087742d3d4f959a79c66e89ea2b81156bf5572da5d6f958d9ec0c","blockNumber":"25949563","transactionIndex":"131","deployer":"0xDe123e2A7dDcf4088986CC10F4099070466C31E0"},"sources":{"src/helpers/UniswapV4SwapHelpers.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { IERC20 } from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport { SafeERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPermit2 } from \"@uniswap/permit2/src/interfaces/IPermit2.sol\";\nimport { IUniversalRouter } from \"@uniswap/universal-router/contracts/interfaces/IUniversalRouter.sol\";\nimport { Commands } from \"@uniswap/universal-router/contracts/libraries/Commands.sol\";\nimport { Currency } from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport { PoolKey } from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport { IV4Router } from \"@uniswap/v4-periphery/src/interfaces/IV4Router.sol\";\nimport { Actions } from \"@uniswap/v4-periphery/src/libraries/Actions.sol\";\n\ncontract UniswapV4SwapHelpers {\n    using SafeERC20 for IERC20;\n\n    IUniversalRouter public immutable UNIVERSAL_ROUTER;\n    IPermit2 public immutable PERMIT2;\n\n    error InvalidValue();\n    error InsufficientOutputAmount(uint256 amountOut, uint256 minAmountOut);\n\n    constructor(IUniversalRouter universalRouter, IPermit2 permit2) {\n        UNIVERSAL_ROUTER = universalRouter;\n        PERMIT2 = permit2;\n    }\n\n    function swapExactInSingle(\n        PoolKey calldata poolKey,\n        bool zeroForOne,\n        uint256 amountIn,\n        uint256 minAmountOut,\n        uint256 deadline,\n        address receiver,\n        bytes calldata hookData\n    )\n        public\n        payable\n        returns (uint256 amountOut)\n    {\n        bytes memory commands = abi.encodePacked(uint8(Commands.V4_SWAP));\n        bytes[] memory inputs = new bytes[](1);\n\n        bytes memory actions =\n            abi.encodePacked(uint8(Actions.SWAP_EXACT_IN_SINGLE), uint8(Actions.SETTLE_ALL), uint8(Actions.TAKE_ALL));\n        bytes[] memory params = new bytes[](3);\n\n        // forge-lint: disable-next-line(unsafe-typecast)\n        uint128 amountIn128 = uint128(amountIn);\n        // forge-lint: disable-next-line(unsafe-typecast)\n        uint128 minAmountOut128 = uint128(minAmountOut);\n        params[0] = abi.encode(\n            IV4Router.ExactInputSingleParams({\n                poolKey: poolKey,\n                zeroForOne: zeroForOne,\n                amountIn: amountIn128,\n                amountOutMinimum: minAmountOut128,\n                hookData: hookData\n            })\n        );\n\n        Currency currencyIn = zeroForOne ? poolKey.currency0 : poolKey.currency1;\n        Currency currencyOut = zeroForOne ? poolKey.currency1 : poolKey.currency0;\n\n        params[1] = abi.encode(currencyIn, amountIn);\n        params[2] = abi.encode(currencyOut, minAmountOut);\n\n        if (currencyIn.isAddressZero()) {\n            if (msg.value == 0) {\n                revert InvalidValue();\n            }\n        } else {\n            if (msg.value != 0) {\n                revert InvalidValue();\n            }\n            address tokenIn = Currency.unwrap(currencyIn);\n            IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n            approveToken(tokenIn, amountIn);\n        }\n\n        inputs[0] = abi.encode(actions, params);\n        UNIVERSAL_ROUTER.execute{ value: msg.value }(commands, inputs, deadline);\n\n        amountOut = currencyOut.balanceOfSelf();\n        if (amountOut < minAmountOut) {\n            revert InsufficientOutputAmount(amountOut, minAmountOut);\n        }\n        currencyOut.transfer(receiver, amountOut);\n\n        return amountOut;\n    }\n\n    function approveToken(address token, uint256 amount) private {\n        IERC20(token).forceApprove(address(PERMIT2), amount);\n        // forge-lint: disable-next-line(unsafe-typecast)\n        PERMIT2.approve(token, address(UNIVERSAL_ROUTER), uint160(amount), type(uint48).max);\n    }\n\n    receive() external payable { }\n}\n"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\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"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\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        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\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        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n            _callOptionalReturn(token, approvalCall);\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 rely 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 rely 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     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        uint256 returnSize;\n        uint256 returnValue;\n        assembly (\"memory-safe\") {\n            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n            // bubble errors\n            if iszero(success) {\n                let ptr := mload(0x40)\n                returndatacopy(ptr, 0, returndatasize())\n                revert(ptr, returndatasize())\n            }\n            returnSize := returndatasize()\n            returnValue := mload(0)\n        }\n\n        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        bool success;\n        uint256 returnSize;\n        uint256 returnValue;\n        assembly (\"memory-safe\") {\n            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n            returnSize := returndatasize()\n            returnValue := mload(0)\n        }\n        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n    }\n}\n"},"dependencies/permit2-4.0.0/src/interfaces/IPermit2.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {ISignatureTransfer} from \"./ISignatureTransfer.sol\";\nimport {IAllowanceTransfer} from \"./IAllowanceTransfer.sol\";\n\n/// @notice Permit2 handles signature-based transfers in SignatureTransfer and allowance-based transfers in AllowanceTransfer.\n/// @dev Users must approve Permit2 before calling any of the transfer functions.\ninterface IPermit2 is ISignatureTransfer, IAllowanceTransfer {\n// IPermit2 unifies the two interfaces so users have maximal flexibility with their approval.\n}\n"},"dependencies/universal-router-4.0.0/contracts/interfaces/IUniversalRouter.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-or-later\npragma solidity ^0.8.24;\n\nstruct AcrossV4DepositV3Params {\n    address depositor; // credited depositor\n    address recipient; // destination recipient\n    address inputToken; // ERC20 on origin (WETH if bridging ETH)\n    address outputToken; // ERC20 on destination (or 0x0)\n    uint256 inputAmount; // supports ActionConstants.CONTRACT_BALANCE to use contract's entire balance\n    uint256 outputAmount;\n    uint256 destinationChainId;\n    address exclusiveRelayer; // 0x0 if no exclusivity\n    uint32 quoteTimestamp;\n    uint32 fillDeadline;\n    uint32 exclusivityDeadline;\n    bytes message;\n    bool useNative; // if true, call is payable with value=inputAmount (inputToken must be WETH)\n}\n\ninterface IUniversalRouter {\n    /// @notice Thrown when a required command has failed\n    error ExecutionFailed(uint256 commandIndex, bytes message);\n\n    /// @notice Thrown when attempting to send ETH directly to the contract\n    error ETHNotAccepted();\n\n    /// @notice Thrown when executing commands with an expired deadline\n    error TransactionDeadlinePassed();\n\n    /// @notice Thrown when attempting to execute commands and an incorrect number of inputs are provided\n    error LengthMismatch();\n\n    // @notice Thrown when an address that isn't WETH tries to send ETH to the router without calldata\n    error InvalidEthSender();\n\n    /// @notice Executes encoded commands along with provided inputs. Reverts if deadline has expired.\n    /// @param commands A set of concatenated commands, each 1 byte in length\n    /// @param inputs An array of byte strings containing abi encoded inputs for each command\n    /// @param deadline The deadline by which the transaction must be executed\n    function execute(bytes calldata commands, bytes[] calldata inputs, uint256 deadline) external payable;\n\n    /// @notice Executes encoded commands with EIP712 signature verification\n    /// @param commands A set of concatenated commands, each 1 byte in length\n    /// @param inputs An array of byte strings containing abi encoded inputs for each command\n    /// @param intent Application-specific intent identifier\n    /// @param data Application-specific data\n    /// @param verifySender If true, the signature must include msg.sender; if false, uses address(0)\n    /// @param nonce Unordered nonce for replay protection. Use bytes32(type(uint256).max) to skip nonce check\n    /// @param signature EIP712 signature authorizing the execution\n    /// @param deadline The deadline by which the transaction must be executed\n    /// @dev The signer, intent, and data are recovered/stored in transient storage for the duration of execution.\n    /// All commands (including nested sub-commands via EXECUTE_SUB_PLAN) are covered by the signature.\n    /// The signer, intent, and data can be accessed by commands via signedRouteContext().\n    /// External reentrancy is prevented by the isNotLocked modifier on execute(). Internal reentrancy via\n    /// EXECUTE_SUB_PLAN is safe as those sub-commands are part of the signed message. There is no way to change\n    /// the signer mid-execution as executeSigned cannot be called internally.\n    function executeSigned(\n        bytes calldata commands,\n        bytes[] calldata inputs,\n        bytes32 intent,\n        bytes32 data,\n        bool verifySender,\n        bytes32 nonce,\n        bytes calldata signature,\n        uint256 deadline\n    ) external payable;\n\n    /// @notice Returns all signed execution context (signer, intent, data) in a single call\n    /// @return signer The address that signed the current execution, or address(0) if not in a signed execution\n    /// @return intent The intent value from the signed execution, or bytes32(0) if not in a signed execution\n    /// @return data The data value from the signed execution, or bytes32(0) if not in a signed execution\n    /// @dev This reads from transient storage which is only set during executeSigned().\n    /// @dev When consuming this context from a hook, the hook MUST verify that msg.sender is the\n    /// UniversalRouter contract. Otherwise, a malicious contract in the execution chain could abuse the\n    /// legitimate signed context by calling other contracts with it, causing unintended side effects.\n    function signedRouteContext() external view returns (address signer, bytes32 intent, bytes32 data);\n}\n"},"dependencies/universal-router-4.0.0/contracts/libraries/Commands.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-or-later\npragma solidity ^0.8.24;\n\n/// @title Commands\n/// @notice Command Flags used to decode commands\nlibrary Commands {\n    // Masks to extract certain bits of commands\n    bytes1 internal constant FLAG_ALLOW_REVERT = 0x80;\n    bytes1 internal constant COMMAND_TYPE_MASK = 0x7f;\n\n    // Command Types. Maximum supported command at this moment is 0x3f.\n    // The commands are executed in nested if blocks to minimise gas consumption\n\n    // Command Types where value<=0x07, executed in the first nested-if block\n    uint256 constant V3_SWAP_EXACT_IN = 0x00;\n    uint256 constant V3_SWAP_EXACT_OUT = 0x01;\n    uint256 constant PERMIT2_TRANSFER_FROM = 0x02;\n    uint256 constant PERMIT2_PERMIT_BATCH = 0x03;\n    uint256 constant SWEEP = 0x04;\n    uint256 constant TRANSFER = 0x05;\n    uint256 constant PAY_PORTION = 0x06;\n    // COMMAND_PLACEHOLDER = 0x07;\n\n    // Command Types where 0x08<=value<=0x0f, executed in the second nested-if block\n    uint256 constant V2_SWAP_EXACT_IN = 0x08;\n    uint256 constant V2_SWAP_EXACT_OUT = 0x09;\n    uint256 constant PERMIT2_PERMIT = 0x0a;\n    uint256 constant WRAP_ETH = 0x0b;\n    uint256 constant UNWRAP_WETH = 0x0c;\n    uint256 constant PERMIT2_TRANSFER_FROM_BATCH = 0x0d;\n    uint256 constant BALANCE_CHECK_ERC20 = 0x0e;\n    // COMMAND_PLACEHOLDER = 0x0f;\n\n    // Command Types where 0x10<=value<=0x20, executed in the third nested-if block\n    uint256 constant V4_SWAP = 0x10;\n    uint256 constant V3_POSITION_MANAGER_PERMIT = 0x11;\n    uint256 constant V3_POSITION_MANAGER_CALL = 0x12;\n    uint256 constant V4_INITIALIZE_POOL = 0x13;\n    uint256 constant V4_POSITION_MANAGER_CALL = 0x14;\n    // COMMAND_PLACEHOLDER = 0x15 -> 0x20\n\n    // Command Types where 0x21<=value<=0x3f\n    uint256 constant EXECUTE_SUB_PLAN = 0x21;\n    // COMMAND_PLACEHOLDER for 0x22 to 0x3f\n\n    // Command Types where 0x40<=value<=0x5f\n    // Reserved for 3rd party integrations\n    uint256 constant ACROSS_V4_DEPOSIT_V3 = 0x40;\n}\n"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-periphery-4.0.0/src/interfaces/IV4Router.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport {Currency} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {PathKey} from \"../libraries/PathKey.sol\";\nimport {IImmutableState} from \"./IImmutableState.sol\";\n\n/// @title IV4Router\n/// @notice Interface for the V4Router contract\ninterface IV4Router is IImmutableState {\n    /// @notice Emitted when an exactInput swap does not receive its minAmountOut\n    error V4TooLittleReceived(uint256 minAmountOutReceived, uint256 amountReceived);\n    /// @notice Emitted when an exactOutput is asked for more than its maxAmountIn\n    error V4TooMuchRequested(uint256 maxAmountInRequested, uint256 amountRequested);\n\n    /// @notice Parameters for a single-hop exact-input swap\n    struct ExactInputSingleParams {\n        PoolKey poolKey;\n        bool zeroForOne;\n        uint128 amountIn;\n        uint128 amountOutMinimum;\n        bytes hookData;\n    }\n\n    /// @notice Parameters for a multi-hop exact-input swap\n    struct ExactInputParams {\n        Currency currencyIn;\n        PathKey[] path;\n        uint128 amountIn;\n        uint128 amountOutMinimum;\n    }\n\n    /// @notice Parameters for a single-hop exact-output swap\n    struct ExactOutputSingleParams {\n        PoolKey poolKey;\n        bool zeroForOne;\n        uint128 amountOut;\n        uint128 amountInMaximum;\n        bytes hookData;\n    }\n\n    /// @notice Parameters for a multi-hop exact-output swap\n    struct ExactOutputParams {\n        Currency currencyOut;\n        PathKey[] path;\n        uint128 amountOut;\n        uint128 amountInMaximum;\n    }\n}\n"},"dependencies/v4-periphery-4.0.0/src/libraries/Actions.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Library to define different pool actions.\n/// @dev These are suggested common commands, however additional commands should be defined as required\n/// Some of these actions are not supported in the Router contracts or Position Manager contracts, but are left as they may be helpful commands for other peripheral contracts.\nlibrary Actions {\n    // pool actions\n    // liquidity actions\n    uint256 internal constant INCREASE_LIQUIDITY = 0x00;\n    uint256 internal constant DECREASE_LIQUIDITY = 0x01;\n    uint256 internal constant MINT_POSITION = 0x02;\n    uint256 internal constant BURN_POSITION = 0x03;\n    uint256 internal constant INCREASE_LIQUIDITY_FROM_DELTAS = 0x04;\n    uint256 internal constant MINT_POSITION_FROM_DELTAS = 0x05;\n\n    // swapping\n    uint256 internal constant SWAP_EXACT_IN_SINGLE = 0x06;\n    uint256 internal constant SWAP_EXACT_IN = 0x07;\n    uint256 internal constant SWAP_EXACT_OUT_SINGLE = 0x08;\n    uint256 internal constant SWAP_EXACT_OUT = 0x09;\n\n    // donate\n    // note this is not supported in the position manager or router\n    uint256 internal constant DONATE = 0x0a;\n\n    // closing deltas on the pool manager\n    // settling\n    uint256 internal constant SETTLE = 0x0b;\n    uint256 internal constant SETTLE_ALL = 0x0c;\n    uint256 internal constant SETTLE_PAIR = 0x0d;\n    // taking\n    uint256 internal constant TAKE = 0x0e;\n    uint256 internal constant TAKE_ALL = 0x0f;\n    uint256 internal constant TAKE_PORTION = 0x10;\n    uint256 internal constant TAKE_PAIR = 0x11;\n\n    uint256 internal constant CLOSE_CURRENCY = 0x12;\n    uint256 internal constant CLEAR_OR_TAKE = 0x13;\n    uint256 internal constant SWEEP = 0x14;\n\n    uint256 internal constant WRAP = 0x15;\n    uint256 internal constant UNWRAP = 0x16;\n\n    // minting/burning 6909s to close deltas\n    // note this is not supported in the position manager or router\n    uint256 internal constant MINT_6909 = 0x17;\n    uint256 internal constant BURN_6909 = 0x18;\n}\n"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)\n\npragma solidity ^0.8.20;\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"},"dependencies/permit2-4.0.0/src/interfaces/ISignatureTransfer.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IEIP712} from \"./IEIP712.sol\";\n\n/// @title SignatureTransfer\n/// @notice Handles ERC20 token transfers through signature based actions\n/// @dev Requires user's token approval on the Permit2 contract\ninterface ISignatureTransfer is IEIP712 {\n    /// @notice Thrown when the requested amount for a transfer is larger than the permissioned amount\n    /// @param maxAmount The maximum amount a spender can request to transfer\n    error InvalidAmount(uint256 maxAmount);\n\n    /// @notice Thrown when the number of tokens permissioned to a spender does not match the number of tokens being transferred\n    /// @dev If the spender does not need to transfer the number of tokens permitted, the spender can request amount 0 to be transferred\n    error LengthMismatch();\n\n    /// @notice Emits an event when the owner successfully invalidates an unordered nonce.\n    event UnorderedNonceInvalidation(address indexed owner, uint256 word, uint256 mask);\n\n    /// @notice The token and amount details for a transfer signed in the permit transfer signature\n    struct TokenPermissions {\n        // ERC20 token address\n        address token;\n        // the maximum amount that can be spent\n        uint256 amount;\n    }\n\n    /// @notice The signed permit message for a single token transfer\n    struct PermitTransferFrom {\n        TokenPermissions permitted;\n        // a unique value for every token owner's signature to prevent signature replays\n        uint256 nonce;\n        // deadline on the permit signature\n        uint256 deadline;\n    }\n\n    /// @notice Specifies the recipient address and amount for batched transfers.\n    /// @dev Recipients and amounts correspond to the index of the signed token permissions array.\n    /// @dev Reverts if the requested amount is greater than the permitted signed amount.\n    struct SignatureTransferDetails {\n        // recipient address\n        address to;\n        // spender requested amount\n        uint256 requestedAmount;\n    }\n\n    /// @notice Used to reconstruct the signed permit message for multiple token transfers\n    /// @dev Do not need to pass in spender address as it is required that it is msg.sender\n    /// @dev Note that a user still signs over a spender address\n    struct PermitBatchTransferFrom {\n        // the tokens and corresponding amounts permitted for a transfer\n        TokenPermissions[] permitted;\n        // a unique value for every token owner's signature to prevent signature replays\n        uint256 nonce;\n        // deadline on the permit signature\n        uint256 deadline;\n    }\n\n    /// @notice A map from token owner address and a caller specified word index to a bitmap. Used to set bits in the bitmap to prevent against signature replay protection\n    /// @dev Uses unordered nonces so that permit messages do not need to be spent in a certain order\n    /// @dev The mapping is indexed first by the token owner, then by an index specified in the nonce\n    /// @dev It returns a uint256 bitmap\n    /// @dev The index, or wordPosition is capped at type(uint248).max\n    function nonceBitmap(address, uint256) external view returns (uint256);\n\n    /// @notice Transfers a token using a signed permit message\n    /// @dev Reverts if the requested amount is greater than the permitted signed amount\n    /// @param permit The permit data signed over by the owner\n    /// @param owner The owner of the tokens to transfer\n    /// @param transferDetails The spender's requested transfer details for the permitted token\n    /// @param signature The signature to verify\n    function permitTransferFrom(\n        PermitTransferFrom memory permit,\n        SignatureTransferDetails calldata transferDetails,\n        address owner,\n        bytes calldata signature\n    ) external;\n\n    /// @notice Transfers a token using a signed permit message\n    /// @notice Includes extra data provided by the caller to verify signature over\n    /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition\n    /// @dev Reverts if the requested amount is greater than the permitted signed amount\n    /// @param permit The permit data signed over by the owner\n    /// @param owner The owner of the tokens to transfer\n    /// @param transferDetails The spender's requested transfer details for the permitted token\n    /// @param witness Extra data to include when checking the user signature\n    /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash\n    /// @param signature The signature to verify\n    function permitWitnessTransferFrom(\n        PermitTransferFrom memory permit,\n        SignatureTransferDetails calldata transferDetails,\n        address owner,\n        bytes32 witness,\n        string calldata witnessTypeString,\n        bytes calldata signature\n    ) external;\n\n    /// @notice Transfers multiple tokens using a signed permit message\n    /// @param permit The permit data signed over by the owner\n    /// @param owner The owner of the tokens to transfer\n    /// @param transferDetails Specifies the recipient and requested amount for the token transfer\n    /// @param signature The signature to verify\n    function permitTransferFrom(\n        PermitBatchTransferFrom memory permit,\n        SignatureTransferDetails[] calldata transferDetails,\n        address owner,\n        bytes calldata signature\n    ) external;\n\n    /// @notice Transfers multiple tokens using a signed permit message\n    /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition\n    /// @notice Includes extra data provided by the caller to verify signature over\n    /// @param permit The permit data signed over by the owner\n    /// @param owner The owner of the tokens to transfer\n    /// @param transferDetails Specifies the recipient and requested amount for the token transfer\n    /// @param witness Extra data to include when checking the user signature\n    /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash\n    /// @param signature The signature to verify\n    function permitWitnessTransferFrom(\n        PermitBatchTransferFrom memory permit,\n        SignatureTransferDetails[] calldata transferDetails,\n        address owner,\n        bytes32 witness,\n        string calldata witnessTypeString,\n        bytes calldata signature\n    ) external;\n\n    /// @notice Invalidates the bits specified in mask for the bitmap at the word position\n    /// @dev The wordPos is maxed at type(uint248).max\n    /// @param wordPos A number to index the nonceBitmap at\n    /// @param mask A bitmap masked against msg.sender's current bitmap at the word position\n    function invalidateUnorderedNonces(uint256 wordPos, uint256 mask) external;\n}\n"},"dependencies/permit2-4.0.0/src/interfaces/IAllowanceTransfer.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IEIP712} from \"./IEIP712.sol\";\n\n/// @title AllowanceTransfer\n/// @notice Handles ERC20 token permissions through signature based allowance setting and ERC20 token transfers by checking allowed amounts\n/// @dev Requires user's token approval on the Permit2 contract\ninterface IAllowanceTransfer is IEIP712 {\n    /// @notice Thrown when an allowance on a token has expired.\n    /// @param deadline The timestamp at which the allowed amount is no longer valid\n    error AllowanceExpired(uint256 deadline);\n\n    /// @notice Thrown when an allowance on a token has been depleted.\n    /// @param amount The maximum amount allowed\n    error InsufficientAllowance(uint256 amount);\n\n    /// @notice Thrown when too many nonces are invalidated.\n    error ExcessiveInvalidation();\n\n    /// @notice Emits an event when the owner successfully invalidates an ordered nonce.\n    event NonceInvalidation(\n        address indexed owner, address indexed token, address indexed spender, uint48 newNonce, uint48 oldNonce\n    );\n\n    /// @notice Emits an event when the owner successfully sets permissions on a token for the spender.\n    event Approval(\n        address indexed owner, address indexed token, address indexed spender, uint160 amount, uint48 expiration\n    );\n\n    /// @notice Emits an event when the owner successfully sets permissions using a permit signature on a token for the spender.\n    event Permit(\n        address indexed owner,\n        address indexed token,\n        address indexed spender,\n        uint160 amount,\n        uint48 expiration,\n        uint48 nonce\n    );\n\n    /// @notice Emits an event when the owner sets the allowance back to 0 with the lockdown function.\n    event Lockdown(address indexed owner, address token, address spender);\n\n    /// @notice The permit data for a token\n    struct PermitDetails {\n        // ERC20 token address\n        address token;\n        // the maximum amount allowed to spend\n        uint160 amount;\n        // timestamp at which a spender's token allowances become invalid\n        uint48 expiration;\n        // an incrementing value indexed per owner,token,and spender for each signature\n        uint48 nonce;\n    }\n\n    /// @notice The permit message signed for a single token allowance\n    struct PermitSingle {\n        // the permit data for a single token alownce\n        PermitDetails details;\n        // address permissioned on the allowed tokens\n        address spender;\n        // deadline on the permit signature\n        uint256 sigDeadline;\n    }\n\n    /// @notice The permit message signed for multiple token allowances\n    struct PermitBatch {\n        // the permit data for multiple token allowances\n        PermitDetails[] details;\n        // address permissioned on the allowed tokens\n        address spender;\n        // deadline on the permit signature\n        uint256 sigDeadline;\n    }\n\n    /// @notice The saved permissions\n    /// @dev This info is saved per owner, per token, per spender and all signed over in the permit message\n    /// @dev Setting amount to type(uint160).max sets an unlimited approval\n    struct PackedAllowance {\n        // amount allowed\n        uint160 amount;\n        // permission expiry\n        uint48 expiration;\n        // an incrementing value indexed per owner,token,and spender for each signature\n        uint48 nonce;\n    }\n\n    /// @notice A token spender pair.\n    struct TokenSpenderPair {\n        // the token the spender is approved\n        address token;\n        // the spender address\n        address spender;\n    }\n\n    /// @notice Details for a token transfer.\n    struct AllowanceTransferDetails {\n        // the owner of the token\n        address from;\n        // the recipient of the token\n        address to;\n        // the amount of the token\n        uint160 amount;\n        // the token to be transferred\n        address token;\n    }\n\n    /// @notice A mapping from owner address to token address to spender address to PackedAllowance struct, which contains details and conditions of the approval.\n    /// @notice The mapping is indexed in the above order see: allowance[ownerAddress][tokenAddress][spenderAddress]\n    /// @dev The packed slot holds the allowed amount, expiration at which the allowed amount is no longer valid, and current nonce thats updated on any signature based approvals.\n    function allowance(address user, address token, address spender)\n        external\n        view\n        returns (uint160 amount, uint48 expiration, uint48 nonce);\n\n    /// @notice Approves the spender to use up to amount of the specified token up until the expiration\n    /// @param token The token to approve\n    /// @param spender The spender address to approve\n    /// @param amount The approved amount of the token\n    /// @param expiration The timestamp at which the approval is no longer valid\n    /// @dev The packed allowance also holds a nonce, which will stay unchanged in approve\n    /// @dev Setting amount to type(uint160).max sets an unlimited approval\n    function approve(address token, address spender, uint160 amount, uint48 expiration) external;\n\n    /// @notice Permit a spender to a given amount of the owners token via the owner's EIP-712 signature\n    /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce\n    /// @param owner The owner of the tokens being approved\n    /// @param permitSingle Data signed over by the owner specifying the terms of approval\n    /// @param signature The owner's signature over the permit data\n    function permit(address owner, PermitSingle memory permitSingle, bytes calldata signature) external;\n\n    /// @notice Permit a spender to the signed amounts of the owners tokens via the owner's EIP-712 signature\n    /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce\n    /// @param owner The owner of the tokens being approved\n    /// @param permitBatch Data signed over by the owner specifying the terms of approval\n    /// @param signature The owner's signature over the permit data\n    function permit(address owner, PermitBatch memory permitBatch, bytes calldata signature) external;\n\n    /// @notice Transfer approved tokens from one address to another\n    /// @param from The address to transfer from\n    /// @param to The address of the recipient\n    /// @param amount The amount of the token to transfer\n    /// @param token The token address to transfer\n    /// @dev Requires the from address to have approved at least the desired amount\n    /// of tokens to msg.sender.\n    function transferFrom(address from, address to, uint160 amount, address token) external;\n\n    /// @notice Transfer approved tokens in a batch\n    /// @param transferDetails Array of owners, recipients, amounts, and tokens for the transfers\n    /// @dev Requires the from addresses to have approved at least the desired amount\n    /// of tokens to msg.sender.\n    function transferFrom(AllowanceTransferDetails[] calldata transferDetails) external;\n\n    /// @notice Enables performing a \"lockdown\" of the sender's Permit2 identity\n    /// by batch revoking approvals\n    /// @param approvals Array of approvals to revoke.\n    function lockdown(TokenSpenderPair[] calldata approvals) external;\n\n    /// @notice Invalidate nonces for a given (token, spender) pair\n    /// @param token The token to invalidate nonces for\n    /// @param spender The spender to invalidate nonces for\n    /// @param newNonce The new nonce to set. Invalidates all nonces less than it.\n    /// @dev Can't invalidate more than 2**16 nonces per transaction.\n    function invalidateNonces(address token, address spender, uint48 newNonce) external;\n}\n"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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 {IPoolManager} from \"./IPoolManager.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        IPoolManager.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        IPoolManager.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        IPoolManager.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        IPoolManager.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(\n        address sender,\n        PoolKey calldata key,\n        IPoolManager.SwapParams calldata params,\n        bytes calldata hookData\n    ) external 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        IPoolManager.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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-periphery-4.0.0/src/libraries/PathKey.sol":{"content":"//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {IHooks} from \"@uniswap/v4-core/src/interfaces/IHooks.sol\";\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\n\nstruct PathKey {\n    Currency intermediateCurrency;\n    uint24 fee;\n    int24 tickSpacing;\n    IHooks hooks;\n    bytes hookData;\n}\n\nusing PathKeyLibrary for PathKey global;\n\n/// @title PathKey Library\n/// @notice Functions for working with PathKeys\nlibrary PathKeyLibrary {\n    /// @notice Get the pool and swap direction for a given PathKey\n    /// @param params the given PathKey\n    /// @param currencyIn the input currency\n    /// @return poolKey the pool key of the swap\n    /// @return zeroForOne the direction of the swap, true if currency0 is being swapped for currency1\n    function getPoolAndSwapDirection(PathKey calldata params, Currency currencyIn)\n        internal\n        pure\n        returns (PoolKey memory poolKey, bool zeroForOne)\n    {\n        Currency currencyOut = params.intermediateCurrency;\n        (Currency currency0, Currency currency1) =\n            currencyIn < currencyOut ? (currencyIn, currencyOut) : (currencyOut, currencyIn);\n\n        zeroForOne = currencyIn == currency0;\n        poolKey = PoolKey(currency0, currency1, params.fee, params.tickSpacing, params.hooks);\n    }\n}\n"},"dependencies/v4-periphery-4.0.0/src/interfaces/IImmutableState.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IPoolManager} from \"@uniswap/v4-core/src/interfaces/IPoolManager.sol\";\n\n/// @title IImmutableState\n/// @notice Interface for the ImmutableState contract\ninterface IImmutableState {\n    /// @notice The Uniswap v4 PoolManager contract\n    function poolManager() external view returns (IPoolManager);\n}\n"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"dependencies/permit2-4.0.0/src/interfaces/IEIP712.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface IEIP712 {\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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\";\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    struct 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 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    struct 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\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"},"dependencies/v4-core-4.0.0/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"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"}},"compilation":{"language":"Solidity","compiler":"solc","compilerVersion":"0.8.28+commit.7893614a","compilerSettings":{"viaIR":true,"metadata":{"appendCBOR":false,"bytecodeHash":"none","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@layerzerolabs/oapp-evm/=dependencies/devtools-0.0.1/packages/oapp-evm/","@layerzerolabs/lz-evm-protocol-v2/=dependencies/layerzero-v2-2.0.2/packages/layerzero-v2/evm/protocol/","@layerzerolabs/lz-evm-oapp-v2/=dependencies/layerzero-v2-2.0.2/packages/layerzero-v2/evm/oapp/","@uniswap/v4-core/=dependencies/v4-core-4.0.0/","@uniswap/v4-periphery/=dependencies/v4-periphery-4.0.0/","@uniswap/universal-router/=dependencies/universal-router-4.0.0/","@uniswap/permit2/=dependencies/permit2-4.0.0/","devtools/=dependencies/devtools-0.0.1/packages/toolbox-foundry/src/","ds-test/=dependencies/forge-std-1.9.7/dependencies/ds-test/src/","enso-weiroll/=dependencies/enso-weiroll-1.4.1/contracts/","erc4626-tests/=dependencies/@openzeppelin-contracts-5.2.0/lib/erc4626-tests/","forge-std/=dependencies/forge-std-1.9.7/src/","halmos-cheatcodes/=dependencies/@openzeppelin-contracts-5.2.0/lib/halmos-cheatcodes/src/","layerzero-v2/=dependencies/layerzero-v2-2.0.2/","openzeppelin-contracts/=dependencies/@openzeppelin-contracts-5.2.0/contracts/","safe-contracts/=dependencies/safe-tools-0.2.0/lib/safe-contracts/contracts/","safe-tools/=dependencies/safe-tools-0.2.0/src/","solady/=dependencies/solady-0.1.22/src/","solmate/=dependencies/solady-0.1.22/lib/solmate/src/","@ensdomains/=dependencies/v4-core-4.0.0/node_modules/@ensdomains/","forge-gas-snapshot/=dependencies/v4-periphery-4.0.0/lib/permit2/lib/forge-gas-snapshot/src/","hardhat/=dependencies/v4-core-4.0.0/node_modules/hardhat/","permit2/=dependencies/v4-periphery-4.0.0/lib/permit2/","v4-core/=dependencies/v4-core-4.0.0/src/","v4-periphery/=dependencies/v4-periphery-4.0.0/","account-abstraction-v7/=dependencies/account-abstraction-v7-0.7.0/contracts/","@openzeppelin-contracts-5.2.0/=dependencies/@openzeppelin-contracts-5.2.0/","account-abstraction-0.7.0/=dependencies/account-abstraction-v7-0.7.0/contracts/","devtools-0.0.1/=dependencies/devtools-0.0.1/","enso-weiroll-1.4.1/=dependencies/enso-weiroll-1.4.1/contracts/","forge-std-1.9.7/=dependencies/forge-std-1.9.7/src/","layerzero-v2-2.0.2/=dependencies/layerzero-v2-2.0.2/","safe-smart-account-1.5.0/=dependencies/safe-smart-account-1.5.0/contracts/","safe-tools-0.2.0/=dependencies/safe-tools-0.2.0/src/","solady-0.1.22/=dependencies/solady-0.1.22/src/","v4-core-4.0.0/=dependencies/v4-core-4.0.0/src/","v4-periphery-4.0.0/=dependencies/v4-periphery-4.0.0/src/","chainlink-ccip/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/","chainlink-ccip-1.6.2/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/","chainlink-evm/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/","chainlink-evm-1.5.0/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/","@chainlink/=dependencies/chainlink-evm-1.5.0/","@openzeppelin/contracts@5.0.2/utils/introspection/IERC165.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol","@openzeppelin/contracts@5.0.2/utils/introspection/ERC165Checker.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/ERC165Checker.sol","@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol","@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol","universal-router-4.0.0/=dependencies/universal-router-4.0.0/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.2.0/contracts/","@uniswap/v2-core/=dependencies/universal-router-4.0.0/node_modules/@uniswap/v2-core/","@uniswap/v3-core/=dependencies/universal-router-4.0.0/node_modules/@uniswap/v3-core/","@uniswap/v3-periphery/=dependencies/universal-router-4.0.0/lib/v3-periphery/","account-abstraction-v7-0.7.0/=dependencies/account-abstraction-v7-0.7.0/contracts/","permit2-4.0.0/=dependencies/permit2-4.0.0/","shortcuts-vm-0.1.0/=dependencies/shortcuts-vm-0.1.0/src/","v3-periphery/=dependencies/universal-router-4.0.0/lib/v3-periphery/contracts/"]},"name":"UniswapV4SwapHelpers","fullyQualifiedName":"src/helpers/UniswapV4SwapHelpers.sol:UniswapV4SwapHelpers"},"abi":[{"type":"constructor","inputs":[{"name":"universalRouter","type":"address","internalType":"contract IUniversalRouter"},{"name":"permit2","type":"address","internalType":"contract IPermit2"}],"stateMutability":"nonpayable"},{"name":"InsufficientOutputAmount","type":"error","inputs":[{"name":"amountOut","type":"uint256","internalType":"uint256"},{"name":"minAmountOut","type":"uint256","internalType":"uint256"}]},{"name":"InvalidValue","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"PERMIT2","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPermit2"}],"stateMutability":"view"},{"name":"UNIVERSAL_ROUTER","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IUniversalRouter"}],"stateMutability":"view"},{"name":"swapExactInSingle","type":"function","inputs":[{"name":"poolKey","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"},{"name":"zeroForOne","type":"bool","internalType":"bool"},{"name":"amountIn","type":"uint256","internalType":"uint256"},{"name":"minAmountOut","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"},{"name":"hookData","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"amountOut","type":"uint256","internalType":"uint256"}],"stateMutability":"payable"},{"type":"receive","stateMutability":"payable"}],"metadata":{"compiler":{"version":"0.8.28+commit.7893614a"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"contract IUniversalRouter","name":"universalRouter","type":"address"},{"internalType":"contract IPermit2","name":"permit2","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"InsufficientOutputAmount","type":"error"},{"inputs":[],"name":"InvalidValue","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"PERMIT2","outputs":[{"internalType":"contract IPermit2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNIVERSAL_ROUTER","outputs":[{"internalType":"contract IUniversalRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"poolKey","type":"tuple"},{"internalType":"bool","name":"zeroForOne","type":"bool"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes","name":"hookData","type":"bytes"}],"name":"swapExactInSingle","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}],"devdoc":{"errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"src/helpers/UniswapV4SwapHelpers.sol":"UniswapV4SwapHelpers"},"evmVersion":"cancun","libraries":{},"metadata":{"appendCBOR":false,"bytecodeHash":"none"},"optimizer":{"enabled":true,"runs":200},"remappings":[":@chainlink/=dependencies/chainlink-evm-1.5.0/",":@ensdomains/=dependencies/v4-core-4.0.0/node_modules/@ensdomains/",":@layerzerolabs/lz-evm-oapp-v2/=dependencies/layerzero-v2-2.0.2/packages/layerzero-v2/evm/oapp/",":@layerzerolabs/lz-evm-protocol-v2/=dependencies/layerzero-v2-2.0.2/packages/layerzero-v2/evm/protocol/",":@layerzerolabs/oapp-evm/=dependencies/devtools-0.0.1/packages/oapp-evm/",":@openzeppelin-contracts-5.2.0/=dependencies/@openzeppelin-contracts-5.2.0/",":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.2.0/contracts/",":@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol",":@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol",":@openzeppelin/contracts@5.0.2/utils/introspection/ERC165Checker.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/ERC165Checker.sol",":@openzeppelin/contracts@5.0.2/utils/introspection/IERC165.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol",":@uniswap/permit2/=dependencies/permit2-4.0.0/",":@uniswap/universal-router/=dependencies/universal-router-4.0.0/",":@uniswap/v2-core/=dependencies/universal-router-4.0.0/node_modules/@uniswap/v2-core/",":@uniswap/v3-core/=dependencies/universal-router-4.0.0/node_modules/@uniswap/v3-core/",":@uniswap/v3-periphery/=dependencies/universal-router-4.0.0/lib/v3-periphery/",":@uniswap/v4-core/=dependencies/v4-core-4.0.0/",":@uniswap/v4-periphery/=dependencies/v4-periphery-4.0.0/",":account-abstraction-0.7.0/=dependencies/account-abstraction-v7-0.7.0/contracts/",":account-abstraction-v7-0.7.0/=dependencies/account-abstraction-v7-0.7.0/contracts/",":account-abstraction-v7/=dependencies/account-abstraction-v7-0.7.0/contracts/",":chainlink-ccip-1.6.2/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/",":chainlink-ccip/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/",":chainlink-evm-1.5.0/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/",":chainlink-evm/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/",":devtools-0.0.1/=dependencies/devtools-0.0.1/",":devtools/=dependencies/devtools-0.0.1/packages/toolbox-foundry/src/",":ds-test/=dependencies/forge-std-1.9.7/dependencies/ds-test/src/",":enso-weiroll-1.4.1/=dependencies/enso-weiroll-1.4.1/contracts/",":enso-weiroll/=dependencies/enso-weiroll-1.4.1/contracts/",":erc4626-tests/=dependencies/@openzeppelin-contracts-5.2.0/lib/erc4626-tests/",":forge-gas-snapshot/=dependencies/v4-periphery-4.0.0/lib/permit2/lib/forge-gas-snapshot/src/",":forge-std-1.9.7/=dependencies/forge-std-1.9.7/src/",":forge-std/=dependencies/forge-std-1.9.7/src/",":halmos-cheatcodes/=dependencies/@openzeppelin-contracts-5.2.0/lib/halmos-cheatcodes/src/",":hardhat/=dependencies/v4-core-4.0.0/node_modules/hardhat/",":layerzero-v2-2.0.2/=dependencies/layerzero-v2-2.0.2/",":layerzero-v2/=dependencies/layerzero-v2-2.0.2/",":openzeppelin-contracts/=dependencies/@openzeppelin-contracts-5.2.0/contracts/",":permit2-4.0.0/=dependencies/permit2-4.0.0/",":permit2/=dependencies/v4-periphery-4.0.0/lib/permit2/",":safe-contracts/=dependencies/safe-tools-0.2.0/lib/safe-contracts/contracts/",":safe-smart-account-1.5.0/=dependencies/safe-smart-account-1.5.0/contracts/",":safe-tools-0.2.0/=dependencies/safe-tools-0.2.0/src/",":safe-tools/=dependencies/safe-tools-0.2.0/src/",":shortcuts-vm-0.1.0/=dependencies/shortcuts-vm-0.1.0/src/",":solady-0.1.22/=dependencies/solady-0.1.22/src/",":solady/=dependencies/solady-0.1.22/src/",":solmate/=dependencies/solady-0.1.22/lib/solmate/src/",":universal-router-4.0.0/=dependencies/universal-router-4.0.0/",":v3-periphery/=dependencies/universal-router-4.0.0/lib/v3-periphery/contracts/",":v4-core-4.0.0/=dependencies/v4-core-4.0.0/src/",":v4-core/=dependencies/v4-core-4.0.0/src/",":v4-periphery-4.0.0/=dependencies/v4-periphery-4.0.0/src/",":v4-periphery/=dependencies/v4-periphery-4.0.0/"],"viaIR":true},"sources":{"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC1363.sol":{"keccak256":"0x9b6b3e7803bc5f2f8cd7ad57db8ac1def61a9930a5a3107df4882e028a9605d7","license":"MIT","urls":["bzz-raw://da62d6be1f5c6edf577f0cb45666a8aa9c2086a4bac87d95d65f02e2f4c36a4b","dweb:/ipfs/QmNkpvBpoCMvX8JwAFNSc5XxJ2q5BXJpL5L1txb4QkqVFF"]},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC165.sol":{"keccak256":"0xde7e9fd9aee8d4f40772f96bb3b58836cbc6dfc0227014a061947f8821ea9724","license":"MIT","urls":["bzz-raw://11fea9f8bc98949ac6709f0c1699db7430d2948137aa94d5a9e95a91f61a710a","dweb:/ipfs/QmQdfRXxQjwP6yn3DVo1GHPpriKNcFghSPi94Z1oKEFUNS"]},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC20.sol":{"keccak256":"0xce41876e78d1badc0512229b4d14e4daf83bc1003d7f83978d18e0e56f965b9c","license":"MIT","urls":["bzz-raw://a2608291cb038b388d80b79a06b6118a42f7894ff67b7da10ec0dbbf5b2973ba","dweb:/ipfs/QmWohqcBLbcxmA4eGPhZDXe5RYMMEEpFq22nfkaUMvTfw1"]},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol":{"keccak256":"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7","license":"MIT","urls":["bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db","dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9"]},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol":{"keccak256":"0x4ea01544758fd2c7045961904686bfe232d2220a04ecaa2d6b08dac17827febf","license":"MIT","urls":["bzz-raw://fabe6bef5167ae741dd8c22d7f81d3f9120bd61b290762a2e8f176712567d329","dweb:/ipfs/QmSnEitJ6xmf1SSAUeZozD7Gx7h8bNnX3a1ZBzqeivsvVg"]},"dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol":{"keccak256":"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8","license":"MIT","urls":["bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621","dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL"]},"dependencies/permit2-4.0.0/src/interfaces/IAllowanceTransfer.sol":{"keccak256":"0x37f0ac203b6ef605c9533e1a739477e8e9dcea90710b40e645a367f8a21ace29","license":"MIT","urls":["bzz-raw://e0104d72aeaec1cd66cc232e7de7b7ead08608efcc179491b8a66387614670b0","dweb:/ipfs/QmfAZDyuNC9FXXbnJUwqHNwmAK6uRrXxtWEytLsxjskPsN"]},"dependencies/permit2-4.0.0/src/interfaces/IEIP712.sol":{"keccak256":"0xfdccf2b9639070803cd0e4198427fb0df3cc452ca59bd3b8a0d957a9a4254138","license":"MIT","urls":["bzz-raw://f7c936ac42ce89e827db905a1544397f8bdf46db34cdb6aa1b90dea42fdb4c72","dweb:/ipfs/QmVgurxo1N31qZqkPBirw9Z7S9tLYmv6jSwQp8R8ur2cBk"]},"dependencies/permit2-4.0.0/src/interfaces/IPermit2.sol":{"keccak256":"0xaa631cc9f53e699301d94233007110a345e6779011def484e8dd97b8fe0af771","license":"MIT","urls":["bzz-raw://fc0502cf19c9c18f320a3001201e89e350393b75837f6b7971de18b2de06f30d","dweb:/ipfs/QmT9SfhdJ7VJNNrf94g4H5usyi7ShqWGx7Cqsz9jZTjX96"]},"dependencies/permit2-4.0.0/src/interfaces/ISignatureTransfer.sol":{"keccak256":"0xe6df9966f8841dc3958ee86169c89de97e7f614c81c28b9dc947b12d732df64e","license":"MIT","urls":["bzz-raw://3d4eafdee7f48c3be8350a94eb6edd0bfb2af2c105df65787a77174f356c0317","dweb:/ipfs/QmY1j2adeeAhNpn6cUuthemxGCdLXHTfyMh9yTKsY4mZ2d"]},"dependencies/universal-router-4.0.0/contracts/interfaces/IUniversalRouter.sol":{"keccak256":"0x6fb50cd0fa7081a8f4e76bab601dc8110d95a0a96b5eb50a9929c6c864ce000a","license":"GPL-3.0-or-later","urls":["bzz-raw://ac8cfdfb3139956e409ea02e24f6c7b516bff0dcff72357013b9e72071fa6d04","dweb:/ipfs/QmUXvpo4oQqbMqSA7CLHoQFpeoxd57ALWkT2qLDs6TQDnL"]},"dependencies/universal-router-4.0.0/contracts/libraries/Commands.sol":{"keccak256":"0xa22563c866de6f6677edb738051c401a58800f2eaa18d05e33dc6c9aa7f49ecb","license":"GPL-3.0-or-later","urls":["bzz-raw://c828c4994cff904daed41a90a4b7ecc5100061110f64955dae386934805d1dd1","dweb:/ipfs/QmUiQy9rFQCWCQyh5Nn4ikxwbtNWW1UqGg54TKydGi88uy"]},"dependencies/v4-core-4.0.0/src/interfaces/IExtsload.sol":{"keccak256":"0x80b53ca4907d6f0088c3b931f2b72cad1dc4615a95094d96bd0fb8dff8d5ba43","license":"MIT","urls":["bzz-raw://375c69148622aab7a3537d5fd37d373a8e9731022c8d87bdaee46233b0a99fe1","dweb:/ipfs/QmXFjdoYRxsA5B1kyuxEXgNf3FBoL1zPvy26Qy8EtpdFRN"]},"dependencies/v4-core-4.0.0/src/interfaces/IExttload.sol":{"keccak256":"0xc6b68283ebd8d1c789df536756726eed51c589134bb20821b236a0d22a135937","license":"MIT","urls":["bzz-raw://294394f72dfc219689209f4130d85601dfd0d63c8d47578050d312db70f9b6c8","dweb:/ipfs/QmTDMQ3oxCGHgEBU48a3Lp4S1rRjc8vVCxkhE5ZNej1bsY"]},"dependencies/v4-core-4.0.0/src/interfaces/IHooks.sol":{"keccak256":"0x4c9571aed0c2b6ef11832545554fc11ffdb03746daaf5c73683c00600bfc7ec0","license":"MIT","urls":["bzz-raw://e78b34b58ce9de91b91943b4f3cc3ce121d0b151e123e8a600ac5ef64d91db6c","dweb:/ipfs/QmRkaQnPCYwLrXgbpGujJTx32PaZK63KSPJJV1XmnQuCMb"]},"dependencies/v4-core-4.0.0/src/interfaces/IPoolManager.sol":{"keccak256":"0x3534f00531038e77ab8a7fc4d0a6e0993ee53fb7a396b1324ad917318ea46cea","license":"MIT","urls":["bzz-raw://0a4a7e771828dc40848485b568a1cf514f553ace6653f4f4d1ad3f3e9cdb6c27","dweb:/ipfs/QmTjzQ7KVYnrEWtxPER2E4MXzycgcznfzSDsZtd5turk5V"]},"dependencies/v4-core-4.0.0/src/interfaces/IProtocolFees.sol":{"keccak256":"0x32a666e588a2f66334430357bb1e2424fe7eebeb98a3364b1dd16eb6ccca9848","license":"MIT","urls":["bzz-raw://85751d302125881f72e5f8af051c2d5d9b1f606ebaea8ca7d04fccdd27cc252d","dweb:/ipfs/QmeRwomeh9NWm6A6fgNA4KZPQZHPpdKsPQyYsHSFmvud7J"]},"dependencies/v4-core-4.0.0/src/interfaces/external/IERC20Minimal.sol":{"keccak256":"0xeccadf1bf69ba2eb51f2fe4fa511bc7bb05bbd6b9f9a3cb8e5d83d9582613e0f","license":"MIT","urls":["bzz-raw://118757369892687b99ef46ce28d6861f62c098285bd7687a4f17f7e44e5f81de","dweb:/ipfs/QmUxqbYqQtcEwwFbb9e6BBMePEaSgN8C45v6RKubD4ib8d"]},"dependencies/v4-core-4.0.0/src/interfaces/external/IERC6909Claims.sol":{"keccak256":"0xa586f345739e52b0488a0fe40b6e375cce67fdd25758408b0efcb5133ad96a48","license":"MIT","urls":["bzz-raw://e8c557b7e52abdbbd82e415a1acc27921446a7fd090b7d4877e52be72619547f","dweb:/ipfs/QmXE2KNPbXmGX8BQF3ei6zhzRTnhoTQg39XmqMnkhbr6QK"]},"dependencies/v4-core-4.0.0/src/libraries/CustomRevert.sol":{"keccak256":"0x111ed3031b6990c80a93ae35dde6b6ac0b7e6af471388fdd7461e91edda9b7de","license":"MIT","urls":["bzz-raw://c9ea883c98d6ae1829160d0977bb5195761cfd5bc81692d0a941f45717f594cd","dweb:/ipfs/QmZPwxzaeMNv536wzrAMrMswu7vMHuqPVpjcqL3YvCMoxt"]},"dependencies/v4-core-4.0.0/src/libraries/SafeCast.sol":{"keccak256":"0x42c4a24f996a14d358be397b71f7ec9d7daf666aaec78002c63315a6ee67aa86","license":"MIT","urls":["bzz-raw://c3db86e2ba3679105fc32edec656c70282e1fede6cab11217702443f6c26fa59","dweb:/ipfs/QmX4yaaSPdKQzYNRsezjTvZKsubzS8JRTEGFD3fPpTTCcj"]},"dependencies/v4-core-4.0.0/src/types/BalanceDelta.sol":{"keccak256":"0xa719c8fe51e0a9524280178f19f6851bcc3b3b60e73618f3d60905d35ae5569f","license":"MIT","urls":["bzz-raw://7436928dc9de35c6c7c5c636cb51adaf295cfd590da83b19a004ae33cbec9ef9","dweb:/ipfs/QmRJ9yZkUpzk4433GX3LgVVL8jwpbSYSUwXcucKisf3v4H"]},"dependencies/v4-core-4.0.0/src/types/BeforeSwapDelta.sol":{"keccak256":"0x2a774312d91285313d569da1a718c909655da5432310417692097a1d4dc83a78","license":"MIT","urls":["bzz-raw://a2c7a0379955cff9c17ab9e61f95e42909aa5947c22740f86ce940d09856f782","dweb:/ipfs/QmaAuo8UBYXsGrVuKh8iRoAAdqwtg1jDq515cW1ZRP5m9K"]},"dependencies/v4-core-4.0.0/src/types/Currency.sol":{"keccak256":"0x4a0b84b282577ff6f8acf13ec9f4d32dbb9348748b49611d00e68bee96609c93","license":"MIT","urls":["bzz-raw://45f9d62ab3d51b52957279e353853ba1547c3182c9a1e3d1846ada4a90263b01","dweb:/ipfs/QmS8NG84ccQS1yXVD8cv3eKX7J1UKxuJhbUfHTQR2opKF5"]},"dependencies/v4-core-4.0.0/src/types/PoolId.sol":{"keccak256":"0x308311916ea0f5c2fd878b6a2751eb223d170a69e33f601fae56dfe3c5d392af","license":"MIT","urls":["bzz-raw://669c2cd7ac17690b5d8831e0bda72822376c3a04b36afed6d31df4d75fe60918","dweb:/ipfs/QmT6EpkxqU8VF3WsgrZ66F3s1cCQRffR95z1HDYZz7ph6y"]},"dependencies/v4-core-4.0.0/src/types/PoolKey.sol":{"keccak256":"0xf89856e0580d7a4856d3187a76858377ccee9d59702d230c338d84388221b786","license":"MIT","urls":["bzz-raw://6f3118fa189025695c37fdf0bdd1190f085ad097484d3c88cf4c56d1db65f639","dweb:/ipfs/QmamXpgtB8GV1CaFLvqefPWSoikLDhMk1yU4heBnVzU8gi"]},"dependencies/v4-periphery-4.0.0/src/interfaces/IImmutableState.sol":{"keccak256":"0x36ab3100e87457ecf04887f4f540e34fd7f21d8e3b83880cb679239e60b7b06b","license":"MIT","urls":["bzz-raw://7f290c7ce8e4832608d637a51b13dff95abecf6549485448e647a11c8ed01341","dweb:/ipfs/QmfD1R6mTp8j4EjQXmQZW3vCh11EYFjnvoaw8rXRP27mMq"]},"dependencies/v4-periphery-4.0.0/src/interfaces/IV4Router.sol":{"keccak256":"0xc4133fae25e61cc2447d7331729f6035322d7c1fe26b39b225422bf98cc63459","license":"MIT","urls":["bzz-raw://3c24ff8428504e973e947a059f96289a66c520cd7f8ef47a3224f9cb6abdaf25","dweb:/ipfs/QmVqxYnngWXXcCiuTC143vTEJrjZK5NXWB92pjvVbuJBQ5"]},"dependencies/v4-periphery-4.0.0/src/libraries/Actions.sol":{"keccak256":"0x8efd4b8b289177ee27e557d9d0a5a9f973d66fe1eb1ef8959d316b11987ca830","license":"MIT","urls":["bzz-raw://07fe35f194eb99465028f0546359befea574d844da53767d32f22b233c3bcc98","dweb:/ipfs/Qmc19631uFxABTHAbGrDrroexi9GdyxWntaum1v8npPYz5"]},"dependencies/v4-periphery-4.0.0/src/libraries/PathKey.sol":{"keccak256":"0xbbd79ffefe045f025263e389539021266fb4d371463aefba405e1ff1d3fcf9bc","license":"MIT","urls":["bzz-raw://2d1c47b81a01218be46ee79f0a8837095479b94dc5cfd18abbf2006709f0ea89","dweb:/ipfs/QmRb6CQ13Zp7f3WF5jbZtsF2szhxpPgcuWs9mjwQXxzqtg"]},"src/helpers/UniswapV4SwapHelpers.sol":{"keccak256":"0x91481e4e7fef43a4d431f07e3def558fa9e10fed7e6d8e35a2885d747ab47926","license":"MIT","urls":["bzz-raw://d4214014310d4a1316a4917b2289558ad5c35f0b07107d18ae036e7c30612b0c","dweb:/ipfs/QmQRFW8NNXR5HmrPiU58bydABBQvUeVUASXxTLLKzBCVHT"]}},"version":1},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":{"types":null,"storage":[]},"userdoc":{"kind":"user","methods":{},"version":1},"devdoc":{"kind":"dev","errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"methods":{},"version":1},"sourceIds":{"src/helpers/UniswapV4SwapHelpers.sol":{"id":30},"dependencies/v4-core-4.0.0/src/types/PoolId.sol":{"id":24},"dependencies/v4-core-4.0.0/src/types/PoolKey.sol":{"id":25},"dependencies/v4-core-4.0.0/src/types/Currency.sol":{"id":23},"dependencies/v4-core-4.0.0/src/interfaces/IHooks.sol":{"id":14},"dependencies/permit2-4.0.0/src/interfaces/IEIP712.sol":{"id":7},"dependencies/v4-core-4.0.0/src/libraries/SafeCast.sol":{"id":20},"dependencies/v4-core-4.0.0/src/types/BalanceDelta.sol":{"id":21},"dependencies/permit2-4.0.0/src/interfaces/IPermit2.sol":{"id":8},"dependencies/v4-core-4.0.0/src/interfaces/IExtsload.sol":{"id":12},"dependencies/v4-core-4.0.0/src/interfaces/IExttload.sol":{"id":13},"dependencies/v4-core-4.0.0/src/types/BeforeSwapDelta.sol":{"id":22},"dependencies/v4-core-4.0.0/src/libraries/CustomRevert.sol":{"id":19},"dependencies/v4-periphery-4.0.0/src/libraries/Actions.sol":{"id":28},"dependencies/v4-periphery-4.0.0/src/libraries/PathKey.sol":{"id":29},"dependencies/v4-core-4.0.0/src/interfaces/IPoolManager.sol":{"id":15},"dependencies/v4-core-4.0.0/src/interfaces/IProtocolFees.sol":{"id":16},"dependencies/v4-periphery-4.0.0/src/interfaces/IV4Router.sol":{"id":27},"dependencies/permit2-4.0.0/src/interfaces/IAllowanceTransfer.sol":{"id":6},"dependencies/permit2-4.0.0/src/interfaces/ISignatureTransfer.sol":{"id":9},"dependencies/v4-periphery-4.0.0/src/interfaces/IImmutableState.sol":{"id":26},"dependencies/universal-router-4.0.0/contracts/libraries/Commands.sol":{"id":11},"dependencies/v4-core-4.0.0/src/interfaces/external/IERC20Minimal.sol":{"id":17},"dependencies/v4-core-4.0.0/src/interfaces/external/IERC6909Claims.sol":{"id":18},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC20.sol":{"id":2},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC165.sol":{"id":1},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol":{"id":3},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC1363.sol":{"id":0},"dependencies/universal-router-4.0.0/contracts/interfaces/IUniversalRouter.sol":{"id":10},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol":{"id":4},"dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol":{"id":5}},"additionalInput":null,"stdJsonInput":{"sources":{"src/helpers/UniswapV4SwapHelpers.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { IERC20 } from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport { SafeERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPermit2 } from \"@uniswap/permit2/src/interfaces/IPermit2.sol\";\nimport { IUniversalRouter } from \"@uniswap/universal-router/contracts/interfaces/IUniversalRouter.sol\";\nimport { Commands } from \"@uniswap/universal-router/contracts/libraries/Commands.sol\";\nimport { Currency } from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport { PoolKey } from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport { IV4Router } from \"@uniswap/v4-periphery/src/interfaces/IV4Router.sol\";\nimport { Actions } from \"@uniswap/v4-periphery/src/libraries/Actions.sol\";\n\ncontract UniswapV4SwapHelpers {\n    using SafeERC20 for IERC20;\n\n    IUniversalRouter public immutable UNIVERSAL_ROUTER;\n    IPermit2 public immutable PERMIT2;\n\n    error InvalidValue();\n    error InsufficientOutputAmount(uint256 amountOut, uint256 minAmountOut);\n\n    constructor(IUniversalRouter universalRouter, IPermit2 permit2) {\n        UNIVERSAL_ROUTER = universalRouter;\n        PERMIT2 = permit2;\n    }\n\n    function swapExactInSingle(\n        PoolKey calldata poolKey,\n        bool zeroForOne,\n        uint256 amountIn,\n        uint256 minAmountOut,\n        uint256 deadline,\n        address receiver,\n        bytes calldata hookData\n    )\n        public\n        payable\n        returns (uint256 amountOut)\n    {\n        bytes memory commands = abi.encodePacked(uint8(Commands.V4_SWAP));\n        bytes[] memory inputs = new bytes[](1);\n\n        bytes memory actions =\n            abi.encodePacked(uint8(Actions.SWAP_EXACT_IN_SINGLE), uint8(Actions.SETTLE_ALL), uint8(Actions.TAKE_ALL));\n        bytes[] memory params = new bytes[](3);\n\n        // forge-lint: disable-next-line(unsafe-typecast)\n        uint128 amountIn128 = uint128(amountIn);\n        // forge-lint: disable-next-line(unsafe-typecast)\n        uint128 minAmountOut128 = uint128(minAmountOut);\n        params[0] = abi.encode(\n            IV4Router.ExactInputSingleParams({\n                poolKey: poolKey,\n                zeroForOne: zeroForOne,\n                amountIn: amountIn128,\n                amountOutMinimum: minAmountOut128,\n                hookData: hookData\n            })\n        );\n\n        Currency currencyIn = zeroForOne ? poolKey.currency0 : poolKey.currency1;\n        Currency currencyOut = zeroForOne ? poolKey.currency1 : poolKey.currency0;\n\n        params[1] = abi.encode(currencyIn, amountIn);\n        params[2] = abi.encode(currencyOut, minAmountOut);\n\n        if (currencyIn.isAddressZero()) {\n            if (msg.value == 0) {\n                revert InvalidValue();\n            }\n        } else {\n            if (msg.value != 0) {\n                revert InvalidValue();\n            }\n            address tokenIn = Currency.unwrap(currencyIn);\n            IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);\n            approveToken(tokenIn, amountIn);\n        }\n\n        inputs[0] = abi.encode(actions, params);\n        UNIVERSAL_ROUTER.execute{ value: msg.value }(commands, inputs, deadline);\n\n        amountOut = currencyOut.balanceOfSelf();\n        if (amountOut < minAmountOut) {\n            revert InsufficientOutputAmount(amountOut, minAmountOut);\n        }\n        currencyOut.transfer(receiver, amountOut);\n\n        return amountOut;\n    }\n\n    function approveToken(address token, uint256 amount) private {\n        IERC20(token).forceApprove(address(PERMIT2), amount);\n        // forge-lint: disable-next-line(unsafe-typecast)\n        PERMIT2.approve(token, address(UNIVERSAL_ROUTER), uint160(amount), type(uint48).max);\n    }\n\n    receive() external payable { }\n}\n"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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 {IPoolManager} from \"./IPoolManager.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        IPoolManager.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        IPoolManager.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        IPoolManager.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        IPoolManager.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(\n        address sender,\n        PoolKey calldata key,\n        IPoolManager.SwapParams calldata params,\n        bytes calldata hookData\n    ) external 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        IPoolManager.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"},"dependencies/permit2-4.0.0/src/interfaces/IEIP712.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface IEIP712 {\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/permit2-4.0.0/src/interfaces/IPermit2.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {ISignatureTransfer} from \"./ISignatureTransfer.sol\";\nimport {IAllowanceTransfer} from \"./IAllowanceTransfer.sol\";\n\n/// @notice Permit2 handles signature-based transfers in SignatureTransfer and allowance-based transfers in AllowanceTransfer.\n/// @dev Users must approve Permit2 before calling any of the transfer functions.\ninterface IPermit2 is ISignatureTransfer, IAllowanceTransfer {\n// IPermit2 unifies the two interfaces so users have maximal flexibility with their approval.\n}\n"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-periphery-4.0.0/src/libraries/Actions.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice Library to define different pool actions.\n/// @dev These are suggested common commands, however additional commands should be defined as required\n/// Some of these actions are not supported in the Router contracts or Position Manager contracts, but are left as they may be helpful commands for other peripheral contracts.\nlibrary Actions {\n    // pool actions\n    // liquidity actions\n    uint256 internal constant INCREASE_LIQUIDITY = 0x00;\n    uint256 internal constant DECREASE_LIQUIDITY = 0x01;\n    uint256 internal constant MINT_POSITION = 0x02;\n    uint256 internal constant BURN_POSITION = 0x03;\n    uint256 internal constant INCREASE_LIQUIDITY_FROM_DELTAS = 0x04;\n    uint256 internal constant MINT_POSITION_FROM_DELTAS = 0x05;\n\n    // swapping\n    uint256 internal constant SWAP_EXACT_IN_SINGLE = 0x06;\n    uint256 internal constant SWAP_EXACT_IN = 0x07;\n    uint256 internal constant SWAP_EXACT_OUT_SINGLE = 0x08;\n    uint256 internal constant SWAP_EXACT_OUT = 0x09;\n\n    // donate\n    // note this is not supported in the position manager or router\n    uint256 internal constant DONATE = 0x0a;\n\n    // closing deltas on the pool manager\n    // settling\n    uint256 internal constant SETTLE = 0x0b;\n    uint256 internal constant SETTLE_ALL = 0x0c;\n    uint256 internal constant SETTLE_PAIR = 0x0d;\n    // taking\n    uint256 internal constant TAKE = 0x0e;\n    uint256 internal constant TAKE_ALL = 0x0f;\n    uint256 internal constant TAKE_PORTION = 0x10;\n    uint256 internal constant TAKE_PAIR = 0x11;\n\n    uint256 internal constant CLOSE_CURRENCY = 0x12;\n    uint256 internal constant CLEAR_OR_TAKE = 0x13;\n    uint256 internal constant SWEEP = 0x14;\n\n    uint256 internal constant WRAP = 0x15;\n    uint256 internal constant UNWRAP = 0x16;\n\n    // minting/burning 6909s to close deltas\n    // note this is not supported in the position manager or router\n    uint256 internal constant MINT_6909 = 0x17;\n    uint256 internal constant BURN_6909 = 0x18;\n}\n"},"dependencies/v4-periphery-4.0.0/src/libraries/PathKey.sol":{"content":"//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Currency} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {IHooks} from \"@uniswap/v4-core/src/interfaces/IHooks.sol\";\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\n\nstruct PathKey {\n    Currency intermediateCurrency;\n    uint24 fee;\n    int24 tickSpacing;\n    IHooks hooks;\n    bytes hookData;\n}\n\nusing PathKeyLibrary for PathKey global;\n\n/// @title PathKey Library\n/// @notice Functions for working with PathKeys\nlibrary PathKeyLibrary {\n    /// @notice Get the pool and swap direction for a given PathKey\n    /// @param params the given PathKey\n    /// @param currencyIn the input currency\n    /// @return poolKey the pool key of the swap\n    /// @return zeroForOne the direction of the swap, true if currency0 is being swapped for currency1\n    function getPoolAndSwapDirection(PathKey calldata params, Currency currencyIn)\n        internal\n        pure\n        returns (PoolKey memory poolKey, bool zeroForOne)\n    {\n        Currency currencyOut = params.intermediateCurrency;\n        (Currency currency0, Currency currency1) =\n            currencyIn < currencyOut ? (currencyIn, currencyOut) : (currencyOut, currencyIn);\n\n        zeroForOne = currencyIn == currency0;\n        poolKey = PoolKey(currency0, currency1, params.fee, params.tickSpacing, params.hooks);\n    }\n}\n"},"dependencies/v4-core-4.0.0/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\";\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    struct 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 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    struct 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\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"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-periphery-4.0.0/src/interfaces/IV4Router.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {PoolKey} from \"@uniswap/v4-core/src/types/PoolKey.sol\";\nimport {Currency} from \"@uniswap/v4-core/src/types/Currency.sol\";\nimport {PathKey} from \"../libraries/PathKey.sol\";\nimport {IImmutableState} from \"./IImmutableState.sol\";\n\n/// @title IV4Router\n/// @notice Interface for the V4Router contract\ninterface IV4Router is IImmutableState {\n    /// @notice Emitted when an exactInput swap does not receive its minAmountOut\n    error V4TooLittleReceived(uint256 minAmountOutReceived, uint256 amountReceived);\n    /// @notice Emitted when an exactOutput is asked for more than its maxAmountIn\n    error V4TooMuchRequested(uint256 maxAmountInRequested, uint256 amountRequested);\n\n    /// @notice Parameters for a single-hop exact-input swap\n    struct ExactInputSingleParams {\n        PoolKey poolKey;\n        bool zeroForOne;\n        uint128 amountIn;\n        uint128 amountOutMinimum;\n        bytes hookData;\n    }\n\n    /// @notice Parameters for a multi-hop exact-input swap\n    struct ExactInputParams {\n        Currency currencyIn;\n        PathKey[] path;\n        uint128 amountIn;\n        uint128 amountOutMinimum;\n    }\n\n    /// @notice Parameters for a single-hop exact-output swap\n    struct ExactOutputSingleParams {\n        PoolKey poolKey;\n        bool zeroForOne;\n        uint128 amountOut;\n        uint128 amountInMaximum;\n        bytes hookData;\n    }\n\n    /// @notice Parameters for a multi-hop exact-output swap\n    struct ExactOutputParams {\n        Currency currencyOut;\n        PathKey[] path;\n        uint128 amountOut;\n        uint128 amountInMaximum;\n    }\n}\n"},"dependencies/permit2-4.0.0/src/interfaces/IAllowanceTransfer.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IEIP712} from \"./IEIP712.sol\";\n\n/// @title AllowanceTransfer\n/// @notice Handles ERC20 token permissions through signature based allowance setting and ERC20 token transfers by checking allowed amounts\n/// @dev Requires user's token approval on the Permit2 contract\ninterface IAllowanceTransfer is IEIP712 {\n    /// @notice Thrown when an allowance on a token has expired.\n    /// @param deadline The timestamp at which the allowed amount is no longer valid\n    error AllowanceExpired(uint256 deadline);\n\n    /// @notice Thrown when an allowance on a token has been depleted.\n    /// @param amount The maximum amount allowed\n    error InsufficientAllowance(uint256 amount);\n\n    /// @notice Thrown when too many nonces are invalidated.\n    error ExcessiveInvalidation();\n\n    /// @notice Emits an event when the owner successfully invalidates an ordered nonce.\n    event NonceInvalidation(\n        address indexed owner, address indexed token, address indexed spender, uint48 newNonce, uint48 oldNonce\n    );\n\n    /// @notice Emits an event when the owner successfully sets permissions on a token for the spender.\n    event Approval(\n        address indexed owner, address indexed token, address indexed spender, uint160 amount, uint48 expiration\n    );\n\n    /// @notice Emits an event when the owner successfully sets permissions using a permit signature on a token for the spender.\n    event Permit(\n        address indexed owner,\n        address indexed token,\n        address indexed spender,\n        uint160 amount,\n        uint48 expiration,\n        uint48 nonce\n    );\n\n    /// @notice Emits an event when the owner sets the allowance back to 0 with the lockdown function.\n    event Lockdown(address indexed owner, address token, address spender);\n\n    /// @notice The permit data for a token\n    struct PermitDetails {\n        // ERC20 token address\n        address token;\n        // the maximum amount allowed to spend\n        uint160 amount;\n        // timestamp at which a spender's token allowances become invalid\n        uint48 expiration;\n        // an incrementing value indexed per owner,token,and spender for each signature\n        uint48 nonce;\n    }\n\n    /// @notice The permit message signed for a single token allowance\n    struct PermitSingle {\n        // the permit data for a single token alownce\n        PermitDetails details;\n        // address permissioned on the allowed tokens\n        address spender;\n        // deadline on the permit signature\n        uint256 sigDeadline;\n    }\n\n    /// @notice The permit message signed for multiple token allowances\n    struct PermitBatch {\n        // the permit data for multiple token allowances\n        PermitDetails[] details;\n        // address permissioned on the allowed tokens\n        address spender;\n        // deadline on the permit signature\n        uint256 sigDeadline;\n    }\n\n    /// @notice The saved permissions\n    /// @dev This info is saved per owner, per token, per spender and all signed over in the permit message\n    /// @dev Setting amount to type(uint160).max sets an unlimited approval\n    struct PackedAllowance {\n        // amount allowed\n        uint160 amount;\n        // permission expiry\n        uint48 expiration;\n        // an incrementing value indexed per owner,token,and spender for each signature\n        uint48 nonce;\n    }\n\n    /// @notice A token spender pair.\n    struct TokenSpenderPair {\n        // the token the spender is approved\n        address token;\n        // the spender address\n        address spender;\n    }\n\n    /// @notice Details for a token transfer.\n    struct AllowanceTransferDetails {\n        // the owner of the token\n        address from;\n        // the recipient of the token\n        address to;\n        // the amount of the token\n        uint160 amount;\n        // the token to be transferred\n        address token;\n    }\n\n    /// @notice A mapping from owner address to token address to spender address to PackedAllowance struct, which contains details and conditions of the approval.\n    /// @notice The mapping is indexed in the above order see: allowance[ownerAddress][tokenAddress][spenderAddress]\n    /// @dev The packed slot holds the allowed amount, expiration at which the allowed amount is no longer valid, and current nonce thats updated on any signature based approvals.\n    function allowance(address user, address token, address spender)\n        external\n        view\n        returns (uint160 amount, uint48 expiration, uint48 nonce);\n\n    /// @notice Approves the spender to use up to amount of the specified token up until the expiration\n    /// @param token The token to approve\n    /// @param spender The spender address to approve\n    /// @param amount The approved amount of the token\n    /// @param expiration The timestamp at which the approval is no longer valid\n    /// @dev The packed allowance also holds a nonce, which will stay unchanged in approve\n    /// @dev Setting amount to type(uint160).max sets an unlimited approval\n    function approve(address token, address spender, uint160 amount, uint48 expiration) external;\n\n    /// @notice Permit a spender to a given amount of the owners token via the owner's EIP-712 signature\n    /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce\n    /// @param owner The owner of the tokens being approved\n    /// @param permitSingle Data signed over by the owner specifying the terms of approval\n    /// @param signature The owner's signature over the permit data\n    function permit(address owner, PermitSingle memory permitSingle, bytes calldata signature) external;\n\n    /// @notice Permit a spender to the signed amounts of the owners tokens via the owner's EIP-712 signature\n    /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce\n    /// @param owner The owner of the tokens being approved\n    /// @param permitBatch Data signed over by the owner specifying the terms of approval\n    /// @param signature The owner's signature over the permit data\n    function permit(address owner, PermitBatch memory permitBatch, bytes calldata signature) external;\n\n    /// @notice Transfer approved tokens from one address to another\n    /// @param from The address to transfer from\n    /// @param to The address of the recipient\n    /// @param amount The amount of the token to transfer\n    /// @param token The token address to transfer\n    /// @dev Requires the from address to have approved at least the desired amount\n    /// of tokens to msg.sender.\n    function transferFrom(address from, address to, uint160 amount, address token) external;\n\n    /// @notice Transfer approved tokens in a batch\n    /// @param transferDetails Array of owners, recipients, amounts, and tokens for the transfers\n    /// @dev Requires the from addresses to have approved at least the desired amount\n    /// of tokens to msg.sender.\n    function transferFrom(AllowanceTransferDetails[] calldata transferDetails) external;\n\n    /// @notice Enables performing a \"lockdown\" of the sender's Permit2 identity\n    /// by batch revoking approvals\n    /// @param approvals Array of approvals to revoke.\n    function lockdown(TokenSpenderPair[] calldata approvals) external;\n\n    /// @notice Invalidate nonces for a given (token, spender) pair\n    /// @param token The token to invalidate nonces for\n    /// @param spender The spender to invalidate nonces for\n    /// @param newNonce The new nonce to set. Invalidates all nonces less than it.\n    /// @dev Can't invalidate more than 2**16 nonces per transaction.\n    function invalidateNonces(address token, address spender, uint48 newNonce) external;\n}\n"},"dependencies/permit2-4.0.0/src/interfaces/ISignatureTransfer.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IEIP712} from \"./IEIP712.sol\";\n\n/// @title SignatureTransfer\n/// @notice Handles ERC20 token transfers through signature based actions\n/// @dev Requires user's token approval on the Permit2 contract\ninterface ISignatureTransfer is IEIP712 {\n    /// @notice Thrown when the requested amount for a transfer is larger than the permissioned amount\n    /// @param maxAmount The maximum amount a spender can request to transfer\n    error InvalidAmount(uint256 maxAmount);\n\n    /// @notice Thrown when the number of tokens permissioned to a spender does not match the number of tokens being transferred\n    /// @dev If the spender does not need to transfer the number of tokens permitted, the spender can request amount 0 to be transferred\n    error LengthMismatch();\n\n    /// @notice Emits an event when the owner successfully invalidates an unordered nonce.\n    event UnorderedNonceInvalidation(address indexed owner, uint256 word, uint256 mask);\n\n    /// @notice The token and amount details for a transfer signed in the permit transfer signature\n    struct TokenPermissions {\n        // ERC20 token address\n        address token;\n        // the maximum amount that can be spent\n        uint256 amount;\n    }\n\n    /// @notice The signed permit message for a single token transfer\n    struct PermitTransferFrom {\n        TokenPermissions permitted;\n        // a unique value for every token owner's signature to prevent signature replays\n        uint256 nonce;\n        // deadline on the permit signature\n        uint256 deadline;\n    }\n\n    /// @notice Specifies the recipient address and amount for batched transfers.\n    /// @dev Recipients and amounts correspond to the index of the signed token permissions array.\n    /// @dev Reverts if the requested amount is greater than the permitted signed amount.\n    struct SignatureTransferDetails {\n        // recipient address\n        address to;\n        // spender requested amount\n        uint256 requestedAmount;\n    }\n\n    /// @notice Used to reconstruct the signed permit message for multiple token transfers\n    /// @dev Do not need to pass in spender address as it is required that it is msg.sender\n    /// @dev Note that a user still signs over a spender address\n    struct PermitBatchTransferFrom {\n        // the tokens and corresponding amounts permitted for a transfer\n        TokenPermissions[] permitted;\n        // a unique value for every token owner's signature to prevent signature replays\n        uint256 nonce;\n        // deadline on the permit signature\n        uint256 deadline;\n    }\n\n    /// @notice A map from token owner address and a caller specified word index to a bitmap. Used to set bits in the bitmap to prevent against signature replay protection\n    /// @dev Uses unordered nonces so that permit messages do not need to be spent in a certain order\n    /// @dev The mapping is indexed first by the token owner, then by an index specified in the nonce\n    /// @dev It returns a uint256 bitmap\n    /// @dev The index, or wordPosition is capped at type(uint248).max\n    function nonceBitmap(address, uint256) external view returns (uint256);\n\n    /// @notice Transfers a token using a signed permit message\n    /// @dev Reverts if the requested amount is greater than the permitted signed amount\n    /// @param permit The permit data signed over by the owner\n    /// @param owner The owner of the tokens to transfer\n    /// @param transferDetails The spender's requested transfer details for the permitted token\n    /// @param signature The signature to verify\n    function permitTransferFrom(\n        PermitTransferFrom memory permit,\n        SignatureTransferDetails calldata transferDetails,\n        address owner,\n        bytes calldata signature\n    ) external;\n\n    /// @notice Transfers a token using a signed permit message\n    /// @notice Includes extra data provided by the caller to verify signature over\n    /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition\n    /// @dev Reverts if the requested amount is greater than the permitted signed amount\n    /// @param permit The permit data signed over by the owner\n    /// @param owner The owner of the tokens to transfer\n    /// @param transferDetails The spender's requested transfer details for the permitted token\n    /// @param witness Extra data to include when checking the user signature\n    /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash\n    /// @param signature The signature to verify\n    function permitWitnessTransferFrom(\n        PermitTransferFrom memory permit,\n        SignatureTransferDetails calldata transferDetails,\n        address owner,\n        bytes32 witness,\n        string calldata witnessTypeString,\n        bytes calldata signature\n    ) external;\n\n    /// @notice Transfers multiple tokens using a signed permit message\n    /// @param permit The permit data signed over by the owner\n    /// @param owner The owner of the tokens to transfer\n    /// @param transferDetails Specifies the recipient and requested amount for the token transfer\n    /// @param signature The signature to verify\n    function permitTransferFrom(\n        PermitBatchTransferFrom memory permit,\n        SignatureTransferDetails[] calldata transferDetails,\n        address owner,\n        bytes calldata signature\n    ) external;\n\n    /// @notice Transfers multiple tokens using a signed permit message\n    /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition\n    /// @notice Includes extra data provided by the caller to verify signature over\n    /// @param permit The permit data signed over by the owner\n    /// @param owner The owner of the tokens to transfer\n    /// @param transferDetails Specifies the recipient and requested amount for the token transfer\n    /// @param witness Extra data to include when checking the user signature\n    /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash\n    /// @param signature The signature to verify\n    function permitWitnessTransferFrom(\n        PermitBatchTransferFrom memory permit,\n        SignatureTransferDetails[] calldata transferDetails,\n        address owner,\n        bytes32 witness,\n        string calldata witnessTypeString,\n        bytes calldata signature\n    ) external;\n\n    /// @notice Invalidates the bits specified in mask for the bitmap at the word position\n    /// @dev The wordPos is maxed at type(uint248).max\n    /// @param wordPos A number to index the nonceBitmap at\n    /// @param mask A bitmap masked against msg.sender's current bitmap at the word position\n    function invalidateUnorderedNonces(uint256 wordPos, uint256 mask) external;\n}\n"},"dependencies/v4-periphery-4.0.0/src/interfaces/IImmutableState.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IPoolManager} from \"@uniswap/v4-core/src/interfaces/IPoolManager.sol\";\n\n/// @title IImmutableState\n/// @notice Interface for the ImmutableState contract\ninterface IImmutableState {\n    /// @notice The Uniswap v4 PoolManager contract\n    function poolManager() external view returns (IPoolManager);\n}\n"},"dependencies/universal-router-4.0.0/contracts/libraries/Commands.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-or-later\npragma solidity ^0.8.24;\n\n/// @title Commands\n/// @notice Command Flags used to decode commands\nlibrary Commands {\n    // Masks to extract certain bits of commands\n    bytes1 internal constant FLAG_ALLOW_REVERT = 0x80;\n    bytes1 internal constant COMMAND_TYPE_MASK = 0x7f;\n\n    // Command Types. Maximum supported command at this moment is 0x3f.\n    // The commands are executed in nested if blocks to minimise gas consumption\n\n    // Command Types where value<=0x07, executed in the first nested-if block\n    uint256 constant V3_SWAP_EXACT_IN = 0x00;\n    uint256 constant V3_SWAP_EXACT_OUT = 0x01;\n    uint256 constant PERMIT2_TRANSFER_FROM = 0x02;\n    uint256 constant PERMIT2_PERMIT_BATCH = 0x03;\n    uint256 constant SWEEP = 0x04;\n    uint256 constant TRANSFER = 0x05;\n    uint256 constant PAY_PORTION = 0x06;\n    // COMMAND_PLACEHOLDER = 0x07;\n\n    // Command Types where 0x08<=value<=0x0f, executed in the second nested-if block\n    uint256 constant V2_SWAP_EXACT_IN = 0x08;\n    uint256 constant V2_SWAP_EXACT_OUT = 0x09;\n    uint256 constant PERMIT2_PERMIT = 0x0a;\n    uint256 constant WRAP_ETH = 0x0b;\n    uint256 constant UNWRAP_WETH = 0x0c;\n    uint256 constant PERMIT2_TRANSFER_FROM_BATCH = 0x0d;\n    uint256 constant BALANCE_CHECK_ERC20 = 0x0e;\n    // COMMAND_PLACEHOLDER = 0x0f;\n\n    // Command Types where 0x10<=value<=0x20, executed in the third nested-if block\n    uint256 constant V4_SWAP = 0x10;\n    uint256 constant V3_POSITION_MANAGER_PERMIT = 0x11;\n    uint256 constant V3_POSITION_MANAGER_CALL = 0x12;\n    uint256 constant V4_INITIALIZE_POOL = 0x13;\n    uint256 constant V4_POSITION_MANAGER_CALL = 0x14;\n    // COMMAND_PLACEHOLDER = 0x15 -> 0x20\n\n    // Command Types where 0x21<=value<=0x3f\n    uint256 constant EXECUTE_SUB_PLAN = 0x21;\n    // COMMAND_PLACEHOLDER for 0x22 to 0x3f\n\n    // Command Types where 0x40<=value<=0x5f\n    // Reserved for 3rd party integrations\n    uint256 constant ACROSS_V4_DEPOSIT_V3 = 0x40;\n}\n"},"dependencies/v4-core-4.0.0/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"},"dependencies/v4-core-4.0.0/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"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\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"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC1363.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)\n\npragma solidity ^0.8.20;\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"},"dependencies/universal-router-4.0.0/contracts/interfaces/IUniversalRouter.sol":{"content":"// SPDX-License-Identifier: GPL-3.0-or-later\npragma solidity ^0.8.24;\n\nstruct AcrossV4DepositV3Params {\n    address depositor; // credited depositor\n    address recipient; // destination recipient\n    address inputToken; // ERC20 on origin (WETH if bridging ETH)\n    address outputToken; // ERC20 on destination (or 0x0)\n    uint256 inputAmount; // supports ActionConstants.CONTRACT_BALANCE to use contract's entire balance\n    uint256 outputAmount;\n    uint256 destinationChainId;\n    address exclusiveRelayer; // 0x0 if no exclusivity\n    uint32 quoteTimestamp;\n    uint32 fillDeadline;\n    uint32 exclusivityDeadline;\n    bytes message;\n    bool useNative; // if true, call is payable with value=inputAmount (inputToken must be WETH)\n}\n\ninterface IUniversalRouter {\n    /// @notice Thrown when a required command has failed\n    error ExecutionFailed(uint256 commandIndex, bytes message);\n\n    /// @notice Thrown when attempting to send ETH directly to the contract\n    error ETHNotAccepted();\n\n    /// @notice Thrown when executing commands with an expired deadline\n    error TransactionDeadlinePassed();\n\n    /// @notice Thrown when attempting to execute commands and an incorrect number of inputs are provided\n    error LengthMismatch();\n\n    // @notice Thrown when an address that isn't WETH tries to send ETH to the router without calldata\n    error InvalidEthSender();\n\n    /// @notice Executes encoded commands along with provided inputs. Reverts if deadline has expired.\n    /// @param commands A set of concatenated commands, each 1 byte in length\n    /// @param inputs An array of byte strings containing abi encoded inputs for each command\n    /// @param deadline The deadline by which the transaction must be executed\n    function execute(bytes calldata commands, bytes[] calldata inputs, uint256 deadline) external payable;\n\n    /// @notice Executes encoded commands with EIP712 signature verification\n    /// @param commands A set of concatenated commands, each 1 byte in length\n    /// @param inputs An array of byte strings containing abi encoded inputs for each command\n    /// @param intent Application-specific intent identifier\n    /// @param data Application-specific data\n    /// @param verifySender If true, the signature must include msg.sender; if false, uses address(0)\n    /// @param nonce Unordered nonce for replay protection. Use bytes32(type(uint256).max) to skip nonce check\n    /// @param signature EIP712 signature authorizing the execution\n    /// @param deadline The deadline by which the transaction must be executed\n    /// @dev The signer, intent, and data are recovered/stored in transient storage for the duration of execution.\n    /// All commands (including nested sub-commands via EXECUTE_SUB_PLAN) are covered by the signature.\n    /// The signer, intent, and data can be accessed by commands via signedRouteContext().\n    /// External reentrancy is prevented by the isNotLocked modifier on execute(). Internal reentrancy via\n    /// EXECUTE_SUB_PLAN is safe as those sub-commands are part of the signed message. There is no way to change\n    /// the signer mid-execution as executeSigned cannot be called internally.\n    function executeSigned(\n        bytes calldata commands,\n        bytes[] calldata inputs,\n        bytes32 intent,\n        bytes32 data,\n        bool verifySender,\n        bytes32 nonce,\n        bytes calldata signature,\n        uint256 deadline\n    ) external payable;\n\n    /// @notice Returns all signed execution context (signer, intent, data) in a single call\n    /// @return signer The address that signed the current execution, or address(0) if not in a signed execution\n    /// @return intent The intent value from the signed execution, or bytes32(0) if not in a signed execution\n    /// @return data The data value from the signed execution, or bytes32(0) if not in a signed execution\n    /// @dev This reads from transient storage which is only set during executeSigned().\n    /// @dev When consuming this context from a hook, the hook MUST verify that msg.sender is the\n    /// UniversalRouter contract. Otherwise, a malicious contract in the execution chain could abuse the\n    /// legitimate signed context by calling other contracts with it, causing unintended side effects.\n    function signedRouteContext() external view returns (address signer, bytes32 intent, bytes32 data);\n}\n"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\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        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\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        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n            _callOptionalReturn(token, approvalCall);\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 rely 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 rely 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     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        uint256 returnSize;\n        uint256 returnValue;\n        assembly (\"memory-safe\") {\n            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n            // bubble errors\n            if iszero(success) {\n                let ptr := mload(0x40)\n                returndatacopy(ptr, 0, returndatasize())\n                revert(ptr, returndatasize())\n            }\n            returnSize := returndatasize()\n            returnValue := mload(0)\n        }\n\n        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        bool success;\n        uint256 returnSize;\n        uint256 returnValue;\n        assembly (\"memory-safe\") {\n            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n            returnSize := returndatasize()\n            returnValue := mload(0)\n        }\n        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n    }\n}\n"},"dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"}},"language":"Solidity","settings":{"viaIR":true,"metadata":{"appendCBOR":false,"bytecodeHash":"none","useLiteralContent":false},"libraries":{},"optimizer":{"runs":200,"enabled":true},"evmVersion":"cancun","remappings":["@layerzerolabs/oapp-evm/=dependencies/devtools-0.0.1/packages/oapp-evm/","@layerzerolabs/lz-evm-protocol-v2/=dependencies/layerzero-v2-2.0.2/packages/layerzero-v2/evm/protocol/","@layerzerolabs/lz-evm-oapp-v2/=dependencies/layerzero-v2-2.0.2/packages/layerzero-v2/evm/oapp/","@uniswap/v4-core/=dependencies/v4-core-4.0.0/","@uniswap/v4-periphery/=dependencies/v4-periphery-4.0.0/","@uniswap/universal-router/=dependencies/universal-router-4.0.0/","@uniswap/permit2/=dependencies/permit2-4.0.0/","devtools/=dependencies/devtools-0.0.1/packages/toolbox-foundry/src/","ds-test/=dependencies/forge-std-1.9.7/dependencies/ds-test/src/","enso-weiroll/=dependencies/enso-weiroll-1.4.1/contracts/","erc4626-tests/=dependencies/@openzeppelin-contracts-5.2.0/lib/erc4626-tests/","forge-std/=dependencies/forge-std-1.9.7/src/","halmos-cheatcodes/=dependencies/@openzeppelin-contracts-5.2.0/lib/halmos-cheatcodes/src/","layerzero-v2/=dependencies/layerzero-v2-2.0.2/","openzeppelin-contracts/=dependencies/@openzeppelin-contracts-5.2.0/contracts/","safe-contracts/=dependencies/safe-tools-0.2.0/lib/safe-contracts/contracts/","safe-tools/=dependencies/safe-tools-0.2.0/src/","solady/=dependencies/solady-0.1.22/src/","solmate/=dependencies/solady-0.1.22/lib/solmate/src/","@ensdomains/=dependencies/v4-core-4.0.0/node_modules/@ensdomains/","forge-gas-snapshot/=dependencies/v4-periphery-4.0.0/lib/permit2/lib/forge-gas-snapshot/src/","hardhat/=dependencies/v4-core-4.0.0/node_modules/hardhat/","permit2/=dependencies/v4-periphery-4.0.0/lib/permit2/","v4-core/=dependencies/v4-core-4.0.0/src/","v4-periphery/=dependencies/v4-periphery-4.0.0/","account-abstraction-v7/=dependencies/account-abstraction-v7-0.7.0/contracts/","@openzeppelin-contracts-5.2.0/=dependencies/@openzeppelin-contracts-5.2.0/","account-abstraction-0.7.0/=dependencies/account-abstraction-v7-0.7.0/contracts/","devtools-0.0.1/=dependencies/devtools-0.0.1/","enso-weiroll-1.4.1/=dependencies/enso-weiroll-1.4.1/contracts/","forge-std-1.9.7/=dependencies/forge-std-1.9.7/src/","layerzero-v2-2.0.2/=dependencies/layerzero-v2-2.0.2/","safe-smart-account-1.5.0/=dependencies/safe-smart-account-1.5.0/contracts/","safe-tools-0.2.0/=dependencies/safe-tools-0.2.0/src/","solady-0.1.22/=dependencies/solady-0.1.22/src/","v4-core-4.0.0/=dependencies/v4-core-4.0.0/src/","v4-periphery-4.0.0/=dependencies/v4-periphery-4.0.0/src/","chainlink-ccip/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/","chainlink-ccip-1.6.2/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/","chainlink-evm/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/","chainlink-evm-1.5.0/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/","@chainlink/=dependencies/chainlink-evm-1.5.0/","@openzeppelin/contracts@5.0.2/utils/introspection/IERC165.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol","@openzeppelin/contracts@5.0.2/utils/introspection/ERC165Checker.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/ERC165Checker.sol","@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol","@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol","universal-router-4.0.0/=dependencies/universal-router-4.0.0/","@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.2.0/contracts/","@uniswap/v2-core/=dependencies/universal-router-4.0.0/node_modules/@uniswap/v2-core/","@uniswap/v3-core/=dependencies/universal-router-4.0.0/node_modules/@uniswap/v3-core/","@uniswap/v3-periphery/=dependencies/universal-router-4.0.0/lib/v3-periphery/","account-abstraction-v7-0.7.0/=dependencies/account-abstraction-v7-0.7.0/contracts/","permit2-4.0.0/=dependencies/permit2-4.0.0/","shortcuts-vm-0.1.0/=dependencies/shortcuts-vm-0.1.0/src/","v3-periphery/=dependencies/universal-router-4.0.0/lib/v3-periphery/contracts/"]}},"stdJsonOutput":{"sources":{"src/helpers/UniswapV4SwapHelpers.sol":{"id":30},"dependencies/v4-core-4.0.0/src/types/PoolId.sol":{"id":24},"dependencies/v4-core-4.0.0/src/types/PoolKey.sol":{"id":25},"dependencies/v4-core-4.0.0/src/types/Currency.sol":{"id":23},"dependencies/v4-core-4.0.0/src/interfaces/IHooks.sol":{"id":14},"dependencies/permit2-4.0.0/src/interfaces/IEIP712.sol":{"id":7},"dependencies/v4-core-4.0.0/src/libraries/SafeCast.sol":{"id":20},"dependencies/v4-core-4.0.0/src/types/BalanceDelta.sol":{"id":21},"dependencies/permit2-4.0.0/src/interfaces/IPermit2.sol":{"id":8},"dependencies/v4-core-4.0.0/src/interfaces/IExtsload.sol":{"id":12},"dependencies/v4-core-4.0.0/src/interfaces/IExttload.sol":{"id":13},"dependencies/v4-core-4.0.0/src/types/BeforeSwapDelta.sol":{"id":22},"dependencies/v4-core-4.0.0/src/libraries/CustomRevert.sol":{"id":19},"dependencies/v4-periphery-4.0.0/src/libraries/Actions.sol":{"id":28},"dependencies/v4-periphery-4.0.0/src/libraries/PathKey.sol":{"id":29},"dependencies/v4-core-4.0.0/src/interfaces/IPoolManager.sol":{"id":15},"dependencies/v4-core-4.0.0/src/interfaces/IProtocolFees.sol":{"id":16},"dependencies/v4-periphery-4.0.0/src/interfaces/IV4Router.sol":{"id":27},"dependencies/permit2-4.0.0/src/interfaces/IAllowanceTransfer.sol":{"id":6},"dependencies/permit2-4.0.0/src/interfaces/ISignatureTransfer.sol":{"id":9},"dependencies/v4-periphery-4.0.0/src/interfaces/IImmutableState.sol":{"id":26},"dependencies/universal-router-4.0.0/contracts/libraries/Commands.sol":{"id":11},"dependencies/v4-core-4.0.0/src/interfaces/external/IERC20Minimal.sol":{"id":17},"dependencies/v4-core-4.0.0/src/interfaces/external/IERC6909Claims.sol":{"id":18},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC20.sol":{"id":2},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC165.sol":{"id":1},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol":{"id":3},"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC1363.sol":{"id":0},"dependencies/universal-router-4.0.0/contracts/interfaces/IUniversalRouter.sol":{"id":10},"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol":{"id":4},"dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol":{"id":5}},"contracts":{"src/helpers/UniswapV4SwapHelpers.sol":{"UniswapV4SwapHelpers":{"abi":[{"type":"constructor","inputs":[{"name":"universalRouter","type":"address","internalType":"contract IUniversalRouter"},{"name":"permit2","type":"address","internalType":"contract IPermit2"}],"stateMutability":"nonpayable"},{"name":"InsufficientOutputAmount","type":"error","inputs":[{"name":"amountOut","type":"uint256","internalType":"uint256"},{"name":"minAmountOut","type":"uint256","internalType":"uint256"}]},{"name":"InvalidValue","type":"error","inputs":[]},{"name":"SafeERC20FailedOperation","type":"error","inputs":[{"name":"token","type":"address","internalType":"address"}]},{"name":"PERMIT2","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IPermit2"}],"stateMutability":"view"},{"name":"UNIVERSAL_ROUTER","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IUniversalRouter"}],"stateMutability":"view"},{"name":"swapExactInSingle","type":"function","inputs":[{"name":"poolKey","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"},{"name":"zeroForOne","type":"bool","internalType":"bool"},{"name":"amountIn","type":"uint256","internalType":"uint256"},{"name":"minAmountOut","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"},{"name":"hookData","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"amountOut","type":"uint256","internalType":"uint256"}],"stateMutability":"payable"},{"type":"receive","stateMutability":"payable"}],"metadata":"{\"compiler\":{\"version\":\"0.8.28+commit.7893614a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IUniversalRouter\",\"name\":\"universalRouter\",\"type\":\"address\"},{\"internalType\":\"contract IPermit2\",\"name\":\"permit2\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"}],\"name\":\"InsufficientOutputAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidValue\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PERMIT2\",\"outputs\":[{\"internalType\":\"contract IPermit2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UNIVERSAL_ROUTER\",\"outputs\":[{\"internalType\":\"contract IUniversalRouter\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"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\":\"poolKey\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"hookData\",\"type\":\"bytes\"}],\"name\":\"swapExactInSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"errors\":{\"SafeERC20FailedOperation(address)\":[{\"details\":\"An operation with an ERC-20 token failed.\"}]},\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/helpers/UniswapV4SwapHelpers.sol\":\"UniswapV4SwapHelpers\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"appendCBOR\":false,\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@chainlink/=dependencies/chainlink-evm-1.5.0/\",\":@ensdomains/=dependencies/v4-core-4.0.0/node_modules/@ensdomains/\",\":@layerzerolabs/lz-evm-oapp-v2/=dependencies/layerzero-v2-2.0.2/packages/layerzero-v2/evm/oapp/\",\":@layerzerolabs/lz-evm-protocol-v2/=dependencies/layerzero-v2-2.0.2/packages/layerzero-v2/evm/protocol/\",\":@layerzerolabs/oapp-evm/=dependencies/devtools-0.0.1/packages/oapp-evm/\",\":@openzeppelin-contracts-5.2.0/=dependencies/@openzeppelin-contracts-5.2.0/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.2.0/contracts/\",\":@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol\",\":@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol\",\":@openzeppelin/contracts@5.0.2/utils/introspection/ERC165Checker.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/ERC165Checker.sol\",\":@openzeppelin/contracts@5.0.2/utils/introspection/IERC165.sol=dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol\",\":@uniswap/permit2/=dependencies/permit2-4.0.0/\",\":@uniswap/universal-router/=dependencies/universal-router-4.0.0/\",\":@uniswap/v2-core/=dependencies/universal-router-4.0.0/node_modules/@uniswap/v2-core/\",\":@uniswap/v3-core/=dependencies/universal-router-4.0.0/node_modules/@uniswap/v3-core/\",\":@uniswap/v3-periphery/=dependencies/universal-router-4.0.0/lib/v3-periphery/\",\":@uniswap/v4-core/=dependencies/v4-core-4.0.0/\",\":@uniswap/v4-periphery/=dependencies/v4-periphery-4.0.0/\",\":account-abstraction-0.7.0/=dependencies/account-abstraction-v7-0.7.0/contracts/\",\":account-abstraction-v7-0.7.0/=dependencies/account-abstraction-v7-0.7.0/contracts/\",\":account-abstraction-v7/=dependencies/account-abstraction-v7-0.7.0/contracts/\",\":chainlink-ccip-1.6.2/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/\",\":chainlink-ccip/=dependencies/chainlink-ccip-1.6.2/chains/evm/contracts/\",\":chainlink-evm-1.5.0/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/\",\":chainlink-evm/=dependencies/chainlink-evm-1.5.0/contracts/src/v0.8/\",\":devtools-0.0.1/=dependencies/devtools-0.0.1/\",\":devtools/=dependencies/devtools-0.0.1/packages/toolbox-foundry/src/\",\":ds-test/=dependencies/forge-std-1.9.7/dependencies/ds-test/src/\",\":enso-weiroll-1.4.1/=dependencies/enso-weiroll-1.4.1/contracts/\",\":enso-weiroll/=dependencies/enso-weiroll-1.4.1/contracts/\",\":erc4626-tests/=dependencies/@openzeppelin-contracts-5.2.0/lib/erc4626-tests/\",\":forge-gas-snapshot/=dependencies/v4-periphery-4.0.0/lib/permit2/lib/forge-gas-snapshot/src/\",\":forge-std-1.9.7/=dependencies/forge-std-1.9.7/src/\",\":forge-std/=dependencies/forge-std-1.9.7/src/\",\":halmos-cheatcodes/=dependencies/@openzeppelin-contracts-5.2.0/lib/halmos-cheatcodes/src/\",\":hardhat/=dependencies/v4-core-4.0.0/node_modules/hardhat/\",\":layerzero-v2-2.0.2/=dependencies/layerzero-v2-2.0.2/\",\":layerzero-v2/=dependencies/layerzero-v2-2.0.2/\",\":openzeppelin-contracts/=dependencies/@openzeppelin-contracts-5.2.0/contracts/\",\":permit2-4.0.0/=dependencies/permit2-4.0.0/\",\":permit2/=dependencies/v4-periphery-4.0.0/lib/permit2/\",\":safe-contracts/=dependencies/safe-tools-0.2.0/lib/safe-contracts/contracts/\",\":safe-smart-account-1.5.0/=dependencies/safe-smart-account-1.5.0/contracts/\",\":safe-tools-0.2.0/=dependencies/safe-tools-0.2.0/src/\",\":safe-tools/=dependencies/safe-tools-0.2.0/src/\",\":shortcuts-vm-0.1.0/=dependencies/shortcuts-vm-0.1.0/src/\",\":solady-0.1.22/=dependencies/solady-0.1.22/src/\",\":solady/=dependencies/solady-0.1.22/src/\",\":solmate/=dependencies/solady-0.1.22/lib/solmate/src/\",\":universal-router-4.0.0/=dependencies/universal-router-4.0.0/\",\":v3-periphery/=dependencies/universal-router-4.0.0/lib/v3-periphery/contracts/\",\":v4-core-4.0.0/=dependencies/v4-core-4.0.0/src/\",\":v4-core/=dependencies/v4-core-4.0.0/src/\",\":v4-periphery-4.0.0/=dependencies/v4-periphery-4.0.0/src/\",\":v4-periphery/=dependencies/v4-periphery-4.0.0/\"],\"viaIR\":true},\"sources\":{\"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC1363.sol\":{\"keccak256\":\"0x9b6b3e7803bc5f2f8cd7ad57db8ac1def61a9930a5a3107df4882e028a9605d7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da62d6be1f5c6edf577f0cb45666a8aa9c2086a4bac87d95d65f02e2f4c36a4b\",\"dweb:/ipfs/QmNkpvBpoCMvX8JwAFNSc5XxJ2q5BXJpL5L1txb4QkqVFF\"]},\"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC165.sol\":{\"keccak256\":\"0xde7e9fd9aee8d4f40772f96bb3b58836cbc6dfc0227014a061947f8821ea9724\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://11fea9f8bc98949ac6709f0c1699db7430d2948137aa94d5a9e95a91f61a710a\",\"dweb:/ipfs/QmQdfRXxQjwP6yn3DVo1GHPpriKNcFghSPi94Z1oKEFUNS\"]},\"dependencies/@openzeppelin-contracts-5.2.0/contracts/interfaces/IERC20.sol\":{\"keccak256\":\"0xce41876e78d1badc0512229b4d14e4daf83bc1003d7f83978d18e0e56f965b9c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a2608291cb038b388d80b79a06b6118a42f7894ff67b7da10ec0dbbf5b2973ba\",\"dweb:/ipfs/QmWohqcBLbcxmA4eGPhZDXe5RYMMEEpFq22nfkaUMvTfw1\"]},\"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe06a3f08a987af6ad2e1c1e774405d4fe08f1694b67517438b467cecf0da0ef7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://df6f0c459663c9858b6cba2cda1d14a7d05a985bed6d2de72bd8e78c25ee79db\",\"dweb:/ipfs/QmeTTxZ7qVk9rjEv2R4CpCwdf8UMCcRqDNMvzNxHc3Fnn9\"]},\"dependencies/@openzeppelin-contracts-5.2.0/contracts/token/ERC20/utils/SafeERC20.sol\":{\"keccak256\":\"0x4ea01544758fd2c7045961904686bfe232d2220a04ecaa2d6b08dac17827febf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fabe6bef5167ae741dd8c22d7f81d3f9120bd61b290762a2e8f176712567d329\",\"dweb:/ipfs/QmSnEitJ6xmf1SSAUeZozD7Gx7h8bNnX3a1ZBzqeivsvVg\"]},\"dependencies/@openzeppelin-contracts-5.2.0/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x79796192ec90263f21b464d5bc90b777a525971d3de8232be80d9c4f9fb353b8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f6fda447a62815e8064f47eff0dd1cf58d9207ad69b5d32280f8d7ed1d1e4621\",\"dweb:/ipfs/QmfDRc7pxfaXB2Dh9np5Uf29Na3pQ7tafRS684wd3GLjVL\"]},\"dependencies/permit2-4.0.0/src/interfaces/IAllowanceTransfer.sol\":{\"keccak256\":\"0x37f0ac203b6ef605c9533e1a739477e8e9dcea90710b40e645a367f8a21ace29\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e0104d72aeaec1cd66cc232e7de7b7ead08608efcc179491b8a66387614670b0\",\"dweb:/ipfs/QmfAZDyuNC9FXXbnJUwqHNwmAK6uRrXxtWEytLsxjskPsN\"]},\"dependencies/permit2-4.0.0/src/interfaces/IEIP712.sol\":{\"keccak256\":\"0xfdccf2b9639070803cd0e4198427fb0df3cc452ca59bd3b8a0d957a9a4254138\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f7c936ac42ce89e827db905a1544397f8bdf46db34cdb6aa1b90dea42fdb4c72\",\"dweb:/ipfs/QmVgurxo1N31qZqkPBirw9Z7S9tLYmv6jSwQp8R8ur2cBk\"]},\"dependencies/permit2-4.0.0/src/interfaces/IPermit2.sol\":{\"keccak256\":\"0xaa631cc9f53e699301d94233007110a345e6779011def484e8dd97b8fe0af771\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fc0502cf19c9c18f320a3001201e89e350393b75837f6b7971de18b2de06f30d\",\"dweb:/ipfs/QmT9SfhdJ7VJNNrf94g4H5usyi7ShqWGx7Cqsz9jZTjX96\"]},\"dependencies/permit2-4.0.0/src/interfaces/ISignatureTransfer.sol\":{\"keccak256\":\"0xe6df9966f8841dc3958ee86169c89de97e7f614c81c28b9dc947b12d732df64e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3d4eafdee7f48c3be8350a94eb6edd0bfb2af2c105df65787a77174f356c0317\",\"dweb:/ipfs/QmY1j2adeeAhNpn6cUuthemxGCdLXHTfyMh9yTKsY4mZ2d\"]},\"dependencies/universal-router-4.0.0/contracts/interfaces/IUniversalRouter.sol\":{\"keccak256\":\"0x6fb50cd0fa7081a8f4e76bab601dc8110d95a0a96b5eb50a9929c6c864ce000a\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://ac8cfdfb3139956e409ea02e24f6c7b516bff0dcff72357013b9e72071fa6d04\",\"dweb:/ipfs/QmUXvpo4oQqbMqSA7CLHoQFpeoxd57ALWkT2qLDs6TQDnL\"]},\"dependencies/universal-router-4.0.0/contracts/libraries/Commands.sol\":{\"keccak256\":\"0xa22563c866de6f6677edb738051c401a58800f2eaa18d05e33dc6c9aa7f49ecb\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://c828c4994cff904daed41a90a4b7ecc5100061110f64955dae386934805d1dd1\",\"dweb:/ipfs/QmUiQy9rFQCWCQyh5Nn4ikxwbtNWW1UqGg54TKydGi88uy\"]},\"dependencies/v4-core-4.0.0/src/interfaces/IExtsload.sol\":{\"keccak256\":\"0x80b53ca4907d6f0088c3b931f2b72cad1dc4615a95094d96bd0fb8dff8d5ba43\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://375c69148622aab7a3537d5fd37d373a8e9731022c8d87bdaee46233b0a99fe1\",\"dweb:/ipfs/QmXFjdoYRxsA5B1kyuxEXgNf3FBoL1zPvy26Qy8EtpdFRN\"]},\"dependencies/v4-core-4.0.0/src/interfaces/IExttload.sol\":{\"keccak256\":\"0xc6b68283ebd8d1c789df536756726eed51c589134bb20821b236a0d22a135937\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://294394f72dfc219689209f4130d85601dfd0d63c8d47578050d312db70f9b6c8\",\"dweb:/ipfs/QmTDMQ3oxCGHgEBU48a3Lp4S1rRjc8vVCxkhE5ZNej1bsY\"]},\"dependencies/v4-core-4.0.0/src/interfaces/IHooks.sol\":{\"keccak256\":\"0x4c9571aed0c2b6ef11832545554fc11ffdb03746daaf5c73683c00600bfc7ec0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e78b34b58ce9de91b91943b4f3cc3ce121d0b151e123e8a600ac5ef64d91db6c\",\"dweb:/ipfs/QmRkaQnPCYwLrXgbpGujJTx32PaZK63KSPJJV1XmnQuCMb\"]},\"dependencies/v4-core-4.0.0/src/interfaces/IPoolManager.sol\":{\"keccak256\":\"0x3534f00531038e77ab8a7fc4d0a6e0993ee53fb7a396b1324ad917318ea46cea\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0a4a7e771828dc40848485b568a1cf514f553ace6653f4f4d1ad3f3e9cdb6c27\",\"dweb:/ipfs/QmTjzQ7KVYnrEWtxPER2E4MXzycgcznfzSDsZtd5turk5V\"]},\"dependencies/v4-core-4.0.0/src/interfaces/IProtocolFees.sol\":{\"keccak256\":\"0x32a666e588a2f66334430357bb1e2424fe7eebeb98a3364b1dd16eb6ccca9848\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://85751d302125881f72e5f8af051c2d5d9b1f606ebaea8ca7d04fccdd27cc252d\",\"dweb:/ipfs/QmeRwomeh9NWm6A6fgNA4KZPQZHPpdKsPQyYsHSFmvud7J\"]},\"dependencies/v4-core-4.0.0/src/interfaces/external/IERC20Minimal.sol\":{\"keccak256\":\"0xeccadf1bf69ba2eb51f2fe4fa511bc7bb05bbd6b9f9a3cb8e5d83d9582613e0f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://118757369892687b99ef46ce28d6861f62c098285bd7687a4f17f7e44e5f81de\",\"dweb:/ipfs/QmUxqbYqQtcEwwFbb9e6BBMePEaSgN8C45v6RKubD4ib8d\"]},\"dependencies/v4-core-4.0.0/src/interfaces/external/IERC6909Claims.sol\":{\"keccak256\":\"0xa586f345739e52b0488a0fe40b6e375cce67fdd25758408b0efcb5133ad96a48\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e8c557b7e52abdbbd82e415a1acc27921446a7fd090b7d4877e52be72619547f\",\"dweb:/ipfs/QmXE2KNPbXmGX8BQF3ei6zhzRTnhoTQg39XmqMnkhbr6QK\"]},\"dependencies/v4-core-4.0.0/src/libraries/CustomRevert.sol\":{\"keccak256\":\"0x111ed3031b6990c80a93ae35dde6b6ac0b7e6af471388fdd7461e91edda9b7de\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c9ea883c98d6ae1829160d0977bb5195761cfd5bc81692d0a941f45717f594cd\",\"dweb:/ipfs/QmZPwxzaeMNv536wzrAMrMswu7vMHuqPVpjcqL3YvCMoxt\"]},\"dependencies/v4-core-4.0.0/src/libraries/SafeCast.sol\":{\"keccak256\":\"0x42c4a24f996a14d358be397b71f7ec9d7daf666aaec78002c63315a6ee67aa86\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c3db86e2ba3679105fc32edec656c70282e1fede6cab11217702443f6c26fa59\",\"dweb:/ipfs/QmX4yaaSPdKQzYNRsezjTvZKsubzS8JRTEGFD3fPpTTCcj\"]},\"dependencies/v4-core-4.0.0/src/types/BalanceDelta.sol\":{\"keccak256\":\"0xa719c8fe51e0a9524280178f19f6851bcc3b3b60e73618f3d60905d35ae5569f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7436928dc9de35c6c7c5c636cb51adaf295cfd590da83b19a004ae33cbec9ef9\",\"dweb:/ipfs/QmRJ9yZkUpzk4433GX3LgVVL8jwpbSYSUwXcucKisf3v4H\"]},\"dependencies/v4-core-4.0.0/src/types/BeforeSwapDelta.sol\":{\"keccak256\":\"0x2a774312d91285313d569da1a718c909655da5432310417692097a1d4dc83a78\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a2c7a0379955cff9c17ab9e61f95e42909aa5947c22740f86ce940d09856f782\",\"dweb:/ipfs/QmaAuo8UBYXsGrVuKh8iRoAAdqwtg1jDq515cW1ZRP5m9K\"]},\"dependencies/v4-core-4.0.0/src/types/Currency.sol\":{\"keccak256\":\"0x4a0b84b282577ff6f8acf13ec9f4d32dbb9348748b49611d00e68bee96609c93\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://45f9d62ab3d51b52957279e353853ba1547c3182c9a1e3d1846ada4a90263b01\",\"dweb:/ipfs/QmS8NG84ccQS1yXVD8cv3eKX7J1UKxuJhbUfHTQR2opKF5\"]},\"dependencies/v4-core-4.0.0/src/types/PoolId.sol\":{\"keccak256\":\"0x308311916ea0f5c2fd878b6a2751eb223d170a69e33f601fae56dfe3c5d392af\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://669c2cd7ac17690b5d8831e0bda72822376c3a04b36afed6d31df4d75fe60918\",\"dweb:/ipfs/QmT6EpkxqU8VF3WsgrZ66F3s1cCQRffR95z1HDYZz7ph6y\"]},\"dependencies/v4-core-4.0.0/src/types/PoolKey.sol\":{\"keccak256\":\"0xf89856e0580d7a4856d3187a76858377ccee9d59702d230c338d84388221b786\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6f3118fa189025695c37fdf0bdd1190f085ad097484d3c88cf4c56d1db65f639\",\"dweb:/ipfs/QmamXpgtB8GV1CaFLvqefPWSoikLDhMk1yU4heBnVzU8gi\"]},\"dependencies/v4-periphery-4.0.0/src/interfaces/IImmutableState.sol\":{\"keccak256\":\"0x36ab3100e87457ecf04887f4f540e34fd7f21d8e3b83880cb679239e60b7b06b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7f290c7ce8e4832608d637a51b13dff95abecf6549485448e647a11c8ed01341\",\"dweb:/ipfs/QmfD1R6mTp8j4EjQXmQZW3vCh11EYFjnvoaw8rXRP27mMq\"]},\"dependencies/v4-periphery-4.0.0/src/interfaces/IV4Router.sol\":{\"keccak256\":\"0xc4133fae25e61cc2447d7331729f6035322d7c1fe26b39b225422bf98cc63459\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3c24ff8428504e973e947a059f96289a66c520cd7f8ef47a3224f9cb6abdaf25\",\"dweb:/ipfs/QmVqxYnngWXXcCiuTC143vTEJrjZK5NXWB92pjvVbuJBQ5\"]},\"dependencies/v4-periphery-4.0.0/src/libraries/Actions.sol\":{\"keccak256\":\"0x8efd4b8b289177ee27e557d9d0a5a9f973d66fe1eb1ef8959d316b11987ca830\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://07fe35f194eb99465028f0546359befea574d844da53767d32f22b233c3bcc98\",\"dweb:/ipfs/Qmc19631uFxABTHAbGrDrroexi9GdyxWntaum1v8npPYz5\"]},\"dependencies/v4-periphery-4.0.0/src/libraries/PathKey.sol\":{\"keccak256\":\"0xbbd79ffefe045f025263e389539021266fb4d371463aefba405e1ff1d3fcf9bc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2d1c47b81a01218be46ee79f0a8837095479b94dc5cfd18abbf2006709f0ea89\",\"dweb:/ipfs/QmRb6CQ13Zp7f3WF5jbZtsF2szhxpPgcuWs9mjwQXxzqtg\"]},\"src/helpers/UniswapV4SwapHelpers.sol\":{\"keccak256\":\"0x91481e4e7fef43a4d431f07e3def558fa9e10fed7e6d8e35a2885d747ab47926\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d4214014310d4a1316a4917b2289558ad5c35f0b07107d18ae036e7c30612b0c\",\"dweb:/ipfs/QmQRFW8NNXR5HmrPiU58bydABBQvUeVUASXxTLLKzBCVHT\"]}},\"version\":1}","userdoc":{"kind":"user","methods":{},"version":1},"devdoc":{"kind":"dev","errors":{"SafeERC20FailedOperation(address)":[{"details":"An operation with an ERC-20 token failed."}]},"methods":{},"version":1},"storageLayout":{"types":null,"storage":[]},"transientStorageLayout":{"types":null,"storage":[]},"evm":{"bytecode":{"object":"60c0346100a057601f610b7538819003918201601f19168301916001600160401b038311848410176100a45780849260409485528339810103126100a0578051906001600160a01b03821682036100a05760200151906001600160a01b03821682036100a05760805260a052604051610abc90816100b98239608051818181605a0152818161042e0152610737015260a0518181816106a9015261089d0152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608080604052600436101561001c575b50361561001a575f80fd5b005b5f905f3560e01c9081636afdd8501461088b575080639edf87a31461008c5763e8dd7fc30361000f57346100895780600319360112610089576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b80fd5b50366003190161016081126107c65760a0136107c65760a435801515918282036107c657610124356001600160a01b0381169360e435939060c4358684036107c6576101443567ffffffffffffffff81116107c657366023820112156107c65780600401359067ffffffffffffffff82116107c65736602483830101116107c657604051600160fc1b6020820152600181529261012a6021856108e8565b60408051959061013a81886108e8565b60018752601f19015f5b81811061087a575050604051600360f91b6020820152600360fa1b6021820152600f60f81b6022820152600381529361017e6023866108e8565b60405193608061018e81876108e8565b60038652601f19015f5b818110610855575050604051906101ae826108cc565b604051906101bb826108cc565b6004356001600160a01b03811681036107c65782526024356001600160a01b03811681036107c657602083015260443562ffffff811681036107c65760408301526064358060020b81036107c6576060830152608435916001600160a01b03831683036107c6578e6fffffffffffffffffffffffffffffffff6103269683610318966080849601528752602087019889525f60206040890192848d1684528460608b01961686528060246040519961027c85601f19601f860116018c6108e8565b828b5201838a013787010152608087019485526040519889976020808a01525160018060a01b0381511660408a015260018060a01b0360208201511660608a015262ffffff60408201511660808a0152606081015160020b60a08a0152608060018060a01b039101511660c089015251151560e0880152511661010086015251166101208401525161012061014084015261016083019061090a565b03601f1981018352826108e8565b61032f8361092e565b526103398261092e565b50851561084757610348610985565b955b156108395761035761096f565b955b604080516001600160a01b038316602082015290810183905261037f8160608101610318565b6103888461094f565b526103928361094f565b50604080516001600160a01b03891660208201529081018b90526103b98160608101610318565b6103c28461095f565b526103cc8361095f565b506001600160a01b03168061066157505034156106525761040691610318610418925b60405194859360406020860152606085019061090a565b838103601f190160408501529061099b565b6104218361092e565b5261042b8261092e565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690813b1561064e5791859161048d61049f9460405195869485938493630d64d59360e21b855260606004860152606485019061090a565b8381036003190160248501529061099b565b610104356044830152039134905af180156106435790849161062a575b50506104c7816109f3565b9380851061061357506001600160a01b038116908161055b5750508180808581945af1156104fd5750602091505b604051908152f35b9050601f19601f3d011690604051926390bfb86560e01b84526004840152806024840152608060448401528160a00160648401523d60848401523d9060a484013e808201600460a482015260c4633d2cec6f60e21b91015260e40190fd5b91509360406020846044819482855197889263a9059cbb60e01b845260048401528a60248401525af13d15601f3d116001855114161716928281528260208201520152156105ad5750602091506104f5565b6040516390bfb86560e01b8152600481019390935263a9059cbb60e01b602484015260806044840152601f3d01601f191660a0810160648501523d608485015291503d9060a484013e808201600460a482015260c4633c9fd93960e21b91015260e40190fd5b63d28d3eb560e01b84526004859052602452604483fd5b81610634916108e8565b61063f57825f6104bc565b8280fd5b6040513d86823e3d90fd5b8580fd5b632a9ffab760e21b8752600487fd5b3461082a576106a06040516323b872dd60e01b60208201523360248201523060448201528360648201526064815261069a6084826108e8565b82610a64565b60018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169160405160205f81830163095ea7b360e01b8152866024850152846044850152604484526106f86064856108e8565b83519082875af15f513d8261080e575b5050156107ca575b50823b156107c6576040516387517c4560e01b815260048101929092526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602484015216604482015265ffffffffffff6064820152905f908290608490829084905af180156107bb57610799575b5061040691610318610418926103ef565b610418919750916107ad5f610406946108e8565b6103185f9892505091610788565b6040513d5f823e3d90fd5b5f80fd5b6108089061080260405163095ea7b360e01b60208201528660248201525f6044820152604481526107fc6064826108e8565b85610a64565b83610a64565b5f610710565b9091506108225750823b15155b5f80610708565b60011461081b565b632a9ffab760e21b5f5260045ffd5b610841610985565b95610359565b61084f61096f565b9561034a565b806060602080938a01015201610198565b634e487b7160e01b5f52604160045260245ffd5b806060602080938b01015201610144565b346107c6575f3660031901126107c6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b60a0810190811067ffffffffffffffff82111761086657604052565b90601f8019910116810190811067ffffffffffffffff82111761086657604052565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b80511561093b5760200190565b634e487b7160e01b5f52603260045260245ffd5b80516001101561093b5760400190565b80516002101561093b5760600190565b6024356001600160a01b03811681036107c65790565b6004356001600160a01b03811681036107c65790565b9080602083519182815201916020808360051b8301019401925f915b8383106109c657505050505090565b90919293946020806109e4600193601f19868203018752895161090a565b970193019301919392906109b7565b6001600160a01b031680610a0657504790565b6020602491604051928380926370a0823160e01b82523060048301525afa9081156107bb575f91610a35575090565b90506020813d602011610a5c575b81610a50602093836108e8565b810103126107c6575190565b3d9150610a43565b905f602091828151910182855af1156107bb575f513d610ab357506001600160a01b0381163b155b610a935750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b60011415610a8c56","sourceMap":"770:2994:30:-:0;;;;;;;;;;;;;-1:-1:-1;;770:2994:30;;;;-1:-1:-1;;;;;770:2994:30;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;770:2994:30;;;;;;;;;;-1:-1:-1;;;;;770:2994:30;;;;;;1113:34;;1157:17;;770:2994;;;;;;;;1113:34;770:2994;;;;;;;;;;;;;;;1157:17;770:2994;;;;;;;;;;;;-1:-1:-1;770:2994:30;;;;;;-1:-1:-1;770:2994:30;;;;;-1:-1:-1;770:2994:30","linkReferences":{}},"deployedBytecode":{"object":"608080604052600436101561001c575b50361561001a575f80fd5b005b5f905f3560e01c9081636afdd8501461088b575080639edf87a31461008c5763e8dd7fc30361000f57346100895780600319360112610089576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b80fd5b50366003190161016081126107c65760a0136107c65760a435801515918282036107c657610124356001600160a01b0381169360e435939060c4358684036107c6576101443567ffffffffffffffff81116107c657366023820112156107c65780600401359067ffffffffffffffff82116107c65736602483830101116107c657604051600160fc1b6020820152600181529261012a6021856108e8565b60408051959061013a81886108e8565b60018752601f19015f5b81811061087a575050604051600360f91b6020820152600360fa1b6021820152600f60f81b6022820152600381529361017e6023866108e8565b60405193608061018e81876108e8565b60038652601f19015f5b818110610855575050604051906101ae826108cc565b604051906101bb826108cc565b6004356001600160a01b03811681036107c65782526024356001600160a01b03811681036107c657602083015260443562ffffff811681036107c65760408301526064358060020b81036107c6576060830152608435916001600160a01b03831683036107c6578e6fffffffffffffffffffffffffffffffff6103269683610318966080849601528752602087019889525f60206040890192848d1684528460608b01961686528060246040519961027c85601f19601f860116018c6108e8565b828b5201838a013787010152608087019485526040519889976020808a01525160018060a01b0381511660408a015260018060a01b0360208201511660608a015262ffffff60408201511660808a0152606081015160020b60a08a0152608060018060a01b039101511660c089015251151560e0880152511661010086015251166101208401525161012061014084015261016083019061090a565b03601f1981018352826108e8565b61032f8361092e565b526103398261092e565b50851561084757610348610985565b955b156108395761035761096f565b955b604080516001600160a01b038316602082015290810183905261037f8160608101610318565b6103888461094f565b526103928361094f565b50604080516001600160a01b03891660208201529081018b90526103b98160608101610318565b6103c28461095f565b526103cc8361095f565b506001600160a01b03168061066157505034156106525761040691610318610418925b60405194859360406020860152606085019061090a565b838103601f190160408501529061099b565b6104218361092e565b5261042b8261092e565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690813b1561064e5791859161048d61049f9460405195869485938493630d64d59360e21b855260606004860152606485019061090a565b8381036003190160248501529061099b565b610104356044830152039134905af180156106435790849161062a575b50506104c7816109f3565b9380851061061357506001600160a01b038116908161055b5750508180808581945af1156104fd5750602091505b604051908152f35b9050601f19601f3d011690604051926390bfb86560e01b84526004840152806024840152608060448401528160a00160648401523d60848401523d9060a484013e808201600460a482015260c4633d2cec6f60e21b91015260e40190fd5b91509360406020846044819482855197889263a9059cbb60e01b845260048401528a60248401525af13d15601f3d116001855114161716928281528260208201520152156105ad5750602091506104f5565b6040516390bfb86560e01b8152600481019390935263a9059cbb60e01b602484015260806044840152601f3d01601f191660a0810160648501523d608485015291503d9060a484013e808201600460a482015260c4633c9fd93960e21b91015260e40190fd5b63d28d3eb560e01b84526004859052602452604483fd5b81610634916108e8565b61063f57825f6104bc565b8280fd5b6040513d86823e3d90fd5b8580fd5b632a9ffab760e21b8752600487fd5b3461082a576106a06040516323b872dd60e01b60208201523360248201523060448201528360648201526064815261069a6084826108e8565b82610a64565b60018060a01b037f0000000000000000000000000000000000000000000000000000000000000000169160405160205f81830163095ea7b360e01b8152866024850152846044850152604484526106f86064856108e8565b83519082875af15f513d8261080e575b5050156107ca575b50823b156107c6576040516387517c4560e01b815260048101929092526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602484015216604482015265ffffffffffff6064820152905f908290608490829084905af180156107bb57610799575b5061040691610318610418926103ef565b610418919750916107ad5f610406946108e8565b6103185f9892505091610788565b6040513d5f823e3d90fd5b5f80fd5b6108089061080260405163095ea7b360e01b60208201528660248201525f6044820152604481526107fc6064826108e8565b85610a64565b83610a64565b5f610710565b9091506108225750823b15155b5f80610708565b60011461081b565b632a9ffab760e21b5f5260045ffd5b610841610985565b95610359565b61084f61096f565b9561034a565b806060602080938a01015201610198565b634e487b7160e01b5f52604160045260245ffd5b806060602080938b01015201610144565b346107c6575f3660031901126107c6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b60a0810190811067ffffffffffffffff82111761086657604052565b90601f8019910116810190811067ffffffffffffffff82111761086657604052565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b80511561093b5760200190565b634e487b7160e01b5f52603260045260245ffd5b80516001101561093b5760400190565b80516002101561093b5760600190565b6024356001600160a01b03811681036107c65790565b6004356001600160a01b03811681036107c65790565b9080602083519182815201916020808360051b8301019401925f915b8383106109c657505050505090565b90919293946020806109e4600193601f19868203018752895161090a565b970193019301919392906109b7565b6001600160a01b031680610a0657504790565b6020602491604051928380926370a0823160e01b82523060048301525afa9081156107bb575f91610a35575090565b90506020813d602011610a5c575b81610a50602093836108e8565b810103126107c6575190565b3d9150610a43565b905f602091828151910182855af1156107bb575f513d610ab357506001600160a01b0381163b155b610a935750565b635274afe760e01b5f9081526001600160a01b0391909116600452602490fd5b60011415610a8c56","sourceMap":"770:2994:30:-:0;;;;;;;;;;-1:-1:-1;770:2994:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;839:50;-1:-1:-1;;;;;770:2994:30;;;;;;;;;;-1:-1:-1;770:2994:30;-1:-1:-1;;770:2994:30;;;;;;;-1:-1:-1;770:2994:30;;;;;;;;;;;;;;;-1:-1:-1;;;;;770:2994:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;770:2994:30;1525:41;;1454:4:11;770:2994:30;1525:41;;770:2994;1525:41;;770:2994;1525:41;:::i;:::-;1454:4:11;770:2994:30;;;;1454:4:11;;770:2994:30;1454:4:11;:::i;:::-;770:2994:30;1454:4:11;;-1:-1:-1;;1454:4:11;770:2994:30;1454:4:11;;;;;;-1:-1:-1;;770:2994:30;;-1:-1:-1;;;770:2994:30;1660:105;;1454:4:11;-1:-1:-1;;;1525:41:30;1475:4:28;;1454::11;-1:-1:-1;;;1475:4:28;;;1454::11;770:2994:30;1660:105;;770:2994;1660:105;770:2994;;1660:105;:::i;:::-;770:2994;;;1454:4:11;;;770:2994:30;1454:4:11;:::i;:::-;1660:105:30;1454:4:11;;-1:-1:-1;;1454:4:11;770:2994:30;1454:4:11;;;;;;770:2994:30;;;;1454:4:11;;;;:::i;:::-;770:2994:30;;1454:4:11;;;;:::i;:::-;770:2994:30;;-1:-1:-1;;;;;770:2994:30;;;;;;1475:4:28;;770:2994:30;;-1:-1:-1;;;;;770:2994:30;;;;;;;1475:4:28;;;;;;;;;;;;770:2994:30;1475:4:28;;;;;;;;;;;;1454::11;1475::28;;;;;;-1:-1:-1;;;;;770:2994:30;;;;;;1475:4:28;;2058:282:30;1475:4:28;;;;;;;;;;;770:2994:30;2082:248;;1475:4:28;;;770:2994:30;;;2082:248;;1475:4:28;;;;;;2082:248:30;1454:4:11;2082:248:30;;1475:4:28;;;;770:2994:30;;;;1525:41;1454:4:11;1525:41:30;;;770:2994;1454:4:11;;;1475::28;1454::11;;:::i;:::-;1475::28;;;770:2994:30;1475:4:28;;;;;;;;;2082:248:30;;1475:4:28;;;770:2994:30;;2058:282;;;770:2994;2058:282;;;1475:4:28;;770:2994:30;;;;;1475:4:28;;770:2994:30;;1475:4:28;;770:2994:30;;;;;;;1475:4:28;;;770:2994:30;1454:4:11;1475::28;;770:2994:30;1475:4:28;770:2994:30;1475:4:28;;;;;;;;1454::11;1475::28;;;;;770:2994:30;1475:4:28;;;;770:2994:30;;;;;1475:4:28;;;770:2994:30;;1475:4:28;;770:2994:30;1475:4:28;770:2994:30;;;1475:4:28;;;;;770:2994:30;1475:4:28;;;;;770:2994:30;1475:4:28;;;;770:2994:30;;1475:4:28;;;770:2994:30;1475:4:28;;;;:::i;:::-;2058:282:30;1525:41;;2058:282;;;;;;:::i;:::-;2046:294;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;2373:50:30;;;;2386:17;;:::i;:::-;2373:50;;2456;;;2469:17;;:::i;:::-;2456:50;;770:2994;;;-1:-1:-1;;;;;770:2994:30;;;2529:32;;770:2994;1475:4:28;;;770:2994:30;;;2529:32;770:2994;1475:4:28;;;2529:32:30;1475:4:28;2529:32:30;2517:44;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;770:2994:30;;;-1:-1:-1;;;;;770:2994:30;;;2583:37;;770:2994;1475:4:28;;;770:2994:30;;;2583:37;770:2994;1475:4:28;;;2583:37:30;1475:4:28;2583:37:30;2571:49;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;;;;;;770:2994:30;4998:58:23;2635:26:30;;2681:9;;;:14;2677:74;;1475:4:28;2631:421:30;1475:4:28;3074:27:30;2631:421;;770:2994;;3074:27;;;770:2994;;3074:27;;1475:4:28;1454::11;1475::28;;;;:::i;:::-;;;;-1:-1:-1;;1475:4:28;770:2994:30;1475:4:28;;;1525:41:30;1475:4:28;:::i;3074:27:30:-;3062:39;;;:::i;:::-;;;;;:::i;:::-;-1:-1:-1;3111:16:30;-1:-1:-1;;;;;770:2994:30;;3111:72;;;;;770:2994;;;1475:4:28;;770:2994:30;;;1475:4:28;;;;;;;;;;3111:72:30;;1454:4:11;770:2994:30;3111:72;;1475:4:28;;;;;;:::i;:::-;;;;-1:-1:-1;;1475:4:28;770:2994:30;1475:4:28;;;770:2994:30;1475:4:28;:::i;:::-;770:2994:30;;1475:4:28;;;770:2994:30;3111:72;3144:9;;3111:72;;;;;;;;;;;;2631:421;3206:27;;;;;:::i;:::-;3247:24;;;;3243:111;;-1:-1:-1;;;;;;770:2994:30;;;4998:58:23;1769:24;;1809:163;;;;;;;;;;2085:8;2081:127;;1765:2574;770:2994:30;1765:2574:23;;;770:2994:30;;;;;;2081:127:23;1525:41:30;;;;770:2994;3741:1424:19;;;;770:2994:30;3741:1424:19;3710:21;;;;3741:1424;;770:2994:30;3741:1424:19;;;;770:2994:30;3741:1424:19;;;1475:4:28;;3741:1424:19;;;;770:2994:30;3741:1424:19;1475:4:28;3741:1424:19;;;;1475:4:28;3741:1424:19;;;;;770:2994:30;3741:1424:19;;;;;;770:2994:30;;3741:1424:19;;;770:2994:30;2163:29:23;;;3741:1424:19;;;770:2994:30;3741:1424:19;;;1765:2574:23;2238:1774;;;770:2994:30;;2238:1774:23;1475:4:28;2238:1774:23;;;;;;;;;;;;;770:2994:30;2238:1774:23;;;;770:2994:30;2238:1774:23;;;;;;;770:2994:30;2238:1774:23;;770:2994:30;2238:1774:23;;;;;;;;;;;770:2994:30;2238:1774:23;;;;;4124:8;4120:209;;1765:2574;770:2994:30;1765:2574:23;;;;4120:209;770:2994:30;3741:1424:19;-1:-1:-1;;;3741:1424:19;;770:2994:30;3741:1424:19;;;;;;-1:-1:-1;;;770:2994:30;3741:1424:19;;;1475:4:28;;3741:1424:19;;;1525:41:30;3741:1424:19;;-1:-1:-1;;3741:1424:19;770:2994:30;3741:1424:19;;1475:4:28;3741:1424:19;;;;1475:4:28;3741:1424:19;;;;-1:-1:-1;3741:1424:19;;770:2994:30;3741:1424:19;;;;;;770:2994:30;;3741:1424:19;;;770:2994:30;4268:28:23;;;3741:1424:19;;;770:2994:30;3741:1424:19;;;3243:111:30;-1:-1:-1;;;3294:49:30;;770:2994;;;;;;1475:4:28;3294:49:30;;3111:72;;;;;:::i;:::-;770:2994;;3111:72;;;;770:2994;;;;3111:72;770:2994;;1475:4:28;770:2994:30;;1475:4:28;;;;3111:72:30;770:2994;;;2677:74;-1:-1:-1;;;2722:14:30;;770:2994;2826:14;2722;2631:421;2785:9;2781:74;;1745:53:4;770:2994:30;;1475:4:28;;;770:2994:30;1745:53:4;;;2960:10:30;770:2994;1745:53:4;;770:2994:30;2980:4;1475::28;770:2994:30;;;;1475:4:28;770:2994:30;;;1475:4:28;1745:53:4;;;1475:4:28;1745:53:4;;:::i;:::-;;;:::i;:::-;770:2994:30;;;;;3550:7;770:2994;;;;;;4515:47:4;;;1475:4:28;;;4515:47:4;;;770:2994:30;4515:47:4;;770:2994:30;;1475:4:28;770:2994:30;;;1475:4:28;4515:47:4;;;1475:4:28;4515:47:4;;:::i;:::-;9086:199;;;;;;;770:2994:30;9086:199:4;;9301:80;;;2631:421:30;4577:45:4;;;4573:201;;2631:421:30;3635:84;;;;;;770:2994;;-1:-1:-1;;;3635:84:30;;770:2994;3635:84;;770:2994;;;;-1:-1:-1;;;;;3666:16:30;770:2994;;;;;;;1475:4:28;770:2994:30;;;3702:16;1475:4:28;770:2994:30;;;;-1:-1:-1;;770:2994:30;;1475:4:28;;770:2994:30;;-1:-1:-1;;3635:84:30;;;;;;;;2631:421;;1475:4:28;2631:421:30;1475:4:28;3074:27:30;2631:421;;;3635:84;3074:27;3635:84;;;;;770:2994;1475:4:28;3635:84:30;;:::i;:::-;1475:4:28;770:2994:30;3635:84;;;;;;;;770:2994;;1475:4:28;770:2994:30;1475:4:28;;;;;3635:84:30;770:2994;;;4573:201:4;4750:12;770:2994:30;4665:43:4;770:2994:30;;1475:4:28;;;770:2994:30;4665:43:4;;;;770:2994:30;4665:43:4;;770:2994:30;;1475:4:28;770:2994:30;;;1475:4:28;4665:43:4;;;1475:4:28;4665:43:4;;:::i;:::-;;;:::i;:::-;4750:12;;:::i;:::-;4573:201;;;9301:80;9313:67;;-1:-1:-1;9313:15:4;;9331:26;;;:30;;9313:67;9301:80;;;;9313:67;770:2994:30;9364:16:4;9313:67;;2781:74:30;2826:14;;;770:2994;2826:14;770:2994;;2826:14;2456:50;2489:17;;:::i;:::-;2456:50;;;2373;2406:17;;:::i;:::-;2373:50;;;1454:4:11;;;770:2994:30;1454:4:11;;;;;;;;;;;;;770:2994:30;1454:4:11;;;;;770:2994:30;1454:4:11;;;;770:2994:30;1454:4:11;;;;;;;;;770:2994:30;;;;;;-1:-1:-1;;770:2994:30;;;;895:33;-1:-1:-1;;;;;770:2994:30;;;;;;1454:4:11;770:2994:30;1454:4:11;;;;;;;;;;;;;:::o;:::-;;;1525:41:30;;1454:4:11;;;;;;;;;;;;;;;;:::o;1475::28:-;;;;;;;;;;;;;;;;;-1:-1:-1;1475:4:28;;;;;;1454::11;;-1:-1:-1;;1454:4:11;1475::28;;;:::o;:::-;;;;;;;;;:::o;:::-;1454::11;;;770:2994:30;1475:4:28;;;;;770:2994:30;1475:4:28;;;;1454::11;1475::28;;;;;;;:::o;:::-;;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;;;;770:2994:30;;;;;;1475:4:28;:::o;:::-;770:2994:30;1475:4:28;-1:-1:-1;;;;;770:2994:30;;;;;;1475:4:28;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1475:4:28;;;;;;;;;;;;;:::o;:::-;1525:41:30;;;;;1475:4:28;1525:41:30;1475:4:28;;1525:41:30;;;1475:4:28;;;;;;;;;:::i;:::-;;;;;;;;;;;;;4351:276:23;-1:-1:-1;;;;;770:2994:30;4998:58:23;4439:24;;4486:21;;4479:28;:::o;4435:186::-;770:2994:30;4545:65:23;770:2994:30;;;1475:4:28;;;;;;;4545:65:23;;4604:4;4545:65;;;770:2994:30;4545:65:23;;;;;;;770:2994:30;4545:65:23;;;4538:72;;:::o;4545:65::-;;;770:2994:30;4545:65:23;;770:2994:30;4545:65:23;;;;;;770:2994:30;4545:65:23;;;:::i;:::-;;;770:2994:30;;;;;4538:72:23;:::o;4545:65::-;;;-1:-1:-1;4545:65:23;;7686:720:4;;-1:-1:-1;7823:421:4;7686:720;7823:421;;;;;;;;;;;;-1:-1:-1;7823:421:4;;8258:15;;-1:-1:-1;;;;;;770:2994:30;;8276:26:4;:31;8258:68;8254:146;;7686:720;:::o;8254:146::-;-1:-1:-1;;;;8349:40:4;;;-1:-1:-1;;;;;770:2994:30;;;;8349:40:4;770:2994:30;;;8349:40:4;8258:68;8325:1;8310:16;;8258:68;","linkReferences":{},"immutableReferences":{"3070":[{"start":90,"length":32},{"start":1070,"length":32},{"start":1847,"length":32}],"3073":[{"start":1705,"length":32},{"start":2205,"length":32}]}}}}}}},"signatures":{"function":[{"signature":"PERMIT2()","signatureHash4":"0x6afdd850","signatureHash32":"0x6afdd850f967f1c41a55ae30f77ec611628a7b2d95511df4d83573970f4ee531"},{"signature":"swapExactInSingle((address,address,uint24,int24,address),bool,uint256,uint256,uint256,address,bytes)","signatureHash4":"0x9edf87a3","signatureHash32":"0x9edf87a3757cfe19ebcec28996b6a25b485eea4984c2d6599b8a4416143a6b44"},{"signature":"UNIVERSAL_ROUTER()","signatureHash4":"0xe8dd7fc3","signatureHash32":"0xe8dd7fc31132e158cb6fb00e508c0c46fb163c2e2af66db2f4940d012176c81b"}],"event":[],"error":[{"signature":"InsufficientOutputAmount(uint256,uint256)","signatureHash4":"0xd28d3eb5","signatureHash32":"0xd28d3eb58de0e2c2118ee83af6b35f3ec0b2c076ca496e3616c2510a2ba14cf2"},{"signature":"InvalidValue()","signatureHash4":"0xaa7feadc","signatureHash32":"0xaa7feadc1a228aee3d4475b95bb4402ebafd3841876f41c4469039f5ee2998d5"},{"signature":"SafeERC20FailedOperation(address)","signatureHash4":"0x5274afe7","signatureHash32":"0x5274afe73c98b4749fc91ffae6b7b574e7842cb2144a159e9377a5f20b32edf9"}]},"proxyResolution":{"isProxy":false,"proxyType":null,"implementations":[]},"match":"match","chainId":"1","address":"0x4A381087756b8CCaA7c89Cf041D044ff387a8C2b"}