Contract 0x1111111254fb6c44bac0bed2854e76f90643097d 8

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x118bfa68689fa577de492b6c36756aa91cd92047248602dc72319a73730a91f30x7c025200219680582021-11-30 8:53:3613 mins ago0xdb871356f8935567bb9f7975edf9c649ab8989aa IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.03680376
0x56b5cfde471c9001d4db8c7d3f3a6dd6059d4b75235fc659defcf61884f3b9680x7c025200219680562021-11-30 8:53:3213 mins ago0x75a2d1eb71e95ff942ee5d1036cab0a79f3ee78f IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.1675323
0xac52dd0daa0c146ed3c78b3c9dde51d5cd1119c30be0312cb8a3aa49523ca05b0x7c025200219680552021-11-30 8:53:3013 mins ago0xc83aa25fa5829c789df2ac5976b4a26d49c648ff IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.04428516
0x82e69abe427a87381b5f05c466618fb5705c0ea7134ad765f469c980af9456a70x7c025200219680542021-11-30 8:53:2813 mins ago0x7dd471be4b86a6a89c14cebc9ab9d3dfef8fccc1 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.01631952
0x290cac4910ba9b3f1baf5424b93de1b9e3938ea61528e617450dd7029f5965820x7c025200219680452021-11-30 8:53:1013 mins ago0xdb93ae70294b9664668338ff73151cd03c93511b IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.10209136
0x859d5d09e877862bb082d79c7bb7a8811918764a8bd3341e1d0c7c742d17f7860x7c025200219680412021-11-30 8:53:0213 mins ago0x2f94a1a826748e13b854d353a56bb6af0473f666 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.13388688
0xf3be45f5f6e1ff8cb53be8d537d04ecaae9c0afbb9325d1830f01c4b5e04593d0x7c025200219680392021-11-30 8:52:5813 mins ago0x6aebf70f2643af7384b26c16e215c73f4271c4cc IN  0x1111111254fb6c44bac0bed2854e76f90643097d22.92923168 MATIC0.046683648
0xb6e180133a768fb2b33cceedf3d235b350cf0cf3bce21318bd14b7d053cfecce0x7c025200219680392021-11-30 8:52:5813 mins ago0xfaf6ab3675eba002c4955275a14154eff5e27426 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.08970535
0x3d01a1e4aa8059b45b34e40e4888b3039087cdfb48929da89610a94d7c29cd0d0x7c025200219680392021-11-30 8:52:5813 mins ago0xbd2c58eac75a66467215d8d52cbf3aea017e8c04 IN  0x1111111254fb6c44bac0bed2854e76f90643097d249.22 MATIC0.0259832
0x4a49f2215223a71258717fd72b5246281b6fd5a25e2aafaa6888ec2cdca29e320x7c025200219680352021-11-30 8:52:5014 mins ago0x045156f9e6b1c39583c8d51da6336f2cf255d76f IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.1462481
0x2b1313ddbf4060606c7d276b131911c31f8feabb658553923da99d4e378a11460x7c025200219680342021-11-30 8:52:4814 mins ago0x75a2d1eb71e95ff942ee5d1036cab0a79f3ee78f IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.0634677
0x94e9307499d236cf485cb668428030bb74a828b3cb9bba550435e978b726c1b90x7c025200219680322021-11-30 8:52:4414 mins ago0xc89048d9e96f16b3e4a5e9f84caea67517bdb411 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.262584278
0x4feab7d5c1566d9b123b2eaaee6e3bc984a4582d50bd8fa747a898bd13ff4d7e0x7c025200219680292021-11-30 8:52:3814 mins ago0x2799f2cff4f607462d052f0d33c1d1671674f32c IN  0x1111111254fb6c44bac0bed2854e76f90643097d140 MATIC0.1616694
0x1bd7eab356f6df74f57bfed6885d73128de7b6c8d664ad72624a7f3b161c1fec0x7c025200219680232021-11-30 8:52:2314 mins ago0x2f94a1a826748e13b854d353a56bb6af0473f666 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.22151112
0x798bdd1154f075876f975491fc3a47758a872444a39304d7aa1b8f381c60071a0x7c025200219680192021-11-30 8:52:1514 mins ago0x7dd471be4b86a6a89c14cebc9ab9d3dfef8fccc1 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.0270001
0xa12a73fe439693488b8a7dc2b20991e34dbfe2632045636dc613dbc00eac9f850x7c025200219680192021-11-30 8:52:1514 mins ago0x2f94a1a826748e13b854d353a56bb6af0473f666 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.20292312
0xae8f0fa0ec6e5b3b785927bf052c9597cbdcf6a1e8385a99782cf0bb29cf4ccd0x7c025200219680192021-11-30 8:52:1514 mins ago0x5dc84530c8114a64a90ac78c3eb9ca03c149bf7e IN  0x1111111254fb6c44bac0bed2854e76f90643097d7 MATIC0.030787119
0x000dec01eb42adfcf98e1cf4327532e7e9d8a0b1b3ba9965efa771392c84f4d90x7c025200219680182021-11-30 8:52:1314 mins ago0x2f94a1a826748e13b854d353a56bb6af0473f666 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.2215776
0xd101b5740255c2186820956922cf723f0273fbe068e60c2aea9b978267870d280x7c025200219680112021-11-30 8:51:5914 mins ago0x2f94a1a826748e13b854d353a56bb6af0473f666 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.29185752
0x8de01fd7ec121d55e4ba550dac1bffd284e36bcc960c601abe67564292aa55310x7c025200219680102021-11-30 8:51:5714 mins ago0x5dc84530c8114a64a90ac78c3eb9ca03c149bf7e IN  0x1111111254fb6c44bac0bed2854e76f90643097d9 MATIC0.025681342
0xc78ee48a3e4f00cd01e0c6fc8a42c12fcbe3e146c57b0c78ae3012b6b7bb1c210x7c025200219680082021-11-30 8:51:5315 mins ago0x2f94a1a826748e13b854d353a56bb6af0473f666 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.23594244
0x590b2c9068048fc29539658f598c15dea2b32b12afcb17016a4d567f6fc77b620x7c025200219680042021-11-30 8:51:4515 mins ago0xb451ad321c08ebd6c293634c94f19b29afd40e1d IN  0x1111111254fb6c44bac0bed2854e76f90643097d24.610301555 MATIC0.02814264
0xf704bb1eb65a44df90dc283edaf6c22087b30bfec06c2418bb3afafa76bcd8a80x7c025200219680032021-11-30 8:51:4315 mins ago0x5dc84530c8114a64a90ac78c3eb9ca03c149bf7e IN  0x1111111254fb6c44bac0bed2854e76f90643097d8 MATIC0.023357184
0xe7d8a68f04ba2f16da4cea91cdec6bacee3b4b3ee0918ceff014838d008762da0x7c025200219680002021-11-30 8:51:3715 mins ago0x2a0aa83c1fd438227cfa88ee8681960d95f5560d IN  0x1111111254fb6c44bac0bed2854e76f90643097d0 MATIC0.02164401
0xf1ca774b9b96d09c7b8bc4a3fb865b96f9d1520bae5b433d0dd28b2e403244a20x7c025200219680002021-11-30 8:51:3715 mins ago0xea7c99eae555c7c958d43a618ddeedebc5fd3874 IN  0x1111111254fb6c44bac0bed2854e76f90643097d0.05 MATIC0.0292310532
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x557b7f976d064ad066ad993187c30e9157cc084444764bfef5e4fc4b42f5ff8221968432- 0x1111111254fb6c44bac0bed2854e76f90643097d 0x2ec255797fef7669fa243509b7a599121148ffba6 MATIC
0x557b7f976d064ad066ad993187c30e9157cc084444764bfef5e4fc4b42f5ff8221968432- 0xc590175e458b83680867afd273527ff58f74c02b 0x1111111254fb6c44bac0bed2854e76f90643097d6 MATIC
0xaa6401d7c515f26bae71c94251aa1cb5e002d0091499034031a8a4b6af03cb1b21968428- 0x1111111254fb6c44bac0bed2854e76f90643097d0x253762444e93977f6f7ee00e33fabfd459c14d3959.024304552402471802 MATIC
0xaa6401d7c515f26bae71c94251aa1cb5e002d0091499034031a8a4b6af03cb1b21968428- 0x2ec255797fef7669fa243509b7a599121148ffba 0x1111111254fb6c44bac0bed2854e76f90643097d59.024304552402471802 MATIC
0x0d9b292c7f4b31a69107912ae634ba89f16b6d2836252fa85a012f48af18951121968421- 0x1111111254fb6c44bac0bed2854e76f90643097d 0xc590175e458b83680867afd273527ff58f74c02b10.876967698708032248 MATIC
0x0d9b292c7f4b31a69107912ae634ba89f16b6d2836252fa85a012f48af18951121968421- 0x2ec255797fef7669fa243509b7a599121148ffba 0x1111111254fb6c44bac0bed2854e76f90643097d10.876967698708032248 MATIC
0xb845f61d5c59f4f78c93edbdf173ec17e2ea561f225f521134d926b9d6dcf40421968419- 0x1111111254fb6c44bac0bed2854e76f90643097d 0x2ec255797fef7669fa243509b7a599121148ffba49.5625 MATIC
0xb845f61d5c59f4f78c93edbdf173ec17e2ea561f225f521134d926b9d6dcf40421968419- 0xc590175e458b83680867afd273527ff58f74c02b 0x1111111254fb6c44bac0bed2854e76f90643097d49.5625 MATIC
0x607142742fa077a5d0897023b6c517e1b5427e0b80f37f8ebdbacefa9ef5132221968417- 0x1111111254fb6c44bac0bed2854e76f90643097d 0x2ec255797fef7669fa243509b7a599121148ffba21.34 MATIC
0x607142742fa077a5d0897023b6c517e1b5427e0b80f37f8ebdbacefa9ef5132221968417- 0xc590175e458b83680867afd273527ff58f74c02b 0x1111111254fb6c44bac0bed2854e76f90643097d21.34 MATIC
0xd7bc5a9d97d22913ea676a09354113626711fffea6e86a6c189e62a7153a109f21968416- 0x2ec255797fef7669fa243509b7a599121148ffba 0x1111111254fb6c44bac0bed2854e76f90643097d97.731340341850734072 MATIC
0xa1381b4bea61108e9ddf139fa8365674d597f192f0445a9ae6a264b13c16fce921968414- 0x1111111254fb6c44bac0bed2854e76f90643097d0xac77071057411e56e8d6e4cd432e90125badf75335.733455967214155375 MATIC
0xa1381b4bea61108e9ddf139fa8365674d597f192f0445a9ae6a264b13c16fce921968414- 0x2ec255797fef7669fa243509b7a599121148ffba 0x1111111254fb6c44bac0bed2854e76f90643097d35.733455967214155375 MATIC
0x9d830a0132ad6e646c93635d59d462a11cdaa9c0b837a04a85cac0a405b0b43721968406- 0x1111111254fb6c44bac0bed2854e76f90643097d 0x2ec255797fef7669fa243509b7a599121148ffba11 MATIC
0x9d830a0132ad6e646c93635d59d462a11cdaa9c0b837a04a85cac0a405b0b43721968406- 0xc590175e458b83680867afd273527ff58f74c02b 0x1111111254fb6c44bac0bed2854e76f90643097d11 MATIC
0x2b1cb94cbba62762762e8269441e6dbf0286e63e7ca36218770457386cc7ac3321968402- 0x1111111254fb6c44bac0bed2854e76f90643097d 0xc590175e458b83680867afd273527ff58f74c02b23.105581315108359049 MATIC
0x2b1cb94cbba62762762e8269441e6dbf0286e63e7ca36218770457386cc7ac3321968402- 0x2ec255797fef7669fa243509b7a599121148ffba 0x1111111254fb6c44bac0bed2854e76f90643097d23.105581315108359049 MATIC
0xa3e85f4255564d9a91f28109e018f1776b332fae52716bae6355eb8e87daf59621968398- 0x1111111254fb6c44bac0bed2854e76f90643097d0x2a0009db2e33ac9abe64eb8bdee6b26706cff9e20.9 MATIC
0xa3e85f4255564d9a91f28109e018f1776b332fae52716bae6355eb8e87daf59621968398- 0x2ec255797fef7669fa243509b7a599121148ffba 0x1111111254fb6c44bac0bed2854e76f90643097d0.9 MATIC
0x02d7880dc7d46fdf11855c9c6a4b601ae52dd32154b5420209d9fe0d6a557ca921968398- 0x1111111254fb6c44bac0bed2854e76f90643097d 0x2ec255797fef7669fa243509b7a599121148ffba13 MATIC
0x02d7880dc7d46fdf11855c9c6a4b601ae52dd32154b5420209d9fe0d6a557ca921968398- 0xc590175e458b83680867afd273527ff58f74c02b 0x1111111254fb6c44bac0bed2854e76f90643097d13 MATIC
0xa06fe12431555ec71b8df4a4c6acdfa48971f2bcd46b863ab244f3aa7ac72eea21968397- 0x1111111254fb6c44bac0bed2854e76f90643097d0x19f82dcd8d04dad35ffbe823249df94099523ba315.882366061357763794 MATIC
0xa06fe12431555ec71b8df4a4c6acdfa48971f2bcd46b863ab244f3aa7ac72eea21968397- 0x2ec255797fef7669fa243509b7a599121148ffba 0x1111111254fb6c44bac0bed2854e76f90643097d15.882366061357763794 MATIC
0x16b7926b4e3dfbfeb2fa3fe99a10b11424d954193880cd0fecc3ce1bd50e391621968397- 0x1111111254fb6c44bac0bed2854e76f90643097d 0x2ec255797fef7669fa243509b7a599121148ffba10 MATIC
0x66c64ada906cabd6f56d48302dcf7f1e5da1db5eb6f66a720ac737d73896d08821968397- 0x1111111254fb6c44bac0bed2854e76f90643097d 0x2ec255797fef7669fa243509b7a599121148ffba10 MATIC
[ 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 polygonscan.com 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 = 0x0000000000000000000000000d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270;
    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 Security Audit

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":[{"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":"discountedSwap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"gasLeft","type":"uint256"},{"internalType":"uint256","name":"chiSpent","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"}],"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"}]

