Contract 0x1111111254fb6c44bac0bed2854e76f90643097d 18

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3cc4b58a958059286a90a8d5c375d8475106fb9775b53b79c0f49bd129d0a2f30x7c025200161057162022-06-27 17:30:011 min ago0xf77e2fc47b68802f1f29014aedcbba85b9fc2bc9 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.003 ETH0.002972176671 ETH
0x24e347efe386254af1ccb4df0efddf3f1335179262eb23b05c2c4960a5ee9d800x7c025200161051902022-06-27 17:27:543 mins ago0x56f08d0ef5cc1dade890aedd3caa67bbcef52329 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.16 ETH0.005671756072 ETH
0xbc7f35fdd82287ebef7d0fd10bd8a1329a75562b89ed1e6f850e23637cba20a00x7c025200161044062022-06-27 17:23:258 mins ago0x9cd73ea40d13fa99a107d9afca588a9ef45e3a64 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.00166402619 ETH
0x842c976d4b63d85d8f341808c5304db864e27078be7e35e7b914acd680c04bfb0x7c025200161043492022-06-27 17:23:258 mins ago0xc031d7ed84cab9317f18a2f8c2aa95bc044b36fc IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.003181750933 ETH
0x4131048c675cd8e71c9b7d528f09fce02932275166d48a1cafc56775e5a0abfb0x7c025200161038242022-06-27 17:23:028 mins ago0x21e4e64cac8e09ae2cd833b7c86b21d0988832b9 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.004415225041 ETH
0x39c6eab95698acf51a40b004138ce295b75c266eabbf760a7dcafb5859b25521Uniswap V3Swap161004842022-06-27 17:09:1422 mins ago0x9a6300b55e07129592390954bbea6d785d060e6c IN  0x1111111254fb6c44bac0bed2854e76f90643097d2.4 ETH0.000860909402 ETH
0xa2cb3101fab995dea5091e8c31b25e9c0f7b0e0dea47298c5bb015c85287cc7f0x7c025200160998852022-06-27 17:06:3625 mins ago0x35f5e9f975c7301241e8f4153bdfc13bf622b0bc IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.001655587839 ETH
0x9c80c23b011c7c05f2d7a3f79e88024e6f861f7b6abad417ebaba0415b7330920x7c025200160978692022-06-27 16:56:4934 mins ago0x2be2273452ce4c80c0f9e9180d3f0d6eedfa7923 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.002334542737 ETH
0x482c3ee46dea3ba3b7edc214651ce44664d96c1367944e06400e6dfc4319391b0x7c025200160972162022-06-27 16:48:5542 mins ago0x1256d9511e9dad8c0dfab22ccfec6477b96caf1f IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.003145889 ETH
0xad8b8587e7c6299a8d00e75289a8422569201c6051547426c6f4b599d61707040x7c025200160969062022-06-27 16:44:1747 mins ago0x2b5982cd01c63f7e2326b24c5016d97dc7b85759 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.1 ETH0.001717043718 ETH
0x7426ae051c4a84eecbbb079c7c5d1364df1956bb7508538ced49fab905dd44610x7c025200160968712022-06-27 16:44:1747 mins ago0x61561c384ea2da5826b9517102fe7501139bfdf4 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.01 ETH0.00295686508 ETH
0xbd9c4b54ceccf68aea7af7fe09021764e234c3260531b1d29108a396ec5ca8f90x7c025200160941582022-06-27 16:18:131 hr 13 mins ago0xddf1dfbac5d21aef24c0679412ab6b47e18c8567 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.092585 ETH0.0049270176 ETH
0x1a8f849aa2783eaab33ec9ff5ff93081f28c04a3792071c90f861b87e3db3c120x7c025200160941062022-06-27 16:17:221 hr 14 mins ago0x6d9e1288af10b24df90b3acdb619a9b7373ef9d5 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.28 ETH0.005532764217 ETH
0xe7c05a49373c037c81361e7f312c6807f59a20599c65af999f8a03565f29e55f0x7c025200160940022022-06-27 16:16:371 hr 14 mins ago0x62d8ecb35f1de73e3de846180f36fe0e6cfabf5d IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.002 ETH0.003644039628 ETH
0x50e2db2bb2b3a2d70c9328ac7455a71d7a4078ab5546a1ca3f6e3061223465330x7c025200160937412022-06-27 16:13:461 hr 17 mins ago0xc38a25f2bcccb803b96ef9102bd94f6dc74725bc IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.32 ETH0.003659674568 ETH
0x68547840a009ce327ea478127db2fec9e107d3d5d78623fc2d44ec406497ac630x7c025200160931142022-06-27 16:08:061 hr 23 mins ago0xe53a37177c2e45f9519ef15d3551667402c84e89 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.003147847928 ETH
0xdff837b88cf6e8fc26ac124166f53053c5018f4a5d81c5875f064dbeeb5da3470x7c025200160926202022-06-27 16:03:431 hr 27 mins ago0x1dc594e299afce6aa68e8be08e1c814832a36a77 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.013 ETH0.003685353536 ETH
0x17b4c14be0d7bbde9ad9cd35a1b86de0ca77f549be6ff5d2cd05e3514b23677e0x7c025200160925782022-06-27 16:03:191 hr 28 mins ago0xe53a37177c2e45f9519ef15d3551667402c84e89 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.001 ETH0.002892872542 ETH
0xb5574cc920e35a13538622e839f17ee238339fe345295314982f76fbb4235f390x7c025200160921502022-06-27 15:59:191 hr 32 mins ago0xa55cab60687ed881dae236f8f4de16da8a725e3f IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.005558987665 ETH
0x84d6393d673b7e508837d713abd99445da8c9f2c8e75acf2e0e0727a865e8e460x7c025200160918322022-06-27 15:56:291 hr 35 mins ago0xca4900e6537f82c9ba937beb1b64aafea4d4b19c IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.00825662481154 ETH0.001738480236 ETH
0x9cbd693e64ef99dad1d13da981f53e0b98b6ee799e6d4b1912969655e3bdf38c0x7c025200160913042022-06-27 15:50:321 hr 41 mins ago0xe53a37177c2e45f9519ef15d3551667402c84e89 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.01 ETH0.002891169239 ETH
0x420ccce1f73f6da05c446a66cd4d2d05dba489d3d0c8c28afdd10af1d7f6857a0x7c025200160911452022-06-27 15:49:111 hr 42 mins ago0xe53a37177c2e45f9519ef15d3551667402c84e89 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.004 ETH0.002888875778 ETH
0x0edc1b3154b15158e4f17437aff382356541da388224cd43f32a12ac4964c9d40x7c025200160909692022-06-27 15:47:401 hr 43 mins ago0xe53a37177c2e45f9519ef15d3551667402c84e89 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.003 ETH0.002965484137 ETH
0xbc0d5a40687055d7288f0bf7c87528cdc33f5d11c6bbb4565d485dd19b14dad90x7c025200160900222022-06-27 15:36:441 hr 54 mins ago0x68526a4295236d2f18ceda8a200cddd5aab9e2cc IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.001653987546 ETH
0x9fd5520ab92409e96f4b4e6bf7bae32386db2481fe3ef1b99f97df5d0cea044f0x7c025200160899602022-06-27 15:36:441 hr 54 mins ago0x12584d2b4c5c762256f905216542bd08886cb0f4 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH0.003155294399 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6f4ff2e3a2cd16052aaf3bac39be88424b2c1bf4654de349e0fc772d2d0489d4160599572022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0x35401de91007f210ae34ea9cfe3812fc306d28ee0.019878341536516615 ETH
0x6f4ff2e3a2cd16052aaf3bac39be88424b2c1bf4654de349e0fc772d2d0489d4160599572022-06-27 11:23:156 hrs 8 mins ago 0x26271dfddbd250014f87f0f302c099d5a798bab1 0x1111111254fb6c44bac0bed2854e76f90643097d0.019878341536516615 ETH
0x6f4ff2e3a2cd16052aaf3bac39be88424b2c1bf4654de349e0fc772d2d0489d4160599572022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0x26271dfddbd250014f87f0f302c099d5a798bab10 ETH
0x6f4ff2e3a2cd16052aaf3bac39be88424b2c1bf4654de349e0fc772d2d0489d4160599572022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0x1ddcaa4ed761428ae348befc6718bcb12e63bfaa0 ETH
0x6f4ff2e3a2cd16052aaf3bac39be88424b2c1bf4654de349e0fc772d2d0489d4160599572022-06-27 11:23:156 hrs 8 mins ago 0x413dddce3d0ead2489648e482d192a7758c2b1b4 0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH
0x6256acc0fb5f3a9e19ebd73f9d4eda1419409b9528753716f41b6f252814c7d4160599532022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xa02306eb1de5e47e763d2065d53d55e386d0239c0.026818879995658217 ETH
0x6256acc0fb5f3a9e19ebd73f9d4eda1419409b9528753716f41b6f252814c7d4160599532022-06-27 11:23:156 hrs 8 mins ago 0x26271dfddbd250014f87f0f302c099d5a798bab1 0x1111111254fb6c44bac0bed2854e76f90643097d0.026818879995658217 ETH
0x6256acc0fb5f3a9e19ebd73f9d4eda1419409b9528753716f41b6f252814c7d4160599532022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0x26271dfddbd250014f87f0f302c099d5a798bab10 ETH
0x6256acc0fb5f3a9e19ebd73f9d4eda1419409b9528753716f41b6f252814c7d4160599532022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0x1ddcaa4ed761428ae348befc6718bcb12e63bfaa0 ETH
0x6256acc0fb5f3a9e19ebd73f9d4eda1419409b9528753716f41b6f252814c7d4160599532022-06-27 11:23:156 hrs 8 mins ago 0x413dddce3d0ead2489648e482d192a7758c2b1b4 0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH
0x02de1808326e48c1571acbf8c0ca9c89d441edfc8ced8b138e016f15a7045003160599492022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0x1ddcaa4ed761428ae348befc6718bcb12e63bfaa0 ETH
0x02de1808326e48c1571acbf8c0ca9c89d441edfc8ced8b138e016f15a7045003160599492022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0x1ddcaa4ed761428ae348befc6718bcb12e63bfaa0 ETH
0x02de1808326e48c1571acbf8c0ca9c89d441edfc8ced8b138e016f15a7045003160599492022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0x26271dfddbd250014f87f0f302c099d5a798bab10.078819 ETH
0x02de1808326e48c1571acbf8c0ca9c89d441edfc8ced8b138e016f15a7045003160599492022-06-27 11:23:156 hrs 8 mins ago 0x663dc15d3c1ac63ff12e45ab68fea3f0a883c251 0x1111111254fb6c44bac0bed2854e76f90643097d0.078819 ETH
0x531a2fd5f9aa8100674283683bdb2cb3f3170b5d044f7f8225324ef46107aebb160599472022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0x308484d369db96c61046a4b4ef4219f3bc3906ce0.0454712154 ETH
0x531a2fd5f9aa8100674283683bdb2cb3f3170b5d044f7f8225324ef46107aebb160599472022-06-27 11:23:156 hrs 8 mins ago 0x26271dfddbd250014f87f0f302c099d5a798bab1 0x1111111254fb6c44bac0bed2854e76f90643097d0.0454712154 ETH
0x531a2fd5f9aa8100674283683bdb2cb3f3170b5d044f7f8225324ef46107aebb160599472022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0x26271dfddbd250014f87f0f302c099d5a798bab10 ETH
0x531a2fd5f9aa8100674283683bdb2cb3f3170b5d044f7f8225324ef46107aebb160599472022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0x1ddcaa4ed761428ae348befc6718bcb12e63bfaa0 ETH
0x531a2fd5f9aa8100674283683bdb2cb3f3170b5d044f7f8225324ef46107aebb160599472022-06-27 11:23:156 hrs 8 mins ago 0x413dddce3d0ead2489648e482d192a7758c2b1b4 0x1111111254fb6c44bac0bed2854e76f90643097d0 ETH
0xc47145c05a5a084d11036dee22420159bd935a11a340e095d0ef5761626acbdf160599272022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0xc47145c05a5a084d11036dee22420159bd935a11a340e095d0ef5761626acbdf160599272022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0xc47145c05a5a084d11036dee22420159bd935a11a340e095d0ef5761626acbdf160599272022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0x26271dfddbd250014f87f0f302c099d5a798bab10.44 ETH
0xc47145c05a5a084d11036dee22420159bd935a11a340e095d0ef5761626acbdf160599272022-06-27 11:23:156 hrs 8 mins ago Socket: One Inch Implementation 0x1111111254fb6c44bac0bed2854e76f90643097d0.44 ETH
0x8f57b916f12cc653e8cefcbc5779f2dce85c87eda359780e7b5d315d41ac76cf160599172022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0xff970a61a04b1ca14834a43f5de4533ebddb5cc80 ETH
0x8f57b916f12cc653e8cefcbc5779f2dce85c87eda359780e7b5d315d41ac76cf160599172022-06-27 11:23:156 hrs 8 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d 0xff970a61a04b1ca14834a43f5de4533ebddb5cc80 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AggregationRouterV4

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan on 2021-11-05
*/

/*
                                                           ,▄▓▓██▌   ,╓▄▄▓▓▓▓▓▓▓▓▄▄▄,,
                                                        ,▓██▓███▓▄▓███▓╬╬╬╬╬╬╬╬╬╬╬╬╬▓███▓▄,
                                                  ▄█   ▓██╬╣███████╬▓▀╬╬▓▓▓████████████▓█████▄,
                                                 ▓██▌ ▓██╬╣██████╬▓▌  ██████████████████████▌╙╙▀ⁿ
                                                ▐████████╬▓████▓▓█╨ ▄ ╟█████████▓▓╬╬╬╬╬▓▓█████▓▄
                                  └▀▓▓▄╓        ╟█▓╣█████▓██████▀ ╓█▌ ███████▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬▓██▓▄
                                     └▀████▓▄╥  ▐██╬╬██████████╙ Æ▀─ ▓███▀╚╠╬╩▀▀███████▓▓╬╬╬╬╬╬╬╬╬██▄
                                        └▀██▓▀▀█████▓╬▓██████▀     ▄█████▒╠"      └╙▓██████▓╬╬╬╬╬╬╬╬██▄
                                           └▀██▄,└╙▀▀████▌└╙    ^"▀╙╙╙"╙██      @▄    ╙▀███████╬╬╬╬╬╬╬██µ
                                              └▀██▓▄, ██▌       ╒       ╙█▓     ]▓█▓╔    ▀███████▓╬╬╬╬╬▓█▌
                                                  ▀█████       ▓         ╟█▌    ]╠██▓░▒╓   ▀████████╬╬╬╬╣█▌
                                                  ▐████      ╓█▀█▌      ,██▌    ╚Å███▓▒▒╠╓  ╙█████████╬╬╬╣█▌
                                                  └████     ▓█░░▓█      ▀▀▀    φ▒╫████▒▒▒▒╠╓  █████████▓╬╬▓█µ
                                                   ╘███µ ▌▄█▓▄▓▀`     ,▀    ,╔╠░▓██████▌╠▒▒▒φ  ██████████╬╬██
                                                   ▐████µ╙▓▀`     ,▀╙,╔╔φφφ╠░▄▓███████▌░▓╙▒▒▒╠ └██╬███████╬▓█⌐
                                                   ╫██ ▓▌         ▌φ▒▒░▓██████████████▌▒░▓╚▒▒▒╠ ▓██╬▓██████╣█▌
                                                   ██▌           ▌╔▒▒▄████████████████▒▒▒░▌╠▒▒▒≥▐██▓╬╬███████▌
                                                   ██▌      ,╓φ╠▓«▒▒▓████▀  ▀█████████▌▒▒▒╟░▒▒▒▒▐███╬╬╣████▓█▌
                                                  ▐██      ╠▒▄▓▓███▓████└     ▀████████▌▒▒░▌╚▒▒▒▐███▓╬╬████ ╙▌
                                                  ███  )  ╠▒░░░▒░╬████▀        └████████░▒▒░╬∩▒▒▓████╬╬╣███
                                                 ▓██    ╠╠▒▒▐█▀▀▌`░╫██           ███████▒▒▒▒░▒▒½█████╬╬╣███
                                                ███ ,█▄ ╠▒▒▒╫▌,▄▀,▒╫██           ╟██████▒▒▒░╣⌠▒▓█████╬╬╣██▌
                                               ╘██µ ██` ╠▒▒░██╬φ╠▄▓██`            ██████░░▌φ╠░▓█████▓╬╬▓██
                                                ╟██  .φ╠▒░▄█▀░░▄██▀└              █████▌▒╣φ▒░▓██████╬╬╣██
                                                 ▀██▄▄▄╓▄███████▀                ▐█████░▓φ▒▄███████▓╬╣██
                                                   ╙▀▀▀██▀└                      ████▓▄▀φ▄▓████████╬▓█▀
                                                                                ▓███╬╩╔╣██████████▓██└
                                                                              ╓████▀▄▓████████▀████▀
                                                                            ,▓███████████████─]██╙
                                                                         ,▄▓██████████████▀└  ╙
                                                                    ,╓▄▓███████████████▀╙
                                                             `"▀▀▀████████▀▀▀▀`▄███▀▀└
                                                                              └└



                    11\   11\                     11\             11\   11\            11\                                       11\
                  1111 |  \__|                    11 |            111\  11 |           11 |                                      11 |
                  \_11 |  11\ 1111111\   1111111\ 1111111\        1111\ 11 | 111111\ 111111\   11\  11\  11\  111111\   111111\  11 |  11\
                    11 |  11 |11  __11\ 11  _____|11  __11\       11 11\11 |11  __11\\_11  _|  11 | 11 | 11 |11  __11\ 11  __11\ 11 | 11  |
                    11 |  11 |11 |  11 |11 /      11 |  11 |      11 \1111 |11111111 | 11 |    11 | 11 | 11 |11 /  11 |11 |  \__|111111  /
                    11 |  11 |11 |  11 |11 |      11 |  11 |      11 |\111 |11   ____| 11 |11\ 11 | 11 | 11 |11 |  11 |11 |      11  _11<
                  111111\ 11 |11 |  11 |\1111111\ 11 |  11 |      11 | \11 |\1111111\  \1111  |\11111\1111  |\111111  |11 |      11 | \11\
                  \______|\__|\__|  \__| \_______|\__|  \__|      \__|  \__| \_______|  \____/  \_____\____/  \______/ \__|      \__|  \__|



                               111111\                                                               11\     11\
                              11  __11\                                                              11 |    \__|
                              11 /  11 | 111111\   111111\   111111\   111111\   111111\   111111\ 111111\   11\  111111\  1111111\
                              11111111 |11  __11\ 11  __11\ 11  __11\ 11  __11\ 11  __11\  \____11\\_11  _|  11 |11  __11\ 11  __11\
                              11  __11 |11 /  11 |11 /  11 |11 |  \__|11111111 |11 /  11 | 1111111 | 11 |    11 |11 /  11 |11 |  11 |
                              11 |  11 |11 |  11 |11 |  11 |11 |      11   ____|11 |  11 |11  __11 | 11 |11\ 11 |11 |  11 |11 |  11 |
                              11 |  11 |\1111111 |\1111111 |11 |      \1111111\ \1111111 |\1111111 | \1111  |11 |\111111  |11 |  11 |
                              \__|  \__| \____11 | \____11 |\__|       \_______| \____11 | \_______|  \____/ \__| \______/ \__|  \__|
                                        11\   11 |11\   11 |                    11\   11 |
                                        \111111  |\111111  |                    \111111  |
                                         \______/  \______/                      \______/
                                                1111111\                        11\
                                                11  __11\                       11 |
                                                11 |  11 | 111111\  11\   11\ 111111\    111111\   111111\
                                                1111111  |11  __11\ 11 |  11 |\_11  _|  11  __11\ 11  __11\
                                                11  __11< 11 /  11 |11 |  11 |  11 |    11111111 |11 |  \__|
                                                11 |  11 |11 |  11 |11 |  11 |  11 |11\ 11   ____|11 |
                                                11 |  11 |\111111  |\111111  |  \1111  |\1111111\ 11 |
                                                \__|  \__| \______/  \______/    \____/  \_______|\__|
*/

// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File @openzeppelin/contracts/access/[email protected]



pragma solidity ^0.7.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.7.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// File @openzeppelin/contracts/math/[email protected]



pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.7.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.7.0;



/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/helpers/EthReceiver.sol



pragma solidity ^0.7.6;

/// @title Base contract with common payable logics
abstract contract EthReceiver {
    receive() external payable {
        // solhint-disable-next-line avoid-tx-origin
        require(msg.sender != tx.origin, "ETH deposit rejected");
    }
}


// File @openzeppelin/contracts/drafts/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over `owner`'s tokens,
     * given `owner`'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for `permit`, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}


// File contracts/helpers/RevertReasonParser.sol



pragma solidity ^0.7.6;

/// @title Library that allows to parse unsuccessful arbitrary calls revert reasons.
/// See https://solidity.readthedocs.io/en/latest/control-structures.html#revert for details.
/// Note that we assume revert reason being abi-encoded as Error(string) so it may fail to parse reason
/// if structured reverts appear in the future.
///
/// All unsuccessful parsings get encoded as Unknown(data) string
library RevertReasonParser {
    function parse(bytes memory data, string memory prefix) internal pure returns (string memory) {
        bytes4 selector;
        assembly {  // solhint-disable-line no-inline-assembly
            selector := mload(add(data, 0x20))
        }

        // 68 = 4-byte selector 0x08c379a0 + 32 bytes offset + 32 bytes length
        if (selector == 0x08c379a0 && data.length >= 68) {
            string memory reason;
            // solhint-disable no-inline-assembly
            assembly {
            // 68 = 32 bytes data length + 4-byte selector + 32 bytes offset
                reason := add(data, 68)
            }
            /*
                revert reason is padded up to 32 bytes with ABI encoder: Error(string)
                also sometimes there is extra 32 bytes of zeros padded in the end:
                https://github.com/ethereum/solidity/issues/10170
                because of that we can't check for equality and instead check
                that string length + extra 68 bytes is less than overall data length
            */
            require(data.length >= 68 + bytes(reason).length, "Invalid revert reason");
            return string(abi.encodePacked(prefix, "Error(", reason, ")"));
        }
        // 36 = 4-byte selector 0x4e487b71 + 32 bytes integer
        else if (selector == 0x4e487b71 && data.length == 36) {
            uint256 code;
            // solhint-disable no-inline-assembly
            assembly {
            // 36 = 32 bytes data length + 4-byte selector
                code := mload(add(data, 36))
            }
            return string(abi.encodePacked(prefix, "Panic(", _toHex(code), ")"));
        }

        return string(abi.encodePacked(prefix, "Unknown(", _toHex(data), ")"));
    }

    function _toHex(uint256 value) private pure returns(string memory) {
        return _toHex(abi.encodePacked(value));
    }

    function _toHex(bytes memory data) private pure returns(string memory) {
        bytes16 alphabet = 0x30313233343536373839616263646566;
        bytes memory str = new bytes(2 + data.length * 2);
        str[0] = "0";
        str[1] = "x";
        for (uint256 i = 0; i < data.length; i++) {
            str[2 * i + 2] = alphabet[uint8(data[i] >> 4)];
            str[2 * i + 3] = alphabet[uint8(data[i] & 0x0f)];
        }
        return string(str);
    }
}


// File contracts/interfaces/IDaiLikePermit.sol



pragma solidity ^0.7.6;

/// @title Interface for DAI-style permits
interface IDaiLikePermit {
    function permit(address holder, address spender, uint256 nonce, uint256 expiry, bool allowed, uint8 v, bytes32 r, bytes32 s) external;
}


// File contracts/helpers/Permitable.sol



pragma solidity ^0.7.6;



/// @title Base contract with common permit handling logics
contract Permitable {
    function _permit(address token, bytes calldata permit) internal {
        if (permit.length > 0) {
            bool success;
            bytes memory result;
            if (permit.length == 32 * 7) {
                // solhint-disable-next-line avoid-low-level-calls
                (success, result) = token.call(abi.encodePacked(IERC20Permit.permit.selector, permit));
            } else if (permit.length == 32 * 8) {
                // solhint-disable-next-line avoid-low-level-calls
                (success, result) = token.call(abi.encodePacked(IDaiLikePermit.permit.selector, permit));
            } else {
                revert("Wrong permit length");
            }
            if (!success) {
                revert(RevertReasonParser.parse(result, "Permit failed: "));
            }
        }
    }
}


// File contracts/helpers/UniERC20.sol



pragma solidity ^0.7.6;




library UniERC20 {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 private constant _ETH_ADDRESS = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
    IERC20 private constant _ZERO_ADDRESS = IERC20(0);

    function isETH(IERC20 token) internal pure returns (bool) {
        return (token == _ZERO_ADDRESS || token == _ETH_ADDRESS);
    }

    function uniBalanceOf(IERC20 token, address account) internal view returns (uint256) {
        if (isETH(token)) {
            return account.balance;
        } else {
            return token.balanceOf(account);
        }
    }

    function uniTransfer(IERC20 token, address payable to, uint256 amount) internal {
        if (amount > 0) {
            if (isETH(token)) {
                to.transfer(amount);
            } else {
                token.safeTransfer(to, amount);
            }
        }
    }

    function uniApprove(IERC20 token, address to, uint256 amount) internal {
        require(!isETH(token), "Approve called on ETH");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(abi.encodeWithSelector(token.approve.selector, to, amount));

        if (!success || (returndata.length > 0 && !abi.decode(returndata, (bool)))) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, to, 0));
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, to, amount));
        }
    }

    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory result) = address(token).call(data);
        if (!success) {
            revert(RevertReasonParser.parse(result, "Low-level call failed: "));
        }

        if (result.length > 0) { // Return data is optional
            require(abi.decode(result, (bool)), "ERC20 operation did not succeed");
        }
    }
}


// File contracts/interfaces/IChi.sol



pragma solidity ^0.7.6;

/// @title Interface for CHI gas token
interface IChi is IERC20 {
    function mint(uint256 value) external;
    function free(uint256 value) external returns (uint256 freed);
    function freeFromUpTo(address from, uint256 value) external returns (uint256 freed);
}


// File contracts/interfaces/IGasDiscountExtension.sol



pragma solidity ^0.7.6;

/// @title Interface for calculating CHI discounts
interface IGasDiscountExtension {
    function calculateGas(uint256 gasUsed, uint256 flags, uint256 calldataLength) external view returns (IChi, uint256);
}


// File contracts/interfaces/IAggregationExecutor.sol



pragma solidity ^0.7.6;

/// @title Interface for making arbitrary calls during swap
interface IAggregationExecutor is IGasDiscountExtension {
    /// @notice Make calls on `msgSender` with specified data
    function callBytes(address msgSender, bytes calldata data) external payable;  // 0x2636f7f8
}


// File @openzeppelin/contracts/drafts/[email protected]



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;
    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = _getChainId();
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view virtual returns (bytes32) {
        if (_getChainId() == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
        return keccak256(
            abi.encode(
                typeHash,
                name,
                version,
                _getChainId(),
                address(this)
            )
        );
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", _domainSeparatorV4(), structHash));
    }

    function _getChainId() private view returns (uint256 chainId) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        // solhint-disable-next-line no-inline-assembly
        assembly {
            chainId := chainid()
        }
    }
}


// File contracts/helpers/ECDSA.sol



pragma solidity ^0.7.6;

/**
 * @dev Simplified copy of OpenZeppelin ECDSA library downgraded to 0.7.6
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/541e82144f691aa171c53ba8c3b32ef7f05b99a5/contracts/utils/cryptography/ECDSA.sol
 *
 * Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {  // solhint-disable-line no-inline-assembly
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {  // solhint-disable-line no-inline-assembly
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return address(0);
        }
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        bytes32 s;
        uint8 v;
        assembly {  // solhint-disable-line no-inline-assembly
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return address(0);
        }
        if (v != 27 && v != 28) {
            return address(0);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return address(0);
        }

        return signer;
    }
}


// File contracts/interfaces/IERC1271.sol



pragma solidity ^0.7.6;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}


// File contracts/interfaces/IWETH.sol



pragma solidity ^0.7.6;

/// @title Interface for WETH tokens
interface IWETH is IERC20 {
    function deposit() external payable;
    function withdraw(uint256 amount) external;
}


// File contracts/LimitOrderProtocolRFQ.sol



pragma solidity ^0.7.6;
pragma abicoder v2;







contract LimitOrderProtocolRFQ is EthReceiver, EIP712("1inch RFQ", "2"), Permitable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    event OrderFilledRFQ(
        bytes32 orderHash,
        uint256 makingAmount
    );

    struct OrderRFQ {
        // lowest 64 bits is the order id, next 64 bits is the expiration timestamp
        // highest bit is unwrap WETH flag which is set on taker's side
        // [unwrap eth(1 bit) | unused (127 bits) | expiration timestamp(64 bits) | orderId (64 bits)]
        uint256 info;
        IERC20 makerAsset;
        IERC20 takerAsset;
        address maker;
        address allowedSender;  // equals to Zero address on public orders
        uint256 makingAmount;
        uint256 takingAmount;
    }

    bytes32 constant public LIMIT_ORDER_RFQ_TYPEHASH = keccak256(
        "OrderRFQ(uint256 info,address makerAsset,address takerAsset,address maker,address allowedSender,uint256 makingAmount,uint256 takingAmount)"
    );
    uint256 private constant _UNWRAP_WETH_MASK = 1 << 255;

    IWETH private immutable _WETH;  // solhint-disable-line var-name-mixedcase
    mapping(address => mapping(uint256 => uint256)) private _invalidator;

    constructor(address weth) {
        _WETH = IWETH(weth);
    }

    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns(bytes32) {
        return _domainSeparatorV4();
    }

    /// @notice Returns bitmask for double-spend invalidators based on lowest byte of order.info and filled quotes
    /// @return Result Each bit represents whenever corresponding quote was filled
    function invalidatorForOrderRFQ(address maker, uint256 slot) external view returns(uint256) {
        return _invalidator[maker][slot];
    }

    /// @notice Cancels order's quote
    function cancelOrderRFQ(uint256 orderInfo) external {
        _invalidator[msg.sender][uint64(orderInfo) >> 8] |= 1 << uint8(orderInfo);
    }

    /// @notice Fills order's quote, fully or partially (whichever is possible)
    /// @param order Order quote to fill
    /// @param signature Signature to confirm quote ownership
    /// @param makingAmount Making amount
    /// @param takingAmount Taking amount
    function fillOrderRFQ(
        OrderRFQ memory order,
        bytes calldata signature,
        uint256 makingAmount,
        uint256 takingAmount
    ) external payable returns(uint256 /* actualMakingAmount */, uint256 /* actualTakingAmount */) {
        return fillOrderRFQTo(order, signature, makingAmount, takingAmount, payable(msg.sender));
    }

    /// @notice Fills Same as `fillOrderRFQ` but calls permit first,
    /// allowing to approve token spending and make a swap in one transaction.
    /// Also allows to specify funds destination instead of `msg.sender`
    /// @param order Order quote to fill
    /// @param signature Signature to confirm quote ownership
    /// @param makingAmount Making amount
    /// @param takingAmount Taking amount
    /// @param target Address that will receive swap funds
    /// @param permit Should consist of abiencoded token address and encoded `IERC20Permit.permit` call.
    /// See tests for examples
    function fillOrderRFQToWithPermit(
        OrderRFQ memory order,
        bytes calldata signature,
        uint256 makingAmount,
        uint256 takingAmount,
        address payable target,
        bytes calldata permit
    ) external returns(uint256 /* actualMakingAmount */, uint256 /* actualTakingAmount */) {
        _permit(address(order.takerAsset), permit);
        return fillOrderRFQTo(order, signature, makingAmount, takingAmount, target);
    }

    /// @notice Same as `fillOrderRFQ` but allows to specify funds destination instead of `msg.sender`
    /// @param order Order quote to fill
    /// @param signature Signature to confirm quote ownership
    /// @param makingAmount Making amount
    /// @param takingAmount Taking amount
    /// @param target Address that will receive swap funds
    function fillOrderRFQTo(
        OrderRFQ memory order,
        bytes calldata signature,
        uint256 makingAmount,
        uint256 takingAmount,
        address payable target
    ) public payable returns(uint256 /* actualMakingAmount */, uint256 /* actualTakingAmount */) {
        address maker = order.maker;
        bool unwrapWETH = (order.info & _UNWRAP_WETH_MASK) > 0;
        order.info = order.info & (_UNWRAP_WETH_MASK - 1);  // zero-out unwrap weth flag as it is taker-only
        {  // Stack too deep
            uint256 info = order.info;
            // Check time expiration
            uint256 expiration = uint128(info) >> 64;
            require(expiration == 0 || block.timestamp <= expiration, "LOP: order expired");  // solhint-disable-line not-rely-on-time

            // Validate double spend
            uint256 invalidatorSlot = uint64(info) >> 8;
            uint256 invalidatorBit = 1 << uint8(info);
            mapping(uint256 => uint256) storage invalidatorStorage = _invalidator[maker];
            uint256 invalidator = invalidatorStorage[invalidatorSlot];
            require(invalidator & invalidatorBit == 0, "LOP: already filled");
            invalidatorStorage[invalidatorSlot] = invalidator | invalidatorBit;
        }

        {  // stack too deep
            uint256 orderMakingAmount = order.makingAmount;
            uint256 orderTakingAmount = order.takingAmount;
            // Compute partial fill if needed
            if (takingAmount == 0 && makingAmount == 0) {
                // Two zeros means whole order
                makingAmount = orderMakingAmount;
                takingAmount = orderTakingAmount;
            }
            else if (takingAmount == 0) {
                require(makingAmount <= orderMakingAmount, "LOP: making amount exceeded");
                takingAmount = orderTakingAmount.mul(makingAmount).add(orderMakingAmount - 1).div(orderMakingAmount);
            }
            else if (makingAmount == 0) {
                require(takingAmount <= orderTakingAmount, "LOP: taking amount exceeded");
                makingAmount = orderMakingAmount.mul(takingAmount).div(orderTakingAmount);
            }
            else {
                revert("LOP: one of amounts should be 0");
            }
        }

        require(makingAmount > 0 && takingAmount > 0, "LOP: can't swap 0 amount");

        // Validate order
        require(order.allowedSender == address(0) || order.allowedSender == msg.sender, "LOP: private order");
        bytes32 orderHash = _hashTypedDataV4(keccak256(abi.encode(LIMIT_ORDER_RFQ_TYPEHASH, order)));
        _validate(maker, orderHash, signature);

        // Maker => Taker
        if (order.makerAsset == _WETH && unwrapWETH) {
            order.makerAsset.safeTransferFrom(maker, address(this), makingAmount);
            _WETH.withdraw(makingAmount);
            target.transfer(makingAmount);
        } else {
            order.makerAsset.safeTransferFrom(maker, target, makingAmount);
        }
        // Taker => Maker
        if (order.takerAsset == _WETH && msg.value > 0) {
            require(msg.value == takingAmount, "LOP: wrong msg.value");
            _WETH.deposit{ value: takingAmount }();
            _WETH.transfer(maker, takingAmount);
        } else {
            require(msg.value == 0, "LOP: wrong msg.value");
            order.takerAsset.safeTransferFrom(msg.sender, maker, takingAmount);
        }

        emit OrderFilledRFQ(orderHash, makingAmount);
        return (makingAmount, takingAmount);
    }

    function _validate(address signer, bytes32 orderHash, bytes calldata signature) private view {
        if ((signature.length != 65 && signature.length != 64) || ECDSA.tryRecover(orderHash, signature) != signer) {
            (bool success, bytes memory result) = signer.staticcall(
                abi.encodeWithSelector(IERC1271.isValidSignature.selector, orderHash, signature)
            );
            require(success && result.length == 32 && abi.decode(result, (bytes4)) == IERC1271.isValidSignature.selector, "LOP: bad signature");
        }
    }
}


