Contract 0x1111111254fb6c44bac0bed2854e76f90643097d 19

 

Contract Overview

Balance:
1 wei

FTM Value:
Less Than $0.01 (@ $0.36/FTM)

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc30ca6b8eaf59fd8c5c496c4089b28ee825e1ab09cc7be7779d8e4c17df0cbfa0x7c025200451678112022-08-18 12:50:322 mins ago0xd4ca675aabb0a176305470a807735542f59460d0 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.002837351195
0xe6df9c8d8d6485b70a9b2b1ae9ddd93e9fbb835f51db2ea35d8ef2b19b646bcb0x7c025200451678032022-08-18 12:50:242 mins ago0xd4ca675aabb0a176305470a807735542f59460d0 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.001706038427
0xac66c0fd6a83ffd202895ea12e3f47e9053bae4fb78021b665db92e42bfab5a90x7c025200451677992022-08-18 12:50:202 mins ago0xd4ca675aabb0a176305470a807735542f59460d0 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.007202874732
0x797f6cb0f8fd0fcbc4c7048c157af1028af41c5b315c2905ddb61963e8ede8700x7c025200451677982022-08-18 12:50:182 mins ago0xb1212e3fbc07adcf863bb71f069cdfe2459fb10e IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.002966549321
0xf383b9ba891adb743ecbfcd92d8a81e0fa6a5fe11e9bbda48bdd4a5e8fa8d94a0x7c025200451677962022-08-18 12:50:162 mins ago0x47e13ff2f493c4520043f11fe1f84be507772115 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.007263454073
0x69452e123745f175ec8246dfe498c62b5749460b70884e44bc25146778868f7a0x7c025200451677952022-08-18 12:50:162 mins ago0xb12121ce41ec759551eff918eca85ddcec1272e3 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.004531305575
0xcec27922b018c237667ebe377dcfe1d2dc984a21f368c4a808f44b10f1788b0f0x7c025200451677952022-08-18 12:50:162 mins ago0xb1212c9907146d5fee01d8db85742b2c2a87bcd1 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.002982110331
0x4603557ce70368d2af147faa001f50d0147d00c30d8f1c38a44d2bad65dd41f80x7c025200451677782022-08-18 12:49:592 mins ago0xd4ca675aabb0a176305470a807735542f59460d0 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.006646600518
0xbcf8f37af78e97c1f6604247441108220390d66cdbf06c09bd46d111791f91580x7c025200451677732022-08-18 12:49:532 mins ago0xd4ca675aabb0a176305470a807735542f59460d0 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.009651884035
0x6f638b1634ea12fedbe65cf9f1760eff9757c6c2f064af6679d4e4e6e9a550b90x7c025200451677712022-08-18 12:49:512 mins ago0xb12129842e22752f0f456a03310cd39b35973f1f IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.00805957622
0x50876dc7e7a09c0d15ed14a93e9e3d1e54b6c44944920f2b901c6e520236e20e0x7c025200451677682022-08-18 12:49:482 mins ago0xb1212f3bfcead78a8852c1b4118032de2988c206 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.00296977632
0x418eaa0c14b04d7c2ea644cdd1b00be7d9919cad5c73d5ec6c08bc98c2f9dacb0x7c025200451677672022-08-18 12:49:463 mins ago0x1ed947d394674f565384d85440f98941a84009a7 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.00515155647
0x08e2e49c4b8da02c8a18ba69309c09c0a2ea190a5c6ddcffd56a53546f05e6550x7c025200451677642022-08-18 12:49:433 mins ago0xb12127db1597b6924754ddcc543637817c5e5845 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.002983684041
0xe717ccc6ad808f4c4e471dcad7f257c1d5569f15d7b9388a7421ff280f86ef100x7c025200451677622022-08-18 12:49:413 mins ago0xb121221a20e23e0544c2f99bd9f3eea78b926503 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.002983914731
0xd4218af51ae4d25f8880df2a2028a5a0dff2bf0a140c79107a576aded0f76f230x7c025200451677612022-08-18 12:49:393 mins ago0xb121244df5d79b1cbf0602a3b8b527f0cb8e3d7d IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.002871422897
0x0ad2aa3df2c4df730be792f7884f9f2e52b6bfe524fd6fb70f7f5f3c312682300x7c025200451677612022-08-18 12:49:393 mins ago0xb1212bb1d505394974fd222fc3bf2eddc58f7280 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.002971393812
0x54ebfa7616126c8e0441a226fe0c3ffeac9f7939e7920134e089c092d7aaadfa0x7c025200451677502022-08-18 12:49:263 mins ago0xd4ca675aabb0a176305470a807735542f59460d0 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.01231859797
0x081a07b34306b746268c8fb1b8f80f482a7b27c586e22e56e85509bd45bf65820x7c025200451677382022-08-18 12:49:113 mins ago0xd4ca675aabb0a176305470a807735542f59460d0 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.014207189193
0x59182ebe6f5f815ef6796fb846d6d9ac26f3d0b452f07174a54b80c4469492cb0x7c025200451677362022-08-18 12:49:083 mins ago0xb1212ba230ac3b8928e87ae0196793a1c1ae1be8 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.09314084
0xb4173df539cfb4503ddbc1a95c1921a94a95a1b8de2935f3f365c06924d9a40d0x7c025200451677342022-08-18 12:49:053 mins ago0xbf4ebea7279de8517f60bd5fdbe9aebe03de90ed IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.001423737
0x02045bd28b5300ce6b16225fc21b3bf3d994750b3eea0be8898cb68327bdf5cf0x7c025200451677302022-08-18 12:48:583 mins ago0x5ad7e5f127a2a24555142e7993d406f47c7aadfd IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.020579073885
0x9f9f70003741b4826a67c635e63d726086340ffac190aaf9990ee60525663e8c0x7c025200451677272022-08-18 12:48:533 mins ago0xae61e7dc52e2580e673ceca51050d2c5c391d687 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.015542415024
0x2a27125e0669bdaa3862f948465663a9b2c6362be8f00390b42b6ff80ecfaef50x7c025200451677252022-08-18 12:48:513 mins ago0x47e13ff2f493c4520043f11fe1f84be507772115 IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.011509896119
0x15351e312fe8c568f5bdb07cb924d3d52152814698d601700685d13eb08f45840x7c025200451677222022-08-18 12:48:474 mins ago0xb12129842e22752f0f456a03310cd39b35973f1f IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.08901789
0xc7bc388c89ad13d9bfbc8afd16cef72834e6c58ab8e2de376d7e880fea8980e40x7c025200451677202022-08-18 12:48:434 mins ago0x8594d8e9483473626908648a5539d9d65ca2fe8d IN 0x1111111254fb6c44bac0bed2854e76f90643097d0 FTM0.14741
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x797f6cb0f8fd0fcbc4c7048c157af1028af41c5b315c2905ddb61963e8ede870451677982022-08-18 12:50:182 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.243320711495697517 FTM
0x797f6cb0f8fd0fcbc4c7048c157af1028af41c5b315c2905ddb61963e8ede870451677982022-08-18 12:50:182 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.243320711495697517 FTM
0x69452e123745f175ec8246dfe498c62b5749460b70884e44bc25146778868f7a451677952022-08-18 12:50:162 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038152.195423940698575502 FTM
0x69452e123745f175ec8246dfe498c62b5749460b70884e44bc25146778868f7a451677952022-08-18 12:50:162 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d152.195423940698575502 FTM
0xcec27922b018c237667ebe377dcfe1d2dc984a21f368c4a808f44b10f1788b0f451677952022-08-18 12:50:162 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.197215224328839024 FTM
0xcec27922b018c237667ebe377dcfe1d2dc984a21f368c4a808f44b10f1788b0f451677952022-08-18 12:50:162 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.197215224328839024 FTM
0x6f638b1634ea12fedbe65cf9f1760eff9757c6c2f064af6679d4e4e6e9a550b9451677712022-08-18 12:49:512 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.353740374973040786 FTM
0x6f638b1634ea12fedbe65cf9f1760eff9757c6c2f064af6679d4e4e6e9a550b9451677712022-08-18 12:49:512 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.353740374973040786 FTM
0x50876dc7e7a09c0d15ed14a93e9e3d1e54b6c44944920f2b901c6e520236e20e451677682022-08-18 12:49:482 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.284567703729744583 FTM
0x50876dc7e7a09c0d15ed14a93e9e3d1e54b6c44944920f2b901c6e520236e20e451677682022-08-18 12:49:482 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.284567703729744583 FTM
0x08e2e49c4b8da02c8a18ba69309c09c0a2ea190a5c6ddcffd56a53546f05e655451677642022-08-18 12:49:433 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.216030148068837101 FTM
0x08e2e49c4b8da02c8a18ba69309c09c0a2ea190a5c6ddcffd56a53546f05e655451677642022-08-18 12:49:433 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.216030148068837101 FTM
0xe717ccc6ad808f4c4e471dcad7f257c1d5569f15d7b9388a7421ff280f86ef10451677622022-08-18 12:49:413 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.181253700154022984 FTM
0xe717ccc6ad808f4c4e471dcad7f257c1d5569f15d7b9388a7421ff280f86ef10451677622022-08-18 12:49:413 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.181253700154022984 FTM
0xd4218af51ae4d25f8880df2a2028a5a0dff2bf0a140c79107a576aded0f76f23451677612022-08-18 12:49:393 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.214731568231987596 FTM
0xd4218af51ae4d25f8880df2a2028a5a0dff2bf0a140c79107a576aded0f76f23451677612022-08-18 12:49:393 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.214731568231987596 FTM
0x0ad2aa3df2c4df730be792f7884f9f2e52b6bfe524fd6fb70f7f5f3c31268230451677612022-08-18 12:49:393 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.351850379470604418 FTM
0x0ad2aa3df2c4df730be792f7884f9f2e52b6bfe524fd6fb70f7f5f3c31268230451677612022-08-18 12:49:393 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.351850379470604418 FTM
0x59182ebe6f5f815ef6796fb846d6d9ac26f3d0b452f07174a54b80c4469492cb451677362022-08-18 12:49:083 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038152.23139381372696674 FTM
0x59182ebe6f5f815ef6796fb846d6d9ac26f3d0b452f07174a54b80c4469492cb451677362022-08-18 12:49:083 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d152.23139381372696674 FTM
0x15351e312fe8c568f5bdb07cb924d3d52152814698d601700685d13eb08f4584451677222022-08-18 12:48:474 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.175127082677917094 FTM
0x15351e312fe8c568f5bdb07cb924d3d52152814698d601700685d13eb08f4584451677222022-08-18 12:48:474 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d138.175127082677917094 FTM
0x159a9598ae74fbe71651a9775c98a3b3b77d885f438db9f502d0d8f0088a50ab451677192022-08-18 12:48:424 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038152.28613225600302437 FTM
0x159a9598ae74fbe71651a9775c98a3b3b77d885f438db9f502d0d8f0088a50ab451677192022-08-18 12:48:424 mins ago 0xccf6b19bc2419e776b6ee030044811da846686fb0x1111111254fb6c44bac0bed2854e76f90643097d152.28613225600302437 FTM
0x15cd636f3e55c8200aad35dd3261d6eaeee660e608a184407a499634cfe369bb451677162022-08-18 12:48:344 mins ago 0x1111111254fb6c44bac0bed2854e76f90643097d0xb121291be63661213bd2ca1e6233ba1e0d8f6038138.369662208930272653 FTM
[ 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 FtmScan.com on 2022-03-17
*/

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



                    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 {
    bytes4 constant private _PANIC_SELECTOR = bytes4(keccak256("Panic(uint256)"));
    bytes4 constant private _ERROR_SELECTOR = bytes4(keccak256("Error(string)"));

    function parse(bytes memory data, string memory prefix) internal pure returns (string memory) {
        if (data.length >= 4) {
            bytes4 selector;
            assembly {  // solhint-disable-line no-inline-assembly
                selector := mload(add(data, 0x20))
            }

            // 68 = 4-byte selector + 32 bytes offset + 32 bytes length
            if (selector == _ERROR_SELECTOR && data.length >= 68) {
                uint256 offset;
                bytes memory reason;
                // solhint-disable no-inline-assembly
                assembly {
                    // 36 = 32 bytes data length + 4-byte selector
                    offset := mload(add(data, 36))
                    reason := add(data, add(36, offset))
                }
                /*
                    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 offset + string length + extra 36 bytes is less than overall data length
                */
                require(data.length >= 36 + offset + reason.length, "Invalid revert reason");
                return string(abi.encodePacked(prefix, "Error(", reason, ")"));
            }
            // 36 = 4-byte selector + 32 bytes integer
            else if (selector == _PANIC_SELECTOR && 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/IAggregationExecutor.sol

pragma solidity ^0.7.6;

/// @title Interface for making arbitrary calls during swap
interface IAggregationExecutor {
    /// @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;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

// 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 {
        _invalidateOrder(msg.sender, 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
            _invalidateOrder(maker, info);
        }

        {  // 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 (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");
        }
    }

    function _invalidateOrder(address maker, uint256 orderInfo) private {
        uint256 invalidatorSlot = uint64(orderInfo) >> 8;
        uint256 invalidatorBit = 1 << uint8(orderInfo);
        mapping(uint256 => uint256) storage invalidatorStorage = _invalidator[maker];
        uint256 invalidator = invalidatorStorage[invalidatorSlot];
        require(invalidator & invalidatorBit == 0, "LOP: invalidated order");
        invalidatorStorage[invalidatorSlot] = invalidator | invalidatorBit;
    }
}

// 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 = 0x00000000000000000000000021be370D5312f44cB42ce377BC9b8a0cEF1A4C83;
    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 = 0x0dfe1681d21220a7ddca3f43a9059cbb23b872dd000000000000000000000000;
    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 {
        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, 21)

            mstore(emptyPtr, _SELECTORS)
            if iszero(staticcall(gas(), caller(), emptyPtr, 0x4, resultPtr, 0x20)) {
                reRevert()
            }
            if iszero(staticcall(gas(), caller(), add(emptyPtr, 0x4), 0x4, add(resultPtr, 32), 0x20)) {
                reRevert()
            }
            if iszero(staticcall(gas(), caller(), add(emptyPtr, 0x8), 0x4, add(resultPtr, 64), 0x20)) {
                reRevert()
            }

            let token
            let amount
            switch sgt(amount0Delta, 0)
            case 1 {
                token := mload(resultPtr)
                amount := amount0Delta
            }
            default {
                token := mload(add(resultPtr, 32))
                amount := amount1Delta
            }

            mstore(emptyPtr, _FF_FACTORY)
            mstore(resultPtr, keccak256(resultPtr, 96)) // Compute the inner hash in-place
            mstore(add(resultPtr, 32), _POOL_INIT_CODE_HASH)
            let pool := and(keccak256(emptyPtr, 85), _ADDRESS_MASK)
            if xor(pool, caller()) {
                revertWithReason(0x00000010554e495633523a2062616420706f6f6c000000000000000000000000, 0x54)  // UNIV3R: bad pool
            }

            let payer := calldataload(0x84)
            mstore(emptyPtr, _SELECTORS)
            switch eq(payer, address())
            case 1 {
                // token.safeTransfer(msg.sender,amount)
                mstore(add(emptyPtr, 16), caller())
                mstore(add(emptyPtr, 48), amount)
                if iszero(call(gas(), token, 0, add(emptyPtr, 12), 68, 0, 0)) {
                    reRevert()
                }
            }
            default {
                // token.safeTransferFrom(payer, msg.sender, amount);
                mstore(add(emptyPtr, 20), payer)
                mstore(add(emptyPtr, 52), caller())
                mstore(add(emptyPtr, 84), amount)
                if iszero(call(gas(), token, 0, add(emptyPtr, 16), 100, 0, 0)) {
                    reRevert()
                }
            }
        }
    }

    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;

contract AggregationRouterV4 is Ownable, EthReceiver, Permitable, UnoswapRouter, UnoswapV3Router, LimitOrderProtocolRFQ {
    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;

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

    constructor(address weth)
        UnoswapV3Router(weth)
        LimitOrderProtocolRFQ(weth)
    {}  // solhint-disable-line no-empty-blocks

    /// @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 spentAmount Source token amount
    /// @return gasLeft Gas left
    function swap(
        IAggregationExecutor caller,
        SwapDescription calldata desc,
        bytes calldata data
    )
        external
        payable
        returns (
            uint256 returnAmount,
            uint256 spentAmount,
            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: "));
            }
        }

        spentAmount = desc.amount;
        // we leave 1 wei on the router for gas optimisations reasons
        returnAmount = dstToken.uniBalanceOf(address(this)).sub(1, "Result should not be 0");

        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);

        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"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_ORDER_RFQ_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"orderInfo","type":"uint256"}],"name":"cancelOrderRFQ","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"destroy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"contract IERC20","name":"makerAsset","type":"address"},{"internalType":"contract IERC20","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct LimitOrderProtocolRFQ.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"name":"fillOrderRFQ","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"contract IERC20","name":"makerAsset","type":"address"},{"internalType":"contract IERC20","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct LimitOrderProtocolRFQ.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"address payable","name":"target","type":"address"}],"name":"fillOrderRFQTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"info","type":"uint256"},{"internalType":"contract IERC20","name":"makerAsset","type":"address"},{"internalType":"contract IERC20","name":"takerAsset","type":"address"},{"internalType":"address","name":"maker","type":"address"},{"internalType":"address","name":"allowedSender","type":"address"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"}],"internalType":"struct LimitOrderProtocolRFQ.OrderRFQ","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"makingAmount","type":"uint256"},{"internalType":"uint256","name":"takingAmount","type":"uint256"},{"internalType":"address payable","name":"target","type":"address"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"fillOrderRFQToWithPermit","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"},{"internalType":"uint256","name":"slot","type":"uint256"}],"name":"invalidatorForOrderRFQ","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IAggregationExecutor","name":"caller","type":"address"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address payable","name":"srcReceiver","type":"address"},{"internalType":"address payable","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"}],"internalType":"struct AggregationRouterV4.SwapDescription","name":"desc","type":"tuple"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"spentAmount","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"}]

