Transaction Hash:
Block:
19401749 at Mar-10-2024 02:35:23 AM +UTC
Transaction Fee:
0.043514591036007146 ETH
$148.81
Gas Used:
911,647 Gas / 47.731842518 Gwei
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x00Dd439B...309dDdcCd | (KuCoin Dep: 0x00Dd439B72467fDAc1AF60089e7A10F309dDdcCd) | 0.00238506283430193 Eth | 0.00471688212424 Eth | 0.00233181928993807 | |
| 0x01E6A337...95AA58871 | (KuCoin Dep: 0x01E6A33751257181b49CFEBc6A4cf4495AA58871) | 0.00056472427641 Eth | 0.00471688212424 Eth | 0.00415215784783 | |
| 0x0389a7C9...7CB6cfd50 | (KuCoin Dep: 0x0389a7C906668567fECd4B52Dfb08907CB6cfd50) | 0.002387435877539653 Eth | 0.01067312502662406 Eth | 0.008285689149084407 | |
| 0x04072549...79F051b4B | (KuCoin Dep: 0x0407254915e30A10aC190fC0a853fe079F051b4B) | 0.004152281409723662 Eth | 0.018961777934041624 Eth | 0.014809496524317962 | |
| 0x0567C478...8341d2A1D | (KuCoin Dep: 0x0567C478706Ef12051b24952D5C6e718341d2A1D) | 0.00415843677957653 Eth | 0.009944958426881863 Eth | 0.005786521647305333 | |
| 0x05f5E0Da...38e489afb | (KuCoin Dep: 0x05f5E0Da53041c7BD32e07A16DCCbe438e489afb) | 0.003171170846084295 Eth | 0.00471688212424 Eth | 0.001545711278155705 | |
| 0x061F7937...38b6368dC | (KuCoin: Deposit Funder 1) |
40.386271234492552885 Eth
Nonce: 901379
|
39.74144417796789975 Eth
Nonce: 901380
| 0.644827056524653135 | |
| 0x07Cfc76C...be58817AF | (KuCoin Dep: 0x07Cfc76CeEEBdc225e632419a89E7d2be58817AF) | 0.000939687686363358 Eth | 0.002182029670673424 Eth | 0.001242341984310066 | |
| 0x0dA7B9F2...62e9CDc1f | (KuCoin Dep: 0x0dA7B9F2a023080A372D505124e126262e9CDc1f) | 0.004260593737006252 Eth | 0.025033597470544322 Eth | 0.02077300373353807 | |
| 0x0E098207...f378F00bF | (KuCoin Dep: 0x0E098207A163A0F8415D575CB5126ebf378F00bF) | 0.001760223559620227 Eth | 0.036963839896032797 Eth | 0.03520361633641257 | |
| 0x0E921e9F...CA2619348 | (KuCoin Dep: 0x0E921e9F977719D48E9B658C757C6C6CA2619348) | 0.000321785620002 Eth | 0.0117922053106 Eth | 0.011470419690598 | |
| 0x1aa96C22...95920243a | (KuCoin Dep: 0x1aa96C223c68F090093048dc29870d095920243a) | 0.005302420189437496 Eth | 0.0058961026553 Eth | 0.000593682465862504 | |
| 0x1d5ED96B...B2B520a5C | (KuCoin Dep: 0x1d5ED96B7e24b9B7F635e790998EF76B2B520a5C) | 0.001084301688195282 Eth | 0.009230643512004915 Eth | 0.008146341823809633 | |
| 0x21BaAA13...7a9B6A9fC | (KuCoin Dep: 0x21BaAA136c88221cf127fb5B645AEf47a9B6A9fC) | 0.003255031973560582 Eth | 0.01650908743484 Eth | 0.013254055461279418 | |
| 0x237E421a...3BC51E60C | (KuCoin Dep: 0x237E421aD6bD414731732F007B3C7343BC51E60C) | 0.00296295778565185 Eth | 0.00471688212424 Eth | 0.00175392433858815 | |
| 0x26760F19...189B8Bc3d | (KuCoin Dep: 0x26760F197bD0953C1099E63D1Cb7b17189B8Bc3d) | 0.002110744675493391 Eth | 0.00471688212424 Eth | 0.002606137448746609 | |
| 0x29Fb7a98...101F78f33 | (KuCoin Dep: 0x29Fb7a98914bd87ebfbAdCa1fF0C507101F78f33) | 0.000191417033572484 Eth | 0.002435326240745112 Eth | 0.002243909207172628 | |
| 0x2AF0c11B...55f645aa6 | (KuCoin Dep: 0x2AF0c11B9c4393FFa7399Ad2969872655f645aa6) | 0.003115168440519858 Eth | 0.0058961026553 Eth | 0.002780934214780142 | |
| 0x31c2Ab99...e1b3E5817 | (KuCoin Dep: 0x31c2Ab99605e535E96097188bC79752e1b3E5817) | 0.005922402093358668 Eth | 0.036205865976864408 Eth | 0.03028346388350574 | |
| 0x362Be565...AC1010e85 | (KuCoin Dep: 0x362Be565a2196cEd3dB19d6286d47d3AC1010e85) | 0.001870932251167105 Eth | 0.00471688212424 Eth | 0.002845949873072895 | |
|
0x388C818C...7ccB19297
Miner
| (Lido: Execution Layer Rewards Vault) | 153.487716310515667252 Eth | 153.488627957515667252 Eth | 0.000911647 | |
| 0x39aC22b2...5271Bd31B | (KuCoin Dep: 0x39aC22b2063B9c64A4fC2d00b26cCcC5271Bd31B) | 0.000596843254790936 Eth | 0.012301556377702625 Eth | 0.011704713122911689 | |
| 0x39e274cb...D2CD69a50 | (KuCoin Dep: 0x39e274cb173999eCA1cC3DAF0C3E938D2CD69a50) | 0.003997285683851321 Eth | 0.025178381550904593 Eth | 0.021181095867053272 | |
| 0x409E7280...7725Fb092 | (KuCoin Dep: 0x409E7280F43ee6cf17edae392a01C7f7725Fb092) | 0.002357246201261264 Eth | 0.00471688212424 Eth | 0.002359635922978736 | |
| 0x4577cA52...11568E1f7 | (KuCoin Dep: 0x4577cA52CCC2cc2c9f4439c925e4Ac611568E1f7) | 0.000077740624017 Eth | 0.00294805132765 Eth | 0.002870310703633 | |
| 0x45d57DeF...2Bb4B843f | (KuCoin Dep: 0x45d57DeF76DF307702F206Cd1AE57cc2Bb4B843f) | 0.002940950197932459 Eth | 0.00471688212424 Eth | 0.001775931926307541 | |
| 0x4Ecc83D3...5E3B59c97 | (KuCoin Dep: 0x4Ecc83D31E61F60B4f04DAC6C0511C05E3B59c97) | 0.004179134549342049 Eth | 0.0058961026553 Eth | 0.001716968105957951 | |
| 0x4fcACef8...f899Dda66 | (KuCoin Dep: 0x4fcACef854bfB0Af139080437A8B8aEf899Dda66) | 0.008081918345940224 Eth | 0.016719521498953966 Eth | 0.008637603153013742 | |
| 0x589ca837...10FDd08AE | (KuCoin Dep: 0x589ca83768E9359a4f414043652778210FDd08AE) | 0.002356784668229574 Eth | 0.00471688212424 Eth | 0.002360097456010426 | |
| 0x59cFF8E3...795bFDD12 | (KuCoin Dep: 0x59cFF8E3d2E31704948D2adf893Fcae795bFDD12) | 0.003228509460011052 Eth | 0.01061298477954 Eth | 0.007384475319528948 | |
| 0x59E8fAC7...62324A068 | (KuCoin Dep: 0x59E8fAC79D9D828E30fcAaa62E4694A62324A068) | 0.001899170599913242 Eth | 0.00471688212424 Eth | 0.002817711524326758 | |
| 0x5C1FAE30...CbfB635F5 | (KuCoin Dep: 0x5C1FAE302C1D3Ed180c3FB5F3f60233CbfB635F5) | 0.002243518044224744 Eth | 0.002771875780309636 Eth | 0.000528357736084892 | |
| 0x5daAf5ED...FC2A7916e | (KuCoin Dep: 0x5daAf5EDED5cC8DABA8c5a28F7Bb87eFC2A7916e) | 0.003644082169376193 Eth | 0.005782725918663133 Eth | 0.00213864374928694 | |
| 0x5e1089Fc...De8c36BeA | (KuCoin Dep: 0x5e1089Fc4C5589090AdE6bdB7E09d05De8c36BeA) | 0.005583729877842628 Eth | 0.00707532318636 Eth | 0.001491593308517372 | |
| 0x637Be377...FE8CA1E64 | (KuCoin Dep: 0x637Be3777d0D66d82a88691Fae01E00FE8CA1E64) | 0.003289430640819081 Eth | 0.0058961026553 Eth | 0.002606672014480919 | |
| 0x6594c9a5...73813c3E4 | (KuCoin Dep: 0x6594c9a52eCCeb4189Ac859210b3d1073813c3E4) | 0.002709090598931098 Eth | 0.00471688212424 Eth | 0.002007791525308902 | |
| 0x673DfF10...1e9843050 | (KuCoin Dep: 0x673DfF10968E904A7DE7eEBFd6Bc9881e9843050) | 0.005160617487169431 Eth | 0.006519312250083424 Eth | 0.001358694762913993 | |
| 0x68aBEF9E...8e7290a3c | (KuCoin Dep: 0x68aBEF9E0D00954fA536830CfE721e28e7290a3c) | 0.005992834604602325 Eth | 0.018730591564375449 Eth | 0.012737756959773124 | |
| 0x6E042907...5Cac2C51C | (KuCoin Dep: 0x6E042907D85f9b85e08BD3DD0c4573c5Cac2C51C) | 0 Eth | 0.01061298477954 Eth | 0.01061298477954 | |
| 0x6f65b30a...FFd261b85 | (KuCoin Dep: 0x6f65b30ae483045FD67616c81F2cE95FFd261b85) | 0.00216537482339949 Eth | 0.003832466725945 Eth | 0.00166709190254551 | |
| 0x7b013F39...60EcE9C00 | (KuCoin Dep: 0x7b013F39282A85618f83ee4535366E360EcE9C00) | 0.007592805508050505 Eth | 0.009018204963304416 Eth | 0.001425399455253911 | |
| 0x855466B9...8b77BE39B | (KuCoin Dep: 0x855466B9bc6FF89C32a6897E730c6368b77BE39B) | 0.002110744675493391 Eth | 0.00884415398295 Eth | 0.006733409307456609 | |
| 0x866AC092...300bb416a | (KuCoin Dep: 0x866AC0920056ed84f80C41f7e157984300bb416a) | 0.001668340801153124 Eth | 0.00471688212424 Eth | 0.003048541323086876 | |
| 0x8a77977C...c35E49b46 | (KuCoin Dep: 0x8a77977CDcDd48e69044FeB96F172ddc35E49b46) | 0.004074054796949729 Eth | 0.020270961020631728 Eth | 0.016196906223681999 | |
| 0x8af34791...471FB24D4 | (KuCoin Dep: 0x8af34791f519ac40a07a2bEb6D3fdD5471FB24D4) | 0.002380034496106497 Eth | 0.00471688212424 Eth | 0.002336847628133503 | |
| 0x8E632363...bB58C159F | (KuCoin Dep: 0x8E632363bD8E86CC262bf36bC63fDc7bB58C159F) | 0.002898931409485155 Eth | 0.00471688212424 Eth | 0.001817950714754845 | |
| 0x8f41C5fD...84CEBe039 | (KuCoin Dep: 0x8f41C5fD09cf1305d852Fb70232177084CEBe039) | 0.002326579017845571 Eth | 0.005418399675384069 Eth | 0.003091820657538498 | |
| 0x971A7011...aa8436ad2 | (KuCoin Dep: 0x971A70111Ce6C97806a1d03eD957a8Caa8436ad2) | 0.001633222706745469 Eth | 0.005985959259766772 Eth | 0.004352736553021303 | |
| 0x98cf5188...0D7675EE4 | (KuCoin Dep: 0x98cf518824D1eE36140801B08692A370D7675EE4) | 0.0013938216691556 Eth | 0.00471688212424 Eth | 0.0033230604550844 | |
| 0x9BE038a3...3394B4F08 | (KuCoin Dep: 0x9BE038a39A2EB42c57fDfF71CB92FE03394B4F08) | 0.001302645876476402 Eth | 0.008533783139175008 Eth | 0.007231137262698606 | |
| 0x9F2fA854...37A8FEC60 | (KuCoin Dep: 0x9F2fA8543A0458c5E33c83693f5889237A8FEC60) | 0.010589903742368429 Eth | 0.0434515495299182 Eth | 0.032861645787549771 | |
| 0xA69F65A4...aE26A016F | (KuCoin Dep: 0xA69F65A47fE38783bB436eb0422238EaE26A016F) | 0.003314263421862411 Eth | 0.0058961026553 Eth | 0.002581839233437589 | |
| 0xA9358f2B...e2FBD4790 | (KuCoin Dep: 0xA9358f2BB114Da5c9a88D2b9883ec92e2FBD4790) | 0.001273125551873203 Eth | 0.00353766159318 Eth | 0.002264536041306797 | |
| 0xaBc6790c...5aC97Aa90 | (KuCoin Dep: 0xaBc6790c0027368bb488952C5F839B15aC97Aa90) | 0.003481795987408725 Eth | 0.0058961026553 Eth | 0.002414306667891275 | |
| 0xaBd69D0f...Eb7fb81A9 | (KuCoin Dep: 0xaBd69D0faC4b0851DAFe100979DF808Eb7fb81A9) | 0.023684845212081389 Eth | 0.10306563871299058 Eth | 0.079380793500909191 | |
| 0xb1C6d7Cb...B4364c4a1 | (KuCoin Dep: 0xb1C6d7Cb12BEFfA66bF672C9E1e26c9B4364c4a1) | 0.001138843614199766 Eth | 0.006818312071615473 Eth | 0.005679468457415707 | |
| 0xB3CAf97b...72e331fA0 | (KuCoin Dep: 0xB3CAf97b7883aEEA12551a767a5269772e331fA0) | 0.001521197364699188 Eth | 0.003242856460415 Eth | 0.001721659095715812 | |
| 0xBEde75F0...F88CF97cA | (KuCoin Dep: 0xBEde75F0Dfd98f7Ce50aFc17f6a2dC1F88CF97cA) | 0.001323702492873782 Eth | 0.004986841622126738 Eth | 0.003663139129252956 | |
| 0xc63a8351...51784AaFC | (KuCoin Dep: 0xc63a8351b01668d56bF5aeB7571D6C551784AaFC) | 0.003671309539890468 Eth | 0.005985959259766772 Eth | 0.002314649719876304 | |
| 0xC93D1D9C...4Dc5cEbB6 | (KuCoin Dep: 0xC93D1D9C02C8181B26c69561818262a4Dc5cEbB6) | 0.003338675073541028 Eth | 0.017080156317358837 Eth | 0.013741481243817809 | |
| 0xc95AdD68...f3055fD8A | (KuCoin Dep: 0xc95AdD6880f77193d28E06b7466B6ecf3055fD8A) | 0.003046526233062641 Eth | 0.01297142584166 Eth | 0.009924899608597359 | |
| 0xcAF04dFC...1e60c0Fd2 | (KuCoin Dep: 0xcAF04dFC7868FDB056D3216166918fC1e60c0Fd2) | 0.001908138046175914 Eth | 0.00294805132765 Eth | 0.001039913281474086 | |
| 0xCde21fB6...41087120f | (KuCoin Dep: 0xCde21fB6Cf8cb389Ba9C36029bEd4a641087120f) | 0.000462936578721723 Eth | 0.002166935647875856 Eth | 0.001703999069154133 | |
| 0xcE29C4c8...f190b9C7E | (KuCoin Dep: 0xcE29C4c814853BaE74077BBACfc35D6f190b9C7E) | 0.004192536642126678 Eth | 0.00471688212424 Eth | 0.000524345482113322 | |
| 0xd1Df0a84...60C8370E8 | (KuCoin Dep: 0xd1Df0a84a61d80d5810f7DEa35A037860C8370E8) | 0.002197789055614787 Eth | 0.00471688212424 Eth | 0.002519093068625213 | |
| 0xD3F98783...6892B758F | (KuCoin Dep: 0xD3F987834544DD6d66945e3ee70E7c26892B758F) | 0.002116464508834039 Eth | 0.00471688212424 Eth | 0.002600417615405961 | |
| 0xd5258507...7C070c909 | (KuCoin Dep: 0xd52585079e2d887db369aDFAa47690f7C070c909) | 0.003288876801181053 Eth | 0.0058961026553 Eth | 0.002607225854118947 | |
| 0xD6DE562a...8E39Cc879 | (KuCoin Dep: 0xD6DE562aE8c46A9b50F00C1595509598E39Cc879) | 0.003428227886441703 Eth | 0.00471688212424 Eth | 0.001288654237798297 | |
| 0xdB8f1F99...2820F77a1 | (KuCoin Dep: 0xdB8f1F994F214E0c0d4DEE946956b4d2820F77a1) | 0.002969857756545313 Eth | 0.017328193712040213 Eth | 0.0143583359554949 | |
| 0xdF98E7E4...4864C0e91 | (KuCoin Dep: 0xdF98E7E41FC0C9CAD9Df70D74e702Fa4864C0e91) | 0 Eth | 0.003242856460415 Eth | 0.003242856460415 | |
| 0xDf994020...369a4e534 | (KuCoin Dep: 0xDf994020476e461369C9a16D080161b369a4e534) | 0.003297176849020305 Eth | 0.00471688212424 Eth | 0.001419705275219695 | |
| 0xE3C26Fc0...A4283cAc7 | (KuCoin Dep: 0xE3C26Fc0a9bbf1F3151737C03550a9cA4283cAc7) | 0.001186933539756096 Eth | 0.003832466725945 Eth | 0.002645533186188904 | |
| 0xe68fb776...fc74a66D3 | (KuCoin Dep: 0xe68fb776c4307C2146D7c0c1b6F51c3fc74a66D3) | 0.000146907190138849 Eth | 0.013650892711656772 Eth | 0.013503985521517923 | |
| 0xe7f13886...0a5fAc750 | (KuCoin Dep: 0xe7f13886eB6cF49657342955CbcA08e0a5fAc750) | 0.002110744675493391 Eth | 0.00471688212424 Eth | 0.002606137448746609 | |
| 0xeB8bEb20...D6d487e4C | (KuCoin Dep: 0xeB8bEb203140F508531e4c5894aC251D6d487e4C) | 0.005160926647131083 Eth | 0.013380332577695457 Eth | 0.008219405930564374 | |
| 0xEfa6f69a...D8683AE0B | (KuCoin Dep: 0xEfa6f69a8F65e66c655192BB12A0143D8683AE0B) | 0.000765648656820864 Eth | 0.002111748127022248 Eth | 0.001346099470201384 | |
| 0xf08C43ec...810D175d5 | (KuCoin Dep: 0xf08C43ec75E283f055d8D8a39a198e2810D175d5) | 0.002958583795450178 Eth | 0.0058961026553 Eth | 0.002937518859849822 | |
| 0xF13d775A...e231C22A0 | (KuCoin Dep: 0xF13d775Af5B7fB50edf61c8c321E13De231C22A0) | 0.003314263421862411 Eth | 0.0058961026553 Eth | 0.002581839233437589 | |
| 0xf44295Dc...813FaCE6a | (KuCoin Dep: 0xf44295Dc0f2AEe792cfC7836F09bAB8813FaCE6a) | 0.002379490891977261 Eth | 0.00471688212424 Eth | 0.002337391232262739 | |
| 0xf4AEff3B...e0Ee3eCb9 | (KuCoin Dep: 0xf4AEff3B2Ff5295Bc21f526fdda1418e0Ee3eCb9) | 0.000883546020737744 Eth | 0.003125229212441765 Eth | 0.002241683191704021 | |
| 0xf7D0d226...aEf632d86 | (KuCoin Dep: 0xf7D0d2266ccC2f71bDf9463F5c1046caEf632d86) | 0.004120680555278656 Eth | 0.005985959259766772 Eth | 0.001865278704488116 | |
| 0xf8828481...e55B9B37A | (KuCoin Dep: 0xf8828481bee7c91Da65ED72BCba7b5Ce55B9B37A) | 0.000753478828058258 Eth | 0.005725073127753591 Eth | 0.004971594299695333 | |
| 0xF9DFF2A4...DCfA10Ac7 | (KuCoin Dep: 0xF9DFF2A4228165Ee3982Dbcb88434C7DCfA10Ac7) | 0.00158530774264672 Eth | 0.016214282302075 Eth | 0.01462897455942828 | |
| 0xFB473f60...468446B37 | (KuCoin Dep: 0xFB473f60181eaDdb140167864700D19468446B37) | 0.003566948165277258 Eth | 0.0058961026553 Eth | 0.002329154490022742 | |
| 0xFb99d9f5...E9602CB1d | (KuCoin Dep: 0xFb99d9f5159773F55BeBA00611C5cC9E9602CB1d) | 0.010529955983479286 Eth | 0.032535699851957522 Eth | 0.022005743868478236 | |
| 0xFe100eD0...a20786A62 | (KuCoin Dep: 0xFe100eD06b94057e48EC22326Ffbb33a20786A62) | 0.003715821816502374 Eth | 0.01532986690378 Eth | 0.011614045087277626 |
Execution Trace
ETH 0.601312465488645989
ERC1967Proxy.eb14f53e( )
ETH 0.601312465488645989
0x74ae836d6f949118b4e4d0af79924edd0d6fd163.eb14f53e( )- ETH 0.008637603153013742
KuCoin Dep: 0x4fcACef854bfB0Af139080437A8B8aEf899Dda66.CALL( ) - ETH 0.003242856460415
KuCoin Dep: 0xdF98E7E41FC0C9CAD9Df70D74e702Fa4864C0e91.CALL( ) - ETH 0.013254055461279418
KuCoin Dep: 0x21BaAA136c88221cf127fb5B645AEf47a9B6A9fC.CALL( ) - ETH 0.001039913281474086
KuCoin Dep: 0xcAF04dFC7868FDB056D3216166918fC1e60c0Fd2.CALL( ) - ETH 0.009924899608597359
KuCoin Dep: 0xc95AdD6880f77193d28E06b7466B6ecf3055fD8A.CALL( ) - ETH 0.002845949873072895
KuCoin Dep: 0x362Be565a2196cEd3dB19d6286d47d3AC1010e85.CALL( ) - ETH 0.006733409307456609
KuCoin Dep: 0x855466B9bc6FF89C32a6897E730c6368b77BE39B.CALL( ) - ETH 0.000528357736084892
KuCoin Dep: 0x5C1FAE302C1D3Ed180c3FB5F3f60233CbfB635F5.CALL( ) - ETH 0.002645533186188904
KuCoin Dep: 0xE3C26Fc0a9bbf1F3151737C03550a9cA4283cAc7.CALL( ) - ETH 0.002606672014480919
KuCoin Dep: 0x637Be3777d0D66d82a88691Fae01E00FE8CA1E64.CALL( ) - ETH 0.004971594299695333
KuCoin Dep: 0xf8828481bee7c91Da65ED72BCba7b5Ce55B9B37A.CALL( ) - ETH 0.001242341984310066
KuCoin Dep: 0x07Cfc76CeEEBdc225e632419a89E7d2be58817AF.CALL( ) - ETH 0.013503985521517923
KuCoin Dep: 0xe68fb776c4307C2146D7c0c1b6F51c3fc74a66D3.CALL( ) - ETH 0.016196906223681999
KuCoin Dep: 0x8a77977CDcDd48e69044FeB96F172ddc35E49b46.CALL( ) - ETH 0.001817950714754845
KuCoin Dep: 0x8E632363bD8E86CC262bf36bC63fDc7bB58C159F.CALL( ) - ETH 0.002243909207172628
KuCoin Dep: 0x29Fb7a98914bd87ebfbAdCa1fF0C507101F78f33.CALL( ) - ETH 0.002519093068625213
KuCoin Dep: 0xd1Df0a84a61d80d5810f7DEa35A037860C8370E8.CALL( ) - ETH 0.002359635922978736
KuCoin Dep: 0x409E7280F43ee6cf17edae392a01C7f7725Fb092.CALL( ) - ETH 0.00175392433858815
KuCoin Dep: 0x237E421aD6bD414731732F007B3C7343BC51E60C.CALL( ) - ETH 0.00213864374928694
KuCoin Dep: 0x5daAf5EDED5cC8DABA8c5a28F7Bb87eFC2A7916e.CALL( ) - ETH 0.002360097456010426
KuCoin Dep: 0x589ca83768E9359a4f414043652778210FDd08AE.CALL( ) - ETH 0.001775931926307541
KuCoin Dep: 0x45d57DeF76DF307702F206Cd1AE57cc2Bb4B843f.CALL( ) - ETH 0.002937518859849822
KuCoin Dep: 0xf08C43ec75E283f055d8D8a39a198e2810D175d5.CALL( ) - ETH 0.012737756959773124
KuCoin Dep: 0x68aBEF9E0D00954fA536830CfE721e28e7290a3c.CALL( ) - ETH 0.014809496524317962
KuCoin Dep: 0x0407254915e30A10aC190fC0a853fe079F051b4B.CALL( ) - ETH 0.013741481243817809
KuCoin Dep: 0xC93D1D9C02C8181B26c69561818262a4Dc5cEbB6.CALL( ) - ETH 0.01462897455942828
KuCoin Dep: 0xF9DFF2A4228165Ee3982Dbcb88434C7DCfA10Ac7.CALL( ) - ETH 0.032861645787549771
KuCoin Dep: 0x9F2fA8543A0458c5E33c83693f5889237A8FEC60.CALL( ) - ETH 0.001288654237798297
KuCoin Dep: 0xD6DE562aE8c46A9b50F00C1595509598E39Cc879.CALL( ) - ETH 0.001545711278155705
KuCoin Dep: 0x05f5E0Da53041c7BD32e07A16DCCbe438e489afb.CALL( ) - ETH 0.003663139129252956
KuCoin Dep: 0xBEde75F0Dfd98f7Ce50aFc17f6a2dC1F88CF97cA.CALL( ) - ETH 0.005786521647305333
KuCoin Dep: 0x0567C478706Ef12051b24952D5C6e718341d2A1D.CALL( ) - ETH 0.001703999069154133
KuCoin Dep: 0xCde21fB6Cf8cb389Ba9C36029bEd4a641087120f.CALL( ) - ETH 0.008219405930564374
KuCoin Dep: 0xeB8bEb203140F508531e4c5894aC251D6d487e4C.CALL( ) - ETH 0.001716968105957951
KuCoin Dep: 0x4Ecc83D31E61F60B4f04DAC6C0511C05E3B59c97.CALL( ) - ETH 0.002414306667891275
KuCoin Dep: 0xaBc6790c0027368bb488952C5F839B15aC97Aa90.CALL( ) - ETH 0.00415215784783
KuCoin Dep: 0x01E6A33751257181b49CFEBc6A4cf4495AA58871.CALL( ) - ETH 0.01061298477954
KuCoin Dep: 0x6E042907D85f9b85e08BD3DD0c4573c5Cac2C51C.CALL( ) - ETH 0.001425399455253911
KuCoin Dep: 0x7b013F39282A85618f83ee4535366E360EcE9C00.CALL( ) - ETH 0.002241683191704021
KuCoin Dep: 0xf4AEff3B2Ff5295Bc21f526fdda1418e0Ee3eCb9.CALL( ) - ETH 0.079380793500909191
KuCoin Dep: 0xaBd69D0faC4b0851DAFe100979DF808Eb7fb81A9.CALL( ) - ETH 0.00166709190254551
KuCoin Dep: 0x6f65b30ae483045FD67616c81F2cE95FFd261b85.CALL( ) - ETH 0.001358694762913993
KuCoin Dep: 0x673DfF10968E904A7DE7eEBFd6Bc9881e9843050.CALL( ) - ETH 0.007384475319528948
KuCoin Dep: 0x59cFF8E3d2E31704948D2adf893Fcae795bFDD12.CALL( ) - ETH 0.0033230604550844
KuCoin Dep: 0x98cf518824D1eE36140801B08692A370D7675EE4.CALL( ) - ETH 0.001491593308517372
KuCoin Dep: 0x5e1089Fc4C5589090AdE6bdB7E09d05De8c36BeA.CALL( ) - ETH 0.0143583359554949
KuCoin Dep: 0xdB8f1F994F214E0c0d4DEE946956b4d2820F77a1.CALL( ) - ETH 0.002606137448746609
KuCoin Dep: 0x26760F197bD0953C1099E63D1Cb7b17189B8Bc3d.CALL( ) - ETH 0.03520361633641257
KuCoin Dep: 0x0E098207A163A0F8415D575CB5126ebf378F00bF.CALL( ) - ETH 0.03028346388350574
KuCoin Dep: 0x31c2Ab99605e535E96097188bC79752e1b3E5817.CALL( ) - ETH 0.000524345482113322
KuCoin Dep: 0xcE29C4c814853BaE74077BBACfc35D6f190b9C7E.CALL( ) - ETH 0.003048541323086876
KuCoin Dep: 0x866AC0920056ed84f80C41f7e157984300bb416a.CALL( ) - ETH 0.002607225854118947
KuCoin Dep: 0xd52585079e2d887db369aDFAa47690f7C070c909.CALL( ) - ETH 0.011704713122911689
KuCoin Dep: 0x39aC22b2063B9c64A4fC2d00b26cCcC5271Bd31B.CALL( ) - ETH 0.002817711524326758
KuCoin Dep: 0x59E8fAC79D9D828E30fcAaa62E4694A62324A068.CALL( ) - ETH 0.001865278704488116
KuCoin Dep: 0xf7D0d2266ccC2f71bDf9463F5c1046caEf632d86.CALL( ) - ETH 0.000593682465862504
KuCoin Dep: 0x1aa96C223c68F090093048dc29870d095920243a.CALL( ) - ETH 0.001419705275219695
KuCoin Dep: 0xDf994020476e461369C9a16D080161b369a4e534.CALL( ) - ETH 0.002780934214780142
KuCoin Dep: 0x2AF0c11B9c4393FFa7399Ad2969872655f645aa6.CALL( ) - ETH 0.011614045087277626
KuCoin Dep: 0xFe100eD06b94057e48EC22326Ffbb33a20786A62.CALL( ) - ETH 0.021181095867053272
KuCoin Dep: 0x39e274cb173999eCA1cC3DAF0C3E938D2CD69a50.CALL( ) - ETH 0.002606137448746609
KuCoin Dep: 0xe7f13886eB6cF49657342955CbcA08e0a5fAc750.CALL( ) - ETH 0.002870310703633
KuCoin Dep: 0x4577cA52CCC2cc2c9f4439c925e4Ac611568E1f7.CALL( ) - ETH 0.001346099470201384
KuCoin Dep: 0xEfa6f69a8F65e66c655192BB12A0143D8683AE0B.CALL( ) - ETH 0.002264536041306797
KuCoin Dep: 0xA9358f2BB114Da5c9a88D2b9883ec92e2FBD4790.CALL( ) - ETH 0.011470419690598
KuCoin Dep: 0x0E921e9F977719D48E9B658C757C6C6CA2619348.CALL( ) - ETH 0.005679468457415707
KuCoin Dep: 0xb1C6d7Cb12BEFfA66bF672C9E1e26c9B4364c4a1.CALL( ) - ETH 0.001721659095715812
KuCoin Dep: 0xB3CAf97b7883aEEA12551a767a5269772e331fA0.CALL( ) - ETH 0.002337391232262739
KuCoin Dep: 0xf44295Dc0f2AEe792cfC7836F09bAB8813FaCE6a.CALL( ) - ETH 0.004352736553021303
KuCoin Dep: 0x971A70111Ce6C97806a1d03eD957a8Caa8436ad2.CALL( ) - ETH 0.02077300373353807
KuCoin Dep: 0x0dA7B9F2a023080A372D505124e126262e9CDc1f.CALL( ) - ETH 0.007231137262698606
KuCoin Dep: 0x9BE038a39A2EB42c57fDfF71CB92FE03394B4F08.CALL( ) - ETH 0.002329154490022742
KuCoin Dep: 0xFB473f60181eaDdb140167864700D19468446B37.CALL( ) - ETH 0.008146341823809633
KuCoin Dep: 0x1d5ED96B7e24b9B7F635e790998EF76B2B520a5C.CALL( ) - ETH 0.002007791525308902
KuCoin Dep: 0x6594c9a52eCCeb4189Ac859210b3d1073813c3E4.CALL( ) - ETH 0.003091820657538498
KuCoin Dep: 0x8f41C5fD09cf1305d852Fb70232177084CEBe039.CALL( ) - ETH 0.002581839233437589
KuCoin Dep: 0xF13d775Af5B7fB50edf61c8c321E13De231C22A0.CALL( ) - ETH 0.022005743868478236
KuCoin Dep: 0xFb99d9f5159773F55BeBA00611C5cC9E9602CB1d.CALL( ) - ETH 0.002581839233437589
KuCoin Dep: 0xA69F65A47fE38783bB436eb0422238EaE26A016F.CALL( ) - ETH 0.002600417615405961
KuCoin Dep: 0xD3F987834544DD6d66945e3ee70E7c26892B758F.CALL( ) - ETH 0.002314649719876304
KuCoin Dep: 0xc63a8351b01668d56bF5aeB7571D6C551784AaFC.CALL( ) - ETH 0.002336847628133503
KuCoin Dep: 0x8af34791f519ac40a07a2bEb6D3fdD5471FB24D4.CALL( ) - ETH 0.00233181928993807
KuCoin Dep: 0x00Dd439B72467fDAc1AF60089e7A10F309dDdcCd.CALL( ) - ETH 0.008285689149084407
KuCoin Dep: 0x0389a7C906668567fECd4B52Dfb08907CB6cfd50.CALL( )
- ETH 0.008637603153013742
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @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() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
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 {
_transferOwnership(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");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)
pragma solidity ^0.8.0;
/**
* @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
* proxy whose upgrades are fully controlled by the current implementation.
*/
interface IERC1822Proxiable {
/**
* @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
* address.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy.
*/
function proxiableUUID() external view returns (bytes32);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.3) (interfaces/IERC1967.sol)
pragma solidity ^0.8.0;
/**
* @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
*
* _Available since v4.9._
*/
interface IERC1967 {
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Emitted when the beacon is changed.
*/
event BeaconUpgraded(address indexed beacon);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/beacon/BeaconProxy.sol)
pragma solidity ^0.8.0;
import "./IBeacon.sol";
import "../Proxy.sol";
import "../ERC1967/ERC1967Upgrade.sol";
/**
* @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}.
*
* The beacon address is stored in storage slot `uint256(keccak256('eip1967.proxy.beacon')) - 1`, so that it doesn't
* conflict with the storage layout of the implementation behind the proxy.
*
* _Available since v3.4._
*/
contract BeaconProxy is Proxy, ERC1967Upgrade {
/**
* @dev Initializes the proxy with `beacon`.
*
* If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This
* will typically be an encoded function call, and allows initializing the storage of the proxy like a Solidity
* constructor.
*
* Requirements:
*
* - `beacon` must be a contract with the interface {IBeacon}.
*/
constructor(address beacon, bytes memory data) payable {
_upgradeBeaconToAndCall(beacon, data, false);
}
/**
* @dev Returns the current beacon address.
*/
function _beacon() internal view virtual returns (address) {
return _getBeacon();
}
/**
* @dev Returns the current implementation address of the associated beacon.
*/
function _implementation() internal view virtual override returns (address) {
return IBeacon(_getBeacon()).implementation();
}
/**
* @dev Changes the proxy to use a new beacon. Deprecated: see {_upgradeBeaconToAndCall}.
*
* If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon.
*
* Requirements:
*
* - `beacon` must be a contract.
* - The implementation returned by `beacon` must be a contract.
*/
function _setBeacon(address beacon, bytes memory data) internal virtual {
_upgradeBeaconToAndCall(beacon, data, false);
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.0;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {BeaconProxy} will check that this address is a contract.
*/
function implementation() external view returns (address);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/UpgradeableBeacon.sol)
pragma solidity ^0.8.0;
import "./IBeacon.sol";
import "../../access/Ownable.sol";
import "../../utils/Address.sol";
/**
* @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their
* implementation contract, which is where they will delegate all function calls.
*
* An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.
*/
contract UpgradeableBeacon is IBeacon, Ownable {
address private _implementation;
/**
* @dev Emitted when the implementation returned by the beacon is changed.
*/
event Upgraded(address indexed implementation);
/**
* @dev Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the
* beacon.
*/
constructor(address implementation_) {
_setImplementation(implementation_);
}
/**
* @dev Returns the current implementation address.
*/
function implementation() public view virtual override returns (address) {
return _implementation;
}
/**
* @dev Upgrades the beacon to a new implementation.
*
* Emits an {Upgraded} event.
*
* Requirements:
*
* - msg.sender must be the owner of the contract.
* - `newImplementation` must be a contract.
*/
function upgradeTo(address newImplementation) public virtual onlyOwner {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Sets the implementation contract address for this beacon
*
* Requirements:
*
* - `newImplementation` must be a contract.
*/
function _setImplementation(address newImplementation) private {
require(Address.isContract(newImplementation), "UpgradeableBeacon: implementation is not a contract");
_implementation = newImplementation;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol)
pragma solidity ^0.8.0;
import "../Proxy.sol";
import "./ERC1967Upgrade.sol";
/**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
* implementation behind the proxy.
*/
contract ERC1967Proxy is Proxy, ERC1967Upgrade {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializing the storage of the proxy like a Solidity constructor.
*/
constructor(address _logic, bytes memory _data) payable {
_upgradeToAndCall(_logic, _data, false);
}
/**
* @dev Returns the current implementation address.
*/
function _implementation() internal view virtual override returns (address impl) {
return ERC1967Upgrade._getImplementation();
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.3) (proxy/ERC1967/ERC1967Upgrade.sol)
pragma solidity ^0.8.2;
import "../beacon/IBeacon.sol";
import "../../interfaces/IERC1967.sol";
import "../../interfaces/draft-IERC1822.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*
* _Available since v4.1._
*
* @custom:oz-upgrades-unsafe-allow delegatecall
*/
abstract contract ERC1967Upgrade is IERC1967 {
// This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev Returns the current implementation address.
*/
function _getImplementation() internal view returns (address) {
return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Perform implementation upgrade
*
* Emits an {Upgraded} event.
*/
function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Perform implementation upgrade with additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCall(
address newImplementation,
bytes memory data,
bool forceCall
) internal {
_upgradeTo(newImplementation);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(newImplementation, data);
}
}
/**
* @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCallUUPS(
address newImplementation,
bytes memory data,
bool forceCall
) internal {
// Upgrades from old implementations will perform a rollback test. This test requires the new
// implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
// this special case will break upgrade paths from old UUPS implementation to new ones.
if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {
_setImplementation(newImplementation);
} else {
try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
} catch {
revert("ERC1967Upgrade: new implementation is not UUPS");
}
_upgradeToAndCall(newImplementation, data, forceCall);
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Returns the current admin.
*/
function _getAdmin() internal view returns (address) {
return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
require(newAdmin != address(0), "ERC1967: new admin is the zero address");
StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _changeAdmin(address newAdmin) internal {
emit AdminChanged(_getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
*/
bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Returns the current beacon.
*/
function _getBeacon() internal view returns (address) {
return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
require(
Address.isContract(IBeacon(newBeacon).implementation()),
"ERC1967: beacon implementation is not a contract"
);
StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
}
/**
* @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
* not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
*
* Emits a {BeaconUpgraded} event.
*/
function _upgradeBeaconToAndCall(
address newBeacon,
bytes memory data,
bool forceCall
) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)
pragma solidity ^0.8.0;
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
* different contract through the {_delegate} function.
*
* The success and return data of the delegated call will be returned back to the caller of the proxy.
*/
abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize())
switch result
// delegatecall returns 0 on error.
case 0 {
revert(0, returndatasize())
}
default {
return(0, returndatasize())
}
}
}
/**
* @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
* and {_fallback} should delegate.
*/
function _implementation() internal view virtual returns (address);
/**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _fallback() internal virtual {
_beforeFallback();
_delegate(_implementation());
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/
fallback() external payable virtual {
_fallback();
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
* is empty.
*/
receive() external payable virtual {
_fallback();
}
/**
* @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
* call, or as part of the Solidity `fallback` or `receive` functions.
*
* If overridden should call `super._beforeFallback()`.
*/
function _beforeFallback() internal virtual {}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.3) (proxy/transparent/ProxyAdmin.sol)
pragma solidity ^0.8.0;
import "./TransparentUpgradeableProxy.sol";
import "../../access/Ownable.sol";
/**
* @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an
* explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.
*/
contract ProxyAdmin is Ownable {
/**
* @dev Returns the current implementation of `proxy`.
*
* Requirements:
*
* - This contract must be the admin of `proxy`.
*/
function getProxyImplementation(ITransparentUpgradeableProxy proxy) public view virtual returns (address) {
// We need to manually run the static call since the getter cannot be flagged as view
// bytes4(keccak256("implementation()")) == 0x5c60da1b
(bool success, bytes memory returndata) = address(proxy).staticcall(hex"5c60da1b");
require(success);
return abi.decode(returndata, (address));
}
/**
* @dev Returns the current admin of `proxy`.
*
* Requirements:
*
* - This contract must be the admin of `proxy`.
*/
function getProxyAdmin(ITransparentUpgradeableProxy proxy) public view virtual returns (address) {
// We need to manually run the static call since the getter cannot be flagged as view
// bytes4(keccak256("admin()")) == 0xf851a440
(bool success, bytes memory returndata) = address(proxy).staticcall(hex"f851a440");
require(success);
return abi.decode(returndata, (address));
}
/**
* @dev Changes the admin of `proxy` to `newAdmin`.
*
* Requirements:
*
* - This contract must be the current admin of `proxy`.
*/
function changeProxyAdmin(ITransparentUpgradeableProxy proxy, address newAdmin) public virtual onlyOwner {
proxy.changeAdmin(newAdmin);
}
/**
* @dev Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}.
*
* Requirements:
*
* - This contract must be the admin of `proxy`.
*/
function upgrade(ITransparentUpgradeableProxy proxy, address implementation) public virtual onlyOwner {
proxy.upgradeTo(implementation);
}
/**
* @dev Upgrades `proxy` to `implementation` and calls a function on the new implementation. See
* {TransparentUpgradeableProxy-upgradeToAndCall}.
*
* Requirements:
*
* - This contract must be the admin of `proxy`.
*/
function upgradeAndCall(
ITransparentUpgradeableProxy proxy,
address implementation,
bytes memory data
) public payable virtual onlyOwner {
proxy.upgradeToAndCall{value: msg.value}(implementation, data);
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.3) (proxy/transparent/TransparentUpgradeableProxy.sol)
pragma solidity ^0.8.0;
import "../ERC1967/ERC1967Proxy.sol";
/**
* @dev Interface for {TransparentUpgradeableProxy}. In order to implement transparency, {TransparentUpgradeableProxy}
* does not implement this interface directly, and some of its functions are implemented by an internal dispatch
* mechanism. The compiler is unaware that these functions are implemented by {TransparentUpgradeableProxy} and will not
* include them in the ABI so this interface must be used to interact with it.
*/
interface ITransparentUpgradeableProxy is IERC1967 {
function admin() external view returns (address);
function implementation() external view returns (address);
function changeAdmin(address) external;
function upgradeTo(address) external;
function upgradeToAndCall(address, bytes memory) external payable;
}
/**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
* things that go hand in hand:
*
* 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
* that call matches one of the admin functions exposed by the proxy itself.
* 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the
* implementation. If the admin tries to call a function on the implementation it will fail with an error that says
* "admin cannot fallback to proxy target".
*
* These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing
* the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due
* to sudden errors when trying to call a function from the proxy implementation.
*
* Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,
* you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.
*
* NOTE: The real interface of this proxy is that defined in `ITransparentUpgradeableProxy`. This contract does not
* inherit from that interface, and instead the admin functions are implicitly implemented using a custom dispatch
* mechanism in `_fallback`. Consequently, the compiler will not produce an ABI for this contract. This is necessary to
* fully implement transparency without decoding reverts caused by selector clashes between the proxy and the
* implementation.
*
* WARNING: It is not recommended to extend this contract to add additional external functions. If you do so, the compiler
* will not check that there are no selector conflicts, due to the note above. A selector clash between any new function
* and the functions declared in {ITransparentUpgradeableProxy} will be resolved in favor of the new one. This could
* render the admin operations inaccessible, which could prevent upgradeability. Transparency may also be compromised.
*/
contract TransparentUpgradeableProxy is ERC1967Proxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.
*/
constructor(
address _logic,
address admin_,
bytes memory _data
) payable ERC1967Proxy(_logic, _data) {
_changeAdmin(admin_);
}
/**
* @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
*
* CAUTION: This modifier is deprecated, as it could cause issues if the modified function has arguments, and the
* implementation provides a function with the same selector.
*/
modifier ifAdmin() {
if (msg.sender == _getAdmin()) {
_;
} else {
_fallback();
}
}
/**
* @dev If caller is the admin process the call internally, otherwise transparently fallback to the proxy behavior
*/
function _fallback() internal virtual override {
if (msg.sender == _getAdmin()) {
bytes memory ret;
bytes4 selector = msg.sig;
if (selector == ITransparentUpgradeableProxy.upgradeTo.selector) {
ret = _dispatchUpgradeTo();
} else if (selector == ITransparentUpgradeableProxy.upgradeToAndCall.selector) {
ret = _dispatchUpgradeToAndCall();
} else if (selector == ITransparentUpgradeableProxy.changeAdmin.selector) {
ret = _dispatchChangeAdmin();
} else if (selector == ITransparentUpgradeableProxy.admin.selector) {
ret = _dispatchAdmin();
} else if (selector == ITransparentUpgradeableProxy.implementation.selector) {
ret = _dispatchImplementation();
} else {
revert("TransparentUpgradeableProxy: admin cannot fallback to proxy target");
}
assembly {
return(add(ret, 0x20), mload(ret))
}
} else {
super._fallback();
}
}
/**
* @dev Returns the current admin.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
*/
function _dispatchAdmin() private returns (bytes memory) {
_requireZeroValue();
address admin = _getAdmin();
return abi.encode(admin);
}
/**
* @dev Returns the current implementation.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
*/
function _dispatchImplementation() private returns (bytes memory) {
_requireZeroValue();
address implementation = _implementation();
return abi.encode(implementation);
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _dispatchChangeAdmin() private returns (bytes memory) {
_requireZeroValue();
address newAdmin = abi.decode(msg.data[4:], (address));
_changeAdmin(newAdmin);
return "";
}
/**
* @dev Upgrade the implementation of the proxy.
*/
function _dispatchUpgradeTo() private returns (bytes memory) {
_requireZeroValue();
address newImplementation = abi.decode(msg.data[4:], (address));
_upgradeToAndCall(newImplementation, bytes(""), false);
return "";
}
/**
* @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
* by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
* proxied contract.
*/
function _dispatchUpgradeToAndCall() private returns (bytes memory) {
(address newImplementation, bytes memory data) = abi.decode(msg.data[4:], (address, bytes));
_upgradeToAndCall(newImplementation, data, true);
return "";
}
/**
* @dev Returns the current admin.
*/
function _admin() internal view virtual returns (address) {
return _getAdmin();
}
/**
* @dev To keep this contract fully transparent, all `ifAdmin` functions must be payable. This helper is here to
* emulate some proxy functions being non-payable while still allowing value to pass through.
*/
function _requireZeroValue() private {
require(msg.value == 0);
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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");
(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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^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 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) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
}