// File contracts/UnoswapRouter.sol



pragma solidity ^0.7.6;



contract UnoswapRouter is EthReceiver, Permitable {
    uint256 private constant _TRANSFER_FROM_CALL_SELECTOR_32 = 0x23b872dd00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _WETH_DEPOSIT_CALL_SELECTOR_32 = 0xd0e30db000000000000000000000000000000000000000000000000000000000;
    uint256 private constant _WETH_WITHDRAW_CALL_SELECTOR_32 = 0x2e1a7d4d00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _ERC20_TRANSFER_CALL_SELECTOR_32 = 0xa9059cbb00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _ADDRESS_MASK =   0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff;
    uint256 private constant _REVERSE_MASK =   0x8000000000000000000000000000000000000000000000000000000000000000;
    uint256 private constant _WETH_MASK =      0x4000000000000000000000000000000000000000000000000000000000000000;
    uint256 private constant _NUMERATOR_MASK = 0x0000000000000000ffffffff0000000000000000000000000000000000000000;
    /// @dev WETH address is network-specific and needs to be changed before deployment.
    /// It can not be moved to immutable as immutables are not supported in assembly
    uint256 private constant _WETH = 0x000000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1;
    uint256 private constant _UNISWAP_PAIR_RESERVES_CALL_SELECTOR_32 = 0x0902f1ac00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _UNISWAP_PAIR_SWAP_CALL_SELECTOR_32 = 0x022c0d9f00000000000000000000000000000000000000000000000000000000;
    uint256 private constant _DENOMINATOR = 1000000000;
    uint256 private constant _NUMERATOR_OFFSET = 160;

    /// @notice Same as `unoswap` but calls permit first,
    /// allowing to approve token spending and make a swap in one transaction.
    /// @param srcToken Source token
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    /// @param permit Should contain valid permit that can be used in `IERC20Permit.permit` calls.
    /// See tests for examples
    function unoswapWithPermit(
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        bytes32[] calldata pools,
        bytes calldata permit
    ) external returns(uint256 returnAmount) {
        _permit(address(srcToken), permit);
        return unoswap(srcToken, amount, minReturn, pools);
    }

    /// @notice Performs swap using Uniswap exchange. Wraps and unwraps ETH if required.
    /// Sending non-zero `msg.value` for anything but ETH swaps is prohibited
    /// @param srcToken Source token
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function unoswap(
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        // solhint-disable-next-line no-unused-vars
        bytes32[] calldata pools
    ) public payable returns(uint256 returnAmount) {
        assembly {  // solhint-disable-line no-inline-assembly
            function reRevert() {
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }

            function revertWithReason(m, len) {
                mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(0x20, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(0x40, m)
                revert(0, len)
            }

            function swap(emptyPtr, swapAmount, pair, reversed, numerator, dst) -> ret {
                mstore(emptyPtr, _UNISWAP_PAIR_RESERVES_CALL_SELECTOR_32)
                if iszero(staticcall(gas(), pair, emptyPtr, 0x4, emptyPtr, 0x40)) {
                    reRevert()
                }
                if iszero(eq(returndatasize(), 0x60)) {
                    revertWithReason(0x0000001472657365727665732063616c6c206661696c65640000000000000000, 0x59)  // "reserves call failed"
                }

                let reserve0 := mload(emptyPtr)
                let reserve1 := mload(add(emptyPtr, 0x20))
                if reversed {
                    let tmp := reserve0
                    reserve0 := reserve1
                    reserve1 := tmp
                }
                ret := mul(swapAmount, numerator)
                ret := div(mul(ret, reserve1), add(ret, mul(reserve0, _DENOMINATOR)))

                mstore(emptyPtr, _UNISWAP_PAIR_SWAP_CALL_SELECTOR_32)
                switch reversed
                case 0 {
                    mstore(add(emptyPtr, 0x04), 0)
                    mstore(add(emptyPtr, 0x24), ret)
                }
                default {
                    mstore(add(emptyPtr, 0x04), ret)
                    mstore(add(emptyPtr, 0x24), 0)
                }
                mstore(add(emptyPtr, 0x44), dst)
                mstore(add(emptyPtr, 0x64), 0x80)
                mstore(add(emptyPtr, 0x84), 0)
                if iszero(call(gas(), pair, 0, emptyPtr, 0xa4, 0, 0)) {
                    reRevert()
                }
            }

            let emptyPtr := mload(0x40)
            mstore(0x40, add(emptyPtr, 0xc0))

            let poolsOffset := add(calldataload(0x64), 0x4)
            let poolsEndOffset := calldataload(poolsOffset)
            poolsOffset := add(poolsOffset, 0x20)
            poolsEndOffset := add(poolsOffset, mul(0x20, poolsEndOffset))
            let rawPair := calldataload(poolsOffset)
            switch srcToken
            case 0 {
                if iszero(eq(amount, callvalue())) {
                    revertWithReason(0x00000011696e76616c6964206d73672e76616c75650000000000000000000000, 0x55)  // "invalid msg.value"
                }

                mstore(emptyPtr, _WETH_DEPOSIT_CALL_SELECTOR_32)
                if iszero(call(gas(), _WETH, amount, emptyPtr, 0x4, 0, 0)) {
                    reRevert()
                }

                mstore(emptyPtr, _ERC20_TRANSFER_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x4), and(rawPair, _ADDRESS_MASK))
                mstore(add(emptyPtr, 0x24), amount)
                if iszero(call(gas(), _WETH, 0, emptyPtr, 0x44, 0, 0)) {
                    reRevert()
                }
            }
            default {
                if callvalue() {
                    revertWithReason(0x00000011696e76616c6964206d73672e76616c75650000000000000000000000, 0x55)  // "invalid msg.value"
                }

                mstore(emptyPtr, _TRANSFER_FROM_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x4), caller())
                mstore(add(emptyPtr, 0x24), and(rawPair, _ADDRESS_MASK))
                mstore(add(emptyPtr, 0x44), amount)
                if iszero(call(gas(), srcToken, 0, emptyPtr, 0x64, 0, 0)) {
                    reRevert()
                }
            }

            returnAmount := amount

            for {let i := add(poolsOffset, 0x20)} lt(i, poolsEndOffset) {i := add(i, 0x20)} {
                let nextRawPair := calldataload(i)

                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    and(nextRawPair, _ADDRESS_MASK)
                )

                rawPair := nextRawPair
            }

            switch and(rawPair, _WETH_MASK)
            case 0 {
                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    caller()
                )
            }
            default {
                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, _ADDRESS_MASK),
                    and(rawPair, _REVERSE_MASK),
                    shr(_NUMERATOR_OFFSET, and(rawPair, _NUMERATOR_MASK)),
                    address()
                )

                mstore(emptyPtr, _WETH_WITHDRAW_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x04), returnAmount)
                if iszero(call(gas(), _WETH, 0, emptyPtr, 0x24, 0, 0)) {
                    reRevert()
                }

                if iszero(call(gas(), caller(), returnAmount, 0, 0, 0, 0)) {
                    reRevert()
                }
            }

            if lt(returnAmount, minReturn) {
                revertWithReason(0x000000164d696e2072657475726e206e6f742072656163686564000000000000, 0x5a)  // "Min return not reached"
            }
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.7.0;


/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= -2**127 && value < 2**127, "SafeCast: value doesn\'t fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= -2**63 && value < 2**63, "SafeCast: value doesn\'t fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= -2**31 && value < 2**31, "SafeCast: value doesn\'t fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= -2**15 && value < 2**15, "SafeCast: value doesn\'t fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= -2**7 && value < 2**7, "SafeCast: value doesn\'t fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        require(value < 2**255, "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}


// File contracts/interfaces/IUniswapV3Pool.sol

pragma solidity ^0.7.6;

interface IUniswapV3Pool {
    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);
}


// File contracts/interfaces/IUniswapV3SwapCallback.sol

pragma solidity ^0.7.6;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}


// File contracts/UnoswapV3Router.sol



pragma solidity ^0.7.6;