6101606040523480156200001257600080fd5b5060405162004a1e38038062004a1e8339810160408190526200003591620001a4565b80816040518060400160405280600981526020016831696e63682052465160b81b815250604051806040016040528060018152602001601960f91b8152506000620000856200015760201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350815160208084019190912082519183019190912060c082905260e08190527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001186200015b565b60a052620001288184846200015f565b6080526101005250505050606090811b6001600160601b03199081166101205291901b16610140525062000200565b3390565b4690565b60008383836200016e6200015b565b3060405160200162000185959493929190620001d4565b6040516020818303038152906040528051906020012090509392505050565b600060208284031215620001b6578081fd5b81516001600160a01b0381168114620001cd578182fd5b9392505050565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b60805160a05160c05160e051610100516101205160601c6101405160601c6147ab62000273600039806113dd52806114a05280611579528061161652806116cf52508061191f5280611b045250806121005250806121425250806121215250806120a75250806120d752506147ab6000f3fe6080604052600436106101485760003560e01c8063825caba1116100c0578063bc80f1a811610074578063e449022e11610059578063e449022e1461035f578063f2fde38b14610372578063fa461e331461039257610192565b8063bc80f1a814610339578063d0a3b6651461034c57610192565b80638da5cb5b116100a55780638da5cb5b146102e4578063a1251d7514610306578063baba58551461032657610192565b8063825caba1146102af57806383197ef0146102cf57610192565b80634cc4a27b11610117578063715018a6116100fc578063715018a61461025857806378e3214f1461026d5780637c0252001461028d57610192565b80634cc4a27b1461020a57806356f161241461023857610192565b806306bf53d0146101975780632521b930146101c25780632e95b6c8146101e25780633644e515146101f557610192565b366101925733321415610190576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906140cc565b60405180910390fd5b005b600080fd5b3480156101a357600080fd5b506101ac6103b2565b6040516101b99190613cad565b60405180910390f35b3480156101ce57600080fd5b506101ac6101dd3660046134e9565b6103d6565b6101ac6101f03660046136ff565b6103fd565b34801561020157600080fd5b506101ac61094e565b34801561021657600080fd5b5061022a6102253660046138f5565b61095e565b6040516101b9929190613e78565b34801561024457600080fd5b506101ac6102533660046135f6565b61098f565b34801561026457600080fd5b506101906109c7565b34801561027957600080fd5b506101906102883660046135f6565b610aa9565b6102a061029b366004613681565b610b41565b6040516101b9939291906146ae565b3480156102bb57600080fd5b506101906102ca36600461397f565b61100f565b3480156102db57600080fd5b5061019061101c565b3480156102f057600080fd5b506102f9611092565b6040516101b99190613cb6565b34801561031257600080fd5b506101ac610321366004613716565b6110ae565b61022a610334366004613878565b6110d4565b6101ac61034736600461358e565b61180a565b61022a61035a366004613811565b611b99565b6101ac61036d3660046139af565b611bb8565b34801561037e57600080fd5b5061019061038d3660046134cd565b611bd2565b34801561039e57600080fd5b506101906103ad3660046137cc565b611d1f565b7f74ab4f0cde46aaf927859983f7d04002116dd057d4c4941f6dbfb775c3e31f4581565b60006103e3888484611ee9565b6103f0898888888861180a565b9998505050505050505050565b6000610568565b3d6000803e3d6000fd5b7f08c379a0000000000000000000000000000000000000000000000000000000006000527c200000000000000000000000000000000000000000000000000000000060205280604052816000fd5b60007f0902f1ac000000000000000000000000000000000000000000000000000000008252604082600484875afa61049657610496610404565b60603d146104c6576104c660597c1472657365727665732063616c6c206661696c6564000000000000000061040e565b8151602083015186156104d557905b7f022c0d9f000000000000000000000000000000000000000000000000000000008452878502633b9aca0092909202820191020490508480156105245781600484015260006024840152610532565b600060048401528160248401525b50866044830152608060648301526000608483015260008060a4846000885af161055e5761055e610404565b9695505050505050565b60405160c0810160405260046064350180356020820191508060200282019050813589600081146106285734156105c1576105c160557c11696e76616c6964206d73672e76616c7565000000000000000000000061040e565b7f23b872dd00000000000000000000000000000000000000000000000000000000855233600486015273ffffffffffffffffffffffffffffffffffffffff8216602486015289604486015260008060648760008f5af161062357610623610404565b610714565b348a146106575761065760557c11696e76616c6964206d73672e76616c7565000000000000000000000061040e565b7fd0e30db00000000000000000000000000000000000000000000000000000000085526000806004878d7321be370d5312f44cb42ce377bc9b8a0cef1a4c835af16106a4576106a4610404565b7fa9059cbb00000000000000000000000000000000000000000000000000000000855273ffffffffffffffffffffffffffffffffffffffff8216600486015289602486015260008060448760007321be370d5312f44cb42ce377bc9b8a0cef1a4c835af161071457610714610404565b50889450602083015b828110156107ac5780356107a073ffffffffffffffffffffffffffffffffffffffff821677ffffffff0000000000000000000000000000000000000000851660a01c7f8000000000000000000000000000000000000000000000000000000000000000861673ffffffffffffffffffffffffffffffffffffffff87168b8b61045c565b9650915060200161071d565b507f4000000000000000000000000000000000000000000000000000000000000000811680156108aa576108393077ffffffff0000000000000000000000000000000000000000841660a01c7f8000000000000000000000000000000000000000000000000000000000000000851673ffffffffffffffffffffffffffffffffffffffff86168a8a61045c565b95507f2e1a7d4d00000000000000000000000000000000000000000000000000000000855285600486015260008060248760007321be370d5312f44cb42ce377bc9b8a0cef1a4c835af161088f5761088f610404565b60008060008089335af16108a5576108a5610404565b610910565b61090d3377ffffffff0000000000000000000000000000000000000000841660a01c7f8000000000000000000000000000000000000000000000000000000000000000851673ffffffffffffffffffffffffffffffffffffffff86168a8a61045c565b95505b50505050508381101561094557610945605a7c164d696e2072657475726e206e6f74207265616368656400000000000061040e565b95945050505050565b60006109586120a3565b90505b90565b6000806109708a604001518585611ee9565b61097e8a8a8a8a8a8a6110d4565b915091509850989650505050505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602090815260408083208484529091529020545b92915050565b6109cf61216d565b73ffffffffffffffffffffffffffffffffffffffff166109ed611092565b73ffffffffffffffffffffffffffffffffffffffff1614610a3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614399565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610ab161216d565b73ffffffffffffffffffffffffffffffffffffffff16610acf611092565b73ffffffffffffffffffffffffffffffffffffffff1614610b1c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614399565b610b3d73ffffffffffffffffffffffffffffffffffffffff83163383612171565b5050565b6000806000808660a0013511610b83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614305565b83610bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614677565b60c08601356000610bce60208901896134cd565b90506000610be260408a0160208b016134cd565b90506000610c058373ffffffffffffffffffffffffffffffffffffffff166121ef565b90506002841615610c5f5780610c1c576000610c22565b89608001355b3411610c5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614103565b610ca9565b80610c6b576000610c71565b89608001355b3414610ca9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614103565b80610cfb57610cc483610cbf60e08d018d6146c4565b611ee9565b610cfb33610cd860608d0160408e016134cd565b73ffffffffffffffffffffffffffffffffffffffff8616919060808e0135612245565b604051600090610d37907f2636f7f80000000000000000000000000000000000000000000000000000000090839033908e908e90602001613a3e565b60405160208183030381529060405290506000808d73ffffffffffffffffffffffffffffffffffffffff163484604051610d719190613b0b565b60006040518083038185875af1925050503d8060008114610dae576040519150601f19603f3d011682016040523d82523d6000602084013e610db3565b606091505b509150915081610e2f57610dfc816040518060400160405280601281526020017f63616c6c4279746573206661696c65643a2000000000000000000000000000008152506122ee565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879190613ea4565b505060408051808201909152601681527f526573756c742073686f756c64206e6f74206265203000000000000000000000602082015260808c01359750610e9b9150600190610e9473ffffffffffffffffffffffffffffffffffffffff861630612499565b9190612570565b96506001841615610f57576000610ec873ffffffffffffffffffffffffffffffffffffffff851630612499565b90508015610efd57610eda87826125bb565b9650610efd73ffffffffffffffffffffffffffffffffffffffff85163383612171565b610f0b60a08c0135886125fd565b610f198960808e01356125fd565b1015610f51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906142ce565b50610f95565b8960a00135871015610f95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906142ce565b600080610fa860808d0160608e016134cd565b73ffffffffffffffffffffffffffffffffffffffff1614610fd857610fd360808c0160608d016134cd565b610fda565b335b9050610ffd73ffffffffffffffffffffffffffffffffffffffff8416828a612171565b5a955050505050509450945094915050565b6110193382612651565b50565b61102461216d565b73ffffffffffffffffffffffffffffffffffffffff16611042611092565b73ffffffffffffffffffffffffffffffffffffffff161461108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614399565b33ff5b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60006110bb888484611ee9565b6110c888888888886103fd565b98975050505050505050565b606086015186517f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116808952600092839290917f8000000000000000000000000000000000000000000000000000000000000000821615159160401c67ffffffffffffffff168015806111485750804211155b61117e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613fca565b6111888483612651565b505060a08a015160c08b0151871580156111a0575088155b156111b0578198508097506112bc565b8761123657818911156111ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613f25565b61122f826112297fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201611223858e6125fd565b906126ef565b9061272e565b97506112bc565b8861128a5780881115611275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613eee565b61128381611229848b6125fd565b98506112bc565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614575565b50506000871180156112ce5750600086115b611304576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906144e1565b60808a015173ffffffffffffffffffffffffffffffffffffffff161580611344575060808a015173ffffffffffffffffffffffffffffffffffffffff1633145b61137a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061443c565b60006113cd7f74ab4f0cde46aaf927859983f7d04002116dd057d4c4941f6dbfb775c3e31f458c6040516020016113b2929190613e02565b6040516020818303038152906040528051906020012061277a565b90506113db83828c8c6127b3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168b6020015173ffffffffffffffffffffffffffffffffffffffff161480156114375750815b156115505760208b01516114639073ffffffffffffffffffffffffffffffffffffffff1684308b612245565b6040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d906114d5908b90600401613cad565b600060405180830381600087803b1580156114ef57600080fd5b505af1158015611503573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff891692508a156108fc0291508a906000818181858888f1935050505015801561154a573d6000803e3d6000fd5b50611577565b60208b01516115779073ffffffffffffffffffffffffffffffffffffffff1684888b612245565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168b6040015173ffffffffffffffffffffffffffffffffffffffff161480156115d65750600034115b1561176157863414611614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613f5c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b15801561167c57600080fd5b505af1158015611690573d6000803e3d6000fd5b50506040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb9250611709915086908b90600401613d4f565b602060405180830381600087803b15801561172357600080fd5b505af1158015611737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175b9190613621565b506117c0565b3415611799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613f5c565b60408b01516117c09073ffffffffffffffffffffffffffffffffffffffff1633858a612245565b7fc3b639f02b125bfa160e50739b8c44eb2d1b6908e2b6d5925c6d770f2ca7812781896040516117f1929190613e78565b60405180910390a1509599949850939650505050505050565b60008180611844576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613eb7565b8591507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81016000807f40000000000000000000000000000000000000000000000000000000000000008787838161189857fe5b90506020020135161190506000807f20000000000000000000000000000000000000000000000000000000000000008888868181106118d357fe5b905060200201351611905081156119a35788341461191d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906145ac565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08a6040518263ffffffff1660e01b81526004016000604051808303818588803b15801561198557600080fd5b505af1158015611999573d6000803e3d6000fd5b50505050506119db565b34156119db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790613f93565b6001841115611a6957611a0f30836119f357336119f5565b305b89896000818110611a0257fe5b90506020020135886129d8565b945060015b83811015611a4457611a3a30308a8a85818110611a2d57fe5b90506020020135896129d8565b9550600101611a14565b50611a6281611a53578a611a55565b305b30898987818110611a0257fe5b9450611a87565b611a8481611a77578a611a79565b305b836119f357336119f5565b94505b87851015611ac1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614640565b8015611b8c576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d90611b39908890600401613cad565b600060405180830381600087803b158015611b5357600080fd5b505af1158015611b67573d6000803e3d6000fd5b50611b8c9250505073ffffffffffffffffffffffffffffffffffffffff8b1686612bba565b5050505095945050505050565b600080611baa8787878787336110d4565b915091509550959350505050565b6000611bc7338686868661180a565b90505b949350505050565b611bda61216d565b73ffffffffffffffffffffffffffffffffffffffff16611bf8611092565b73ffffffffffffffffffffffffffffffffffffffff1614611c45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614399565b73ffffffffffffffffffffffffffffffffffffffff8116611c92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614001565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b604051601581017f0dfe1681d21220a7ddca3f43a9059cbb23b872dd0000000000000000000000008252602081600484335afa611d5e57611d5e610404565b60208082016004808501335afa611d7757611d77610404565b602060408201600460088501335afa611d9257611d92610404565b6000806000881360018114611db05760208401519250879150611db8565b835192508891505b507fff1f98431c8ad98523631ae4a59f267346ea31f984000000000000000000000084526060832083527fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54602084015273ffffffffffffffffffffffffffffffffffffffff6055852016925033831815611e5457611e5460547c10554e495633523a2062616420706f6f6c00000000000000000000000061040e565b60843592507f0dfe1681d21220a7ddca3f43a9059cbb23b872dd000000000000000000000000845230831460018114611eb8578360148601523360348601528160548601526000806064601088016000875af1611eb357611eb3610404565b611ede565b3360108601528160308601526000806044600c88016000875af1611ede57611ede610404565b505050505050505050565b801561209e576000606060e0831415611fce5760405173ffffffffffffffffffffffffffffffffffffffff861690611f49907fd505accf000000000000000000000000000000000000000000000000000000009087908790602001613acf565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052611f8191613b0b565b6000604051808303816000865af19150503d8060008114611fbe576040519150601f19603f3d011682016040523d82523d6000602084013e611fc3565b606091505b509092509050612057565b6101008314156120255760405173ffffffffffffffffffffffffffffffffffffffff861690611f49907f8fcbaf0c000000000000000000000000000000000000000000000000000000009087908790602001613acf565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906143ce565b8161209b57610dfc816040518060400160405280600f81526020017f5065726d6974206661696c65643a2000000000000000000000000000000000008152506122ee565b50505b505050565b60007f00000000000000000000000000000000000000000000000000000000000000006120ce612c97565b14156120fb57507f000000000000000000000000000000000000000000000000000000000000000061095b565b6121667f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612c9b565b905061095b565b3390565b801561209e57612180836121ef565b156121ce5760405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156121c8573d6000803e3d6000fd5b5061209e565b61209e73ffffffffffffffffffffffffffffffffffffffff84168383612cdc565b600073ffffffffffffffffffffffffffffffffffffffff8216158061223d575073ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b90505b919050565b6122e8846323b872dd60e01b85858560405160240161226693929190613cd7565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612cfb565b50505050565b606060048351106124675760208301517fffffffff0000000000000000000000000000000000000000000000000000000081167f08c379a00000000000000000000000000000000000000000000000000000000014801561235157506044845110155b156123d6576000606060248601519150816024018601905080518260240101865110156123aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614405565b84816040516020016123bd929190613c2b565b60405160208183030381529060405293505050506109c1565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f4e487b7100000000000000000000000000000000000000000000000000000000148015612428575083516024145b156124655760248401518361243c82612db1565b60405160200161244d929190613b27565b604051602081830303815290604052925050506109c1565b505b8161247184612dd7565b604051602001612482929190613ba9565b604051602081830303815290604052905092915050565b60006124a4836121ef565b156124c7575073ffffffffffffffffffffffffffffffffffffffff8116316109c1565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190612519908590600401613cb6565b60206040518083038186803b15801561253157600080fd5b505afa158015612545573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125699190613997565b90506109c1565b600081848411156125ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879190613ea4565b50508183035b9392505050565b6000828211156125f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061413a565b50900390565b60008261260c575060006109c1565b8282028284828161261957fe5b04146125b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061433c565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020818152604080842066ffffffffffffff600887901c1680865292819052932054909260ff85169290921b9190808316156126d7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906144aa565b60009384526020919091526040909220911790555050565b6000828201838110156125b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879061405e565b6000808211612769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614262565b81838161277257fe5b049392505050565b60006127846120a3565b82604051602001612796929190613c77565b604051602081830303815290604052805190602001209050919050565b8373ffffffffffffffffffffffffffffffffffffffff1661280a8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061301392505050565b73ffffffffffffffffffffffffffffffffffffffff16146122e8576000808573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b86868660405160240161285c93929190613dae565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516128e59190613b0b565b600060405180830381855afa9150503d8060008114612920576040519150601f19603f3d011682016040523d82523d6000602084013e612925565b606091505b5091509150818015612938575080516020145b801561299a575080517f1626ba7e00000000000000000000000000000000000000000000000000000000906129769083016020908101908401613641565b7fffffffff0000000000000000000000000000000000000000000000000000000016145b6129d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614095565b505050505050565b60007f80000000000000000000000000000000000000000000000000000000000000008316158015612adc5760008473ffffffffffffffffffffffffffffffffffffffff1663128acb088884612a2d88613077565b6401000276a48b604051602001612a449190613cb6565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612a73959493929190613d08565b6040805180830381600087803b158015612a8c57600080fd5b505af1158015612aa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ac491906137a9565b915050612ad3816000036130d6565b92505050611bca565b60008473ffffffffffffffffffffffffffffffffffffffff1663128acb088884612b0588613077565b73fffd8963efd1fc6a506488495d951d5263988d258b604051602001612b2b9190613cb6565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612b5a959493929190613d08565b6040805180830381600087803b158015612b7357600080fd5b505af1158015612b87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bab91906137a9565b509050612ad3816000036130d6565b80471015612bf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906141ce565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612c1a9061095b565b60006040518083038185875af1925050503d8060008114612c57576040519150601f19603f3d011682016040523d82523d6000602084013e612c5c565b606091505b505090508061209e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614171565b4690565b6000838383612ca8612c97565b30604051602001612cbd959493929190613d75565b6040516020818303038152906040528051906020012090509392505050565b61209e8363a9059cbb60e01b8484604051602401612266929190613d4f565b6000612d5d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131129092919063ffffffff16565b80519091501561209e5780806020019051810190612d7b9190613621565b61209e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610187906145e3565b606061223d82604051602001612dc79190613cad565b6040516020818303038152906040525b80516060907f30313233343536373839616263646566000000000000000000000000000000009060009060029081020167ffffffffffffffff81118015612e1d57600080fd5b506040519080825280601f01601f191660200182016040528015612e48576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e7957fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612ed657fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b845181101561300b57826004868381518110612f2057fe5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016901c60f81c60108110612f5657fe5b1a60f81b828260020260020181518110612f6c57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535082858281518110612fa857fe5b60209101015160f81c600f1660108110612fbe57fe5b1a60f81b828260020260030181518110612fd457fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600101612f08565b509392505050565b60008151604114156130475760208201516040830151606084015160001a61303d86828585613121565b93505050506109c1565b81516040141561306f576020820151604083015161306685838361320f565b925050506109c1565b5060006109c1565b60007f800000000000000000000000000000000000000000000000000000000000000082106130d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614518565b5090565b6000808212156130d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614299565b6060611bca8484600085613248565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561315357506000611bca565b8360ff16601b1415801561316b57508360ff16601c14155b1561317857506000611bca565b60006001868686866040516000815260200160405260405161319d9493929190613e86565b6020604051602081039080840390855afa1580156131bf573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116611bc7576000915050611bca565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821660ff83901c601b0161055e86828785613121565b606082471015613284576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614205565b61328d85613349565b6132c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018790614473565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516132ec9190613b0b565b60006040518083038185875af1925050503d8060008114613329576040519150601f19603f3d011682016040523d82523d6000602084013e61332e565b606091505b509150915061333e82828661334f565b979650505050505050565b3b151590565b6060831561335e5750816125b4565b82511561336e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101879190613ea4565b803561224081614753565b60008083601f8401126133be578182fd5b50813567ffffffffffffffff8111156133d5578182fd5b60208301915083602080830285010111156133ef57600080fd5b9250929050565b60008083601f840112613407578182fd5b50813567ffffffffffffffff81111561341e578182fd5b6020830191508360208285010111156133ef57600080fd5b600060e08284031215613447578081fd5b60405160e0810181811067ffffffffffffffff8211171561346457fe5b6040528235815290508061347a602084016133a2565b602082015261348b604084016133a2565b604082015261349c606084016133a2565b60608201526134ad608084016133a2565b608082015260a083013560a082015260c083013560c08201525092915050565b6000602082840312156134de578081fd5b81356125b481614753565b60008060008060008060008060c0898b031215613504578384fd5b883561350f81614753565b9750602089013561351f81614753565b96506040890135955060608901359450608089013567ffffffffffffffff80821115613549578586fd5b6135558c838d016133ad565b909650945060a08b013591508082111561356d578384fd5b5061357a8b828c016133f6565b999c989b5096995094979396929594505050565b6000806000806000608086880312156135a5578081fd5b85356135b081614753565b94506020860135935060408601359250606086013567ffffffffffffffff8111156135d9578182fd5b6135e5888289016133ad565b969995985093965092949392505050565b60008060408385031215613608578182fd5b823561361381614753565b946020939093013593505050565b600060208284031215613632578081fd5b815180151581146125b4578182fd5b600060208284031215613652578081fd5b81517fffffffff00000000000000000000000000000000000000000000000000000000811681146125b4578182fd5b60008060008060608587031215613696578384fd5b84356136a181614753565b9350602085013567ffffffffffffffff808211156136bd578485fd5b9086019061010082890312156136d1578485fd5b909350604086013590808211156136e6578384fd5b506136f3878288016133f6565b95989497509550505050565b6000806000806000608086880312156135a5578283fd5b600080600080600080600060a0888a031215613730578081fd5b873561373b81614753565b96506020880135955060408801359450606088013567ffffffffffffffff80821115613765578283fd5b6137718b838c016133ad565b909650945060808a0135915080821115613789578283fd5b506137968a828b016133f6565b989b979a50959850939692959293505050565b600080604083850312156137bb578182fd5b505080516020909101519092909150565b600080600080606085870312156137e1578182fd5b8435935060208501359250604085013567ffffffffffffffff811115613805578283fd5b6136f3878288016133f6565b60008060008060006101408688031215613829578283fd5b6138338787613436565b945060e086013567ffffffffffffffff81111561384e578384fd5b61385a888289016133f6565b96999098509596610100810135966101209091013595509350505050565b6000806000806000806101608789031215613891578384fd5b61389b8888613436565b955060e087013567ffffffffffffffff8111156138b6578485fd5b6138c289828a016133f6565b909650945050610100870135925061012087013591506101408701356138e781614753565b809150509295509295509295565b600080600080600080600080610180898b031215613911578182fd5b61391b8a8a613436565b975060e089013567ffffffffffffffff80821115613937578384fd5b6139438c838d016133f6565b90995097506101008b013596506101208b013595506101408b0135915061396982614753565b9093506101608a0135908082111561356d578384fd5b600060208284031215613990578081fd5b5035919050565b6000602082840312156139a8578081fd5b5051919050565b600080600080606085870312156139c4578182fd5b8435935060208501359250604085013567ffffffffffffffff8111156139e8578283fd5b6136f3878288016133ad565b60008151808452613a0c816020860160208601614727565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60007fffffffff00000000000000000000000000000000000000000000000000000000871682527fffffffffffffffffffffffff0000000000000000000000000000000000000000861660048301527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008560601b166010830152828460248401379101602401908152949350505050565b60007fffffffff000000000000000000000000000000000000000000000000000000008516825282846004840137910160040190815292915050565b60008251613b1d818460208701614727565b9190910192915050565b60008351613b39818460208801614727565b7f50616e69632800000000000000000000000000000000000000000000000000009083019081528351613b73816006840160208801614727565b7f290000000000000000000000000000000000000000000000000000000000000060069290910191820152600701949350505050565b60008351613bbb818460208801614727565b7f556e6b6e6f776e280000000000000000000000000000000000000000000000009083019081528351613bf5816008840160208801614727565b7f290000000000000000000000000000000000000000000000000000000000000060089290910191820152600901949350505050565b60008351613c3d818460208801614727565b7f4572726f722800000000000000000000000000000000000000000000000000009083019081528351613b73816006840160208801614727565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b90815260200190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff8088168352861515602084015285604084015280851660608401525060a0608083015261333e60a08301846139f4565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b94855260208501939093526040840191909152606083015273ffffffffffffffffffffffffffffffffffffffff16608082015260a00190565b60008482526040602083015282604083015282846060840137818301606090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016010192915050565b60006101008201905083825282516020830152602083015173ffffffffffffffffffffffffffffffffffffffff80821660408501528060408601511660608501528060608601511660808501528060808601511660a0850152505060a083015160c083015260c083015160e08301529392505050565b918252602082015260400190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526125b460208301846139f4565b60208082526013908201527f554e495633523a20656d70747920706f6f6c7300000000000000000000000000604082015260600190565b6020808252601b908201527f4c4f503a2074616b696e6720616d6f756e742065786365656465640000000000604082015260600190565b6020808252601b908201527f4c4f503a206d616b696e6720616d6f756e742065786365656465640000000000604082015260600190565b60208082526014908201527f4c4f503a2077726f6e67206d73672e76616c7565000000000000000000000000604082015260600190565b6020808252601d908201527f554e495633523a206d73672e76616c75652073686f756c642062652030000000604082015260600190565b60208082526012908201527f4c4f503a206f7264657220657870697265640000000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526012908201527f4c4f503a20626164207369676e61747572650000000000000000000000000000604082015260600190565b60208082526014908201527f455448206465706f7369742072656a6563746564000000000000000000000000604082015260600190565b60208082526011908201527f496e76616c6964206d73672e76616c7565000000000000000000000000000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252601b908201527f52657475726e20616d6f756e74206973206e6f7420656e6f7567680000000000604082015260600190565b6020808252601a908201527f4d696e2072657475726e2073686f756c64206e6f742062652030000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526013908201527f57726f6e67207065726d6974206c656e67746800000000000000000000000000604082015260600190565b60208082526015908201527f496e76616c69642072657665727420726561736f6e0000000000000000000000604082015260600190565b60208082526012908201527f4c4f503a2070726976617465206f726465720000000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526016908201527f4c4f503a20696e76616c696461746564206f7264657200000000000000000000604082015260600190565b60208082526018908201527f4c4f503a2063616e27742073776170203020616d6f756e740000000000000000604082015260600190565b60208082526028908201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160408201527f6e20696e74323536000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4c4f503a206f6e65206f6620616d6f756e74732073686f756c64206265203000604082015260600190565b60208082526017908201527f554e495633523a2077726f6e67206d73672e76616c7565000000000000000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526012908201527f554e495633523a206d696e2072657475726e0000000000000000000000000000604082015260600190565b60208082526018908201527f646174612073686f756c64206e6f7420626520656d7074790000000000000000604082015260600190565b9283526020830191909152604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126146f8578283fd5b83018035915067ffffffffffffffff821115614712578283fd5b6020019150368190038213156133ef57600080fd5b60005b8381101561474257818101518382015260200161472a565b838111156122e85750506000910152565b73ffffffffffffffffffffffffffffffffffffffff8116811461101957600080fdfea26469706673582212200bf92f886b276e62374c5ada110799221b470dfd5739047f5878e961d31da36364736f6c6343000706003300000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83

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