6101606040523480156200001257600080fd5b5060405162004fa338038062004fa38339810160408190526200003591620001a4565b80816040518060400160405280600981526020016831696e63682052465160b81b815250604051806040016040528060018152602001601960f91b8152506000620000856200015760201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350815160208084019190912082519183019190912060c082905260e08190527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001186200015b565b60a052620001288184846200015f565b6080526101005250505050606090811b6001600160601b03199081166101205291901b16610140525062000200565b3390565b4690565b60008383836200016e6200015b565b3060405160200162000185959493929190620001d4565b6040516020818303038152906040528051906020012090509392505050565b600060208284031215620001b6578081fd5b81516001600160a01b0381168114620001cd578182fd5b9392505050565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b60805160a05160c05160e051610100516101205160601c6101405160601c614d3062000273600039806117ee52806118b1528061198a5280611a275280611ae0525080611d305280611f155250806125625250806125a45250806125835250806125095250806125395250614d306000f3fe6080604052600436106101635760003560e01c8063825caba1116100c0578063bc80f1a811610074578063e449022e11610059578063e449022e1461038d578063f2fde38b146103a0578063fa461e33146103c0576101ad565b8063bc80f1a814610367578063d0a3b6651461037a576101ad565b80638da5cb5b116100a55780638da5cb5b14610312578063a1251d7514610334578063baba585514610354576101ad565b8063825caba1146102dd57806383197ef0146102fd576101ad565b806356f1612411610117578063715018a6116100fc578063715018a61461029557806378e3214f146102aa5780637c025200146102ca576101ad565b806356f16124146102535780636c4a483e14610273576101ad565b80632e95b6c8116101485780632e95b6c8146101fd5780633644e515146102105780634cc4a27b14610225576101ad565b806306bf53d0146101b25780632521b930146101dd576101ad565b366101ad57333214156101ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906145b4565b60405180910390fd5b005b600080fd5b3480156101be57600080fd5b506101c76103e0565b6040516101d491906140a8565b60405180910390f35b3480156101e957600080fd5b506101c76101f8366004613855565b610404565b6101c761020b366004613a98565b61042b565b34801561021c57600080fd5b506101c761097c565b34801561023157600080fd5b50610245610240366004613c8e565b61098c565b6040516101d4929190614280565b34801561025f57600080fd5b506101c761026e366004613962565b6109bd565b6102866102813660046139ed565b6109f5565b6040516101d493929190614bcd565b3480156102a157600080fd5b506101ab610d1f565b3480156102b657600080fd5b506101ab6102c5366004613962565b610e01565b6102456102d83660046139ed565b610e99565b3480156102e957600080fd5b506101ab6102f8366004613d18565b611363565b34801561030957600080fd5b506101ab61139d565b34801561031e57600080fd5b50610327611413565b6040516101d491906140b1565b34801561034057600080fd5b506101c761034f366004613aaf565b61142f565b610245610362366004613c11565b611455565b6101c76103753660046138fa565b611c1b565b610245610388366004613baa565b611faa565b6101c761039b366004613d48565b611fc9565b3480156103ac57600080fd5b506101ab6103bb366004613839565b611fe3565b3480156103cc57600080fd5b506101ab6103db366004613b65565b612130565b7f74ab4f0cde46aaf927859983f7d04002116dd057d4c4941f6dbfb775c3e31f4581565b600061041188848461234b565b61041e8988888888611c1b565b9998505050505050505050565b6000610596565b3d6000803e3d6000fd5b7f08c379a0000000000000000000000000000000000000000000000000000000006000527c200000000000000000000000000000000000000000000000000000000060205280604052816000fd5b60007f0902f1ac000000000000000000000000000000000000000000000000000000008252604082600484875afa6104c4576104c4610432565b60603d146104f4576104f460597c1472657365727665732063616c6c206661696c6564000000000000000061043c565b81516020830151861561050357905b7f022c0d9f000000000000000000000000000000000000000000000000000000008452878502633b9aca0092909202820191020490508480156105525781600484015260006024840152610560565b600060048401528160248401525b50866044830152608060648301526000608483015260008060a4846000885af161058c5761058c610432565b9695505050505050565b60405160c0810160405260046064350180356020820191508060200282019050813589600081146106565734156105ef576105ef60557c11696e76616c6964206d73672e76616c7565000000000000000000000061043c565b7f23b872dd00000000000000000000000000000000000000000000000000000000855233600486015273ffffffffffffffffffffffffffffffffffffffff8216602486015289604486015260008060648760008f5af161065157610651610432565b610742565b348a146106855761068560557c11696e76616c6964206d73672e76616c7565000000000000000000000061043c565b7fd0e30db00000000000000000000000000000000000000000000000000000000085526000806004878d730d500b1d8e8ef31e21c99d1db9a6444d3adf12705af16106d2576106d2610432565b7fa9059cbb00000000000000000000000000000000000000000000000000000000855273ffffffffffffffffffffffffffffffffffffffff821660048601528960248601526000806044876000730d500b1d8e8ef31e21c99d1db9a6444d3adf12705af161074257610742610432565b50889450602083015b828110156107da5780356107ce73ffffffffffffffffffffffffffffffffffffffff821677ffffffff0000000000000000000000000000000000000000851660a01c7f8000000000000000000000000000000000000000000000000000000000000000861673ffffffffffffffffffffffffffffffffffffffff87168b8b61048a565b9650915060200161074b565b507f4000000000000000000000000000000000000000000000000000000000000000811680156108d8576108673077ffffffff0000000000000000000000000000000000000000841660a01c7f8000000000000000000000000000000000000000000000000000000000000000851673ffffffffffffffffffffffffffffffffffffffff86168a8a61048a565b95507f2e1a7d4d0000000000000000000000000000000000000000000000000000000085528560048601526000806024876000730d500b1d8e8ef31e21c99d1db9a6444d3adf12705af16108bd576108bd610432565b60008060008089335af16108d3576108d3610432565b61093e565b61093b3377ffffffff0000000000000000000000000000000000000000841660a01c7f8000000000000000000000000000000000000000000000000000000000000000851673ffffffffffffffffffffffffffffffffffffffff86168a8a61048a565b95505b50505050508381101561097357610973605a7c164d696e2072657475726e206e6f74207265616368656400000000000061043c565b95945050505050565b6000610986612505565b90505b90565b60008061099e8a60400151858561234b565b6109ac8a8a8a8a8a8a611455565b915091509850989650505050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602090815260408083208484529091529020545b92915050565b6000806000805a9050600060c088013560081615610a14575033610a5a565b60c088013560101615610a28575032610a5a565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614781565b6000803073ffffffffffffffffffffffffffffffffffffffff16637c02520060e01b8c8c8c8c604051602401610a9394939291906142ac565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051610b1c9190613f06565b600060405180830381855af49150503d8060008114610b57576040519150601f19603f3d011682016040523d82523d6000602084013e610b5c565b606091505b50915091508115610b835780806020019051810190610b7b9190613b42565b509650610bb7565b3415610bb75760405133903480156108fc02916000818181858888f19350505050158015610bb5573d6000803e3d6000fd5b505b6000808c73ffffffffffffffffffffffffffffffffffffffff16631d97832e610be15a89906125cf565b8e60c0013560003690506040518463ffffffff1660e01b8152600401610c0993929190614bcd565b604080518083038186803b158015610c2057600080fd5b505afa158015610c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c589190613a6b565b90925090508015610d0c576040517f079d229f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063079d229f90610cb79088908590600401614191565b602060405180830381600087803b158015610cd157600080fd5b505af1158015610ce5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d099190613d30565b96505b5a97505050505050509450945094915050565b610d27612611565b73ffffffffffffffffffffffffffffffffffffffff16610d45611413565b73ffffffffffffffffffffffffffffffffffffffff1614610d92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906148b8565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610e09612611565b73ffffffffffffffffffffffffffffffffffffffff16610e27611413565b73ffffffffffffffffffffffffffffffffffffffff1614610e74576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906148b8565b610e9573ffffffffffffffffffffffffffffffffffffffff83163383612615565b5050565b60008060008560a0013511610eda576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614824565b82610f11576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614b96565b60c08501356000610f256020880188613839565b90506000610f396040890160208a01613839565b90506000610f5c8373ffffffffffffffffffffffffffffffffffffffff16612693565b90506002841615610fb65780610f73576000610f79565b88608001355b3411610fb1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906145eb565b611000565b80610fc2576000610fc8565b88608001355b3414611000576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906145eb565b806110525761101b8361101660e08c018c614be3565b61234b565b6110523361102f60608c0160408d01613839565b73ffffffffffffffffffffffffffffffffffffffff8616919060808d01356126e9565b60405160009061108e907f2636f7f80000000000000000000000000000000000000000000000000000000090839033908d908d90602001613e39565b60405160208183030381529060405290506000808c73ffffffffffffffffffffffffffffffffffffffff1634846040516110c89190613f06565b60006040518083038185875af1925050503d8060008114611105576040519150601f19603f3d011682016040523d82523d6000602084013e61110a565b606091505b50915091508161118657611153816040518060400160405280601281526020017f63616c6c4279746573206661696c65643a200000000000000000000000000000815250612792565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2919061438c565b50505060808901356111ae73ffffffffffffffffffffffffffffffffffffffff84163061290e565b9650600185161561126a5760006111db73ffffffffffffffffffffffffffffffffffffffff86163061290e565b90508015611210576111ed82826125cf565b915061121073ffffffffffffffffffffffffffffffffffffffff86163383612615565b61121e60a08c0135836129e5565b61122c8960808e01356129e5565b1015611264576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906147ed565b506112a8565b8960a001358710156112a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906147ed565b6000806112bb60808d0160608e01613839565b73ffffffffffffffffffffffffffffffffffffffff16146112eb576112e660808c0160608d01613839565b6112ed565b335b905061131073ffffffffffffffffffffffffffffffffffffffff8516828a612615565b7fd6d4f5681c246c9f42c203e287975af1601f8df8035a9251f79aab5c8f09e2f833868684868d604051611349969594939291906140d2565b60405180910390a15a965050505050505094509492505050565b336000908152600160208181526040808420600886901c66ffffffffffffff168552909152909120805460ff9093169190911b9091179055565b6113a5612611565b73ffffffffffffffffffffffffffffffffffffffff166113c3611413565b73ffffffffffffffffffffffffffffffffffffffff1614611410576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906148b8565b33ff5b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600061143c88848461234b565b611449888888888861042b565b98975050505050505050565b606086015186517f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116808952600092839290917f8000000000000000000000000000000000000000000000000000000000000000821615159160401c67ffffffffffffffff168015806114c95750804211155b6114ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906144b2565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020818152604080842066ffffffffffffff600888901c1680865292819052932054909260ff86169290921b919080831615611585576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614b28565b6000938452602091909152604090922091179055505060a08a015160c08b0151871580156115b1575088155b156115c1578198508097506116cd565b876116475781891115611600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a29061440d565b6116408261163a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201611634858e6129e5565b90612a40565b90612a7f565b97506116cd565b8861169b5780881115611686576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906143d6565b6116948161163a848b6129e5565b98506116cd565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614a5d565b50506000871180156116df5750600086115b611715576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906149c9565b60808a015173ffffffffffffffffffffffffffffffffffffffff161580611755575060808a015173ffffffffffffffffffffffffffffffffffffffff1633145b61178b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a29061495b565b60006117de7f74ab4f0cde46aaf927859983f7d04002116dd057d4c4941f6dbfb775c3e31f458c6040516020016117c392919061420a565b60405160208183030381529060405280519060200120612acb565b90506117ec83828c8c612b04565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168b6020015173ffffffffffffffffffffffffffffffffffffffff161480156118485750815b156119615760208b01516118749073ffffffffffffffffffffffffffffffffffffffff1684308b6126e9565b6040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d906118e6908b906004016140a8565b600060405180830381600087803b15801561190057600080fd5b505af1158015611914573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff891692508a156108fc0291508a906000818181858888f1935050505015801561195b573d6000803e3d6000fd5b50611988565b60208b01516119889073ffffffffffffffffffffffffffffffffffffffff1684888b6126e9565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168b6040015173ffffffffffffffffffffffffffffffffffffffff161480156119e75750600034115b15611b7257863414611a25576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614444565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b158015611a8d57600080fd5b505af1158015611aa1573d6000803e3d6000fd5b50506040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb9250611b1a915086908b90600401614191565b602060405180830381600087803b158015611b3457600080fd5b505af1158015611b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6c919061398d565b50611bd1565b3415611baa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614444565b60408b0151611bd19073ffffffffffffffffffffffffffffffffffffffff1633858a6126e9565b7fc3b639f02b125bfa160e50739b8c44eb2d1b6908e2b6d5925c6d770f2ca781278189604051611c02929190614280565b60405180910390a1509599949850939650505050505050565b60008180611c55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a29061439f565b8591507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81016000807f400000000000000000000000000000000000000000000000000000000000000087878381611ca957fe5b90506020020135161190506000807f2000000000000000000000000000000000000000000000000000000000000000888886818110611ce457fe5b90506020020135161190508115611db457883414611d2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614a94565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08a6040518263ffffffff1660e01b81526004016000604051808303818588803b158015611d9657600080fd5b505af1158015611daa573d6000803e3d6000fd5b5050505050611dec565b3415611dec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a29061447b565b6001841115611e7a57611e203083611e045733611e06565b305b89896000818110611e1357fe5b9050602002013588612d44565b945060015b83811015611e5557611e4b30308a8a85818110611e3e57fe5b9050602002013589612d44565b9550600101611e25565b50611e7381611e64578a611e66565b305b30898987818110611e1357fe5b9450611e98565b611e9581611e88578a611e8a565b305b83611e045733611e06565b94505b87851015611ed2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614b5f565b8015611f9d576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d90611f4a9088906004016140a8565b600060405180830381600087803b158015611f6457600080fd5b505af1158015611f78573d6000803e3d6000fd5b50611f9d9250505073ffffffffffffffffffffffffffffffffffffffff8b1686612f26565b5050505095945050505050565b600080611fbb878787878733611455565b915091509550959350505050565b6000611fd83386868686611c1b565b90505b949350505050565b611feb612611565b73ffffffffffffffffffffffffffffffffffffffff16612009611413565b73ffffffffffffffffffffffffffffffffffffffff1614612056576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906148b8565b73ffffffffffffffffffffffffffffffffffffffff81166120a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906144e9565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000807fff1f98431c8ad98523631ae4a59f267346ea31f98400000000000000000000007fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5482604051602081017f0dfe1681d21220a7ddca3f4300000000000000000000000000000000000000008252602081600484335afa6121b5576121b5610432565b805196506020816004808501335afa6121d0576121d0610432565b80519550602081600460088501335afa6121ec576121ec610432565b51848252601582018781526035830187815260558085019390935260608220909152849052812073ffffffffffffffffffffffffffffffffffffffff163381146122585761225860547c10554e495633523a2062616420706f6f6c00000000000000000000000061043c565b5060206084823751905060008913156122d15773ffffffffffffffffffffffffffffffffffffffff81163014156122af576122aa73ffffffffffffffffffffffffffffffffffffffff8616338b613003565b6122d1565b6122d173ffffffffffffffffffffffffffffffffffffffff861682338c6126e9565b60008813156123405773ffffffffffffffffffffffffffffffffffffffff811630141561231e5761231973ffffffffffffffffffffffffffffffffffffffff8516338a613003565b612340565b61234073ffffffffffffffffffffffffffffffffffffffff851682338b6126e9565b505050505050505050565b8015612500576000606060e08314156124305760405173ffffffffffffffffffffffffffffffffffffffff8616906123ab907fd505accf000000000000000000000000000000000000000000000000000000009087908790602001613eca565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526123e391613f06565b6000604051808303816000865af19150503d8060008114612420576040519150601f19603f3d011682016040523d82523d6000602084013e612425565b606091505b5090925090506124b9565b6101008314156124875760405173ffffffffffffffffffffffffffffffffffffffff8616906123ab907f8fcbaf0c000000000000000000000000000000000000000000000000000000009087908790602001613eca565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906148ed565b816124fd57611153816040518060400160405280600f81526020017f5065726d6974206661696c65643a200000000000000000000000000000000000815250612792565b50505b505050565b60007f0000000000000000000000000000000000000000000000000000000000000000612530613022565b141561255d57507f0000000000000000000000000000000000000000000000000000000000000000610989565b6125c87f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000613026565b9050610989565b60008282111561260b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614622565b50900390565b3390565b80156125005761262483612693565b156126725760405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f1935050505015801561266c573d6000803e3d6000fd5b50612500565b61250073ffffffffffffffffffffffffffffffffffffffff84168383613003565b600073ffffffffffffffffffffffffffffffffffffffff821615806126e1575073ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b90505b919050565b61278c846323b872dd60e01b85858560405160240161270a93929190614119565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613067565b50505050565b60208201516060907f08c379a0000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000082161480156127ed57506044845110155b15612864576060604485019050805160440185511015612839576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614924565b838160405160200161284c929190614026565b604051602081830303815290604052925050506109ef565b7f4e487b71000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000082161480156128b6575083516024145b156128db576024840151836128ca8261311d565b60405160200161284c929190613f22565b826128e585613143565b6040516020016128f6929190613fa4565b60405160208183030381529060405291505092915050565b600061291983612693565b1561293c575073ffffffffffffffffffffffffffffffffffffffff8116316109ef565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a082319061298e9085906004016140b1565b60206040518083038186803b1580156129a657600080fd5b505afa1580156129ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129de9190613d30565b90506109ef565b6000826129f4575060006109ef565b82820282848281612a0157fe5b0414612a39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a29061485b565b9392505050565b600082820183811015612a39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614546565b6000808211612aba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a29061474a565b818381612ac357fe5b049392505050565b6000612ad5612505565b82604051602001612ae7929190614072565b604051602081830303815290604052805190602001209050919050565b60418114801590612b16575060408114155b80612b8c57508373ffffffffffffffffffffffffffffffffffffffff16612b738484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061337f92505050565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561278c576000808573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b868686604051602401612bc8939291906141f0565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612c519190613f06565b600060405180830381855afa9150503d8060008114612c8c576040519150601f19603f3d011682016040523d82523d6000602084013e612c91565b606091505b5091509150818015612ca4575080516020145b8015612d06575080517f1626ba7e0000000000000000000000000000000000000000000000000000000090612ce290830160209081019084016139ad565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b612d3c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a29061457d565b505050505050565b60007f80000000000000000000000000000000000000000000000000000000000000008316158015612e485760008473ffffffffffffffffffffffffffffffffffffffff1663128acb088884612d99886133e3565b6401000276a48b604051602001612db091906140b1565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612ddf95949392919061414a565b6040805180830381600087803b158015612df857600080fd5b505af1158015612e0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e309190613b42565b915050612e3f81600003613442565b92505050611fdb565b60008473ffffffffffffffffffffffffffffffffffffffff1663128acb088884612e71886133e3565b73fffd8963efd1fc6a506488495d951d5263988d258b604051602001612e9791906140b1565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612ec695949392919061414a565b6040805180830381600087803b158015612edf57600080fd5b505af1158015612ef3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f179190613b42565b509050612e3f81600003613442565b80471015612f60576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906146b6565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612f8690610989565b60006040518083038185875af1925050503d8060008114612fc3576040519150601f19603f3d011682016040523d82523d6000602084013e612fc8565b606091505b5050905080612500576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614659565b6125008363a9059cbb60e01b848460405160240161270a929190614191565b4690565b6000838383613033613022565b306040516020016130489594939291906141b7565b6040516020818303038152906040528051906020012090509392505050565b60006130c9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661347e9092919063ffffffff16565b80519091501561250057808060200190518101906130e7919061398d565b612500576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614acb565b60606126e18260405160200161313391906140a8565b6040516020818303038152906040525b80516060907f30313233343536373839616263646566000000000000000000000000000000009060009060029081020167ffffffffffffffff8111801561318957600080fd5b506040519080825280601f01601f1916602001820160405280156131b4576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106131e557fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061324257fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b84518110156133775782600486838151811061328c57fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016901c60f81c601081106132c257fe5b1a60f81b8282600202600201815181106132d857fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508285828151811061331457fe5b60209101015160f81c600f166010811061332a57fe5b1a60f81b82826002026003018151811061334057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101613274565b509392505050565b60008151604114156133b35760208201516040830151606084015160001a6133a98682858561348d565b93505050506109ef565b8151604014156133db57602082015160408301516133d285838361357b565b925050506109ef565b5060006109ef565b60007f8000000000000000000000000000000000000000000000000000000000000000821061343e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614a00565b5090565b60008082121561343e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906147b8565b6060611fdb84846000856135b4565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156134bf57506000611fdb565b8360ff16601b141580156134d757508360ff16601c14155b156134e457506000611fdb565b600060018686868660405160008152602001604052604051613509949392919061428e565b6020604051602081039080840390855afa15801561352b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116611fd8576000915050611fdb565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b0161058c8682878561348d565b6060824710156135f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2906146ed565b6135f9856136b5565b61362f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a290614992565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516136589190613f06565b60006040518083038185875af1925050503d8060008114613695576040519150601f19603f3d011682016040523d82523d6000602084013e61369a565b606091505b50915091506136aa8282866136bb565b979650505050505050565b3b151590565b606083156136ca575081612a39565b8251156136da5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101a2919061438c565b80356126e481614cd5565b60008083601f84011261372a578182fd5b50813567ffffffffffffffff811115613741578182fd5b602083019150836020808302850101111561375b57600080fd5b9250929050565b60008083601f840112613773578182fd5b50813567ffffffffffffffff81111561378a578182fd5b60208301915083602082850101111561375b57600080fd5b600060e082840312156137b3578081fd5b60405160e0810181811067ffffffffffffffff821117156137d057fe5b604052823581529050806137e66020840161370e565b60208201526137f76040840161370e565b60408201526138086060840161370e565b60608201526138196080840161370e565b608082015260a083013560a082015260c083013560c08201525092915050565b60006020828403121561384a578081fd5b8135612a3981614cd5565b60008060008060008060008060c0898b031215613870578384fd5b883561387b81614cd5565b9750602089013561388b81614cd5565b96506040890135955060608901359450608089013567ffffffffffffffff808211156138b5578586fd5b6138c18c838d01613719565b909650945060a08b01359150808211156138d9578384fd5b506138e68b828c01613762565b999c989b5096995094979396929594505050565b600080600080600060808688031215613911578081fd5b853561391c81614cd5565b94506020860135935060408601359250606086013567ffffffffffffffff811115613945578182fd5b61395188828901613719565b969995985093965092949392505050565b60008060408385031215613974578182fd5b823561397f81614cd5565b946020939093013593505050565b60006020828403121561399e578081fd5b81518015158114612a39578182fd5b6000602082840312156139be578081fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114612a39578182fd5b60008060008060608587031215613a02578384fd5b8435613a0d81614cd5565b9350602085013567ffffffffffffffff80821115613a29578485fd5b908601906101008289031215613a3d578485fd5b90935060408601359080821115613a52578384fd5b50613a5f87828801613762565b95989497509550505050565b60008060408385031215613a7d578182fd5b8251613a8881614cd5565b6020939093015192949293505050565b600080600080600060808688031215613911578283fd5b600080600080600080600060a0888a031215613ac9578081fd5b8735613ad481614cd5565b96506020880135955060408801359450606088013567ffffffffffffffff80821115613afe578283fd5b613b0a8b838c01613719565b909650945060808a0135915080821115613b22578283fd5b50613b2f8a828b01613762565b989b979a50959850939692959293505050565b60008060408385031215613b54578182fd5b505080516020909101519092909150565b60008060008060608587031215613b7a578182fd5b8435935060208501359250604085013567ffffffffffffffff811115613b9e578283fd5b613a5f87828801613762565b60008060008060006101408688031215613bc2578283fd5b613bcc87876137a2565b945060e086013567ffffffffffffffff811115613be7578384fd5b613bf388828901613762565b96999098509596610100810135966101209091013595509350505050565b6000806000806000806101608789031215613c2a578384fd5b613c3488886137a2565b955060e087013567ffffffffffffffff811115613c4f578485fd5b613c5b89828a01613762565b90965094505061010087013592506101208701359150610140870135613c8081614cd5565b809150509295509295509295565b600080600080600080600080610180898b031215613caa578182fd5b613cb48a8a6137a2565b975060e089013567ffffffffffffffff80821115613cd0578384fd5b613cdc8c838d01613762565b90995097506101008b013596506101208b013595506101408b01359150613d0282614cd5565b9093506101608a013590808211156138d9578384fd5b600060208284031215613d29578081fd5b5035919050565b600060208284031215613d41578081fd5b5051919050565b60008060008060608587031215613d5d578182fd5b8435935060208501359250604085013567ffffffffffffffff811115613d81578283fd5b613a5f87828801613719565b73ffffffffffffffffffffffffffffffffffffffff169052565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b60008151808452613e07816020860160208601614ca9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60007fffffffff00000000000000000000000000000000000000000000000000000000871682527fffffffffffffffffffffffff0000000000000000000000000000000000000000861660048301527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008560601b166010830152828460248401379101602401908152949350505050565b60007fffffffff000000000000000000000000000000000000000000000000000000008516825282846004840137910160040190815292915050565b60008251613f18818460208701614ca9565b9190910192915050565b60008351613f34818460208801614ca9565b7f50616e69632800000000000000000000000000000000000000000000000000009083019081528351613f6e816006840160208801614ca9565b7f290000000000000000000000000000000000000000000000000000000000000060069290910191820152600701949350505050565b60008351613fb6818460208801614ca9565b7f556e6b6e6f776e280000000000000000000000000000000000000000000000009083019081528351613ff0816008840160208801614ca9565b7f290000000000000000000000000000000000000000000000000000000000000060089290910191820152600901949350505050565b60008351614038818460208801614ca9565b7f4572726f722800000000000000000000000000000000000000000000000000009083019081528351613f6e816006840160208801614ca9565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b90815260200190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff96871681529486166020860152928516604085015293166060830152608082019290925260a081019190915260c00190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a060808301526136aa60a0830184613def565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b94855260208501939093526040840191909152606083015273ffffffffffffffffffffffffffffffffffffffff16608082015260a00190565b600084825260406020830152611fd8604083018486613da7565b60006101008201905083825282516020830152602083015173ffffffffffffffffffffffffffffffffffffffff80821660408501528060408601511660608501528060608601511660808501528060808601511660a0850152505060a083015160c083015260c083015160e08301529392505050565b918252602082015260400190565b93845260ff9290921660208401526040830152606082015260800190565b600073ffffffffffffffffffffffffffffffffffffffff86168252606060208301526142e3606083016142de8761370e565b613d8d565b6142ef6020860161370e565b6142fc6080840182613d8d565b506143096040860161370e565b61431660a0840182613d8d565b506143236060860161370e565b61433060c0840182613d8d565b50608085013560e083015261010060a08601358184015260c086013561012084015261435f60e0870187614c46565b8261014086015261437561016086018284613da7565b9250505082810360408401526136aa818587613da7565b600060208252612a396020830184613def565b60208082526013908201527f554e495633523a20656d70747920706f6f6c7300000000000000000000000000604082015260600190565b6020808252601b908201527f4c4f503a2074616b696e6720616d6f756e742065786365656465640000000000604082015260600190565b6020808252601b908201527f4c4f503a206d616b696e6720616d6f756e742065786365656465640000000000604082015260600190565b60208082526014908201527f4c4f503a2077726f6e67206d73672e76616c7565000000000000000000000000604082015260600190565b6020808252601d908201527f554e495633523a206d73672e76616c75652073686f756c642062652030000000604082015260600190565b60208082526012908201527f4c4f503a206f7264657220657870697265640000000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526012908201527f4c4f503a20626164207369676e61747572650000000000000000000000000000604082015260600190565b60208082526014908201527f455448206465706f7369742072656a6563746564000000000000000000000000604082015260600190565b60208082526011908201527f496e76616c6964206d73672e76616c7565000000000000000000000000000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526018908201527f496e636f727265637420434849206275726e20666c6167730000000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f52657475726e20616d6f756e74206973206e6f7420656e6f7567680000000000604082015260600190565b6020808252601a908201527f4d696e2072657475726e2073686f756c64206e6f742062652030000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526013908201527f57726f6e67207065726d6974206c656e67746800000000000000000000000000604082015260600190565b60208082526015908201527f496e76616c69642072657665727420726561736f6e0000000000000000000000604082015260600190565b60208082526012908201527f4c4f503a2070726976617465206f726465720000000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526018908201527f4c4f503a2063616e27742073776170203020616d6f756e740000000000000000604082015260600190565b60208082526028908201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160408201527f6e20696e74323536000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4c4f503a206f6e65206f6620616d6f756e74732073686f756c64206265203000604082015260600190565b60208082526017908201527f554e495633523a2077726f6e67206d73672e76616c7565000000000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526013908201527f4c4f503a20616c72656164792066696c6c656400000000000000000000000000604082015260600190565b60208082526012908201527f554e495633523a206d696e2072657475726e0000000000000000000000000000604082015260600190565b60208082526018908201527f646174612073686f756c64206e6f7420626520656d7074790000000000000000604082015260600190565b9283526020830191909152604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614c17578283fd5b83018035915067ffffffffffffffff821115614c31578283fd5b60200191503681900382131561375b57600080fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614c7a578283fd5b830160208101925035905067ffffffffffffffff811115614c9a57600080fd5b80360383131561375b57600080fd5b60005b83811015614cc4578181015183820152602001614cac565b8381111561278c5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff81168114614cf757600080fd5b5056fea264697066735822122020a946e047c7a2de59c2ba1b988165fbb7762849b887698bb76ae4e1b34f25c464736f6c634300070600330000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270

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