contract UnoswapV3Router is EthReceiver, Permitable, IUniswapV3SwapCallback {
    using Address for address payable;
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    uint256 private constant _ONE_FOR_ZERO_MASK = 1 << 255;
    uint256 private constant _WETH_WRAP_MASK = 1 << 254;
    uint256 private constant _WETH_UNWRAP_MASK = 1 << 253;
    bytes32 private constant _POOL_INIT_CODE_HASH = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54;
    bytes32 private constant _FF_FACTORY = 0xff1F98431c8aD98523631AE4a59f267346ea31F9840000000000000000000000;
    bytes32 private constant _SELECTORS = 0x0dfe1681d21220a7ddca3f430000000000000000000000000000000000000000;
    uint256 private constant _ADDRESS_MASK =   0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff;
    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 private constant _MIN_SQRT_RATIO = 4295128739 + 1;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 private constant _MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342 - 1;
    IWETH private immutable _WETH;  // solhint-disable-line var-name-mixedcase

    constructor(address weth) {
        _WETH = IWETH(weth);
    }

    /// @notice Same as `uniswapV3SwapTo` but calls permit first,
    /// allowing to approve token spending and make a swap in one transaction.
    /// @param recipient Address that will receive swap funds
    /// @param srcToken Source token
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    /// @param permit Should contain valid permit that can be used in `IERC20Permit.permit` calls.
    /// See tests for examples
    function uniswapV3SwapToWithPermit(
        address payable recipient,
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools,
        bytes calldata permit
    ) external returns(uint256 returnAmount) {
        _permit(address(srcToken), permit);
        return uniswapV3SwapTo(recipient, amount, minReturn, pools);
    }

    /// @notice Same as `uniswapV3SwapTo` but uses `msg.sender` as recipient
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function uniswapV3Swap(
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) external payable returns(uint256 returnAmount) {
        return uniswapV3SwapTo(msg.sender, amount, minReturn, pools);
    }

    /// @notice Performs swap using Uniswap V3 exchange. Wraps and unwraps ETH if required.
    /// Sending non-zero `msg.value` for anything but ETH swaps is prohibited
    /// @param recipient Address that will receive swap funds
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function uniswapV3SwapTo(
        address payable recipient,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) public payable returns(uint256 returnAmount) {
        uint256 len = pools.length;
        require(len > 0, "UNIV3R: empty pools");
        uint256 lastIndex = len - 1;
        returnAmount = amount;
        bool wrapWeth = pools[0] & _WETH_WRAP_MASK > 0;
        bool unwrapWeth = pools[lastIndex] & _WETH_UNWRAP_MASK > 0;
        if (wrapWeth) {
            require(msg.value == amount, "UNIV3R: wrong msg.value");
            _WETH.deposit{value: amount}();
        } else {
            require(msg.value == 0, "UNIV3R: msg.value should be 0");
        }
        if (len > 1) {
            returnAmount = _makeSwap(address(this), wrapWeth ? address(this) : msg.sender, pools[0], returnAmount);

            for (uint256 i = 1; i < lastIndex; i++) {
                returnAmount = _makeSwap(address(this), address(this), pools[i], returnAmount);
            }
            returnAmount = _makeSwap(unwrapWeth ? address(this) : recipient, address(this), pools[lastIndex], returnAmount);
        } else {
            returnAmount = _makeSwap(unwrapWeth ? address(this) : recipient, wrapWeth ? address(this) : msg.sender, pools[0], returnAmount);
        }

        require(returnAmount >= minReturn, "UNIV3R: min return");

        if (unwrapWeth) {
            _WETH.withdraw(returnAmount);
            recipient.sendValue(returnAmount);
        }
    }

    /// @inheritdoc IUniswapV3SwapCallback
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata /* data */
    ) external override {
        IERC20 token0;
        IERC20 token1;
        bytes32 ffFactoryAddress = _FF_FACTORY;
        bytes32 poolInitCodeHash = _POOL_INIT_CODE_HASH;
        address payer;

        assembly {  // solhint-disable-line no-inline-assembly
            function reRevert() {
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }

            function revertWithReason(m, len) {
                mstore(0x00, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(0x20, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(0x40, m)
                revert(0, len)
            }

            let emptyPtr := mload(0x40)
            let resultPtr := add(emptyPtr, 0x20)
            mstore(emptyPtr, _SELECTORS)

            if iszero(staticcall(gas(), caller(), emptyPtr, 0x4, resultPtr, 0x20)) {
                reRevert()
            }
            token0 := mload(resultPtr)
            if iszero(staticcall(gas(), caller(), add(emptyPtr, 0x4), 0x4, resultPtr, 0x20)) {
                reRevert()
            }
            token1 := mload(resultPtr)
            if iszero(staticcall(gas(), caller(), add(emptyPtr, 0x8), 0x4, resultPtr, 0x20)) {
                reRevert()
            }
            let fee := mload(resultPtr)

            let p := emptyPtr
            mstore(p, ffFactoryAddress)
            p := add(p, 21)
            // Compute the inner hash in-place
            mstore(p, token0)
            mstore(add(p, 32), token1)
            mstore(add(p, 64), fee)
            mstore(p, keccak256(p, 96))
            p := add(p, 32)
            mstore(p, poolInitCodeHash)
            let pool := and(keccak256(emptyPtr, 85), _ADDRESS_MASK)

            if iszero(eq(pool, caller())) {
                revertWithReason(0x00000010554e495633523a2062616420706f6f6c000000000000000000000000, 0x54)  // UNIV3R: bad pool
            }

            calldatacopy(emptyPtr, 0x84, 0x20)
            payer := mload(emptyPtr)
        }

        if (amount0Delta > 0) {
            if (payer == address(this)) {
                token0.safeTransfer(msg.sender, uint256(amount0Delta));
            } else {
                token0.safeTransferFrom(payer, msg.sender, uint256(amount0Delta));
            }
        }
        if (amount1Delta > 0) {
            if (payer == address(this)) {
                token1.safeTransfer(msg.sender, uint256(amount1Delta));
            } else {
                token1.safeTransferFrom(payer, msg.sender, uint256(amount1Delta));
            }
        }
    }

    function _makeSwap(address recipient, address payer, uint256 pool, uint256 amount) private returns (uint256) {
        bool zeroForOne = pool & _ONE_FOR_ZERO_MASK == 0;
        if (zeroForOne) {
            (, int256 amount1) = IUniswapV3Pool(pool).swap(
                recipient,
                zeroForOne,
                SafeCast.toInt256(amount),
                _MIN_SQRT_RATIO,
                abi.encode(payer)
            );
            return SafeCast.toUint256(-amount1);
        } else {
            (int256 amount0,) = IUniswapV3Pool(pool).swap(
                recipient,
                zeroForOne,
                SafeCast.toInt256(amount),
                _MAX_SQRT_RATIO,
                abi.encode(payer)
            );
            return SafeCast.toUint256(-amount0);
        }
    }
}


// File contracts/AggregationRouterV4.sol



pragma solidity ^0.7.6;







// import "./ClipperRouter.sol";


contract AggregationRouterV4 is Ownable, EthReceiver, Permitable, UnoswapRouter, UnoswapV3Router, LimitOrderProtocolRFQ /*, ClipperRouter */ {
    using SafeMath for uint256;
    using UniERC20 for IERC20;
    using SafeERC20 for IERC20;

    uint256 private constant _PARTIAL_FILL = 1 << 0;
    uint256 private constant _REQUIRES_EXTRA_ETH = 1 << 1;
    // uint256 private constant _BURN_FROM_MSG_SENDER = 1 << 3;
    // uint256 private constant _BURN_FROM_TX_ORIGIN = 1 << 4;

    struct SwapDescription {
        IERC20 srcToken;
        IERC20 dstToken;
        address payable srcReceiver;
        address payable dstReceiver;
        uint256 amount;
        uint256 minReturnAmount;
        uint256 flags;
        bytes permit;
    }

    event Swapped(
        address sender,
        IERC20 srcToken,
        IERC20 dstToken,
        address dstReceiver,
        uint256 spentAmount,
        uint256 returnAmount
    );

    constructor(address weth /* , IClipperExchangeInterface _clipperExchange */)
        UnoswapV3Router(weth)
        LimitOrderProtocolRFQ(weth)
        // ClipperRouter(weth, _clipperExchange)
    {}  // solhint-disable-line no-empty-blocks

    // /// @notice Performs a swap and burns chi tokens to get gas refund
    // /// @param caller Aggregation executor that executes calls described in `data`
    // /// @param desc Swap description
    // /// @param data Encoded calls that `caller` should execute in between of swaps
    // /// @return returnAmount Resulting token amount
    // /// @return gasLeft Gas left
    // function discountedSwap(
    //     IAggregationExecutor caller,
    //     SwapDescription calldata desc,
    //     bytes calldata data
    // )
    //     external
    //     payable
    //     returns (uint256 returnAmount, uint256 gasLeft, uint256 chiSpent)
    // {
    //     uint256 initialGas = gasleft();

    //     address chiSource = address(0);
    //     if (desc.flags & _BURN_FROM_MSG_SENDER != 0) {
    //         chiSource = msg.sender;
    //     } else if (desc.flags & _BURN_FROM_TX_ORIGIN != 0) {
    //         chiSource = tx.origin; // solhint-disable-line avoid-tx-origin
    //     } else {
    //         revert("Incorrect CHI burn flags");
    //     }

    //     // solhint-disable-next-line avoid-low-level-calls
    //     (bool success, bytes memory returnData) = address(this).delegatecall(abi.encodeWithSelector(this.swap.selector, caller, desc, data));
    //     if (success) {
    //         (returnAmount,) = abi.decode(returnData, (uint256, uint256));
    //     } else {
    //         if (msg.value > 0) {
    //             msg.sender.transfer(msg.value);
    //         }
    //     }

    //     (IChi chi, uint256 amount) = caller.calculateGas(initialGas.sub(gasleft()), desc.flags, msg.data.length);
    //     if (amount > 0) {
    //         chiSpent = chi.freeFromUpTo(chiSource, amount);
    //     }
    //     gasLeft = gasleft();
    // }

    /// @notice Performs a swap, delegating all calls encoded in `data` to `caller`. See tests for usage examples
    /// @param caller Aggregation executor that executes calls described in `data`
    /// @param desc Swap description
    /// @param data Encoded calls that `caller` should execute in between of swaps
    /// @return returnAmount Resulting token amount
    /// @return gasLeft Gas left
    function swap(
        IAggregationExecutor caller,
        SwapDescription calldata desc,
        bytes calldata data
    )
        external
        payable
        returns (uint256 returnAmount, uint256 gasLeft)
    {
        require(desc.minReturnAmount > 0, "Min return should not be 0");
        require(data.length > 0, "data should not be empty");

        uint256 flags = desc.flags;
        IERC20 srcToken = desc.srcToken;
        IERC20 dstToken = desc.dstToken;

        bool srcETH = srcToken.isETH();
        if (flags & _REQUIRES_EXTRA_ETH != 0) {
            require(msg.value > (srcETH ? desc.amount : 0), "Invalid msg.value");
        } else {
            require(msg.value == (srcETH ? desc.amount : 0), "Invalid msg.value");
        }

        if (!srcETH) {
            _permit(address(srcToken), desc.permit);
            srcToken.safeTransferFrom(msg.sender, desc.srcReceiver, desc.amount);
        }

        {
            bytes memory callData = abi.encodePacked(caller.callBytes.selector, bytes12(0), msg.sender, data);
            // solhint-disable-next-line avoid-low-level-calls
            (bool success, bytes memory result) = address(caller).call{value: msg.value}(callData);
            if (!success) {
                revert(RevertReasonParser.parse(result, "callBytes failed: "));
            }
        }

        uint256 spentAmount = desc.amount;
        returnAmount = dstToken.uniBalanceOf(address(this));

        if (flags & _PARTIAL_FILL != 0) {
            uint256 unspentAmount = srcToken.uniBalanceOf(address(this));
            if (unspentAmount > 0) {
                spentAmount = spentAmount.sub(unspentAmount);
                srcToken.uniTransfer(msg.sender, unspentAmount);
            }
            require(returnAmount.mul(desc.amount) >= desc.minReturnAmount.mul(spentAmount), "Return amount is not enough");
        } else {
            require(returnAmount >= desc.minReturnAmount, "Return amount is not enough");
        }

        address payable dstReceiver = (desc.dstReceiver == address(0)) ? msg.sender : desc.dstReceiver;
        dstToken.uniTransfer(dstReceiver, returnAmount);

        emit Swapped(
            msg.sender,
            srcToken,
            dstToken,
            dstReceiver,
            spentAmount,
            returnAmount
        );

        gasLeft = gasleft();
    }

    function rescueFunds(IERC20 token, uint256 amount) external onlyOwner {
        token.uniTransfer(msg.sender, amount);
    }

    function destroy() external onlyOwner {
        selfdestruct(msg.sender);
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"makingAmount","type":"uint256"}],"name":"OrderFilledRFQ","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"srcToken","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"dstToken","type":"address"},{"indexed":false,"internalType":"address","name":"dstReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"spentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"}],"name":"Swapped","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_ORDER_RFQ_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"orderInfo","type":"uint256"}],"name":"cancelOrderRFQ","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"destroy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"contract IERC20","name":"makerAsset","type":"address"},{"internalType":"contract IERC20","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct LimitOrderProtocolRFQ.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"name":"fillOrderRFQ","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"contract IERC20","name":"makerAsset","type":"address"},{"internalType":"contract IERC20","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct LimitOrderProtocolRFQ.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"address payable","name":"target","type":"address"}],"name":"fillOrderRFQTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"contract IERC20","name":"makerAsset","type":"address"},{"internalType":"contract IERC20","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct LimitOrderProtocolRFQ.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"address payable","name":"target","type":"address"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"fillOrderRFQToWithPermit","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"},{"internalType":"uint256","name":"slot","type":"uint256"}],"name":"invalidatorForOrderRFQ","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IAggregationExecutor","name":"caller","type":"address"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address payable","name":"srcReceiver","type":"address"},{"internalType":"address payable","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"}],"internalType":"struct AggregationRouterV4.SwapDescription","name":"desc","type":"tuple"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"gasLeft","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"uniswapV3Swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"uniswapV3SwapTo","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"uniswapV3SwapToWithPermit","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"bytes32[]","name":"pools","type":"bytes32[]"}],"name":"unoswap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"bytes32[]","name":"pools","type":"bytes32[]"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"unoswapWithPermit","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101606040523480156200001257600080fd5b5060405162004a5738038062004a578339810160408190526200003591620001a4565b80816040518060400160405280600981526020016831696e63682052465160b81b815250604051806040016040528060018152602001601960f91b8152506000620000856200015760201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350815160208084019190912082519183019190912060c082905260e08190527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001186200015b565b60a052620001288184846200015f565b6080526101005250505050606090811b6001600160601b03199081166101205291901b16610140525062000200565b3390565b4690565b60008383836200016e6200015b565b3060405160200162000185959493929190620001d4565b6040516020818303038152906040528051906020012090509392505050565b600060208284031215620001b6578081fd5b81516001600160a01b0381168114620001cd578182fd5b9392505050565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b60805160a05160c05160e051610100516101205160601c6101405160601c6147e46200027360003980611487528061154a528061162352806116c052806117795250806119c95280611bae5250806121fb52508061223d52508061221c5250806121a25250806121d252506147e46000f3fe6080604052600436106101485760003560e01c8063825caba1116100c0578063bc80f1a811610074578063e449022e11610059578063e449022e14610350578063f2fde38b14610363578063fa461e331461038357610192565b8063bc80f1a81461032a578063d0a3b6651461033d57610192565b80638da5cb5b116100a55780638da5cb5b146102d5578063a1251d75146102f7578063baba58551461031757610192565b8063825caba1146102a057806383197ef0146102c057610192565b80634cc4a27b11610117578063715018a6116100fc578063715018a61461025857806378e3214f1461026d5780637c0252001461028d57610192565b80634cc4a27b1461020a57806356f161241461023857610192565b806306bf53d0146101975780632521b930146101c25780632e95b6c8146101e25780633644e515146101f557610192565b366101925733321415610190576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614118565b60405180910390fd5b005b600080fd5b3480156101a357600080fd5b506101ac6103a3565b6040516101b99190613cb2565b60405180910390f35b3480156101ce57600080fd5b506101ac6101dd3660046134ee565b6103c7565b6101ac6101f0366004613704565b6103ee565b34801561020157600080fd5b506101ac61093f565b34801561021657600080fd5b5061022a6102253660046138fa565b61094f565b6040516101b9929190613ec4565b34801561024457600080fd5b506101ac6102533660046135fb565b610980565b34801561026457600080fd5b506101906109b8565b34801561027957600080fd5b506101906102883660046135fb565b610a9a565b61022a61029b366004613686565b610b32565b3480156102ac57600080fd5b506101906102bb366004613984565b610ffc565b3480156102cc57600080fd5b50610190611036565b3480156102e157600080fd5b506102ea6110ac565b6040516101b99190613cbb565b34801561030357600080fd5b506101ac61031236600461371b565b6110c8565b61022a61032536600461387d565b6110ee565b6101ac610338366004613593565b6118b4565b61022a61034b366004613816565b611c43565b6101ac61035e3660046139b4565b611c62565b34801561036f57600080fd5b5061019061037e3660046134d2565b611c7c565b34801561038f57600080fd5b5061019061039e3660046137d1565b611dc9565b7f74ab4f0cde46aaf927859983f7d04002116dd057d4c4941f6dbfb775c3e31f4581565b60006103d4888484611fe4565b6103e189888888886118b4565b9998505050505050505050565b6000610559565b3d6000803e3d6000fd5b7f08c379a0000000000000000000000000000000000000000000000000000000006000527c200000000000000000000000000000000000000000000000000000000060205280604052816000fd5b60007f0902f1ac000000000000000000000000000000000000000000000000000000008252604082600484875afa610487576104876103f5565b60603d146104b7576104b760597c1472657365727665732063616c6c206661696c656400000000000000006103ff565b8151602083015186156104c657905b7f022c0d9f000000000000000000000000000000000000000000000000000000008452878502633b9aca0092909202820191020490508480156105155781600484015260006024840152610523565b600060048401528160248401525b50866044830152608060648301526000608483015260008060a4846000885af161054f5761054f6103f5565b9695505050505050565b60405160c0810160405260046064350180356020820191508060200282019050813589600081146106195734156105b2576105b260557c11696e76616c6964206d73672e76616c756500000000000000000000006103ff565b7f23b872dd00000000000000000000000000000000000000000000000000000000855233600486015273ffffffffffffffffffffffffffffffffffffffff8216602486015289604486015260008060648760008f5af1610614576106146103f5565b610705565b348a146106485761064860557c11696e76616c6964206d73672e76616c756500000000000000000000006103ff565b7fd0e30db00000000000000000000000000000000000000000000000000000000085526000806004878d7382af49447d8a07e3bd95bd0d56f35241523fbab15af1610695576106956103f5565b7fa9059cbb00000000000000000000000000000000000000000000000000000000855273ffffffffffffffffffffffffffffffffffffffff8216600486015289602486015260008060448760007382af49447d8a07e3bd95bd0d56f35241523fbab15af1610705576107056103f5565b50889450602083015b8281101561079d57803561079173ffffffffffffffffffffffffffffffffffffffff821677ffffffff0000000000000000000000000000000000000000851660a01c7f8000000000000000000000000000000000000000000000000000000000000000861673ffffffffffffffffffffffffffffffffffffffff87168b8b61044d565b9650915060200161070e565b507f40000000000000000000000000000000000000000000000000000000000000008116801561089b5761082a3077ffffffff0000000000000000000000000000000000000000841660a01c7f8000000000000000000000000000000000000000000000000000000000000000851673ffffffffffffffffffffffffffffffffffffffff86168a8a61044d565b95507f2e1a7d4d00000000000000000000000000000000000000000000000000000000855285600486015260008060248760007382af49447d8a07e3bd95bd0d56f35241523fbab15af1610880576108806103f5565b60008060008089335af1610896576108966103f5565b610901565b6108fe3377ffffffff0000000000000000000000000000000000000000841660a01c7f8000000000000000000000000000000000000000000000000000000000000000851673ffffffffffffffffffffffffffffffffffffffff86168a8a61044d565b95505b50505050508381101561093657610936605a7c164d696e2072657475726e206e6f7420726561636865640000000000006103ff565b95945050505050565b600061094961219e565b90505b90565b6000806109618a604001518585611fe4565b61096f8a8a8a8a8a8a6110ee565b915091509850989650505050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602090815260408083208484529091529020545b92915050565b6109c0612268565b73ffffffffffffffffffffffffffffffffffffffff166109de6110ac565b73ffffffffffffffffffffffffffffffffffffffff1614610a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906143e5565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610aa2612268565b73ffffffffffffffffffffffffffffffffffffffff16610ac06110ac565b73ffffffffffffffffffffffffffffffffffffffff1614610b0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906143e5565b610b2e73ffffffffffffffffffffffffffffffffffffffff8316338361226c565b5050565b60008060008560a0013511610b73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614351565b82610baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906146c3565b60c08501356000610bbe60208801886134d2565b90506000610bd26040890160208a016134d2565b90506000610bf58373ffffffffffffffffffffffffffffffffffffffff166122ea565b90506002841615610c4f5780610c0c576000610c12565b88608001355b3411610c4a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061414f565b610c99565b80610c5b576000610c61565b88608001355b3414610c99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061414f565b80610ceb57610cb483610caf60e08c018c6146fa565b611fe4565b610ceb33610cc860608c0160408d016134d2565b73ffffffffffffffffffffffffffffffffffffffff8616919060808d0135612340565b604051600090610d27907f2636f7f80000000000000000000000000000000000000000000000000000000090839033908d908d90602001613a43565b60405160208183030381529060405290506000808c73ffffffffffffffffffffffffffffffffffffffff163484604051610d619190613b10565b60006040518083038185875af1925050503d8060008114610d9e576040519150601f19603f3d011682016040523d82523d6000602084013e610da3565b606091505b509150915081610e1f57610dec816040518060400160405280601281526020017f63616c6c4279746573206661696c65643a2000000000000000000000000000008152506123e9565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879190613ef0565b5050506080890135610e4773ffffffffffffffffffffffffffffffffffffffff841630612565565b96506001851615610f03576000610e7473ffffffffffffffffffffffffffffffffffffffff861630612565565b90508015610ea957610e86828261263c565b9150610ea973ffffffffffffffffffffffffffffffffffffffff8616338361226c565b610eb760a08c01358361267e565b610ec58960808e013561267e565b1015610efd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061431a565b50610f41565b8960a00135871015610f41576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061431a565b600080610f5460808d0160608e016134d2565b73ffffffffffffffffffffffffffffffffffffffff1614610f8457610f7f60808c0160608d016134d2565b610f86565b335b9050610fa973ffffffffffffffffffffffffffffffffffffffff8516828a61226c565b7fd6d4f5681c246c9f42c203e287975af1601f8df8035a9251f79aab5c8f09e2f833868684868d604051610fe296959493929190613cdc565b60405180910390a15a965050505050505094509492505050565b336000908152600160208181526040808420600886901c66ffffffffffffff168552909152909120805460ff9093169190911b9091179055565b61103e612268565b73ffffffffffffffffffffffffffffffffffffffff1661105c6110ac565b73ffffffffffffffffffffffffffffffffffffffff16146110a9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906143e5565b33ff5b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60006110d5888484611fe4565b6110e288888888886103ee565b98975050505050505050565b606086015186517f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116808952600092839290917f8000000000000000000000000000000000000000000000000000000000000000821615159160401c67ffffffffffffffff168015806111625750804211155b611198576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614016565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020818152604080842066ffffffffffffff600888901c1680865292819052932054909260ff86169290921b91908083161561121e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614655565b6000938452602091909152604090922091179055505060a08a015160c08b01518715801561124a575088155b1561125a57819850809750611366565b876112e05781891115611299576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613f71565b6112d9826112d37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82016112cd858e61267e565b906126d9565b90612718565b9750611366565b88611334578088111561131f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613f3a565b61132d816112d3848b61267e565b9850611366565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061458a565b50506000871180156113785750600086115b6113ae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906144f6565b60808a015173ffffffffffffffffffffffffffffffffffffffff1615806113ee575060808a015173ffffffffffffffffffffffffffffffffffffffff1633145b611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614488565b60006114777f74ab4f0cde46aaf927859983f7d04002116dd057d4c4941f6dbfb775c3e31f458c60405160200161145c929190613e4e565b60405160208183030381529060405280519060200120612764565b905061148583828c8c61279d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168b6020015173ffffffffffffffffffffffffffffffffffffffff161480156114e15750815b156115fa5760208b015161150d9073ffffffffffffffffffffffffffffffffffffffff1684308b612340565b6040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d9061157f908b90600401613cb2565b600060405180830381600087803b15801561159957600080fd5b505af11580156115ad573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff891692508a156108fc0291508a906000818181858888f193505050501580156115f4573d6000803e3d6000fd5b50611621565b60208b01516116219073ffffffffffffffffffffffffffffffffffffffff1684888b612340565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168b6040015173ffffffffffffffffffffffffffffffffffffffff161480156116805750600034115b1561180b578634146116be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613fa8565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b15801561172657600080fd5b505af115801561173a573d6000803e3d6000fd5b50506040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb92506117b3915086908b90600401613d9b565b602060405180830381600087803b1580156117cd57600080fd5b505af11580156117e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118059190613626565b5061186a565b3415611843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613fa8565b60408b015161186a9073ffffffffffffffffffffffffffffffffffffffff1633858a612340565b7fc3b639f02b125bfa160e50739b8c44eb2d1b6908e2b6d5925c6d770f2ca78127818960405161189b929190613ec4565b60405180910390a1509599949850939650505050505050565b600081806118ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613f03565b8591507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81016000807f40000000000000000000000000000000000000000000000000000000000000008787838161194257fe5b90506020020135161190506000807f200000000000000000000000000000000000000000000000000000000000000088888681811061197d57fe5b90506020020135161190508115611a4d578834146119c7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906145c1565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08a6040518263ffffffff1660e01b81526004016000604051808303818588803b158015611a2f57600080fd5b505af1158015611a43573d6000803e3d6000fd5b5050505050611a85565b3415611a85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613fdf565b6001841115611b1357611ab93083611a9d5733611a9f565b305b89896000818110611aac57fe5b90506020020135886129dd565b945060015b83811015611aee57611ae430308a8a85818110611ad757fe5b90506020020135896129dd565b9550600101611abe565b50611b0c81611afd578a611aff565b305b30898987818110611aac57fe5b9450611b31565b611b2e81611b21578a611b23565b305b83611a9d5733611a9f565b94505b87851015611b6b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061468c565b8015611c36576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d90611be3908890600401613cb2565b600060405180830381600087803b158015611bfd57600080fd5b505af1158015611c11573d6000803e3d6000fd5b50611c369250505073ffffffffffffffffffffffffffffffffffffffff8b1686612bbf565b5050505095945050505050565b600080611c548787878787336110ee565b915091509550959350505050565b6000611c7133868686866118b4565b90505b949350505050565b611c84612268565b73ffffffffffffffffffffffffffffffffffffffff16611ca26110ac565b73ffffffffffffffffffffffffffffffffffffffff1614611cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906143e5565b73ffffffffffffffffffffffffffffffffffffffff8116611d3c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061404d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000807fff1f98431c8ad98523631ae4a59f267346ea31f98400000000000000000000007fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5482604051602081017f0dfe1681d21220a7ddca3f4300000000000000000000000000000000000000008252602081600484335afa611e4e57611e4e6103f5565b805196506020816004808501335afa611e6957611e696103f5565b80519550602081600460088501335afa611e8557611e856103f5565b51848252601582018781526035830187815260558085019390935260608220909152849052812073ffffffffffffffffffffffffffffffffffffffff16338114611ef157611ef160547c10554e495633523a2062616420706f6f6c0000000000000000000000006103ff565b506020608482375190506000891315611f6a5773ffffffffffffffffffffffffffffffffffffffff8116301415611f4857611f4373ffffffffffffffffffffffffffffffffffffffff8616338b612c9c565b611f6a565b611f6a73ffffffffffffffffffffffffffffffffffffffff861682338c612340565b6000881315611fd95773ffffffffffffffffffffffffffffffffffffffff8116301415611fb757611fb273ffffffffffffffffffffffffffffffffffffffff8516338a612c9c565b611fd9565b611fd973ffffffffffffffffffffffffffffffffffffffff851682338b612340565b505050505050505050565b8015612199576000606060e08314156120c95760405173ffffffffffffffffffffffffffffffffffffffff861690612044907fd505accf000000000000000000000000000000000000000000000000000000009087908790602001613ad4565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261207c91613b10565b6000604051808303816000865af19150503d80600081146120b9576040519150601f19603f3d011682016040523d82523d6000602084013e6120be565b606091505b509092509050612152565b6101008314156121205760405173ffffffffffffffffffffffffffffffffffffffff861690612044907f8fcbaf0c000000000000000000000000000000000000000000000000000000009087908790602001613ad4565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061441a565b8161219657610dec816040518060400160405280600f81526020017f5065726d6974206661696c65643a2000000000000000000000000000000000008152506123e9565b50505b505050565b60007f00000000000000000000000000000000000000000000000000000000000000006121c9612cbb565b14156121f657507f000000000000000000000000000000000000000000000000000000000000000061094c565b6122617f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612cbf565b905061094c565b3390565b80156121995761227b836122ea565b156122c95760405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156122c3573d6000803e3d6000fd5b50612199565b61219973ffffffffffffffffffffffffffffffffffffffff84168383612c9c565b600073ffffffffffffffffffffffffffffffffffffffff82161580612338575073ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b90505b919050565b6123e3846323b872dd60e01b85858560405160240161236193929190613d23565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612d00565b50505050565b60208201516060907f08c379a0000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000821614801561244457506044845110155b156124bb576060604485019050805160440185511015612490576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614451565b83816040516020016124a3929190613c30565b604051602081830303815290604052925050506109b2565b7f4e487b71000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000821614801561250d575083516024145b156125325760248401518361252182612db6565b6040516020016124a3929190613b2c565b8261253c85612ddc565b60405160200161254d929190613bae565b60405160208183030381529060405291505092915050565b6000612570836122ea565b15612593575073ffffffffffffffffffffffffffffffffffffffff8116316109b2565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a08231906125e5908590600401613cbb565b60206040518083038186803b1580156125fd57600080fd5b505afa158015612611573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612635919061399c565b90506109b2565b600082821115612678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614186565b50900390565b60008261268d575060006109b2565b8282028284828161269a57fe5b04146126d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614388565b9392505050565b6000828201838110156126d2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906140aa565b6000808211612753576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906142ae565b81838161275c57fe5b049392505050565b600061276e61219e565b82604051602001612780929190613c7c565b604051602081830303815290604052805190602001209050919050565b604181148015906127af575060408114155b8061282557508373ffffffffffffffffffffffffffffffffffffffff1661280c8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061301892505050565b73ffffffffffffffffffffffffffffffffffffffff1614155b156123e3576000808573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b86868660405160240161286193929190613dfa565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516128ea9190613b10565b600060405180830381855afa9150503d8060008114612925576040519150601f19603f3d011682016040523d82523d6000602084013e61292a565b606091505b509150915081801561293d575080516020145b801561299f575080517f1626ba7e000000000000000000000000000000000000000000000000000000009061297b9083016020908101908401613646565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b6129d5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906140e1565b505050505050565b60007f80000000000000000000000000000000000000000000000000000000000000008316158015612ae15760008473ffffffffffffffffffffffffffffffffffffffff1663128acb088884612a328861307c565b6401000276a48b604051602001612a499190613cbb565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612a78959493929190613d54565b6040805180830381600087803b158015612a9157600080fd5b505af1158015612aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ac991906137ae565b915050612ad8816000036130db565b92505050611c74565b60008473ffffffffffffffffffffffffffffffffffffffff1663128acb088884612b0a8861307c565b73fffd8963efd1fc6a506488495d951d5263988d258b604051602001612b309190613cbb565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612b5f959493929190613d54565b6040805180830381600087803b158015612b7857600080fd5b505af1158015612b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bb091906137ae565b509050612ad8816000036130db565b80471015612bf9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061421a565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612c1f9061094c565b60006040518083038185875af1925050503d8060008114612c5c576040519150601f19603f3d011682016040523d82523d6000602084013e612c61565b606091505b5050905080612199576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906141bd565b6121998363a9059cbb60e01b8484604051602401612361929190613d9b565b4690565b6000838383612ccc612cbb565b30604051602001612ce1959493929190613dc1565b6040516020818303038152906040528051906020012090509392505050565b6000612d62826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131179092919063ffffffff16565b8051909150156121995780806020019051810190612d809190613626565b612199576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906145f8565b606061233882604051602001612dcc9190613cb2565b6040516020818303038152906040525b80516060907f30313233343536373839616263646566000000000000000000000000000000009060009060029081020167ffffffffffffffff81118015612e2257600080fd5b506040519080825280601f01601f191660200182016040528015612e4d576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e7e57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612edb57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b845181101561301057826004868381518110612f2557fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016901c60f81c60108110612f5b57fe5b1a60f81b828260020260020181518110612f7157fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535082858281518110612fad57fe5b60209101015160f81c600f1660108110612fc357fe5b1a60f81b828260020260030181518110612fd957fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101612f0d565b509392505050565b600081516041141561304c5760208201516040830151606084015160001a61304286828585613126565b93505050506109b2565b815160401415613074576020820151604083015161306b858383613214565b925050506109b2565b5060006109b2565b60007f800000000000000000000000000000000000000000000000000000000000000082106130d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061452d565b5090565b6000808212156130d7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906142e5565b6060611c74848460008561324d565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561315857506000611c74565b8360ff16601b1415801561317057508360ff16601c14155b1561317d57506000611c74565b6000600186868686604051600081526020016040526040516131a29493929190613ed2565b6020604051602081039080840390855afa1580156131c4573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116611c71576000915050611c74565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b0161054f86828785613126565b606082471015613289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614251565b6132928561334e565b6132c8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906144bf565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516132f19190613b10565b60006040518083038185875af1925050503d806000811461332e576040519150601f19603f3d011682016040523d82523d6000602084013e613333565b606091505b5091509150613343828286613354565b979650505050505050565b3b151590565b606083156133635750816126d2565b8251156133735782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879190613ef0565b803561233b81614789565b60008083601f8401126133c3578182fd5b50813567ffffffffffffffff8111156133da578182fd5b60208301915083602080830285010111156133f457600080fd5b9250929050565b60008083601f84011261340c578182fd5b50813567ffffffffffffffff811115613423578182fd5b6020830191508360208285010111156133f457600080fd5b600060e0828403121561344c578081fd5b60405160e0810181811067ffffffffffffffff8211171561346957fe5b6040528235815290508061347f602084016133a7565b6020820152613490604084016133a7565b60408201526134a1606084016133a7565b60608201526134b2608084016133a7565b608082015260a083013560a082015260c083013560c08201525092915050565b6000602082840312156134e3578081fd5b81356126d281614789565b60008060008060008060008060c0898b031215613509578384fd5b883561351481614789565b9750602089013561352481614789565b96506040890135955060608901359450608089013567ffffffffffffffff8082111561354e578586fd5b61355a8c838d016133b2565b909650945060a08b0135915080821115613572578384fd5b5061357f8b828c016133fb565b999c989b5096995094979396929594505050565b6000806000806000608086880312156135aa578081fd5b85356135b581614789565b94506020860135935060408601359250606086013567ffffffffffffffff8111156135de578182fd5b6135ea888289016133b2565b969995985093965092949392505050565b6000806040838503121561360d578182fd5b823561361881614789565b946020939093013593505050565b600060208284031215613637578081fd5b815180151581146126d2578182fd5b600060208284031215613657578081fd5b81517fffffffff00000000000000000000000000000000000000000000000000000000811681146126d2578182fd5b6000806000806060858703121561369b578384fd5b84356136a681614789565b9350602085013567ffffffffffffffff808211156136c2578485fd5b9086019061010082890312156136d6578485fd5b909350604086013590808211156136eb578384fd5b506136f8878288016133fb565b95989497509550505050565b6000806000806000608086880312156135aa578283fd5b600080600080600080600060a0888a031215613735578081fd5b873561374081614789565b96506020880135955060408801359450606088013567ffffffffffffffff8082111561376a578283fd5b6137768b838c016133b2565b909650945060808a013591508082111561378e578283fd5b5061379b8a828b016133fb565b989b979a50959850939692959293505050565b600080604083850312156137c0578182fd5b505080516020909101519092909150565b600080600080606085870312156137e6578182fd5b8435935060208501359250604085013567ffffffffffffffff81111561380a578283fd5b6136f8878288016133fb565b6000806000806000610140868803121561382e578283fd5b613838878761343b565b945060e086013567ffffffffffffffff811115613853578384fd5b61385f888289016133fb565b96999098509596610100810135966101209091013595509350505050565b6000806000806000806101608789031215613896578384fd5b6138a0888861343b565b955060e087013567ffffffffffffffff8111156138bb578485fd5b6138c789828a016133fb565b909650945050610100870135925061012087013591506101408701356138ec81614789565b809150509295509295509295565b600080600080600080600080610180898b031215613916578182fd5b6139208a8a61343b565b975060e089013567ffffffffffffffff8082111561393c578384fd5b6139488c838d016133fb565b90995097506101008b013596506101208b013595506101408b0135915061396e82614789565b9093506101608a01359080821115613572578384fd5b600060208284031215613995578081fd5b5035919050565b6000602082840312156139ad578081fd5b5051919050565b600080600080606085870312156139c9578182fd5b8435935060208501359250604085013567ffffffffffffffff8111156139ed578283fd5b6136f8878288016133b2565b60008151808452613a1181602086016020860161475d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60007fffffffff00000000000000000000000000000000000000000000000000000000871682527fffffffffffffffffffffffff0000000000000000000000000000000000000000861660048301527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008560601b166010830152828460248401379101602401908152949350505050565b60007fffffffff000000000000000000000000000000000000000000000000000000008516825282846004840137910160040190815292915050565b60008251613b2281846020870161475d565b9190910192915050565b60008351613b3e81846020880161475d565b7f50616e69632800000000000000000000000000000000000000000000000000009083019081528351613b7881600684016020880161475d565b7f290000000000000000000000000000000000000000000000000000000000000060069290910191820152600701949350505050565b60008351613bc081846020880161475d565b7f556e6b6e6f776e280000000000000000000000000000000000000000000000009083019081528351613bfa81600884016020880161475d565b7f290000000000000000000000000000000000000000000000000000000000000060089290910191820152600901949350505050565b60008351613c4281846020880161475d565b7f4572726f722800000000000000000000000000000000000000000000000000009083019081528351613b7881600684016020880161475d565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b90815260200190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff96871681529486166020860152928516604085015293166060830152608082019290925260a081019190915260c00190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a0608083015261334360a08301846139f9565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b94855260208501939093526040840191909152606083015273ffffffffffffffffffffffffffffffffffffffff16608082015260a00190565b60008482526040602083015282604083015282846060840137818301606090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016010192915050565b60006101008201905083825282516020830152602083015173ffffffffffffffffffffffffffffffffffffffff80821660408501528060408601511660608501528060608601511660808501528060808601511660a0850152505060a083015160c083015260c083015160e08301529392505050565b918252602082015260400190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526126d260208301846139f9565b60208082526013908201527f554e495633523a20656d70747920706f6f6c7300000000000000000000000000604082015260600190565b6020808252601b908201527f4c4f503a2074616b696e6720616d6f756e742065786365656465640000000000604082015260600190565b6020808252601b908201527f4c4f503a206d616b696e6720616d6f756e742065786365656465640000000000604082015260600190565b60208082526014908201527f4c4f503a2077726f6e67206d73672e76616c7565000000000000000000000000604082015260600190565b6020808252601d908201527f554e495633523a206d73672e76616c75652073686f756c642062652030000000604082015260600190565b60208082526012908201527f4c4f503a206f7264657220657870697265640000000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526012908201527f4c4f503a20626164207369676e61747572650000000000000000000000000000604082015260600190565b60208082526014908201527f455448206465706f7369742072656a6563746564000000000000000000000000604082015260600190565b60208082526011908201527f496e76616c6964206d73672e76616c7565000000000000000000000000000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f52657475726e20616d6f756e74206973206e6f7420656e6f7567680000000000604082015260600190565b6020808252601a908201527f4d696e2072657475726e2073686f756c64206e6f742062652030000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526013908201527f57726f6e67207065726d6974206c656e67746800000000000000000000000000604082015260600190565b60208082526015908201527f496e76616c69642072657665727420726561736f6e0000000000000000000000604082015260600190565b60208082526012908201527f4c4f503a2070726976617465206f726465720000000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f4c4f503a2063616e27742073776170203020616d6f756e740000000000000000604082015260600190565b60208082526028908201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160408201527f6e20696e74323536000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4c4f503a206f6e65206f6620616d6f756e74732073686f756c64206265203000604082015260600190565b60208082526017908201527f554e495633523a2077726f6e67206d73672e76616c7565000000000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526013908201527f4c4f503a20616c72656164792066696c6c656400000000000000000000000000604082015260600190565b60208082526012908201527f554e495633523a206d696e2072657475726e0000000000000000000000000000604082015260600190565b60208082526018908201527f646174612073686f756c64206e6f7420626520656d7074790000000000000000604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261472e578283fd5b83018035915067ffffffffffffffff821115614748578283fd5b6020019150368190038213156133f457600080fd5b60005b83811015614778578181015183820152602001614760565b838111156123e35750506000910152565b73ffffffffffffffffffffffffffffffffffffffff811681146147ab57600080fd5b5056fea2646970667358221220c84637fd5a8b2432aba02be7d4aa2fa2ffd724e3312d9f99737b4ddeb81ce21f64736f6c6343000706003300000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