00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83

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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83


Deployed ByteCode Sourcemap

92342:3850:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34783:10;34797:9;34783:23;;34775:56;;;;;;;;;;;;:::i;:::-;;;;;;;;;92342:3850;;;;;56589:218;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;85470:386;;;;;;;;;;-1:-1:-1;85470:386:0;;;;;:::i;:::-;;:::i;67207:6186::-;;;;;;:::i;:::-;;:::i;57159:105::-;;;;;;;;;;;;;:::i;59031:467::-;;;;;;;;;;-1:-1:-1;59031:467:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;57472:143::-;;;;;;;;;;-1:-1:-1;57472:143:0;;;;;:::i;:::-;;:::i;11914:148::-;;;;;;;;;;;;;:::i;95974:126::-;;;;;;;;;;-1:-1:-1;95974:126:0;;;;;:::i;:::-;;:::i;93565:2401::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;57662:110::-;;;;;;;;;;-1:-1:-1;57662:110:0;;;;;:::i;:::-;;:::i;96108:81::-;;;;;;;;;;;;;:::i;11263:87::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;66414:333::-;;;;;;;;;;-1:-1:-1;66414:333:0;;;;;:::i;:::-;;:::i;59861:3179::-;;;;;;:::i;:::-;;:::i;86919:1539::-;;;;;;:::i;:::-;;:::i;58052:358::-;;;;;;:::i;:::-;;:::i;86187:244::-;;;;;;:::i;:::-;;:::i;12217:::-;;;;;;;;;;-1:-1:-1;12217:244:0;;;;;:::i;:::-;;:::i;88510:2920::-;;;;;;;;;;-1:-1:-1;88510:2920:0;;;;;:::i;:::-;;:::i;56589:218::-;56640:167;56589:218;:::o;85470:386::-;85711:20;85744:34;85760:8;85771:6;;85744:7;:34::i;:::-;85796:52;85812:9;85823:6;85831:9;85842:5;;85796:15;:52::i;:::-;85789:59;85470:386;-1:-1:-1;;;;;;;;;85470:386:0:o;67207:6186::-;67421:20;67522:137;;;67582:16;67579:1;67576;67561:38;67627:16;67624:1;67617:27;67675:308;67738:66;67735:1;67728:77;67836:66;67830:4;67823:80;67934:1;67928:4;67921:15;67964:3;67961:1;67954:14;67999:1618;;68110:39;68100:8;68093:57;68227:4;68217:8;68212:3;68202:8;68196:4;68189:5;68178:54;68168:2;;68257:10;;:::i;:::-;68335:4;68317:16;68314:26;68304:2;;68365:90;68450:4;68382:66;68365:90;:::i;:::-;68543:8;68537:15;68606:4;68596:8;68592:19;68586:26;68633:8;68630:2;;;68718:8;68630:2;68957:35;68940:53;;68807:26;;;68905:12;68891:27;;;;68882:37;;68862:18;;68858:62;;-1:-1:-1;69018:8:0;69044:133;;;;69254:3;69247:4;69237:8;69233:19;69226:32;69308:1;69301:4;69291:8;69287:19;69280:30;69011:318;;69044:133;69102:1;69095:4;69085:8;69081:19;69074:30;69154:3;69147:4;69137:8;69133:19;69126:32;69011:318;;69375:3;69368:4;69358:8;69354:19;69347:32;69425:4;69418;69408:8;69404:19;69397:33;69476:1;69469:4;69459:8;69455:19;69448:30;69546:1;69543;69537:4;69527:8;69524:1;69518:4;69511:5;69506:42;69496:2;;69573:10;;:::i;:::-;68074:1543;;;;;;;;:::o;:::-;69655:4;69649:11;69701:4;69691:8;69687:19;69681:4;69674:33;69766:3;69759:4;69746:18;69742:28;69819:11;69806:25;69877:4;69864:11;69860:22;69845:37;;69941:14;69935:4;69931:25;69918:11;69914:43;69896:61;;69999:11;69986:25;70032:8;70059:1;70054:750;;;;70848:11;70845:2;;;70883:90;70968:4;70900:66;70883:90;:::i;:::-;71053:31;71043:8;71036:49;71130:8;71124:3;71114:8;71110:18;71103:36;71198:13;71189:7;71185:27;71178:4;71168:8;71164:19;71157:56;71259:6;71252:4;71242:8;71238:19;71231:35;71338:1;71335;71329:4;71319:8;71316:1;71306:8;71299:5;71294:46;71284:2;;71365:10;;:::i;:::-;70025:1384;;70054:750;70101:11;70093:6;70090:23;70080:2;;70138:90;70223:4;70155:66;70138:90;:::i;:::-;70308:30;70298:8;70291:48;70412:1;70409;70404:3;70394:8;70386:6;70379:5;70372;70367:47;70357:2;;70439:10;;:::i;:::-;70505:32;70495:8;70488:50;70596:13;70587:7;70583:27;70577:3;70567:8;70563:18;70556:55;70657:6;70650:4;70640:8;70636:19;70629:35;70733:1;70730;70724:4;70714:8;70711:1;70704:5;70697;70692:43;70682:2;;70760:10;;:::i;:::-;70025:1384;71441:6;71425:22;;71494:4;71481:11;71477:22;71463:545;71507:14;71504:1;71501:21;71463:545;;;71594:1;71581:15;71632:319;71918:13;71905:11;71901:31;71861:15;71852:7;71848:29;71829:17;71825:53;71788:13;71779:7;71775:27;71738:13;71729:7;71725:27;71690:12;71659:8;71632:319;:::i;:::-;71616:335;-1:-1:-1;71982:11:0;-1:-1:-1;71536:4:0;71529:12;71463:545;;;-1:-1:-1;72044:10:0;72031:24;;72069:353;;;;72479:297;72748:9;72708:15;72699:7;72695:29;72676:17;72672:53;72635:13;72626:7;72622:27;72585:13;72576:7;72572:27;72537:12;72506:8;72479:297;:::i;:::-;72463:313;;72813:31;72803:8;72796:49;72891:12;72884:4;72874:8;72870:19;72863:41;72973:1;72970;72964:4;72954:8;72951:1;72944:5;72937;72932:43;72922:2;;73000:10;;:::i;:::-;73104:1;73101;73098;73095;73081:12;73071:8;73064:5;73059:47;73049:2;;73131:10;;:::i;:::-;72024:1151;;72069:353;72111:296;72380:8;72340:15;72331:7;72327:29;72308:17;72304:53;72267:13;72258:7;72254:27;72217:13;72208:7;72204:27;72169:12;72138:8;72111:296;:::i;:::-;72095:312;;72024:1151;;;;;;73211:9;73197:12;73194:27;73191:2;;;73241:90;73326:4;73258:66;73241:90;:::i;:::-;67463:5923;;;;;;;:::o;57159:105::-;57209:7;57236:20;:18;:20::i;:::-;57229:27;;57159:105;;:::o;59031:467::-;59283:7;59317;59362:42;59378:5;:16;;;59397:6;;59362:7;:42::i;:::-;59422:68;59437:5;59444:9;;59455:12;59469;59483:6;59422:14;:68::i;:::-;59415:75;;;;59031:467;;;;;;;;;;;:::o;57472:143::-;57582:19;;;57555:7;57582:19;;;:12;:19;;;;;;;;:25;;;;;;;;;57472:143;;;;;:::o;11914:148::-;11494:12;:10;:12::i;:::-;11483:23;;:7;:5;:7::i;:::-;:23;;;11475:68;;;;;;;;;;;;:::i;:::-;12021:1:::1;12005:6:::0;;11984:40:::1;::::0;::::1;12005:6:::0;;::::1;::::0;11984:40:::1;::::0;12021:1;;11984:40:::1;12052:1;12035:19:::0;;;::::1;::::0;;11914:148::o;95974:126::-;11494:12;:10;:12::i;:::-;11483:23;;:7;:5;:7::i;:::-;:23;;;11475:68;;;;;;;;;;;;:::i;:::-;96055:37:::1;:17;::::0;::::1;96073:10;96085:6:::0;96055:17:::1;:37::i;:::-;95974:126:::0;;:::o;93565:2401::-;93761:20;93796:19;93830:15;93904:1;93881:4;:20;;;:24;93873:63;;;;;;;;;;;;:::i;:::-;93955:15;93947:52;;;;;;;;;;;;:::i;:::-;94028:10;;;;94012:13;94067;;;;94028:4;94067:13;:::i;:::-;94049:31;-1:-1:-1;94091:15:0;94109:13;;;;;;;;:::i;:::-;94091:31;;94135:11;94149:16;:8;:14;;;:16::i;:::-;94135:30;-1:-1:-1;92670:6:0;94180:27;;:32;94176:235;;94250:6;:24;;94273:1;94250:24;;;94259:4;:11;;;94250:24;94237:9;:38;94229:68;;;;;;;;;;;;:::i;:::-;94176:235;;;94352:6;:24;;94375:1;94352:24;;;94361:4;:11;;;94352:24;94338:9;:39;94330:69;;;;;;;;;;;;:::i;:::-;94428:6;94423:162;;94451:39;94467:8;94478:11;;;;:4;:11;:::i;:::-;94451:7;:39::i;:::-;94505:68;94531:10;94543:16;;;;;;;;:::i;:::-;94505:25;;;;:68;94561:11;;;;94505:25;:68::i;:::-;94636:73;;94612:21;;94636:73;;94653:25;;94612:21;;94692:10;;94704:4;;;;94636:73;;;:::i;:::-;;;;;;;;;;;;;94612:97;;94789:12;94803:19;94834:6;94826:20;;94854:9;94865:8;94826:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94788:86;;;;94894:7;94889:111;;94929:54;94954:6;94929:54;;;;;;;;;;;;;;;;;:24;:54::i;:::-;94922:62;;;;;;;;;;;:::i;94889:111::-;-1:-1:-1;;95145:69:0;;;;;;;;;;;;;;;;;95037:11;;;;;-1:-1:-1;95145:69:0;;-1:-1:-1;95186:1:0;;95145:36;:21;;;95175:4;95145:21;:36::i;:::-;:40;:69;:40;:69::i;:::-;95130:84;-1:-1:-1;92610:6:0;95231:21;;:26;95227:535;;95274:21;95298:36;:21;;;95328:4;95298:21;:36::i;:::-;95274:60;-1:-1:-1;95353:17:0;;95349:168;;95405:30;:11;95421:13;95405:15;:30::i;:::-;95391:44;-1:-1:-1;95454:47:0;:20;;;95475:10;95487:13;95454:20;:47::i;:::-;95572:37;:20;;;;95597:11;95572:24;:37::i;:::-;95539:29;:12;95556:11;;;;95539:16;:29::i;:::-;:70;;95531:110;;;;;;;;;;;;:::i;:::-;95227:535;;;;95698:4;:20;;;95682:12;:36;;95674:76;;;;;;;;;;;;:::i;:::-;95774:27;;95805:16;;;;;;;;:::i;:::-;:30;;;95804:64;;95852:16;;;;;;;;:::i;:::-;95804:64;;;95839:10;95804:64;95774:94;-1:-1:-1;95879:47:0;:20;;;95774:94;95913:12;95879:20;:47::i;:::-;95949:9;95939:19;;93565:2401;;;;;;;;;;;;;:::o;57662:110::-;57725:39;57742:10;57754:9;57725:16;:39::i;:::-;57662:110;:::o;96108:81::-;11494:12;:10;:12::i;:::-;11483:23;;:7;:5;:7::i;:::-;:23;;;11475:68;;;;;;;;;;;;:::i;:::-;96170:10:::1;96157:24;11263:87:::0;11309:7;11336:6;;;11263:87;:::o;66414:333::-;66611:20;66644:34;66660:8;66671:6;;66644:7;:34::i;:::-;66696:43;66704:8;66714:6;66722:9;66733:5;;66696:7;:43::i;:::-;66689:50;66414:333;-1:-1:-1;;;;;;;;66414:333:0:o;59861:3179::-;60172:11;;;;60213:10;;60286:21;60272:36;;60259:49;;;-1:-1:-1;;;;60172:11:0;;56859:8;60213:30;;60212:36;;;60519:2;60502:19;;;60544:15;;;:48;;;60582:10;60563:15;:29;;60544:48;60536:79;;;;;;;;;;;;:::i;:::-;60672:29;60689:5;60696:4;60672:16;:29::i;:::-;-1:-1:-1;;60787:18:0;;;;60848;;;;60932:17;;:38;;;;-1:-1:-1;60953:17:0;;60932:38;60928:816;;;61054:17;61039:32;;61105:17;61090:32;;60928:816;;;61161:17;61157:587;;61223:17;61207:12;:33;;61199:73;;;;;;;;;;;;:::i;:::-;61306:85;61373:17;61306:62;61346:21;;;61306:35;:17;61328:12;61306:21;:35::i;:::-;:39;;:62::i;:::-;:66;;:85::i;:::-;61291:100;;61157:587;;;61430:17;61426:318;;61492:17;61476:12;:33;;61468:73;;;;;;;;;;;;:::i;:::-;61575:58;61615:17;61575:35;:17;61597:12;61575:21;:35::i;:58::-;61560:73;;61426:318;;;61687:41;;;;;;;;;;:::i;61426:318::-;59861:3179;;61790:1;61775:12;:16;:36;;;;;61810:1;61795:12;:16;61775:36;61767:73;;;;;;;;;;;;:::i;:::-;61888:19;;;;:33;;;;:70;;-1:-1:-1;61925:19:0;;;;:33;;61948:10;61925:33;61888:70;61880:101;;;;;;;;;;;;:::i;:::-;61992:17;62012:72;56640:167;62076:5;62039:43;;;;;;;;;:::i;:::-;;;;;;;;;;;;;62029:54;;;;;;62012:16;:72::i;:::-;61992:92;;62095:38;62105:5;62112:9;62123;;62095;:38::i;:::-;62197:5;62177:25;;:5;:16;;;:25;;;:39;;;;;62206:10;62177:39;62173:323;;;62233:16;;;;:69;;:33;;62267:5;62282:4;62289:12;62233:33;:69::i;:::-;62317:28;;;;;:14;:5;:14;;;;:28;;62332:12;;62317:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;62360:29:0;;:15;;;;-1:-1:-1;62360:29:0;;;;;-1:-1:-1;62376:12:0;;62360:29;;;;62376:12;62360:15;:29;;;;;;;;;;;;;;;;;;;;;62173:323;;;62422:16;;;;:62;;:33;;62456:5;62463:6;62471:12;62422:33;:62::i;:::-;62557:5;62537:25;;:5;:16;;;:25;;;:42;;;;;62578:1;62566:9;:13;62537:42;62533:397;;;62617:12;62604:9;:25;62596:58;;;;;;;;;;;;:::i;:::-;62669:5;:13;;;62691:12;62669:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;62722:35:0;;;;;:14;:5;:14;;-1:-1:-1;62722:14:0;;-1:-1:-1;62722:35:0;;-1:-1:-1;62737:5:0;;62744:12;;62722:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62533:397;;;62798:9;:14;62790:47;;;;;;;;;;;;:::i;:::-;62852:16;;;;:66;;:33;;62886:10;62898:5;62905:12;62852:33;:66::i;:::-;62947:39;62962:9;62973:12;62947:39;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;63005:12:0;;63019;;-1:-1:-1;59861:3179:0;;-1:-1:-1;;;;;;;59861:3179:0:o;86919:1539::-;87098:20;87145:5;87176:7;87168:39;;;;;;;;;;;;:::i;:::-;87271:6;;-1:-1:-1;87238:7:0;;;87218:17;;83745:8;87304:5;;87218:17;87304:8;;;;;;;;;;;:26;:30;87288:46;;87345:15;87402:1;83805:8;87363:5;;87369:9;87363:16;;;;;;;;;;;;;:36;:40;87345:58;;87418:8;87414:230;;;87464:6;87451:9;:19;87443:55;;;;;;;;;;;;:::i;:::-;87513:5;:13;;;87534:6;87513:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87414:230;;;87584:9;:14;87576:56;;;;;;;;;;;;:::i;:::-;87664:1;87658:3;:7;87654:597;;;87697:87;87715:4;87722:8;:37;;87749:10;87722:37;;;87741:4;87722:37;87761:5;;87767:1;87761:8;;;;;;;;;;;;;87771:12;87697:9;:87::i;:::-;87682:102;-1:-1:-1;87818:1:0;87801:153;87825:9;87821:1;:13;87801:153;;;87875:63;87893:4;87908;87915:5;;87921:1;87915:8;;;;;;;;;;;;;87925:12;87875:9;:63::i;:::-;87860:78;-1:-1:-1;87836:3:0;;87801:153;;;;87983:96;87993:10;:38;;88022:9;87993:38;;;88014:4;87993:38;88041:4;88048:5;;88054:9;88048:16;;;;;;87983:96;87968:111;;87654:597;;;88127:112;88137:10;:38;;88166:9;88137:38;;;88158:4;88137:38;88177:8;:37;;88204:10;88177:37;;88127:112;88112:127;;87654:597;88287:9;88271:12;:25;;88263:56;;;;;;;;;;;;:::i;:::-;88336:10;88332:119;;;88363:28;;;;;:14;:5;:14;;;;:28;;88378:12;;88363:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;88406:33:0;;-1:-1:-1;;;88406:19:0;;;88426:12;88406:19;:33::i;:::-;86919:1539;;;;;;;;;;;:::o;58052:358::-;58235:7;58269;58321:81;58336:5;58343:9;;58354:12;58368;58390:10;58321:14;:81::i;:::-;58314:88;;;;58052:358;;;;;;;;:::o;86187:244::-;86330:20;86370:53;86386:10;86398:6;86406:9;86417:5;;86370:15;:53::i;:::-;86363:60;;86187:244;;;;;;;:::o;12217:::-;11494:12;:10;:12::i;:::-;11483:23;;:7;:5;:7::i;:::-;:23;;;11475:68;;;;;;;;;;;;:::i;:::-;12306:22:::1;::::0;::::1;12298:73;;;;;;;;;;;;:::i;:::-;12408:6;::::0;;12387:38:::1;::::0;::::1;::::0;;::::1;::::0;12408:6;::::1;::::0;12387:38:::1;::::0;::::1;12436:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;12217:244::o;88510:2920::-;89243:4;89237:11;89293:2;89283:8;89279:17;89329:10;89319:8;89312:28;89418:4;89407:9;89402:3;89392:8;89382;89375:5;89364:59;89354:2;;89444:10;;:::i;:::-;89566:4;89561:2;89550:9;89546:18;89541:3;89535;89525:8;89521:18;89511:8;89504:5;89493:78;89483:2;;89592:10;;:::i;:::-;89714:4;89709:2;89698:9;89694:18;89689:3;89683;89673:8;89669:18;89659:8;89652:5;89641:78;89631:2;;89740:10;;:::i;:::-;89781:9;89804:10;89853:1;89839:12;89835:20;89874:1;89869:106;;;;90046:2;90035:9;90031:18;90025:25;90016:34;;90078:12;90068:22;;89828:277;;89869:106;89910:9;89904:16;89895:25;;89948:12;89938:22;;89828:277;;90138:11;90128:8;90121:29;90203:2;90192:9;90182:24;90171:9;90164:43;90283:20;90278:2;90267:9;90263:18;90256:48;90359:13;90354:2;90344:8;90334:23;90330:43;90318:55;;90400:8;90394:4;90390:19;90387:2;;;90429:90;90514:4;90446:66;90429:90;:::i;:::-;90597:4;90584:18;90571:31;;90633:10;90623:8;90616:28;90675:9;90668:5;90665:20;90704:1;90699:317;;;;91154:5;91149:2;91139:8;91135:17;91128:32;91204:8;91199:2;91189:8;91185:17;91178:35;91257:6;91252:2;91242:8;91238:17;91231:33;91341:1;91338;91333:3;91328:2;91318:8;91314:17;91311:1;91304:5;91297;91292:51;91282:2;;91368:10;;:::i;:::-;90658:754;;90699:317;90809:8;90804:2;90794:8;90790:17;90783:35;90862:6;90857:2;90847:8;90843:17;90836:33;90945:1;90942;90938:2;90933;90923:8;90919:17;90916:1;90909:5;90902;90897:50;90887:2;;90972:10;;:::i;:::-;90658:754;;;;;88682:2741;;;;:::o;40846:828::-;40925:17;;40921:746;;40959:12;40986:19;41041:6;41024:23;;41020:514;;;41167:54;;41156:10;;;;41167:54;;41184:28;;41214:6;;;;41167:54;;;:::i;:::-;;;;;;;;;;;;;;;41156:66;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41136:86:0;;-1:-1:-1;41136:86:0;-1:-1:-1;41020:514:0;;;41265:6;41248:23;;41244:290;;;41391:56;;41380:10;;;;41391:56;;41408:30;;41440:6;;;;41391:56;;;:::i;41244:290::-;41489:29;;;;;;;;;;:::i;41244:290::-;41553:7;41548:108;;41588:51;41613:6;41588:51;;;;;;;;;;;;;;;;;:24;:51::i;41548:108::-;40921:746;;;40846:828;;;:::o;47193:289::-;47254:7;47295:16;47278:13;:11;:13::i;:::-;:33;47274:201;;;-1:-1:-1;47335:24:0;47328:31;;47274:201;47399:64;47421:10;47433:12;47447:15;47399:21;:64::i;:::-;47392:71;;;;9804:106;9892:10;9804:106;:::o;42379:283::-;42474:10;;42470:185;;42505:12;42511:5;42505;:12::i;:::-;42501:143;;;42538:19;;:11;;;;:19;;;;;42550:6;;42538:19;;;;42550:6;42538:11;:19;;;;;;;;;;;;;;;;;;;;;42501:143;;;42598:30;:18;;;42617:2;42621:6;42598:18;:30::i;41996:133::-;42048:4;42073:22;;;;;:47;;-1:-1:-1;42099:21:0;;;41888:42;42099:21;42073:47;42065:56;;41996:133;;;;:::o;31633:205::-;31734:96;31754:5;31784:27;;;31813:4;31819:2;31823:5;31761:68;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31734:19;:96::i;:::-;31633:205;;;;:::o;37743:2036::-;37822:13;37867:1;37852:4;:11;:16;37848:1841;;38015:4;38005:15;;37999:22;38129:27;;;;;:48;;;;;38175:2;38160:4;:11;:17;;38129:48;38125:1553;;;38198:14;38231:19;38450:2;38444:4;38440:13;38434:20;38424:30;;38504:6;38500:2;38496:15;38490:4;38486:26;38476:36;;39059:6;:13;39050:6;39045:2;:11;:27;39030:4;:11;:42;;39022:76;;;;;;;;;;;;:::i;:::-;39148:6;39166;39131:47;;;;;;;;;:::i;:::-;;;;;;;;;;;;;39117:62;;;;;;;38125:1553;39274:27;;;;;:48;;;;;39305:4;:11;39320:2;39305:17;39274:48;39270:408;;;39553:2;39543:13;;39537:20;39625:6;39643:12;39537:20;39643:6;:12::i;:::-;39608:53;;;;;;;;;:::i;:::-;;;;;;;;;;;;;39594:68;;;;;;39270:408;37848:1841;;39732:6;39752:12;39759:4;39752:6;:12::i;:::-;39715:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;39701:70;;37743:2036;;;;:::o;42137:234::-;42213:7;42237:12;42243:5;42237;:12::i;:::-;42233:131;;;-1:-1:-1;42273:15:0;;;;42266:22;;42233:131;42328:24;;;;;:15;;;;;;:24;;42344:7;;42328:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42321:31;;;;20909:166;20995:7;21031:12;21023:6;;;;21015:29;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;21062:5:0;;;20909:166;;;;;;:::o;18544:158::-;18602:7;18635:1;18630;:6;;18622:49;;;;;;;;;;;;:::i;:::-;-1:-1:-1;18689:5:0;;;18544:158::o;18961:220::-;19019:7;19043:6;19039:20;;-1:-1:-1;19058:1:0;19051:8;;19039:20;19082:5;;;19086:1;19082;:5;:1;19106:5;;;;;:10;19098:56;;;;;;;;;;;;:::i;63563:503::-;63815:19;;;63642:23;63815:19;;;63726:1;63815:19;;;;;;;;63668:22;63689:1;63668:22;;;;63867:35;;;;;;;;;;63668:22;;63726:21;;;;;;;;63815:19;63921:28;;;:33;63913:68;;;;;;;;;;;;:::i;:::-;63992:35;;;;;;;;;;;;;64030:28;;63992:66;;-1:-1:-1;;63563:503:0:o;18082:179::-;18140:7;18172:5;;;18196:6;;;;18188:46;;;;;;;;;;;;:::i;19659:153::-;19717:7;19749:1;19745;:5;19737:44;;;;;;;;;;;;:::i;:::-;19803:1;19799;:5;;;;;;;19659:153;-1:-1:-1;;;19659:153:0:o;48469:185::-;48546:7;48612:20;:18;:20::i;:::-;48634:10;48583:62;;;;;;;;;:::i;:::-;;;;;;;;;;;;;48573:73;;;;;;48566:80;;48469:185;;;:::o;63048:507::-;63198:6;63156:48;;:38;63173:9;63184;;63156:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63156:16:0;;-1:-1:-1;;;63156:38:0:i;:::-;:48;;;63152:396;;63222:12;63236:19;63259:6;:17;;63318:34;;;63354:9;63365;;63295:80;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63259:131;;;;63295:80;63259:131;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63221:169;;;;63413:7;:30;;;;;63424:6;:13;63441:2;63424:19;63413:30;:100;;;;-1:-1:-1;63447:28:0;;63479:34;;63447:28;;;;;;;;;;;;:::i;:::-;:66;;;63413:100;63405:131;;;;;;;;;;;;:::i;:::-;63152:396;;63048:507;;;;:::o;91438:825::-;91538:7;83687:8;91576:25;;:30;91617:639;;;;91651:14;91684:4;91669:25;;;91713:9;91741:10;91770:25;91788:6;91770:17;:25::i;:::-;84445:14;91859:5;91848:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;91669:211;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91648:232;;;91902:28;91922:7;91921:8;;91902:18;:28::i;:::-;91895:35;;;;;;91617:639;91964:14;91998:4;91983:25;;;92027:9;92055:10;92084:25;92102:6;92084:17;:25::i;:::-;84631:53;92173:5;92162:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;91983:211;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91963:231;;;92216:28;92236:7;92235:8;;92216:18;:28::i;24883:397::-;24998:6;24973:21;:31;;24965:73;;;;;;;;;;;;:::i;:::-;25130:12;25148:9;:14;;25171:6;25148:35;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25129:54;;;25202:7;25194:78;;;;;;;;;;;;:::i;48662:326::-;48961:9;;48935:46::o;47490:337::-;47592:7;47672:8;47699:4;47722:7;47748:13;:11;:13::i;:::-;47788:4;47643:165;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;47619:200;;;;;;47612:207;;47490:337;;;;;:::o;31448:177::-;31531:86;31551:5;31581:23;;;31606:2;31610:5;31558:58;;;;;;;;;:::i;33753:761::-;34177:23;34203:69;34231:4;34203:69;;;;;;;;;;;;;;;;;34211:5;34203:27;;;;:69;;;;;:::i;:::-;34287:17;;34177:95;;-1:-1:-1;34287:21:0;34283:224;;34429:10;34418:30;;;;;;;;;;;;:::i;:::-;34410:85;;;;;;;;;;;;:::i;39787:124::-;39839:13;39872:31;39896:5;39879:23;;;;;;;;:::i;:::-;;;;;;;;;;;;;39919:466;40098:11;;39975:13;;40001:53;;:16;;40112:1;40098:15;;;40094:19;40084:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40084:30:0;;40065:49;;40125:12;:3;40129:1;40125:6;;;;;;;;;;;:12;;;;;;;;;;;40148;:3;40152:1;40148:6;;;;;;;;;;;:12;;;;;;;;;;;40176:9;40171:178;40195:4;:11;40191:1;:15;40171:178;;;40245:8;40271:1;40260:4;40265:1;40260:7;;;;;;;;;;;;;;:12;;:7;40254:19;40245:29;;;;;;;;;;40228:3;40236:1;40232;:5;40240:1;40232:9;40228:14;;;;;;;;;;;:46;;;;;;;;;;;40306:8;40321:4;40326:1;40321:7;;;;;;;;;;;;;;;40331:4;40315:21;40306:31;;;;;;;;;;40289:3;40297:1;40293;:5;40301:1;40293:9;40289:14;;;;;;;;;;;:48;;;;;;;;;;-1:-1:-1;40208:3:0;;40171:178;;;-1:-1:-1;40373:3:0;39919:466;-1:-1:-1;;;39919:466:0:o;50590:1343::-;50671:7;50891:9;:16;50911:2;50891:22;50887:1039;;;51231:4;51216:20;;51210:27;51281:4;51266:20;;51260:27;51339:4;51324:20;;51318:27;50930:9;51310:36;51382:25;51393:4;51310:36;51210:27;51260;51382:10;:25::i;:::-;51375:32;;;;;;;50887:1039;51429:9;:16;51449:2;51429:22;51425:501;;;51748:4;51733:20;;51727:27;51799:4;51784:20;;51778:27;51841:23;51852:4;51727:27;51778;51841:10;:23::i;:::-;51834:30;;;;;;51425:501;-1:-1:-1;51912:1:0;51897:17;;79993:181;80049:6;80084;80076:5;:14;80068:67;;;;;;;;;;;;:::i;:::-;-1:-1:-1;80160:5:0;79993:181::o;76811:171::-;76867:7;76904:1;76895:5;:10;;76887:55;;;;;;;;;;;;:::i;26444:195::-;26547:12;26579:52;26601:6;26609:4;26615:1;26618:12;26579:21;:52::i;52799:1493::-;52930:7;53850:66;53837:79;;53833:129;;;-1:-1:-1;53948:1:0;53933:17;;53833:129;53976:1;:7;;53981:2;53976:7;;:18;;;;;53987:1;:7;;53992:2;53987:7;;53976:18;53972:68;;;-1:-1:-1;54026:1:0;54011:17;;53972:68;54137:14;54154:24;54164:4;54170:1;54173;54176;54154:24;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54154:24:0;;;;;;-1:-1:-1;;54193:20:0;;;54189:70;;54245:1;54230:17;;;;;52196:421;52310:7;52449:66;52441:75;;52543:3;52539:12;;;52553:2;52535:21;52584:25;52595:4;52535:21;52604:1;52441:75;52584:10;:25::i;27496:530::-;27623:12;27681:5;27656:21;:30;;27648:81;;;;;;;;;;;;:::i;:::-;27748:18;27759:6;27748:10;:18::i;:::-;27740:60;;;;;;;;;;;;:::i;:::-;27874:12;27888:23;27915:6;:11;;27935:5;27943:4;27915:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27873:75;;;;27966:52;27984:7;27993:10;28005:12;27966:17;:52::i;:::-;27959:59;27496:530;-1:-1:-1;;;;;;;27496:530:0:o;23526:422::-;23893:20;23932:8;;;23526:422::o;30036:742::-;30151:12;30180:7;30176:595;;;-1:-1:-1;30211:10:0;30204:17;;30176:595;30325:17;;:21;30321:439;;30588:10;30582:17;30649:15;30636:10;30632:2;30628:19;30621:44;30536:148;30731:12;30724:20;;;;;;;;;;;:::i;14:138:1:-;84:20;;113:33;84:20;113:33;:::i;157:404::-;;;290:3;283:4;275:6;271:17;267:27;257:2;;315:8;305;298:26;257:2;-1:-1:-1;345:20:1;;388:18;377:30;;374:2;;;427:8;417;410:26;374:2;471:4;463:6;459:17;447:29;;534:3;527:4;519;511:6;507:17;499:6;495:30;491:41;488:50;485:2;;;551:1;548;541:12;485:2;247:314;;;;;:::o;566:377::-;;;683:3;676:4;668:6;664:17;660:27;650:2;;708:8;698;691:26;650:2;-1:-1:-1;738:20:1;;781:18;770:30;;767:2;;;820:8;810;803:26;767:2;864:4;856:6;852:17;840:29;;916:3;909:4;900:6;892;888:19;884:30;881:39;878:2;;;933:1;930;923:12;948:843;;1054:4;1042:9;1037:3;1033:19;1029:30;1026:2;;;1076:5;1069;1062:20;1026:2;1113;1107:9;1155:4;1147:6;1143:17;1226:6;1214:10;1211:22;1190:18;1178:10;1175:34;1172:62;1169:2;;;1237:9;1169:2;1264;1257:22;1327:23;;1312:39;;1297:6;-1:-1:-1;1297:6:1;1384:40;1420:2;1405:18;;1384:40;:::i;:::-;1379:2;1371:6;1367:15;1360:65;1458:40;1494:2;1483:9;1479:18;1458:40;:::i;:::-;1453:2;1445:6;1441:15;1434:65;1532:40;1568:2;1557:9;1553:18;1532:40;:::i;:::-;1527:2;1519:6;1515:15;1508:65;1607:41;1643:3;1632:9;1628:19;1607:41;:::i;:::-;1601:3;1593:6;1589:16;1582:67;1711:3;1700:9;1696:19;1683:33;1677:3;1669:6;1665:16;1658:59;1779:3;1768:9;1764:19;1751:33;1745:3;1737:6;1733:16;1726:59;;1016:775;;;;:::o;1796:259::-;;1908:2;1896:9;1887:7;1883:23;1879:32;1876:2;;;1929:6;1921;1914:22;1876:2;1973:9;1960:23;1992:33;2019:5;1992:33;:::i;2332:1224::-;;;;;;;;;2605:3;2593:9;2584:7;2580:23;2576:33;2573:2;;;2627:6;2619;2612:22;2573:2;2671:9;2658:23;2690:33;2717:5;2690:33;:::i;:::-;2742:5;-1:-1:-1;2799:2:1;2784:18;;2771:32;2812:35;2771:32;2812:35;:::i;:::-;2866:7;-1:-1:-1;2920:2:1;2905:18;;2892:32;;-1:-1:-1;2971:2:1;2956:18;;2943:32;;-1:-1:-1;3026:3:1;3011:19;;2998:33;3050:18;3080:14;;;3077:2;;;3112:6;3104;3097:22;3077:2;3156:76;3224:7;3215:6;3204:9;3200:22;3156:76;:::i;:::-;3251:8;;-1:-1:-1;3130:102:1;-1:-1:-1;3339:3:1;3324:19;;3311:33;;-1:-1:-1;3356:16:1;;;3353:2;;;3390:6;3382;3375:22;3353:2;;3434:62;3488:7;3477:8;3466:9;3462:24;3434:62;:::i;:::-;2563:993;;;;-1:-1:-1;2563:993:1;;-1:-1:-1;2563:993:1;;;;;;3515:8;-1:-1:-1;;;2563:993:1:o;3561:745::-;;;;;;3767:3;3755:9;3746:7;3742:23;3738:33;3735:2;;;3789:6;3781;3774:22;3735:2;3833:9;3820:23;3852:33;3879:5;3852:33;:::i;:::-;3904:5;-1:-1:-1;3956:2:1;3941:18;;3928:32;;-1:-1:-1;4007:2:1;3992:18;;3979:32;;-1:-1:-1;4062:2:1;4047:18;;4034:32;4089:18;4078:30;;4075:2;;;4126:6;4118;4111:22;4075:2;4170:76;4238:7;4229:6;4218:9;4214:22;4170:76;:::i;:::-;3725:581;;;;-1:-1:-1;3725:581:1;;-1:-1:-1;4265:8:1;;4144:102;3725:581;-1:-1:-1;;;3725:581:1:o;4311:327::-;;;4440:2;4428:9;4419:7;4415:23;4411:32;4408:2;;;4461:6;4453;4446:22;4408:2;4505:9;4492:23;4524:33;4551:5;4524:33;:::i;:::-;4576:5;4628:2;4613:18;;;;4600:32;;-1:-1:-1;;;4398:240:1:o;4643:297::-;;4763:2;4751:9;4742:7;4738:23;4734:32;4731:2;;;4784:6;4776;4769:22;4731:2;4821:9;4815:16;4874:5;4867:13;4860:21;4853:5;4850:32;4840:2;;4901:6;4893;4886:22;4945:356;;5067:2;5055:9;5046:7;5042:23;5038:32;5035:2;;;5088:6;5080;5073:22;5035:2;5125:9;5119:16;5175:66;5168:5;5164:78;5157:5;5154:89;5144:2;;5262:6;5254;5247:22;5306:911;;;;;5535:2;5523:9;5514:7;5510:23;5506:32;5503:2;;;5556:6;5548;5541:22;5503:2;5600:9;5587:23;5619:33;5646:5;5619:33;:::i;:::-;5671:5;-1:-1:-1;5727:2:1;5712:18;;5699:32;5750:18;5780:14;;;5777:2;;;5812:6;5804;5797:22;5777:2;5840:22;;;;5896:3;5878:16;;;5874:26;5871:2;;;5918:6;5910;5903:22;5871:2;5946;;-1:-1:-1;6001:2:1;5986:18;;5973:32;;6017:16;;;6014:2;;;6051:6;6043;6036:22;6014:2;;6095:62;6149:7;6138:8;6127:9;6123:24;6095:62;:::i;:::-;5493:724;;;;-1:-1:-1;6176:8:1;-1:-1:-1;;;;5493:724:1:o;6846:751::-;;;;;;7058:3;7046:9;7037:7;7033:23;7029:33;7026:2;;;7080:6;7072;7065:22;7602:1072;;;;;;;;7850:3;7838:9;7829:7;7825:23;7821:33;7818:2;;;7872:6;7864;7857:22;7818:2;7916:9;7903:23;7935:33;7962:5;7935:33;:::i;:::-;7987:5;-1:-1:-1;8039:2:1;8024:18;;8011:32;;-1:-1:-1;8090:2:1;8075:18;;8062:32;;-1:-1:-1;8145:2:1;8130:18;;8117:32;8168:18;8198:14;;;8195:2;;;8230:6;8222;8215:22;8195:2;8274:76;8342:7;8333:6;8322:9;8318:22;8274:76;:::i;:::-;8369:8;;-1:-1:-1;8248:102:1;-1:-1:-1;8457:3:1;8442:19;;8429:33;;-1:-1:-1;8474:16:1;;;8471:2;;;8508:6;8500;8493:22;8471:2;;8552:62;8606:7;8595:8;8584:9;8580:24;8552:62;:::i;:::-;7808:866;;;;-1:-1:-1;7808:866:1;;-1:-1:-1;7808:866:1;;;;8526:88;;-1:-1:-1;;;7808:866:1:o;8679:253::-;;;8817:2;8805:9;8796:7;8792:23;8788:32;8785:2;;;8838:6;8830;8823:22;8785:2;-1:-1:-1;;8866:16:1;;8922:2;8907:18;;;8901:25;8866:16;;8901:25;;-1:-1:-1;8775:157:1:o;8937:565::-;;;;;9100:2;9088:9;9079:7;9075:23;9071:32;9068:2;;;9121:6;9113;9106:22;9068:2;9162:9;9149:23;9139:33;;9219:2;9208:9;9204:18;9191:32;9181:42;;9274:2;9263:9;9259:18;9246:32;9301:18;9293:6;9290:30;9287:2;;;9338:6;9330;9323:22;9287:2;9382:60;9434:7;9425:6;9414:9;9410:22;9382:60;:::i;9507:691::-;;;;;;9715:3;9703:9;9694:7;9690:23;9686:33;9683:2;;;9737:6;9729;9722:22;9683:2;9765:49;9806:7;9795:9;9765:49;:::i;:::-;9755:59;;9865:3;9854:9;9850:19;9837:33;9893:18;9885:6;9882:30;9879:2;;;9930:6;9922;9915:22;9879:2;9974:60;10026:7;10017:6;10006:9;10002:22;9974:60;:::i;:::-;9673:525;;10053:8;;-1:-1:-1;9948:86:1;;10135:3;10120:19;;10107:33;;10187:3;10172:19;;;10159:33;;-1:-1:-1;9673:525:1;-1:-1:-1;;;;9673:525:1:o;10203:837::-;;;;;;;10436:3;10424:9;10415:7;10411:23;10407:33;10404:2;;;10458:6;10450;10443:22;10404:2;10486:49;10527:7;10516:9;10486:49;:::i;:::-;10476:59;;10586:3;10575:9;10571:19;10558:33;10614:18;10606:6;10603:30;10600:2;;;10651:6;10643;10636:22;10600:2;10695:60;10747:7;10738:6;10727:9;10723:22;10695:60;:::i;:::-;10774:8;;-1:-1:-1;10669:86:1;-1:-1:-1;;10856:3:1;10841:19;;10828:33;;-1:-1:-1;10908:3:1;10893:19;;10880:33;;-1:-1:-1;10963:3:1;10948:19;;10935:33;10977;10935;10977;:::i;:::-;11029:5;11019:15;;;10394:646;;;;;;;;:::o;11045:1158::-;;;;;;;;;11314:3;11302:9;11293:7;11289:23;11285:33;11282:2;;;11336:6;11328;11321:22;11282:2;11364:49;11405:7;11394:9;11364:49;:::i;:::-;11354:59;;11464:3;11453:9;11449:19;11436:33;11488:18;11529:2;11521:6;11518:14;11515:2;;;11550:6;11542;11535:22;11515:2;11594:60;11646:7;11637:6;11626:9;11622:22;11594:60;:::i;:::-;11673:8;;-1:-1:-1;11568:86:1;-1:-1:-1;11755:3:1;11740:19;;11727:33;;-1:-1:-1;11807:3:1;11792:19;;11779:33;;-1:-1:-1;11862:3:1;11847:19;;11834:33;;-1:-1:-1;11876:33:1;11834;11876;:::i;:::-;11928:5;;-1:-1:-1;11986:3:1;11971:19;;11958:33;;12003:16;;;12000:2;;;12037:6;12029;12022:22;12208:190;;12320:2;12308:9;12299:7;12295:23;12291:32;12288:2;;;12341:6;12333;12326:22;12288:2;-1:-1:-1;12369:23:1;;12278:120;-1:-1:-1;12278:120:1:o;12403:194::-;;12526:2;12514:9;12505:7;12501:23;12497:32;12494:2;;;12547:6;12539;12532:22;12494:2;-1:-1:-1;12575:16:1;;12484:113;-1:-1:-1;12484:113:1:o;12602:599::-;;;;;12783:2;12771:9;12762:7;12758:23;12754:32;12751:2;;;12804:6;12796;12789:22;12751:2;12845:9;12832:23;12822:33;;12902:2;12891:9;12887:18;12874:32;12864:42;;12957:2;12946:9;12942:18;12929:32;12984:18;12976:6;12973:30;12970:2;;;13021:6;13013;13006:22;12970:2;13065:76;13133:7;13124:6;13113:9;13109:22;13065:76;:::i;13206:318::-;;13287:5;13281:12;13314:6;13309:3;13302:19;13330:63;13386:6;13379:4;13374:3;13370:14;13363:4;13356:5;13352:16;13330:63;:::i;:::-;13438:2;13426:15;13443:66;13422:88;13413:98;;;;13513:4;13409:109;;13257:267;-1:-1:-1;;13257:267:1:o;13529:718::-;;13808:66;13800:6;13796:79;13791:3;13784:92;13917:66;13909:6;13905:79;13901:1;13896:3;13892:11;13885:100;14036:66;14027:6;14023:2;14019:15;14015:88;14010:2;14005:3;14001:12;13994:110;14148:6;14140;14135:2;14130:3;14126:12;14113:42;14178:16;;14196:2;14174:25;14208:15;;;14174:25;13774:473;-1:-1:-1;;;;13774:473:1:o;14252:416::-;;14459:66;14451:6;14447:79;14442:3;14435:92;14570:6;14562;14558:1;14553:3;14549:11;14536:41;14600:16;;14618:1;14596:24;14629:15;;;14596:24;14425:243;-1:-1:-1;;14425:243:1:o;14673:274::-;;14840:6;14834:13;14856:53;14902:6;14897:3;14890:4;14882:6;14878:17;14856:53;:::i;:::-;14925:16;;;;;14810:137;-1:-1:-1;;14810:137:1:o;14952:773::-;;15371:6;15365:13;15387:53;15433:6;15428:3;15421:4;15413:6;15409:17;15387:53;:::i;:::-;15501:8;15462:16;;;15487:23;;;15535:13;;15557:65;15535:13;15609:1;15598:13;;15591:4;15579:17;;15557:65;:::i;:::-;15689:3;15685:1;15641:20;;;;15677:10;;;15670:23;15717:1;15709:10;;15341:384;-1:-1:-1;;;;15341:384:1:o;15730:775::-;;16149:6;16143:13;16165:53;16211:6;16206:3;16199:4;16191:6;16187:17;16165:53;:::i;:::-;16279:10;16240:16;;;16265:25;;;16315:13;;16337:65;16315:13;16389:1;16378:13;;16371:4;16359:17;;16337:65;:::i;:::-;16469:3;16465:1;16421:20;;;;16457:10;;;16450:23;16497:1;16489:10;;16119:386;-1:-1:-1;;;;16119:386:1:o;16510:771::-;;16927:6;16921:13;16943:53;16989:6;16984:3;16977:4;16969:6;16965:17;16943:53;:::i;:::-;17057:8;17018:16;;;17043:23;;;17091:13;;17113:65;17091:13;17165:1;17154:13;;17147:4;17135:17;;17113:65;:::i;17286:444::-;17556:66;17544:79;;17648:1;17639:11;;17632:27;;;;17684:2;17675:12;;17668:28;17721:2;17712:12;;17534:196::o;17945:182::-;18074:19;;;18118:2;18109:12;;18064:63::o;18132:226::-;18308:42;18296:55;;;;18278:74;;18266:2;18251:18;;18233:125::o;18363:398::-;18575:42;18644:15;;;18626:34;;18696:15;;;;18691:2;18676:18;;18669:43;18743:2;18728:18;;18721:34;;;;18553:2;18538:18;;18520:241::o;18766:593::-;;19009:42;19090:2;19082:6;19078:15;19067:9;19060:34;19144:6;19137:14;19130:22;19125:2;19114:9;19110:18;19103:50;19189:6;19184:2;19173:9;19169:18;19162:34;19244:2;19236:6;19232:15;19227:2;19216:9;19212:18;19205:43;;19285:3;19279;19268:9;19264:19;19257:32;19306:47;19348:3;19337:9;19333:19;19325:6;19306:47;:::i;19364:297::-;19568:42;19556:55;;;;19538:74;;19643:2;19628:18;;19621:34;19526:2;19511:18;;19493:168::o;19848:512::-;20107:25;;;20163:2;20148:18;;20141:34;;;;20206:2;20191:18;;20184:34;;;;20249:2;20234:18;;20227:34;20310:42;20298:55;20292:3;20277:19;;20270:84;20094:3;20079:19;;20061:299::o;20365:521::-;;20550:6;20539:9;20532:25;20593:2;20588;20577:9;20573:18;20566:30;20632:6;20627:2;20616:9;20612:18;20605:34;20689:6;20681;20676:2;20665:9;20661:18;20648:48;20716:22;;;20740:2;20712:31;;;20705:45;;;;20802:2;20790:15;;;20807:66;20786:88;20771:104;20767:113;;20522:364;-1:-1:-1;;20522:364:1:o;20891:807::-;;21105:3;21094:9;21090:19;21082:27;;21136:6;21125:9;21118:25;21185:6;21179:13;21174:2;21163:9;21159:18;21152:41;21240:2;21232:6;21228:15;21222:22;21263:42;21359:2;21345:12;21341:21;21336:2;21325:9;21321:18;21314:49;21427:2;21421;21413:6;21409:15;21403:22;21399:31;21394:2;21383:9;21379:18;21372:59;21496:2;21490;21482:6;21478:15;21472:22;21468:31;21462:3;21451:9;21447:19;21440:60;21566:2;21559:3;21551:6;21547:16;21541:23;21537:32;21531:3;21520:9;21516:19;21509:61;;;21625:3;21617:6;21613:16;21607:23;21601:3;21590:9;21586:19;21579:52;21686:3;21678:6;21674:16;21668:23;21662:3;21651:9;21647:19;21640:52;21072:626;;;;;:::o;21703:248::-;21877:25;;;21933:2;21918:18;;21911:34;21865:2;21850:18;;21832:119::o;21956:398::-;22183:25;;;22256:4;22244:17;;;;22239:2;22224:18;;22217:45;22293:2;22278:18;;22271:34;22336:2;22321:18;;22314:34;22170:3;22155:19;;22137:217::o;22359:221::-;;22508:2;22497:9;22490:21;22528:46;22570:2;22559:9;22555:18;22547:6;22528:46;:::i;22585:343::-;22787:2;22769:21;;;22826:2;22806:18;;;22799:30;22865:21;22860:2;22845:18;;22838:49;22919:2;22904:18;;22759:169::o;22933:351::-;23135:2;23117:21;;;23174:2;23154:18;;;23147:30;23213:29;23208:2;23193:18;;23186:57;23275:2;23260:18;;23107:177::o;23289:351::-;23491:2;23473:21;;;23530:2;23510:18;;;23503:30;23569:29;23564:2;23549:18;;23542:57;23631:2;23616:18;;23463:177::o;23645:344::-;23847:2;23829:21;;;23886:2;23866:18;;;23859:30;23925:22;23920:2;23905:18;;23898:50;23980:2;23965:18;;23819:170::o;23994:353::-;24196:2;24178:21;;;24235:2;24215:18;;;24208:30;24274:31;24269:2;24254:18;;24247:59;24338:2;24323:18;;24168:179::o;24352:342::-;24554:2;24536:21;;;24593:2;24573:18;;;24566:30;24632:20;24627:2;24612:18;;24605:48;24685:2;24670:18;;24526:168::o;24699:402::-;24901:2;24883:21;;;24940:2;24920:18;;;24913:30;24979:34;24974:2;24959:18;;24952:62;25050:8;25045:2;25030:18;;25023:36;25091:3;25076:19;;24873:228::o;25106:351::-;25308:2;25290:21;;;25347:2;25327:18;;;25320:30;25386:29;25381:2;25366:18;;25359:57;25448:2;25433:18;;25280:177::o;25462:342::-;25664:2;25646:21;;;25703:2;25683:18;;;25676:30;25742:20;25737:2;25722:18;;25715:48;25795:2;25780:18;;25636:168::o;25809:344::-;26011:2;25993:21;;;26050:2;26030:18;;;26023:30;26089:22;26084:2;26069:18;;26062:50;26144:2;26129:18;;25983:170::o;26158:341::-;26360:2;26342:21;;;26399:2;26379:18;;;26372:30;26438:19;26433:2;26418:18;;26411:47;26490:2;26475:18;;26332:167::o;26504:354::-;26706:2;26688:21;;;26745:2;26725:18;;;26718:30;26784:32;26779:2;26764:18;;26757:60;26849:2;26834:18;;26678:180::o;26863:422::-;27065:2;27047:21;;;27104:2;27084:18;;;27077:30;27143:34;27138:2;27123:18;;27116:62;27214:28;27209:2;27194:18;;27187:56;27275:3;27260:19;;27037:248::o;27290:353::-;27492:2;27474:21;;;27531:2;27511:18;;;27504:30;27570:31;27565:2;27550:18;;27543:59;27634:2;27619:18;;27464:179::o;27648:402::-;27850:2;27832:21;;;27889:2;27869:18;;;27862:30;27928:34;27923:2;27908:18;;27901:62;27999:8;27994:2;27979:18;;27972:36;28040:3;28025:19;;27822:228::o;28055:350::-;28257:2;28239:21;;;28296:2;28276:18;;;28269:30;28335:28;28330:2;28315:18;;28308:56;28396:2;28381:18;;28229:176::o;28410:356::-;28612:2;28594:21;;;28631:18;;;28624:30;28690:34;28685:2;28670:18;;28663:62;28757:2;28742:18;;28584:182::o;28771:351::-;28973:2;28955:21;;;29012:2;28992:18;;;28985:30;29051:29;29046:2;29031:18;;29024:57;29113:2;29098:18;;28945:177::o;29127:350::-;29329:2;29311:21;;;29368:2;29348:18;;;29341:30;29407:28;29402:2;29387:18;;29380:56;29468:2;29453:18;;29301:176::o;29482:397::-;29684:2;29666:21;;;29723:2;29703:18;;;29696:30;29762:34;29757:2;29742:18;;29735:62;29833:3;29828:2;29813:18;;29806:31;29869:3;29854:19;;29656:223::o;29884:356::-;30086:2;30068:21;;;30105:18;;;30098:30;30164:34;30159:2;30144:18;;30137:62;30231:2;30216:18;;30058:182::o;30245:343::-;30447:2;30429:21;;;30486:2;30466:18;;;30459:30;30525:21;30520:2;30505:18;;30498:49;30579:2;30564:18;;30419:169::o;30593:345::-;30795:2;30777:21;;;30834:2;30814:18;;;30807:30;30873:23;30868:2;30853:18;;30846:51;30929:2;30914:18;;30767:171::o;30943:342::-;31145:2;31127:21;;;31184:2;31164:18;;;31157:30;31223:20;31218:2;31203:18;;31196:48;31276:2;31261:18;;31117:168::o;31290:353::-;31492:2;31474:21;;;31531:2;31511:18;;;31504:30;31570:31;31565:2;31550:18;;31543:59;31634:2;31619:18;;31464:179::o;31648:346::-;31850:2;31832:21;;;31889:2;31869:18;;;31862:30;31928:24;31923:2;31908:18;;31901:52;31985:2;31970:18;;31822:172::o;31999:348::-;32201:2;32183:21;;;32240:2;32220:18;;;32213:30;32279:26;32274:2;32259:18;;32252:54;32338:2;32323:18;;32173:174::o;32352:404::-;32554:2;32536:21;;;32593:2;32573:18;;;32566:30;32632:34;32627:2;32612:18;;32605:62;32703:10;32698:2;32683:18;;32676:38;32746:3;32731:19;;32526:230::o;32761:355::-;32963:2;32945:21;;;33002:2;32982:18;;;32975:30;33041:33;33036:2;33021:18;;33014:61;33107:2;33092:18;;32935:181::o;33121:347::-;33323:2;33305:21;;;33362:2;33342:18;;;33335:30;33401:25;33396:2;33381:18;;33374:53;33459:2;33444:18;;33295:173::o;33473:406::-;33675:2;33657:21;;;33714:2;33694:18;;;33687:30;33753:34;33748:2;33733:18;;33726:62;33824:12;33819:2;33804:18;;33797:40;33869:3;33854:19;;33647:232::o;33884:342::-;34086:2;34068:21;;;34125:2;34105:18;;;34098:30;34164:20;34159:2;34144:18;;34137:48;34217:2;34202:18;;34058:168::o;34231:348::-;34433:2;34415:21;;;34472:2;34452:18;;;34445:30;34511:26;34506:2;34491:18;;34484:54;34570:2;34555:18;;34405:174::o;35019:319::-;35221:25;;;35277:2;35262:18;;35255:34;;;;35320:2;35305:18;;35298:34;35209:2;35194:18;;35176:162::o;35343:592::-;;;35486:11;35473:25;35576:66;35565:8;35549:14;35545:29;35541:102;35521:18;35517:127;35507:2;;35661:4;35655;35648:18;35507:2;35691:33;;35743:20;;;-1:-1:-1;35786:18:1;35775:30;;35772:2;;;35821:4;35815;35808:18;35772:2;35857:4;35845:17;;-1:-1:-1;35888:14:1;35884:27;;;35874:38;;35871:2;;;35925:1;35922;35915:12;35940:258;36012:1;36022:113;36036:6;36033:1;36030:13;36022:113;;;36112:11;;;36106:18;36093:11;;;36086:39;36058:2;36051:10;36022:113;;;36153:6;36150:1;36147:13;36144:2;;;-1:-1:-1;;36188:1:1;36170:16;;36163:27;35993:205::o;36203:156::-;36291:42;36284:5;36280:54;36273:5;36270:65;36260:2;;36349:1;36346;36339:12

Swarm Source

ipfs://0bf92f886b276e62374c5ada110799221b470dfd5739047f5878e961d31da363
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.