0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270

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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270


Deployed ByteCode Sourcemap

92185:5967:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34823:10;34837:9;34823:23;;34815:56;;;;;;;;;;;;:::i;:::-;;;;;;;;;92185:5967;;;;;56400:218;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;85336:386;;;;;;;;;;-1:-1:-1;85336:386:0;;;;;:::i;:::-;;:::i;67039: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;93758:1332::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;11920:148::-;;;;;;;;;;;;;:::i;97934:126::-;;;;;;;;;;-1:-1:-1;97934:126:0;;;;;:::i;:::-;;:::i;95506:2420::-;;;;;;:::i;:::-;;:::i;57473:144::-;;;;;;;;;;-1:-1:-1;57473:144:0;;;;;:::i;:::-;;:::i;98068:81::-;;;;;;;;;;;;;:::i;11269:87::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;66246:333::-;;;;;;;;;;-1:-1:-1;66246:333:0;;;;;:::i;:::-;;:::i;59706:3613::-;;;;;;:::i;:::-;;:::i;86785:1539::-;;;;;;:::i;:::-;;:::i;57897:358::-;;;;;;:::i;:::-;;:::i;86053:244::-;;;;;;:::i;:::-;;:::i;12223:::-;;;;;;;;;;-1:-1:-1;12223:244:0;;;;;:::i;:::-;;:::i;88376:2841::-;;;;;;;;;;-1:-1:-1;88376:2841:0;;;;;:::i;:::-;;:::i;56400:218::-;56451:167;56400:218;:::o;85336:386::-;85577:20;85610:34;85626:8;85637:6;;85610:7;:34::i;:::-;85662:52;85678:9;85689:6;85697:9;85708:5;;85662:15;:52::i;:::-;85655:59;85336:386;-1:-1:-1;;;;;;;;;85336:386:0:o;67039:6186::-;67253:20;67354:137;;;67414:16;67411:1;67408;67393:38;67459:16;67456:1;67449:27;67507:308;67570:66;67567:1;67560:77;67668:66;67662:4;67655:80;67766:1;67760:4;67753:15;67796:3;67793:1;67786:14;67831:1618;;67942:39;67932:8;67925:57;68059:4;68049:8;68044:3;68034:8;68028:4;68021:5;68010:54;68000:2;;68089:10;;:::i;:::-;68167:4;68149:16;68146:26;68136:2;;68197:90;68282:4;68214:66;68197:90;:::i;:::-;68375:8;68369:15;68438:4;68428:8;68424:19;68418:26;68465:8;68462:2;;;68550:8;68462:2;68789:35;68772:53;;68639:26;;;68737:12;68723:27;;;;68714:37;;68694:18;;68690:62;;-1:-1:-1;68850:8:0;68876:133;;;;69086:3;69079:4;69069:8;69065:19;69058:32;69140:1;69133:4;69123:8;69119:19;69112:30;68843:318;;68876:133;68934:1;68927:4;68917:8;68913:19;68906:30;68986:3;68979:4;68969:8;68965:19;68958:32;68843:318;;69207:3;69200:4;69190:8;69186:19;69179:32;69257:4;69250;69240:8;69236:19;69229:33;69308:1;69301:4;69291:8;69287:19;69280:30;69378:1;69375;69369:4;69359:8;69356:1;69350:4;69343:5;69338:42;69328:2;;69405:10;;:::i;:::-;67906:1543;;;;;;;;:::o;:::-;69487:4;69481:11;69533:4;69523:8;69519:19;69513:4;69506:33;69598:3;69591:4;69578:18;69574:28;69651:11;69638:25;69709:4;69696:11;69692:22;69677:37;;69773:14;69767:4;69763:25;69750:11;69746:43;69728:61;;69831:11;69818:25;69864:8;69891:1;69886:750;;;;70680:11;70677:2;;;70715:90;70800:4;70732:66;70715:90;:::i;:::-;70885:31;70875:8;70868:49;70962:8;70956:3;70946:8;70942:18;70935:36;71030:13;71021:7;71017:27;71010:4;71000:8;70996:19;70989:56;71091:6;71084:4;71074:8;71070:19;71063:35;71170:1;71167;71161:4;71151:8;71148:1;71138:8;71131:5;71126:46;71116:2;;71197:10;;:::i;:::-;69857:1384;;69886:750;69933:11;69925:6;69922:23;69912:2;;69970:90;70055:4;69987:66;69970:90;:::i;:::-;70140:30;70130:8;70123:48;70244:1;70241;70236:3;70226:8;70218:6;70211:5;70204;70199:47;70189:2;;70271:10;;:::i;:::-;70337:32;70327:8;70320:50;70428:13;70419:7;70415:27;70409:3;70399:8;70395:18;70388:55;70489:6;70482:4;70472:8;70468:19;70461:35;70565:1;70562;70556:4;70546:8;70543:1;70536:5;70529;70524:43;70514:2;;70592:10;;:::i;:::-;69857:1384;71273:6;71257:22;;71326:4;71313:11;71309:22;71295:545;71339:14;71336:1;71333:21;71295:545;;;71426:1;71413:15;71464:319;71750:13;71737:11;71733:31;71693:15;71684:7;71680:29;71661:17;71657:53;71620:13;71611:7;71607:27;71570:13;71561:7;71557:27;71522:12;71491:8;71464:319;:::i;:::-;71448:335;-1:-1:-1;71814:11:0;-1:-1:-1;71368:4:0;71361:12;71295:545;;;-1:-1:-1;71876:10:0;71863:24;;71901:353;;;;72311:297;72580:9;72540:15;72531:7;72527:29;72508:17;72504:53;72467:13;72458:7;72454:27;72417:13;72408:7;72404:27;72369:12;72338:8;72311:297;:::i;:::-;72295:313;;72645:31;72635:8;72628:49;72723:12;72716:4;72706:8;72702:19;72695:41;72805:1;72802;72796:4;72786:8;72783:1;72776:5;72769;72764:43;72754:2;;72832:10;;:::i;:::-;72936:1;72933;72930;72927;72913:12;72903:8;72896:5;72891:47;72881:2;;72963:10;;:::i;:::-;71856:1151;;71901:353;71943:296;72212:8;72172:15;72163:7;72159:29;72140:17;72136:53;72099:13;72090:7;72086:27;72049:13;72040:7;72036:27;72001:12;71970:8;71943:296;:::i;:::-;71927:312;;71856:1151;;;;;;73043:9;73029:12;73026:27;73023:2;;;73073:90;73158:4;73090:66;73073:90;:::i;:::-;67295: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;93758:1332::-;93950:20;93972:15;93989:16;94023:18;94044:9;94023:30;-1:-1:-1;94066:17:0;94111:10;;;;92596:6;94111:34;:39;94107:299;;-1:-1:-1;94179:10:0;94107:299;;;94211:10;;;;92657:6;94211:33;:38;94207:199;;-1:-1:-1;94278:9:0;94207:199;;;94360:34;;;;;;;;;;:::i;94207:199::-;94479:12;94493:23;94528:4;94520:26;;94570:18;;;94590:6;94598:4;94604;;94547:62;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94520:90;;;;94547:62;94520:90;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94478:132;;;;94625:7;94621:216;;;94678:10;94667:42;;;;;;;;;;;;:::i;:::-;-1:-1:-1;94649:60:0;-1:-1:-1;94621:216:0;;;94746:9;:13;94742:84;;94780:30;;:10;;94800:9;94780:30;;;;;;;;;94800:9;94780:10;:30;;;;;;;;;;;;;;;;;;;;;94742:84;94850:8;94860:14;94878:6;:19;;;94898:25;94913:9;94898:10;;:14;:25::i;:::-;94925:4;:10;;;94937:8;;:15;;94878:75;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;94849:104;;-1:-1:-1;94849:104:0;-1:-1:-1;94968:10:0;;94964:89;;95006:35;;;;;:16;;;;;;:35;;95023:9;;95034:6;;95006:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;94995:46;;94964:89;95073:9;95063:19;;93758:1332;;;;;;;;;;;;;;:::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;97934:126::-;11500:12;:10;:12::i;:::-;11489:23;;:7;:5;:7::i;:::-;:23;;;11481:68;;;;;;;;;;;;:::i;:::-;98015:37:::1;:17;::::0;::::1;98033:10;98045:6:::0;98015:17:::1;:37::i;:::-;97934:126:::0;;:::o;95506:2420::-;95688:20;95710:15;95774:1;95751:4;:20;;;:24;95743:63;;;;;;;;;;;;:::i;:::-;95825:15;95817:52;;;;;;;;;;;;:::i;:::-;95898:10;;;;95882:13;95937;;;;95898:4;95937:13;:::i;:::-;95919:31;-1:-1:-1;95961:15:0;95979:13;;;;;;;;:::i;:::-;95961:31;;96005:11;96019:16;:8;:14;;;:16::i;:::-;96005:30;-1:-1:-1;92534:6:0;96050:27;;:32;96046:235;;96120:6;:24;;96143:1;96120:24;;;96129:4;:11;;;96120:24;96107:9;:38;96099:68;;;;;;;;;;;;:::i;:::-;96046:235;;;96222:6;:24;;96245:1;96222:24;;;96231:4;:11;;;96222:24;96208:9;:39;96200:69;;;;;;;;;;;;:::i;:::-;96298:6;96293:162;;96321:39;96337:8;96348:11;;;;:4;:11;:::i;:::-;96321:7;:39::i;:::-;96375:68;96401:10;96413:16;;;;;;;;:::i;:::-;96375:25;;;;:68;96431:11;;;;96375:25;:68::i;:::-;96506:73;;96482:21;;96506:73;;96523:25;;96482:21;;96562:10;;96574:4;;;;96506:73;;;:::i;:::-;;;;;;;;;;;;;96482:97;;96659:12;96673:19;96704:6;96696:20;;96724:9;96735:8;96696:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96658:86;;;;96764:7;96759:111;;96799:54;96824:6;96799:54;;;;;;;;;;;;;;;;;:24;:54::i;:::-;96792:62;;;;;;;;;;;:::i;96759:111::-;-1:-1:-1;;;96915:11:0;;;;96952:36;:21;;;96982:4;96952:21;:36::i;:::-;96937:51;-1:-1:-1;92474:6:0;97005:21;;:26;97001:535;;97048:21;97072:36;:21;;;97102:4;97072:21;:36::i;:::-;97048:60;-1:-1:-1;97127:17:0;;97123:168;;97179:30;:11;97195:13;97179:15;:30::i;:::-;97165:44;-1:-1:-1;97228:47:0;:20;;;97249:10;97261:13;97228:20;:47::i;:::-;97346:37;:20;;;;97371:11;97346:24;:37::i;:::-;97313:29;:12;97330:11;;;;97313:16;:29::i;:::-;:70;;97305:110;;;;;;;;;;;;:::i;:::-;97001:535;;;;97472:4;:20;;;97456:12;:36;;97448:76;;;;;;;;;;;;:::i;:::-;97548:27;;97579:16;;;;;;;;:::i;:::-;:30;;;97578:64;;97626:16;;;;;;;;:::i;:::-;97578:64;;;97613:10;97578:64;97548:94;-1:-1:-1;97653:47:0;:20;;;97548:94;97687:12;97653:20;:47::i;:::-;97718:168;97740:10;97765:8;97788;97811:11;97837;97863:12;97718:168;;;;;;;;;;;:::i;:::-;;;;;;;;97909:9;97899:19;;95506: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;98068:81::-;11500:12;:10;:12::i;:::-;11489:23;;:7;:5;:7::i;:::-;:23;;;11481:68;;;;;;;;;;;;:::i;:::-;98130:10:::1;98117:24;11269:87:::0;11315:7;11342:6;;;11269:87;:::o;66246:333::-;66443:20;66476:34;66492:8;66503:6;;66476:7;:34::i;:::-;66528:43;66536:8;66546:6;66554:9;66565:5;;66528:7;:43::i;:::-;66521:50;66246:333;-1:-1:-1;;;;;;;;66246: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;86785:1539::-;86964:20;87011:5;87042:7;87034:39;;;;;;;;;;;;:::i;:::-;87137:6;;-1:-1:-1;87104:7:0;;;87084:17;;83611:8;87170:5;;87084:17;87170:8;;;;;;;;;;;:26;:30;87154:46;;87211:15;87268:1;83671:8;87229:5;;87235:9;87229:16;;;;;;;;;;;;;:36;:40;87211:58;;87284:8;87280:230;;;87330:6;87317:9;:19;87309:55;;;;;;;;;;;;:::i;:::-;87379:5;:13;;;87400:6;87379:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87280:230;;;87450:9;:14;87442:56;;;;;;;;;;;;:::i;:::-;87530:1;87524:3;:7;87520:597;;;87563:87;87581:4;87588:8;:37;;87615:10;87588:37;;;87607:4;87588:37;87627:5;;87633:1;87627:8;;;;;;;;;;;;;87637:12;87563:9;:87::i;:::-;87548:102;-1:-1:-1;87684:1:0;87667:153;87691:9;87687:1;:13;87667:153;;;87741:63;87759:4;87774;87781:5;;87787:1;87781:8;;;;;;;;;;;;;87791:12;87741:9;:63::i;:::-;87726:78;-1:-1:-1;87702:3:0;;87667:153;;;;87849:96;87859:10;:38;;87888:9;87859:38;;;87880:4;87859:38;87907:4;87914:5;;87920:9;87914:16;;;;;;87849:96;87834:111;;87520:597;;;87993:112;88003:10;:38;;88032:9;88003:38;;;88024:4;88003:38;88043:8;:37;;88070:10;88043:37;;87993:112;87978:127;;87520:597;88153:9;88137:12;:25;;88129:56;;;;;;;;;;;;:::i;:::-;88202:10;88198:119;;;88229:28;;;;;:14;:5;:14;;;;:28;;88244:12;;88229:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;88272:33:0;;-1:-1:-1;;;88272:19:0;;;88292:12;88272:19;:33::i;:::-;86785: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;86053:244::-;86196:20;86236:53;86252:10;86264:6;86272:9;86283:5;;86236:15;:53::i;:::-;86229:60;;86053: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;88376:2841::-;88539:13;;83846:66;83734;88539:13;89290:4;89284:11;89340:4;89330:8;89326:19;89376:10;89366:8;89359:28;89467:4;89456:9;89451:3;89441:8;89431;89424:5;89413:59;89403:2;;89493:10;;:::i;:::-;89548:9;89542:16;89532:26;;89646:4;89635:9;89630:3;89624;89614:8;89610:18;89600:8;89593:5;89582:69;89572:2;;89672:10;;:::i;:::-;89727:9;89721:16;89711:26;;89825:4;89814:9;89809:3;89803;89793:8;89789:18;89779:8;89772:5;89761:69;89751:2;;89851:10;;:::i;:::-;89901:16;89964:27;;;90017:2;90010:10;;90082:17;;;90120:10;;;90113:26;;;90160:10;;;;90153:23;;;;90213:2;90200:16;;90190:27;;;90260;;;90317:23;;90342:13;90313:43;90391:8;90382:18;;90372:2;;90421:90;90506:4;90438:66;90421:90;:::i;:::-;90372:2;90592:4;90586;90576:8;90563:34;90620:15;;-1:-1:-1;90677:1:0;90662:16;;90658:271;;;90699:22;;;90716:4;90699:22;90695:223;;;90742:54;:19;;;90762:10;90782:12;90742:19;:54::i;:::-;90695:223;;;90837:65;:23;;;90861:5;90868:10;90888:12;90837:23;:65::i;:::-;90958:1;90943:12;:16;90939:271;;;90980:22;;;90997:4;90980:22;90976:223;;;91023:54;:19;;;91043:10;91063:12;91023:19;:54::i;:::-;90976:223;;;91118:65;:23;;;91142:5;91149:10;91169:12;91118:23;:65::i;:::-;88376: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;;;;18562:158;18620:7;18653:1;18648;:6;;18640:49;;;;;;;;;;;;:::i;:::-;-1:-1:-1;18707:5:0;;;18562:158::o;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;;;;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;91225:825::-;91325:7;83553:8;91363:25;;:30;91404:639;;;;91438:14;91471:4;91456:25;;;91500:9;91528:10;91557:25;91575:6;91557:17;:25::i;:::-;84311:14;91646:5;91635:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;91456:211;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91435:232;;;91689:28;91709:7;91708:8;;91689:18;:28::i;:::-;91682:35;;;;;;91404:639;91751:14;91785:4;91770:25;;;91814:9;91842:10;91871:25;91889:6;91871:17;:25::i;:::-;84497:53;91960:5;91949:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;91770:211;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91750:231;;;92003:28;92023:7;92022:8;;92003: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;;79833:181;79889:6;79924;79916:5;:14;79908:67;;;;;;;;;;;;:::i;:::-;-1:-1:-1;80000:5:0;79833:181::o;76651:171::-;76707:7;76744:1;76735:5;:10;;76727: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;6222:337::-;;;6375:2;6363:9;6354:7;6350:23;6346:32;6343:2;;;6396:6;6388;6381:22;6343:2;6433:9;6427:16;6452:33;6479:5;6452:33;:::i;:::-;6549:2;6534:18;;;;6528:25;6504:5;;6528:25;;-1:-1:-1;;;6333:226:1:o;7188:751::-;;;;;;7400:3;7388:9;7379:7;7375:23;7371:33;7368:2;;;7422:6;7414;7407:22;7944:1072;;;;;;;;8192:3;8180:9;8171:7;8167:23;8163:33;8160:2;;;8214:6;8206;8199:22;8160:2;8258:9;8245:23;8277:33;8304:5;8277:33;:::i;:::-;8329:5;-1:-1:-1;8381:2:1;8366:18;;8353:32;;-1:-1:-1;8432:2:1;8417:18;;8404:32;;-1:-1:-1;8487:2:1;8472:18;;8459:32;8510:18;8540:14;;;8537:2;;;8572:6;8564;8557:22;8537:2;8616:76;8684:7;8675:6;8664:9;8660:22;8616:76;:::i;:::-;8711:8;;-1:-1:-1;8590:102:1;-1:-1:-1;8799:3:1;8784:19;;8771:33;;-1:-1:-1;8816:16:1;;;8813:2;;;8850:6;8842;8835:22;8813:2;;8894:62;8948:7;8937:8;8926:9;8922:24;8894:62;:::i;:::-;8150:866;;;;-1:-1:-1;8150:866:1;;-1:-1:-1;8150:866:1;;;;8868:88;;-1:-1:-1;;;8150:866:1:o;9021:253::-;;;9159:2;9147:9;9138:7;9134:23;9130:32;9127:2;;;9180:6;9172;9165:22;9127:2;-1:-1:-1;;9208:16:1;;9264:2;9249:18;;;9243:25;9208:16;;9243:25;;-1:-1:-1;9117:157:1:o;9279:565::-;;;;;9442:2;9430:9;9421:7;9417:23;9413:32;9410:2;;;9463:6;9455;9448:22;9410:2;9504:9;9491:23;9481:33;;9561:2;9550:9;9546:18;9533:32;9523:42;;9616:2;9605:9;9601:18;9588:32;9643:18;9635:6;9632:30;9629:2;;;9680:6;9672;9665:22;9629:2;9724:60;9776:7;9767:6;9756:9;9752:22;9724:60;:::i;9849:691::-;;;;;;10057:3;10045:9;10036:7;10032:23;10028:33;10025:2;;;10079:6;10071;10064:22;10025:2;10107:49;10148:7;10137:9;10107:49;:::i;:::-;10097:59;;10207:3;10196:9;10192:19;10179:33;10235:18;10227:6;10224:30;10221:2;;;10272:6;10264;10257:22;10221:2;10316:60;10368:7;10359:6;10348:9;10344:22;10316:60;:::i;:::-;10015:525;;10395:8;;-1:-1:-1;10290:86:1;;10477:3;10462:19;;10449:33;;10529:3;10514:19;;;10501:33;;-1:-1:-1;10015:525:1;-1:-1:-1;;;;10015:525:1:o;10545:837::-;;;;;;;10778:3;10766:9;10757:7;10753:23;10749:33;10746:2;;;10800:6;10792;10785:22;10746:2;10828:49;10869:7;10858:9;10828:49;:::i;:::-;10818:59;;10928:3;10917:9;10913:19;10900:33;10956:18;10948:6;10945:30;10942:2;;;10993:6;10985;10978:22;10942:2;11037:60;11089:7;11080:6;11069:9;11065:22;11037:60;:::i;:::-;11116:8;;-1:-1:-1;11011:86:1;-1:-1:-1;;11198:3:1;11183:19;;11170:33;;-1:-1:-1;11250:3:1;11235:19;;11222:33;;-1:-1:-1;11305:3:1;11290:19;;11277:33;11319;11277;11319;:::i;:::-;11371:5;11361:15;;;10736:646;;;;;;;;:::o;11387:1158::-;;;;;;;;;11656:3;11644:9;11635:7;11631:23;11627:33;11624:2;;;11678:6;11670;11663:22;11624:2;11706:49;11747:7;11736:9;11706:49;:::i;:::-;11696:59;;11806:3;11795:9;11791:19;11778:33;11830:18;11871:2;11863:6;11860:14;11857:2;;;11892:6;11884;11877:22;11857:2;11936:60;11988:7;11979:6;11968:9;11964:22;11936:60;:::i;:::-;12015:8;;-1:-1:-1;11910:86:1;-1:-1:-1;12097:3:1;12082:19;;12069:33;;-1:-1:-1;12149:3:1;12134:19;;12121:33;;-1:-1:-1;12204:3:1;12189:19;;12176:33;;-1:-1:-1;12218:33:1;12176;12218;:::i;:::-;12270:5;;-1:-1:-1;12328:3:1;12313:19;;12300:33;;12345:16;;;12342:2;;;12379:6;12371;12364:22;12550:190;;12662:2;12650:9;12641:7;12637:23;12633:32;12630:2;;;12683:6;12675;12668:22;12630:2;-1:-1:-1;12711:23:1;;12620:120;-1:-1:-1;12620:120:1:o;12745:194::-;;12868:2;12856:9;12847:7;12843:23;12839:32;12836:2;;;12889:6;12881;12874:22;12836:2;-1:-1:-1;12917:16:1;;12826:113;-1:-1:-1;12826:113:1:o;13204:599::-;;;;;13385:2;13373:9;13364:7;13360:23;13356:32;13353:2;;;13406:6;13398;13391:22;13353:2;13447:9;13434:23;13424:33;;13504:2;13493:9;13489:18;13476:32;13466:42;;13559:2;13548:9;13544:18;13531:32;13586:18;13578:6;13575:30;13572:2;;;13623:6;13615;13608:22;13572:2;13667:76;13735:7;13726:6;13715:9;13711:22;13667:76;:::i;13808:137::-;13895:42;13884:54;13872:67;;13862:83::o;13950:329::-;;14040:6;14035:3;14028:19;14092:6;14085:5;14078:4;14073:3;14069:14;14056:43;14144:3;14137:4;14128:6;14123:3;14119:16;14115:27;14108:40;14268:4;14198:66;14193:2;14185:6;14181:15;14177:88;14172:3;14168:98;14164:109;14157:116;;14018:261;;;;;:::o;14284:318::-;;14365:5;14359:12;14392:6;14387:3;14380:19;14408:63;14464:6;14457:4;14452:3;14448:14;14441:4;14434:5;14430:16;14408:63;:::i;:::-;14516:2;14504:15;14521:66;14500:88;14491:98;;;;14591:4;14487:109;;14335:267;-1:-1:-1;;14335:267:1:o;14607:718::-;;14886:66;14878:6;14874:79;14869:3;14862:92;14995:66;14987:6;14983:79;14979:1;14974:3;14970:11;14963:100;15114:66;15105:6;15101:2;15097:15;15093:88;15088:2;15083:3;15079:12;15072:110;15226:6;15218;15213:2;15208:3;15204:12;15191:42;15256:16;;15274:2;15252:25;15286:15;;;15252:25;14852:473;-1:-1:-1;;;;14852:473:1:o;15330:416::-;;15537:66;15529:6;15525:79;15520:3;15513:92;15648:6;15640;15636:1;15631:3;15627:11;15614:41;15678:16;;15696:1;15674:24;15707:15;;;15674:24;15503:243;-1:-1:-1;;15503:243:1:o;15751:274::-;;15918:6;15912:13;15934:53;15980:6;15975:3;15968:4;15960:6;15956:17;15934:53;:::i;:::-;16003:16;;;;;15888:137;-1:-1:-1;;15888:137:1:o;16030:773::-;;16449:6;16443:13;16465:53;16511:6;16506:3;16499:4;16491:6;16487:17;16465:53;:::i;:::-;16579:8;16540:16;;;16565:23;;;16613:13;;16635:65;16613:13;16687:1;16676:13;;16669:4;16657:17;;16635:65;:::i;:::-;16767:3;16763:1;16719:20;;;;16755:10;;;16748:23;16795:1;16787:10;;16419:384;-1:-1:-1;;;;16419:384:1:o;16808:775::-;;17227:6;17221:13;17243:53;17289:6;17284:3;17277:4;17269:6;17265:17;17243:53;:::i;:::-;17357:10;17318:16;;;17343:25;;;17393:13;;17415:65;17393:13;17467:1;17456:13;;17449:4;17437:17;;17415:65;:::i;:::-;17547:3;17543:1;17499:20;;;;17535:10;;;17528:23;17575:1;17567:10;;17197:386;-1:-1:-1;;;;17197:386:1:o;17588:773::-;;18007:6;18001:13;18023:53;18069:6;18064:3;18057:4;18049:6;18045:17;18023:53;:::i;:::-;18137:8;18098:16;;;18123:23;;;18171:13;;18193:65;18171:13;18245:1;18234:13;;18227:4;18215:17;;18193:65;:::i;18366:444::-;18636:66;18624:79;;18728:1;18719:11;;18712:27;;;;18764:2;18755:12;;18748:28;18801:2;18792:12;;18614:196::o;19025:182::-;19154:19;;;19198:2;19189:12;;19144:63::o;19212:226::-;19388:42;19376:55;;;;19358:74;;19346:2;19331:18;;19313:125::o;19443:676::-;19784:42;19853:15;;;19835:34;;19905:15;;;19900:2;19885:18;;19878:43;19957:15;;;19952:2;19937:18;;19930:43;20009:15;;20004:2;19989:18;;19982:43;20056:3;20041:19;;20034:35;;;;20100:3;20085:19;;20078:35;;;;19761:3;19746:19;;19728:391::o;20124:398::-;20336:42;20405:15;;;20387:34;;20457:15;;;;20452:2;20437:18;;20430:43;20504:2;20489:18;;20482:34;;;;20314:2;20299:18;;20281:241::o;20527:593::-;;20770:42;20851:2;20843:6;20839:15;20828:9;20821:34;20905:6;20898:14;20891:22;20886:2;20875:9;20871:18;20864:50;20950:6;20945:2;20934:9;20930:18;20923:34;21005:2;20997:6;20993:15;20988:2;20977:9;20973:18;20966:43;;21046:3;21040;21029:9;21025:19;21018:32;21067:47;21109:3;21098:9;21094:19;21086:6;21067:47;:::i;21125:297::-;21329:42;21317:55;;;;21299:74;;21404:2;21389:18;;21382:34;21287:2;21272:18;;21254:168::o;21609:512::-;21868:25;;;21924:2;21909:18;;21902:34;;;;21967:2;21952:18;;21945:34;;;;22010:2;21995:18;;21988:34;22071:42;22059:55;22053:3;22038:19;;22031:84;21855:3;21840:19;;21822:299::o;22126:317::-;;22311:6;22300:9;22293:25;22354:2;22349;22338:9;22334:18;22327:30;22374:63;22433:2;22422:9;22418:18;22410:6;22402;22374:63;:::i;22448:807::-;;22662:3;22651:9;22647:19;22639:27;;22693:6;22682:9;22675:25;22742:6;22736:13;22731:2;22720:9;22716:18;22709:41;22797:2;22789:6;22785:15;22779:22;22820:42;22916:2;22902:12;22898:21;22893:2;22882:9;22878:18;22871:49;22984:2;22978;22970:6;22966:15;22960:22;22956:31;22951:2;22940:9;22936:18;22929:59;23053:2;23047;23039:6;23035:15;23029:22;23025:31;23019:3;23008:9;23004:19;22997:60;23123:2;23116:3;23108:6;23104:16;23098:23;23094:32;23088:3;23077:9;23073:19;23066:61;;;23182:3;23174:6;23170:16;23164:23;23158:3;23147:9;23143:19;23136:52;23243:3;23235:6;23231:16;23225:23;23219:3;23208:9;23204:19;23197:52;22629:626;;;;;:::o;23260:248::-;23434:25;;;23490:2;23475:18;;23468:34;23422:2;23407:18;;23389:119::o;23513:398::-;23740:25;;;23813:4;23801:17;;;;23796:2;23781:18;;23774:45;23850:2;23835:18;;23828:34;23893:2;23878:18;;23871:34;23727:3;23712:19;;23694:217::o;23916:1468::-;;24238:42;24230:6;24226:55;24215:9;24208:74;24318:2;24313;24302:9;24298:18;24291:30;24330:78;24404:2;24393:9;24389:18;24359:28;24380:6;24359:28;:::i;:::-;24330:78;:::i;:::-;24430:37;24463:2;24455:6;24451:15;24430:37;:::i;:::-;24476:56;24527:3;24516:9;24512:19;24505:5;24476:56;:::i;:::-;;24556:39;24589:4;24581:6;24577:17;24556:39;:::i;:::-;24604:58;24657:3;24646:9;24642:19;24633:7;24604:58;:::i;:::-;;24686:37;24719:2;24711:6;24707:15;24686:37;:::i;:::-;24732:58;24785:3;24774:9;24770:19;24761:7;24732:58;:::i;:::-;;24852:3;24844:6;24840:16;24827:30;24821:3;24810:9;24806:19;24799:59;24877:6;24944:3;24936:6;24932:16;24919:30;24914:2;24903:9;24899:18;24892:58;25012:3;25004:6;25000:16;24987:30;24981:3;24970:9;24966:19;24959:59;25061:58;25114:3;25106:6;25102:16;25094:6;25061:58;:::i;:::-;25156:2;25150:3;25139:9;25135:19;25128:31;25179:76;25250:3;25239:9;25235:19;25221:12;25207;25179:76;:::i;:::-;25168:87;;;;25302:9;25297:3;25293:19;25286:4;25275:9;25271:20;25264:49;25330:48;25374:3;25366:6;25358;25330:48;:::i;25389:221::-;;25538:2;25527:9;25520:21;25558:46;25600:2;25589:9;25585:18;25577:6;25558:46;:::i;25615:343::-;25817:2;25799:21;;;25856:2;25836:18;;;25829:30;25895:21;25890:2;25875:18;;25868:49;25949:2;25934:18;;25789:169::o;25963:351::-;26165:2;26147:21;;;26204:2;26184:18;;;26177:30;26243:29;26238:2;26223:18;;26216:57;26305:2;26290:18;;26137:177::o;26319:351::-;26521:2;26503:21;;;26560:2;26540:18;;;26533:30;26599:29;26594:2;26579:18;;26572:57;26661:2;26646:18;;26493:177::o;26675:344::-;26877:2;26859:21;;;26916:2;26896:18;;;26889:30;26955:22;26950:2;26935:18;;26928:50;27010:2;26995:18;;26849:170::o;27024:353::-;27226:2;27208:21;;;27265:2;27245:18;;;27238:30;27304:31;27299:2;27284:18;;27277:59;27368:2;27353:18;;27198:179::o;27382:342::-;27584:2;27566:21;;;27623:2;27603:18;;;27596:30;27662:20;27657:2;27642:18;;27635:48;27715:2;27700:18;;27556:168::o;27729:402::-;27931:2;27913:21;;;27970:2;27950:18;;;27943:30;28009:34;28004:2;27989:18;;27982:62;28080:8;28075:2;28060:18;;28053:36;28121:3;28106:19;;27903:228::o;28136:351::-;28338:2;28320:21;;;28377:2;28357:18;;;28350:30;28416:29;28411:2;28396:18;;28389:57;28478:2;28463:18;;28310:177::o;28492:342::-;28694:2;28676:21;;;28733:2;28713:18;;;28706:30;28772:20;28767:2;28752:18;;28745:48;28825:2;28810:18;;28666:168::o;28839:344::-;29041:2;29023:21;;;29080:2;29060:18;;;29053:30;29119:22;29114:2;29099:18;;29092:50;29174:2;29159:18;;29013:170::o;29188:341::-;29390:2;29372:21;;;29429:2;29409:18;;;29402:30;29468:19;29463:2;29448:18;;29441:47;29520:2;29505:18;;29362:167::o;29534:354::-;29736:2;29718:21;;;29775:2;29755:18;;;29748:30;29814:32;29809:2;29794:18;;29787:60;29879:2;29864:18;;29708:180::o;29893:422::-;30095:2;30077:21;;;30134:2;30114:18;;;30107:30;30173:34;30168:2;30153:18;;30146:62;30244:28;30239:2;30224:18;;30217:56;30305:3;30290:19;;30067:248::o;30320:353::-;30522:2;30504:21;;;30561:2;30541:18;;;30534:30;30600:31;30595:2;30580:18;;30573:59;30664:2;30649:18;;30494:179::o;30678:402::-;30880:2;30862:21;;;30919:2;30899:18;;;30892:30;30958:34;30953:2;30938:18;;30931:62;31029:8;31024:2;31009:18;;31002:36;31070:3;31055:19;;30852:228::o;31085:350::-;31287:2;31269:21;;;31326:2;31306:18;;;31299:30;31365:28;31360:2;31345:18;;31338:56;31426:2;31411:18;;31259:176::o;31440:348::-;31642:2;31624:21;;;31681:2;31661:18;;;31654:30;31720:26;31715:2;31700:18;;31693:54;31779:2;31764:18;;31614:174::o;31793:356::-;31995:2;31977:21;;;32014:18;;;32007:30;32073:34;32068:2;32053:18;;32046:62;32140:2;32125:18;;31967:182::o;32154:351::-;32356:2;32338:21;;;32395:2;32375:18;;;32368:30;32434:29;32429:2;32414:18;;32407:57;32496:2;32481:18;;32328:177::o;32510:350::-;32712:2;32694:21;;;32751:2;32731:18;;;32724:30;32790:28;32785:2;32770:18;;32763:56;32851:2;32836:18;;32684:176::o;32865:397::-;33067:2;33049:21;;;33106:2;33086:18;;;33079:30;33145:34;33140:2;33125:18;;33118:62;33216:3;33211:2;33196:18;;33189:31;33252:3;33237:19;;33039:223::o;33267:356::-;33469:2;33451:21;;;33488:18;;;33481:30;33547:34;33542:2;33527:18;;33520:62;33614:2;33599:18;;33441:182::o;33628:343::-;33830:2;33812:21;;;33869:2;33849:18;;;33842:30;33908:21;33903:2;33888:18;;33881:49;33962:2;33947:18;;33802:169::o;33976:345::-;34178:2;34160:21;;;34217:2;34197:18;;;34190:30;34256:23;34251:2;34236:18;;34229:51;34312:2;34297:18;;34150:171::o;34326:342::-;34528:2;34510:21;;;34567:2;34547:18;;;34540:30;34606:20;34601:2;34586:18;;34579:48;34659:2;34644:18;;34500:168::o;34673:353::-;34875:2;34857:21;;;34914:2;34894:18;;;34887:30;34953:31;34948:2;34933:18;;34926:59;35017:2;35002:18;;34847:179::o;35031:348::-;35233:2;35215:21;;;35272:2;35252:18;;;35245:30;35311:26;35306:2;35291:18;;35284:54;35370:2;35355:18;;35205:174::o;35384:404::-;35586:2;35568:21;;;35625:2;35605:18;;;35598:30;35664:34;35659:2;35644:18;;35637:62;35735:10;35730:2;35715:18;;35708:38;35778:3;35763:19;;35558:230::o;35793:355::-;35995:2;35977:21;;;36034:2;36014:18;;;36007:30;36073:33;36068:2;36053:18;;36046:61;36139:2;36124:18;;35967:181::o;36153:347::-;36355:2;36337:21;;;36394:2;36374:18;;;36367:30;36433:25;36428:2;36413:18;;36406:53;36491:2;36476:18;;36327:173::o;36505:406::-;36707:2;36689:21;;;36746:2;36726:18;;;36719:30;36785:34;36780:2;36765:18;;36758:62;36856:12;36851:2;36836:18;;36829:40;36901:3;36886:19;;36679:232::o;36916:343::-;37118:2;37100:21;;;37157:2;37137:18;;;37130:30;37196:21;37191:2;37176:18;;37169:49;37250:2;37235:18;;37090:169::o;37264:342::-;37466:2;37448:21;;;37505:2;37485:18;;;37478:30;37544:20;37539:2;37524:18;;37517:48;37597:2;37582:18;;37438:168::o;37611:348::-;37813:2;37795:21;;;37852:2;37832:18;;;37825:30;37891:26;37886:2;37871:18;;37864:54;37950:2;37935:18;;37785:174::o;38399:319::-;38601:25;;;38657:2;38642:18;;38635:34;;;;38700:2;38685:18;;38678:34;38589:2;38574:18;;38556:162::o;38723:592::-;;;38866:11;38853:25;38956:66;38945:8;38929:14;38925:29;38921:102;38901:18;38897:127;38887:2;;39041:4;39035;39028:18;38887:2;39071:33;;39123:20;;;-1:-1:-1;39166:18:1;39155:30;;39152:2;;;39201:4;39195;39188:18;39152:2;39237:4;39225:17;;-1:-1:-1;39268:14:1;39264:27;;;39254:38;;39251:2;;;39305:1;39302;39295:12;39320:572;;;39447:3;39434:17;39529:66;39518:8;39502:14;39498:29;39494:102;39474:18;39470:127;39460:2;;39615:5;39608;39601:20;39460:2;39647:33;;39751:4;39738:18;;;-1:-1:-1;39699:21:1;;-1:-1:-1;39779:18:1;39768:30;;39765:2;;;39811:1;39808;39801:12;39765:2;39861:6;39845:14;39841:27;39831:8;39827:42;39824:2;;;39882:1;39879;39872:12;39897:258;39969:1;39979:113;39993:6;39990:1;39987:13;39979:113;;;40069:11;;;40063:18;40050:11;;;40043:39;40015:2;40008:10;39979:113;;;40110:6;40107:1;40104:13;40101:2;;;-1:-1:-1;;40145:1:1;40127:16;;40120:27;39950:205::o;40160:156::-;40248:42;40241:5;40237:54;40230:5;40227:65;40217:2;;40306:1;40303;40296:12;40217:2;40207:109;:::o

Swarm Source

ipfs://20a946e047c7a2de59c2ba1b988165fbb7762849b887698bb76ae4e1b34f25c4
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.