-----Decoded View---------------
Arg [0] : weth (address): 0x82af49447d8a07e3bd95bd0d56f35241523fbab1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1


Deployed ByteCode Sourcemap

92186:6090:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34823:10;34837:9;34823:23;;34815:56;;;;;;;;;;;;:::i;:::-;;;;;;;;;92186:6090;;;;;56400:218;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;85337:386;;;;;;;;;;-1:-1:-1;85337:386:0;;;;;:::i;:::-;;:::i;67040:6186::-;;;;;;:::i;:::-;;:::i;56970:105::-;;;;;;;;;;;;;:::i;58876:467::-;;;;;;;;;;-1:-1:-1;58876:467:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;57283:143::-;;;;;;;;;;-1:-1:-1;57283:143:0;;;;;:::i;:::-;;:::i;11920:148::-;;;;;;;;;;;;;:::i;98058:126::-;;;;;;;;;;-1:-1:-1;98058:126:0;;;;;:::i;:::-;;:::i;95630:2420::-;;;;;;:::i;:::-;;:::i;57473:144::-;;;;;;;;;;-1:-1:-1;57473:144:0;;;;;:::i;:::-;;:::i;98192:81::-;;;;;;;;;;;;;:::i;11269:87::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;66247:333::-;;;;;;;;;;-1:-1:-1;66247:333:0;;;;;:::i;:::-;;:::i;59706:3613::-;;;;;;:::i;:::-;;:::i;86786:1539::-;;;;;;:::i;:::-;;:::i;57897:358::-;;;;;;:::i;:::-;;:::i;86054:244::-;;;;;;:::i;:::-;;:::i;12223:::-;;;;;;;;;;-1:-1:-1;12223:244:0;;;;;:::i;:::-;;:::i;88377:2841::-;;;;;;;;;;-1:-1:-1;88377:2841:0;;;;;:::i;:::-;;:::i;56400:218::-;56451:167;56400:218;:::o;85337:386::-;85578:20;85611:34;85627:8;85638:6;;85611:7;:34::i;:::-;85663:52;85679:9;85690:6;85698:9;85709:5;;85663:15;:52::i;:::-;85656:59;85337:386;-1:-1:-1;;;;;;;;;85337:386:0:o;67040:6186::-;67254:20;67355:137;;;67415:16;67412:1;67409;67394:38;67460:16;67457:1;67450:27;67508:308;67571:66;67568:1;67561:77;67669:66;67663:4;67656:80;67767:1;67761:4;67754:15;67797:3;67794:1;67787:14;67832:1618;;67943:39;67933:8;67926:57;68060:4;68050:8;68045:3;68035:8;68029:4;68022:5;68011:54;68001:2;;68090:10;;:::i;:::-;68168:4;68150:16;68147:26;68137:2;;68198:90;68283:4;68215:66;68198:90;:::i;:::-;68376:8;68370:15;68439:4;68429:8;68425:19;68419:26;68466:8;68463:2;;;68551:8;68463:2;68790:35;68773:53;;68640:26;;;68738:12;68724:27;;;;68715:37;;68695:18;;68691:62;;-1:-1:-1;68851:8:0;68877:133;;;;69087:3;69080:4;69070:8;69066:19;69059:32;69141:1;69134:4;69124:8;69120:19;69113:30;68844:318;;68877:133;68935:1;68928:4;68918:8;68914:19;68907:30;68987:3;68980:4;68970:8;68966:19;68959:32;68844:318;;69208:3;69201:4;69191:8;69187:19;69180:32;69258:4;69251;69241:8;69237:19;69230:33;69309:1;69302:4;69292:8;69288:19;69281:30;69379:1;69376;69370:4;69360:8;69357:1;69351:4;69344:5;69339:42;69329:2;;69406:10;;:::i;:::-;67907:1543;;;;;;;;:::o;:::-;69488:4;69482:11;69534:4;69524:8;69520:19;69514:4;69507:33;69599:3;69592:4;69579:18;69575:28;69652:11;69639:25;69710:4;69697:11;69693:22;69678:37;;69774:14;69768:4;69764:25;69751:11;69747:43;69729:61;;69832:11;69819:25;69865:8;69892:1;69887:750;;;;70681:11;70678:2;;;70716:90;70801:4;70733:66;70716:90;:::i;:::-;70886:31;70876:8;70869:49;70963:8;70957:3;70947:8;70943:18;70936:36;71031:13;71022:7;71018:27;71011:4;71001:8;70997:19;70990:56;71092:6;71085:4;71075:8;71071:19;71064:35;71171:1;71168;71162:4;71152:8;71149:1;71139:8;71132:5;71127:46;71117:2;;71198:10;;:::i;:::-;69858:1384;;69887:750;69934:11;69926:6;69923:23;69913:2;;69971:90;70056:4;69988:66;69971:90;:::i;:::-;70141:30;70131:8;70124:48;70245:1;70242;70237:3;70227:8;70219:6;70212:5;70205;70200:47;70190:2;;70272:10;;:::i;:::-;70338:32;70328:8;70321:50;70429:13;70420:7;70416:27;70410:3;70400:8;70396:18;70389:55;70490:6;70483:4;70473:8;70469:19;70462:35;70566:1;70563;70557:4;70547:8;70544:1;70537:5;70530;70525:43;70515:2;;70593:10;;:::i;:::-;69858:1384;71274:6;71258:22;;71327:4;71314:11;71310:22;71296:545;71340:14;71337:1;71334:21;71296:545;;;71427:1;71414:15;71465:319;71751:13;71738:11;71734:31;71694:15;71685:7;71681:29;71662:17;71658:53;71621:13;71612:7;71608:27;71571:13;71562:7;71558:27;71523:12;71492:8;71465:319;:::i;:::-;71449:335;-1:-1:-1;71815:11:0;-1:-1:-1;71369:4:0;71362:12;71296:545;;;-1:-1:-1;71877:10:0;71864:24;;71902:353;;;;72312:297;72581:9;72541:15;72532:7;72528:29;72509:17;72505:53;72468:13;72459:7;72455:27;72418:13;72409:7;72405:27;72370:12;72339:8;72312:297;:::i;:::-;72296:313;;72646:31;72636:8;72629:49;72724:12;72717:4;72707:8;72703:19;72696:41;72806:1;72803;72797:4;72787:8;72784:1;72777:5;72770;72765:43;72755:2;;72833:10;;:::i;:::-;72937:1;72934;72931;72928;72914:12;72904:8;72897:5;72892:47;72882:2;;72964:10;;:::i;:::-;71857:1151;;71902:353;71944:296;72213:8;72173:15;72164:7;72160:29;72141:17;72137:53;72100:13;72091:7;72087:27;72050:13;72041:7;72037:27;72002:12;71971:8;71944:296;:::i;:::-;71928:312;;71857:1151;;;;;;73044:9;73030:12;73027:27;73024:2;;;73074:90;73159:4;73091:66;73074:90;:::i;:::-;67296:5923;;;;;;;:::o;56970:105::-;57020:7;57047:20;:18;:20::i;:::-;57040:27;;56970:105;;:::o;58876:467::-;59128:7;59162;59207:42;59223:5;:16;;;59242:6;;59207:7;:42::i;:::-;59267:68;59282:5;59289:9;;59300:12;59314;59328:6;59267:14;:68::i;:::-;59260:75;;;;58876:467;;;;;;;;;;;:::o;57283:143::-;57393:19;;;57366:7;57393:19;;;:12;:19;;;;;;;;:25;;;;;;;;;57283:143;;;;;:::o;11920:148::-;11500:12;:10;:12::i;:::-;11489:23;;:7;:5;:7::i;:::-;:23;;;11481:68;;;;;;;;;;;;:::i;:::-;12027:1:::1;12011:6:::0;;11990:40:::1;::::0;::::1;12011:6:::0;;::::1;::::0;11990:40:::1;::::0;12027:1;;11990:40:::1;12058:1;12041:19:::0;;;::::1;::::0;;11920:148::o;98058:126::-;11500:12;:10;:12::i;:::-;11489:23;;:7;:5;:7::i;:::-;:23;;;11481:68;;;;;;;;;;;;:::i;:::-;98139:37:::1;:17;::::0;::::1;98157:10;98169:6:::0;98139:17:::1;:37::i;:::-;98058:126:::0;;:::o;95630:2420::-;95812:20;95834:15;95898:1;95875:4;:20;;;:24;95867:63;;;;;;;;;;;;:::i;:::-;95949:15;95941:52;;;;;;;;;;;;:::i;:::-;96022:10;;;;96006:13;96061;;;;96022:4;96061:13;:::i;:::-;96043:31;-1:-1:-1;96085:15:0;96103:13;;;;;;;;:::i;:::-;96085:31;;96129:11;96143:16;:8;:14;;;:16::i;:::-;96129:30;-1:-1:-1;92535:6:0;96174:27;;:32;96170:235;;96244:6;:24;;96267:1;96244:24;;;96253:4;:11;;;96244:24;96231:9;:38;96223:68;;;;;;;;;;;;:::i;:::-;96170:235;;;96346:6;:24;;96369:1;96346:24;;;96355:4;:11;;;96346:24;96332:9;:39;96324:69;;;;;;;;;;;;:::i;:::-;96422:6;96417:162;;96445:39;96461:8;96472:11;;;;:4;:11;:::i;:::-;96445:7;:39::i;:::-;96499:68;96525:10;96537:16;;;;;;;;:::i;:::-;96499:25;;;;:68;96555:11;;;;96499:25;:68::i;:::-;96630:73;;96606:21;;96630:73;;96647:25;;96606:21;;96686:10;;96698:4;;;;96630:73;;;:::i;:::-;;;;;;;;;;;;;96606:97;;96783:12;96797:19;96828:6;96820:20;;96848:9;96859:8;96820:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96782:86;;;;96888:7;96883:111;;96923:54;96948:6;96923:54;;;;;;;;;;;;;;;;;:24;:54::i;:::-;96916:62;;;;;;;;;;;:::i;96883:111::-;-1:-1:-1;;;97039:11:0;;;;97076:36;:21;;;97106:4;97076:21;:36::i;:::-;97061:51;-1:-1:-1;92475:6:0;97129:21;;:26;97125:535;;97172:21;97196:36;:21;;;97226:4;97196:21;:36::i;:::-;97172:60;-1:-1:-1;97251:17:0;;97247:168;;97303:30;:11;97319:13;97303:15;:30::i;:::-;97289:44;-1:-1:-1;97352:47:0;:20;;;97373:10;97385:13;97352:20;:47::i;:::-;97470:37;:20;;;;97495:11;97470:24;:37::i;:::-;97437:29;:12;97454:11;;;;97437:16;:29::i;:::-;:70;;97429:110;;;;;;;;;;;;:::i;:::-;97125:535;;;;97596:4;:20;;;97580:12;:36;;97572:76;;;;;;;;;;;;:::i;:::-;97672:27;;97703:16;;;;;;;;:::i;:::-;:30;;;97702:64;;97750:16;;;;;;;;:::i;:::-;97702:64;;;97737:10;97702:64;97672:94;-1:-1:-1;97777:47:0;:20;;;97672:94;97811:12;97777:20;:47::i;:::-;97842:168;97864:10;97889:8;97912;97935:11;97961;97987:12;97842:168;;;;;;;;;;;:::i;:::-;;;;;;;;98033:9;98023:19;;95630:2420;;;;;;;;;;;;;:::o;57473:144::-;57549:10;57536:24;;;;57588:1;57536:24;;;;;;;;57582:1;57561:22;;;;;57536:48;;;;;;;;:73;;57588:21;;;;;;;;57536:73;;;;;57473:144::o;98192:81::-;11500:12;:10;:12::i;:::-;11489:23;;:7;:5;:7::i;:::-;:23;;;11481:68;;;;;;;;;;;;:::i;:::-;98254:10:::1;98241:24;11269:87:::0;11315:7;11342:6;;;11269:87;:::o;66247:333::-;66444:20;66477:34;66493:8;66504:6;;66477:7;:34::i;:::-;66529:43;66537:8;66547:6;66555:9;66566:5;;66529:7;:43::i;:::-;66522:50;66247:333;-1:-1:-1;;;;;;;;66247:333:0:o;59706:3613::-;60017:11;;;;60058:10;;60131:21;60117:36;;60104:49;;;-1:-1:-1;;;;60017:11:0;;56670:8;60058:30;;60057:36;;;60364:2;60347:19;;;60389:15;;;:48;;;60427:10;60408:15;:29;;60389:48;60381:79;;;;;;;;;;;;:::i;:::-;60728:19;;;60557:23;60728:19;;;60640:1;60728:19;;;;;;;;60583:17;60599:1;60583:17;;;;60784:35;;;;;;;;;;60583:17;;60640:16;;;;;;;;60728:19;60842:28;;;:33;60834:65;;;;;;;;;;;;:::i;:::-;60914:35;;;;;;;;;;;;;60952:28;;60914:66;;-1:-1:-1;;61066:18:0;;;;61127;;;;61211:17;;:38;;;;-1:-1:-1;61232:17:0;;61211:38;61207:816;;;61333:17;61318:32;;61384:17;61369:32;;61207:816;;;61440:17;61436:587;;61502:17;61486:12;:33;;61478:73;;;;;;;;;;;;:::i;:::-;61585:85;61652:17;61585:62;61625:21;;;61585:35;:17;61607:12;61585:21;:35::i;:::-;:39;;:62::i;:::-;:66;;:85::i;:::-;61570:100;;61436:587;;;61709:17;61705:318;;61771:17;61755:12;:33;;61747:73;;;;;;;;;;;;:::i;:::-;61854:58;61894:17;61854:35;:17;61876:12;61854:21;:35::i;:58::-;61839:73;;61705:318;;;61966:41;;;;;;;;;;:::i;61705:318::-;59706:3613;;62069:1;62054:12;:16;:36;;;;;62089:1;62074:12;:16;62054:36;62046:73;;;;;;;;;;;;:::i;:::-;62167:19;;;;:33;;;;:70;;-1:-1:-1;62204:19:0;;;;:33;;62227:10;62204:33;62167:70;62159:101;;;;;;;;;;;;:::i;:::-;62271:17;62291:72;56451:167;62355:5;62318:43;;;;;;;;;:::i;:::-;;;;;;;;;;;;;62308:54;;;;;;62291:16;:72::i;:::-;62271:92;;62374:38;62384:5;62391:9;62402;;62374;:38::i;:::-;62476:5;62456:25;;:5;:16;;;:25;;;:39;;;;;62485:10;62456:39;62452:323;;;62512:16;;;;:69;;:33;;62546:5;62561:4;62568:12;62512:33;:69::i;:::-;62596:28;;;;;:14;:5;:14;;;;:28;;62611:12;;62596:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;62639:29:0;;:15;;;;-1:-1:-1;62639:29:0;;;;;-1:-1:-1;62655:12:0;;62639:29;;;;62655:12;62639:15;:29;;;;;;;;;;;;;;;;;;;;;62452:323;;;62701:16;;;;:62;;:33;;62735:5;62742:6;62750:12;62701:33;:62::i;:::-;62836:5;62816:25;;:5;:16;;;:25;;;:42;;;;;62857:1;62845:9;:13;62816:42;62812:397;;;62896:12;62883:9;:25;62875:58;;;;;;;;;;;;:::i;:::-;62948:5;:13;;;62970:12;62948:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;63001:35:0;;;;;:14;:5;:14;;-1:-1:-1;63001:14:0;;-1:-1:-1;63001:35:0;;-1:-1:-1;63016:5:0;;63023:12;;63001:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62812:397;;;63077:9;:14;63069:47;;;;;;;;;;;;:::i;:::-;63131:16;;;;:66;;:33;;63165:10;63177:5;63184:12;63131:33;:66::i;:::-;63226:39;63241:9;63252:12;63226:39;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;63284:12:0;;63298;;-1:-1:-1;59706:3613:0;;-1:-1:-1;;;;;;;59706:3613:0:o;86786:1539::-;86965:20;87012:5;87043:7;87035:39;;;;;;;;;;;;:::i;:::-;87138:6;;-1:-1:-1;87105:7:0;;;87085:17;;83612:8;87171:5;;87085:17;87171:8;;;;;;;;;;;:26;:30;87155:46;;87212:15;87269:1;83672:8;87230:5;;87236:9;87230:16;;;;;;;;;;;;;:36;:40;87212:58;;87285:8;87281:230;;;87331:6;87318:9;:19;87310:55;;;;;;;;;;;;:::i;:::-;87380:5;:13;;;87401:6;87380:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87281:230;;;87451:9;:14;87443:56;;;;;;;;;;;;:::i;:::-;87531:1;87525:3;:7;87521:597;;;87564:87;87582:4;87589:8;:37;;87616:10;87589:37;;;87608:4;87589:37;87628:5;;87634:1;87628:8;;;;;;;;;;;;;87638:12;87564:9;:87::i;:::-;87549:102;-1:-1:-1;87685:1:0;87668:153;87692:9;87688:1;:13;87668:153;;;87742:63;87760:4;87775;87782:5;;87788:1;87782:8;;;;;;;;;;;;;87792:12;87742:9;:63::i;:::-;87727:78;-1:-1:-1;87703:3:0;;87668:153;;;;87850:96;87860:10;:38;;87889:9;87860:38;;;87881:4;87860:38;87908:4;87915:5;;87921:9;87915:16;;;;;;87850:96;87835:111;;87521:597;;;87994:112;88004:10;:38;;88033:9;88004:38;;;88025:4;88004:38;88044:8;:37;;88071:10;88044:37;;87994:112;87979:127;;87521:597;88154:9;88138:12;:25;;88130:56;;;;;;;;;;;;:::i;:::-;88203:10;88199:119;;;88230:28;;;;;:14;:5;:14;;;;:28;;88245:12;;88230:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;88273:33:0;;-1:-1:-1;;;88273:19:0;;;88293:12;88273:19;:33::i;:::-;86786:1539;;;;;;;;;;;:::o;57897:358::-;58080:7;58114;58166:81;58181:5;58188:9;;58199:12;58213;58235:10;58166:14;:81::i;:::-;58159:88;;;;57897:358;;;;;;;;:::o;86054:244::-;86197:20;86237:53;86253:10;86265:6;86273:9;86284:5;;86237:15;:53::i;:::-;86230:60;;86054:244;;;;;;;:::o;12223:::-;11500:12;:10;:12::i;:::-;11489:23;;:7;:5;:7::i;:::-;:23;;;11481:68;;;;;;;;;;;;:::i;:::-;12312:22:::1;::::0;::::1;12304:73;;;;;;;;;;;;:::i;:::-;12414:6;::::0;;12393:38:::1;::::0;::::1;::::0;;::::1;::::0;12414:6;::::1;::::0;12393:38:::1;::::0;::::1;12442:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;12223:244::o;88377:2841::-;88540:13;;83847:66;83735;88540:13;89291:4;89285:11;89341:4;89331:8;89327:19;89377:10;89367:8;89360:28;89468:4;89457:9;89452:3;89442:8;89432;89425:5;89414:59;89404:2;;89494:10;;:::i;:::-;89549:9;89543:16;89533:26;;89647:4;89636:9;89631:3;89625;89615:8;89611:18;89601:8;89594:5;89583:69;89573:2;;89673:10;;:::i;:::-;89728:9;89722:16;89712:26;;89826:4;89815:9;89810:3;89804;89794:8;89790:18;89780:8;89773:5;89762:69;89752:2;;89852:10;;:::i;:::-;89902:16;89965:27;;;90018:2;90011:10;;90083:17;;;90121:10;;;90114:26;;;90161:10;;;;90154:23;;;;90214:2;90201:16;;90191:27;;;90261;;;90318:23;;90343:13;90314:43;90392:8;90383:18;;90373:2;;90422:90;90507:4;90439:66;90422:90;:::i;:::-;90373:2;90593:4;90587;90577:8;90564:34;90621:15;;-1:-1:-1;90678:1:0;90663:16;;90659:271;;;90700:22;;;90717:4;90700:22;90696:223;;;90743:54;:19;;;90763:10;90783:12;90743:19;:54::i;:::-;90696:223;;;90838:65;:23;;;90862:5;90869:10;90889:12;90838:23;:65::i;:::-;90959:1;90944:12;:16;90940:271;;;90981:22;;;90998:4;90981:22;90977:223;;;91024:54;:19;;;91044:10;91064:12;91024:19;:54::i;:::-;90977:223;;;91119:65;:23;;;91143:5;91150:10;91170:12;91119:23;:65::i;:::-;88377:2841;;;;;;;;;:::o;40487:828::-;40566:17;;40562:746;;40600:12;40627:19;40682:6;40665:23;;40661:514;;;40808:54;;40797:10;;;;40808:54;;40825:28;;40855:6;;;;40808:54;;;:::i;:::-;;;;;;;;;;;;;;;40797:66;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40777:86:0;;-1:-1:-1;40777:86:0;-1:-1:-1;40661:514:0;;;40906:6;40889:23;;40885:290;;;41032:56;;41021:10;;;;41032:56;;41049:30;;41081:6;;;;41032:56;;;:::i;40885:290::-;41130:29;;;;;;;;;;:::i;40885:290::-;41194:7;41189:108;;41229:51;41254:6;41229:51;;;;;;;;;;;;;;;;;:24;:51::i;41189:108::-;40562:746;;;40487:828;;;:::o;47537:289::-;47598:7;47639:16;47622:13;:11;:13::i;:::-;:33;47618:201;;;-1:-1:-1;47679:24:0;47672:31;;47618:201;47743:64;47765:10;47777:12;47791:15;47743:21;:64::i;:::-;47736:71;;;;9804:106;9892:10;9804:106;:::o;42032:283::-;42127:10;;42123:185;;42158:12;42164:5;42158;:12::i;:::-;42154:143;;;42191:19;;:11;;;;:19;;;;;42203:6;;42191:19;;;;42203:6;42191:11;:19;;;;;;;;;;;;;;;;;;;;;42154:143;;;42251:30;:18;;;42270:2;42274:6;42251:18;:30::i;41649:133::-;41701:4;41726:22;;;;;:47;;-1:-1:-1;41752:21:0;;;41541:42;41752:21;41726:47;41718:56;;41649:133;;;;:::o;31667:205::-;31768:96;31788:5;31818:27;;;31847:4;31853:2;31857:5;31795:68;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31768:19;:96::i;:::-;31667:205;;;;:::o;37626:1778::-;37853:4;37843:15;;37837:22;37705:13;;37966:22;;;;;:43;;;;;38007:2;37992:4;:11;:17;;37966:43;37962:1352;;;38026:20;38238:2;38232:4;38228:13;38218:23;;38740:6;38734:20;38729:2;:25;38714:4;:11;:40;;38706:74;;;;;;;;;;;;:::i;:::-;38826:6;38844;38809:47;;;;;;;;;:::i;:::-;;;;;;;;;;;;;38795:62;;;;;;37962:1352;38951:22;;;;;:43;;;;;38977:4;:11;38992:2;38977:17;38951:43;38947:367;;;39201:2;39191:13;;39185:20;39265:6;39283:12;39185:20;39283:6;:12::i;:::-;39248:53;;;;;;;;;:::i;38947:367::-;39357:6;39377:12;39384:4;39377:6;:12::i;:::-;39340:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;39326:70;;;37626:1778;;;;:::o;41790:234::-;41866:7;41890:12;41896:5;41890;:12::i;:::-;41886:131;;;-1:-1:-1;41926:15:0;;;;41919:22;;41886:131;41981:24;;;;;:15;;;;;;:24;;41997:7;;41981:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41974:31;;;;18562:158;18620:7;18653:1;18648;:6;;18640:49;;;;;;;;;;;;:::i;:::-;-1:-1:-1;18707:5:0;;;18562:158::o;18979:220::-;19037:7;19061:6;19057:20;;-1:-1:-1;19076:1:0;19069:8;;19057:20;19100:5;;;19104:1;19100;:5;:1;19124:5;;;;;:10;19116:56;;;;;;;;;;;;:::i;:::-;19190:1;18979:220;-1:-1:-1;;;18979:220:0:o;18100:179::-;18158:7;18190:5;;;18214:6;;;;18206:46;;;;;;;;;;;;:::i;19677:153::-;19735:7;19767:1;19763;:5;19755:44;;;;;;;;;;;;:::i;:::-;19821:1;19817;:5;;;;;;;19677:153;-1:-1:-1;;;19677:153:0:o;48813:185::-;48890:7;48956:20;:18;:20::i;:::-;48978:10;48927:62;;;;;;;;;:::i;:::-;;;;;;;;;;;;;48917:73;;;;;;48910:80;;48813:185;;;:::o;63327:561::-;63456:2;63436:22;;;;;:48;;-1:-1:-1;63482:2:0;63462:22;;;63436:48;63435:102;;;;63531:6;63489:48;;:38;63506:9;63517;;63489:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63489:16:0;;-1:-1:-1;;;63489:38:0:i;:::-;:48;;;;63435:102;63431:450;;;63555:12;63569:19;63592:6;:17;;63651:34;;;63687:9;63698;;63628:80;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63592:131;;;;63628:80;63592:131;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63554:169;;;;63746:7;:30;;;;;63757:6;:13;63774:2;63757:19;63746:30;:100;;;;-1:-1:-1;63780:28:0;;63812:34;;63780:28;;;;;;;;;;;;:::i;:::-;:66;;;63746:100;63738:131;;;;;;;;;;;;:::i;:::-;63431:450;;63327:561;;;;:::o;91226:825::-;91326:7;83554:8;91364:25;;:30;91405:639;;;;91439:14;91472:4;91457:25;;;91501:9;91529:10;91558:25;91576:6;91558:17;:25::i;:::-;84312:14;91647:5;91636:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;91457:211;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91436:232;;;91690:28;91710:7;91709:8;;91690:18;:28::i;:::-;91683:35;;;;;;91405:639;91752:14;91786:4;91771:25;;;91815:9;91843:10;91872:25;91890:6;91872:17;:25::i;:::-;84498:53;91961:5;91950:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;91771:211;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91751:231;;;92004:28;92024:7;92023:8;;92004:18;:28::i;24907:397::-;25022:6;24997:21;:31;;24989:73;;;;;;;;;;;;:::i;:::-;25154:12;25172:9;:14;;25195:6;25172:35;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25153:54;;;25226:7;25218:78;;;;;;;;;;;;:::i;31482:177::-;31565:86;31585:5;31615:23;;;31640:2;31644:5;31592:58;;;;;;;;;:::i;49006:326::-;49305:9;;49279:46::o;47834:337::-;47936:7;48016:8;48043:4;48066:7;48092:13;:11;:13::i;:::-;48132:4;47987:165;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;47963:200;;;;;;47956:207;;47834:337;;;;;:::o;33787:761::-;34211:23;34237:69;34265:4;34237:69;;;;;;;;;;;;;;;;;34245:5;34237:27;;;;:69;;;;;:::i;:::-;34321:17;;34211:95;;-1:-1:-1;34321:21:0;34317:224;;34463:10;34452:30;;;;;;;;;;;;:::i;:::-;34444:85;;;;;;;;;;;;:::i;39412:124::-;39464:13;39497:31;39521:5;39504:23;;;;;;;;:::i;:::-;;;;;;;;;;;;;39544:466;39723:11;;39600:13;;39626:53;;:16;;39737:1;39723:15;;;39719:19;39709:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39709:30:0;;39690:49;;39750:12;:3;39754:1;39750:6;;;;;;;;;;;:12;;;;;;;;;;;39773;:3;39777:1;39773:6;;;;;;;;;;;:12;;;;;;;;;;;39801:9;39796:178;39820:4;:11;39816:1;:15;39796:178;;;39870:8;39896:1;39885:4;39890:1;39885:7;;;;;;;;;;;;;;:12;;:7;39879:19;39870:29;;;;;;;;;;39853:3;39861:1;39857;:5;39865:1;39857:9;39853:14;;;;;;;;;;;:46;;;;;;;;;;;39931:8;39946:4;39951:1;39946:7;;;;;;;;;;;;;;;39956:4;39940:21;39931:31;;;;;;;;;;39914:3;39922:1;39918;:5;39926:1;39918:9;39914:14;;;;;;;;;;;:48;;;;;;;;;;-1:-1:-1;39833:3:0;;39796:178;;;-1:-1:-1;39998:3:0;39544:466;-1:-1:-1;;;39544:466:0:o;50940:1343::-;51021:7;51241:9;:16;51261:2;51241:22;51237:1039;;;51581:4;51566:20;;51560:27;51631:4;51616:20;;51610:27;51689:4;51674:20;;51668:27;51280:9;51660:36;51732:25;51743:4;51660:36;51560:27;51610;51732:10;:25::i;:::-;51725:32;;;;;;;51237:1039;51779:9;:16;51799:2;51779:22;51775:501;;;52098:4;52083:20;;52077:27;52149:4;52134:20;;52128:27;52191:23;52202:4;52077:27;52128;52191:10;:23::i;:::-;52184:30;;;;;;51775:501;-1:-1:-1;52262:1:0;52247:17;;79834:181;79890:6;79925;79917:5;:14;79909:67;;;;;;;;;;;;:::i;:::-;-1:-1:-1;80001:5:0;79834:181::o;76652:171::-;76708:7;76745:1;76736:5;:10;;76728:55;;;;;;;;;;;;:::i;26468:195::-;26571:12;26603:52;26625:6;26633:4;26639:1;26642:12;26603:21;:52::i;53149:1493::-;53280:7;54200:66;54187:79;;54183:129;;;-1:-1:-1;54298:1:0;54283:17;;54183:129;54326:1;:7;;54331:2;54326:7;;:18;;;;;54337:1;:7;;54342:2;54337:7;;54326:18;54322:68;;;-1:-1:-1;54376:1:0;54361:17;;54322:68;54487:14;54504:24;54514:4;54520:1;54523;54526;54504:24;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54504:24:0;;;;;;-1:-1:-1;;54543:20:0;;;54539:70;;54595:1;54580:17;;;;;52546:421;52660:7;52799:66;52791:75;;52893:3;52889:12;;;52903:2;52885:21;52934:25;52945:4;52885:21;52954:1;52791:75;52934:10;:25::i;27520:530::-;27647:12;27705:5;27680:21;:30;;27672:81;;;;;;;;;;;;:::i;:::-;27772:18;27783:6;27772:10;:18::i;:::-;27764:60;;;;;;;;;;;;:::i;:::-;27898:12;27912:23;27939:6;:11;;27959:5;27967:4;27939:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27897:75;;;;27990:52;28008:7;28017:10;28029:12;27990:17;:52::i;:::-;27983:59;27520:530;-1:-1:-1;;;;;;;27520:530:0:o;23550:422::-;23917:20;23956:8;;;23550:422::o;30060:742::-;30175:12;30204:7;30200:595;;;-1:-1:-1;30235:10:0;30228:17;;30200:595;30349:17;;:21;30345:439;;30612:10;30606:17;30673:15;30660:10;30656:2;30652:19;30645:44;30560:148;30755:12;30748:20;;;;;;;;;;;:::i;14:138:1:-;84:20;;113:33;84:20;113:33;:::i;157:404::-;;;290:3;283:4;275:6;271:17;267:27;257:2;;315:8;305;298:26;257:2;-1:-1:-1;345:20:1;;388:18;377:30;;374:2;;;427:8;417;410:26;374:2;471:4;463:6;459:17;447:29;;534:3;527:4;519;511:6;507:17;499:6;495:30;491:41;488:50;485:2;;;551:1;548;541:12;485:2;247:314;;;;;:::o;566:377::-;;;683:3;676:4;668:6;664:17;660:27;650:2;;708:8;698;691:26;650:2;-1:-1:-1;738:20:1;;781:18;770:30;;767:2;;;820:8;810;803:26;767:2;864:4;856:6;852:17;840:29;;916:3;909:4;900:6;892;888:19;884:30;881:39;878:2;;;933:1;930;923:12;948:843;;1054:4;1042:9;1037:3;1033:19;1029:30;1026:2;;;1076:5;1069;1062:20;1026:2;1113;1107:9;1155:4;1147:6;1143:17;1226:6;1214:10;1211:22;1190:18;1178:10;1175:34;1172:62;1169:2;;;1237:9;1169:2;1264;1257:22;1327:23;;1312:39;;1297:6;-1:-1:-1;1297:6:1;1384:40;1420:2;1405:18;;1384:40;:::i;:::-;1379:2;1371:6;1367:15;1360:65;1458:40;1494:2;1483:9;1479:18;1458:40;:::i;:::-;1453:2;1445:6;1441:15;1434:65;1532:40;1568:2;1557:9;1553:18;1532:40;:::i;:::-;1527:2;1519:6;1515:15;1508:65;1607:41;1643:3;1632:9;1628:19;1607:41;:::i;:::-;1601:3;1593:6;1589:16;1582:67;1711:3;1700:9;1696:19;1683:33;1677:3;1669:6;1665:16;1658:59;1779:3;1768:9;1764:19;1751:33;1745:3;1737:6;1733:16;1726:59;;1016:775;;;;:::o;1796:259::-;;1908:2;1896:9;1887:7;1883:23;1879:32;1876:2;;;1929:6;1921;1914:22;1876:2;1973:9;1960:23;1992:33;2019:5;1992:33;:::i;2332:1224::-;;;;;;;;;2605:3;2593:9;2584:7;2580:23;2576:33;2573:2;;;2627:6;2619;2612:22;2573:2;2671:9;2658:23;2690:33;2717:5;2690:33;:::i;:::-;2742:5;-1:-1:-1;2799:2:1;2784:18;;2771:32;2812:35;2771:32;2812:35;:::i;:::-;2866:7;-1:-1:-1;2920:2:1;2905:18;;2892:32;;-1:-1:-1;2971:2:1;2956:18;;2943:32;;-1:-1:-1;3026:3:1;3011:19;;2998:33;3050:18;3080:14;;;3077:2;;;3112:6;3104;3097:22;3077:2;3156:76;3224:7;3215:6;3204:9;3200:22;3156:76;:::i;:::-;3251:8;;-1:-1:-1;3130:102:1;-1:-1:-1;3339:3:1;3324:19;;3311:33;;-1:-1:-1;3356:16:1;;;3353:2;;;3390:6;3382;3375:22;3353:2;;3434:62;3488:7;3477:8;3466:9;3462:24;3434:62;:::i;:::-;2563:993;;;;-1:-1:-1;2563:993:1;;-1:-1:-1;2563:993:1;;;;;;3515:8;-1:-1:-1;;;2563:993:1:o;3561:745::-;;;;;;3767:3;3755:9;3746:7;3742:23;3738:33;3735:2;;;3789:6;3781;3774:22;3735:2;3833:9;3820:23;3852:33;3879:5;3852:33;:::i;:::-;3904:5;-1:-1:-1;3956:2:1;3941:18;;3928:32;;-1:-1:-1;4007:2:1;3992:18;;3979:32;;-1:-1:-1;4062:2:1;4047:18;;4034:32;4089:18;4078:30;;4075:2;;;4126:6;4118;4111:22;4075:2;4170:76;4238:7;4229:6;4218:9;4214:22;4170:76;:::i;:::-;3725:581;;;;-1:-1:-1;3725:581:1;;-1:-1:-1;4265:8:1;;4144:102;3725:581;-1:-1:-1;;;3725:581:1:o;4311:327::-;;;4440:2;4428:9;4419:7;4415:23;4411:32;4408:2;;;4461:6;4453;4446:22;4408:2;4505:9;4492:23;4524:33;4551:5;4524:33;:::i;:::-;4576:5;4628:2;4613:18;;;;4600:32;;-1:-1:-1;;;4398:240:1:o;4643:297::-;;4763:2;4751:9;4742:7;4738:23;4734:32;4731:2;;;4784:6;4776;4769:22;4731:2;4821:9;4815:16;4874:5;4867:13;4860:21;4853:5;4850:32;4840:2;;4901:6;4893;4886:22;4945:356;;5067:2;5055:9;5046:7;5042:23;5038:32;5035:2;;;5088:6;5080;5073:22;5035:2;5125:9;5119:16;5175:66;5168:5;5164:78;5157:5;5154:89;5144:2;;5262:6;5254;5247:22;5306:911;;;;;5535:2;5523:9;5514:7;5510:23;5506:32;5503:2;;;5556:6;5548;5541:22;5503:2;5600:9;5587:23;5619:33;5646:5;5619:33;:::i;:::-;5671:5;-1:-1:-1;5727:2:1;5712:18;;5699:32;5750:18;5780:14;;;5777:2;;;5812:6;5804;5797:22;5777:2;5840:22;;;;5896:3;5878:16;;;5874:26;5871:2;;;5918:6;5910;5903:22;5871:2;5946;;-1:-1:-1;6001:2:1;5986:18;;5973:32;;6017:16;;;6014:2;;;6051:6;6043;6036:22;6014:2;;6095:62;6149:7;6138:8;6127:9;6123:24;6095:62;:::i;:::-;5493:724;;;;-1:-1:-1;6176:8:1;-1:-1:-1;;;;5493:724:1:o;6846:751::-;;;;;;7058:3;7046:9;7037:7;7033:23;7029:33;7026:2;;;7080:6;7072;7065:22;7602:1072;;;;;;;;7850:3;7838:9;7829:7;7825:23;7821:33;7818:2;;;7872:6;7864;7857:22;7818:2;7916:9;7903:23;7935:33;7962:5;7935:33;:::i;:::-;7987:5;-1:-1:-1;8039:2:1;8024:18;;8011:32;;-1:-1:-1;8090:2:1;8075:18;;8062:32;;-1:-1:-1;8145:2:1;8130:18;;8117:32;8168:18;8198:14;;;8195:2;;;8230:6;8222;8215:22;8195:2;8274:76;8342:7;8333:6;8322:9;8318:22;8274:76;:::i;:::-;8369:8;;-1:-1:-1;8248:102:1;-1:-1:-1;8457:3:1;8442:19;;8429:33;;-1:-1:-1;8474:16:1;;;8471:2;;;8508:6;8500;8493:22;8471:2;;8552:62;8606:7;8595:8;8584:9;8580:24;8552:62;:::i;:::-;7808:866;;;;-1:-1:-1;7808:866:1;;-1:-1:-1;7808:866:1;;;;8526:88;;-1:-1:-1;;;7808:866:1:o;8679:253::-;;;8817:2;8805:9;8796:7;8792:23;8788:32;8785:2;;;8838:6;8830;8823:22;8785:2;-1:-1:-1;;8866:16:1;;8922:2;8907:18;;;8901:25;8866:16;;8901:25;;-1:-1:-1;8775:157:1:o;8937:565::-;;;;;9100:2;9088:9;9079:7;9075:23;9071:32;9068:2;;;9121:6;9113;9106:22;9068:2;9162:9;9149:23;9139:33;;9219:2;9208:9;9204:18;9191:32;9181:42;;9274:2;9263:9;9259:18;9246:32;9301:18;9293:6;9290:30;9287:2;;;9338:6;9330;9323:22;9287:2;9382:60;9434:7;9425:6;9414:9;9410:22;9382:60;:::i;9507:691::-;;;;;;9715:3;9703:9;9694:7;9690:23;9686:33;9683:2;;;9737:6;9729;9722:22;9683:2;9765:49;9806:7;9795:9;9765:49;:::i;:::-;9755:59;;9865:3;9854:9;9850:19;9837:33;9893:18;9885:6;9882:30;9879:2;;;9930:6;9922;9915:22;9879:2;9974:60;10026:7;10017:6;10006:9;10002:22;9974:60;:::i;:::-;9673:525;;10053:8;;-1:-1:-1;9948:86:1;;10135:3;10120:19;;10107:33;;10187:3;10172:19;;;10159:33;;-1:-1:-1;9673:525:1;-1:-1:-1;;;;9673:525:1:o;10203:837::-;;;;;;;10436:3;10424:9;10415:7;10411:23;10407:33;10404:2;;;10458:6;10450;10443:22;10404:2;10486:49;10527:7;10516:9;10486:49;:::i;:::-;10476:59;;10586:3;10575:9;10571:19;10558:33;10614:18;10606:6;10603:30;10600:2;;;10651:6;10643;10636:22;10600:2;10695:60;10747:7;10738:6;10727:9;10723:22;10695:60;:::i;:::-;10774:8;;-1:-1:-1;10669:86:1;-1:-1:-1;;10856:3:1;10841:19;;10828:33;;-1:-1:-1;10908:3:1;10893:19;;10880:33;;-1:-1:-1;10963:3:1;10948:19;;10935:33;10977;10935;10977;:::i;:::-;11029:5;11019:15;;;10394:646;;;;;;;;:::o;11045:1158::-;;;;;;;;;11314:3;11302:9;11293:7;11289:23;11285:33;11282:2;;;11336:6;11328;11321:22;11282:2;11364:49;11405:7;11394:9;11364:49;:::i;:::-;11354:59;;11464:3;11453:9;11449:19;11436:33;11488:18;11529:2;11521:6;11518:14;11515:2;;;11550:6;11542;11535:22;11515:2;11594:60;11646:7;11637:6;11626:9;11622:22;11594:60;:::i;:::-;11673:8;;-1:-1:-1;11568:86:1;-1:-1:-1;11755:3:1;11740:19;;11727:33;;-1:-1:-1;11807:3:1;11792:19;;11779:33;;-1:-1:-1;11862:3:1;11847:19;;11834:33;;-1:-1:-1;11876:33:1;11834;11876;:::i;:::-;11928:5;;-1:-1:-1;11986:3:1;11971:19;;11958:33;;12003:16;;;12000:2;;;12037:6;12029;12022:22;12208:190;;12320:2;12308:9;12299:7;12295:23;12291:32;12288:2;;;12341:6;12333;12326:22;12288:2;-1:-1:-1;12369:23:1;;12278:120;-1:-1:-1;12278:120:1:o;12403:194::-;;12526:2;12514:9;12505:7;12501:23;12497:32;12494:2;;;12547:6;12539;12532:22;12494:2;-1:-1:-1;12575:16:1;;12484:113;-1:-1:-1;12484:113:1:o;12602:599::-;;;;;12783:2;12771:9;12762:7;12758:23;12754:32;12751:2;;;12804:6;12796;12789:22;12751:2;12845:9;12832:23;12822:33;;12902:2;12891:9;12887:18;12874:32;12864:42;;12957:2;12946:9;12942:18;12929:32;12984:18;12976:6;12973:30;12970:2;;;13021:6;13013;13006:22;12970:2;13065:76;13133:7;13124:6;13113:9;13109:22;13065:76;:::i;13206:318::-;;13287:5;13281:12;13314:6;13309:3;13302:19;13330:63;13386:6;13379:4;13374:3;13370:14;13363:4;13356:5;13352:16;13330:63;:::i;:::-;13438:2;13426:15;13443:66;13422:88;13413:98;;;;13513:4;13409:109;;13257:267;-1:-1:-1;;13257:267:1:o;13529:718::-;;13808:66;13800:6;13796:79;13791:3;13784:92;13917:66;13909:6;13905:79;13901:1;13896:3;13892:11;13885:100;14036:66;14027:6;14023:2;14019:15;14015:88;14010:2;14005:3;14001:12;13994:110;14148:6;14140;14135:2;14130:3;14126:12;14113:42;14178:16;;14196:2;14174:25;14208:15;;;14174:25;13774:473;-1:-1:-1;;;;13774:473:1:o;14252:416::-;;14459:66;14451:6;14447:79;14442:3;14435:92;14570:6;14562;14558:1;14553:3;14549:11;14536:41;14600:16;;14618:1;14596:24;14629:15;;;14596:24;14425:243;-1:-1:-1;;14425:243:1:o;14673:274::-;;14840:6;14834:13;14856:53;14902:6;14897:3;14890:4;14882:6;14878:17;14856:53;:::i;:::-;14925:16;;;;;14810:137;-1:-1:-1;;14810:137:1:o;14952:773::-;;15371:6;15365:13;15387:53;15433:6;15428:3;15421:4;15413:6;15409:17;15387:53;:::i;:::-;15501:8;15462:16;;;15487:23;;;15535:13;;15557:65;15535:13;15609:1;15598:13;;15591:4;15579:17;;15557:65;:::i;:::-;15689:3;15685:1;15641:20;;;;15677:10;;;15670:23;15717:1;15709:10;;15341:384;-1:-1:-1;;;;15341:384:1:o;15730:775::-;;16149:6;16143:13;16165:53;16211:6;16206:3;16199:4;16191:6;16187:17;16165:53;:::i;:::-;16279:10;16240:16;;;16265:25;;;16315:13;;16337:65;16315:13;16389:1;16378:13;;16371:4;16359:17;;16337:65;:::i;:::-;16469:3;16465:1;16421:20;;;;16457:10;;;16450:23;16497:1;16489:10;;16119:386;-1:-1:-1;;;;16119:386:1:o;16510:773::-;;16929:6;16923:13;16945:53;16991:6;16986:3;16979:4;16971:6;16967:17;16945:53;:::i;:::-;17059:8;17020:16;;;17045:23;;;17093:13;;17115:65;17093:13;17167:1;17156:13;;17149:4;17137:17;;17115:65;:::i;17288:444::-;17558:66;17546:79;;17650:1;17641:11;;17634:27;;;;17686:2;17677:12;;17670:28;17723:2;17714:12;;17536:196::o;17947:182::-;18076:19;;;18120:2;18111:12;;18066:63::o;18134:226::-;18310:42;18298:55;;;;18280:74;;18268:2;18253:18;;18235:125::o;18365:676::-;18706:42;18775:15;;;18757:34;;18827:15;;;18822:2;18807:18;;18800:43;18879:15;;;18874:2;18859:18;;18852:43;18931:15;;18926:2;18911:18;;18904:43;18978:3;18963:19;;18956:35;;;;19022:3;19007:19;;19000:35;;;;18683:3;18668:19;;18650:391::o;19046:398::-;19258:42;19327:15;;;19309:34;;19379:15;;;;19374:2;19359:18;;19352:43;19426:2;19411:18;;19404:34;;;;19236:2;19221:18;;19203:241::o;19449:593::-;;19692:42;19773:2;19765:6;19761:15;19750:9;19743:34;19827:6;19820:14;19813:22;19808:2;19797:9;19793:18;19786:50;19872:6;19867:2;19856:9;19852:18;19845:34;19927:2;19919:6;19915:15;19910:2;19899:9;19895:18;19888:43;;19968:3;19962;19951:9;19947:19;19940:32;19989:47;20031:3;20020:9;20016:19;20008:6;19989:47;:::i;20047:297::-;20251:42;20239:55;;;;20221:74;;20326:2;20311:18;;20304:34;20209:2;20194:18;;20176:168::o;20531:512::-;20790:25;;;20846:2;20831:18;;20824:34;;;;20889:2;20874:18;;20867:34;;;;20932:2;20917:18;;20910:34;20993:42;20981:55;20975:3;20960:19;;20953:84;20777:3;20762:19;;20744:299::o;21048:521::-;;21233:6;21222:9;21215:25;21276:2;21271;21260:9;21256:18;21249:30;21315:6;21310:2;21299:9;21295:18;21288:34;21372:6;21364;21359:2;21348:9;21344:18;21331:48;21399:22;;;21423:2;21395:31;;;21388:45;;;;21485:2;21473:15;;;21490:66;21469:88;21454:104;21450:113;;21205:364;-1:-1:-1;;21205:364:1:o;21574:807::-;;21788:3;21777:9;21773:19;21765:27;;21819:6;21808:9;21801:25;21868:6;21862:13;21857:2;21846:9;21842:18;21835:41;21923:2;21915:6;21911:15;21905:22;21946:42;22042:2;22028:12;22024:21;22019:2;22008:9;22004:18;21997:49;22110:2;22104;22096:6;22092:15;22086:22;22082:31;22077:2;22066:9;22062:18;22055:59;22179:2;22173;22165:6;22161:15;22155:22;22151:31;22145:3;22134:9;22130:19;22123:60;22249:2;22242:3;22234:6;22230:16;22224:23;22220:32;22214:3;22203:9;22199:19;22192:61;;;22308:3;22300:6;22296:16;22290:23;22284:3;22273:9;22269:19;22262:52;22369:3;22361:6;22357:16;22351:23;22345:3;22334:9;22330:19;22323:52;21755:626;;;;;:::o;22386:248::-;22560:25;;;22616:2;22601:18;;22594:34;22548:2;22533:18;;22515:119::o;22639:398::-;22866:25;;;22939:4;22927:17;;;;22922:2;22907:18;;22900:45;22976:2;22961:18;;22954:34;23019:2;23004:18;;22997:34;22853:3;22838:19;;22820:217::o;23042:221::-;;23191:2;23180:9;23173:21;23211:46;23253:2;23242:9;23238:18;23230:6;23211:46;:::i;23268:343::-;23470:2;23452:21;;;23509:2;23489:18;;;23482:30;23548:21;23543:2;23528:18;;23521:49;23602:2;23587:18;;23442:169::o;23616:351::-;23818:2;23800:21;;;23857:2;23837:18;;;23830:30;23896:29;23891:2;23876:18;;23869:57;23958:2;23943:18;;23790:177::o;23972:351::-;24174:2;24156:21;;;24213:2;24193:18;;;24186:30;24252:29;24247:2;24232:18;;24225:57;24314:2;24299:18;;24146:177::o;24328:344::-;24530:2;24512:21;;;24569:2;24549:18;;;24542:30;24608:22;24603:2;24588:18;;24581:50;24663:2;24648:18;;24502:170::o;24677:353::-;24879:2;24861:21;;;24918:2;24898:18;;;24891:30;24957:31;24952:2;24937:18;;24930:59;25021:2;25006:18;;24851:179::o;25035:342::-;25237:2;25219:21;;;25276:2;25256:18;;;25249:30;25315:20;25310:2;25295:18;;25288:48;25368:2;25353:18;;25209:168::o;25382:402::-;25584:2;25566:21;;;25623:2;25603:18;;;25596:30;25662:34;25657:2;25642:18;;25635:62;25733:8;25728:2;25713:18;;25706:36;25774:3;25759:19;;25556:228::o;25789:351::-;25991:2;25973:21;;;26030:2;26010:18;;;26003:30;26069:29;26064:2;26049:18;;26042:57;26131:2;26116:18;;25963:177::o;26145:342::-;26347:2;26329:21;;;26386:2;26366:18;;;26359:30;26425:20;26420:2;26405:18;;26398:48;26478:2;26463:18;;26319:168::o;26492:344::-;26694:2;26676:21;;;26733:2;26713:18;;;26706:30;26772:22;26767:2;26752:18;;26745:50;26827:2;26812:18;;26666:170::o;26841:341::-;27043:2;27025:21;;;27082:2;27062:18;;;27055:30;27121:19;27116:2;27101:18;;27094:47;27173:2;27158:18;;27015:167::o;27187:354::-;27389:2;27371:21;;;27428:2;27408:18;;;27401:30;27467:32;27462:2;27447:18;;27440:60;27532:2;27517:18;;27361:180::o;27546:422::-;27748:2;27730:21;;;27787:2;27767:18;;;27760:30;27826:34;27821:2;27806:18;;27799:62;27897:28;27892:2;27877:18;;27870:56;27958:3;27943:19;;27720:248::o;27973:353::-;28175:2;28157:21;;;28214:2;28194:18;;;28187:30;28253:31;28248:2;28233:18;;28226:59;28317:2;28302:18;;28147:179::o;28331:402::-;28533:2;28515:21;;;28572:2;28552:18;;;28545:30;28611:34;28606:2;28591:18;;28584:62;28682:8;28677:2;28662:18;;28655:36;28723:3;28708:19;;28505:228::o;28738:350::-;28940:2;28922:21;;;28979:2;28959:18;;;28952:30;29018:28;29013:2;28998:18;;28991:56;29079:2;29064:18;;28912:176::o;29093:356::-;29295:2;29277:21;;;29314:18;;;29307:30;29373:34;29368:2;29353:18;;29346:62;29440:2;29425:18;;29267:182::o;29454:351::-;29656:2;29638:21;;;29695:2;29675:18;;;29668:30;29734:29;29729:2;29714:18;;29707:57;29796:2;29781:18;;29628:177::o;29810:350::-;30012:2;29994:21;;;30051:2;30031:18;;;30024:30;30090:28;30085:2;30070:18;;30063:56;30151:2;30136:18;;29984:176::o;30165:397::-;30367:2;30349:21;;;30406:2;30386:18;;;30379:30;30445:34;30440:2;30425:18;;30418:62;30516:3;30511:2;30496:18;;30489:31;30552:3;30537:19;;30339:223::o;30567:356::-;30769:2;30751:21;;;30788:18;;;30781:30;30847:34;30842:2;30827:18;;30820:62;30914:2;30899:18;;30741:182::o;30928:343::-;31130:2;31112:21;;;31169:2;31149:18;;;31142:30;31208:21;31203:2;31188:18;;31181:49;31262:2;31247:18;;31102:169::o;31276:345::-;31478:2;31460:21;;;31517:2;31497:18;;;31490:30;31556:23;31551:2;31536:18;;31529:51;31612:2;31597:18;;31450:171::o;31626:342::-;31828:2;31810:21;;;31867:2;31847:18;;;31840:30;31906:20;31901:2;31886:18;;31879:48;31959:2;31944:18;;31800:168::o;31973:353::-;32175:2;32157:21;;;32214:2;32194:18;;;32187:30;32253:31;32248:2;32233:18;;32226:59;32317:2;32302:18;;32147:179::o;32331:348::-;32533:2;32515:21;;;32572:2;32552:18;;;32545:30;32611:26;32606:2;32591:18;;32584:54;32670:2;32655:18;;32505:174::o;32684:404::-;32886:2;32868:21;;;32925:2;32905:18;;;32898:30;32964:34;32959:2;32944:18;;32937:62;33035:10;33030:2;33015:18;;33008:38;33078:3;33063:19;;32858:230::o;33093:355::-;33295:2;33277:21;;;33334:2;33314:18;;;33307:30;33373:33;33368:2;33353:18;;33346:61;33439:2;33424:18;;33267:181::o;33453:347::-;33655:2;33637:21;;;33694:2;33674:18;;;33667:30;33733:25;33728:2;33713:18;;33706:53;33791:2;33776:18;;33627:173::o;33805:406::-;34007:2;33989:21;;;34046:2;34026:18;;;34019:30;34085:34;34080:2;34065:18;;34058:62;34156:12;34151:2;34136:18;;34129:40;34201:3;34186:19;;33979:232::o;34216:343::-;34418:2;34400:21;;;34457:2;34437:18;;;34430:30;34496:21;34491:2;34476:18;;34469:49;34550:2;34535:18;;34390:169::o;34564:342::-;34766:2;34748:21;;;34805:2;34785:18;;;34778:30;34844:20;34839:2;34824:18;;34817:48;34897:2;34882:18;;34738:168::o;34911:348::-;35113:2;35095:21;;;35152:2;35132:18;;;35125:30;35191:26;35186:2;35171:18;;35164:54;35250:2;35235:18;;35085:174::o;35699:592::-;;;35842:11;35829:25;35932:66;35921:8;35905:14;35901:29;35897:102;35877:18;35873:127;35863:2;;36017:4;36011;36004:18;35863:2;36047:33;;36099:20;;;-1:-1:-1;36142:18:1;36131:30;;36128:2;;;36177:4;36171;36164:18;36128:2;36213:4;36201:17;;-1:-1:-1;36244:14:1;36240:27;;;36230:38;;36227:2;;;36281:1;36278;36271:12;36296:258;36368:1;36378:113;36392:6;36389:1;36386:13;36378:113;;;36468:11;;;36462:18;36449:11;;;36442:39;36414:2;36407:10;36378:113;;;36509:6;36506:1;36503:13;36500:2;;;-1:-1:-1;;36544:1:1;36526:16;;36519:27;36349:205::o;36559:156::-;36647:42;36640:5;36636:54;36629:5;36626:65;36616:2;;36705:1;36702;36695:12;36616:2;36606:109;:::o

Metadata Hash

c84637fd5a8b2432aba02be7d4aa2fa2ffd724e3312d9f99737b4ddeb81ce21f
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.