From 1a54679bc82b08b55ee2f482662d9cbe733314d6 Mon Sep 17 00:00:00 2001 From: painiteleo Date: Mon, 8 Jul 2024 12:21:29 +0800 Subject: [PATCH] feat: implement affiliate --- bun.lockb | Bin 1044428 -> 1050964 bytes contracts/abis/LToken.json | 53 +- contracts/deployments.json | 304 +++++- contracts/foundry/test/LToken.t.sol | 154 +-- .../arbi-mainnet-deploy/06-LDYStaking.cts | 49 - .../deployments/baseSepolia/APRHistory.json | 26 +- .../baseSepolia/GlobalBlacklist.json | 56 +- .../GlobalBlacklist_Implementation.json | 46 +- .../baseSepolia/GlobalBlacklist_Proxy.json | 52 +- .../deployments/baseSepolia/GlobalOwner.json | 66 +- .../GlobalOwner_Implementation.json | 42 +- .../baseSepolia/GlobalOwner_Proxy.json | 64 +- .../deployments/baseSepolia/GlobalPause.json | 56 +- .../GlobalPause_Implementation.json | 46 +- .../baseSepolia/GlobalPause_Proxy.json | 52 +- .../hardhat/deployments/baseSepolia/LDY.json | 44 +- .../deployments/baseSepolia/LDYStaking.json | 171 +++- .../LDYStaking_Implementation.json | 205 +++- .../baseSepolia/LDYStaking_Proxy.json | 52 +- .../baseSepolia/LTokenSignaler.json | 56 +- .../LTokenSignaler_Implementation.json | 46 +- .../baseSepolia/LTokenSignaler_Proxy.json | 52 +- .../deployments/baseSepolia/LUSDC.json | 103 +- .../baseSepolia/LUSDC_Implementation.json | 239 +++-- .../deployments/baseSepolia/LUSDC_Proxy.json | 52 +- .../15c81200c85905d33a34abc672a45266.json | 183 ---- ... => 1d9f98e9f73009a42653e1abaf15e178.json} | 8 +- .../c8300f1cd6a8c81a83ee050186e6d667.json | 165 --- contracts/hardhat/sepolia-deploy/07-LUSDC.cts | 3 + contracts/src/LToken.sol | 49 +- contracts/src/PreMining.sol | 2 +- env.mjs | 6 +- package.json | 6 +- src/app/(site)/page.tsx | 14 +- src/components/DApp.tsx | 13 +- src/contexts/index.ts | 1 + src/generated.ts | 969 +++++++++--------- src/lib/dapp/chains.ts | 2 +- subgraph/config/base-sepolia.json | 8 +- subgraph/subgraph.template.yaml | 2 +- 40 files changed, 1880 insertions(+), 1637 deletions(-) delete mode 100644 contracts/hardhat/arbi-mainnet-deploy/06-LDYStaking.cts delete mode 100644 contracts/hardhat/deployments/baseSepolia/solcInputs/15c81200c85905d33a34abc672a45266.json rename contracts/hardhat/deployments/baseSepolia/solcInputs/{77252ae545c4d734665a9c3f89121ce4.json => 1d9f98e9f73009a42653e1abaf15e178.json} (79%) delete mode 100644 contracts/hardhat/deployments/baseSepolia/solcInputs/c8300f1cd6a8c81a83ee050186e6d667.json create mode 100644 contracts/hardhat/sepolia-deploy/07-LUSDC.cts diff --git a/bun.lockb b/bun.lockb index 2e3de7ccba79f3242a295adff0828ef2c63d51b4..edade964c5b8441a666b471d81979c2e2cc67e59 100755 GIT binary patch delta 127508 zcmeFadz_6`|NnpOJvOsRLQWkpL{3BFw1;sHIi#F*&R{UZn6pErA%xD_X`vH|98!&v z=t${Eg+!&K(k)VrPCDTGd|hkpG2P!j_xJPo{2t%m?~k8--;ZAF^;+v%>%HFVy$;v4 zui3Wl>-^!pUG8b#xNp4^39IW}v$$KQwOx{{ecWTyiA}}#{?+q_T^%ZYng9BMCa=ez z<>|9{-mp5s#WRW~H>w}~qF&ulesF^bWXslKz0gvE?8$ywEP8~ z>MgxJ;8lWNc}KvnJsGSB@8NjD9np*nYPWAO&lbzi%gW8C19@5FN2()#q0^;l`I*_G z-pqRgUKsu@dR6eVdC|=m^z0U%AMnaUuK~{hM@-32%cFR9VrHr?Ty>AF{@VL(>jOa< zo0&CoY%2LvO|(yg=I7)YTg`A#wO_}rd#EaP^If*h-0{}*#7Au9PlM{x5>TGm&^F*z1NSVpwzsWoYkeQC+OtQD z8#TJ6=WShLd8J1!zD~ZZs7F11Uq-cQo{{JE_3oj7gcn=|Bl6lL(?@SaYF=96WY1fJ zE(0TvSxf}wybl z|HF06L2wbg5txyem^UhKymt*;*EL!142L%?MED3n6%2ab#^q0UF`eOcU600YurB-z zT@_c|Xh*g@s3Ax}uL9oig3Z4aRLF(Fn&4-Y6aE4!-c!*v^;?65%19ug39L#V@0)r{}+7d-xWp2G@XE3`W0d*O>d^T66OAh(kV?Z?Z%40H_#9%NtRUK7N#U zJ$qp|9<=WJ=Jins8 zPQMeBN6vNphpo2a^>FocF(^+A2Q{>lXhfe8X(PwBYUz1#PLC~Lg(F8~<*LAhtkLP? z^V4!iGWKe?@=iN;*MX|&cTf!<0yPcyftr39RqXVA1C&cw?6$G+$49nY)*jn2?_(RR zM|WBL5uKPQoVJgI=Kn{aqIndkiVsqOTwdX9t8a&^XB!=^aQSzE+Th;9Ak|Y9uInd) zGCUQOX9t2ZJUuTlH*HMXcN4}ZAD%7S(nyE*FqEmwXpt4 z542G21yz14sOWwb)IwAQs-ed~UH9&OtB+01%bLVex(Hp@&jhP${%4X<&tfi(_5A+0k4zBdLIe7DwYwUfLvD3VHHq447#z;P0P=n zLd+c95gn1(yzryLwxd~~LgX5Uy^dJ^{&zN{627;NtpduPg8b3R3O#@4YTMe2bNYi^ zCx65o{>Bfs`TEo=y7nG%SPLyN><6JwhmES*+n$gLefz-?7V& z*$R(>YUqmJEgvyKd%EXc2A7@;Dx_j7`U8|#EXU4Ace{Gh{lbwksKDrr{(1xM%Se4cf$7YQBX0Snm1*_$Z_fUyIg*(-YsxN zLW~!|qj$7uR=6h+^c&0{o10ZIW~^5`81yUNg07f&9+UxTQ~Z;gx7zWgaY5hUQEB6u zf}Zy%x(tdna64QE71DDxyeJg(C)qa+?*PfKFs*=uf@6Fr+U=r-h2_cxeNPUGw{~3u zYI3IMCyr0e%lE+1>A89NBe+bC+7hKi>1w^Rf~Pa>sj5avcLuIBhWr8J;$Q^*?>WnAjP1Cc0v=y=!<7sMxyj z%%C4C%&qiH45$HDhtB{tqBP_mb_0%YsbmcwpEY3&e)C>C%a(fvJWI>kQa|BMi#nVJ zY9z8it&`U|JOk9^=?Q8PXa%ZV0;pA@yE8Cww$(>~GWfTO)__zd9H9S5s$ICPhV^7tu8!uOm-C(t*%#4e*At*R{-DFVKwUlqlq2$-KGNY(P?2>B z=uc9|F9J2PbwJfy38dbt(@s{m4gBEnK=tUVmYvFf3RU^7)uTsS_UzWZuB~<=fv14X zPt8pn&2+mp!4~@(l)eX4x3@anSkIdIc)jQit!f8*Bt#drYJN^^dW@wub%y(r@#EYRVoJ1Zn<|Bu zCt0Z}S+cnfD96Tb=0>LGGLKTn=cbKf5gFxGYGnuF49dxb5T@xI5Hn>vCN+lFXk+us zgNl=M*5n4@5Kv2Im55(Y;k5eK+rDLM(a-1XMurT?$jZ}^&&&7kH9c=%JKL9}_BMY9 zTotzf)u;9;wgdSivof<&bJN~|YnN@g)boAOy+hD9bX5B2(XQUaDXE2-8a}51Xn$; zbP4(%_`It%^gW>tBC9B%9zX2xZcw9_4JrzPRIL1Q7h9L6p{vISlC3@juA#dG)M&Q{ z<(czAg>6m`%g=Ip(3LCZ`r5MWM_j6cul2MQoqLIGU{D=Eol$SMfTplC$5nK-33aVVWm+i=8J&Pc82iJ*Qpm!sM%MyN;-IArqdBXLxEVeTFTHQaW%y&$`r zJy)zlm;K9$I62_r5q1PyfvPAwH$5+tm9e4I(tsOw zWZO{8qu0J?x0AF96a4|baS9&LqT2Ead%lT1q>SxnH7>RnG^4`ClzZ_;J0zi-T*bLr znY8akUbU`YLcTnenU*yP**kx#Ew>0%#NO)i(?Jc*Q#S{_Lb)=o(DtY=8MWc-;d0Ta zto+36+^lROFl$5x+sZUst_B9F$N6cQ+1hU|n{Ipj5U9Bti;)3uK!Hf^J33uJI}HnnUJ07U%zLe=LcW< zY-{K+km)t8AE=JbZtM9&q~O&BN9WK}ttwxf=kDJqC<}|{T9+LJH7jUnro<7`$Ph$;CL5Q1)D&*ZoR`b4wpK7;XYfDfy;1zwHlS{Eu3$!OV73s zQ*I?+9>6h~H~0s&bdA8p-c&NwP%bFfq~?zF4>6a)HJ$z<=w$IvF8D_0C8kYgP9Ds# zJwKTdeYA7K!X684`>Ph&;tzld`q`iyk`Ky3BSG0=&y{@9z|G!R3|ZLJp5m{0(E6h( z_35zq-2z)*(!;i%x}dJV^&xBCxsUjME1XuI3_0*E1oh(&3TUMIFSZvPa(p)^L+%6R z*y=Q-SpS`dgm5g z6?`4653T_H`$@1a{P`6&bSA-*;K^`>!UVVm;;U7*=OaLMXjIz7@mblPH!3ZsAa%Uw zy@jrbSqQ3~CskhS*kls2yf3JjYzfu^UwhIT@F=MKTOH2=RqhIhDWE)X6^5uI^+1Kx zWAs>&a33g-eugJx@B?eDAv3}1s)&cszU%vPdY5aTcqaNu*R}(fK4Uw!5S0AlKKlj5 zQxsRdyPmTn_AaRW^vnXf>3O3w(~L>K)GR5T3U8udY<xU?w~RsVK4 z0aiF|^!U{Le74TCyqtnG9=F~4sx6q7N6fHF4W_c*HJ(J=_Xu*>=b$Xz0;;EvgSsHa@sk^@A%$<+ ze9jkH<0qzhX>d*LD;)L&wOl8I@<>ysFMrzx#Jg`;Js!QPBJSCD>;+ZcwV`?ws0xBx ztwEze8F-aL7N@+ld_9Y?k4g?xUOoH-)TDlh`ov?N`H=<{X&-~qzojFZ66@b*=al7T zKd=QJLy)WQ2W5Hc%y<3yn5OdRJjSv5nVs*6I*Y>r*^KC`LxhZ*4W|YCkn`gdq7$E#9rIO6QGvE z2SLTiW8`Z!dKFXymw}3UJ;+Gov0HbzJk=Cb!wHVZ&Zn826*ANF^3$V%o;3=Wd||IX zI>)vWJ8RvGt~tgHZ|*2Ye6B0EV4t;;=V$&tKIcn&-I-rm90_XtHiNQa9jI}hG&Y^5 zyq?$RYuk%`Amdea+As=e;Nn1a^Y(qwRXv;6d-h+p{gt5P2Dnl6#U5$xI~e_==Y+yi zUvv4x`~UK{T!qt4ea&T`0{?fv<$CO(^$RCNja?}XdPQ-8Ml zi{#6nptzxQXfN$=W)tN(KS z0%h)~g6#2WlhcT;5m^NjMyB@i*J@f+99gyZ~qK59aq|Hxxx z`8eOvlhD=kpW&*AJ;Gn<($KXeht9C&&SGPd2N%FKFf&1|h#8>HTd@a_>np~2b>aRO zCR*zUP(TX;Uy_YYOwad5r{&8)Z%-xLz`LLZbR(#RX!lvRhg(1yP=v0AmxGG5J3-Z# z1Ipms(WCrOnpVY@AAsR9Y+uzluTYl0L_)4Bn2ee@LX=sJ6Rs8h{WbkEt=0}oTK z4&|Cxw>_8!*BX8TE)R`?tKnX*-0>RLpz(UAflonAYiKhJ&`{^+jW0|eK}PJ(KDkz$ zM}SS6bxxeW$ejeWxcmyLhlfG+@KaE+J_%HCU3;F*Ukqw-9PD^+P~|hvxA>gHlc25} ze@>yz=uSm?U!h-}I6u071U1RN0_FPABmD2GJe~2=c_jK&U8^7DH3b>AgK`?0EeUa6 zGq4sNk*D_5v-NLtm`FRCJ+H^d`FqJvz3baVSzMx??;}Ig1K0ST`FD@RDvse|%4=HP z9{)`FehuqKv$N{PuN;swvPY#~XGibJsu{m~Wu32HYQ6f8=vmn{;~zeA{PsD0Ubr`U zQFh(|?Yp5__iaG|9#rng7CZ~HK68Zqz z(;T@t&>?<$z#FP!(W2#%@Oaqp61EkVQNr5Z67a4oVfVoN!$vHQW96vMQU0RZNGi+c9`vBI{vS%aVzP#$?+i8mG(H)q&gVjqS;bNG* zF6n_t_+noEa<;%$!d(9-c`}w~iaH09gR=u>^;^MCf!Su&vw=?GU9;_#)=A-1UK3Ln zgVCgYk?>QnPJWX)k43^qV1r}Eg}TnA5wqs4V25~8Rxf@e5DO^Ni9PXxUw`hh(^*S+TJ)g7WAEUX#ci+DX^z$85qhy<74WimDd zItBl@$E*Uwo#q8RwjVsBpt%v&66R?zf@|iPjE$5%<6g503=QFRxE5y3#6U{uPLl1T zYo1F9ze&ovw&=M?xLP#eb+HvJjf985+WIVq@w*+?PRtbL1tQ_sq4EV|@?s=>40aKW zFyO*Q_XWIUKQHIuNO(9*zKDyeiAAu8U$S^rB(z;6qieRN1gp+BhhCybW9M5F82S~A z6ihveix#hoggoJ7n)6U3>>2x3R{3br<8%e4 z(0AeWK2*ksd;?FyG~}+Hlm!8=EA;GW&Kr^NO|Vw5v;110g2}pa(IO_sewZ#S8_jtz z50PW<2c`zg$eQ5M2h6J1@pbZpF&|-n zaN>ie$rjWnP}RpkH0ekrxbH!;N@|sd>?oEoNoO$pmqOJTU1v7Wgeg*R=pse}W_zb4 zE_}=tb>6<{VOy3^c{~yt4QpvKy9ZK&3m!JB-lV0yNLp^nnxu+Y{)l}6FNmvHFVmnM z%$hC)@v9_z`Im;`7i$$&E#b>ZY6rGi?OPuh}p~e#r09t1b^u5?v=AH>*Bi9NVoZU0WVZJ+R(>3Z`)>6D@u)68vF> zS+$*&s>w=o2n?sLv{r>oP7@*kramw|vFg(pv&&H0s@NJ;v?vmK0M;kEW=Tr;2U7lI zG(|rXk*lqfy=c-qk?{2}IW1(XSoC+g3)=ZqZv7|zMn^!ke7S2ELVeq8RXdv^j<(V}fvA2_&64S#cVUxs6(K*=mbm_bwU^yivhZhCB8%x-yu&E{NinT7!6rD{i zuv2;cp9y#cB_+4O2EptyRrA?^Hw+f`L-PjM5E#xSP~V5Cq|ZY2*3p~jnrBnOQ%UI> zrsM^ISKl}`MH3{b8c-uT>A)2YXD0OKHddWy-fPu4B>hkJf6R7=D|2VJA017 z&KMT8(JZoLW4KeQ)J(nC0(SGZh;(>G@raj!BQ^ACdX4PH{9KF#- zpg(KEi(%R;*{|P^gztGF;PvoX(vIYK$i*dDHD3&Py<;qtDrOQ7Gm4}%S!@M|VSP(j z+m}jR6E1}LG2}N@3_DeO>z88<%Z%G$r;K_FW=BJL9bbv{UhET?Evczm1utAq`NBoHj!Z48bs1n@Bm3y_Fum0*Y!@!)^Hw4t!M1r zFB5h!EgtR&@FP@-65}~zl4?Ole6;w@NN5ABbu{yll<*N!Zu?#u2{qWt z-f#D*0+KzWM=0_FDJ}a%_6D}dZKb29>wBf+W#-@5o3K;kUj6;p=Hc(OeW0fT?M~RK zAl&-5yhv<243BqlJzpSWvG&Rz~`uugtmvq{<8rDEb`XRMUJJ6HUaI|#qjNTvK* zb&T5pyVTc1d)*yjw20k271qb!%~zAs9*Y$(CC5XquoqLP>t}Ss97(}HQIdFNGV_L1 zvOf%!Key{2=N!(-SHt|{n1AY-2ODfF+8PP}>PoU`bLttqFLwK;d#T4@{t?>WX}^JK zg$$UYj9_x`i-0+t80ZxLMXWZRp~mqN+xKvIcS%W| z%W8aS!#HS?sCPMvjT!v_0a`;?ULO;gl`BUaK^v4|*M$bkgr?q8pcgkFRVwUJQe z>sT^8mZU3#dC$VGi5V0+>wq7B*WpxB1EWVar-V0>@^1|7Dg7G^F-NKs6r^mYIUI%- z!+QF|_cN*PevRr>^1p0r_6Ru>cAfG}(KNaUb7PAo?GMIE>Tq`}Y@j{M?oraOQ2uQ4 zZ7fE`a$)jrnP|?I>PUEK^%GBiiBEz zuUI~^I3;+~_hwZb`MXhc+Ksa}Ddm1}=QWeGj0pwf>Bnk(N=i!?w@bT{13#EUWw`d@ zAMN5o-OohAcfjQKu*sRoNx5w?nI`c}&isWW6*1iF6%ms#4Fes1H4?6R)OI*t$CBXS zqh?iEYJM73WjHr4js$-`YMPXzZ#{o98DMzPPj;!|HVc>SfVo-0{5kt)w>S95oc=Hk zD|g)MBjJrOd;6U9Xe9IptZnqj%PHZDez7Ymi`Uzc@P{y!;$D<-Jo{H`NqJLToh1|I z509U>5T+iNH$}$+$z@=d_^0|tzXiMj=>Cufr~GCPmB;F}$6~Wj$A!OOb{2_^`n^2lJ3GNn3g5RhDrVvtT~Lc9LMp>f7*&| ztmT|yIPL^2k&@&+83{N2%LWR|!E=$|jenVpGckG{s?1~y<+h^CaeMmXwh7k^gxMtn zcZMH^sU$JZlKTlv2X8;(Lsd_(Oh=DAnG(K+l%@qWJP?U{`b5Bt>mKMB{ux=D4@N&6 z2{t=v4xPn#4?k&|R1S6uEj+0(*OQUprzg!Sq;NGa=P?aVY-~zJ2Mao-|uLg zNt(iBhG{D=r@F&c0=B4i)-agz+)3g~s6QzFU1BIH7*vG3o)R8IN_SqE&528_f(;bx! z>GR9kPP>O41E8{mf#<>*Fu9VGItTn093zkZ{RFc+6}wUB+IXB5J;Gh;LQpKS{h1&cCov}lO$W)O$pNh zya@co#sl&>doz=7DQs!NW*PCbBbSJhTvZ!K?xY5eW!<^`CpV^??@ z-|+_odVpEhf6kTzQ=Z*)*Tekj=HFWW%lYm*r@Eb??6)j?gJE(^rDzVe-w)F;@K8V}laFdxPnWaLg38ylSGrN@ z4%PZ;eVPmN*H$}ZPea{(EYDH@fN4DKT z>$&SNsJ|EoqYX@x))fD^q=3KsRA?CVA3?BA?Tv)5fN6lapXTZNJeWTM{@uyjj>Xx{ zG;pEKbh}tPs3IA^;^j#&4YOVEg6l3c8Et91Y9rfMp2R#BX>>hIPhv)UfB#&Leir(R zNBUjYJ?(f^)BlY?tw1BwBtjMK8wdR-@^Pm4GI|TsDq>H3dtkb$^{j=1n%Ho{&74sd z!fcS{z_!CQ8SK*3vT4w}%4Z6SJ7C&1h_nYH!EH@VMmyX+u$kd6BRYleZ|26{M&1Wd z_0(=LWfJXJ*e2V7J*q(I%qEbB!4!Fo1>L3f9>fhXj_QG5go|6>x+Hi3NQ^e!IGO*Us zHA_>%cac(S81WF5!u*l+Z=d2@S_3&LGp?7y+=j{x%bhTP5!74??S^qzyF4XSs}){Q zDttL9JHdQ6h zmkzjI->HR~w4v|1NeNFTC4;%8&xWRF7s@LOF1Rc0%35+=iEMoquQ^MM{&@#?2;}yzE;0 z$x-f7n2jxZ*`k$A(s1^<-gXdq7{FtUt6?R95&9Ws7lBaAK6KwMCgVxEnXXp}U|L%I z8^q8t7~k+d&RuZd*jk>{pHeU_+7(SwUBd5D>kPY_j)wVdnw&={39})lZ(t9?y8GRd zbW=eO%H^>s zSG*caVRo(3p?VX{uG(7Feu1e)ZU8tV_U~`)wtLDVm#TPnOi9iLgjBqTMa5P zm1QXtHkeG@$T|NLn07HcKU)tDdLzV4(pIse+Y7Sk+JbQX*Z2i#T^jDbtz!i&=QS+ku;4iUKz(&qDPb$60>Qt6gDliz@i* zP6137+l4OlK9rc_{<++hcGT^XHw-4@-E#j7RJR-)+L+EKVY0*ySD&lwFq21M&4DTC z@N-jq0Moskz1tmnwH+UB{~5_!VG0Q6=8aIz1v}5;uW`=vjUEWoaJkia5meiV{jTc^ zmuU@ebglD}_4-}VQEJ2=uH!I2B5mfS*I5g=lE+nZVLBqxD<(mc>uo={JANoR9-%wD^;5VrzV-(@ge}tX+&Wd}Xx`tJYLZ6HZIS(v}f`5oB}(`2BDnG9rxZQnl1 zxEZGNXAQ+$XyZ7Y%5*IHk(AvVv>3G=|2LawK(!b;n_q$|yj?K-1TD43CS}?_I5*}% zwVPM4&UqQCK9w;=*(^H0L)9!dV#M^-6YK~u%wHwPL)1gU9g7aZ6N z80#Z(cV`9dqrsiXrIwir*|s`oc0Z`L2Djd=hiX$j!y5J-)Sup#w$F+A*S}GK`MZIi z8TuZ2o!u`l&5ij@OW;hHYz{D*cpj#!%Gg`kKU^kV;6YLMJXh2{c7W-bIUV|wXQ%l= zk2@f(W_Tq7rgeyLA4P~b7VU~n#3*KAYM*Vy=CoSI<0`IcPpz887tV{hxCNv$^)npDQg0_-uPB9KZ zuk#cP=FboRfppuMtW&zF2;MT&teQ?6n^3d`5wv>gW)>Ts|MguTQff?#FYkB3G}P`9 z(NU;w#LD~5&Yf)+3gX~OLKaqP<@yz>m67`KTemsZ8g?$v&}Fa)qnA$FDl71v2VHzX`bPaP1MvyH@33a|5 zBm5V*?jfaa*-pL()2_x{!v|b_haD_?jvNg;HQ?bzP|Z^N81hS)zfswRtl6EmRyS)h zpepMo##*R?z>eb2Fb$8Lmlxd?^kdG(X*NtHS*bZit%Yd@yO2HzwHN9!{zZ3}T*#Bp z@I7uf^2crn%_S)wp?hA5^WmS#$_$H^$-__%vGbgoo*H56q5M@p=q^=|0(>3(MVSyN8$P`^AoN zN@N``bgZoZ4aQEG+IN$x{(S2Rdk`H7lhatb>D5x0Kkq&7rxX{^RIPq;!L1Bj+cWrV`=FDN99rj{8g#&ji2-f>R- z3TlI+_%eq7p`ibQoc+4;VVG_N?1eoZwk7REm=Ci@KMu0teK2|Q41b+Sdc=lQRa3;< z=w)Di{kxT&q}*g?4pd(3zM1g7nhMjZY^TzrE)QoB&ii3{9AHN<*l>x-SjfUSa)~{* zS%aQ{U1=-e<}~!EWi0Z%vU%O3CSws-lz+?)4i823$h{lXt*oqk@4&900yj+(m)jl5 zh0Wbi9+<>)hd`>-bgKEdt;AiH0iAHFmOaqnB{bB3MbH~-j;!Z}08*NEENt|!`pTep zn`MNz>VOqq4{%NY&TI)jmK&U+j(_w?#C>EKs zpRqHFGv}&E_$rvr;=F|LHeP`#kmI5`l>8m$f}EEOE`GLTCT@)c=RRu=J*Mp$)h*u4 zt{UrNSLjHd3e#xV+vE8#f2p&bc^9g2<-xeIMsa$m1w`*UvBaT0LlV}Od9>+d? z*{pg3ld8UAW1y@_8iGq#*MLMJ;$G>V@XI)4kufL<%wuz8{ zsTx*6R*9`J4Qbf_Rx!LOcGSsX6C4JUvqO68JG>gE<0)GrkDz{bdG@=`=9^;+k&f5F z(VI<^r?LMjWGyY$bthrhz!(n(>+09|E(8`ZNdxE`tmIjD@Z@VIqloLrzaI2oobeZx z;7hM-pgPAR`p0D5p@ds*v5O{l;FKF-S_I0NB;6ImG_Bpe*-dZQ7R#BUd-2NiZ`%7y z4&^nmx$0YH)iZn>(f=(rEC0_0!uKjE6ZMEC^daohXy%%fP~Eo~Hd|yANfjaJ^>+jt zq3ST5x`s}@j@tpK7n9C#Ps%*7k;0H}; z0<43{Ji*GX6s-kK(q3AF`3FXS1wLn6DHgg6X5VpqjFi6w*js?_m0|C4yT510klOyj zcQCEluJ5p+{$uJU@4F|6T2Ml-!@BujR)%VSzz!8XvNa_@-bY40ej^ zu`?K5{anY;BRjFl966hp0YBu9%66xKq^#g>1w&thU1!$Z!QD#2F1sYN%)Y_`mlS^p2=xVP{HhNhra*58>U%m zoBkT6Wz=V(q|aF_{5OKb<49UhX#rmXQ8X1)_t`DyY^%ZUGKrGfb5*P)we)_q+c1(Krw$)0nUK(i}_! zg=2B^doGXFir6gkrLD!C@;gE8)~U513Tx?q)47F|)?Ig+sr8km{#1?2`N}zUE3$mR zozHCUG{0unD3U{Iq*|K9u0$@WUM6vyO}Y09njQ%H;pne_p>Z&GgSwKWmK~0Y7=9S0 zneUmT`>6dJeB(dcxQ~<^Vc&>(4|bE!IH3iv`j=_4l{xm>zpM-FGq>=;SZ|8w@LXmn zw2j}*B2u~|p+U|c-^1iLyC=8));_ZinPPoW1d~JTA^TyNzaaXd`#nta-5tAH9CIo*w z%%3{3#<%#6g@r#l;0wQel9$-z3nY8nWSJu+1$vWo>b)dg*^f^ZsQrCOfiWce*&3cb zr5-1Fxm7Ryp`^e0Mm7T<>4B?S;i96n^(nn!S)kE`xaD18;d!&Bs*cc-t(7?V6|gr z)u$Bde+-AJkjXiVQ@~@#Oq0FHUn1KV9@KXI-z~#un+Z3V!Yyc$YG4UWt=M%U^ab?N zXyOAY;bwo>`vea6y!Uno%q^s_4`J?TO7-pjjOFFvlIbx2bn4ITW3XY?zK#r6=3jQD zrjvCxCE zZZO@Va(-PD3C=!YGWK&`fB%G81vct<(r#91-rqlo=x1@&iiz(}x@>jzB>zvMA997= zLb{k=xww`xZVhM?i1SbIasH!~n_%|a5DnRSSn8>wHG^^X@7MhPg_c4`nj^trN?hZ( zICJ0j2G#5M?!DFI;%uVxH3Psp-VZCeH{s|KEpIQ z#L#|ohRFcK7xLR2x{OBYc{)soD0;&_vm2&KK_1^L)jTuKyUL!ma!D$Y}y^9Gpz^|$|J;C`59 zJ4ZHdJT|0dF2QmldpcrL+DerWy>?mV@;7pBH> zJKNZ1n40tlAr#^_J1+KvC3v(df8~TzTApnVfuUvm{6|~AtD#RxcK5f$WPTe&2N|yB zk<7i-_!B2C`KX#{Qj8xj;}=2n_=YDwTO*;zVZ&_QRcn|-6bKFDr$PGpQs^;~SK4Ge zKM>M6x`w|Uzl4-_+&Gi88z;iFmGfof_sn~kCWbvzU&l{vD3(|YIiuYJQ%Sdtz5~^a zu(#~@@#`B}?Q{-dpu*=`zxwx|;T|wu$+~tozwvNxoEgWDJH(@EZ2grsE_7a;j@;qV z{H}<~vOW+PPr>YYfHghzi}IqGMJb^c{K|;kdP9>>B{!8M!xd}WfVZcQ0Wi%`40xKS z1YgxQhknDAGx=!|1)=>CFZ37GosT;3BP4#z*uAU}s?lXF;U4NmnBtBR;BD5UF#pUI zY|Sg4zfL$rKfj!m z7HfaHhr3=-!k9dF!K~}GhZMtDFI5tc4Q&t`Go4ZAz($eBn)ofF3-brbUtd}^vN#X-{!A_9>dwcoM z8Q?*u9|mRUpI`v|%i(eG9C(fLo>va64JyA5sD>^CWk?gS64(w@xh~+@;NbFwo_>tT z8-q{*%mr0Jp2K{w41BWVQ$T%$s`w_yg=*k-kX_b$1ynt+y8P0J&EDHif7^7eA9t>~ zw0>O8#w!1TyKcL~9j=^E`8&ZfW@`Po3k&7YPhECtRKI>uG4Lms|4%4C{6W6Daom+F zjcV=$y6~h!`A9rafq~P9LQ))KHFcJ00HR z^!cFT@DWg-|BQ_Pe=hL%eAT&%|ES?Lt^uJ8S_{hXXFv_j22h5-0BW+n4(cP6C%1z9 z>s0)BBMDi&8&pMmL4Aa(=u1#z_l?tqDtFlN(x`@hMwfxVxqP7vJLdF19sdg~RK{@< zvh*aV3gTHbrH4T^bS9|$vmCDmYF3=*cmk;Fnt(F+B2d>Sfik4E<845Fgf+lR^}DnB zkof-yZTtTt1LTBv2LJ1o}GwD3{*}YL8n4 z>LZl?AgG2P0hP7d>1&++G^n9?4%AZqj?3Q)>LXOl6@ElQ4Sx#C(!H*LP*M7|(+_~E z@UY|GIXnV#g!InEO4U;rR6Pl@+Mztrz~wh_`AsdJ={0jgA{aEs8^_fsR6A{<`Uu54 zfU3VMsE&7cc!|S4pguz7_XE}L0LKS|a@$kqhr9L5w7T#Uho3q80@SB8s=@s(|7%bc ze+Q}q#jdgh0-f33?O z0iKIK71Z^GU^#t%bE^~Pfcgkk;5JYV-wtZUz0dLa4(|um;6jka+Jn z(kKJ!p=(;UaQS9Wi@4V2(u?BaeNQAg`JYhDv?gB|api<+E*Vty?Hx~Xyd$WOQ2Cu5 zFOAy%uC2tXtBS631%#S0X`uAcPXE7$E)xE!0a-rQ8ItZW1Jsn7;CL3Ok5E%T-*KTl zHpy|JIyBkg6j1d{Ep!E@x{RA$#w|`4%8;3k3sv!KP!-$`%47Gs{L-lF?sIx+lzu0Me z=Xhz9YhQ4BX_Wpdx+>n}@`d7?9WRY4|0cR{t6z@s-$p_Wf8Z_OKq!3zs10xusGi;E^qW9^{t5Mn=YE$jR67emIs0+_ z^JMxw?g|Li&e+fw6>k7F1TQ*#1ys3LUH)cJAEC;>u19F9 z;B6#-7D!W(!^@#^nU)XV>47j!e30Zt5 zsIx;YmvJtrk5Ct$=kR<`1|~RO57ehLDh8S>-%M@G!CsfQbj4eN>TfcrW>Y}f(Gk=~ zDBjue(x`g6xcqJoyF2XZ$_r&)AE#fcpCQ+WL&5Q6|P)qltEXa%Ydt0 zzEG2B1gQE(yZkW@$AY>pqcZKQzyz0(z6uQ?(&5}vn|4ik?TF-WTEPN(s7~AJuiZ)|0Ph> zz3TEyqn5|LP8X{DXO0V1?>@(cs^?3Mm!!C1pxyyIh$x}iF`nwFF_yEU+s%VhoLb>t^>1JDdVpxmW zXjg2kD<;%s8IBA6x#{=>P|ajHUK-Vp0(3QVgUc7H{EeXMo$C0_RotpW!v6?0Y3=~k z;61M3Jcsv!`ur2BfhhS3jr&10w7``wjVia$=?km47?z+0A95L`u_yXh=&JC5%l}WP z2EK9SN}~+>*6Agvf1pqe9|5&Y{Q?F|#}09I%%vUT&eDJ4{lmvGccoCiJr2sElez%Z zt)41~*U7`7Dn0|A046&9KcUJexpJk@t}`uNhEN6DI&ANBp$zKauoEc5I)e(bKA;XI zgPcAXRQaKf4|8}0sE<&y_WG(#ZAHUfhENxda5&28!gy1$6G1IkXE|BOip0OP#D5&h zuIY}KMmhFYr~h|Q!G4D;UkYtdNsu9TgX+lru3%}DA;#%Km0#qzP>y~WRDTz{{G~3x zG^*U=uG~uf>rD!UA_UE*SKI|c6?_fU4);DN13qy1|Afll?ylSA%75g_3zfeclz|_E z^7JA7iyms|dspBGhd+Y)2-VY{92cshpFvghtHWcU4sh|hnRlq`D!^5LC5KfV)&P}X zcn%3wc&@|qKz&N1DyZx9(kPELch|LW`9j4;YsZB$w5{X+hK2uChOgJ;!ppc&23`)z z;(@Lrq4YtH3za|A;gz5azZPr_&I2{M9t0bLo58YLRNo?@k5HDr1FGV8o&G;TUBA`U zvkjDCA2`0<)$60;UkP2X!(|9{!7j&z%Kr$IfqNYP*x@Ijdipu2&woPIyWf=)`twf- ztv82UhENTC2dd#CprZ8zsB-11Sp&;EtO%-nCC95ctOm-kS`N<#6&v+H-7FGCI3^ZUiT;@4Z(buzo?LeT)Na1cnnmJmxKBU zwRAq=^e3Gz)WY=~sEXIS{0%N&D19R+&u#)0{aanWP#q}zfP^gG1?qy2KsC76@y{H7 z4(cP6fnPZO-$AVt-@EevhJ}8Hg5fv?WWWhmurx|Pi7wX#tMi|KLm5=Y=|c4^9+X}l z)O8hIzEB;m0tP(uefPNP{{3V%m;awoc2xJTI2#!lpw=;x(uNT_HtY(1A05`0{QYpw!>V9`Jg;f0LrzK9iQUzZ*(}-q1sVB(?OM=>9BA%2~{-56}S!5N2m+# za9pSh?*>)=9;cT^jrl^Smqrck!%i=a+@TkGD_n+96|V&Kc>Ot04Q_Dx|AZ>P(dGXq zRJj)@rw+a3$_w?@llKM*S@^Ciunp7&?}3_4J6!&5P|L$-PTvn|790dMR6o1?KR`|U zcp_5ugdLW5SOHW$l|lb2gIX@*98e#jTv^|7p(?rntOxc4<(b|tU#On-bzCR|t_0PA zYhC{Jpcc+Cpgf!p`th%XDwqhWp-G@Fyb;t#sQjs*ES~|&V{=@-P#(As)b;b7E|j4Q z9RCNjcMS_EpavcQRqXl z(5FTzlqYJr0_Qk9*X0Y9e?F)lCV<+NTe*Cp8fXj3;EtdS>g4iEqaG*~Uga``x**l@ z(x?VUqRW-(pc>9}JkQ}2P#>W@G82?X?gCZse1{K$s^?J#!?&IlqAOGo{ zM@>NKdY*Us-N)1KKAwK}(LNwO{q7@QPwUb3tNNPy-|+Oik2=4ee)sY8yN`U?qwn@k zzx#Ol-N)1KK5~ZCt;XqhA5Xvgc>3MP)9*f>e)sY8yN~g_eWkC+Prv(!BlP*NUu|@c zEdT2Q|ECK6ALgHa_wn?*kEh>#JpJzD|6kvIoZZ>Pt?z8g)V`(5H=i8%e!(5rzA>Ww zlUuJ|^;hcLC%3QNu%i8-t2@uizxcDJ7asYzSJA!iq)xf@s|jm&5B|Jg%_UpLfA#16 zS+y(m{BmxSg{#a%wL&!uBd^7cUOl{gU_;-D^AC5c=+#d7=JxQThifi-_`FLWda&9v zjq~$2j9fW3G3l>ne~!9)RK=ZjCS5qS+~q$-R?OeJ^V{4hJYx#*0}3a=G~HLZPnonP zJs!CH`}3b_b=lGBXSUpO#l{X3`y9LI+LWt$4dp(;w?^tYG?`gL&1uJaQnf&cX@jubX?ruV&yEZHt?>xbW^7 zDZL-xH0}4aceai$cs${qyzB2Pmwv)~;-Oi0o;kVpp&cC`y=m*?_f$^Z)+bWRyfLNC z%bN3e`#p==PptFvvb8CbU!C&Btp|s#oqE@@i3yc5CVqJ5n44dp+isJYU2ELd`I|G| z{^Ymoo;>%JP=%k$ukE#Cz-NC3>#a7&W!|wtukU!~q4yfx`$XYY&z%>)>-=&RhkkTl zuWOGDzB#?_*IypEbz!}!V;*i+F#qB%zjnDTH?_e{buK^j_}!nsw4iC#Ps)AsuTtiv zmo~5E?yZ9t-22qXk=qizai3M}*zSjZjoMc@+BbaNH{*J2JoZ(!AKv}!$M5FVdTiQ> zww3z6nNn%|`X|d4OphCsv9C*FnQ5D6n>FWRUU+rYoBwS2`yYF&_uRd%-o(*A^sXJf zsoyO{_Xc}j`TUooE01`k`omXm+&blf8@qISWAJkeh7@1=^pdZ#p1xp5UYQ$@%-0`! z#0Ga;>+ksO#FvlUJT2|+m!AJ)>XsL) ze_ZRkZRd=wy8PaUSFRY^IOUF_qaV(1*kMxjYnR?;DxQydEnfKXs=)>GT7U5QoEv8h zdN#iDq~XohUe>wdqAJ_}STOL`2dDk3>*kv(_ZfWOw`*&?)VbxCO~x!)`)sRzGrzrl z`wt6RjGJA`ysXmZ?SJI_N0v2?_Id1!6USb!dF8=Lg|GF#yK1YuTAcU%8})a$yJ2aK z=RfY-qf4zOmz{jG_>US5+iq=Kv*F`+7Y^9aB)wtlhbxycFUh>*ReSF_@8zdA)gAu+ zcP%rPS6Me^N6(BW^4{L|!#yVZrxCBd_IR(f4_L+5oXm!m~OU9I3}S@9fTQXdL4un7a$yvFpGcd8sUlt2=nVA z%r^Ta#5Y9fk$^DQ%u7IcUcxUDZZ}=)A&k8cVOc$dJNZZ35Nb9;7*ZeMZnLC5!dntT z7a+_t11>K2y0BSgqp1o zhBQZb$}DM)@Ro#73xpywpasI@)(Gn)JYxbEAv9`(kaiKmI#VQJkA!MT20J<3^guWu;ebi%if~0wg!x?&{$=({h`$7(M>m9T z&Ae_1&rA44!eP_(VuZ215SCqxaKsc#sM#A~NOy!E%#!Y*VSyjb?}B18pa*c&tQ7oY z0zHAB&6R>*Op)MM6TSra&7=yBnGJ&9P32xxo7|6T3wlxQpJtPUgAy9_MmTPAdQ}lA^8e~ zfJuYY0Mu*)HLjgf>GF>YM39@!JLF zV?hIxGz@5H<_az}`vr|myDNakW}cvl`Bu=>biER2W)=z(O|hW4>3tQ@!YmP7WPTSU znE_V=EzL?nD-*Z|Xl4NU&V?hs-Gy>>p<_az``vtvByOBU|GY>G& zkHs~=jKnp4P1jKfW783qjY8;WiY3&{Kp2vSaJgBMhVYhz&}f7KX258K$>R{#Nf=}T zV-OmRM@SokFvJu|*dw9ZScG9Fbu7Z1OoS~Gt~8a?5t1h$6r>|uZ8k|bD4{_H!nGzR z17SfH!Y&Edn}l%)y|NKzjYCK^+a(;6&}KZsNHcvr!ipS(0}|3qQYOL`xd`(!5yqJP z65{g^dQ3n_H}fVSJTKuF3FA!HEQGQ72+Oh%GEK3Bngs|$vJtY(l5B*xB!qGha?F4n zgvk>T)=9`Sfn0<}lMvE!5eiI^ggp|f_#squC_k zpo9hm2vbc?0m6bC5Ozr@Gzk+CdfkXHYa+sQvt7b532i1J%rMg@A*{Fw;edo$CTTLl z6;l!BPezz+_DhJr8KK7%gt=zk6ols`{379Y)Aa^~v4sfBZa}!x6icW%4PnTQ2zQ$$ zHzK?xA#@YMJTu@Xgvrwp)=7w(z*K}rw;-fVMVN1jBGXr6ZgoUPZ zAwu#@gn~kZ2h1i32PHI^hVYQdnTD`n7Q!wGkC=q%2)%Aam^B??iP zB8w{;ikb@DinT5hO#<1QA4ni(mAnhPq5nHn02 zdsHO0TUoaHf4=ZN-><*V@AJF8C5D-m20M9u_u zyU8P*5odTL7GPNeh6?#XzaxtP6EO%n~5Y0p+ela7hrE34G}$X977( zfeJx|i&zN6F9R|b0_R-0z<)W=V-axPr7r>s1Q!M0y6DBg&=o-TV&HpsK@gG!#4Q1S zbXiM)Vu9~c;DU=?3Z$$A@&vy)pJhP!TR`G6;G)YFlnH{D1HZe3<-oMJfg-^lE@%Z1 zl?^1X0RD1?f=WSH7VwWt$^tT10i}Y=E_5Xj^A3=DAT_o-uW~ZLZdWYF57Wn1>K`u52NLdHu2^u<|)j;@rK;mj3*yRe!1i@>7#x7wE zFl{|hBxvG-)&f!Q1IcTFX0A|BDF}NPXzr5U1u}DiQb9`>x(07zR0gt`*JB|+qS zKx;SoJs@WTP$39&5$l2YjX=hFpp7dR_~!vV-Ur&c^!I@R!9_tk7o7_X-2`Ok0v+51 zK}bFj_W^K|%lZH)7Wi%eB3$eSAf*7v6Wr>2HUiIlJ#O-5 zAZI&JA?V>EwgB-vfQ&6bPggGR-wE{C3iNX6TY&<>ML};D{UI>45Xk-z=;JO3LUsXh z+kn0}<{2;K?wa|t_vX+=PhpuY<$ z1fuo=$%ViZu24`Z2-^h=;J>N?nfriJ!9W+f8;B_e(slz0u0(K25V;2!>?ZF4a`poi zfeS&Zj_yAk9U5 z0>qaB8J_^JyK;g5XF!h`NuWru&;=a>qD}$H$AHDI zP*5odD+89gq%t7$G*Bv7?m~|PF=v3Z<3N@x5nK{Po&er*lTQFSXMqYqwu?9k#D5NC zoCMx+*HB@lN8SnsmV0L22|vp}wk zJqx6K1>^}fIG@jf@CqRDb0E*<3d#h*O|AfPz5yx(MK0oNApTn*<7;4_ zD;M~G2lO}x?04zsfC9lq!2uUt2@L%n$gTtqx(kAkAAq>?z+snl9w-+0egl-a*l&Q8 zAAvl-++rQS5PJh{vG(;CHxLd`x__{{NaKw0a5<|$(Mk?T%n*+5cUV~ zk4yRk$ov;56P{?GX6&V{M;83|7u8&e~9U|N&7?}AlT&!$^^mHfW|JN8ZgZdC=xVr zLDhjMe;~O!(99JIDg|LRfaWf#29Oy5lnPq9P+uS>5J=Npgt`*JB|&6OptYM^6UeCr zR0zUcgdY%J8_4hj+PHFoe;uHQKhV~t`vV1ni-LA8Ish127sw6(I`ALofslGYTp)0h z%L)XF1-`X_2p3xmNU0Cx32t>hwSn*;Ah9+O>2d{Sg5WwpCzntMnAQL&5_EP!b%Cgc zKyqE6iz^gV3c~6EU0qT=AoCiaRM5?Z)(2vOfwcNSv?~!@5<~_8_qfSHKu#l|LeRrS zGyvio0~rl~o~~Tr9|H7f2=sF44S@o|ML};DeGM?Q36Oma(8pa6gfs=>f`Ps+D;Ovi z_%;G!U2G#Dr5TVXc*OZM2Ewle5*q_?E>}<{2o3@Ixr7j4T63UC(BB0$0is#}$xVPK zT%n*+5Y`kJ;F6jGnJs}*!9W+<42Wq3q%{K)T#4Y4Ao5yZu$z1>kP`}22ohaHb0GdY zAfq`j#FY#DTLV2>0K;5*3!p%7Q83&^w*-b>4`jClM!E}vkT4*w6)@UmwE~I-zM(*p ziwy-*ZUFKGW1Y`+KzJJ<@j4*cXL2-G9!Uf!EzTG0mR%6q(uN(u0(K25P1vmmYaMFkkbjM5M;ZETY>l}Amdix9ak>! z?+o;~4Os2cZvzSh7X@owbR;nJ4j?-cSm!PXLb?EPw*%{4*6l#Cz_$~S>tZ_rDR%;S zf(_0m3JC8CBt`*wE>}<{2<{BzyM)fbw7Y;J!Dbh92N2Z_NWKHu>Iwywg0L>YHkZ@| z$m|Z33U;{AJAs&JAni_|(3J=-2_m}!yWQljK+fGjg`mhq+y%tn17zF<>~rM;|9gQR z-GKcry&F&I!s>H$RE4hPP#%tr6BA+;IvD+56J8d zlnTze(4Iid13+3&pxl)RE(s!IfG^$T7$Bz)P$8&r5xs!;2Z4-Uz&Teg@b3%sxF0z0 z((eZf1Q!M0y6E1((1(ER-oW?n0^sw5>-7M|k1mVC702?hZyz4M;9~m#DGvjAf?u4^ zgFyHrK;nbIMVBim69o4Kes>9dfoYEdMS?$E&_h5}9FY7F@RutTR0_gkfqz_*-qAB3 z14;##UFgF=Og|v);hLO(_`4$y*W~;|68Q*H-QP`l1j&gc{L93w+~& zAQu}CqznM^1Pz@}e<1uRAhACX>~aNVg5bx2#xCJ;VA?>SNYKOuJpn{L4J1DSG;@W5 zNLel(Er9MIF1 z3;f3bJ%$6lT>5aJKyXpe+eME6h9&{oBY-~cf*|C1AZ{ek*JX_aiUq!-fLIqh3P>3X zeKBIx~7l6dkK%C1JlnH{z0R3FT7+_j5P$cN@f|7u!7lGs?;0aeKs1$@f4-9Zg z&jXp`fKtIg7djS*NdeNv0tv1}a7hsP0x;N3egViC4^#*eT|_bv{}Paq3=DDQ0{;m> zj~9VqF8xKIKyXno+(nNAhQ17Bj{`=!3xbe|KwJti+GV8x#RA{)K$43c52U;THp>3Z%Q(SAmr2K%QWp^GO53 z-vAQRfDD%_C=&#~1~`}S8Zhlmph&RL1-%YL%>a^L2Nt_RL8TyU8nDzQO#?D#0;PiG zE_6B&GYd$Y4rI9!!6iZD8^Bv`@*6s{6?pjhBL8_0FBvw@WPK%QWO^O*yLX8?(F zfIOEgC=&#y1Nkl?9hkNNC=zUTL34p92PDr0wz@(=r66n`u+1gS12Qv#Qo#-vIvM=0H;^(>CawY=$9 z4{%e~B029P6%yY7cgwp-d@hplF5(y9zL5BTfb>|01O&Lb>yQG;MMBqBNDfsMPJWlt!G^n3w+-Pf?VwTKuR8vCurz=a)IzoKw>Ts>~aNVg5VE; z#xCIlU|K#PiHc z1d*G7)^749AZII3AqaC3`9S=KKt?{$#+3{Fw*fs0fVM8Z04NY#6tr{En}MO*f$Ysd z2X{dbvIB_Q0^H=XwgANf->pD|i`@#O>;&=zw>qB>f$%~g@k1ce2<~ zxXFb;&R(EG(8ERS0^;`p8M}aT(hpbZ+Ff6bvm&dC@7}I#oe^%?V|SpL-zyO zdw@Rff*|B0Ag&1L>#~Y~Vu9~oAlAk11yT+Gd4flr&psghV<2%K5a)6QWrE;hpr1=9 z2BsYZiUj>#(0(B55Rkkdc)}G5Dg|L50RvppM?mIbpj0r>g&qK6J^|7W012){a7hsP zF)-Lo{usz90V)KEF5(~%e+0-l2n=!M0{^2xk3+yPmwpH+5L^@tchQG|p`QZThk=pq zf*_<6i2DQ>?Xo@riUqzUK$43s0a88#@&sd@&k-Q}7?5}bNOrk`GC}ZBV4O=h3QQ{l ziUi|b(5FDuaUl6qV1g?YR0_gMfr&1u6v#XQlnPQ^=x0F8Ng(YrV6rO_ToObc1E#vk z$AFwuK!qU9MU(;Yr-6(z;B{9n@IM3eI1WsA>BoTr!9~HFF8Ty8^em8l0+{J82tqyw z;!XmyUDipUSm1jKNO!TPILOU)t5wW%KBp<>yZ$ONT&{`*F5nD>a|tRk-DVXFUC>#I zMQ)gi#ja4r64&H&ilr_|#WJ^F#q#{n@|x@WyYAQc{XOsfh1bsed|{2iG0zVhJ2HVE zYJSt5xx?=b-U2OKl7V3m$F{|g-bPu*Q|OP?{i&WHLsd8}clkA|H6~&3=off#VKLS6`+ik(W)00t=%~@pBz71we#}pg zGuup5%Xif1F)wH#^nQYuq}iUWrger6s8+SQrcm;tnWp=Ew4Z;YE>HdM><^C8h)n0H z{C`LL-B;ar$aBnee!}lHNBh(nnehDZ#Ao=o#ba1+|FekdOd89(GowtWtdq~vJyErU zt7T1aKaBGm6gg}{HT{>iNrOiW>p1ecu^!Fh`d6+j!p)TY6h+l+Cl47h?Ah_pjjhdp zp{iO_^L(mS!L={>edXI_dNogop7SkPwdQZS_a^xL=6n5YYkTg>THRU4&%YWge_5(u z$7B3>(GrN!*hE%4>fA22^|eEBDGAzrDWqpQ~EStg1TW z5{8T%#%%ViWU1;UHM=q^H^(sfUkdZzo9p*njXH<^y0StmC|So})jZ&Sa(=BES8Zzc zqNZKGvRTc$T(#C#`{aMJ(67C3oo8BBuX^FnQ#Q~uT=sFTeyUmH_1al}`L(nBw}1M7 z?g^U$E2rxB{Q0K|yWFSA0p0T(ycqC-PapkczB*}k(nH+t#;VN zX0|`3pN$VA?X2C?m>#=<++^(rnYF>TdjF-(Goa==ob0s!sWQYGw#BmfCnb7(nAwfg zbIpdEwZqae-9}9fYy<(=#(3$DQ zX(@Cj3(Y3k^zOhG1z!1Y5}qm6unV}%8csF46I*Wfs##ZTm0235C3qKk$84Il)ApZ( z>EJuvtUL8JW^d@fY3S8yr+Cjso?#8|#&XSOVyfOlHkmn0Pkb*aFk58f_Q3Q%wR|ZT zV|tGJNM~D}ORZf`p5N2eaG7BYb`Pe1da&F^?nS*hrY$_n+TBn6FZ=1Mm6%>-Z}PX< zDzgW$f6Ug{xZ2hK#k7h%Yq`@LK1h7{xgg!vS;M~6t6^&Q9(S67he&m6muKx_v6^O^ z%pS&So8@DAjz>s+v(5gje{CR-k_I4cJX>t!IO+|p;a0Q9F#Tsk-99wyM?KhVn^`>e zqvn*`cC-G}|1jHO_PED2ofr_9x|3ne+!N%owb^C%Bz7++GrH|D8$kVjv%Q#B^HbzO zvjf&{AQo$O5YuaYnnai#!q|jTJqch3!xC#a2IUg=6aZdsa=J&dye{ZX6LNkaBQ?$ zrL`M@jj`!{gK4`SNnSAfNgJW&a1=?lk$<)cj>g8B{bDu-8*d~3YLf0?~VeVVoV$7~!n)a){*rIkX4nQ48< z#*^pFe9T_LMtBc`)eI+q@z$`q*~?gevl?a-vB%AP&0fKtFso^%L(G$AerA)f0cQRI zw9p(*CQlm%Si>n;j9H-BRIH;}Ewfj#2(#K|Y1pl1b8{9ndIHnVS1OrZGsE18_ZgnIjoIYD5iZolZ2aHZ|xRhZOy{W7U@m6gW(M}@?sj^g6Y(*tuFquEldyIDK4WtjfOm2U0LmQz2EwWRETX$Du2Z`4lf|7K8!(Jb<Bxt3kO=uV4RhP`7)n;d|8g znDsDQj}>9zl=orUklrU>b6TKVjJ3<9K9Qx+ma>=G2h{a1Hg&t-Yy3s?urhs`!qpJet3R!!@F z3prPd?SL{)NV%09#&qjvBY#Le&n(_-8>WBnqFaBn?bK7u9yi;8jW>J3Y$ujF!SG4L zLU1H@C*=T4Gqa04Z|w$JyWLn5>@Lcut=%5#4Y6*NgUpJkpXPvcH{~-n?q2HUS1i?& zXbty)71nTwSuyst*)SV4khuw0-oT)Dh7~>;E7F zZEfoxZ6hDDhB1_5%nnn()ixv@I<>cbLSAUdhDG^2rY9*OGwPGfCSW>qJ4Vtl-KJpvlx5^Kvo~zq&c~SP zRL|!O=s?q#a+ByY>C+y)MIRdOU=H-dYLUV`wG*)uYZ_wxmgAEj@E7krd9Ga ziSYij@|A|?z*aPjqkP*&uB6@=dyF#M>^$`lo8T(5Z?LLmPVtV}x74e#9-g4gG5e1C z-um2eTb*k7Jp*xuYs`MYo-$i&_9J%0>|L{;uusj_VS05JNSWDsOo!W_$w{*fHg4)K z;3;qbpjZ4W`_w^S|nP zl+C?1Py7tk-PX_tYiPE|tQywXtjMf7*34|LSq-d(**-I0tfg5orqxta@4voaA_E_R zZ1f&Ktftu~*3cjOwBD7!WR6(70Ibxk%-RKFIhbxIFuk~1ST;6{`e}?oPi^jA#j2M7 z8N)hYnvHzcMy`v!X7+_yJ?tfHI1{R{aqD9-*6wSwAS@mmLA!I9Ho^wj<7VG_&;J^N zM{M1FXCq&OEin7uEEvl)`vKD;Y=q6n#!&ys+BL?0VI4n@UBI*yLa@^u=EqY1)y8e& z!|Oj`$Nt}JUnqh;f>!wp~20hnur_(gu>X|jix|r!ST_7_+Sb%rR~l zrp4b5Td76KE!^6**Zc2VhHXJDg$^`)+pL{6?1*KXwKuy7TV>Y4>}E{=xK%g(nZ}?e zg1e{9Zo)J(w_p!c8O#3`Yj`X85V(j2`rA!2a~l?G7HRDwF<;vVZ#TOgo4_u+gmF5V z=_i<)(QY{wWfq0$U*4|3I%Czf{yT$zgSy=bYB#w9`^T)i8e(0r%Qo^oHo-fwYRupY z9>3SDD|V4~Sy&IVyDw@P4yshGVQ~{GjUm?*VXwp*}!R!#>&hwoQ)UlgVVG_M&0?_|%=9^f#(kK(@KnPD!$-ij zW`oQg#oCz-HjBeLnmuFo7hNdnLc{cOb^F4n@vhJ906`OoMJW-D>T!`aSVD! zakm>gMm^1JG*)EoUNakm?K68F)A1t-+i&)UwM%^-JYe{y;aKcrvl(VDU3u;v7s&Bf>qKvZbIF&~^>vMG62o`W zu!8zxv&mR@o0+9H!6{g@wbM5^40@(=*91FHUEkoyUgfT-jk^NVDoN85>nQat18-Tw z*RVmnndtVm+3Q$t&=t$Zv`bIJ^32}1cGIzZvs|+`um#u!#`yr#i+dAWi0S>uv(XyP z0GHaxd1f;)&7l5H*km>f`_5)C-zGR4yJWW6+RefKFxz65Zqxgn>21~LzYJF``d~Zr z`H+UJM$bGR7{|z$sPD3o=iA8oJ7Kq326h{7vpUz`gK4oY!1UI8nfg9!=P+##dctC} zOr8G?v$NLyh6`!%1y+;tBeO-+zcxEywix@~>|?Vf*bin0F)iw)n4Z{=9JY4LsOvfW zwf;XbTuxn2;!jy(wt~8zM0Uh1i@Kgfb`;Z-tfa0d2_U7`?k(!uX{Xy~W^ZF_ut3UV zn4aI0&E31!u*@2+lCcPDQy$0kB=1mPNV__eC#_u$^+jfvo+X2EQs=R z8+WbVe+L`t10f#syvtof8~F>fb=VYUMz=4`-ovJvePy;D(|T`ASz-1*buF0?qR)~j zJh|L`Rdw3W`afs*0oYUf6}L*W4OlO;^JW{d-e%vJc40fs{xsW-6`K8Jwg=mVU9a{3H>kNO z0(V=(f6ew{#b!F>sk#qaOC^l5CPv{Y=I(n+-Tch10RChc zXbnHcUgj^D8!2m<9i;ws<12s3)HXYWm0;~D>tK2zhp8Vit7q*#!H#0O)yFtl@|0kE zQ^5{Yg00~Z>c!Tuk=apf3)YdcvDv58H)1zYhM1L7pMl*>sgGtUJfCql)264>JJ~Vr zW}BrpGb{s#8eVI592#X5f>KZwUvbEXg)Ps1E&Xm`il~b>U-9f2SZVJyA-04ZWQ0kOh_9b_k z-d&V!%)X+2x)JNY8bgbf{GVaZx7?}WljIh&@2J;rSk=yRtJ(M1wO9h> zZDv1EZ)+B5_9ONjHi+_ev!AHn!rS{`%1&mf7Z`}5;WH`?f2KZ_hKZD&&3>Ui&Fl`d zU$M#9vy@%TE>cg%hEU#V_8axmI9(3jW!*iG6CGbgRW*B8Rvp=XmhUwPb z>`$z>S+v<-SYPZp%Dc_}rXGV0r@Y7PAL_o?2+DhFvHmGN|8n;?=Vl`*dsxHE)ax?W zy4{Cq9qTRy8^dEU){cuiJrm9JUcp12YFMh-{btp%hp{9Y=>0?OYH$glXB7B6Lk}4G zV$Wb>u|8%sv60vd*n?(%*i)Epea-x_Z|x-WA+rGNS!)+-7KqKK9j~9cGOPt=*vOBV z)yC$SJ!)158-~5a%*0^~dg^l52h&E}&#WG%;YmbWJcXw|rtgTRGVpjUo?jyeap(O{ zc2C;K4X{Gy`gIyUWg|Dl_S!2MXzi}S_M0VGyI`!u#vNqsxS-Z^#M(V$?HcR-_oy{Y zGz_8PXJ*gZ$W5>hvFXgrP;1u|(_g}GV8hIsVXN&)o-?}^TZ6qxyWwVB$?KVo%}NDF z7`6cC2r+#HN8xFSjkXDnGHZoBfX$)7XtPi(grn$OYz)Sr=Q{41nCa^~O|Lc9%xo;C z=l5I>UTgRQs3Tz*ro-|)8t4l~wYxzha~Rbrx4vMMwZVpSx|Yenc#J_0S0H;v*eRU8 zUsSuc*qhjD23|J1u^Q`tw&6q@xg8CCZDjA!u|0NK9;ZZ|9OTH-~l_8ns3Hs)1EzM8D_U)b10>>CGv4&iT?YYrxsaa>No!K(8JFpN;=W@%rzhyV--7zM#@= zhgn~&YB!+RY4#B2Q?>trg@&fp~*a1wpVzWoFOzbn- z?Kg|Vw9D#j=OeSnFdfQuOFdvn&ofUXZ;LwV_}DBS(=kBj0|(9eW3}vnbjXZL@~hhE zeg3f76Idr}_len)SPQd~E0*fvBK@k7wV58VhEGu+LPNcC9W@(B{Tk|e1NqeKY3g6o zPVWn)7=MeBXQXD2`S-N}lx|;plzf(ZwM;GJS3hhf_af z`+K?B2yCI*7iJ@|C72FiUz&}gJ`2-<=_`!FGn%{CFddk_HcK7DKsTFUC8*sg3EQnL zkK4D_@Of;i+4mSP$}<*w)$9iw_XX@VvkRE2$=K^=zuCAiV$*%EoPT(JHyj7PVGS=~ z+Otxy8JLb%|6&xL@!ZWZ(^ZPHm$*wet7bLsavH|l1IwVREFV>-~atIhLM zdggF=Mh|Xr2*ilTohL*>t~jYWnHsm)ESLItO_|#$OmqDKHUZNyBMH;P8>s6^bj*0s z#@$F=pAl#kkHaWDdEC`A8?ScS|2BbfnhLj9dIUL6rQczwJ@7v?LNd(uQQx#xD5=`X3OnW8+khxZuXkB+kv$;d);g& z*1>F=Ss_*fn@Twy(+k-}-Sqn1LL2!2!&=ljf-N%p znEEQ(=)knt>>%|Vvn4jYLzq6|Rl8-@?lAQ(`j9}k<%XYtr#M*XAhg0pE}?z`(?MvZ zwL3!nJxm9ow=gZuqtrEnI=H-J?LIZru_ec>)J(^g)YXQcF)*E}=-{%(>=^Yo&DNTg zVYk_a`7Wk4aU9bVub^CS?M_hF)~^H3`xu4iBzM~SWglE=m+CpifJWBAWrK};ntC4^ z>fo}`>JhQXZU(`$Iwh7bBe2(c2O9!0IX64lN92{^wAKJKIP;c$a`qu$x zo8gz#HP<@0Y{w`(Uva0omhH5571VXQrUOZ#+1J!3(oV;WT{iAH>aUpXv38Z1wiz8q zioE;mc?Pu62>05^-%!^^BP+I%zokB$3F@}r>^n@aPW$~wX5XtFOGdl%0ka>d$79-^ zKQ>GKk%1?{osQnmjvQmNr@;8q&ySn!#R{5y5MIvoqjtlcH**|gKK;JDczYDaV|IAQiDb?vsg zoizK4VZ9~mc1q`eOxyD}P)S7xh|@IGV-uL^)X%~14Ff=(4QcEC!7LEd%xJ6q(X1AxnbAi3lUZ%- zS)N!M=moPn*h4(AZa;2xrl;#V3{c?A&$b^2EP?3veMn)@$Wz zzZl@3zjk9lf1gx!ZdPaJ9b_jdB>%pfyyP0bjwj2=a zKsJ&*vWeuA0I1Dl&kKpJy3tiOx~gWj zE>h8DGrCGfSH#ii(Zwjb_+%x~btJlOWEFXbtR`#8 zyJQ`CkLVf_T{EIKL8%aCTo^;SKf6KKeJNVFQ zCn+S?;w{KnX7CTrtkgwVU4qpG_%iX~3kvn#twDT=dhPlVe-c0fNiCwDyLE|r>jpL8 z_Y2e;SG{l5+xC*{usNVxuWt2ufh3yTP3|G;EZc+JM|zSN(u=6WY;W=a=|j|6wl8^z z#JarA0k@{AU#z;ps@to&xej7qP}f#PebH)G1V*Kqruw z$=B@M>Hu0!USVlfgblxen8MIx-?N&A`T)kq$7zSx02h) zzdBA()+TjH{lNS+TLK#Rq^k2?7`cI{GoCu%sk7aUq#bEb)X%OXi6os!6zNRvAYI6v zq$^QBJN2tmKRWf1`;Mp!++Lz?Zy%AZ;0Ivd!?u}|L$tRa0EevtGfJ9uTs$q6!&t!fnc*Dd`ppiSxiWmNp2^dNEEq)OyzaA6zV4scA`{3&@(R&+g8B+jU+*Q6=ZU^g zOduho4y&ausaJ#bA4H`A+0JRs4pNr}y6j3hz{gZi9$Au{})slIR}X-AB|BO&!nfC-)L{F1wjTkWiw&VNb9qbvefX@)UWR{O$hP z8E{i-J_q>yWDikSuzf_mzv9UgWB^gmuROAjsK=Ljc&SI1dT@PC)bVO2QO7DeQhDxX zr|U$izEbKNrM^&)lKY7IK!x#`KdGfoS9Ph>Ck@Coq!9@rO-NJHnrz}bihQz}Y$57a zq%K41A*3EbuaK8XH`1NlP1FOZ7rCGGCJ&H4T7F!_X(5cLu|N8U>})eERGn_38IN}2__-*yGOlB)hQONjc% zEGOy{lR~n1CsV%{b#qa-mTa<$)aLo>kh(-&R@6mBT~gGuq!;D=WB`9pbz%4~4%&Z{ zstzHz`fPm9{2id&Og8DAA)iVC(ItitGoz1?6?#DoPsLv&&y%}3@WxPn!}(Ab%0@iN zL^jt|w5`T)b#j4Y;?LwF`JG%Mf05(lBzcaVSU*_wDA5PO2d`n39%2uEk3-0Ml1HO# z@)l`MT9B5c6$vGoWFc9=ThQy2Q^;s?9ce>uB<)Ch(t&g&H<6o3V=|KXFm5$cgSxMd z@+~+PUPpArn63uX)nB^WE1a|??MQplk=#UXCK2Qoax2jne#>}e>6DX5E-ysaUg}!Q zpIvNGK*Pt6QT>?cTH#DycrI(_E*9Jv)<$*aWi?0>?DO`7bzm@Q&3FQkKiM6 zfT*j0x&|B~hsh_TgnUX$$!A2}1dfvvx)aS7|cctt`bR~Wyxt(+(QKV@D*J58lqf}i$|1lX(hLNAy+;su{Mxu-6b&>ph zl0h|0I8r#bgQ5CF_mIJ;aCMYD8C)U#iEF+(l(K z*+ce{tz;X~71^taF1TLD=Chbm7fX*OT}cE9Ac3SVsZWAP1ETAq8Fv^r1M*X!1t#YoADxsGsyy? zYe0iY19FW{ff|tz(u~|d+K>RY*+9~Ua9yRR1L=D#>GbKcb5Wo7@P@Bf5GpgXrSG7s+@Rdw?I+>r6F}H87Zc;V{u< zeY#|CAJJuchlno2DwFy0+9y?4+cYHCkYI9w&Fdqg zt7|?c2T2-emfTO|SF(U?VZyW6XDfItlqEWf;X}NTxnv%>jX+Z~P(VkYwxPUoeO2Fvv?cmBUf;goOd69A z(un-*(hdi-?6`v$ehn`;kc2V48%P_{jTakDdXjsY?>k7VI{8Nq2YgU1x*Ow1le@|N z?e%(+% zQkY9}cwb&a`cv2M$n_%4$)Ak=FR8|Itw;2WYya~4qgbv(*dX-#Uiv++QAEGtl|-H= z`bn-AiGGIbRi-Z{V>Q_q8|fE zCi(#o{oY54OD_#**Id6fbQ`&coaeQCOAe7d*7pPMcxgcE)LR(rOa`+*B$BULBIn4r zq=@V#FVkEfWw&Nqy`Jc&Z1giV^ND_jCYekkPm-UsNXR+1NnKf_Yo~N|m@ZArCj~?o z>#ZfLb&>ANRCKA*izJ!o^3)A@etLXq&?|CS`$sG6=mZFZqzZ(yZUpad6FC_r^uJ&E23Y#m_gJt zB#Lw*sfv;eJtLL}Msg!A?DJ!Wt(G`K4$$T=K zOee3ZTY-1t>O|pftm_wpiPo@pKUK%+Cgd^;e*|mu7fN+8JVZ289e7nL+Y#@UJ)JH8 z4RSY!wC-dQb?;+AyzmCD^Ra-&(W}|Q*O2$gZnBq@k&~pHEFw$D4WtdxUNM7m7Ew3c z$KB==0qs&BpsMT2zvr3mq#jLfCASfc(vq?XDWZ)QT>|UzAQ?)2Vx0HM2BJQwjw~k2 zNf>R_UeoxNw#$iz)$4PV)d$pNUG`%o_ae8Et2YcC?*3t&XeZD_wD^8y_#!z$P80RA z{F$uu&ZOe8~yIyfefL1Zu)K)zwT zY_gavCmH1G7vY_uP_~Ik*7fbA6Nw_7$sPA{*M;0kx{|v{H`1Nxda}F8Jw)w#5M4Uf zlf;l-Nc6Edz-qmsr%YqqF!g}Wj2GTBbYjV zC6WHbyLW0&Y{c}m<}~fAUt19E8jyx0xUuK%s?J(<7^q7$VgTiTj&vH|%mVL4c^C06 zpr)+hfBC6+PBOK(ds*wIA#Ywux7Lw?bMe@eTQ@zkopFxE0DVWsH;x}?Yz6jS5_ZZHB-DI9p3u5!t#KI z?$nt8|J1vAKt~R}313USIcY)kM2YN6>PfSU>?V6iF;Nd0b$URo_h7F*IL!$9nPxIs?k1r_5P{H{$IY6_8*Y- zWC86K60OpuWEpvrsN0CPh*aXCKCLc45B?fY>V4vKY$Fe`G#+%pp9j32I^aLHG&R#j z^{2@ha+Z`6&C_-()kd3|E~?KUQ^`akA8)1VS_mq&HG8*c4PUi9T6^wiQ`U=a&J4FC zr+E|6@BrpfWn@ElS9w5-L>&ng?N8UTgtZCuW3zdL=!rD!&8<8hNv=MMdLQ$a!+87x zTY|2q&!luDU0Y7$Fz?&Z4?OfE(E(nU)9dp2ugGa~#{E+s&@4z7#cM7#Rn6TP*Y*p( z57Vpk?lhxVav8+C#%fZp ztn%@>EC2hi19te-3fHejaof{Bur9OD-M0Cwm14_NB+ei?3jW)XMxSwA?{(`5nLZ8cW z*w9x!JXY03{5^(`@}%p?yJQ9r=!&ja$y73hOeT}a1d>7?B)aJC`TTX~1I}KbI+}VC z8A8So{VAtCU6-FFlIO@UGL$?+F58Xm&~qR2qBj3&&;A$F^wmz|T~(%5fu7_ltTK(D zCzb1V^%MR#*9*}&-kBctU&j5vpNFm7`^q)qv+jKTz-GbyslGr4l7~qjGS&sv3v5|O z7curFRZU#idV#mPPwNJTyA?r!{_f>^f&RYZc(kAMsT0`PtzfwAOAPA*u0iDg7@J{D z_#yHL8Rtss1-1_Te>HuYCaL5V7hFHEbsas+17sq3S)%IgL;t9lJ}{^xlZaiBX`JFxM8HVM$Sr8$4F>UmSO zt-ellfuSxue1qsBLe*v7`n7DLH;_a!nCxOx(A80cs6R}0()L5*!=B%ZVO?;pk5Fb3 zjjQu)ec#cL=%e=_66nhh{OkHoUH7TOKmgHai@K2fA4dF{Tp&M@ABnyu|DII3!p?yW zQ@^HKK|UvYNg>%zG%wqkj~$fT$V@hM&D$2Tis&2nWn?MQ{8oJ-MLC_*Bk) zwz+Eyo{dfCYlbD1nZ)TU;RRH5VcQ}`o=2(AdFPW8jJQ}%UgNQal$s&A(v*4@b{`X5 zPI;c;6_k2?+2n1qnG}$Gq6NK)@+sO!kv!@fYjAe_0hRVZF6F(H>nYzOpE1F8lxxWv z@($4lx2q|0h`NWoOF5MZ-%4&F?Z_0O_NuohY2ZUUy^d7Vctlq zO1bLiD7ALJqtsem$n$%?Wk9R#8_M%Ut4_np4-D%G{-*qk{6Q{}-^p*}SMm!PM4OA0 z+TIkkk!hSiiFX{Yc^^;x&jyRSQ5kwDamsQ8Op4Qr;uf z%WOB^b`5Y{N?SGOYIqINlU{vD^ETED=oNZrDww)v=<1p9K8g1gYNj-vKC93%PJ55` zlx7U;BwWYjRyq?8B|5p)2ax*np#`~)=%m;Cn5>lztFB#5rJ^>D35Qc^qWYuE+xEXr z@9M`=H35B6uZgJMmUtUzSTl0AU6^9Fu9pBhV&%&ksjn;au2ziM3e5M8@Y>gC3li8?qCSVw?0%KAommR zvGGnepWY02q>QC}h-9z;AEfL{^scAnaPZ++uN_x@#iC(y_Ptcmx0(_D@O0*y!AzF}{sCU7u-PJSVoq_-M#Ck$Km!3n@zA`H|Oqa3RBe=Xav z;4NS!89~(e9m-WCo9F^`??`VmyqwGhrWG2yN`ZFls zB$LS-B#AWBrTWvUOd}J?>*Q53g-jx;Bx-R=#PWRMI&ApS*YtYsFn#_Mr-uu{pYcJDs(zvQ?fonml z2Z5H2UgFhm^~b8#iW+(+poOHmUW-aCXuXc9S4}`ql*X_o{u-s8z$RGLcA}fvJg{Zr zY#T+*H5o1H=B#tgoA>GD-cje{nw)ogsOss!82>;ave7gOIy_L7Z66ML6sx-ge#@*Du_yA*;!J@+z53ULxa3KGV_hJB9kQWDprh zbg}teHCgUmsrZmznYex$>lezO$!T(ud`jxF6rN-QJwd&c=ntdglzLMrBcBodJ(Ev) zjOdRcm2#b>-9Xujgp!uzdeWM-NagN2(wv+k+n9mRDSsko$dBZE@*Vk>d`-S0=g1dC zZRhjq&Qj{2R8G8Y^w^igF-`sbvX11NJ6=XtL)^hxC2@9%kj&+ng~mv?)gz1LoQ z?X}mQ&pw}rczyz80x1X&dkoJDU?n2ieFfN~w0h9Uclfgb{&d1OxL<(Jz$f4%@D5NH z-XGw958%JvSNvgK41TZQ6X19JKO@cqE>{O%M04fiM_YJI0TY1lbj?BL1>trAks(~Z z94G)C@oWH>nP}iLgTesQaaH_$>kcCWIEQ4Zu4DTv~U4GiSk+ zQtR2{nG0Mdcl7K$$G-= zp@5&ctqs9*A0QN1i?G3P`vQZ20l;X4^@q#ts~_Aga0kK-QNpla5GE1*i3t7%(nw$! zFcjE3C9>Yt3~NkBAz zJYfzz(*RRwAOh}GV7Br+6Yg}t2N}(PI}2C<%m?NI93Gh~EGkzx$1%-3g^r(d#}mS( z9gjuuL<1WE-WBAMt>Z|zYvHZ|_QB8Avl>_dEC<$twgXDVee*IrF9l+Nrl=ZqamO2I zOAy98_ACJJs4T|wRQQ(yVXQ*Vl+AM$B4UASAYKVK1MWk_cY(_cdE0IS!q)?H!I;~N zR0_ngfd8cc-H|p|A;R)4MR{cQUrMnR40&kW0+(kh?B`8V9|**LbqW*@VR_b)0J^CN z*8)`w6h|iTBqDGpGXS>J-xZB4!!qE#3)}&21Gj*^z)j!=a2>b?Tm~Khmw=1F1>g*D z7T5#q1~x!}NpLy+-@p}sX-)%&fuq1Cra_rg;7{iMe?L6?046v990CpkktmpY4iSL_ zM-awtDqJMgI|iHr_)`hH!Sp2jEW`=mIDq0x!mv;r$1R=X`1u@Mx!`CRxl8`5Qs*wQ zT3TkZMPZyfQ!W(?mIkmEI3sq?FfDKbNXPSefImKToJKepl?`JO1}jL_2R~m0Sc%M* zpILb%$zNx z4K`=Fc5A}TZ3&KeK1JOsW9i3vSHoNq35djoN_({4QKrb;5QKXyM6WmzX$vY zVc!5Q_aAuX_k;O8Vg8PvCGZMyCU8aIG5ndpST-t7@C*-6f#-k*1TWw|QJ!xg=~j zyg$eczv5YCxEkiFNU!%9;a`AB$b{(_ti6H|urN>vU>>|n&S5OHK3oGp01U(MrvSha zDuL=6Av_KYb8CQ0%(u;o0xTf=O_gU0xFsP73s4OH5&(ZP(HtnQ_}OKFm=6mZ#;VdH zkTt;d#&yMv*kwl6a7!wF9_(0crSQxGFg?>SY~g2N`TLF)0DFMn4QHEq2#uA8p9Q|5 zR9jg*BabjCF$_T>ET<%3<6>eKL@l8z5HscyuyJu%C4lRfh2YGp;F*PEcmU4qBF-Id z4WK&U0`Lg!R0x?=qalt)mVYoEpCs{2#7&`NdRJQIh<3tFiQ6IfV_xvH@^}JJ2mV?B z_kW&nmCjOXGu&1ZK*wonBaY)+11*67fWuqBZ4NX8ngG5)W1tbx5a59Wc{u3#a0Hm~ zqPjl(_mSZaJlBKY8{ivCs2{z$)TJ5*iv|e7P$DH^*?bi6&)+pgoFBl+cL7Z64-`as zn0+hw)o_-PyU(@=Q~NL;D7ate!}l?e&lEd(uMqzlSOv`GdYui=EPyS02Hag>&TlzP z1w{BKz#R{89ghXZ00RKNhLwpl{owWmf`P68*KZKqjzBo#Q-Ch;cLMl$vNK#ZF8&7d zB5v1#2snlSPS^+j?m#!7H^5D%r}Eqb?h(-SQl7bXxYQ%y4g&@PApi@<6Oori%Xt*PR&5&>uT-L@oxKn`1z$73X*o<&aGZEm)DTBiz z@H`!0?ahSCO{p9B^1LDlE*!l%2xqg21eO6yfUw2*vk>467rY&j4Mtl;`z2@e|u+W||T z1(!2_3A_My0to;N8Q%E5gG@BqSfeh&Vp0N48yAR1xnSir``#`+le2Y3J& z1NVWyfxEyR;5P6V*X4QOERY7A0Zs$l?{YWE-3O0O+=Y}ucv-*{I0cjfxNEfmP6AfI z3E(imgAWhY2jJ)4Z$GdXVC|W~<$-Ar+%WD^li=A6>;kL-?j952@@U25`#$)&1c!iw zz;PfINCuox+GB8!Dq$&bIgL62K7wcVvv4d(MS!)+{O~OI>&$=&7_3?@A(u=|#8N+o zP%Jf96*J&?E+JPRS6gMcTy-~q>wp8m)tCV={S|<#?=oDj9v0vd*FUS7)tXzKoH460 zw+b)f`2rvUED#IB8spyX8r-75Re&|O2Ru15&V+d|JqyKy73ar1q(XE3tEK0Xsik8r za0yi*Sao{=HFM6CY3~7C^4rLOr`yb&({ZL;wY(zZXD-k~;1R&jnE>+(Gr=F0t{7ad zdk*B2ZC;G4b;xREf!Ly1Q!GqwLD=GZBC{R<|KO(yz;EU018URe{v{Ui-;lO2Pzd(T5zqidfI@p)Y1AgX=mLcQCz(RmaHx@1zCKG-x#3DN*Z2^8M z4Ic9_enYJ~-~yNf{Ok-$fN9vzY5DWz z>{n^W!3bC)m2aiO&~rr)a6-OKRRLfIIJt4&>aW{%3|DW31xJKpO*wzk-iiB9f6g6zQ6-xG9o%4fM;0k;kE?q;OBKg zJNR1wToXyCk=F3H1^ANztpKJC063hV+2yx}0^xQAx&XZH2!h)U;C+Rja9PMx{MGc{ zN(4u$()NeHAK(wk2f^hMvM^j~_H*gD6f0qa>eP_q`E503%o=2j2WA7afSJGqfb$s( zFn!nV-N1EYXG!e->5lL*hChcf*^)CmO0nCVNjP0Hou>~vvxB|H5qv0~s#Q*{8AYdSDpWPTd=hav4 z=cS0}N*W2%WR&FHZ7VR%O{8jqZFvP#sYBf-~?tjK(`wHjleo!J+Kzw z^i0QLZ1?P{;VY0i7cedijCoqL0g-4QIYc~xOTqJggzp3P0(*cYU< z!0R5|TR;rLn2#C!V50}GR0q7cYYw_g`9}# zV&SUOQ$B&XkFZC;L*O4E6L<{hLohwyJN((eH{dJq1^5hn0zLvoKj6=M;2rRm%Gbkt zaAruy_f}1Tf`Bnl2q+4OfCk_zsfGa85Yw>BH0%~u+}vSC`OvCqIX{IyO!9C7m0>X@ zk~3!_z7Wn@FA2Xj@CRUpFuqT_rhwf1SW$eE$aa>A_>zd@DYHt$HN|mK7|e~QS3Q6f z^h;9vwL=2#bebSA5`=!pkT3040i;cMXumT2d_k8-_=<4d!1N$8t_qi{z8u2lBl8My z?Sb+@CBPA=22=!XBe*pIAJBQgtr3Plu0T8@o#FC1O)7+70`{MW-v!}(bC|;ze14703!>`B{u#DZe@5xhR}otq^uQ;<*LD=~#3%tx5xWTna`+J3y_y*6_Ci zIK!53Sz!TiRb6p7`x$K!&Pr{g#H;4Z6~T(n`)-jvbinC4AYK+0mCzjz-2gR1R%kGu zy8?kgXMhtykJ7Drc6rJYgzzo^)6Z6f>WSx;cC5{JaHJoV&BAn?BIj}F; zG{*iphpRMP?VQhG&~anVPaZZCrsX%mjsR*cvdJ(nwK;LYIZibJ&Py%RP{biT?1$cB z7y|i28}k5e5~Bf5Gzu<%c!Lu!gv;^M05$FaXd>`D0r(S8X}O6sf)W}6JaCK$#sOo2 zF+i~*4X~Vqho#PqNeG(=aCaFFOa^$2p8|I(z_ct33oxBV_!^aMITyh^7s-IB%wjUQ zk#Kh+Yz;6I{uw}dB`I4I({Vh1415m!#o?a|%!dCgJ@z#k78V6BTOsGfMOy&O2e=XS(YKaC|ZMjv(;hbKj&#m6vbjv{(qoiE|7bOgn^vXJ42C&Y#-E*ScI$w%sC4tl} z{a)v?%9#(R%UvLqhpw=`y3(qVeTZ|Gl_DtD73xL(O_gCz=`+ ze@9WxHRcA+j!vZSqp_4c^*j~Nk>-l0bSuR(&sFj`(<(J&rI)6Jp^Kvv7##6ds3tbm zSQZ3JWI_qG6!s?dG?w~E*q!eK*3`HfzQ_94k(}K$C2S-w4D9AeeV%57*Vt~Psa|G~ zo1hQQzf4kCO+o=pHRk#7)e(hy=!l%$HP*VA@YX*^qn1lT?0Da|C2IH){q(^v}@Q|WGVjTMFXXsn|fXk3MAQ_0a^<3gPpX(q9CT9dK2#$TmN z0-c9GLFLxb0f=*Ifj_VTYYJ+k=}YP0K!+M?`U-O*k}5XR2>L>kY0*tI;c9w{^9JqR z#>i++1c4%vPW$2^4^>PPh*o+!d9~753ALtEdJ|11C)n3i<07=1PPQ#IF-g;#Y1#=2 zV?R}Hm2Hwm3r#8g+&lsTH0O{u32C)IM1Z*q&1|Kaq{IsPWZFiP9nw5K|PcYv+0s?W21wIiI9@cwZ+0;4j4RjRwr_DdV|1mdozk0PI$$Oq?rEQMGL<@+r|Ep)p zqL6vp1^u8J=t^8Lg@}x9r|B(Bh@`&lpm`;M@K+=yw?o1=NN9(IN00sGSv>L694>>C zqbpdO&!yP*s58&GWII}8r47VeVpv;-zpC;u;Z>{py`?Tiq8vMy?hXfK%v`!P3~tI? zO8yh>y}4w{;d)UNJ`%2N6oqzxTR)0!w@2Q=QF5zFGg{Hoc+1i?5ZcL6YH*XH=nzvz zMp4#$xG_=GsDtPt#6{7IxuTV@H;TMFY7&KGQRJi%t;o0&jO<(#MU8>|M|TwanrDJH zdi3z>{+U}l*jMoq^lyP@CrumSRa8>nPT~}Oq1rr(34}fWHIKAikjdkDlr>dTf|_;F zxNE=8)7LXa`jTY~R0GHGHiEam@?F=I_>!$G&##2&oHx0_Oe+ex+q_IlM?yiZ| z7pg8xitWkG12uoBm#oW-UPxDFC5gR}uIfta#O|tf;;udf|1&n^Qg{Mh%p7gYgCX53v-~2fWIF7Z=d_l2cFZunXOE z6h~ueejnJQA}m2zOGB9H`B-x73+Xaqse50<%Tiitk0LLLli|$iwNf<;<$7SVOIts19sT!3Yyr`bx4j-oYU zc$^q~I=ErcHd`O)Vy48Ch<;F;s8GcAXkQ~`f4qT?;$b{_GsXYC-q%l1dTELpjzL=K z)YU+>izaal#`G#9U^;52t#JpxvqmxJ2r%XHydTcvZq{;7E2@eUO?n4?;x z0ZC6ysSX!;h6$Q93X>FvB)T{XmYTnY6gJwcN%APtGh%m>jVXgH1pVsD2&RgziuPkh ze)M9r#`-rIsL9omx86e?{zQ9L&E87VwbDM3$EXOavBG>+kQ$P4|mLd3Y`r%Z#tDOFJC2`qQ}9WR3gv&9keorHF>^azccgp$=rkxO>_ z_TlB5T@KddZqP;Q3L2+S0w~-%gMw$Tt-R7JYi){c&`}IQ3{QisK7V#@b=s|$E@o;9 zWpmmXP+*fI+^K#{*QA0bf{tRV!nLTS&*K&GBTwjJQd7upG97~3x|lwxq@4oE#)5(+`zLz%>s58%@7GbxNu>Z#xWy{m7u0%I zw*Q=%={kx;CGC-i^EMW@Z2UnNb3Bz+F!vjvV4W2%=2dx*{=zgJ#q(6UI0bdL?lcvg zsyU}!cSbJ5_38H6UY(~GfmJHALV33A#|sLt2*_gt`?UqnHrs1Wn7MO4CTdEP(mRB6 z`%;MM8#39l=)2EXbTQ2%X*SYoZ-D}zKMQ}DUFvp`4VRYbC|;&fGIRe6eHy;G72d5$@+<`+t=0)?acmPFh;Oui`ZRZtEdo{!s?LHHnZMVn@^JH?9csuiE=W82ELE8f$$sv` z)Ukns zS$p*Ku*?fOiX^0EeGl}r$^KAj%za(VnX~kjCHuK2Q_Fq#EIG}{)uGra15TcfC1;>f zd*3|6L*C9-VdGX3qH$HUvClH;5OD6it_%IS8r2Rzzg}^)!YiuU!P(6lWS7(NQhP%-dn-DTWfQ&0p-i!ohBC&4K=uo?n~4km{JA2uZ7FqhrPz z>rn3T8-`*UnX5X~UfgSrZb;U?Oq1(-+0oF(jfc+4H7@0?2DKLRNGYh!I;Qn|v( z!_0_r6Ix++B%k8t)siZ_szp`HDqDH;McpuPp>_+f8Tk4lB`?4Lfn9~SaNUGU z@?vZfvE*38Suf}k1ug`SbC)P;A?)wY zC5r7Un$w|$no`1(OXL)dz)zRx&`50Um@d+|YVTZ@+nCR>uQltQ88Q>Rco;%o`r$GK zFT%>!>dZ0io74fK7 zSIBk?HuJ&i^%W|$7(rjIkaiG~7+$52#UL$yl~$~PTk0ys;@Pb-?soDFsBBoHN^hRo znoDBW;QhOLh$)7c(N!xy9p_-3DaAN*OslK(g41>b1$TQJUyq*FVToOmMB(CC6Q?tX z;jSsvd)(&auv*4ajFY1Wj*+fX?IlpxMo_R4EP`F(H1&o6lkPO<6n)xVN`(B}NWsS;d%`eYxaA^IR z=SoZs42{<*Xep`(xqW7L{{HAzg?rlfL(ioB0sxE{`uH7 zZ13~cq{t1Li&FjPsv*gee)C+78pmm-3XdMqxj0lS>@+hD)qLkN_1_Gg{%CF%6gyJ1 zq=%a|rIilGO3}KD`b;5PaKa(?I(~{eze@aoH5CWgl-7TVdL0$_FeoDbR(JN=fYb=CGPbn)N zo99=bQlo8}AVY~Yty(MEXrrIW`!Ankraejjdk&5orG6gjLcX^b!_q%*Lxb4!jGPjX zMana3nt)QDe@5xsbF#Fc_ykRWQ2BW@hp7o&wxd<}KBwR%;L>}$#$UVax!fC_SU;=n znc44}@MaG;Pi!Fnz|TsM#kZmtYeav+;01;3fCkK7$fK3Ue(3J33T6B783vZ3NN@Lo zVt1fYQeRM+o!ECe{!;FMn)IDrXwliAcLMJ!O543?vY|UQK1NqT!P>o?MTd5RcUG1x z+R*OjN7X%h<8Mh1ywcSx^om}Cr=WdB$@?@_>H8wlP_TbR0edtKIhFJsk=w-*v?dYF zPl;62Y_~_Wq2xsD%z4La%yLpJdrbk0pqP=n(2@L{LdniWjmk+UYuAG2@78FUC}B5L zE~mGmd%HDNgtbq|G)ZHtjejc-;adZjW)$tRun;Q&+fdLpYSS-CGr!!Zclvr=BomVh z-?yT7m6RzRq+Xd#t2!5c`d*C_xkZcGpF}~Sr|dzGtVqupXXCk?YPpx8Q!UsJd+ay! z+7O#k&}mJ1+|SCQL3<&$%>GB+(u=(sGlf?vvfYPb%DT$Y1xK#fr?JheBQG`M3%Cne z2^rgr4VdXtC^}luPelkHdVGeiF>5sB50tJ`E z9mO_8L1-6Dd|+g5A1R6{d_lpy?)x{c(LMZ956QS{I=WQXYxj|k?#FpV-;Y$~0E##A zBQ-jp3D^F7oaHKS2kM1=qp0{`@ui%^<(Ru2<{uq4-w(s#to{Y>-pU^$s%fu1|;Mo?+h*_UM zj+nImpx{l&7uycnJ=J^JNGgD&gbtsm)L~>MpYQky2`lLdcnWg3OMVBH=q)fk4M9rn z&kK6#C=(Qzu*QPI?dN5?O5utHHBWekb!hG|$o}wnNX})$L=2PM7tHymNRBm%BR4|E)qaj^92H89fso-%~ zpART`XSqX`5kZ=t*Ku+?A6v4W zla7Ndh@Y^|i2TnWPgxc#%07)=Sq^j&T4`v~8L-2VaXN_Hem*iTfEzfb5b+nHV%wkl z+z&;mR2njX$R26GRiwT##WJO=NI$KJ4|_>xs3pCJ#qFuO6T)+Q22Z(|E{c||1WRKI zJqtNiEmtt641R|8?ax6ya&1`A&~woGF%ybBhr)=ag0%jy+P2TMdF{T~UjutdWIM!g zPgA~<@4eB3t{CcKs+-a+q}4V81vl83-hWol1;mz@W7$ z5z}w#Vp2_M%Xy7oex*XY$Uk3wb8=)ORgJd0IgLw)`cP%3)1f}uh!eGG7IGV~8??yS zc8+5kN!SiGmM^@Z;-b zdkNedgMwRWnGmsD^XxT!8^8y;ge@O+kwdw6G!sd73T}tdsxySPCHD=->vQD z^V|NmY%EboqwnuM&L6>f7)(8>yH2Rk2v+$(?4gX8yDLk%734cMBuNCR^U&ym~ zCCbLL)*crq%%PQz8=s!=S(P>lc~+MPcRL3<6o(mJ)7v;Sbajxc^ zmH0SN_-&ZkAC>9cZB#%pe0`la1ZtF<=WC{=SD9xi&d zs*v^$gz~9E0e2wO?|9G@rc_eUlRM}O@KEqB^sBP@{DBVK1(CHQW!*)YhdR<-2eCwH z%rZn=B;jUjT0_{jd$_H=R9tCljkkK79-vQe_cvzxt)k_5R^b^93f)<=x{gF9jVPt7 zQS#p?ZslrZe2)dGMz#Mz9`f5Ye%eOJfNj_9bb~~##kZ;JC&R+RM* zcI196gr8tkgWhLCEtWON;jw0Z&EjryCtMb*KTD`ZouZrSmseu)t_w}|-4Roa^!I9t z+nef7Lc(H57^o~C9~_x%b9eLHa;EyeAPYx~nL9Z?(KrZNck1*+Ge`(^r_)a`M2&M7 zq%2n!yBYRzrg5Bk&h&kOJGnfC4jy_?_6O9+E05^caD7a0%3JUH7-A&fDe7Ix<-rjR|#LNfN;JJul1L`y?Ip$JbA9TKIE-Px%GtMQh zCS|dFyK9o|bMQKX6s)2i_M=~zjj0>KDWo1x?;>KjyIi{H`1+{>+%VnY5r`$egEBrx zJvn=l(<`}*2~dSL%Tuneu-3O$Mn<0DQw;R{Jh>KXQ5JGja}|thQMni3P`VZcz2~{m z3rrWCYSH=^uxZa)^cIoY(|E<7PjWmWdJneOzkVF-oOy!hq~}wc>c7NVKB%^!S6zC2 zSO}_32VP=Xw6G4{ehJQHyvQsI8+nlRWEP$c>eAONELu(K%DR(fj}Z=gQ|Mbr_TQ@W z|7104|8r$&e^*J=>J6+B#WemZ7xTp%6bHI2{1&=|`Ek|c6jOPo)o;;JovSDJ%iak) z%{o@yiK8+H*bx7_T`x&|$FJb2=~Y**Fc+;S>W0Vgt=r;ScQtN3M(L?wg9@c~Km)n6 zG?<(1G4^nxpJIw&t{8*X2|U=0OTX!JcTu4hCqaSN$athyrL6J+9kg0Astw83XO-9b zR9ngsId3|ZY15CeHMKmdJES44_yj$v&x&E@Jgb@i=kg1AI8yp2lqIzhJ^O_2rDS8d zjsI0A+ zs!~k9LAsv4ROK5u4fds2SFwa4YGR%*1#{4PUmEib^q3jMv%3eRMmQBX;Y(i;uf60e zNZrVVi18x~y-tLpK)l@ndwAeWPT5HD9!!fOg+UXVkPVLJO(@#~GlYa}j06jsQ2KYU zS<^&bjCnWi*m2j^FP|j6NNlz@A%9S~ol+<|>?v6yA$?z}*#br&zaDVl>>#~5i z2TwnfVx*4qK@(brw1UFpzvqS&i%Q|;-JZ=BwSqIG8LcRYBAjiuC{}dQ-e@Mze!ja7 z@%P>Q#1t7S^Vk>77QFz$2N3XP$)bG+{dQ}M;E-NjyczmYZGCVm?ngleP{JU6(OS{a zAJo1Yc2W1~i&KQq=HxAiy|t75<(6{5FKC?Jj&`RcM$*hxt`94^A&CCkIUwUk`KYY> z?KKC^^IOS$E`)0QF~8p0<)GwoqDxRyP1O_Q`BX|-R=)P9y9Q#o_90%=uC?tiumrEXk=BdzJKJ2d*F zpy(>xZ9}$&AgU55G;K@EL_~%Z5?!?&+X~VS-O{Y$n^SKsDXQoIyERwZ(g7sX{tXJA zje2hL>+(0faN-m6oEA5NKA}|b9 zZ0{l{Qy?g6qYROFkY@15iipnIRUPG__fYK(Vek9D9|lpCEg!Y)GDkn5ZYLUJgdEa3 zQ9N3(_Esm^ihXya^tEp0-3uw@K~`=1^w|j6D(|Zc9-XPFM)XtL0wrj~-D<}{;bM-o zF0A}?5tK?7LhVp;;gT=4Dhi`X50p*yg=sPe1s zt{|#yjPT<@)Xo^jm4Pe4TuDofM(sV-`-Ga%KyV&R8#MArTW5+)(eNs%oDS zA>IMe{z&L7M!* zcz#SUxF{os^cvkTUu~bIuGZC;=mp zHVPEHE!t(5Rq(;k)_g85t3vP65X$DU%550AlxAs$QSZ_a`Qb21ERCWp8bMlHNHKJz zJSa_{?zSrXT4!wJPT-b@JiGxWIN(>yU%U>$8OX-xA~YLIL8uR*-&mRrV-zCB(${iuSB<6Q zGRPS9W{fJ)9vCYd*sR0{aXZY1@VJ5FJ?5m;s8V@;g5fxdE6be$wuE`435_<%6ho%O zNg`Hv#7JW^p3KUDcg%PSMqW1CCdiak?^wOQbyXkt;?P9g`78n3%CxAQ*h>*BTrdcu z3FRSPQW%9!hHDT`JIaHVY{0nL10%E|7kik3BA50}xLi%9m$K8ojP;$Zs0xyQ4X0)H zP->BhRG@;GsP&&H_ZAo1U%7YZb<{#oDkJgoiFCPw=;HQul3ZbL+m>#Ze0TzHJ+aw< zm+xe`>A0C^jH=mk1D`P|n}orWsdhzZa0Dp0BN!40| z9by-EbHqw0oLvNkxWe^{Aa6Xo`A5jPSDraPV@Bz*Cdh+FcT{@*lajy)ibUFf9a^Lr zCT5nmIOA(g=zS$IMmrQ4^71$1+ozNJT_U?6L#6Lh+tGMXa2we1W{dL!O&T9pVv)%T zk@sp~Q1KZLL8JTTgv` zp=X~ph55A*9z@YVw?RIdV9n#FT8Z&Ar#A!8}D%PN>gB zkY5#OsS{)TT!^*j-YT*xIG00OJ?EKqUwZAf;%V_d;g%M?cE)>-NH&@ zPe2{s^{3G}q*ce`=&G_VO%Wz5!cl8ntnRiF;0?1CC<2@ONACs)pXJIV529w!Qv$WwX-F zux6Y9L*jaCKaG;BA)kJr;F|s9S*d;enLr1~s5Az3)+0J$#C<)TMmnKoWX_Pu>pPF> zVbx*^Zx^#h!SEGgcz)~Y(Z5t(gPrJAb zTdpV=)&mot-~vU+l&Z4OWmJb*s&iCD*9wsfopuqe>0EVGr_vO84F)z=JU8T8p#WDT zSK8}umI(4{4sS?AP+%RDFm$fGt@7o&&xhWdp4Nw)ij~cpO9@z#{fDXHnz>XP4J${a zgt-)21H;o^@a7HSp*zk$npv~XXYf|0b#hb0=J#BBT?0*XRY&r6(-r17CZ=eO*1JI$ zu&G;a7^Cjuf+nW<+7HOk3>n(jyjyxk88m^xz?v9x>$ajZSqqz7AC!VwDU_)pU+* zHVNdsO2+^;4KZx2u^0A*UN9aMDaA-H3oMPHWk{=y0|jp>Og_14R2s~CL^N;Zrc!|$*bWlVrC+`M$2`RjuSU|gQx!m==_l^use0YTq{4j=N zw@dHYVv4N?F|UDw#ay+c-q|~qPuVEKfYB4gm?Fk>^pNfA8(d7Phca5XtLMD5&NEo<_th0u0m_oIW%^&O;rQhdn^F?_fD z;HngtO>N@d>SBtop>as7^;jd16D#Jm-P&W|^$t3U=4&Vc6hiMcbh;rL?Zh>d&ACM* zMOpAXxulHU(Kmm0)}`2s7+b`=Y|*}Nz~q;Dx|r*0$gdH2y(8o z*3k+u(ryHW^qSPMN&oEF*0g{kCd~fmItpxxto~U?S;$KGx{hM~;hL@|TYgqWQR6)} zl9M0870x;76j8N%Hp(MKRqfQE#dDMSY?l>+oKy~~tK>wroA7{>tE5_&I6=DgGUP$M zyU9y;i#i_7;wZTZa#yA39!FoB;dyi%8FMLAsg}f1Jcp~Li;tsa&GCFPj-o)Py^kFD z=8KVM|FRVt6~C>^A+L0{Eik;O+2o1j!Us2lMXBPb+2*BF)2qr=>DA}lrFW|pFL&_% zP3t*?`=8GU3EEm<<&;sO8g(jlT;;YLGmWfC*19KjZJQb z_J4mh`Q~sB@BXNr&XgS_2B3PE?jY{~Os1CXq{sj$am`NJ7$9Z}TXxd?mWbyMF7!k* zz18WyIWy!mi$_y0)mxGLc05081UVB{ER(I;h+%I>qKXii$`b2TDbnx zrNwJh6;q;x;We{!tudc^`h}*nK?jqvTkaP|Y;L+a?P5$8DEasU2Zd*L(?w7SS9T{A zY>W2AFNhhnLlLp~>%i{+{}qs&uYlCsOD{TOxahc7ZhdC@O>VtS>ciXqd}54+M>t~m zmR|4cb$7I_>hVy}4@C%1CYJ0ar(t-j0V+>K5PwG{>r{MI^D+f5A~|+UxPq_jrO-gp z%J(rSEI{!gVPRu~&LjC`#SImUN%nWd@T}!tmi=E2?t}SdBzMQ^cn3tU);>AwcEex% z+3|acR6*ZtAEgJ1E=Fw-Qw(V~>?5%Y4D6Uf`SuxiKwWQtnXm1snJcau_j}vdw;)AB5FepZ#Rs73;fE`)M4z;rr=9S8#~jPgcQr z-ia%J!7%rf{S*_7@a9-~^K;-Zs^%$Gjina z5*jazpSs}k>^v1VzkZ)B7^dXmSosd#MLWyU&9@tG=lp?2?QulJnrs*eh4VmlC(Ci+NFW_iWat{&b z#7a*iK$#zViVo$@9+NAk*RYU&gN9?rx=r}lZKfMPn(Eg-F6en8+cU>0ITVMC(8u-T z6x<7?&N@zGdVy=<6BLhU*I!B~ZA?@?Ay2#8+#FM}veu)wpkERpY}k}A42v8OJnl-65xD7+Ysk<*BM`iewUz+{-_RNo*|Lv}Zm5@uN>rYW=Kd4l`rB%YvHK$yA`-wJrW#%hu zVt;7<#~iJ=EY`}687pD=Y1*g|<+}W4LE-?sAMbaC90s6&mT#I_QPcpeSC#8#Zi%Pm zxmP_$p>If^5ByG^qU?O`h`|VzyCw8wv&NFTgg|JsGc+y)Wx}nc=nz@hALNj3pOo0F z(em{*MGj%y8S)#5M7R;xdmvinjWcrZGxo#lszRlCr~8;b-&dfk!V}H2XBs^lB%b@_MVUg< zGEu!O=&?oqnoyn^P-@1CW`@G7C!Civ@?AG5KBIKOLdb|4IkY8Ly_Fz0CFzyx>F4Qf zD0+ryB;vN9{TQxEJiKKh5-Bg~tvyfmhvc+33z|Jd)M|fjS|FFU(38&7QIO}?xUj7u zH?9&?VW?QbNNptr)2Y!=XipW<>>|YvMUBWNDv7E{O&^Ae?t(lt;Z=-_)N~m7WrZof zfLH&bT$I}O8=Xz-N3Bw-2#S^(E&8L2?f=uT^RsO_o)wB$X{u5HE#B!t+ef<+>=XN(_Lu~sk{*&L^(3dC- zuMpAhD&HW#G2rQQgL;oad-De+F9DN{|Jl@dXHWH@7nJQ0!_owtsJ(Fg>zKX;^u74r z2P$*z4aypaaX%Rpd^EWHnEeKa8EKfl1Uciv3P>^#!{ff*ocF04>VL`5#k{#e$>TBQ zbsY;a3*3}fEWu~L540`Y39qoBy-4*oErzCyMd|ErChZw3;*)4fo`Rab%y?MJvRmXe z9u~jlmTY%}s$4GFXVK>%&Q9i&eT!y;LP-{`opnbZm>ja3mLI&vthMeg%i=o}I00P& zOtDHB6eNEPP5K~Qa2QN<#$Af%@cDP?BtK)5+aesCSKXzi;h59o1$@_uc%FWb`m$?q zpO#I;afb1Id1`R2#H}>H(C^4mk_~EXj~L!4d)ocO@E&v9PezO~;Pkjpr6xhayFkJF zTb?s6b}libv!gC;3SxM2u%*Vax~YqHf7itr-=`3y)#k$;18CC+6gvqLrrf8?lQ50A z^FWqk`^{#TUwrx)r|?4SktwaH&15KBK3?-NTK11D)TV#v5FfWC{zDm)(GSeZq)t=7 zc1b2hPQiR^ZD!K@DdIDI;ZA1Kg9vzj`MDNnd@RvLuW<@Jn+~BnclB44blP|6agR;~`1YK{BL*=%*UkO87CB~X3Jv14si5G7o1*ukvHfGg zTbK44V$2ZJFW2W<Lr1(ve$4c%s*JCTz6oIMYA$ILBL?J838p#V}IKnxrF z=aDa>8m}E+MHh4G4ON+qcL~P7rIWK^ZHDhCcDLw4L9@la{Kr)o^M%D^w?Z*bbbKEBIHyEWej~2LHH6LfFJ-^Bd z7?{v)M8^|vuv}0#e&u&vN>HT*;#Bj^Amc_pZr+hjg_3QT3;N5yQpy6cjo|x{tQKOX zTjIOi1JmvEc#l65PsKoA-|^AQ%^?nNz!q2X@q&K!Pv0qgq3B{`jNf0tH=V=#TYl1` zY)d``Rl1z&dIofUp=fE)37*FbMQ4Kv@YpO8D;cS;dCNB)ed?;u-|;K1+?<@|c8CnP z`~c(NH?U^`D(V|Z)wp!e^dkC$D$O+2H%16AZU*Ta(4|G)mFp za{&Wsb0EQeQiogJeRwj3H9h`&cs`{;Yhaz~#b@<`vT~m}PZ^bq%F5l`0?vGIcHCAB z!KUkRg2|VE)l0H@@9~y$*1HNJczf?ymGXyQ^={TnGAU<%4dZnIN{fLI=7#hr1}#hx zN?QZp2j^~hRh{$0(k#2nm$oJAm+z>SD2RcDZw7b{XEJQ&Lz`|7D`JbjNVoGO>$By;ZA3%eN29F2@^p%U;XYY0~$raq9U- zKJt0CpM+=kbN_2sD zKv4l&DiASjrO{s-j)H<;#fNGN7BSGXN6d?{;SO&WtoloekvhjJMJR~Vwgd&YyKbKo zuk$_dz;|9)O?kT*#PAq`9fY?=^lUW>l79=6zXhQE#T9VuTVXb#eqKPe>74q< ztXOSp^7jnXene_xlMEmfUDzmA68dOp#ahuN=hAoYUc-mM^7I^BKSvpV%;2>v%z+KU z5I;%9qv$_{LtM>>Oyq26P_sb5&~5&B%}+9&Lbm zpeyj-C^~TK8naPslcU{oeKZErN%jyExpP{0v~jV-6*YL}%;LcY=9o~aO(>Pxa8Xc5 z+G-Ql3hR-GUjw;RzDb|EbbkmE@#|VB({>YzMI!A!P!t2j{zacdOsh6pCs9Z{>Ss*o z@+P!^3==972ltpMg~lP9Yo;_a4#hxmaI4Nm2sfkGabj<`ym_JOl)Un(Dv0h|oFX@) zmG>zwS6Ryb9=9rv+;L7SoYcz05yM}-`&jK{U%&MWEp#y}iqkEm)gA-|e^h?grDofg zlx%ec6z*)_t{!?hWBqUB^OrveVo|_dY3vrIYM?F1Gx(psvmt*%BTp;Ah-bV5wXF-_r*Kn|@q1*<>juN@e=KVE zozY51`Q4gAm{OkZ<6~IT>L6U(1V04GjlK8i{$8`b_wzyuWn-X?mTD(~XBSW~&uiWr zuMeKvmrpm8o;g-ap`dUZXe0B8+4A@G?Ag7p>v-h92;Xf(hmcnIZbKPKm>@)zqEdTc z@6Ah-_a4!wusZdi^hBc)v}%tyO}JQ^9QI;ilZm&J_hMCkzqCAueiX9%M#9&@=(3fU zs`au;lleZJ)@`$;)BDg*X2d4B>=&~H>tl8X{41E@MaHLo3|YDWZz1kM2(PCobS^&M z)b0?hK&czyY#Ew;2qI>bp%LEC%I#$t8bIdCXPi^t+VY1YqdM`)e{}kZrpvjZG0PbCTsXRH^%wlKsZ? zUF5@4+4L(@i?!&+{-4=@3F?s|R{Q_Z{;g<5YEF$yXAD19dXO;c9r+)HUH;lAf^uY6 z;(yasN!)6i9u#+xW`S*dhjpfF1Z{Ry^}^C7efW%Ni;n$sgsh5wdI zJ+-juw6bYpQrWbkpTi8$dy=i6aVeVEz}V8lcHB7IAZ)@o<#-&OstzUR%SCO-yRoqe z74$K7AoJ_SW%<#RdiWTZB!f9c%i#x4@VLXr*gPlJgl5z?7O6l(W2;(MD)ERb~A&)7zvV_HqS)!aDgR&x`RRaoH2 c|Ax03(Rz48pPtEup>q5?TG*7VUYaESFUg?X@Bjb+ delta 124417 zcmeFad7RDV|Ns9wXB_5?q#=bulC84G83x(cRHHQnX1~ zi%?lZjZ#uVrAQm4XwmQfcwN^S)92Ui{r!A@x9{io{l}}@t;h9vT>JBSUdwBl&08|2PK_3ysrS=aQ-|dfji6<>q8& z=hCp8%whf2z>8-DymLsNJA9<5_dGldFAJ6j6K2F3*X-1;!9xKr33@kp7T9lWZZwDF zBkK)MSH}0J+v4vju(gi?)!5;g{RgKLKmXy_>ox0Fp8c>b<~~rRXM-}ufk$G&TCFP& zfSwJ#5mfH;X|x)1or&F4t7`D<`(xv3HOv2nx|HgfskYASVYcbl&9Q}l1gcA$Kv`y0 zvw&9tJoT7ud$WsdsmI|eePq9(0|qwsykn1B-gK_TZ;4kcx=@bamjO-d56SVmd&@~6 z;eackUry5$`snpb&xzI><9Q#TtAV#ZY4JKx#_KmMeQ1;tHWIHPS~@*8u6C{bLr>ZE z9-&`qPjp09UPg8_J8p%3nPZ|ODE`x@ZME+;^89o=;Yz<5RPp=Bud#{8rw0s+-y63e;3bow^s~00{+XFWGoqe199`|a-C-IigSL3iVkfxl z&;nG&_fhc0VCm-rUVU)SqJT$RCp-@}1jjml6<7~m8Eow3dlSA{81R}PECU&c33oew z9oPUqn1ZWi1>IRkQrd3U>f*S_i+ z4zHC@f2 zZCMRJAD)|oA9CfbwnMWXln+F6`sHN|8{m~+Yx8?+1NnZ%-@R#Dwg*(f8y$ZQRKw;u zeTLIVgKA)Z$FBlaaWkja0F|$-i~nnlE%z`e3w!`7|GG7-ic0tbf=p&yf{8A{aK~>3 z)v(<3e#7uhZ^J&%_xgMGd%p9%yTLkT`jAoTxR;lmQIEOijm#S{wtwb;=(`(j#h*2> z>7u!VquIol%->?i=;&tKfF~T@0LrxK(Hy^^ET_K)s=;j?uK=n?dmU~BWr_Ph4ee+u z(bX^7e{hq=o>$lD@#QPOf4|IZB^Z%8Fk@J5G|N3)c!Ls$Oi!Sgi#V+7Q*xJlzZ|6ld^zxL4f=>OfYdnsQHI_nGDfo!-eR|RaX zu?`WCsp1j0!ez294pTtQ-#VCB1!YHbv&Z5y6?epT)~lcY=hwEQGeP<0-3~__vi$fr z)}=ZhwuVgsRZL#)z!bTjzjHOa!mI1_x5y`Z#0~!4x3>DOlq>zJ?<{WzV#xdn^$4iF zHNUqbb{<>_-*Wu-Blb*_M!{9kb2CPat;Ys*h=yr|J_j`-t3fTqAO2`ZY+z<~G`;^| zFNccN;M-lt{#hR`6mMC);&_D*1ThjBxBYAjtoVzq=q}Jd$c)gQ?s>UR?+eNW<16}l z^2wLu=c8q=oaw*X{8`G33wfgv*cDH7lupocWBn*Vb-Yst)P9nC#2Yln5& zFVNMlouE4Ymcyl>vM&NhMlbo;4iwC#mB%fNEbyP~|oSDYyKDnl><@g2U3~ zVwIb;P6|Mk{#bIXUz1MlhFoBaeH_P=L*}Mu*Bi)md+|b>EUAj^#wobEeazv0bTxB( zmDsmUss@K%7)!dMe&zV|c!1K>8SYDl4W;vU{v7LhMXmf7tJ_Td2eU(Dvl+W&@xkqv zF(N&CY;?pe=o*u&E(!Y6y*a3{x)_x652ScP)h(`XoWmH~n#;_dkDs+uy#9>Dopo-emwFS=tRp3SF>h;a>*(?`y_ z)ap|~4ayy$`aR6?bWrIvm->y3jcQshKksrYr4gkzcLZhF_|07Z^lau)`mpTi02Yw} zUeo$^AR3cSO}LCE=o}Dl%5TR4UR`*rhBm$-C_l+yO|A*{0<~nOH1^BMpHSmA+qaQg z^m9G$Q6kiUA(=Tk@_D)by{6}dn%chf1{Hte3R`e5P<^_+ne9Ms|IFbd)3c*L!L`da zp6~g#7!nEk4IPj%aG)!<-q`f~;lo}}u|2wh4D!S-&8_h|!sWraIfJ!CdUadainB9@ zXQxxd@Sy`TvPXJe+^Mc`=|6J~>P}Bp-ZyZSb1*gNTcAWM+t6QHf;x!2PXhJm9f!+6 zjozc6yr2#RE54w$HR*J8^|-W4e+Q_c8xCr;ZwF=a_MqI>w6VOI)9bi&=Yv(%vh%1w z2@kim1+{HwD|q3G*wc~v`AHqEyrqLJe-)_uJ_faP{ROJN+`NJQq1kk@9lp@%(d_Jc zI*m8)Z1u}PwX=%DN4r>lE?l$01LY$9)A?_3G~au>t2Ic)Znj;o!PS8H{9Oc>rGKVk zH6)7Z)vuh){zG#Zxj*4D;4x6?O1)`EW=KxI5gOU}J#hS`44b zkJR!OpbiY*Tx}ZluEPt$Ac<(1gH`IgLpM;Bq%;IJF|bi zVVQ%HC`SYGd3*F$1n$1hR-_v_j!`+a;WE)l5~#vW*V_!=!&P9EX(kuh);>0^dDZ;B zH(1YEL9{$72v_!La3%Y-w{6!kvZ;MD(Juxo-e}`9M@C1mIePv5gQMrQyUE(28K~;M zBc0k?3$Fa-K`jo$dG=9nKt_J{DH5pSTW)q8ZfDOGpQ5Y%+weFUAmdg$f;WOHXk>Oq z&Tv-7tDK%OVyFhpOS;Xb`>&5j;x~xr(i$z8zxP!+S9lY?Cm`3@?~vP({uvY$e|GgD zx_WXj-8N`*-`JiORU5}2x2z>vuK8adw>*cgDX^CItN5h@Vwa}Y&%b(*wa-(avJK1_ zl$Xs3Y}Y_*&)qnnYTN2~{OJu#;DCA~hYreRwN!CES6fH@8!j{T26dADXs|7RB==MU z^7=>DP>#~S3}VK744*xe#oCK+2pfl5&tE>wHs~a%#W6ZOb4bRpjD9b|H8UOuW%u~5 ze9H)1(JJz*g3_5m{~-(uY)-T(H`)&WCY?I8fChwh40_bIWWpOGttSlT@lw5<+yPV2 zHG^`q(?@YD9(^OrR@gn;HY{i4u#DWsp7$)e9A*}%^mmX?4VaT-D~en6)*W^`iH;cM z59qvHETBcT@r(9+6Msk<-_Oo(Z!`3yz`CUSVw4?{%SO9`vonWNzZY3&O}~kFS!#GR zb2PHoevD1G4wT2f=;9v)H8i`%2EBZlvhFzBqbwq-!uP^uq5+w?^_b@)@xaV}L)cdC zu<2USAoVymI(($|o7_8XkKYD0SK~esN2OzKWj7#RbM4~0tfd~iE12(BlrcgM?sqbsCaL_EnxqJ?*5I0YT@~ltjW#>H7lrqwa)VfrRNROR)6z-w!mvatxDgLPLsGj zTw|Y(+4^yM-GeSCy@ql%D>{Hme+4MLc0K`Rr~;~m$)HSM!s-1p>Sc`J_Tu-6Hhuu8 zj8&%Fo|Obu@z2w2!}oz2f{#Eoe9`^3{QkoS)XN#1F?RSTJqWO;!kki~v!P+M} zgL00epbGc~RKxZ<{J`NBhX)?C1+9Ur;r?nhAlqB}kj0;+xl|ZE%m{Tu0hBu?!JEyq>92oE9cLZ87(qQP1FFDpiKqeY0R8((@FMu< z^R4U5g*Srth07Hlfy=<*XKl}?EU+CK5FIrvbEM}Dh-T%b5A(bq(B&~}LDlmiSXt}X z69lS*S)fLy4_FC2yvR0SGpP6%9iIs*-CYjTL0Mn|4N*tBfO4s=^jMzoIw*_o#S&`p z`j>1&o(IoUK|F%>P2Zi-F#D0%fh`+{OI$yM$jOYDdp1r?t$ zJdbXA-oW7*V}ys$i+f)3Z?T>2crUWtCXe6g42zB$q2y^RtX|(?3MexSh(<@&%gFIQ zA)h>RDX80wXF)Y%E~skcnd#hF&48=B6JNLG4ULW+rSgA+<6!v{1`bQl&1LJ1=49nX zdEEBm8#ZAy2cKb;8b<;0v|6ie!6V?ZXYv}$2W0lo&CVDRjX#o(KZ1UPc)5OW(#x#P zL2V0FK@I$JtOTf*9$994x*b%8bjNFgYRH1OY&_?S%weOV-gLO;)?E&V zfm*Kng0e`O)3?229pdPEtJg;_FOS=^!DdL=XkGPbPzBW4WE(UMR0AhCWO2%g=IU9D zeN>W+t{!@zCiUBtCmy%Vc~m4%`L{rA}XSjxDu+tasuoYE$&swquP7N<_$nr%0$4?)=#H@RHp&!&`9q$X4RD8hs6_f?QBu zuLl`X9=i>J%Tj5eD(>uf{Cql`v%>I6K~u=T$OO0J0+RbKp&R_LqPkj^9Wi@oOZhxh;Iw_N$fUUS)p zu>ak+TwA}icHxA`an|$J!qv|of3SAb$x%;`M`Zfo&HvHrUl1>QUiOph$P)4if`)$w zr~=+`1*~%XDNy!(5md(Cj@p7Ab?Lb6W>`FL2@TM|eRs^J3uAEQJ3^c$&YGXC{wZ8; zxDl+N0^|23XAg|^>sqVaHNV;cZl!plfB7{wr)$;x!ryGQ(?B(MK;Fn<(J@hct6yf` zi2l*8uh=amk9cLPMRrZ2_+z^G<2h>dz51Cy>|N{Cf7)g}0;>5F&^0Y@1Z#r}{_=VL zgv(Fa&HM@?v}sfWRZ;wfL+`)sbcsJjk3S{9*-P;I-vX>o`ih`#m%j`o_zoF=0rDsL zH7(x_Cir${f@J2<*t4m}e+L#{v0g2a;Lq~`BXayl9#caJzMV&S7Jc1>b~gV4erH**^qo(}_QT+?$x-T?F@Em}spZO#&?lyd)c3FC*6* z7|m4!y;DiHf}@}YbU&zt=&#bYhetp);A3=EybYA6y#}g01FGlQ0|)r7^lTZMel!hN z!$M^fynMCv%d@TN@S>PSgRRgb2wmo1vd>4H~9z8n_;VtD!wZrjTk~f`d%TYa)R&O z=UrgOGz`l01N-^!syva$$mZId~-e^t|J5S#g5$W6f;6p`B)m4RN39yM#H@?%X_&R5 zVOHRhcCkn1UJ?G4xBNXx5Qrr|9tn5hi>FRLD_9l@zYV*gh*g>x@U9gz$v*~D5@Frq z`9kl(ZZJJA5423YJFXWlkA(AKt!)WUM}lkaHc6`jt;2t~G(nTxI1mX>=DVq@NfeAF z?~jCc!EBba1(9(1djsC}ex-%=0x5|w*Py2(;WhENSm9HVaPlNuitWg4u&exv(_W5* zUx3-h7S4-=kHc&!V%_fxcr8g8ilrTlglEF8C}O)|YKx7FO%8ZnirA;H7DcSWlwxsp zrohH24&TKui>_PIFGD}L`r;V9aNAU~bxojk@S^)o z(wi7-04~IujCBg0i-hOF8pAx3_INNQaKG6~nqcD@CTVS;b?6Sh4QpU#j1HuRUL)8d zHe*F<_JksHQbn>d@(^C4?P5HXCrnJ)TjhwX-`DLwH~&gC?&-T7SaV+ z2gO;}Iu30J4aMktsAi0zwq>LfY)izsv9wK*@YAp+uybOC3sVvyYEY?I!LpRZN33_0 zjHS(ugxkYp%7j=lV^ILpgeYn2`VMNFrGdJ1rgIOId?1(-oEeBsf38({4ytc9Q_ww_ zQUZ2)tj80n;Zuav&P0EZ>p$vRZ42%TRVEBEKN5ZvrXJdH*aK6gCDfu|MPrh-VBx-| zs42@L!N-l6CUqyOddUp=ArcJDGD%xeQ)bzQmN3a>81!tYDx>#IvFBm(59@sUVSW#7 zyQIgnmHbPbGAv^Ms2}4c2KQ7Z-v!Y@uskDAQGAmZE0q- zW$?cysJUjdhwJlUp1&^HnscE&iS_)MpY*u(C;W~1+zlpQ#3H!#y^di!y7MMX9_{;D z_zxFH=a?9+=QIEv&J9x$G)(4d@`Q`TSt8*qnCiBk{Q^vb zTEegUQq%NoABAc7LjD~6+Qs=(F?h**leCMmylsB*(q_Z7j#^9af@zs45i6V< z308Qb?q~z8yKGajBQoOpGTWv>I0LMRs|L~X8c8HI@GRE1&>8S>tWquGoDTj zS9mr)F*SH;Fd5g2CBGX9PlBbYKwHGRf6_moSDudT`rJS06sQ(2mv=4HZ<{UZ1oUQG z4|BZv^8t^Om}-T+2pe0(YQ7NgMvIx`dUy@2C@xgt#ekP(%IsmcBy>knp1?~1Z@ix; z?KkqkPRE@riYvH)jqv4wmsgbU2<$qTRxBKOalq>h3;XOTST7jHCGI#(DSZ~|@(R6) z%~+Nio=-@5N-9Jz zl&(EhU$ZvDF(~DJm|a4(O6-B%NJ`tfCQIYi)tEj3(-PpBf;X@ROk21=nSz~{nWO`> z@cw1i1^u}b-U!oH$#(sIB)oii!0TAV{(!YFVy#yMyskxT@;})7Fija-O7hA89~Q^i zEwI!17QlQ@^6NW)Rq+~bf}O5?3G8&set_9ADcqTo_ruphhIRItQg&KxKgeZpmPUdTSDS8MW1d3P)2nFck~R3YDYJ{?LCv)+IyRU=u#*ig zCfLOWe>l;9qM@xlmpF*6Pa zT9$absMuZvU2EnNbj2Pf*vV`^MACO~30vw|f-dQLf-Y&94Ml1%g0{8c*#xz;l{5ug z*@I#3OmN;tcP_D;%neZOIo97Fhc$pD#tJt_Li=D>#CklH8ZN&nzKH5P)g7iIf!(%3 zk3l=dwv+4tAuUii`s&cQGvf=E1BH~z6n4htVW&sG<<_G8Lx<*((9{0> z8tk+u9{WdJ(|3#e^QeEY6)@{Wa=ueA>)kXm*m;}jc8tv?XPf$3=K0j{bA(QN|4%U4 zhgFAVyV>^QCzydS|HxvJH*iedZnpl+^51@kN&1BnAKwx1`k3vFbjW+pE(aKF8a;*; z+vYby)hlNAXOUooou=DyoO;|&cS{h{(f$zZ7NxO+*5QMA327`EC15@MLvVu+;|qlr zp^PG?BId*VS>hLX1m^A)IGr}#RV-g96V}=Sw z)bKYf#UG={C&imT5vDbp0|`f?6|n1VVcR3&3-{QRtl%_m9L)FJm~Oka!rGCN)t0e6 z>r=ayF%G*Up)^=azk4$X`Q@2{vl%>?%*gEm2d}!HxkH(~TZE~#b`Mw#Q|STU;D5za z`fY5r*SfiXC<|r5I1M%9G(_lnzt+I#&ZwrKEfb+P)H+Gw9L_B;J1!dMFN%`-C)AXE z@ti(=0P50WfITqZk^DwA+aI?(9uj&0)-$&K?bPsoLe@JtG4LeWg?-zz6oTk#4qEuX((=osa@8PFT!-zbq;rtp7Y!H zw(p5L(FDhRZ<0z=@<*sj!%f1xNU-t`W*Ta6*bio_V%Pm(S2pg{u-*xnKTk~ZlYx{H zKgwHYe9uBoNW;rr_R2_jKg`~9C(nX!}iMWrY(=CqL zM!=}%E|?u8#jS;@vq}EcFLjJk{Ck0`38kTjP2oBg-D9R(SsJ|iXEzc3L(0X!SaUG- zSn#L8RA;~x9;5lNCZ@+ujt74!nSUo1YJQx}Y z3H~wo7nt_^QYt%~@~2Jen=3RPc7=Tuk@%Mz690}e)EkO>Y)B2yAf&ssfS$O7Ho>m8 zw?3!hPFIl5vJ2Bp;zlEtCQNpbAv>`?gu1)Bwpsl4sK2^A4s%-`3-B?R?!>H9w+{w= zgOs#|j)v+W#u_k(Vqh{QTMjn{2OPsK@c2pzLAPW5GbqxG0jV#%N!i`(*c zgqrzV(iB3PpZ<~&-U9P8s2QQZ{8ZZ6o0JOrV_}z~ESPn~g4IkInC>%~KI!!22dMLG zW?GBHpm)1k;Lo%$aDi74&bE880UF%`i0zUu6L|ac0u$vaX1k z9=|bt%LF|;eYJb0!R%@3L4}HPZ-?0ltLKB|&kn|SX-d8grV@fCZ3R|?`6J~&r8odn zKDLA<7_Ds3ztJq|pQ8*+aoB!cN+QHH79Xv2j%EHsn_#bV%+@;0^M_D%tVlG4_p_tC z2W?_zWU&eclWk*5`J>SWW*;}Pe}>1w^z@)?ERCkGhROUqOVCN>&vMqnrR<}lhUINe zHyT5rdKPBwISb}5u6C$Cg1Wn3?lLYq*N&r|DuatyA?xWYFu4^EUSPk#-1LVvt`N_s z1!-InOJ*?Mg0+jycrGnPwGbUl$!31RkCL(KD@X?AUsUc&rNhy%oruwl^!0fV7*a)jO zsuUj%R*Fz2j2p8jd89!|m3XGG2Fdn8odfXDxMpQrV$hDvtx$VhN@lfr2<9J<>^QA+ zY3Vad=n0s{oBbc(X?%e#hjT{@S_YFl+7tB(7iagtA7QeiT}6V8E;LD3u+xmb&~yXC z%P+L8WiGO@m9Jtef#LH#V5irk&>Q=QL&skHAfnBZ&{R91cnEK?; z_0R_}|CTOPsv3ovGS_4LYYF;R){+~XQq6RW(7^YqnQ36S!bR4XIniLE?l3n7dT=`) z>aWPbRTr6QDJ1{9D1pC*HmV-9Y?d3QF(=hW8n6X#^Q@!?~>5q;j*d4X@#Ws>V z;sx{xrVe9Z>@pXo70WJm!A~zXTU$_d^BT6RJil2GsWS)6U3aDQ)>BAx==cyiO6Zzc51#H_Ti3S3?r*^t>YAiBRPsBrGyEFf zkzMMV?mJWHODM;Ug{k32mlf+_aP(!STU)izsrDu%c=B}OYoF33i>)CcPWs^tX&q?iNz@z2$A)n)OUgA341X!nI`nFTpm&!^|Dk00bDkntjufTZd@{Rme%fvR zOSx+s+A-(AvmqrBq9%vkVhru?7b)Kk{m_V2&|h+HYiw74Hu1A?jrX9c+IPfo%_er# zl1!l@Z-%OOv@0Bpgdc}$ev+2kl+R##*i=rZ^kDg>zH@~8H)XD(+KqocOxus67=6VmbLxi-0d%o?#TETR8J?_%JI{lDXw8A zIgK%aS(njn_YTZ0v2B=~&Fu-Rtp9?rH_WcLx;vN)bGOZuc>>nRHhmJugBEnlKSn)B z$afU~Nx(;r+3qH#+7*WfXzVU6VQ%MP(SI2h@kb!3rEQUK#!x3%d+EWcEltwZc*D7^ z?5=*UN!~|`9mC8R{b87Y+_nbY_755?+1hlwh7vlpw(AMjSr`dD18Z)!*X5RJFTu{H z$7`H&u8a?bntC(rbg`kC&~~QBHNn)-#{^s3V1+ic+Yg4*2+DAFTtm-5-Fwfkm8d8t zd~w_Oobw&vcBnRf=MT?7_57K2RA-NqP=6`1Lw;4eqP(ft0jBBd`%dT^n0p0Vsl8j~ z{e7qxOv#e{>%=pU|u9V5q8=!DtC+*@2~!SpwK`ex62`^*Y-mSCUN$oCsKg?DvKYIse{Y>{MXLl*OGx;zj(GlE< zjr*CRC}leY^Bd^9{KZ}E>d%pfT_zi*iB--&=kA1QbQ1iwglcr7EA~8`PEZ!M&03@g zrSlJo-@xqpt$pi)?zT40qD-PuFg2Njrrw>yw6O+F;hPLw;#JHIXbDp=pVXxVY)+eE5+GYTU$GNBUFaroHU#I zVb{YjAxD1i8oQriigSsB^|Nu5x*DcVan#j~*@f5IjPAzoG3f0|Ytm|xGcD*p;G$H{ z9W&BQx7(O!AEDayLub_sds;h?qZ>woDbDubX_!2~4oP?qRBuVn@w=XSoxMF`C!$%8 z!EPeXu5_W}P#li8iS@3xLvGi+@i4XCt@ocm^*oM)9P_zmFWVG*8W;)FI1`6gy$sVF zq+zg{H`sf+B$IqQjfQD}cpAW==S7(B;nqO=p_&NH)^Q~59k*V=3)lyy@p8-aI;ekB z;nz{JkDJ$i|E`AlJA^HDDRcliaY@Fj#*NM;ZDcl7EuhOh3|bd<9kXPk3ywheIW%wVYPNSc;*Sc;tyax7um%TCozUJgiwH^7@)-86=AIb!&rPQfMr+zW1X4Z3{2b!Ftx?`>uOQIEuj+x zd7q{4WLoyObJY5OXq2e$)UOco$ITzbpJ3`G1NA2j98h#1XAsB0R1b%_9UNj|r>*lB zOx|x>)HQ0y#y-P%1}2M~F9!?lAE=|4?!C?%6kn9-Md%ioYwIF{T2I_u{Sqo)#tn3m zsx+92ZKrw@RNI}&3{-dHrLBj21yx^I7PDAhs%6;fSQlSQNrcGQj5HQ}8>XJ&*RXSj zSX(pF9FlH=-Ao*o=OOJfn7l4vt2hZQwyHE5YD;wu&w=_YkWIW7s-5vHOUn(5PXd4S zyB%t+>)#^4?2_t7o;w`pJzZ@!)a|2BMnccS?5mcq2`N_zdpCR02wNl_;rY-I$Nc>} zyc(wG<#g*$zC+3kdIMp+?Mz_UVVd+TS2)`{j)nY88v!k|bou=V>wna6L@j;I8NSNcaJm zzXVycy#>`0;YQ%xoPP{RAE?GPJ(jMbXw4?+&X zek#!))9+y_zl2F{9puJ+oar`^g>mdSyA`-59)=bxyYU@%9I-7s+z?o?z3B<4#>@@N zZm8S@b3Q|p?<`vA7~YAncEs79CwzQo(3EZ*XcekGo+A8%c=~vgbT93B9HrRw`VgvZ zg9fluHN4B((_dsl&%t=fl#VkUBUoQei4|_(F<8FsDsI1tRR(sI#x=Mw-z43~J>EAc zye+N8%fkumZvOkbk%UwclYAAYcNa(XSc#no`GorP zn9y!mGwaM}Pm5z@$;Cp6kKh(+lWlTOv_x4xC1OC?rQ)2ceVSApX4%OvK&Ww zUY{?AxqGP-1m%C$qzz}d0rrhQ1g5#}Cf@5%)#RqmIS&-=hn(?lf!#!;HSBWO>4EwQ zrdJO3lgpY8r_ zMyS9|V>?)_pgLKUv~;qIb?&zos<~wEa=wSDbXwymz{kglFnxN*6yz@SvbmOVpTu{>_s%t2pCCuW zC+*1aUAG>!4~F(63(n5M_YtdB>(vjiV$-Sh)3y*dyB>m$ zC@Lj<3VM4H4UL)~^alHz^-qLkAJ#M0z?RPhy=j)QjBkYbEm7k`RTnT=wjnj14f@}7 zxVrM8*B2EY{s5|l&(7Ua&$(sLpGv8)zNeGUhN|bTpd-**PSef{gWizSbO}@ohD%&( zkzFDj4Lx7Hhv6u+Sl;*k8Qb86e-t(8pY&5`zoLo~TD@qu+whDRt^NH~FT4?^Es1TC zqkhs$cF7LL3V0?0k>Ria&h;5gedgrMGm#cA+d0G$^9AliU^;-amXY#Hm=*zU=15s> zagkf|O+f}slbiixdnCAcvFWx5Px=PcE!WJaR;mV{wWCl? zJ$#9gzHCW+z0oKYu~G;5BPMI*UJD4|D$X0Ks0WFjnwHB=jYW&nXjwso}~??d=qc2h(TP zGSh8&@XEyHMfGosgl=Ae;rZ-?H&cYv657Rpd;pUzVVvvAu7vqt4s|D_#UfxA$(c}@ z#XmWR-i7gj5w}{&tAbv(lKI`b2i5_GDcSEf!R)as@VZG_f=QacZb#p)N7G?$7&*FZ zf~i@ouY;NF!8h!}V-4R1rs`P*-!8Dv<|NUWu)$wyp8r$A@ zm|aK<^*jk?_xHj<48j^4hvQJn^)PMFb`uQVzs5{kN(Xi!Yca95tNEszhyFlKgz>`T ziPX^hgnIdZjucpHwk{*z!)t^7w=s+ykGsEIYm#0@t+>uMfcsu$Sg9Zx z{3BQBci2_29xtbcI=!P^(N8jsppwvI{bj*^sCvqKo#B{jgBw^=m_cMNRQ2N=w*@2N z@1R;7DV_Or^+vnQ!RAH6OJOb!Z%f%^9l*NFBQOn|ZE zHQq{wI=suq6x+T%H9VJ)PRKN!Mdt|2db%E>HrQq>VX#<&2Ei0(7qS;%Mcx_wW}Df% zmZ5)nyL&z!D_j!^{S9kuX7miS4D2w|)&*N94BZioO<&O}ykSS&n9Qhf z45}t^qe80>!}^*TGq_Rd{Jve8{acgpBAC{AX5}ev0}8Fv;bwda+#e>V;}0#?@K_M0 zX@)6p$5=2Oula<5l*@L;O(Yinz%H{k?i!euZl8r#!FWT=UBF2~8Yq|Q!=iT=lrRUT zbBn)bg};a01Y^20`)2I2N7r(Gi+g@#mjc}TRfZd;UB?}Uj=9K0`#!Yc$9AKzIWu9Z z!?OJ_jf=BhgWa}RmNeG=;V^sOp*P^mU|MOFF(vU6ySn{#VNZEV2@oJL`GQ4fVb#drL7IN`PgRi523Mk@lwlX;zf-iK;^U z7kQuA)hcKT8#7Wcozkqwje)5cwnr9{mtoovu`J#E#l=wto_gtCTZ&!f!ULfGO!7Z_ zTLo+EzvMhZ$Q{S8{M^=LC$NE?wrJ=W)PG(Ss=tpJ``h+g!ANt|E(HZJ^~XiN2i4NVwm}#8gEoJG_q!142;;cUi{jS_X>rFuU#28N?iBH# z@CLpx)81#+9sa`F!ZQVR7_cvGEezOHo;ckJZR)=l`k0XJO{kC4#<^d)On&V*!7eAx z9 zAKPcaYg08TVM~X_gh9EZxYQrO^ z)x88=woAV&%9cg2yG^^Aplf94`=Ycx2|D#Lf*nnd-F)LrNDm@;|Dk=M#t+v1yqHE}!R$u1u@?jD$2(U!6X zrXl5%1GdLMV5jSg9JO)eqlP?~P9$u)U*eyz(=`N+6{|heN=)q!j^#t!efai56wO7v z`Fd6anDTo5;t@>!*(B{J(Wsv>s-Gw=nUliSpUpJMiNDx8IUdgcMqbD4gM(=>e*^X1 z|1Fqmu`5QXML?ny{@P8|CA`t4PiTTNlV!`!)*PTuxwJT47$JO|VJGP?~_ z{VnMKAy^5M)|xSkLAB=b{_k__0aHt`Do5z@C)@$SAKqZ+6QesunyuimNbseTX6r!?^2bk_q_2am>-7KK?psmspVxKh z=a6gRsP{%+{la;T{4Y1&c8RTl!W;hxdbg6sEdn?H8NW5vC!$Zo{C6V$SAmf9(?>s3d)c)vKTvTCiSQi0JPc2Q_7&yB)kyeznEwg3Np4PL z(_n)226=C2EQ~)>Slu#_fM%Y1U2*|G0^n}}THt~?2`1?~YJHoZ66io8&P?o5rT8@q zZ9V=D7D|J$sPot3GYM%%kcvOg-UaJuwwGklXvWW7^!D#(o+qSU@enAGkWvD6rJp1m z;fE`fmwoVHBv@F=O#6XRJuA^{1;ah~oeO27#sevd5S^sBznFrf!SrB*D9)a(!wL2o zn_Wj{LFL+>Np64%_Cxj6I|nGvw~hEs3x6%QX$L{&zoh+{rz-p)MvvI`IjP}W3CTcb z`I(-A=>r44K--KZ&Pwpt2hMK1sca9^?#)Sm3VYO4XliWx-qi3rgtVw|07%Dy`RxqN zBG04+EYqJ;vd!raIf+vv*s|Hp4#8A4j1NdIkDU4B(V zU9me#D8P?xbnth_zJzpCqXcd?SDwS4MUm~#bIdd_oXd}I=(!G$fwo6N+hM(J`OV9j zZojf6jpx@mdiYXkE5RFWus*-Nab;`B=RE` zax0cj{;Xj+%-tscM6iER39s{;7XF_(_!bN|;I}#K@~Z>&P?(Ch%k~18Y)a3V2w%c9 z&{&wimkOSr;2+5E=Qlf)!=4&}2kZ;@33HO8g4rS|G0M(GQUgY&!1`VA?PWJe*{(YkGaAhBAj2vOq2QqzYC&;+n=MMa8){G zpXqh3YP$W+U`|5fuRoql4Q(UT!)&j|$&TL)kuN69)Xf>hj)nHO^Dj#9SVc8{9OUkV z*#Xpph?ijlh~s8>H-9Qn-Hn>R?A!=*8whs}FFR)U(}ar?{IAKlJJ1tpn5M33Xb^j7 zPKg!w1`{gQ$miEjyt~5o=P)LNW#Es1XM<0J3E%?oEO3eAOF`Cm?;S7zZg98}tPI}| zmIA+V`XMk8{u8M3eg?~e!6bfgNeRPA{!jCGRlxG_hG1zh6;uT+9kv2Xz}q_B4%8)7 z!5tkJs)Fl59(j0EK$SDq#h=D}+w+HAgir}%j{heNk#3etKilCPhmX1ZLY4P8sD?k~ z_&gUsPrr7mOM((U4Fyiue?wXHZQ^B-jV@hrR6U!}g`v#~mjI-|z4Ms7t8$FF`f)TNi)C z>EAp41E@==f&9yHFyF7xcMqk&P1NoXsDev@YETkb51ua>#*P<96?}!$g)($YQ02CAdU2HA+Qna) z?-E@3FQ|lV(3xLeR~Ii-h225LU*&Y6^s5~g%97WCYWNKfZ*+QJP@|APn1HVTlc*wd z_@62s<;oYTL3e;^_?;j_lkeS4KrO!)R8MDsx`Z<2Oi&pf1=ZrGKoztA)FspyzW{3J z7CT+2bW0sCj;d!3I={T-dFxyPp(gYW+Wi{`~)+tU#8jOb67#Dy}2N zFy9}u>O`pL7rO-ihE<7gL%a&?2>Lq$s3Exl)K=FY)FqT21y%82P*J%~ALaD1XVHI+ zMLvQS)2Q;%7iLbb*T(%1K{x`pcloTk7~Shs!}ud)`-|$~o-xZ&k6b zZ$WwQ4=%yaF2OGjk30MoRL@R0eiGCrRKDqAy9$y+EHnCh^l zi@(yvw+HJIKg{Wwp!${T;>S4s4u^L+oapf0GE8+M*1JodH0=0bXaJUOp z`aPg7p*r-rzxVKuK@AY*Nw}Gm#AE>ogy#(qK2F!v+oFkR%H76HG-C4Y?WZ*k4UZ`TWg6hULrwhe*IR2kd z<-JEb;rnMZxfLjM8H=Nq^@HddphGTRsPu;&FOF)!5p;R|2^asrMt>juX9gAYyDQ*7 zp&IrV>4g5S=1>g`u*<2O1W>$$<0ZBGaS0WlXtJ6ll&`KmvX)C)+a(cdw$zty)-*}D z(rjyz&`|$7$NbqOA<-YY#x7SAP%a*EJO$Jx)Ld=lxKIslG^YA;3*d|57Z^R5M1N9P!?J1aJ|$24P}{4 zE?%e#H#=S&(eu46F2Pn%6>M{SyUQR{0XsnTq!6qE{s3wWkGc4tL0v-m%)`Z`pss&IJ)^nJ#S2wYIw)g|bb4`AJz40&Y%pIHjUpf%=Q0SD z;0{ndn*gfdyFm@XB!^Q#rJL&Fr-QnLNtz zA8`qbqkP~u7k|RxNr%5X{KMg&pezvJ*_;|u0#w6F>RFvo5A7r*I-xkKL17nP+F==o zWnFrq8eHD#6`Woi6<^7vtK!mCbC_S(`RDlg#d_#wgK;>)V z;v-H^aoF5p3s4rh5@cHDdtF^bH&9n`R0F!BtKy!ZPOdk(bj48>--536x4L+thAIP; z>4!PYbn!y|p#`Rci^v64K%Prb996++rwg^SPjcz+169FP7hfE;f-Z2nP~|`CxG*UH zU+4s(3VH!l!WSLBA=X;;8mPXAA+{Aas##Zl$x-(k}wRJ!v( zHSGL+7pUkG6h|efbmaa6i~PA`tCZ=kO;{x)E-6A>@E0$+9+{}ZZ$#V%cORKs3%dT~_6%h9!v zy$Sk{0N1*N|2wE2uXp)`8iI|W^v$3ewgps0g`h5>8n6qj4*m+7N7^J@&|Ttd|va##vfzC=(SS02=<=0c}e0hPX*;}@0336!Baf-a#Zbsd+W zuG59ec$vd`P8X`1O&u?e8iy383$;#kbzG==yXjy1(bdgG2xZS}9RKg2ra~{5{@+jy z=|j9acAHCAgl2tP?%$N8zl##e*n>dzIRi{E-?!yKn&gpA&IZ->aiF%ODWEQ)(%lbg z51a+6tFvAFzoFvixO`8z^iR6=pJ}Wl>~{&i1XbWy4iAF5ilfpWc6xD?#eQ@7PPllX z#{MtIg=*;Ej{lt>5BxW+>|sFub+75s?P|G%K}&vfNH3aVkVEzkGnxPptLGCbyVp)x$-xKQy= zf@4D19kl;^xxS$?-CYAtuU`SU8stdfvR{pC}-USD&6~_8u)?3k3gm0 z?f9n-KL^#YFC2aihO|~3A)p(q-z9*5gPPbSE7<8)4pheTKowjO)b($u238_oSlQtP z4le{%esxgg)dY3J;5BmzBA~9~sDe_QUL2)2N7r)R9aMqWfYPsZ>4mDWm&2Q!E>yak zD=`0My1p(!e^4eJ<`N7C)#FT1mrzcc=k(D|7i!_k2UYL{7k{^l7fQbelx3%Z^8T3> z+*&;oK|Poas>M%$%J3wp3Kuy3ti$I(T|zZ*k>mdz)H<=krC*^I>nal9@`a6{8nDU5 z7f0!v(Pg=JU3_s=gSIq*vVlRhuuJB=;82MQ2Eka z{B@u%p$y&2aiQ|{0hRtnrx&3{G;H>E<#eF|8|31Pqn@B;IbEo7vOzs4&j(fh-7fy$ zQ0eb+@&5tsN$_40sss1A3_`6k4}xmoBQE|?Pz4)MbLKG@{}iZ2;8~|X56ZQdfEt-K zF8*y$le-X9IXmMc@qrUQbP4x>TCTou`j?r_92GxODnh8o!2ULX(L7BJ}s7t8$D?wG%22{olE?%hkPM|Ds6)20Pxp<*0a4V?% zeVr~;L-W&}@NcLL{fJiu13(p=;nEjJos8~u@e@HcWHPAyQyfkObqUph86fHMy%+(F z)f`Yx_l(1roxTiI#jk@Z@C}EnL0v-Sf7|ims2yYny2{-RD*q=A_xQ+6{L~4bfilTH z$M=J}ilZ#?g^T~v;a4u5Q1M@b>fyJb_TE2Tyin!;4XVKA4A=E*+kK&gWz5>_2x}-*>9y@3^YHF?*|qDw^$=gt`Z!W>t+)Z!@b}sEny1 zVUWqV1fk1C2sLXWWSFd)2qz@$k}%X%uZ6I%I>Mw{2*XXGggzG|G_8%0X(rZ2NUVWy zP(qezR0mmf`uOC+S!MW|38;U1G-AK{RM z4H72tgRTg(E=9;|fH2vtm(b-hgqjTzrkbpV2qz@$k}%y=Z-lV$a)e2Z5N7am%Lsky zAvA4_@SvI47$LDf!a)fIrco1wl@ew)L5P_H5(YOw=y(OfOjB?LLdAv%$0Zokwkg79 z2@9Gc%r-|QjA?|>s~N&$W?nOdI*k!R5rnxWErPIH0>8}LJ@BLnq##Ubf)GtXm}izq zNVx)`LUV-qCcQbrAqg8KEHKF}5N0(+$ZLV{oLMiSOEZL;sR)ZqRw}{?3A-e`V5+x7 z;D=?gM@xj4`1d*x`lKK(d~DiwN7yW3L3e~t%uxwrIwSPD3gJ^T?<#~kT@XS& z5cZn19tgW7ER(R$1g=Jy(iI_kHNpY2L_$h8gbLRnd}-3JK{zB~gM@=7`C5co-4XJx zMfk?7m(b-ZgqmpxhfP)*!U+kxBpfl-dm=3CfiS5j!uO_7LZ7P@(4ckoyVGwu4&4Z)vFm@kCClrSxNfyYajhlRhEFy9J)D`DE*0G=pe<_J%g zFvmbMrYFVs>K*DH{G)_rg^{Q2r`mdiEjhsS@US;ol`p@W#*$0nglcBP|G+ zC4!&{-vlI>bU_KTN)R&1Hv=V2hM<&L511~!DY@n?bR}%EZc*hW*=0QF7X44{FTC}?Ot5i~N5h5(JtR6!GSKyZa=J``wb3Ixr}VL`;S9R{SB z*@EWgsGx=EIvhwf^8_u;NkJ=6BRtY+q zjhm*rEH+9$pXxY;h1JuHm2!rs^=gq9Dy(?2cd^4l+Y&=p=mC{HD+Qi zLgGk-gA&qAqdbI_5@zNhTxSkQ7@URBaTG!?Q!omlVm88Y3B66*(FmI*EEtV&qd6*J zOb$Y?F$g!Cd1DajVlOGbbSAm;(|9--*z1B0`=in21nuJi>7aqfOhp z5jIO$a5utOb5z2ZyAXQagK&qLcMn3He1y=w2;)uKy$HJ{ER&FL0+SG?OhAZELYQcl zNJyE8P~kp=drbO$2!|wWkTA(4Pezz^H$vWIgvn;Tgf90W)SQAa)nrXUI3Zz|gz2XG zRD^~1B21c!FoS=81fkC)gr?IF9yAlDAtc_1a8N>lX*3;SrG%N&5n|?mgu#;$I^K^k z(-ho~P;m;vaS6t>oq@1f!h#tHv&~TnW2PeXdH~@uGw%U}I@1tB4r7a$yxutCBCll(BktQiP-4D#j3wOITsr&O+EMVZkhfRpzLKF^?ehnvL*=nKv7u&P;^R z9E3F{Z4Sb23Ckp`HG#(vraX!eeGFl}St23DAXIo9;cb)tIKm+b8zgKn$#W5A%|ghV zi?GS8m(XQ4Ld_=-wwSCZ5Kc(gCE;CD{Yiv{a}XvyiLl)iO6c<#Ler-Z-ZK-QLP&fZ z;h=;<(`X*TN(nRPA$(vCNEkd9q2tpCyG+5;2o;||I4W(f=CBYa|xN*MDb zLa%2KJ~i{6L8$W-LTCZPUX!)}VYh^3684$Evj|h>Aw-`=IAE4YNO>Be!gB~;n)K%o z4oTP`;h;%gh%jqDLf%4zZ_IiLU7kUxxd`E~$y$VPLc%TyM@;qS5f&~$nDjit_oh%n zpJx%8zJTzfnfL-i;&TWGB^))4UPM?aVdjhM@;`^n7ca8!4_=7U@g0l> z9GCK2$h3PIWwVq8FQc3cnPXDMJde_AG0Gny^YmhrIxnDvUP1XQWO}}WvRleBDSwAd za0$wk7g3^1XimT^SweGCUP7qwDnf!ue-+`7gbflxCiyjlSuZ2xy@pWAte4PbF+$Cy z2w{`86ybz~T@p&0>dO!ozJf4m8A2ITD51|1gr>_8%9@GG5fWcTI4B|6G+KeMQo_s? z2<6QI34>ol=(rN0f+<*uP;n{3aS7*}wyO{}OIWZ9p^`Z&VazgwUauouVCKD!P-i(p z=naG_ChZM`-4d2bsAdAI5vHs_h^|JcZk9+$S&2|#4MGi*z6RltgbfmEn&dYTX01ZV zdlR9ySudf>>j*X1BGffmYY|RJ*d^gIQ+*x6!Z#2mtwX413MKSejnH&GLIX2#JwoCd zgo6?qnMQ9RtdubGErcfKfP}$sB6NHkp{Xf&8=>M_gyRw-rtLcjnR_0sDv@^BJ_G6;bt@MeS|vO5JH6rx0_lk#F+!%9_%TA_2M7lxWSK_05mri=xf>zJ9FQ>hLxhf>Amo{X zPY^2ZLO3pAv}wBsVY7qTj1c+^VZ2HE3}Lr~WfJmD zU@yXy-3ZaW2ouc`2`Qf-RQMd>9+Un#!XXJ8Bup~N`w(XBLCD*OFxjk^(B)Hvn)?x^ znymkau{VLUvHbu4&tO*TVC>t_h%6Zrg=Cp1Nva8D8=8#0u|>r(82dIdU0M(th7wav zL#T!(Q&LHjEz4js6d5&0mjClL-sk)A`24=V|NnnK9?x@K_w#;V_kG>#xz9P*b)OT6 zs}ea9^IUi?BK229VlHBV+b7ZcD5B*_#3Gk)5)pI^ktdPlB2OWWznA(rJK#-Bs1bD0ude?vt4j#%&F ze@9%E$dP#8h5vy_J%dR61F_NVljxm~Xn7v7$t9de1f50XNu;^R3y3We$rlhGyIhI5 zbBL%v5$P`JPehg95rq;NuERw{wnWNB#8y`zG4T&XbOBi5j4wp&c9{}g3lI^P z5#PA@%ZRHIITCwZ_!UIzB}C#C#9p^gqW52jmRAu!xP+^SpuZ7$68l`_KZq?7$^Rhs zyIhI5LPXRxM2<_khNyBGQ7Cc1b@&&NEs^ps;*cwln0N&deI0Sct-6kAa24Ty198;# zyn#3t2ZODB&H;3gzF zlhLl%nH=HA_*ob4hqx+{Bk{WnFNR3Hfk-TdIPdmJ^uCE`Ssd}FODK*Ax`oJ-C~%P_ z5L+aYO9XHa65vjj2zWL*E`W{Uk0=aqOZ)@41@Xfa%3KL>9Ro1gGARL=e*)YknTf?P z(SewM1KjFBOoQSW{~*kb0QXc7=AcZv%&h=dEEqGp1SU3^+W5J&U~1Fa9}yOUDDGlH z5cv{W68`*)F=AN&Vth$Npv#o#8ir4UyoawJN+@Y0CXAVgwmL}|BAqIWQ& zWf??Smrw=~6oSZ;2z8NV5nCjZ%OWbcT#2}nh^TUiFqc#gQKb~3P@=Nypq-U1krIli z>Ix(#mPSOEM^tyK$|D+-LHJid)O0;7AP!2TOVoCL6%n(`B4R5d!d;p~>vD*&Fho5U z6Nbo_$dZU~p_LHJLJ{LDA?|jW5?#w9A}S*qy7@ViiOaw@;#X zMMTT0hkw~tFXyI}t;wmAcsv}yur0R$&l@Wy!tz3s1h-`_J z8i)s6fyBfri0GP#Hf~i-M1!gb|5}K4u4gU8L5XyU_Rg<1VsAY1h&Nq<#KZ>>(GMZscB>vjGYj)-OL5aT-{*11fHt`8w1Iw97(_)dtc5;+p@ zyYSA4)b@zP&WMd}pG5D65iO$-n_NN^BB%o*Pa@4lK7!aHk^BhaW0xxt*AWrb1(EKO zx*)1_LKI45xDH(r*%B#T5nEk>#Kg{s=tmLT+^R~b-WBl0D(B(hv+cf_);i1FPKyIrP4*GCZ%PawW=@lPPG zO5{lFap64>sgEHNdm#3@eG_;Mr2E*JdHTy3M3}>Ktw--IO0}4gJ|$1!ao{u)b)%;9F$0x zIPUzOMa=Grh(V4zKZOYEg*fG6dLi;9vLy0cXm7-_rxD|OBhI)?iLTEeBKjcC zy7)ebs}ea9zq|0~5UJ6K#ODy_-9Cih1=sL-l0RJni3{q*ALv>pBLxc@N6n8O$5cv{W68|LMFd`}r5$2NO5LI446iQTf9fl&ZB~peWs=5M+iLr?2 zVTkH()i6YZ7ZLu$5j9=U;fRA0=@PY_-w4F)A&A%!h;WxC(K-$hHWE?K#f(JcOJqqz zxX@9EWkV6;MCJb*dmcU2GPRhO2myqM2$tXbV*|oRYoHUC0e--;}F>rDdP|ixB`iZ zFCn7GBiguC;}H$w5&jbp?Oe|Zh=UU8678Me%ZS-y5V0>KI=D26)?*Q26A_(U%tS=K zM3zL93!Q{mHV!d<5~7RCl;}Dh5%CJ*Q5XLT;;KZBL^l`yDk60PBJov3cehWX_sfWu zuOWK4gx3&36A^h5JzeBv#1@I<$%v<2u0-4^jUvWJ{#X zMND!95))@4qURxAb*ttf8q7lY&qqvlJ?A41N~BA8o!?s6sK79paRB9dLwQbd)-h(ZbHIwT{q zB~p?RZ@L1BiAjj)HxO^TRc{~~EJ64?#B$fuAr4BUORRK$%Mi0)N5n2eta51*t(PLg z-bAc%F>fOBC9)(^T$3uD-rh=B5EZf-6gF=RCyawD3Reh zyo<<|NO>2r)fGrgd`M_kJ#^WCE`*LQ5z6BE@=az%34IB z!~xggeMGiI%KL~zu0UeqIz;pbh$C**2Z#o#2>*?Uqps&h-t>>T^-7LAzYj@HxIRj9 zU7C`UE_f5kDHo&UwA-pA&xLL#`OOVga>ivU$#+%LNY1)=CFk5XN`80YACdgwCMh}Z z_9@|B<71LPU4jzYX(%ahk)H(6P9w<8{Um^P8bR))(!Yb;gXyG&L2ilC%R%m((knr( zr0V86saIOTyoUZbK~l6fu4qBG6?@bj?6SY)1sU`0a?R5;+nj zUHA?}>J~)e4n%3UPono$M9a?+WnIGOh@j69c@m*6@(aWkiR3R36W!E7Sku8yuiKyxdBqr`aMDIjYcdK?H8hnoM--W2@dhS9Tlt`DT?fkw% z%>Duq`xPSGrAf5@5)qb#sOMs`5cv{W5)m%+Ys9il#Q3ifce_l9t~(JCyAcgt{BFcm zi5!VWE<78Nx(kt*jcDTbN%Z~-(efL_y)NM!L{JtYPa@Jqev8;5k^C*9h0B$Q`x+6o z2hq|c?Lk!8jVP38-jz6phUVv zd*}B9V)nO)*dGubT$)7dJ&3R$5uIGjkBEGUEQu%=x(~7JJH+^Xh%PQuqU+v(GOqql z0gvgv;wQw_y+q{vL_{|iz8{hLJtA>GqPyEC(fbEP%byWFT*A+YpdS%=5u>;(Es=5n(Z>}?Ox%x%K8SeUtvZNk@H4{y z5Tc*!c?fY(B3)vD^E-@~or8!yjEHe*60LthgdIT)b}>f~`4U+Yu`cvi#Igg3@xLO5 zxJ-$z2N4lR5kp=4QN&e=9EssB{1_tj5F+syVx-$A(fcr><#EJlmv9^rbOezn5$_^T zAht*(pFoUtxe{@|BBF8;<6TlNqRLT3p~TCs!%0N8M9N9TBv&9Y@fafd6yjC4>J*~E zafJVA#AMg=G~%E{x`fyHs&J=DF~*h}6@F#IuM6Zl6T&JVeWLh(#{p93tp9M4m)a zM&$1SoBF)|Dj4X7J#4KTjzaQ$6rr_uX>FtM0I%Tg8j!xMHuLo?tO`3u)O5 zzv6+z12SH!5xCjU@j5~wpAHP1U94V%>wfwRf~o4+JS=9?*wLf-p9LI`-z{=Culr@Z zKPYgof3dXCj920UKlQ8Jze+JZIn{~`k5vZ)T*iP40f|L545Cm`gqzwWaJ&2Q_ka>^ z*~q|V{zK~(^OVw>xT3hygI^e-!k&UAco%auV0h`7_ZHLRS*IqEmerQXC|aFyF)tNG ze%GRyr=0X(Mf%zMZ&$_h0HunyMy+vU<0dKe42p-w7uB-igUp|N`v+aX*ueV!yBM!f z6dp3OO)>r9@YLmPGKP%}yyRE)&T^Y}7Cj?&>XDABUqVt~b+>qYU{LXHor>0WK?zmD zHGU;9sA{EWsjn?=)aaMSsS5EpYIPxCQBh?V_AXYmOHxU1&nO3~f4c*jSJDch02STkkk2J+X>5)%YPJhQ2sy*x2T; zP|1v>xIpLUIwuC6_K%rS%u_|nTcg?pb(+a?DC3?i6IesXRJL?T%$Px=#|#}i?yuA9;#xuNhV^+EV{@LJTh2OQrw5e0xWiyi&C9 zF9htlJ*OIL0&7$%IxuYue0c5l5xDhQ#uIA-e+dYgTdjD}=2=#4R?`iE8BI3?ef3L7 zxe0pMC65~W#BG=!{BXt}(}OqrMW`>1y5_XfB!)IT&03Bl%wxON)7E7s23Kg;&L&l5 zQU}oRkU2ei=J6uKGq26*-(b6&d)S4}46fkqXp{8kRL|I?PB`sb{Vk^NLE=$3J^QIP z%(9+CT`jH-Zl1ZvY<}UmVdlD-tBV_D?(y5s>#2wQ-5#9Z-2(5zUBsypPvF$;Ap-uk zxM-ZF)rYGV*UQ}9xEU7L2d7FmfH~&+T3kcisEYRBzy2ogLB2wFIu#mdt`Yg?a2f{T zv@aS%KXZdEt_f~{xmcX$(G&)ni?g!#;$qAV^;+R($Y?!EnqjyFMv{Nl+z4~calOoq zG}i*x$J{7$_u-y5H`-iFTwil9;j{(4_w&-v z58?)!d)eaJ;D(r+Xs#_TF68zzPCb)MwnL7#z*lhEgb%?><|bQQdt5wD4~m##?qTv{ z&H1*f&WV?;Y=Xsg#Jyr}S`hnR`A*<9Io}rC8JA#gkrj@@)n(u5*%P`j$SDKp@4O`9iBVWPXHk|fuf2eHk%iD2Y&j4gKlRJ^B z`#{hirfS%Q(=i(Zm(6``af5JI%u6=qnv2JEGI!3Lmzx|1=Q|G;U>jDv3GE|?pS>y9f$dePhj@;xo?lDU_0k>>u!X=_b{=DurHp-J5!wy?m< z=3c?IG)d2$Z0fy8%@&8Tq^lu zR4{@x(%gFTX<@uDG{==7-2nRAEDiTt-1|EI7MN^h@&f`E;u?^)#_9Oj2%C7D*YKdl zeMo*XTcIIo8*`h;>me>0+M3%;z8>5B9@2K^(#Y#Sy&7r%KV z+>d+I+(=v?<3Ga_I1S@)L8Lj*!`y3D_7~if=BAiCfP2d3=behwwd5c?ZGj0EcnB9^ zZo0)C#_5TB-AQMdJ3_v;#U+~i6{mj%eu8u+PL)0iy3X_p8}VE;N!0t?+U3 zp*F)s=1$r_1f1@SeF8D|-=_g6l`R)||J1kq=C+GkFR3k-1cJ zf8l&jgG0^`xm#nG%pNk=B|^^#tkO@2v?l+2IQ3G6edj%X8-HxzX`vZ{L~8H z!ksXeVNSuP&22H~hdX0#tGQyhd~=`Sw3~|KzQ@Iq-;U#$_mt54?++$-TA)8}IqpRQ zzOujo+zNBwT3jG59;e|uoYpP~HwrhD{0}%rJ;A*A9yk7@xe(kF#IgQ7OV|pRME0;5 z{%o!kt`lxJaR;n$XxX-Z{7H+eh}+IS9)mlD(^d$>tu4iO7vz7lvXyXaa2oQhY-Rn! z*)`q}CLqrub&FSpKwa~T2HsQ{^;G4hr8z%y)o{A;&```=b)0T8G!!>i1E)_>^Km6` zT9KMKeL5=I{s9(P3z>pj0D(Av(%QJ0qzj>x#nr*R&bWrsHp6h-(%Z^Y)?8iO8|L%@ zg;7sEUi1fQ8p`8}?*HyWjzA_MD_CKDWje$H!>n+9ToZGZ%-xM^htt9<)6f)GLg!yAxkQKuA{k5xG!!yucs4I7mLowROANo`tpHMPZTfuE8X|W zcg1NTkKlA)_W}9GEUpXVWjLMEaQc#hQBPN1UZLzqwzmU_q4euahH5wkUnFw zC-QF#j5hZa?ut2mcg?8hXt*g4+;d#aH1swXjnmfp9H;NI$$DtTQM4jolJ`Dm zvKR6w`Anp~pO1klIL)`C)`VZfWv_G2H@h%#hM$48)|Ndm5sp-GslTvw&zaMR36nq5W$qPRMJqeo+^Z^!J5JmjoVN69xFv9c{JaqM zzobqPe*#aEUtob#aKSdiMK(jdU4~fPVsle*C;5Ev8)cKsCE!lsG%UesmrTRyB9%`* z+2W>ahK=mj_zjaYaIaWlhtnyYh?`<=wZ+ZEO*Oa1+$`Jx+y% zGl!QKaYe`fI+Jses^LWfQq9f7rCSBp+YIO9GR?hjaSL!e&3#~Qq0R4a=C{$@B3u~D z(D0$Y|7ACN79$^~a3T3mEHKFmU%{oD(|)_b+pO;OKgDUYzK+vdukQ7?THI2ccB$_5 zKQouicyqgH-Dd6$-T%Fh)V=w3laBl*b34o}!+mP*b8~OvGR%E})24n4rv;aQOpAM) zyq4ily3^b{i(89(+GhBpxplY( zxH6cHe)<+$LPPqIXL6|6!Axk>%~}^N6`LTt#!gn)?W+h13AOW0H72=4CBuEz)D= zJ|UlK?l?|cH66FvT(07D{(Xvk)lP|%RyYIqslGE|IAu<^Y8mEEo7;-pq*I6?&)jFY z&E|f?X~El6)?B{DZO3`HnLKN92Xec)bLKwB?J)Pdxi4^En)}1tm$*!G=gno}cH+WG zb*H4t>?FVIcAVF9(c~^TZX`lf}z$VcOv zkd`#JpZv2nzf$IY#`QK=+FTAU(ww)9$zPDokxfaC50R;9fv3pp+*m%RA~o(uU?PkoO}lhV&kD-ai?6oEw2bq>W5o zB;V6qV{-+#$8dv5o0z*q{vq58q)pBJMgBYsjwQX<+~4F2a2lGKE5t=qVE?~JCeq|( z^0ldbOx%YiG_6*9tcp z_mH__USt#GOUU*ni{tLc#pCpQ4~eG)?rxk0{oW(zkNbo*(V*XZQvb@Yi&LHqfD_jn@$O3y>;ZWQXbNZ)m!ae12Z&}%AEUp6X zZHs%>;ws|avAAC5!u0#wN|U{Pm2vtcJd2U%&C%M{GsYIu*IZTH zSln#l`kAYS>y4X->u;_)u8*AVzXq7BfoyFv9B8g4E)2JTxEOP_a8=kb#t-i!f`dsy@>PbQdk$M>+)h|IMf1Z5nOZ`)h+ihb9dqH;~p*P zCxVxjI1M8$u0HM=+*;yBnY$a;+uUd?+n^Zx|9iWyi?_gr1a3Ar#@sz}+{1my49DWM zyhb>^Uuc*{%BZI?FZ!lKw_`J`EKQh;zOvEnSfaV6xIIO8QtbbkCTZC0`O0puW|?b- zTa43f)@+=%RwV9ai<@V0&2dxB%{NDjXwNir3(Vbzd&%5FIh}tkk@uKfWP$hN8kt*c zt`)8dPWN(2=33**<37hN!7-{f*Pa5qlUizVG^{Rqhh?%S8K;{PT3GY@F9kKcWrf=! z^%kq)9h}y<9qs{hD{Y1k;T|;iu9a<%)4Sv@SZ(fMTvv;G&&qbdb-V4no)nWb<@P*o zfosim!u7yuhU;*uOlREF7PrCTqHt?%jo&x-2<}yLADHWc8*6T3kz@OJMUFH1p#?sQ zn_zB}xyNuXo7-%z8%`fQHKdt)99MMFAo<8#cbuP9`eSoX;LiB&|2{!#pY%YcaC^0v z;H?(;ByOqQa(!m5CoTrJpSW%2p2F$QM|V5h%{`6N&5ec~=AOab z=zib}bI;;_ws*xZ&GoW4z0YTwquo63y+zCL>@?R0cgD)@GWVR7)jR7~x1HDXJhB;u z_0E-LfqlvAqm|x3zBbp7{3hb`zOWld;_1)JW^>dd~-A`A^AI-f;z7%h3OX@iDv{a zGjX~w9W*zRe0!VUVVuq;?`^Q{KoGO^0K;2GhC}oAGF|Gqim(wy9IGud9N-&f) zHv{*LxpL+bar#iIA=KPVoUSJt%HvdrSvcLy=>4at;h3h+Mvf(;%WfqCNj!5DXjeTo z98=s}Tm@wqs@e?a;eNM^R1J%pk1N3GN>|h7w}AX#7FW9z%h!AsBCndPV}%#tu36!5 zoHpTN+35I0rMmyyXQxCXlgR|^ z$LW-8j3e>9!OJR(Yie;0w;HF@^j@5P#9Btax5c%R&yV3qJZpHl2dCk2bMN6AnR~*@rr?_5bl&&CX)CNHUks=7 z{wXWFPWOMsO+I5Xm4EYjN-6bmr(f($Cxn(! zjTSda`+tDR50R5JXNG||)p`@|Rh%vwgK?U?*$V5L5ocx7$m=@-T{DK_NIW0$Qr6sX zi~ATCt(h>4kkk413G!K!BavEgI<7ZP7o3-@@TcUpcDmrio68_yog+`j(HIS zd4G$Wf@9S4B`e%fa1e2j&W#HsLQgEm#+! zRTg)EypDcda8~0;JO_Ev(J%L&#T_EAvPIXH+s^AbjO+%g7cx3Jx*R9-?`v;Hkms?zO+C4Ul$jBxFqr9 z@}gSHePn?r$?JYi7m|<7ogzP(I9)S7v9hPhPciqY#pU62%;-9jVeU8bI%edyc&+dm zMs(0ferAFBby$Yq-QlYAmh=krb+iRU6Ov(0^Ft^l{yPT8-m>?Pc1=60L=3%9K} z=iirPvaRsn^hP~#lGOiXAX1glQJZTn2&c;Es6A;e822Iz)&Y9TTnO$-7Odg4 zxso_-K^;4J=1Sqd0v!{->Hd$@QyP&48uBf$4C5-S{dLw{SzHL4TAT75jt$}|htuh) ztyW-hq2!aTGMCJi$7z1r8h@FqP@Mg*!dlC}O;#k|(+U@w3&VX4s_12NmB{Owpy7(S z$~ZMvP(`nrt3qCl73BUgSCxDj9WyN7bIl~(nTz&`*63ez)y-8Py>6}s`Q4yO-N301 zHOXg#rrol*TI9b4O;ew6R^F5P$?evOAE*f=gG&i2S3Tp4ox%P5yy}*$ZpgD?4$K90 zL0$m*Bg1$Y0&y@D)D?L+jDV4#Zpfoy5DbPFAQt*UKNtW5p*Ot7H+<2g&q6Oa6UL^< z=hpr#oC9@V{sYd#1^5#R;4e^@arYLk>eMJ zKpYH(Vd}O#oXiLq3Gpxn#=Jm;No|(YMoDdw#=&^-PT)oDj3&V=@G86plfesW_M>J#(_jXug-$&x z=>c`tEe<8X9|9l{f*=?|pd^%oP^bVEAq*e!nN>bR>uxqIPzP+#01L+|C%Pv$4s z4?lxCO-69qIL(je>8~ixPl=BNPtq5UI z3Dg(13RHz^Ztw2k7GCvwRWDcdYE>`RMw}<=x!MHOG4)f_lNqF@u}y}Ea9fG%u~ZlH#WkF+sYm86h=BUg5bl9S5DHhgZm1XI zb+`e$;Tuq=L$wb-6r8a$JGi``SDpOSr%!$O)Mrn9^wcNsFZde@LH+Trz)euwYd$pNP!*~{b*KR~UGi7KcYE(9+W;EEJx~_P zL1`!h*SW6UfSYg&)KAY3ii18YhXRGAHYWV5Y%t)BS;7J*P93P zb#Ycdy~U6OuY>yIt%IjH`JRUN$fv+sSPAdKJD~n}`h)datgl)jC6QkO8+linPr3jW z!>81FH1mB4)D3S8^o187HjIn&5Hb(IgU|-rLI;R~N1zMThlX$uG=j#^1e!uKh=dlf zg#~^IJ0T17-Mzl6*LU;FK)-V6Cl>vDG8d-kds_WCpdauCfPSCT?{WJ5Z7}FJH~q$@ z-_(Y{!=T@3JA!_P?F^4V7q}1f3w0}a5ZXXP7YssOQ)@$PINjzYng& zBMrlT2)@@lm8naFHD7LFdfui zNPU6S_eWiQx5Vya!WZ8q9!1m>`V9>P^%d#@ zDYzYMsxKiE^!sHev_pxzjt z61S9e8h9(QOQ(`afDBH|>QuA_yvquy1)Utm8Ek{k;Y-MbuV6L22g5iwpXGRa2Etj+8@dB_oV*`$W!MB$2pR<=;5Ymk$cM9V z4r1_wK;KI}N!krs!|zPH2!FxfPzaad3S5PM-~`-HtRH2I!CuC{*B$T~&Um#kRGUJz z7gSFQH4!WTH4FS33gHTz?4_+5uJT&h;EX3vqTZAuy|vK9XsY=cg0sVHqN z=mPKJl3@vWW7rI@u&*9sGd{q+DNfCfF|*^af=kOkae;5Tl;2C%fy6FzMJDDfoMGC6}ggQK^gM&IWr~|_YQ2&HcFdAM0 z^-UND6X0c-2(N+qCrkk^Oa=8#P+x@UFar`{Ca5pMY?!0Y5bA?44;F&@6eNNA5xfpd zL0tvZHNe3#coW`&<*)))g1QN;hBdGbQei!)3&0>a&q4b<>9f!qT7z2sH&abtWK$1; zisWDCs1G0w0=2}yNx@s-A@2ujVc(6TSIq;|R5Xx$FsMO>aBvVHv4Bl8?)GA&L-amyMpoZ>h*uD$Cf)^kb)QG(jbb@cW;OzmmFVBQ|Fdr7c zBA5X)K`pe$fLdTr;5d7MRE?)wLx3*n*N{KKemDS!;4mBkHIzOMr{GiA0$X7ld;yuT z4%Wj5kOGTfJ}lvYo29IIm`BP{rC~GL5(p-aM<)>Z@kH6-RN@8;pT&3s zs7ZxtLpan`o()+Ss=+SK@~_})*bU#p9%#jJJ(x5G27nrc9)=@uR42%B$c5AJCtQS| zI3D-IMNmV_%TSlX^+D|^)qc_+)Wq=+9EM-vI6TbpejliH;YZBtWB3F%LmJe^*8#OE z^!~+5U!@AoJ(a;O}zzq(TbC3nQAsfzsTAF1X*1%))E~s;7K42R*T?73e8l4?-KzL$}(49<^N#d2_mN?sr!CBakuK*{ zaHE?4a>2R*rKsvhq@RF;boODGt9d%OUiiOMyBKOPD;^7*7~c$^z(QE$VovjAp*9tcDq3B(l)>fcpc`zR7ikHFb>8*6m*65@DSV&4WSVp6`)S|FKlq0Pn+xun9K9$B+(lVIHW{oLXML2KwfG7c*YMq2U`Z$+^^)U80Ao z=pib4KuQ-5_pb0LJOvFQ9O~*raJBNT%vnAuRz;KpJ^JG^`~jNTS<(}r2JSuBpN~Ql zXbOIyr*qWh{EC3pkOF%4#YXrDqM;w~Tnf)E&MQCCVo-y9UK;c$iT!$;&SBy&a2WL1 z2t6i3kA*k`dhEmZ@B`>64ti?CN_Y(>!%Hv{M!`O|P$$yP5CWy3Ea*WB^&kQgSnzaM z%m(n1_R}-#9wDQL9;C22^`q&#pkH2n`|BE;TJ4xda3EF%Juav$=;1gQLErvA2ThFbal3GiVEX5I}o)5HdO7tAP61 zt6P07s@Iu~8A`r5)jvt~Pk~x2s+)W^sCWB!uou*?L%rB55v!h0Dqjsg<_xJ8z)q;j z+j|fJb=a%wiLRdK+d)0cQ(*=84z=N&;ZvB&GR~0*juf@$Q|Iv4U@{D4L#w~H(#J`k z0Cl@k_bIhnod*3tZN#5~?rJ#Zo4L9=_=1m8;23Dn>KEs`K;5OQLN;y$dvQDIQgEP3 zskNHYMsWLBXCa&mPeVx#=U{l0yl+}4D_)*|;S8?aVGL)%SeOLrD!d3*!F!-yxPu`U z{$v&xL1#%c)%`*X!hOSdn~Eb#cuiMw{*)_Tw86 z30v`#;5AUs(}C~;#6bkHiq~R4AvO*)uD+hFEMLD2`?3x@xjd+I=bZ%1xlIlNsRKE&pHB#}YdZCg`gSZGUxvj6tZ|<6w9adcsri2s8tA zYrF>Y3SNLX=nr?Ugs(#CPIr@ieG5Ds$$n4_ig)Iv1o%S$1VRu5LkN_F zQcxPoKv^gUp->(wKt)%0F1VYw0cYMhHsT-f9cS8ojCTTcaC;2YsZE{O)M-r}($v>X zeaoVuIkbQWp)UB&PMwLznVg15dw93=`-3+-o$WrYeN%yD>p)Pd13@RM`a0bW4LG^)BCP>spg5>sY&5CL zD(*PrI`Mt;tfzw?xRMlINb<;Ef~K5j^ri9^b)NDtq7GB)AEo|KkHJH5oH(wHIa*)S;d_K6Q_s(6fy{gT7AG<=kM(60A=clIq-~1fnUxkVA z261nKcIk^S1fBu)7SR#mg>N{edY0igjUHrt3s$3@s_fg!F7`t3EN^`d**lLkrO!Az)QUca zbRayZBd2nN@9ijqNn1b{_)VZj^BZ9;taIHj23HRqM^?4=_0>7X)S#xO)Ius zfAHolfLhTU0ySXy71TiG7^ne?+MDEp+KvRVaf0Csu8C@i zp~mgA;B{CU=yA0Rg4g#v&#owdzo8JWfj0em>Z{$SO4ec~s=KzJ+5;=~BR$8~^KDgK z1=4UIxvH1=#Fw4X?ox0ozq-Y_FkWYtYgzs}NQF(X84j`&4~J#E@mKI#Kfl0?c7?%T z_?0|pttXZ}7UJFwDp$wrsmqN~ZKw$4Ar#7iZn{cANzl#H32GQb+KrQCFE#uY^h9Dk zsdza&4DG?obUlf_B{T$@N_k3<`a^vv4ikxajLr0DU@xvOWZorc9hVLLyu&olD)R3_ z77JYoD_{x}UIsO#Qxm&!Fc!vuK6(vt5^kzqUaJ*ySC~o+fdSwv@go0_8&W;=zh^weMb!#v5hm?h zmgcW{4|Qp^Lh3ctMMmx2{*RJ4U+B|C;Wr2m|G$N54dUS?*P(Vuz0yO;J`ST{l#8z& zGCE8({-4^C|DQTk_8Z|!*9p1T-^$kssqKHeTw0xwdcpshb5fm<>UT`x-&H2F&R*>~ zwbGglufl8aisj{e`7-P<-97dKH5=Z^j!>(uXUKPkkBI#c)U~J$<8@#v<2rg&R_BA- zNc+Q0TyfItC3tu9BXbLJ1OA0z#;=k738&!{oP=CZL#pF&7*qi@&QvcURpcP<0Q>}7 z;A7Yfs@Uhmq>*ld1ssv8=m)T@L_JPzGK*mmsP@xIby=CiOsA2b>O$*=RA`q#b`Hza zw;ywr2emky1#c0q7Kt-pCLE^d0@C>!XWBd$!z{e7Gx`X#NFr5_rzNCXB?oW7`>+Al zgH|b(v_J8!VI6t>r1Bm#W?Vm*cP3p$`Y!y!{8o}Khj-vj(6^IslfDHDi}57;6=bF} z;}*~y8o@MB0p%M*BCKY70_po~EB%NyU+VxbV@3x-H6ua)v8XQ9^>H?#?#?l zLO&(VfcDH{E9pMVe@*&1Jb>Ru`WY-Izk_r;DE$#S;C>+e4!!}E%Yt@zcA?j^lM&TZ zSI11!FX0Q&j28kIq5mng3$OK=hyRMa)s1AJwC&Ntor-xK~j_#X;i zg)49w3gK_~3obzcT!jDSn(%*I5>zoAGuJ`sty{Oew{DuyHN)gBPSqWbmd0(8$g%GO?na-YVpl0p*MNe1Z^12hP0HL5?T*IIoR0Ope_f3;4 zZ{y1AR8uMxqpO(iY&BE;kl~B{-{yDcG_Pi$ZxS>U<*S1)K;x>&o#VO-mD3$*4bZ}T zWqp+{S~K%nu{$fFW!3smnYu+Y)7t2K*F`}K)rW|1P{)e8F0ujFsYphf!M&i4Kuw@A zGy-)XY6uNL-=^0GeKNZX+QUQ87JQe+wj4g~7;j42iL@ikVgo)*+5z-Fr|odZ2IY5D zgl|J=rJe@uvB#k+_*POI=rPd7coOuBuvWSoXvKSg_N+GG6QEy>wIQQG8&dQ1ZFt4q zt_a8Jom=&PTd)?Wg=rz0xo?J=nQu+B09DvmSzkp}&R3~N$?HO_SXEkSIUT3kJDSm* zTS7DU&BV8cz8U!{po(eBX{#yTw-tSrP`UrC>3@#lJD1~CVc(|l9fNmnTHivoDW8I# zzzuEDW#GT}r>_FO3aNtHVy9SZ9g2Df&{?eav}f_l)v5GNX7&yvx+FY9nnL;(X>aHQ zYC1iNv@fV(`17RCK@E;!jVF^|3jIN`Z;~zp2WrplEAs~9NstI?wmpM%x;mApv9}t7 z4@IaY`!v$2pk1Q|=2J)~!&rC?27}sqze@TFjD|@t0mi`?h=-S8B#eOJFbv{gAoPQx z3g5?!)L>kdP>b~eOwd{kAys8!NMD3lcmcHVL2hrOkjhOIqEKIP)nE0}EPNZ|f2O(6 z#vv7o4fS`&nuJvHYI|xss%^VgU8~^R&hoyzwz+Ry+fkc9(^ONX+K#H__&drd?q$X` z?}?;E?d-{GnTlmuZd>D!npG35kP2u<+LkrhsiRy0b$vkbGePt4?PE2&*K&RP^>wEG zAN$m`YZ6kq&z*a4F=49uBKUvXdkdMay|)17!#tP^b6_^if`M*hlaMa$e6{m!Db@79 z^Z&hdbTBO;Zjg&?%H6J3>dqp*?V#gMHPtlbH5+Yk9hY*7(=qvf%OBR;$@mxWxz4=z$gF{PK@%0E;MI(;0*(9pHpVxZ*DdyE2e zkXO9sm-1iJK45&U&OBcQ?kxB|6H{T`9fdZKUk|$VpqS@F@*BZd!B5G50w00ql?Ix& znN$_}*!-Ptg*L5k2I&^y+f=@S|J%&8Rz9yd-#p^DCE3onwv2Bp?6_mPHvN~Nt*tU% z-$F9)kUr-N(u}@h`Y!Ml_N|?!DNdEv3TUQxmiNW^+;YBNcn98wnfg^mPtDLHHb%g3 z@O`WrM!q*Z13e)Un!&yB7Yq6g^k}9$($nw*?1itP3|pZu2k3X?cY{9O>><^a{aeU} z)l_)B_Ww7GY-dENCg^6X3Tb($0HII`!k`>fgtG8G?4SZak)DJfAs3FrF*phb;TJdr zKZ9bIvW51M>dLcU``;I&i8-LQ5c(Lh5e_i^D;$QM_#>nzU?tO(o`U+U?IqFzxCrX@ z|0n5r_yc~2b8rUK>uL#Q&yvpvE#Gs27tKsGW%D+MMsSU3_mJvM@jBD$lP?d&zz;mI zfQ4UW+H;IvA-xQLLm$QqNi~lfq$+<66sKwbkpEZbzh-`mk(;28%4$)sAFRs3JJhx` zsS1}OEeYz*6$JjEh3_CnI+YD1RV6eY0Q!U>r}1EzrS8<~R#g`CIbUnr z5VUYr%(vE67}r{B;gvz%vwRiM+N%qf)=ZVr7O23u*76!?t5jrMahjjLr>_eUaF>^t zdJqnEpf;%CdrhbT)j_*OKRc+9rr!;|P2PaK7OI7*(!K?%GEEr2Gws3n6VM$Vhi=fP zG@GysnMa@m`6$xP&C97{cs<&faWggzL47ddvw}; zAr)%QW83P}aaX2125(ZmM@jWWi8U^lNUv)2B+MX8-();Z{wYXh?eq;tFY<>e_AF_% zp>dsFgBkAwgWx?}4C!+)5c>rp~Q&z1F(nFQt7 z0uxE~?4T(&{u=2k(3u6jN;(-5VFo0C{M0+#v^%_}DQ3FGY5dOVbMQr9Rm>tY8{UHB zC2p^o(?klqL7EJok=OCE6c)oGc!Sv9td%au3mIPk^Pw%f#`mdA-+ax(>8oZ{;0R^r zGM-5OZSZOnYN0wHUuVJ+I6!a`=|R#wruQS&4E1%}oA_m*hnndODOwArse=E1R^S=R z-mwyu{`a+TNv%RE4E?`Vd?oYH8{i7k_eho3x0ao$gYv!`op-69ZZlRB_cFc)G=WC2 z7MG&(u*Q{c9a7o*E!m%7AN&a4!~3uozJopR4SWs1Ko)!jyI===0UIC{*0IUfldAlF z*bR!=4r%ZytS3hO!#^Sak=~OxlKB7>@F8r5O|X#l;j3HLi`Pddq2D zeH&ZlG~G8%d9AamrM&pTQeUj*VaxLt?SMOjmQlB#3DBO>+jtIn&0I&wBYcmly{jj{ z-FYO`Vf@Y=qHUxKt0HP>dWh7wgCdyke~tonf^V%45TuG6glZI0D^)#Kt^)jy`x7+N zl8lE!SqOn(IK?zS(wn45;4q8?#UCR*3di9FoPb|#{Fs-FZ=wQn;a||{eUh{QwD5Cq z7Bs^%q`yHP=<%akxE6RC^jTyysZeY_sjkdr%v~haif9Yzd%bW4T|oF|xRis}SNlKk z=Ur|aK0jS0dky{pmAgbLr+WTHS_pr`6}SxYzUjX7I(`F-yK{qR9X)KgTcoO!^2KaC zh_pKE#~$NxIE(~B2~aZtf6FUXg)}4I#!>Got+e)(_Ks$xRJ*>%S-cJ>#i}B{HT1=5 zzFGktPIA>jdsLOsJZdq1t1%hXP>(~b2l^4FA?e)^0e6Akl+~I#+%0d%)m35osY&-9 z4ah4@;q~Dys-gMoO-P?ybzbSD)H&3Qyf&oX|L-N=1avWMOsb24E`T~^bgFD7PGy=h zP1B>G6Lbvpj4GPYfsyvm4%)zj@Bp-iR-ktgE#!Xa!pu~e`^cYSfgds6f_!sOw;Ohr zCz3orN_&z(l~PPPv~;T;;`hV0OnwOdN0WaT0&G1ylP?MM4^gQWv z@D%g}?T9ByyTMeZ?}Q%Y9|!$z*qu}d*%h`;G8KD*@hrwwuFwC|-gk#Zl{Ebh2TaTe zh$MAT%%X@e;)r396%+%DxMo)o6DDNM5n;rP30b8S6*1?mU_eC7ikP!vR!ppG&fZ_0 zz#uET@B7^EyMJAMiaw{is=B(mx;mf1b6Y?gKu5MxZaeMeh;|4M0I`Go&NaiO?t`#5 zpc^0vz{2s^gsq|%o_hj%0D=MC0X!55LCE8y0SK2v2)-oM7qA!t_Cv_p2#dtS2*7Z_ zFu)MNdL#@+I26F+QU;D2h4(Q4R$n+mZc^RBn8z1E2ob25A6tw8Fbgmp5Dl0N;0z}r zWDQ3FSj&;D(iVV;fC&I)ddXA5sd%3P7zDy;2xkCzy2x>?N{(mdD-rUUzgd82Xlo|o zW&>gYF@QM$wh6Wa7XB_m&ioG7|7|?11S|t^y~G2U`CNo7SPGu`RQY_sJU|?P01E+2 z0ZRaj011G_fJDFw`I!YjI4!8=q1W*Ak0?q@@0nP%>08RrA0QLh?0s8NJ>VSB**PQ$TV!_ysNn#@BGZdu^^=Z ztX1a6?<^40b2q2kn4}@%@HBjT?XJJKnvh{JON<* zqX4eHBM7;ASb)O-?v+@pd9}%cY~}jTtHMKwJP6=H2@Ax+u*%rm9Y@F=$}xnjx?Nz( znQyBITVl$cnEj^XaRTx$l>~bj)!M}r+_DbmjGpU z_ZOaD0NMfG0lon^^RIv}fKPxA08V=gcmsGZzkfu?llIRD6&y}yTn?G`T@f$og(DeB z$$;NEqgjAxz+?cIZXiOjGe z04M>l1ZV(i0AFt6>xO*oka79l3cxu0%(Q&QkDnFXaF_whr0~V}xg%Ajfxv`(OpQO{ z%?xnlQp|)u^v%}{tpN%X7Km|`cMkbFBJ*H6C7y9uK#u27$&~L9@u_*vw;cZjdRaUu z0yyHCzYxwP4c=;Vv|hG5tLP#;hiz$?Fcgq-FLyn1-%t3(Xf@UFDJ z8%S3ceVH%!Pu!fnxc*r>HJ~V<5P%OVm?GqZ2_^{h9&#v#_m7DGpF63A`Y-sXmegUz zAj1MrY9Y-WYL7)}cr^&GszoUMLcl!0Y``4A6hI^(1kfA6czoKi7f1F4^Z;}RbOQtd zu7X)tgq;DbG9JWpRdnKXJa<6Y4$v0BA0erTPSFS2`328BZ@2_{e?0RI;W?;I?ljX7 z-vaME`f85Q2M}2vFFbo_hL@iKTrX=;KTYuL2WSfL1u$}B0LSw?hc`eQfUq^76@Vuv zfe70Gc=drV*t3xQ+)<9_G)34hT>rlz!W)tYBjggYFkEVW=F)K~xCF|$k<;1gnK7%7 z;dej;U>qPEFbKdI4FoWLD8d1N{(ydfH{jhDp@|7PlRkK0Cbm#n7zCLNP&OJ3cpd>5 z2^dd5x5Ok_K~ciIWO<)irZ50+WOJT*(>fzA?>lGL6LDkn;qk`gABcBE85m~*Z!+-q zFMs2Ww|-f^!62H2kOflY9)dWQId3M+OlG1Qiu6fH=Uvb-c#g&MXoOn455@CXz;Hl! zz%az~hwDZm9LZyp5qKC*o&2%Tttf$c=Pwk$pNFC+16`@0NqC+Jm;i_ZYzG}z79Ty} z$}#}*Rv6dIcz~@8%qIrGibaJ-ii_J^I-XRD8oB04q%!WNznwG?;jvwp?Gi*i%=1a1z?X* z0nDxeZ!VtW0R)&2hyyS^<8d6DI)_Sp3^L~eieqseCoMoCnnW%V59reIz7g>o0P6wk z0BZpWfYpFCfaQQ?0QN9T5hen7WW!Ej37%Wyc^UZgNj6UBJd}3G^S4M|#O6q5z)YDL zBdn5%S0G#oSj>zNHbRMy@;l%N;4ok}pd)D7qEwTh&8>Lf0^ntX%^U&}@yrYAoDYBN zb{FE3xc+y_h&vEgL&A21+W^WSk@p2Bfyftd7?6xKJ`6hvuousJ0EYmq&TOQo;Q1h6 zA7DQq6`;f&z%v(wmG)5a2DMxJ%`N zzX7}k+yL+d^Af_lAisbx6TqLbwE!D4JVQ4sJc^3uXMd1-{z zz;iPys2u0RUnaLhB#$fj3abOa9#96r*HOy@N(0#wVGV#U@c4>qRX`O$BGUM3D{tKF zgbA>at!?b!@)Mgl)C2QV|n;dnl~q2RMtl;`|A zMtgzB_Ai;+*?Vp$s@oy*MhO8s)k_osgb zFdd7o&?-2V{zqdfTBrMu%TfDRZC>gRsf5m%iKmgzu028q%^~W=ZJUj`+b1MMjN6138 z$GZ>S+sX0FhcoI4=m7`@@NM!=fR2C>ksvg~gW~2CRpqZ`MP*zn)>H$zBplxr^c>H< zJ6}&{VLARcJa>`PxIn?Es}(*@l>xQWdNTq#2LCab`*>dm%BuvGhh<2w(z$8%civ)AU2w7r?ZW5pw!y zfReTeIHT}B2rvMk;BuSsEYeNdY2e=DcO-@Z1_D9>rU0b_VaXL3hWMd?!GIxv;eb@o zk3cvQz<4YS3owS3b}+BldOV_e1abvR9fxNgtr!q)N8EBiIG)D>D$As7UW~`-{N?3H zJeS1tYyf{)U_aS*G#?rng-13=&WVdQ2`~}BzEmluA`Po$DuC6NS7jW}^a?(|E9%XQ zHyiOYWZLNnQ9_&+!2|1j7Jzlmj(~~s>U<{NWdhMpdBPIw0{%(m%!ldn7D(Y?ENnAl zX_dqQAmS4IsFaE&DkVME0{0s6ui6pH>||ag`F$sI>o;_yg}O8){DMEXJE#Nbb}u{~ z^1)MhN3{o~b;0ZWZuk@ItL{sIozJG*G zVV-4=lzN+de5`~Svjr17#302GG=*;TQ#)t};2qzdFjzz;J4~!TI@CxTIfbnHqmT+_ z!MyTe3f-qs=m3p_FmxI@twK0$8Xf7c4iQ#NBi8}yY$aW58g0T~gEc%JeR#rQ=Z1d? zCP5yqZm!rMC>2dkQz2b_U{nFdk;_fz)%fj1H^HPX5Ij(_;Ak?0Lb|AE3InFFG@87o zAxw*=OpecvrWB4ZI-L?{A*?c;UNFa|xVcsV9It*T+2u&bYO4hkWaz2`$G+1ka3C-z zPp8ySje~X#Fg3vJ_WMJ(ZR@gvAzd9;cTebb$8<_y%(UsG8K}_-XQq?)K$P>=bm}}% zvqN|~ovgwT{~CFQsSP$3IA?|yW2haFy|H5z7cap?m_b*_`uHa$Zy@o+_c&{wb6G8~O&K`dPvuJ#v}$0k=9p+=eS%%!w&b*<#3(`LW)|sC7cKc#0W^#{6Uqnp2y2avBS^N8>4MEGp$v zJZ(9TP7qda{r@hQoj*iFLx8h4eZcf_z;_)y5%S7D)R9oLE_<3q?&qzY3&fr=0luyNO0t>=eoa@>*GVvq)+?oo z`r~6g{qPaLA7$53TWr3;D`^Wbgn=t*)I_iyvywJU1UvOA`pBW2PQjC47ZSTtWmZev zir&7lc4O!$zaMftF$vt{{J-atC(ArY{{`1JYe+i1vO^`DB}1pRAB8UOkUD zcbkER7r2e)&wxqD3dqgw^R~E|us=mwCD%OU=nVX6$4uCtLaQJvMHs!E%FY6BMFu7P z2h5-fU2bMFJvq$=^I1En;cQ4Ebp;OG1rEZyz6~ykbF2O4WH>czRQ1bfwQOd3OqB5f zHugrx1BzBiJ7MKuY|r&}QY!NrIxTKB0@Eb2nuD+m!UTl1k|==V{gTK#24UwUvRHv| zND>+TKsY6doaP}+OrkBZ2=mh^c=`Ft@ziAw%A+7Dq0EF1apL`5bekoT1k?)nlny>p zVR-PhY*w+==NF+QbzISZW89xl^#4@Uf1_KnoBX+`O3@T4efChsD#YifSJD;L6p*e> z!G{ic7}cd~{P^Z2+n+a#thXR)(hnzj+hMfMP?D=I=I4ITfFST2cs+6M7*h?># z{XhkBHWVF)VXjF#HO(HF&JIW?4xYyEqZnZ5Nyc#a_|g5>6Z+mpjP*!iV@N3Dw&(ogo}G;;Y5ORP zY0m?LM}x)feIF-m8gbN!@mS`XuFCPN@>uXTrhM5)F7qLoB{m9Kvg;EQ)v^^j+ALbgO`1~G-vnE zMvR$qzCG+d7qcv9^VXQMG?hNHWZQv(d8J{h*@nK|O4J`^#5j^lZVSNu8ZfMZap1w6 zH6`u+-Wf5T$=r{s$vUNp-Gfoh}`ev6Lw{R(KmF0eepLRFB&n1f|fP5_jCR9 zd7*Q*8dHSb6bf3cEp7m@))yTbjwS0y(k27Mx^alY$|Mw=%n&ENnV43@sUc;W-l(qEuWXhfDrct7Vz>jg2XAKeL$jCTO`v2KqaGedj#po)P0O zS+Y}O?K~cJZS~Ta0+)4zB`bVfDphKUS!;C(1Fsk{6qn^E_bmC{rsBF3H~W1*@Helk zu=)8Ixh_G*?I9YL{0&`HYb`%~m_6R;T?=w{3CCy)CrfYNcvUQ|#7P)aTdpwqsQrxK<)K4DeOt$hWP+L#KlRmpk&p#Bx!id2eo zHd~gbOSL^lS=^Zy)IYhGwk;de<|wW*z#df^!*i zhOE{@@`>QZ>s!xz-GBUc>R5k~7q57z{y0OfyCLa1V6bPjG)uVKO{X=;xxpo;ogps+ zBwe>2GuRVA-+-(ypP>v$Ou-wV!G~ukoFiYJp|}m;C7hLbIZQgXAhqLK_)sjch!bju zvveOA`trcw!TVKvazxj#On{EkirEYyS!D4?wd0D8bz6MmNJ=k5iqzb z8sr_mJ}t6=g^b~e-2tRv6V>2QFY8r z)cOuWGKR%DY4}jcdf2YSg-zpS3_UhF&(Xw9>K#JnIqI?%nl!h7CZo?&+7>KgOxO$q zn0H?4q-|%7D*yHBsVtcmrTToHQZ|Eop$k&E)pr{_Y5B(-Sy?_<8Mi~ zcB||DxCOxSL-rJG`KYr0x0VkJ_(#i6*jupWqe=^~e5AngpMka@%SXPje5aIxE#HGJ zKe=s+`kZJXc`8!$p8xP(i;C}8Ptt1cN)AHXbo_|yD?&MAn}bDf+7J7X?BF|R95`K5 zlh&uH%PEda5YE!WG#HiQ$aDwb-DF2bnFrvM^Sszo^Bq`KRATz4t2ddScwnNchL+X* zA#KV~+nKqkf*(@DgDCmXhmz0vZ2e)0X}xjNMG18}EMi7Iq(Q(C<~^je0~#AjIHRk!gpp z`jhoY@}?gf9Saz&oq}aV>;ibO`^$brR)$?B*i?m8hXn`Rt<>vuVVDQ|i=?-XpOMpXb@kkusQjGT9*1v{6w z>FLku**27>;R%%Hdn6~BX-!GX`8iAau%nJA)mm-iXOgz(wk$T-XWrqFf{D%*|4~km z#hg_8a>kcVs-3hK@GV8&J=oY~;g#ZD=N93e61|9-^@yx9)UoD^Uzn)6<{FV$&VWp{ z8+~4<(JCV5%8&B3IQ6&km7<%c)U~}7bNu+!M5P7Cp^yEeFAsJsi%P90Rf8Sm=FVzJ zkJBR?ow{~MG)r-@8QMjzIz_Rx>%7KV)?O*Plc_E*D5{G|ft8Ae_`Uv0(YVvPt=}4u{M-Y~~=T$t!Aj2A0v~6}?DY0J*cEj)5%pPaZ{2O9i;se2O4u89!lD%(FqZ+>Hc}tpR`+O zTMoJ~m8b7LtF$}Oa@wBN$h{8C03IB33;zqq zZ4}oETfyRXEW~*Vl4jWhOoz;6Ap40QrEehXMMG@Dac#t0?0dir8O8{&%31(V*lp zZ=DvsBXZu>Zv#sBVU$ueRYit7>N3>ty1Jzht0Jd+=t45Dt4r$_f`*;Li%qE=>KCi5 z1&usp-zLkEur_Q&nOzozsU+>tuXUc zzZ)N2p1?VX%0sm)Wh;3HBS)ovssf$&IQKp~>TxWzKNjx9wt#je)sMfRD@K{9NxAeo zrK*IVijn>#XeD?Cz+ri&9mK+qj*O!fS42jzy1k`&eNg$a$9=&LUJzDX=2#L|~Kv z#{JjzrcNIDe3YmI(W%W-(+gneSIIoGJ$nvyj(u6wh_M?fR-j#dJfQAkRor$t1ri-s zlh=K4zba#>2ZXIipFCBXXo=h(t7*u66j&<8Kjl)@QYypV)Z-mLHI7<}T-XI6m%J@O zm}*IlAAq4$bvoAMp$F<6+LtAyR#iT1o`us)*R~+%ejf&HVoh@&s(0ws){>6f-uF5< z&U1Vj-sl$(9;j@Q!UfDYcz5ajlN(rkP6BOZYl?UT< zPxZ;Yg{IG5IR(bm-kLH%s|^MQd!5IXdau0WX6`LwpyR?RG3&T&Fb|gz$~z5A8^2=& z?@RCz1Y|!=&UX1Ao1-J9OxMXNAYEWh0Zh9V7;LOl3NbnQWNnE9+#l$9$5ZQ*3hd z6P|rmm`T;2VOrY13>`tJHG_xe!ky|`Te!FEG!AP-aQA>(8=$4|=jg;YXzA;7@Or5w zT@J#pS_zorJmpB4IcQ9`9Vt6UZ4f>1fIrnff?qk>@~3*)_fB~H3-w-MLwWN0 zOZ`zOUyV}Mi%lNzsdtRuqZdG!7 z4K@1X8${gOcIx#!s+IZB10n{WSW$JaN)fM-dw*bXRh$^T`0b6Oc56k9x~^EMka-CH zRjCCq1&IQqm8z8S8p@M72u`mk{G-~1HoZ|7)_UWdJ)7&O-EZm^s^5G)*vY3Vj@8$5mppTG%oVwt?pw{XI(q$8U0rCbBd2fbFdqxauXe6`2CV63Oudq^H>?(WHt?t1LQIUpD#&UN9Gq6ghBjA^Fc zV;*LkdLJNKga2}?@*hj8U%+K5i0zQVR$#edRPy+!9gjH$BS;LVgFVQ#2r?N646gW2 zOT12+g_y#bq9YPB8S6oACdg#E2Zb|c95A_g94-?+ZrsA&a~M-}GOG0+6v3D~J!lIs zg+m^+$P(ch56a;98y<8JIsL;f^f~q!kZ=$xXBtAm0(cK4zLPaW%kD7fQ=4}l^+u_*| z)V9ZyR+u5LX7%Wb8P3m10^8E^LK;WGxjv;A(o{FEQ(x+zZiha1j5)=~YJwXH3QH#^K@LSVA+iE=T4$7*hoOVpSKWJP z?*w!oig#6N;$czLgj|>ZpbZHlMEkm-sEW&GB!RC}*V5<|mWoA*N^V5h z-_(Xbbq9ZKU0Q1J?wDEsy@4m6vDDzOsH8C+6)sUw8(dZbVkjEA z#4pi4}fVE)mOSk>t2!fj-U#%|%+95w@UqKxB zH3<$pxS@2NR>u75`;uELw2A>*k03G*xsC8Ao5??VZF~m6CfOHPBR?9!=VMOa?lv~AmyggAaB=F zQj5-hLzOY^;ZuxS#*xb|r65i3mK0M8l%QBwO5?A62?}0wu(HTmx^;00tX7FDY>@wR zOR_Evd4V~mG$^G!bi#*U=q|q(q+nT>6kY}jeiRU=g(++)14}I&NGa~fT8a|}1yT+) zNIEUjA_FP3H45-4P_nKu-Zk#luGv-%apb{Tk=C>bth8aRrS?*!QE2oYr_^4+Ku^jw zKdv>M0fr!B3i3N?9U+J!RUp5}l_ykfLz5j*6xq7zj3X8*CAs{Cs5aEFtj1p)P){$b zaTkuZrPQ)U`4ys~TBIfThRw5A+ffpi2Mhv(aql@s12 zaWds*smoQynDP)$RupY256ytX{qo=}w=Qz40F1XC$iD*EOSV;tA}eTWYaKdC!;l&M zYuf)2zvPxtce2K%Kzki{B~ay`d#FA({$|gok}+}Q6T;6rk+vd?;wvzC5VFvG=ZK{e~aO(LkLhUi|V3+r7ShX?rrdR$2n3xH(+!un#jpf2b^ z34THfSM}Uu*Y^Y^OwU96YY1%sE#GFiT_0u1s;P+*#)eQ2R}^$=2*q(IH)3rZ*zhXd z+oz`Ye23~wu?W&~!O9T&%9xu%NLLHtz7PuG@I(m3*Mb%2LoeQexol&I=uBIyjUgz+ewpWXj!c*PB1*^)7ZO;Ej3MYaK*d z6iQucLlYZ9X+&-CObV6O`g?iZ@~)?GFjW?nX-GY^UpaTWR!`Gc>pVtM zc$rIM+&YZ*a50k_AQtRyj-enJr{Fx6M%73Dvcbzn>#xYCEfp?tusZ)W$1vNGidi7aels8bg2S5utFQ;hsKdAR$_hS>Ju-$RRji)T8eI#R)X}-B`@3p@l zXXU{$L9c%yg%5jF{4%0c4gFnTnJdcmaXh*FjFxK_CAICKdfU4GKI!5kV6a!iYFddX z3I>MW5g064NRLB@Z$_56Eb~C6Rh4O{UT-@#ZvSQ;_wc36`DnkhM>F z3s3fyTam(Ji7TOtDps`fYAMsAKJyLxw8w$T3Of+~w7c0#za(JtFg8z{M2455N#6q9 z$t@uBp5c&fryoYw`{^T)W&a^HI0stP0wsABO}kpadHm4+P=?%sEB2=-l0sXeD}{|M zYl++nPnY(_dd!Tfb1t*Hv~eL01sribu_bIunvm(Jp+9m}3{6>PiRMUoJh^rTrTN2U zZjGi9zo5k^Gr6n3V8*D_l2rf*lqyx+ni4AYK06?Hj_E*00$|Is5Xw+Usb}q-*-{-i zZ-_oO<4Md;S+giTX13c}!36VGKlulu==lss*dIelfoLaEyj@&t4B(x8$+I=$Nakf|L?pvDx2znxfIkE z45j|L6wPU?8Lyo-Pa62w+FI#g$v*1_104rs*ec`ak!w51z7ZH~iiv0U3_5EOHcQ07 z&LNHrAcY5b&I`6U*YY%JAg6%#%sdJQtq?^N*G^;54#QZDZNJN5m+VsGss;cPme2ON zVLk7I-NFP0MWoWr9|aa>OlPV3t5G{cR&-h9s5ct4H#7SBC}U z)Dd$094~Ff#+uaf@BiYl*uCS!yNg>%6=^7;wZhkxMk0@CaMu0;i-;E`Xx@m=oFP9D-xYA20{_TFMaRS}AdxvfvG zd)Up~#-zHKF$UfVWYHN}mrf8=__mT^-_ms5+P3Rn8!_r3g%@LQ4(#-7@`Q%njVVD1 z)CIKKp}^qXBKJStGh7aAi!x%&NT8U`@K&pV!A<7;$R#b?rw@BIe?EYANHFr0w# zXR8i<11J2cGGcr~3g08RRNHW8W}4qbV@l~I!U)aj5=}{4CMZF zaUumUMP?#JFy<3rvO;V4G(F%mF^79z?tftK#h20<#;mZEthxhJzf|%g9#Jvn8=OAC zyHYYwSqOz7XgMVYfl$dxiI;?Q5VDrjB4(__E1{eb2|?UF$R+Byl0uo;;FVa6k{Wh{7IHw#l{j#~n7>AB?{Lz{z1S)m1dQBbDaA?YrYWs0SloQ2SIEgL82yx7 zT5Z7+=Oh1zjAVHfo=UyuYP$Pc3gUW>SSxkN-Rpnz`{{DlDPswhI+(YXHZbM}VDf3W z-TkXu8dOntjF|skOUFRVwRCbxpq00%GP)(*JOdr3m{TjsD#<3>-0=+ZW?9oGWY5 z4`OF;rHFoLDSvIH`TYKAYjQ?E-blcqurvKJaFgbKwp4q7rtbg$8pq$h#-Z)ALmG6p zUvS@GsZCfTn7GSFP9k?u<{pPGCn(45*T-1RJmEb z?(f%uQ5UBMFw*Ic6wbH(u$o*COe}N5;|Iqh5-AT__6tg5r=-v^JM-J(9hYwovS{UZ*Hn=T51Q=z3!NvJ0V9;pC zN$CxNfzcgSLTcAbqP9a|T^*8W>JV68SQ2>+h1HEoqK-o`xt*Cr*M?$zzBq{*4@0;r ziPjAR{*ENd!n^h=IP(b8)@tkCF|)(wgR|TTXD3nca0~{9%Cq@)SMSuYF4uC5n71gu zYcg$O3{QMGp4G9-dr4+Xl{n+(jdnEU*2(l47=pJmxs8BS5(Pe50SaCr@QkZDxBNkC ztUpBXEhy*&7!e~tF@6ti8v*&=?U81$1D(tESU0x^cCh3rood5g@)(KStKioJc*SD= zT<=2{c6D@seE0$ek4K?{88b1fjvuM9u9OTkJ_cN3pM>5$z5HRn`K8_fT|OlRhG#}X zNI4{76oz7ZfzD(T8(k>V;>qL7XifD>uhL{2 z92(j$Y#2UB*VZt0v(=jSRwjK92&(#E`qu%{j6sgy4p8DGX?@==oxI1ORIcfg@!7UN zb-#O?4qPol^Nd&ovpRNUTP>grk=~ zfooozagAShFA1zNra9R1%o$^2=`NLcx)zsp!o!gR&d$b#!w&Os5-;3*|Nd|HHo!+x zl{Vv$)NK3r^?N_^c7r`)=HdxC=}wnerv4GAm+y0M5Tx63wp7FdXGHTPa={9^$8% zqCl=XO2JW(NAu&0FQ~c_M`>;pI;HYw=`JY#;o?}eqvSRLEz@vRYQu>q`dB^RV}`Fn zi7f*&tmvb(ZGt8$_sh$ z9uTTUYBCPOrW3Sh5=xkIf^tA1oH#*6C*$2Uof>l38kRj7@i$LUG{2*5r1E=cI$fEJ zC9_nt5uV7noFvT@jlaI&96e7-GXwL6KaJmP5+j~+k-S{SA(}M>JY|_EZ3^nNfF7tG zzL|K6tfpehUO@9i;rgDU4O77o&GX1q2tDEyeVhtmCqe|w1P!lFk?S;6mb7c56E3hG;OyZL;`i?D~CAq?6kTmcOQ>t(QD2bxnQ$-0|nH z9>bhb0XUw?-XEnnHywH6!xe>Rpkw*8gTiKj?ST}UIs@ao>gOcIhLwG_|KgQO^#t65 z(1{k%;vBsIrnUz#DxoxM9d91HxUI=sBgW)&lr|IYru|HfwfRb*ahEQWanHtHT~OX7 zpd9;9{5ffpP_wtkv4%=`xO}6i>qe7J-E8@rz=K`QkUq=9Q0HlXJb-W{Svvwpnx0a zQHvO4?RP0TB1VHxd=;F7M6VOlFOyj;TJO2bQo9LrxlpFhypKxn0l!n}3jGQULCG;8 z7CSv#uSs1=^{*`||GwNBD_Y8(mDFog;SWuwHnES?Ywns8eyeff$QS|Vl12R}Ul-%8 zzbbQ4@0;-fXYP*e=62EyoiZ%LsLEZ}X%;Ye!TiQth;Z~eS)cfr$;!tNpbe!tN%<(JN3g-T*w&!VrO z)n)^O2O1md9By=QUeY%i1JxyQ7yGJlS>#Vp_@G-9LJ%N3i{c4IDRf)Pc_eL}P7h3;`LBFwm~A-KB*2=nS{sBc}x* z-+zz7dBZw%0ah|k+)GYbpm~OaM)#A~EyRQVH+*r0{d!i`{>AHc`|9zRN8GVIrc?ds z8!%D|z5$c57zO{)H((@;_50!ypw%=m=h3ZO9NZS;1pk@iQQfRSkN37AmOYJc;f5Tlkchh9okQ&rY7gZ|7P{r+ zhHKStsoKF>c!Z0-KQo8C4uIln4y7hSzPrHWao5KYIWc}K#__(CjQM8{y-b8FU;Za; zxeR-%whZ^5)0V=hYP=w;W$22f+;I>FaV>>%LcHSb_X4LZl^=($;Njnm+BtcTPBeI29aL;7>17#tKc+e}I;>5|VxY zdCCx>)mxgn3ccd%w^A1-O zNg52FbD(pPG$(9u9ehVq*WkmB(rrFldbLJlD>V2>=4&ygwfICXYe8P_6E$6{(be_% zBrTZsxBsA`ulAUWDDI^bQmR7X3m$yf(m?;3_wQxLWB4S{=CvAk(-nBQw^rk9uAHv^ z?v`WZZjF5-C8hFn>5`h;?2fYnFWettWm568G(!wP$Q8SA*VJMrVb0N3CLW04S;ySZ z0xejlnNwL|Qt;vJm0tvEwO-@n_3x+!pW<#VT?y8@e3jNqPbOZTVHtQtS{)wItD|M$m}R;gQgi@`pnpXk<`D-@qcsPJl`c|(+=MR+P_g_FW?6C?ai>( zf-f{HmyhL}$?}C}rAQ%4Y0TVJ(v@Kyldb+DVf0KIt!!DKg{}s}*H|&J> zUf}Q@@Y4jm?>TZ^qlLfN>duNONb|t-k2Y+E8&Jgk4VdhXm;Q8mXoh_cy@H7^TT8c7 z3!|O!ZNXYwV0O49NImf&3uQ-Tk7{h>i{9_9svW7>HGI1F^A=5MQ<=t|+_vJ434htD z>8e(4)XK@u6w}wdsFG|Sw+$WvrmWqDhH}q@^xH5=M8$^Vy-;<*RHde~$1#nPbYi?g zi&iQ%0Ds}6K=rpvREF&uC+${KQ*k-kGVM~Y*4rjaXAH&h;1N?w*^U}}0t_A=?X3Uy zR;_hScp@+Rw?bz00vLK1GgI+Hv^ir9)nEOw^rjKxSETT+N4JCXn?ACygk=KIikoaB z&B$v9Xy4$1J9EFZW&Ts2>Qk$U3a-t5b~} zx;Th-S8X$+Lpw2eR-CVI5?T{R`(u*WXUk`@dL*MVrWK-yWSrN5ub{zuG&bchi!WW+ zR2*@h@asi)x~5`9QS?tpkz2<Ux^(Fb;d(3mK;^K9VuMeDjhvbJKnCMkyFs3 z6iHEVNm5&?nTknrhB^7C!a6U5l1JQIoehnlv%VHQomeIjVnM)5m74&fxUEkU30UR3d^6p>_ZN3n-A^K)6q z9jn4$UkSg0#G7+(O$PZ`44hFKrSrt~d=F1m!CmiekB4{^nJSy z(N-*p9s`(*Bg!U+KZ&rwN#(Qkk?}TR25Gt zpFV$bugRxQK2Q)hCbYfvwq&@1v9ZqyO|9HKWPhLk2(mH~*P7UwipvEjez9#;rS8ku zV8=s9uq$ClUorO+v5u+* z{M;EUH)K?Quj$|V@fsOR4CRhN3Ofd&P0Y{{KPB%#3bN*u3HGGTK&D54!K?q_oqW5_ zySIOyh#|VkKO86!82W-I&^H{Ud|j43`s2l?aoj-Vd@Gltgba;up`=o#sy5OFxea~gi<>%!#sr!_AG zo2U5UH5W))Y}~>3p$q@OnZhhBeLknDFUa-6Cxc!&Qs7l^`RYia=W+i{{4@%QU%ufU zD%XM)!zxuy8gXnHdflT&{BM|Rh&qSQl?^M`raXX&sxW{u>>3O%$a&64c;M2Z1&?8S(^0a~=7`WUDu=XIfmjAv1;7dN2H7>bj|9{^A9H`e7w05c5 zae3&wI`!uWJSgf>kW7yQwKFXk+QbO-+PwwgR=t(tH&@8>q!C#G8+& z{v39_M$rf>bj9i%dxkBx?R9qFrl;p$#_V&APB7lMJJQyOP-9ZJxYe3xbMVfM+w$uC zDWBp_?n}Hw=C?IoVt%*5fA>e~kFd|~j}re)R?naLjW$I7f^j(S;dgP~`Rl;T+sfuo z?}T(Kq!*jl%Hh{tUGMh8JInXTE@o=C@a@UXGNi(P$wBV;XWnqQr&Vt#V0@C-RvRrV<3}zmtf*2Si(l!*eT`Xikq`? { - const { deployer } = await getNamedAccounts(); - const chainId = await getChainId(); - - const ldyTokenAddress = "0x999FAF0AF2fF109938eeFE6A7BF91CA56f0D07e1"; - - // Retrieve global contracts - const globalOwner = await deployments.get("GlobalOwner"); - const globalPause = await deployments.get("GlobalPause"); - const globalBlacklist = await deployments.get("GlobalBlacklist"); - - const ONE_MONTH = 31 * 24 * 60 * 60; - const stakingDurations = [ - [0 * ONE_MONTH, 10000], // 0 month - [1 * ONE_MONTH, 40000], // 1 month - [6 * ONE_MONTH, 60000], // 6 month - [12 * ONE_MONTH, 100000], // 12 month - // [24 * ONE_MONTH, 30000], // 24 month - // [36 * ONE_MONTH, 40000], // 36 month - ]; - const stakeDurationForPerks = 12 * ONE_MONTH; - const stakeAmountForPerks = parseUnits("1000", 18); - - await deployments.deploy("LDYStaking", { - from: deployer, - log: true, - proxy: { - proxyContract: "UUPS", - execute: { - init: { - methodName: "initialize", - args: [ - globalOwner.address, - globalPause.address, - globalBlacklist.address, - ldyTokenAddress, - stakingDurations, - stakeDurationForPerks, - stakeAmountForPerks, - ], - }, - }, - }, - waitConfirmations: chainId == "31337" ? 1 : 2, - }); -}) as DeployFunction; diff --git a/contracts/hardhat/deployments/baseSepolia/APRHistory.json b/contracts/hardhat/deployments/baseSepolia/APRHistory.json index 8ea4ae68..409d970d 100644 --- a/contracts/hardhat/deployments/baseSepolia/APRHistory.json +++ b/contracts/hardhat/deployments/baseSepolia/APRHistory.json @@ -1,5 +1,5 @@ { - "address": "0x9b508ABEbB61a0C24d28A728BB45834e440e4761", + "address": "0x41B0EeF9787BB07306967c012298C70811cC70f0", "abi": [ { "inputs": [ @@ -93,28 +93,28 @@ "type": "function" } ], - "transactionHash": "0xb4110b3d892b0ae52e185893472e5f0c8c8e09e3c10c3a4a50e9b70da255d9ff", + "transactionHash": "0x5c01e4466890d8fe68d0c50ea47662017854aab04d9f76abd084117c2bb066d1", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x9b508ABEbB61a0C24d28A728BB45834e440e4761", - "transactionIndex": 4, + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x41B0EeF9787BB07306967c012298C70811cC70f0", + "transactionIndex": 2, "gasUsed": "745793", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x7b62f038483bf090399a017fb4c1f8de79081cb9e3750b80d32da4487230a423", - "transactionHash": "0xb4110b3d892b0ae52e185893472e5f0c8c8e09e3c10c3a4a50e9b70da255d9ff", + "blockHash": "0x58734a634eced66ddb0f18a1b28115a1d0c2c2a1f41325cd119cf9de7024f9ef", + "transactionHash": "0x5c01e4466890d8fe68d0c50ea47662017854aab04d9f76abd084117c2bb066d1", "logs": [], - "blockNumber": 9269436, - "cumulativeGasUsed": "2284981", + "blockNumber": 12320781, + "cumulativeGasUsed": "816514", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "15c81200c85905d33a34abc672a45266", - "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"packIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"cursorIndex\",\"type\":\"uint32\"}],\"internalType\":\"struct APRHistory.Reference\",\"name\":\"ref1\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"packIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"cursorIndex\",\"type\":\"uint32\"}],\"internalType\":\"struct APRHistory.Reference\",\"name\":\"ref2\",\"type\":\"tuple\"}],\"name\":\"eq\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"packIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"cursorIndex\",\"type\":\"uint32\"}],\"internalType\":\"struct APRHistory.Reference\",\"name\":\"ref\",\"type\":\"tuple\"}],\"name\":\"incrementReference\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"packIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"cursorIndex\",\"type\":\"uint32\"}],\"internalType\":\"struct APRHistory.Reference\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Intuition: Each checkpoint in an APR history consists of two data: - the creation timestamp - the APR at that time Given that reading and writing to storage slots are among the most costly operations in Solidity, this library provides a way to store those data in a way that minimizes the number of used storage slots. Instead of storing each checkpoint in a separate storage slot, this library facilitates the packing of up to 4 checkpoints in a single storage slot.Definitions: - Checkpoint: A record of an APR change - Pack: A collection of 4 checkpoints stored in a single storage slot - History: A dynamic array of packs - Reference: A storage pointer to a checkpoint in the APR history - CheckpointData: An in-memory representation of a checkpoint dataValue limitation: This library can accommodate APRs only up to 65.536%. This is however sufficient for APR in LToken contract, which is expected to remain below 10%.For further details, see \\\"APRHistory\\\" section of whitepaper.\",\"kind\":\"dev\",\"methods\":{\"eq(APRHistory.Reference,APRHistory.Reference)\":{\"params\":{\"ref1\":\"The first reference to compare.\",\"ref2\":\"The second reference to compare.\"},\"returns\":{\"_0\":\"Whether the two references points to the same checkpoint.\"}},\"getAPR(APRHistory.Pack[] storage)\":{\"params\":{\"self\":\"The history array to read APR from.\"},\"returns\":{\"_0\":\"The latest checkpoint's APR.\"}},\"getDataFromReference(APRHistory.Pack[] storage,APRHistory.Reference)\":{\"params\":{\"ref\":\"The reference of the checkpoint data to extract.\",\"self\":\"The APR history to extract the checkpoint from.\"},\"returns\":{\"_0\":\"The extracted checkpoint's data.\"}},\"getLatestReference(APRHistory.Pack[] storage)\":{\"params\":{\"self\":\"The history to extract the reference from.\"},\"returns\":{\"_0\":\"The reference of the latest checkpoint.\"}},\"incrementReference(APRHistory.Reference)\":{\"params\":{\"ref\":\"The reference to be incremented.\"},\"returns\":{\"_0\":\"The incremented reference.\"}},\"setAPR(APRHistory.Pack[] storage,uint16)\":{\"params\":{\"aprUD7x3\":\"The new APR in UD7x3 format.\",\"self\":\"The array of packs to write the new checkpoint to.\"}}},\"title\":\"APRHistory\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"eq(APRHistory.Reference,APRHistory.Reference)\":{\"notice\":\"Compares two checkpoints references.\"},\"getAPR(APRHistory.Pack[] storage)\":{\"notice\":\"Retrieves the APR of the latest checkpoint written in the APR history.\"},\"getDataFromReference(APRHistory.Pack[] storage,APRHistory.Reference)\":{\"notice\":\"Extracts checkpoint data from a given reference and in APR history.\"},\"getLatestReference(APRHistory.Pack[] storage)\":{\"notice\":\"Retrieves the reference to the most recently added checkpoint in the APR history.\"},\"incrementReference(APRHistory.Reference)\":{\"notice\":\"Returns the reference of the checkpoint that should come right after the referenced checkpoint in the APR history.\"},\"setAPR(APRHistory.Pack[] storage,uint16)\":{\"notice\":\"Write a new APR checkpoint at the end of the given history array.\"}},\"notice\":\"This library offers utilities to efficiently maintain the history of an on-chain APR (Annual Percentage Rate) state. Each entry in this history is called a \\\"checkpoint\\\".\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/libs/APRHistory.sol\":\"APRHistory\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/src/libs/APRHistory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n/**\\n * @title APRHistory\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This library offers utilities to efficiently maintain the history of an\\n * on-chain APR (Annual Percentage Rate) state. Each entry in this history is called\\n * a \\\"checkpoint\\\".\\n *\\n * @dev Intuition:\\n * Each checkpoint in an APR history consists of two data:\\n * - the creation timestamp\\n * - the APR at that time\\n *\\n * Given that reading and writing to storage slots are among the most costly operations\\n * in Solidity, this library provides a way to store those data in a way that minimizes\\n * the number of used storage slots.\\n *\\n * Instead of storing each checkpoint in a separate storage slot, this library\\n * facilitates the packing of up to 4 checkpoints in a single storage slot.\\n *\\n * @dev Definitions:\\n * - Checkpoint: A record of an APR change\\n * - Pack: A collection of 4 checkpoints stored in a single storage slot\\n * - History: A dynamic array of packs\\n * - Reference: A storage pointer to a checkpoint in the APR history\\n * - CheckpointData: An in-memory representation of a checkpoint data\\n *\\n * @dev Value limitation:\\n * This library can accommodate APRs only up to 65.536%. This is however sufficient for\\n * APR in LToken contract, which is expected to remain below 10%.\\n *\\n * @dev For further details, see \\\"APRHistory\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nlibrary APRHistory {\\n /**\\n * @notice Represents data of a checkpoint extracted from the on-chain history.\\n * For on-chain representation see \\\"Pack\\\" struct.\\n * @param aprUD7x3 APR in UD7x3 format (e.g., 12345 = 12.345%).\\n * @param timestamp Timestamp of the checkpoint's creation.\\n */\\n struct CheckpointData {\\n uint16 aprUD7x3; // Allows up to 65.536%\\n uint40 timestamp; // Supports dates up to 20/02/36812\\n }\\n\\n /**\\n * @notice Represents how APR checkpoints are stored on chain. Each pack can contain\\n * the data 4 checkpoints. Packs are then stored in a dynamic array (the history).\\n * @param aprsUD7x3 Array of checkpoints' APRs.\\n * @param timestamps Array of checkpoints' timestamps.\\n * @param cursor Index of the next checkpoint to be written.\\n */\\n struct Pack {\\n uint16[4] aprsUD7x3;\\n uint40[4] timestamps;\\n uint32 cursor;\\n }\\n\\n /**\\n * @notice Represents a storage pointer to a specific checkpoint in the history.\\n * @param packIndex Index of the pack the checkpoint belongs to.\\n * @param cursorIndex Index of the checkpoint in this pack (between 0 and 3).\\n */\\n struct Reference {\\n uint256 packIndex;\\n uint32 cursorIndex;\\n }\\n\\n /**\\n * @notice Compares two checkpoints references.\\n * @param ref1 The first reference to compare.\\n * @param ref2 The second reference to compare.\\n * @return Whether the two references points to the same checkpoint.\\n */\\n function eq(Reference memory ref1, Reference memory ref2) external pure returns (bool) {\\n return ref1.packIndex == ref2.packIndex && ref1.cursorIndex == ref2.cursorIndex;\\n }\\n\\n /**\\n * @notice Returns the reference of the checkpoint that should come right after the\\n * referenced checkpoint in the APR history.\\n * @param ref The reference to be incremented.\\n * @return The incremented reference.\\n */\\n function incrementReference(Reference memory ref) public pure returns (Reference memory) {\\n // Ensure cursor index of the given ref is within valid range [0, 3]\\n require(ref.cursorIndex <= 3, \\\"L1\\\");\\n\\n // If the given ref is the last slot in its pack, return ref of next pack's first slot\\n if (ref.cursorIndex == 3) return Reference(ref.packIndex + 1, 0);\\n //\\n // Else, return ref of next slot in current pack\\n else return Reference(ref.packIndex, ref.cursorIndex + 1);\\n }\\n\\n /**\\n * @notice Extracts checkpoint data from a given reference and in APR history.\\n * @param self The APR history to extract the checkpoint from.\\n * @param ref The reference of the checkpoint data to extract.\\n * @return The extracted checkpoint's data.\\n */\\n function getDataFromReference(\\n Pack[] storage self,\\n Reference memory ref\\n ) public view returns (CheckpointData memory) {\\n // Ensure cursor index of the given ref is within valid range [0, 3]\\n require(ref.cursorIndex <= 3, \\\"L2\\\");\\n\\n // Ensure pack index of the given ref exists in history\\n require(ref.packIndex < self.length, \\\"L3\\\");\\n\\n // Retrieve pack data from history\\n Pack memory pack = self[ref.packIndex];\\n\\n // Ensure cursor index of the given ref has been written\\n require(ref.cursorIndex < pack.cursor, \\\"L4\\\");\\n\\n // Build and return the checkpoint data\\n return\\n CheckpointData({\\n aprUD7x3: pack.aprsUD7x3[ref.cursorIndex],\\n timestamp: pack.timestamps[ref.cursorIndex]\\n });\\n }\\n\\n /**\\n * @notice Retrieves the reference to the most recently added checkpoint in the APR history.\\n * @param self The history to extract the reference from.\\n * @return The reference of the latest checkpoint.\\n */\\n function getLatestReference(Pack[] storage self) public view returns (Reference memory) {\\n // Ensure the given history is not empty\\n require(self.length != 0, \\\"L5\\\");\\n\\n // Retrieve latest pack's index and cursor\\n uint256 packIndex = self.length - 1;\\n uint32 packCursor = self[packIndex].cursor;\\n\\n // If this is the first pack ever, ensure it is not empty\\n if (packIndex == 0) require(packCursor != 0, \\\"L6\\\");\\n\\n // If the pack is empty, return ref of previous pack's latest slot\\n if (packCursor == 0) return Reference(packIndex - 1, 3);\\n //\\n // Else, return ref of previous slot in current pack\\n else return Reference(packIndex, packCursor - 1);\\n }\\n\\n /**\\n * @notice Appends a new empty pack to the end of the given APR history array.\\n * @param self The APR history to append an empty to.\\n */\\n function newBlankPack(Pack[] storage self) internal {\\n // If history is not empty, ensure the latest pack is full\\n require(self.length == 0 || getLatestReference(self).cursorIndex == 3, \\\"L7\\\");\\n\\n // Push a new blank pack to the history array\\n self.push(\\n Pack({\\n aprsUD7x3: [uint16(0), uint16(0), uint16(0), uint16(0)],\\n timestamps: [uint40(0), uint40(0), uint40(0), uint40(0)],\\n cursor: 0\\n })\\n );\\n }\\n\\n /**\\n * @notice Write a new APR checkpoint at the end of the given history array.\\n * @param self The array of packs to write the new checkpoint to.\\n * @param aprUD7x3 The new APR in UD7x3 format.\\n */\\n function setAPR(Pack[] storage self, uint16 aprUD7x3) external {\\n // Determine the reference where the new checkpoint should be written\\n Reference memory newRef = self.length == 0\\n ? Reference(0, 0)\\n : incrementReference(getLatestReference(self));\\n\\n // If pack to be written doesn't exist yet, push a new blank pack in history\\n if (newRef.packIndex >= self.length) newBlankPack(self);\\n\\n // Retrieve the pack where the new checkpoint will be stored\\n Pack memory pack = self[newRef.packIndex];\\n\\n // Add new checkpoint's data to the pack\\n pack.aprsUD7x3[newRef.cursorIndex] = aprUD7x3;\\n pack.timestamps[newRef.cursorIndex] = uint40(block.timestamp);\\n\\n // Increment the pack's cursor\\n pack.cursor++;\\n\\n // Write the updated pack in storage\\n self[newRef.packIndex] = pack;\\n }\\n\\n /**\\n * @notice Retrieves the APR of the latest checkpoint written in the APR history.\\n * @param self The history array to read APR from.\\n * @return The latest checkpoint's APR.\\n */\\n function getAPR(Pack[] storage self) public view returns (uint16) {\\n // Retrieve the latest checkpoint data\\n Reference memory ref = getLatestReference(self);\\n CheckpointData memory data = getDataFromReference(self, ref);\\n\\n // Return the latest checkpoint's APR\\n return data.aprUD7x3;\\n }\\n}\\n\",\"keccak256\":\"0x0b3d02a33c5e5be03cefc5192439def2efa43be664c372e83f309be34fd476b7\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x610c8561003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630704abfa146100715780634ead0c53146100aa578063593e7d88146100cd5780637c3cb8a614610106578063836b267814610119578063867c775a1461013f575b600080fd5b61008461007f366004610a63565b610161565b604080518251815260209283015163ffffffff1692810192909252015b60405180910390f35b6100bd6100b8366004610aed565b61029a565b60405190151581526020016100a1565b6100e06100db366004610b22565b6102ca565b60408051825161ffff16815260209283015164ffffffffff1692810192909252016100a1565b610084610114366004610b46565b610506565b61012c610127366004610a63565b6105cc565b60405161ffff90911681526020016100a1565b81801561014b57600080fd5b5061015f61015a366004610b62565b6105ef565b005b604080518082019091526000808252602082015281546000036101b05760405162461bcd60e51b81526020600482015260026024820152614c3560f01b60448201526064015b60405180910390fd5b81546000906101c190600190610baf565b905060008382815481106101d7576101d7610bc2565b6000918252602082206002600390920201015463ffffffff169150829003610234578063ffffffff166000036102345760405162461bcd60e51b8152602060048201526002602482015261261b60f11b60448201526064016101a7565b8063ffffffff1660000361026c57604051806040016040528060018461025a9190610baf565b81526003602090910152949350505050565b604051806040016040528083815260200160018361028a9190610bd8565b63ffffffff169052949350505050565b805182516000911480156102c15750816020015163ffffffff16836020015163ffffffff16145b90505b92915050565b60408051808201909152600080825260208201526003826020015163ffffffff16111561031e5760405162461bcd60e51b8152602060048201526002602482015261261960f11b60448201526064016101a7565b82548251106103545760405162461bcd60e51b81526020600482015260026024820152614c3360f01b60448201526064016101a7565b60008383600001518154811061036c5761036c610bc2565b600091825260209091206040805160e08101909152916003020181606081018260048282826020028201916000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161039b57505050928452505060408051608081019182905260209093019291506001840190600490826000855b82829054906101000a900464ffffffffff1664ffffffffff16815260200190600501906020826004010492830192600103820291508084116103fa575050509284525050506002919091015463ffffffff9081166020928301526040830151918601519293509081169116106104975760405162461bcd60e51b8152602060048201526002602482015261130d60f21b60448201526064016101a7565b60405180604001604052808260000151856020015163ffffffff16600481106104c2576104c2610bc2565b602002015161ffff1681526020018260200151856020015163ffffffff16600481106104f0576104f0610bc2565b602002015164ffffffffff169052949350505050565b60408051808201909152600080825260208201526003826020015163ffffffff16111561055a5760405162461bcd60e51b81526020600482015260026024820152614c3160f01b60448201526064016101a7565b816020015163ffffffff16600303610598576040518060400160405280836000015160016105889190610bfc565b8152600060209091015292915050565b604051806040016040528083600001518152602001836020015160016105be9190610c0f565b63ffffffff16905292915050565b6000806105d883610161565b905060006105e684836102ca565b51949350505050565b81546000901561060a5761060561011484610161565b61061f565b60408051808201909152600080825260208201525b83548151919250116106345761063483610824565b60008382600001518154811061064c5761064c610bc2565b600091825260209091206040805160e08101909152916003020181606081018260048282826020028201916000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161067b57505050928452505060408051608081019182905260209093019291506001840190600490826000855b82829054906101000a900464ffffffffff1664ffffffffff16815260200190600501906020826004010492830192600103820291508084116106da575050509284525050506002919091015463ffffffff9081166020928301528251918501519293508592166004811061075057610750610bc2565b602002019061ffff16908161ffff1681525050428160200151836020015163ffffffff166004811061078457610784610bc2565b64ffffffffff9092166020929092020152604081018051906107a582610c2c565b63ffffffff16905250815184548291869181106107c4576107c4610bc2565b600091825260209091208251600390920201906107e4908290600461092b565b5060208201516107fa90600183019060046109c1565b50604091909101516002909101805463ffffffff191663ffffffff90921691909117905550505050565b80541580610844575061083681610161565b6020015163ffffffff166003145b6108755760405162461bcd60e51b81526020600482015260026024820152614c3760f01b60448201526064016101a7565b6040805160e08101825260006060808301828152608080850184905260a0850184905260c085018490529084528451908101855282815260208181018490528186018490529181018390528184015292820181905283546001810185558482529290208151919260030201906108ee908290600461092b565b50602082015161090490600183019060046109c1565b50604091909101516002909101805463ffffffff191663ffffffff90921691909117905550565b6001830191839082156109b15791602002820160005b8382111561098157835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302610941565b80156109af5782816101000a81549061ffff0219169055600201602081600101049283019260010302610981565b505b506109bd929150610a4e565b5090565b6001830191839082156109b15791602002820160005b83821115610a1d57835183826101000a81548164ffffffffff021916908364ffffffffff16021790555092602001926005016020816004010492830192600103026109d7565b80156109af5782816101000a81549064ffffffffff0219169055600501602081600401049283019260010302610a1d565b5b808211156109bd5760008155600101610a4f565b600060208284031215610a7557600080fd5b5035919050565b600060408284031215610a8e57600080fd5b6040516040810181811067ffffffffffffffff82111715610abf57634e487b7160e01b600052604160045260246000fd5b60405282358152905080602083013563ffffffff81168114610ae057600080fd5b6020919091015292915050565b60008060808385031215610b0057600080fd5b610b0a8484610a7c565b9150610b198460408501610a7c565b90509250929050565b60008060608385031215610b3557600080fd5b82359150610b198460208501610a7c565b600060408284031215610b5857600080fd5b6102c18383610a7c565b60008060408385031215610b7557600080fd5b82359150602083013561ffff81168114610b8e57600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102c4576102c4610b99565b634e487b7160e01b600052603260045260246000fd5b63ffffffff828116828216039080821115610bf557610bf5610b99565b5092915050565b808201808211156102c4576102c4610b99565b63ffffffff818116838216019080821115610bf557610bf5610b99565b600063ffffffff808316818103610c4557610c45610b99565b600101939250505056fea264697066735822122037273d18074a95e25b4ee897634daa0209a4e04e6077ddaa99b1038cb31b2bc164736f6c63430008120033", - "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630704abfa146100715780634ead0c53146100aa578063593e7d88146100cd5780637c3cb8a614610106578063836b267814610119578063867c775a1461013f575b600080fd5b61008461007f366004610a63565b610161565b604080518251815260209283015163ffffffff1692810192909252015b60405180910390f35b6100bd6100b8366004610aed565b61029a565b60405190151581526020016100a1565b6100e06100db366004610b22565b6102ca565b60408051825161ffff16815260209283015164ffffffffff1692810192909252016100a1565b610084610114366004610b46565b610506565b61012c610127366004610a63565b6105cc565b60405161ffff90911681526020016100a1565b81801561014b57600080fd5b5061015f61015a366004610b62565b6105ef565b005b604080518082019091526000808252602082015281546000036101b05760405162461bcd60e51b81526020600482015260026024820152614c3560f01b60448201526064015b60405180910390fd5b81546000906101c190600190610baf565b905060008382815481106101d7576101d7610bc2565b6000918252602082206002600390920201015463ffffffff169150829003610234578063ffffffff166000036102345760405162461bcd60e51b8152602060048201526002602482015261261b60f11b60448201526064016101a7565b8063ffffffff1660000361026c57604051806040016040528060018461025a9190610baf565b81526003602090910152949350505050565b604051806040016040528083815260200160018361028a9190610bd8565b63ffffffff169052949350505050565b805182516000911480156102c15750816020015163ffffffff16836020015163ffffffff16145b90505b92915050565b60408051808201909152600080825260208201526003826020015163ffffffff16111561031e5760405162461bcd60e51b8152602060048201526002602482015261261960f11b60448201526064016101a7565b82548251106103545760405162461bcd60e51b81526020600482015260026024820152614c3360f01b60448201526064016101a7565b60008383600001518154811061036c5761036c610bc2565b600091825260209091206040805160e08101909152916003020181606081018260048282826020028201916000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161039b57505050928452505060408051608081019182905260209093019291506001840190600490826000855b82829054906101000a900464ffffffffff1664ffffffffff16815260200190600501906020826004010492830192600103820291508084116103fa575050509284525050506002919091015463ffffffff9081166020928301526040830151918601519293509081169116106104975760405162461bcd60e51b8152602060048201526002602482015261130d60f21b60448201526064016101a7565b60405180604001604052808260000151856020015163ffffffff16600481106104c2576104c2610bc2565b602002015161ffff1681526020018260200151856020015163ffffffff16600481106104f0576104f0610bc2565b602002015164ffffffffff169052949350505050565b60408051808201909152600080825260208201526003826020015163ffffffff16111561055a5760405162461bcd60e51b81526020600482015260026024820152614c3160f01b60448201526064016101a7565b816020015163ffffffff16600303610598576040518060400160405280836000015160016105889190610bfc565b8152600060209091015292915050565b604051806040016040528083600001518152602001836020015160016105be9190610c0f565b63ffffffff16905292915050565b6000806105d883610161565b905060006105e684836102ca565b51949350505050565b81546000901561060a5761060561011484610161565b61061f565b60408051808201909152600080825260208201525b83548151919250116106345761063483610824565b60008382600001518154811061064c5761064c610bc2565b600091825260209091206040805160e08101909152916003020181606081018260048282826020028201916000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161067b57505050928452505060408051608081019182905260209093019291506001840190600490826000855b82829054906101000a900464ffffffffff1664ffffffffff16815260200190600501906020826004010492830192600103820291508084116106da575050509284525050506002919091015463ffffffff9081166020928301528251918501519293508592166004811061075057610750610bc2565b602002019061ffff16908161ffff1681525050428160200151836020015163ffffffff166004811061078457610784610bc2565b64ffffffffff9092166020929092020152604081018051906107a582610c2c565b63ffffffff16905250815184548291869181106107c4576107c4610bc2565b600091825260209091208251600390920201906107e4908290600461092b565b5060208201516107fa90600183019060046109c1565b50604091909101516002909101805463ffffffff191663ffffffff90921691909117905550505050565b80541580610844575061083681610161565b6020015163ffffffff166003145b6108755760405162461bcd60e51b81526020600482015260026024820152614c3760f01b60448201526064016101a7565b6040805160e08101825260006060808301828152608080850184905260a0850184905260c085018490529084528451908101855282815260208181018490528186018490529181018390528184015292820181905283546001810185558482529290208151919260030201906108ee908290600461092b565b50602082015161090490600183019060046109c1565b50604091909101516002909101805463ffffffff191663ffffffff90921691909117905550565b6001830191839082156109b15791602002820160005b8382111561098157835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302610941565b80156109af5782816101000a81549061ffff0219169055600201602081600101049283019260010302610981565b505b506109bd929150610a4e565b5090565b6001830191839082156109b15791602002820160005b83821115610a1d57835183826101000a81548164ffffffffff021916908364ffffffffff16021790555092602001926005016020816004010492830192600103026109d7565b80156109af5782816101000a81549064ffffffffff0219169055600501602081600401049283019260010302610a1d565b5b808211156109bd5760008155600101610a4f565b600060208284031215610a7557600080fd5b5035919050565b600060408284031215610a8e57600080fd5b6040516040810181811067ffffffffffffffff82111715610abf57634e487b7160e01b600052604160045260246000fd5b60405282358152905080602083013563ffffffff81168114610ae057600080fd5b6020919091015292915050565b60008060808385031215610b0057600080fd5b610b0a8484610a7c565b9150610b198460408501610a7c565b90509250929050565b60008060608385031215610b3557600080fd5b82359150610b198460208501610a7c565b600060408284031215610b5857600080fd5b6102c18383610a7c565b60008060408385031215610b7557600080fd5b82359150602083013561ffff81168114610b8e57600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102c4576102c4610b99565b634e487b7160e01b600052603260045260246000fd5b63ffffffff828116828216039080821115610bf557610bf5610b99565b5092915050565b808201808211156102c4576102c4610b99565b63ffffffff818116838216019080821115610bf557610bf5610b99565b600063ffffffff808316818103610c4557610c45610b99565b600101939250505056fea264697066735822122037273d18074a95e25b4ee897634daa0209a4e04e6077ddaa99b1038cb31b2bc164736f6c63430008120033", + "solcInputHash": "1d9f98e9f73009a42653e1abaf15e178", + "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"packIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"cursorIndex\",\"type\":\"uint32\"}],\"internalType\":\"struct APRHistory.Reference\",\"name\":\"ref1\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"packIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"cursorIndex\",\"type\":\"uint32\"}],\"internalType\":\"struct APRHistory.Reference\",\"name\":\"ref2\",\"type\":\"tuple\"}],\"name\":\"eq\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"packIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"cursorIndex\",\"type\":\"uint32\"}],\"internalType\":\"struct APRHistory.Reference\",\"name\":\"ref\",\"type\":\"tuple\"}],\"name\":\"incrementReference\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"packIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"cursorIndex\",\"type\":\"uint32\"}],\"internalType\":\"struct APRHistory.Reference\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Intuition: Each checkpoint in an APR history consists of two data: - the creation timestamp - the APR at that time Given that reading and writing to storage slots are among the most costly operations in Solidity, this library provides a way to store those data in a way that minimizes the number of used storage slots. Instead of storing each checkpoint in a separate storage slot, this library facilitates the packing of up to 4 checkpoints in a single storage slot.Definitions: - Checkpoint: A record of an APR change - Pack: A collection of 4 checkpoints stored in a single storage slot - History: A dynamic array of packs - Reference: A storage pointer to a checkpoint in the APR history - CheckpointData: An in-memory representation of a checkpoint dataValue limitation: This library can accommodate APRs only up to 65.536%. This is however sufficient for APR in LToken contract, which is expected to remain below 10%.For further details, see \\\"APRHistory\\\" section of whitepaper.\",\"kind\":\"dev\",\"methods\":{\"eq(APRHistory.Reference,APRHistory.Reference)\":{\"params\":{\"ref1\":\"The first reference to compare.\",\"ref2\":\"The second reference to compare.\"},\"returns\":{\"_0\":\"Whether the two references points to the same checkpoint.\"}},\"getAPR(APRHistory.Pack[] storage)\":{\"params\":{\"self\":\"The history array to read APR from.\"},\"returns\":{\"_0\":\"The latest checkpoint's APR.\"}},\"getDataFromReference(APRHistory.Pack[] storage,APRHistory.Reference)\":{\"params\":{\"ref\":\"The reference of the checkpoint data to extract.\",\"self\":\"The APR history to extract the checkpoint from.\"},\"returns\":{\"_0\":\"The extracted checkpoint's data.\"}},\"getLatestReference(APRHistory.Pack[] storage)\":{\"params\":{\"self\":\"The history to extract the reference from.\"},\"returns\":{\"_0\":\"The reference of the latest checkpoint.\"}},\"incrementReference(APRHistory.Reference)\":{\"params\":{\"ref\":\"The reference to be incremented.\"},\"returns\":{\"_0\":\"The incremented reference.\"}},\"setAPR(APRHistory.Pack[] storage,uint16)\":{\"params\":{\"aprUD7x3\":\"The new APR in UD7x3 format.\",\"self\":\"The array of packs to write the new checkpoint to.\"}}},\"title\":\"APRHistory\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"eq(APRHistory.Reference,APRHistory.Reference)\":{\"notice\":\"Compares two checkpoints references.\"},\"getAPR(APRHistory.Pack[] storage)\":{\"notice\":\"Retrieves the APR of the latest checkpoint written in the APR history.\"},\"getDataFromReference(APRHistory.Pack[] storage,APRHistory.Reference)\":{\"notice\":\"Extracts checkpoint data from a given reference and in APR history.\"},\"getLatestReference(APRHistory.Pack[] storage)\":{\"notice\":\"Retrieves the reference to the most recently added checkpoint in the APR history.\"},\"incrementReference(APRHistory.Reference)\":{\"notice\":\"Returns the reference of the checkpoint that should come right after the referenced checkpoint in the APR history.\"},\"setAPR(APRHistory.Pack[] storage,uint16)\":{\"notice\":\"Write a new APR checkpoint at the end of the given history array.\"}},\"notice\":\"This library offers utilities to efficiently maintain the history of an on-chain APR (Annual Percentage Rate) state. Each entry in this history is called a \\\"checkpoint\\\".\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/libs/APRHistory.sol\":\"APRHistory\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"contracts/src/libs/APRHistory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n/**\\n * @title APRHistory\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This library offers utilities to efficiently maintain the history of an\\n * on-chain APR (Annual Percentage Rate) state. Each entry in this history is called\\n * a \\\"checkpoint\\\".\\n *\\n * @dev Intuition:\\n * Each checkpoint in an APR history consists of two data:\\n * - the creation timestamp\\n * - the APR at that time\\n *\\n * Given that reading and writing to storage slots are among the most costly operations\\n * in Solidity, this library provides a way to store those data in a way that minimizes\\n * the number of used storage slots.\\n *\\n * Instead of storing each checkpoint in a separate storage slot, this library\\n * facilitates the packing of up to 4 checkpoints in a single storage slot.\\n *\\n * @dev Definitions:\\n * - Checkpoint: A record of an APR change\\n * - Pack: A collection of 4 checkpoints stored in a single storage slot\\n * - History: A dynamic array of packs\\n * - Reference: A storage pointer to a checkpoint in the APR history\\n * - CheckpointData: An in-memory representation of a checkpoint data\\n *\\n * @dev Value limitation:\\n * This library can accommodate APRs only up to 65.536%. This is however sufficient for\\n * APR in LToken contract, which is expected to remain below 10%.\\n *\\n * @dev For further details, see \\\"APRHistory\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nlibrary APRHistory {\\n /**\\n * @notice Represents data of a checkpoint extracted from the on-chain history.\\n * For on-chain representation see \\\"Pack\\\" struct.\\n * @param aprUD7x3 APR in UD7x3 format (e.g., 12345 = 12.345%).\\n * @param timestamp Timestamp of the checkpoint's creation.\\n */\\n struct CheckpointData {\\n uint16 aprUD7x3; // Allows up to 65.536%\\n uint40 timestamp; // Supports dates up to 20/02/36812\\n }\\n\\n /**\\n * @notice Represents how APR checkpoints are stored on chain. Each pack can contain\\n * the data 4 checkpoints. Packs are then stored in a dynamic array (the history).\\n * @param aprsUD7x3 Array of checkpoints' APRs.\\n * @param timestamps Array of checkpoints' timestamps.\\n * @param cursor Index of the next checkpoint to be written.\\n */\\n struct Pack {\\n uint16[4] aprsUD7x3;\\n uint40[4] timestamps;\\n uint32 cursor;\\n }\\n\\n /**\\n * @notice Represents a storage pointer to a specific checkpoint in the history.\\n * @param packIndex Index of the pack the checkpoint belongs to.\\n * @param cursorIndex Index of the checkpoint in this pack (between 0 and 3).\\n */\\n struct Reference {\\n uint256 packIndex;\\n uint32 cursorIndex;\\n }\\n\\n /**\\n * @notice Compares two checkpoints references.\\n * @param ref1 The first reference to compare.\\n * @param ref2 The second reference to compare.\\n * @return Whether the two references points to the same checkpoint.\\n */\\n function eq(Reference memory ref1, Reference memory ref2) external pure returns (bool) {\\n return ref1.packIndex == ref2.packIndex && ref1.cursorIndex == ref2.cursorIndex;\\n }\\n\\n /**\\n * @notice Returns the reference of the checkpoint that should come right after the\\n * referenced checkpoint in the APR history.\\n * @param ref The reference to be incremented.\\n * @return The incremented reference.\\n */\\n function incrementReference(Reference memory ref) public pure returns (Reference memory) {\\n // Ensure cursor index of the given ref is within valid range [0, 3]\\n require(ref.cursorIndex <= 3, \\\"L1\\\");\\n\\n // If the given ref is the last slot in its pack, return ref of next pack's first slot\\n if (ref.cursorIndex == 3) return Reference(ref.packIndex + 1, 0);\\n //\\n // Else, return ref of next slot in current pack\\n else return Reference(ref.packIndex, ref.cursorIndex + 1);\\n }\\n\\n /**\\n * @notice Extracts checkpoint data from a given reference and in APR history.\\n * @param self The APR history to extract the checkpoint from.\\n * @param ref The reference of the checkpoint data to extract.\\n * @return The extracted checkpoint's data.\\n */\\n function getDataFromReference(\\n Pack[] storage self,\\n Reference memory ref\\n ) public view returns (CheckpointData memory) {\\n // Ensure cursor index of the given ref is within valid range [0, 3]\\n require(ref.cursorIndex <= 3, \\\"L2\\\");\\n\\n // Ensure pack index of the given ref exists in history\\n require(ref.packIndex < self.length, \\\"L3\\\");\\n\\n // Retrieve pack data from history\\n Pack memory pack = self[ref.packIndex];\\n\\n // Ensure cursor index of the given ref has been written\\n require(ref.cursorIndex < pack.cursor, \\\"L4\\\");\\n\\n // Build and return the checkpoint data\\n return\\n CheckpointData({\\n aprUD7x3: pack.aprsUD7x3[ref.cursorIndex],\\n timestamp: pack.timestamps[ref.cursorIndex]\\n });\\n }\\n\\n /**\\n * @notice Retrieves the reference to the most recently added checkpoint in the APR history.\\n * @param self The history to extract the reference from.\\n * @return The reference of the latest checkpoint.\\n */\\n function getLatestReference(Pack[] storage self) public view returns (Reference memory) {\\n // Ensure the given history is not empty\\n require(self.length != 0, \\\"L5\\\");\\n\\n // Retrieve latest pack's index and cursor\\n uint256 packIndex = self.length - 1;\\n uint32 packCursor = self[packIndex].cursor;\\n\\n // If this is the first pack ever, ensure it is not empty\\n if (packIndex == 0) require(packCursor != 0, \\\"L6\\\");\\n\\n // If the pack is empty, return ref of previous pack's latest slot\\n if (packCursor == 0) return Reference(packIndex - 1, 3);\\n //\\n // Else, return ref of previous slot in current pack\\n else return Reference(packIndex, packCursor - 1);\\n }\\n\\n /**\\n * @notice Appends a new empty pack to the end of the given APR history array.\\n * @param self The APR history to append an empty to.\\n */\\n function newBlankPack(Pack[] storage self) internal {\\n // If history is not empty, ensure the latest pack is full\\n require(self.length == 0 || getLatestReference(self).cursorIndex == 3, \\\"L7\\\");\\n\\n // Push a new blank pack to the history array\\n self.push(\\n Pack({\\n aprsUD7x3: [uint16(0), uint16(0), uint16(0), uint16(0)],\\n timestamps: [uint40(0), uint40(0), uint40(0), uint40(0)],\\n cursor: 0\\n })\\n );\\n }\\n\\n /**\\n * @notice Write a new APR checkpoint at the end of the given history array.\\n * @param self The array of packs to write the new checkpoint to.\\n * @param aprUD7x3 The new APR in UD7x3 format.\\n */\\n function setAPR(Pack[] storage self, uint16 aprUD7x3) external {\\n // Determine the reference where the new checkpoint should be written\\n Reference memory newRef = self.length == 0\\n ? Reference(0, 0)\\n : incrementReference(getLatestReference(self));\\n\\n // If pack to be written doesn't exist yet, push a new blank pack in history\\n if (newRef.packIndex >= self.length) newBlankPack(self);\\n\\n // Retrieve the pack where the new checkpoint will be stored\\n Pack memory pack = self[newRef.packIndex];\\n\\n // Add new checkpoint's data to the pack\\n pack.aprsUD7x3[newRef.cursorIndex] = aprUD7x3;\\n pack.timestamps[newRef.cursorIndex] = uint40(block.timestamp);\\n\\n // Increment the pack's cursor\\n pack.cursor++;\\n\\n // Write the updated pack in storage\\n self[newRef.packIndex] = pack;\\n }\\n\\n /**\\n * @notice Retrieves the APR of the latest checkpoint written in the APR history.\\n * @param self The history array to read APR from.\\n * @return The latest checkpoint's APR.\\n */\\n function getAPR(Pack[] storage self) public view returns (uint16) {\\n // Retrieve the latest checkpoint data\\n Reference memory ref = getLatestReference(self);\\n CheckpointData memory data = getDataFromReference(self, ref);\\n\\n // Return the latest checkpoint's APR\\n return data.aprUD7x3;\\n }\\n}\\n\",\"keccak256\":\"0x0b3d02a33c5e5be03cefc5192439def2efa43be664c372e83f309be34fd476b7\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x610c8561003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630704abfa146100715780634ead0c53146100aa578063593e7d88146100cd5780637c3cb8a614610106578063836b267814610119578063867c775a1461013f575b600080fd5b61008461007f366004610a63565b610161565b604080518251815260209283015163ffffffff1692810192909252015b60405180910390f35b6100bd6100b8366004610aed565b61029a565b60405190151581526020016100a1565b6100e06100db366004610b22565b6102ca565b60408051825161ffff16815260209283015164ffffffffff1692810192909252016100a1565b610084610114366004610b46565b610506565b61012c610127366004610a63565b6105cc565b60405161ffff90911681526020016100a1565b81801561014b57600080fd5b5061015f61015a366004610b62565b6105ef565b005b604080518082019091526000808252602082015281546000036101b05760405162461bcd60e51b81526020600482015260026024820152614c3560f01b60448201526064015b60405180910390fd5b81546000906101c190600190610baf565b905060008382815481106101d7576101d7610bc2565b6000918252602082206002600390920201015463ffffffff169150829003610234578063ffffffff166000036102345760405162461bcd60e51b8152602060048201526002602482015261261b60f11b60448201526064016101a7565b8063ffffffff1660000361026c57604051806040016040528060018461025a9190610baf565b81526003602090910152949350505050565b604051806040016040528083815260200160018361028a9190610bd8565b63ffffffff169052949350505050565b805182516000911480156102c15750816020015163ffffffff16836020015163ffffffff16145b90505b92915050565b60408051808201909152600080825260208201526003826020015163ffffffff16111561031e5760405162461bcd60e51b8152602060048201526002602482015261261960f11b60448201526064016101a7565b82548251106103545760405162461bcd60e51b81526020600482015260026024820152614c3360f01b60448201526064016101a7565b60008383600001518154811061036c5761036c610bc2565b600091825260209091206040805160e08101909152916003020181606081018260048282826020028201916000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161039b57505050928452505060408051608081019182905260209093019291506001840190600490826000855b82829054906101000a900464ffffffffff1664ffffffffff16815260200190600501906020826004010492830192600103820291508084116103fa575050509284525050506002919091015463ffffffff9081166020928301526040830151918601519293509081169116106104975760405162461bcd60e51b8152602060048201526002602482015261130d60f21b60448201526064016101a7565b60405180604001604052808260000151856020015163ffffffff16600481106104c2576104c2610bc2565b602002015161ffff1681526020018260200151856020015163ffffffff16600481106104f0576104f0610bc2565b602002015164ffffffffff169052949350505050565b60408051808201909152600080825260208201526003826020015163ffffffff16111561055a5760405162461bcd60e51b81526020600482015260026024820152614c3160f01b60448201526064016101a7565b816020015163ffffffff16600303610598576040518060400160405280836000015160016105889190610bfc565b8152600060209091015292915050565b604051806040016040528083600001518152602001836020015160016105be9190610c0f565b63ffffffff16905292915050565b6000806105d883610161565b905060006105e684836102ca565b51949350505050565b81546000901561060a5761060561011484610161565b61061f565b60408051808201909152600080825260208201525b83548151919250116106345761063483610824565b60008382600001518154811061064c5761064c610bc2565b600091825260209091206040805160e08101909152916003020181606081018260048282826020028201916000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161067b57505050928452505060408051608081019182905260209093019291506001840190600490826000855b82829054906101000a900464ffffffffff1664ffffffffff16815260200190600501906020826004010492830192600103820291508084116106da575050509284525050506002919091015463ffffffff9081166020928301528251918501519293508592166004811061075057610750610bc2565b602002019061ffff16908161ffff1681525050428160200151836020015163ffffffff166004811061078457610784610bc2565b64ffffffffff9092166020929092020152604081018051906107a582610c2c565b63ffffffff16905250815184548291869181106107c4576107c4610bc2565b600091825260209091208251600390920201906107e4908290600461092b565b5060208201516107fa90600183019060046109c1565b50604091909101516002909101805463ffffffff191663ffffffff90921691909117905550505050565b80541580610844575061083681610161565b6020015163ffffffff166003145b6108755760405162461bcd60e51b81526020600482015260026024820152614c3760f01b60448201526064016101a7565b6040805160e08101825260006060808301828152608080850184905260a0850184905260c085018490529084528451908101855282815260208181018490528186018490529181018390528184015292820181905283546001810185558482529290208151919260030201906108ee908290600461092b565b50602082015161090490600183019060046109c1565b50604091909101516002909101805463ffffffff191663ffffffff90921691909117905550565b6001830191839082156109b15791602002820160005b8382111561098157835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302610941565b80156109af5782816101000a81549061ffff0219169055600201602081600101049283019260010302610981565b505b506109bd929150610a4e565b5090565b6001830191839082156109b15791602002820160005b83821115610a1d57835183826101000a81548164ffffffffff021916908364ffffffffff16021790555092602001926005016020816004010492830192600103026109d7565b80156109af5782816101000a81549064ffffffffff0219169055600501602081600401049283019260010302610a1d565b5b808211156109bd5760008155600101610a4f565b600060208284031215610a7557600080fd5b5035919050565b600060408284031215610a8e57600080fd5b6040516040810181811067ffffffffffffffff82111715610abf57634e487b7160e01b600052604160045260246000fd5b60405282358152905080602083013563ffffffff81168114610ae057600080fd5b6020919091015292915050565b60008060808385031215610b0057600080fd5b610b0a8484610a7c565b9150610b198460408501610a7c565b90509250929050565b60008060608385031215610b3557600080fd5b82359150610b198460208501610a7c565b600060408284031215610b5857600080fd5b6102c18383610a7c565b60008060408385031215610b7557600080fd5b82359150602083013561ffff81168114610b8e57600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102c4576102c4610b99565b634e487b7160e01b600052603260045260246000fd5b63ffffffff828116828216039080821115610bf557610bf5610b99565b5092915050565b808201808211156102c4576102c4610b99565b63ffffffff818116838216019080821115610bf557610bf5610b99565b600063ffffffff808316818103610c4557610c45610b99565b600101939250505056fea2646970667358221220e445c43d8806c6b3b077d949e37503ccd71a06f50908bcb0dfd8e342dfa8b46764736f6c63430008120033", + "deployedBytecode": "0x730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c80630704abfa146100715780634ead0c53146100aa578063593e7d88146100cd5780637c3cb8a614610106578063836b267814610119578063867c775a1461013f575b600080fd5b61008461007f366004610a63565b610161565b604080518251815260209283015163ffffffff1692810192909252015b60405180910390f35b6100bd6100b8366004610aed565b61029a565b60405190151581526020016100a1565b6100e06100db366004610b22565b6102ca565b60408051825161ffff16815260209283015164ffffffffff1692810192909252016100a1565b610084610114366004610b46565b610506565b61012c610127366004610a63565b6105cc565b60405161ffff90911681526020016100a1565b81801561014b57600080fd5b5061015f61015a366004610b62565b6105ef565b005b604080518082019091526000808252602082015281546000036101b05760405162461bcd60e51b81526020600482015260026024820152614c3560f01b60448201526064015b60405180910390fd5b81546000906101c190600190610baf565b905060008382815481106101d7576101d7610bc2565b6000918252602082206002600390920201015463ffffffff169150829003610234578063ffffffff166000036102345760405162461bcd60e51b8152602060048201526002602482015261261b60f11b60448201526064016101a7565b8063ffffffff1660000361026c57604051806040016040528060018461025a9190610baf565b81526003602090910152949350505050565b604051806040016040528083815260200160018361028a9190610bd8565b63ffffffff169052949350505050565b805182516000911480156102c15750816020015163ffffffff16836020015163ffffffff16145b90505b92915050565b60408051808201909152600080825260208201526003826020015163ffffffff16111561031e5760405162461bcd60e51b8152602060048201526002602482015261261960f11b60448201526064016101a7565b82548251106103545760405162461bcd60e51b81526020600482015260026024820152614c3360f01b60448201526064016101a7565b60008383600001518154811061036c5761036c610bc2565b600091825260209091206040805160e08101909152916003020181606081018260048282826020028201916000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161039b57505050928452505060408051608081019182905260209093019291506001840190600490826000855b82829054906101000a900464ffffffffff1664ffffffffff16815260200190600501906020826004010492830192600103820291508084116103fa575050509284525050506002919091015463ffffffff9081166020928301526040830151918601519293509081169116106104975760405162461bcd60e51b8152602060048201526002602482015261130d60f21b60448201526064016101a7565b60405180604001604052808260000151856020015163ffffffff16600481106104c2576104c2610bc2565b602002015161ffff1681526020018260200151856020015163ffffffff16600481106104f0576104f0610bc2565b602002015164ffffffffff169052949350505050565b60408051808201909152600080825260208201526003826020015163ffffffff16111561055a5760405162461bcd60e51b81526020600482015260026024820152614c3160f01b60448201526064016101a7565b816020015163ffffffff16600303610598576040518060400160405280836000015160016105889190610bfc565b8152600060209091015292915050565b604051806040016040528083600001518152602001836020015160016105be9190610c0f565b63ffffffff16905292915050565b6000806105d883610161565b905060006105e684836102ca565b51949350505050565b81546000901561060a5761060561011484610161565b61061f565b60408051808201909152600080825260208201525b83548151919250116106345761063483610824565b60008382600001518154811061064c5761064c610bc2565b600091825260209091206040805160e08101909152916003020181606081018260048282826020028201916000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161067b57505050928452505060408051608081019182905260209093019291506001840190600490826000855b82829054906101000a900464ffffffffff1664ffffffffff16815260200190600501906020826004010492830192600103820291508084116106da575050509284525050506002919091015463ffffffff9081166020928301528251918501519293508592166004811061075057610750610bc2565b602002019061ffff16908161ffff1681525050428160200151836020015163ffffffff166004811061078457610784610bc2565b64ffffffffff9092166020929092020152604081018051906107a582610c2c565b63ffffffff16905250815184548291869181106107c4576107c4610bc2565b600091825260209091208251600390920201906107e4908290600461092b565b5060208201516107fa90600183019060046109c1565b50604091909101516002909101805463ffffffff191663ffffffff90921691909117905550505050565b80541580610844575061083681610161565b6020015163ffffffff166003145b6108755760405162461bcd60e51b81526020600482015260026024820152614c3760f01b60448201526064016101a7565b6040805160e08101825260006060808301828152608080850184905260a0850184905260c085018490529084528451908101855282815260208181018490528186018490529181018390528184015292820181905283546001810185558482529290208151919260030201906108ee908290600461092b565b50602082015161090490600183019060046109c1565b50604091909101516002909101805463ffffffff191663ffffffff90921691909117905550565b6001830191839082156109b15791602002820160005b8382111561098157835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302610941565b80156109af5782816101000a81549061ffff0219169055600201602081600101049283019260010302610981565b505b506109bd929150610a4e565b5090565b6001830191839082156109b15791602002820160005b83821115610a1d57835183826101000a81548164ffffffffff021916908364ffffffffff16021790555092602001926005016020816004010492830192600103026109d7565b80156109af5782816101000a81549064ffffffffff0219169055600501602081600401049283019260010302610a1d565b5b808211156109bd5760008155600101610a4f565b600060208284031215610a7557600080fd5b5035919050565b600060408284031215610a8e57600080fd5b6040516040810181811067ffffffffffffffff82111715610abf57634e487b7160e01b600052604160045260246000fd5b60405282358152905080602083013563ffffffff81168114610ae057600080fd5b6020919091015292915050565b60008060808385031215610b0057600080fd5b610b0a8484610a7c565b9150610b198460408501610a7c565b90509250929050565b60008060608385031215610b3557600080fd5b82359150610b198460208501610a7c565b600060408284031215610b5857600080fd5b6102c18383610a7c565b60008060408385031215610b7557600080fd5b82359150602083013561ffff81168114610b8e57600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102c4576102c4610b99565b634e487b7160e01b600052603260045260246000fd5b63ffffffff828116828216039080821115610bf557610bf5610b99565b5092915050565b808201808211156102c4576102c4610b99565b63ffffffff818116838216019080821115610bf557610bf5610b99565b600063ffffffff808316818103610c4557610c45610b99565b600101939250505056fea2646970667358221220e445c43d8806c6b3b077d949e37503ccd71a06f50908bcb0dfd8e342dfa8b46764736f6c63430008120033", "devdoc": { "author": "Lila Rest (https://lila.rest)", "custom:security-contact": "security@ledgity.comsecurity@ledgity.com", diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist.json b/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist.json index 6a453ee1..e8fa000d 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist.json @@ -1,5 +1,5 @@ { - "address": "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", + "address": "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", "abi": [ { "anonymous": false, @@ -277,51 +277,51 @@ "type": "constructor" } ], - "transactionHash": "0x8985975396163dbeba4fd745885f3aaa0bdfcfff5090d5d89a8198f4e7144b59", + "transactionHash": "0x66a0d6cefe63c18a2ff42363aeb0dda1e01a9fb56678bec630dc618ed391c06d", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", - "transactionIndex": 3, - "gasUsed": "332581", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000800000000000000000000000000000000000080000000000000080000000000000004000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000000000000000000200000000000000020000000000000000000000000000000000000000000000000000000", - "blockHash": "0x624a188c92e3001c102eea63c4f41f2333c551525b5f4b4aeb2809507a0eef58", - "transactionHash": "0x8985975396163dbeba4fd745885f3aaa0bdfcfff5090d5d89a8198f4e7144b59", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", + "transactionIndex": 14, + "gasUsed": "332593", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000200000000000000000000020000000000000000000040100000000000000000000100000000000000020000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x131019c36a3968280a3fe03c8916786152531a6d40ed0c4eb1fe6ad39dbc06f0", + "transactionHash": "0x66a0d6cefe63c18a2ff42363aeb0dda1e01a9fb56678bec630dc618ed391c06d", "logs": [ { - "transactionIndex": 3, - "blockNumber": 9269431, - "transactionHash": "0x8985975396163dbeba4fd745885f3aaa0bdfcfff5090d5d89a8198f4e7144b59", - "address": "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", + "transactionIndex": 14, + "blockNumber": 12320777, + "transactionHash": "0x66a0d6cefe63c18a2ff42363aeb0dda1e01a9fb56678bec630dc618ed391c06d", + "address": "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000003860d3642e0e6ee4f8af53b39777417eb697b1ec" + "0x00000000000000000000000067efae630f0f7fae539b0f1eb1fc1c4cc4dc3e47" ], "data": "0x", - "logIndex": 3, - "blockHash": "0x624a188c92e3001c102eea63c4f41f2333c551525b5f4b4aeb2809507a0eef58" + "logIndex": 90, + "blockHash": "0x131019c36a3968280a3fe03c8916786152531a6d40ed0c4eb1fe6ad39dbc06f0" }, { - "transactionIndex": 3, - "blockNumber": 9269431, - "transactionHash": "0x8985975396163dbeba4fd745885f3aaa0bdfcfff5090d5d89a8198f4e7144b59", - "address": "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", + "transactionIndex": 14, + "blockNumber": 12320777, + "transactionHash": "0x66a0d6cefe63c18a2ff42363aeb0dda1e01a9fb56678bec630dc618ed391c06d", + "address": "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 4, - "blockHash": "0x624a188c92e3001c102eea63c4f41f2333c551525b5f4b4aeb2809507a0eef58" + "logIndex": 91, + "blockHash": "0x131019c36a3968280a3fe03c8916786152531a6d40ed0c4eb1fe6ad39dbc06f0" } ], - "blockNumber": 9269431, - "cumulativeGasUsed": "823091", + "blockNumber": 12320777, + "cumulativeGasUsed": "4234563", "status": 1, "byzantium": true }, "args": [ - "0x3860D3642E0e6Ee4f8AF53B39777417eb697B1ec", - "0xc4d66de800000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b2" + "0x67efAe630f0F7faE539B0F1EB1fC1C4cc4dc3e47", + "0xc4d66de8000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", @@ -331,10 +331,10 @@ "execute": { "methodName": "initialize", "args": [ - "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2" + "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53" ] }, - "implementation": "0x3860D3642E0e6Ee4f8AF53B39777417eb697B1ec", + "implementation": "0x67efAe630f0F7faE539B0F1EB1fC1C4cc4dc3e47", "devdoc": { "details": "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.", "kind": "dev", diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist_Implementation.json b/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist_Implementation.json index c1dc58ff..b06bbf07 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist_Implementation.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist_Implementation.json @@ -1,5 +1,5 @@ { - "address": "0x3860D3642E0e6Ee4f8AF53B39777417eb697B1ec", + "address": "0x67efAe630f0F7faE539B0F1EB1fC1C4cc4dc3e47", "abi": [ { "inputs": [], @@ -258,41 +258,41 @@ "type": "function" } ], - "transactionHash": "0x23e7c4700fc180cc18d7e8c0aed6e3b20db6405e4afb293b0d169414ee415b83", + "transactionHash": "0x530b7c9e1774825b8cda38a2e062489174ac860a8ddc5ab1d6b1ec5da2888bf2", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x3860D3642E0e6Ee4f8AF53B39777417eb697B1ec", - "transactionIndex": 10, - "gasUsed": "936792", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xb2912070ead512c07d878bd437eda0739db6793373e1ebe1cce5d860dd141f28", - "transactionHash": "0x23e7c4700fc180cc18d7e8c0aed6e3b20db6405e4afb293b0d169414ee415b83", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x67efAe630f0F7faE539B0F1EB1fC1C4cc4dc3e47", + "transactionIndex": 3, + "gasUsed": "934290", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xa2188d3b33eac1488dfc47988363d6c2efc687c2f228173268cb015c07ddd943", + "transactionHash": "0x530b7c9e1774825b8cda38a2e062489174ac860a8ddc5ab1d6b1ec5da2888bf2", "logs": [ { - "transactionIndex": 10, - "blockNumber": 9269426, - "transactionHash": "0x23e7c4700fc180cc18d7e8c0aed6e3b20db6405e4afb293b0d169414ee415b83", - "address": "0x3860D3642E0e6Ee4f8AF53B39777417eb697B1ec", + "transactionIndex": 3, + "blockNumber": 12320772, + "transactionHash": "0x530b7c9e1774825b8cda38a2e062489174ac860a8ddc5ab1d6b1ec5da2888bf2", + "address": "0x67efAe630f0F7faE539B0F1EB1fC1C4cc4dc3e47", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "logIndex": 8, - "blockHash": "0xb2912070ead512c07d878bd437eda0739db6793373e1ebe1cce5d860dd141f28" + "logIndex": 0, + "blockHash": "0xa2188d3b33eac1488dfc47988363d6c2efc687c2f228173268cb015c07ddd943" } ], - "blockNumber": 9269426, - "cumulativeGasUsed": "3294829", + "blockNumber": 12320772, + "cumulativeGasUsed": "1020141", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "15c81200c85905d33a34abc672a45266", - "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Blacklisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unblacklisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"blacklist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isBlacklisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"unBlacklist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Specifically, some contracts within the codebase inherit from the GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers and getter functions to easily check against this global blacklist.For further details, see \\\"GlobalBlacklist\\\" section of whitepaper.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Blacklisted(address)\":{\"details\":\"Emitted when `account` is blacklisted.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Unblacklisted(address)\":{\"details\":\"Emitted when `account` is unblacklisted.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"blacklist(address)\":{\"params\":{\"account\":\"The account's address to be blacklisted.\"}},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\"},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"initialize(address)\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\",\"params\":{\"globalOwner_\":\"The address of the GlobalOwner contract.\"}},\"isBlacklisted(address)\":{\"params\":{\"account\":\"Address of the account to check.\"},\"returns\":{\"_0\":\"'true' if the account is blacklisted, 'false' otherwise\"}},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"unBlacklist(address)\":{\"params\":{\"account\":\"The account's address to be un-blacklisted.\"}},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"stateVariables\":{\"_list\":{\"details\":\"This mapping is made private and isBlacklisted() should be used instead.This helps saving gas in some scenario. See isBlacklisted() documentation for more details.\"}},\"title\":\"GlobalBlacklist\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"blacklist(address)\":{\"notice\":\"Adds a given account to the blacklist.\"},\"constructor\":{\"notice\":\"Prevents implementation contract from being initialized as recommended by OpenZeppelin.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"initialize(address)\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"},\"isBlacklisted(address)\":{\"notice\":\"Checks whether a given account is blacklisted.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"unBlacklist(address)\":{\"notice\":\"Removes a given account from the blacklist.\"}},\"notice\":\"Holds a global mapping of blacklisted accounts shared by all contracts of the Ledgity Yield codebase.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/GlobalBlacklist.sol\":\"GlobalBlacklist\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalBlacklist.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalBlacklist\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global mapping of blacklisted accounts shared by all contracts of the\\n * Ledgity Yield codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers\\n * and getter functions to easily check against this global blacklist.\\n *\\n * @dev For further details, see \\\"GlobalBlacklist\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalBlacklist is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\\n /**\\n * @notice Mapping of accounts to their blacklist status.\\n * @dev This mapping is made private and isBlacklisted() should be used instead.This\\n * helps saving gas in some scenario. See isBlacklisted() documentation for more details.\\n */\\n mapping(address => bool) private _list;\\n\\n /// @dev Emitted when `account` is blacklisted.\\n event Blacklisted(address account);\\n\\n /// @dev Emitted when `account` is unblacklisted.\\n event Unblacklisted(address account);\\n\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @notice Adds a given account to the blacklist.\\n * @param account The account's address to be blacklisted.\\n */\\n function blacklist(address account) external onlyOwner {\\n require(account != address(0), \\\"L20\\\");\\n _list[account] = true;\\n emit Blacklisted(account);\\n }\\n\\n /**\\n * @notice Removes a given account from the blacklist.\\n * @param account The account's address to be un-blacklisted.\\n */\\n function unBlacklist(address account) external onlyOwner {\\n _list[account] = false;\\n emit Unblacklisted(account);\\n }\\n\\n /**\\n * @notice Checks whether a given account is blacklisted.\\n * @param account Address of the account to check.\\n * @return 'true' if the account is blacklisted, 'false' otherwise\\n */\\n function isBlacklisted(address account) external view returns (bool) {\\n // Gas optimization: Avoid accessing storage if account is the zero address\\n // (e.g, during a mint or a burn of tokens)\\n if (account == address(0)) return false;\\n\\n // Else, return current account's blacklist status\\n return _list[account];\\n }\\n}\\n\",\"keccak256\":\"0x7e771076a06cfec935df22cf2d307df7e1f7df5b887976ec1dea30f8b68a878d\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051610f8461011860003960008181610278015281816102c101528181610360015281816103a001526104330152610f846000f3fe60806040526004361061009c5760003560e01c80638da5cb5b116100645780638da5cb5b14610133578063c4d66de814610160578063f2fde38b14610180578063f762e734146101a0578063f9f92be4146101be578063fe575a87146101de57600080fd5b80631a895266146100a15780633659cfe6146100c35780634f1ef286146100e357806352d1902d146100f6578063715018a61461011e575b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610c84565b61020e565b005b3480156100cf57600080fd5b506100c16100de366004610c84565b61026e565b6100c16100f1366004610cb7565b610356565b34801561010257600080fd5b5061010b610426565b6040519081526020015b60405180910390f35b34801561012a57600080fd5b506100c16104d9565b34801561013f57600080fd5b5061014861050f565b6040516001600160a01b039091168152602001610115565b34801561016c57600080fd5b506100c161017b366004610c84565b610582565b34801561018c57600080fd5b506100c161019b366004610c84565b61069c565b3480156101ac57600080fd5b5060c9546001600160a01b0316610148565b3480156101ca57600080fd5b506100c16101d9366004610c84565b6106d1565b3480156101ea57600080fd5b506101fe6101f9366004610c84565b610769565b6040519015158152602001610115565b6102166107a0565b6001600160a01b038116600081815260fc6020908152604091829020805460ff1916905590519182527f7534c63860313c46c473e4e98328f37017e9674e2162faf1a3ad7a96236c3b7b91015b60405180910390a150565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102bf5760405162461bcd60e51b81526004016102b690610d7b565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610308600080516020610f08833981519152546001600160a01b031690565b6001600160a01b03161461032e5760405162461bcd60e51b81526004016102b690610dc7565b61033781610801565b6040805160008082526020820190925261035391839190610809565b50565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361039e5760405162461bcd60e51b81526004016102b690610d7b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103e7600080516020610f08833981519152546001600160a01b031690565b6001600160a01b03161461040d5760405162461bcd60e51b81526004016102b690610dc7565b61041682610801565b61042282826001610809565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104c65760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016102b6565b50600080516020610f0883398151915290565b6104e16107a0565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b60448201526064016102b6565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015610559573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057d9190610e13565b905090565b600054610100900460ff16158080156105a25750600054600160ff909116105b806105bc5750303b1580156105bc575060005460ff166001145b61061f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102b6565b6000805460ff191660011790558015610642576000805461ff0019166101001790555b61064b82610979565b6106536109a9565b8015610422576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6106a46107a0565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b60448201526064016102b6565b6106d96107a0565b6001600160a01b0381166107155760405162461bcd60e51b815260206004820152600360248201526204c32360ec1b60448201526064016102b6565b6001600160a01b038116600081815260fc6020908152604091829020805460ff1916600117905590519182527fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b8559101610263565b60006001600160a01b03821661078157506000919050565b506001600160a01b0316600090815260fc602052604090205460ff1690565b336107a961050f565b6001600160a01b0316146107ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b6565b565b6103536107a0565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156108415761083c836109d0565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561089b575060408051601f3d908101601f1916820190925261089891810190610e30565b60015b6108fe5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016102b6565b600080516020610f08833981519152811461096d5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016102b6565b5061083c838383610a6c565b600054610100900460ff166109a05760405162461bcd60e51b81526004016102b690610e49565b61035381610a97565b600054610100900460ff166107ff5760405162461bcd60e51b81526004016102b690610e49565b6001600160a01b0381163b610a3d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016102b6565b600080516020610f0883398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b610a7583610ae0565b600082511180610a825750805b1561083c57610a918383610b20565b50505050565b600054610100900460ff16610abe5760405162461bcd60e51b81526004016102b690610e49565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b610ae9816109d0565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b458383604051806060016040528060278152602001610f2860279139610b4c565b9392505050565b6060600080856001600160a01b031685604051610b699190610eb8565b600060405180830381855af49150503d8060008114610ba4576040519150601f19603f3d011682016040523d82523d6000602084013e610ba9565b606091505b5091509150610bba86838387610bc4565b9695505050505050565b60608315610c33578251600003610c2c576001600160a01b0385163b610c2c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b6565b5081610c3d565b610c3d8383610c45565b949350505050565b815115610c555781518083602001fd5b8060405162461bcd60e51b81526004016102b69190610ed4565b6001600160a01b038116811461035357600080fd5b600060208284031215610c9657600080fd5b8135610b4581610c6f565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610cca57600080fd5b8235610cd581610c6f565b9150602083013567ffffffffffffffff80821115610cf257600080fd5b818501915085601f830112610d0657600080fd5b813581811115610d1857610d18610ca1565b604051601f8201601f19908116603f01168101908382118183101715610d4057610d40610ca1565b81604052828152886020848701011115610d5957600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610e2557600080fd5b8151610b4581610c6f565b600060208284031215610e4257600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610eaf578181015183820152602001610e97565b50506000910152565b60008251610eca818460208701610e94565b9190910192915050565b6020815260008251806020840152610ef3816040850160208701610e94565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220a018129cb5f06c0c7c5a811655ab761d448869bf794f6ffc6aaf1e624507d4f564736f6c63430008120033", - "deployedBytecode": "0x60806040526004361061009c5760003560e01c80638da5cb5b116100645780638da5cb5b14610133578063c4d66de814610160578063f2fde38b14610180578063f762e734146101a0578063f9f92be4146101be578063fe575a87146101de57600080fd5b80631a895266146100a15780633659cfe6146100c35780634f1ef286146100e357806352d1902d146100f6578063715018a61461011e575b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610c84565b61020e565b005b3480156100cf57600080fd5b506100c16100de366004610c84565b61026e565b6100c16100f1366004610cb7565b610356565b34801561010257600080fd5b5061010b610426565b6040519081526020015b60405180910390f35b34801561012a57600080fd5b506100c16104d9565b34801561013f57600080fd5b5061014861050f565b6040516001600160a01b039091168152602001610115565b34801561016c57600080fd5b506100c161017b366004610c84565b610582565b34801561018c57600080fd5b506100c161019b366004610c84565b61069c565b3480156101ac57600080fd5b5060c9546001600160a01b0316610148565b3480156101ca57600080fd5b506100c16101d9366004610c84565b6106d1565b3480156101ea57600080fd5b506101fe6101f9366004610c84565b610769565b6040519015158152602001610115565b6102166107a0565b6001600160a01b038116600081815260fc6020908152604091829020805460ff1916905590519182527f7534c63860313c46c473e4e98328f37017e9674e2162faf1a3ad7a96236c3b7b91015b60405180910390a150565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102bf5760405162461bcd60e51b81526004016102b690610d7b565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610308600080516020610f08833981519152546001600160a01b031690565b6001600160a01b03161461032e5760405162461bcd60e51b81526004016102b690610dc7565b61033781610801565b6040805160008082526020820190925261035391839190610809565b50565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361039e5760405162461bcd60e51b81526004016102b690610d7b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103e7600080516020610f08833981519152546001600160a01b031690565b6001600160a01b03161461040d5760405162461bcd60e51b81526004016102b690610dc7565b61041682610801565b61042282826001610809565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104c65760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016102b6565b50600080516020610f0883398151915290565b6104e16107a0565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b60448201526064016102b6565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015610559573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057d9190610e13565b905090565b600054610100900460ff16158080156105a25750600054600160ff909116105b806105bc5750303b1580156105bc575060005460ff166001145b61061f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102b6565b6000805460ff191660011790558015610642576000805461ff0019166101001790555b61064b82610979565b6106536109a9565b8015610422576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6106a46107a0565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b60448201526064016102b6565b6106d96107a0565b6001600160a01b0381166107155760405162461bcd60e51b815260206004820152600360248201526204c32360ec1b60448201526064016102b6565b6001600160a01b038116600081815260fc6020908152604091829020805460ff1916600117905590519182527fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b8559101610263565b60006001600160a01b03821661078157506000919050565b506001600160a01b0316600090815260fc602052604090205460ff1690565b336107a961050f565b6001600160a01b0316146107ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102b6565b565b6103536107a0565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156108415761083c836109d0565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561089b575060408051601f3d908101601f1916820190925261089891810190610e30565b60015b6108fe5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016102b6565b600080516020610f08833981519152811461096d5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016102b6565b5061083c838383610a6c565b600054610100900460ff166109a05760405162461bcd60e51b81526004016102b690610e49565b61035381610a97565b600054610100900460ff166107ff5760405162461bcd60e51b81526004016102b690610e49565b6001600160a01b0381163b610a3d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016102b6565b600080516020610f0883398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b610a7583610ae0565b600082511180610a825750805b1561083c57610a918383610b20565b50505050565b600054610100900460ff16610abe5760405162461bcd60e51b81526004016102b690610e49565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b610ae9816109d0565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b458383604051806060016040528060278152602001610f2860279139610b4c565b9392505050565b6060600080856001600160a01b031685604051610b699190610eb8565b600060405180830381855af49150503d8060008114610ba4576040519150601f19603f3d011682016040523d82523d6000602084013e610ba9565b606091505b5091509150610bba86838387610bc4565b9695505050505050565b60608315610c33578251600003610c2c576001600160a01b0385163b610c2c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b6565b5081610c3d565b610c3d8383610c45565b949350505050565b815115610c555781518083602001fd5b8060405162461bcd60e51b81526004016102b69190610ed4565b6001600160a01b038116811461035357600080fd5b600060208284031215610c9657600080fd5b8135610b4581610c6f565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610cca57600080fd5b8235610cd581610c6f565b9150602083013567ffffffffffffffff80821115610cf257600080fd5b818501915085601f830112610d0657600080fd5b813581811115610d1857610d18610ca1565b604051601f8201601f19908116603f01168101908382118183101715610d4057610d40610ca1565b81604052828152886020848701011115610d5957600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610e2557600080fd5b8151610b4581610c6f565b600060208284031215610e4257600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610eaf578181015183820152602001610e97565b50506000910152565b60008251610eca818460208701610e94565b9190910192915050565b6020815260008251806020840152610ef3816040850160208701610e94565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220a018129cb5f06c0c7c5a811655ab761d448869bf794f6ffc6aaf1e624507d4f564736f6c63430008120033", + "solcInputHash": "1d9f98e9f73009a42653e1abaf15e178", + "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Blacklisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unblacklisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"blacklist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"isBlacklisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"unBlacklist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Specifically, some contracts within the codebase inherit from the GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers and getter functions to easily check against this global blacklist.For further details, see \\\"GlobalBlacklist\\\" section of whitepaper.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Blacklisted(address)\":{\"details\":\"Emitted when `account` is blacklisted.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Unblacklisted(address)\":{\"details\":\"Emitted when `account` is unblacklisted.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"blacklist(address)\":{\"params\":{\"account\":\"The account's address to be blacklisted.\"}},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\"},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"initialize(address)\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\",\"params\":{\"globalOwner_\":\"The address of the GlobalOwner contract.\"}},\"isBlacklisted(address)\":{\"params\":{\"account\":\"Address of the account to check.\"},\"returns\":{\"_0\":\"'true' if the account is blacklisted, 'false' otherwise\"}},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"unBlacklist(address)\":{\"params\":{\"account\":\"The account's address to be un-blacklisted.\"}},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"stateVariables\":{\"_list\":{\"details\":\"This mapping is made private and isBlacklisted() should be used instead.This helps saving gas in some scenario. See isBlacklisted() documentation for more details.\"}},\"title\":\"GlobalBlacklist\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"blacklist(address)\":{\"notice\":\"Adds a given account to the blacklist.\"},\"constructor\":{\"notice\":\"Prevents implementation contract from being initialized as recommended by OpenZeppelin.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"initialize(address)\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"},\"isBlacklisted(address)\":{\"notice\":\"Checks whether a given account is blacklisted.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"unBlacklist(address)\":{\"notice\":\"Removes a given account from the blacklist.\"}},\"notice\":\"Holds a global mapping of blacklisted accounts shared by all contracts of the Ledgity Yield codebase.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/GlobalBlacklist.sol\":\"GlobalBlacklist\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalBlacklist.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalBlacklist\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global mapping of blacklisted accounts shared by all contracts of the\\n * Ledgity Yield codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers\\n * and getter functions to easily check against this global blacklist.\\n *\\n * @dev For further details, see \\\"GlobalBlacklist\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalBlacklist is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\\n /**\\n * @notice Mapping of accounts to their blacklist status.\\n * @dev This mapping is made private and isBlacklisted() should be used instead.This\\n * helps saving gas in some scenario. See isBlacklisted() documentation for more details.\\n */\\n mapping(address => bool) private _list;\\n\\n /// @dev Emitted when `account` is blacklisted.\\n event Blacklisted(address account);\\n\\n /// @dev Emitted when `account` is unblacklisted.\\n event Unblacklisted(address account);\\n\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @notice Adds a given account to the blacklist.\\n * @param account The account's address to be blacklisted.\\n */\\n function blacklist(address account) external onlyOwner {\\n require(account != address(0), \\\"L20\\\");\\n _list[account] = true;\\n emit Blacklisted(account);\\n }\\n\\n /**\\n * @notice Removes a given account from the blacklist.\\n * @param account The account's address to be un-blacklisted.\\n */\\n function unBlacklist(address account) external onlyOwner {\\n _list[account] = false;\\n emit Unblacklisted(account);\\n }\\n\\n /**\\n * @notice Checks whether a given account is blacklisted.\\n * @param account Address of the account to check.\\n * @return 'true' if the account is blacklisted, 'false' otherwise\\n */\\n function isBlacklisted(address account) external view returns (bool) {\\n // Gas optimization: Avoid accessing storage if account is the zero address\\n // (e.g, during a mint or a burn of tokens)\\n if (account == address(0)) return false;\\n\\n // Else, return current account's blacklist status\\n return _list[account];\\n }\\n}\\n\",\"keccak256\":\"0x7e771076a06cfec935df22cf2d307df7e1f7df5b887976ec1dea30f8b68a878d\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051610f7861011860003960008181610270015281816102b9015281816103410152818161038101526103fd0152610f786000f3fe60806040526004361061009c5760003560e01c80638da5cb5b116100645780638da5cb5b14610133578063c4d66de814610155578063f2fde38b14610175578063f762e73414610195578063f9f92be4146101b3578063fe575a87146101d357600080fd5b80631a895266146100a15780633659cfe6146100c35780634f1ef286146100e357806352d1902d146100f6578063715018a61461011e575b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610c64565b610203565b005b3480156100cf57600080fd5b506100c16100de366004610c64565b610266565b6100c16100f1366004610c97565b610337565b34801561010257600080fd5b5061010b6103f0565b6040519081526020015b60405180910390f35b34801561012a57600080fd5b506100c161049e565b34801561013f57600080fd5b506101486104d4565b6040516101159190610d5b565b34801561016157600080fd5b506100c1610170366004610c64565b610547565b34801561018157600080fd5b506100c1610190366004610c64565b610661565b3480156101a157600080fd5b5060c9546001600160a01b0316610148565b3480156101bf57600080fd5b506100c16101ce366004610c64565b610696565b3480156101df57600080fd5b506101f36101ee366004610c64565b61072d565b6040519015158152602001610115565b61020b610764565b6001600160a01b038116600090815260fc602052604090819020805460ff19169055517f7534c63860313c46c473e4e98328f37017e9674e2162faf1a3ad7a96236c3b7b9061025b908390610d5b565b60405180910390a150565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102b75760405162461bcd60e51b81526004016102ae90610d6f565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166102e96107c5565b6001600160a01b03161461030f5760405162461bcd60e51b81526004016102ae90610dbb565b610318816107e1565b60408051600080825260208201909252610334918391906107e9565b50565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361037f5760405162461bcd60e51b81526004016102ae90610d6f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103b16107c5565b6001600160a01b0316146103d75760405162461bcd60e51b81526004016102ae90610dbb565b6103e0826107e1565b6103ec828260016107e9565b5050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461048b5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016102ae565b50600080516020610efc83398151915290565b6104a6610764565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b60448201526064016102ae565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801561051e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105429190610e07565b905090565b600054610100900460ff16158080156105675750600054600160ff909116105b806105815750303b158015610581575060005460ff166001145b6105e45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102ae565b6000805460ff191660011790558015610607576000805461ff0019166101001790555b61061082610959565b610618610989565b80156103ec576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b610669610764565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b60448201526064016102ae565b61069e610764565b6001600160a01b0381166106da5760405162461bcd60e51b815260206004820152600360248201526204c32360ec1b60448201526064016102ae565b6001600160a01b038116600090815260fc602052604090819020805460ff19166001179055517fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b8559061025b908390610d5b565b60006001600160a01b03821661074557506000919050565b506001600160a01b0316600090815260fc602052604090205460ff1690565b3361076d6104d4565b6001600160a01b0316146107c35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ae565b565b600080516020610efc833981519152546001600160a01b031690565b610334610764565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156108215761081c836109b0565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561087b575060408051601f3d908101601f1916820190925261087891810190610e24565b60015b6108de5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016102ae565b600080516020610efc833981519152811461094d5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016102ae565b5061081c838383610a4c565b600054610100900460ff166109805760405162461bcd60e51b81526004016102ae90610e3d565b61033481610a77565b600054610100900460ff166107c35760405162461bcd60e51b81526004016102ae90610e3d565b6001600160a01b0381163b610a1d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016102ae565b600080516020610efc83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b610a5583610ac0565b600082511180610a625750805b1561081c57610a718383610b00565b50505050565b600054610100900460ff16610a9e5760405162461bcd60e51b81526004016102ae90610e3d565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b610ac9816109b0565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b258383604051806060016040528060278152602001610f1c60279139610b2c565b9392505050565b6060600080856001600160a01b031685604051610b499190610eac565b600060405180830381855af49150503d8060008114610b84576040519150601f19603f3d011682016040523d82523d6000602084013e610b89565b606091505b5091509150610b9a86838387610ba4565b9695505050505050565b60608315610c13578251600003610c0c576001600160a01b0385163b610c0c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102ae565b5081610c1d565b610c1d8383610c25565b949350505050565b815115610c355781518083602001fd5b8060405162461bcd60e51b81526004016102ae9190610ec8565b6001600160a01b038116811461033457600080fd5b600060208284031215610c7657600080fd5b8135610b2581610c4f565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610caa57600080fd5b8235610cb581610c4f565b9150602083013567ffffffffffffffff80821115610cd257600080fd5b818501915085601f830112610ce657600080fd5b813581811115610cf857610cf8610c81565b604051601f8201601f19908116603f01168101908382118183101715610d2057610d20610c81565b81604052828152886020848701011115610d3957600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6001600160a01b0391909116815260200190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610e1957600080fd5b8151610b2581610c4f565b600060208284031215610e3657600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610ea3578181015183820152602001610e8b565b50506000910152565b60008251610ebe818460208701610e88565b9190910192915050565b6020815260008251806020840152610ee7816040850160208701610e88565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122068653b3cb0163c655681914a384f12a7d01a343b85c958ca5422614df271381b64736f6c63430008120033", + "deployedBytecode": "0x60806040526004361061009c5760003560e01c80638da5cb5b116100645780638da5cb5b14610133578063c4d66de814610155578063f2fde38b14610175578063f762e73414610195578063f9f92be4146101b3578063fe575a87146101d357600080fd5b80631a895266146100a15780633659cfe6146100c35780634f1ef286146100e357806352d1902d146100f6578063715018a61461011e575b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610c64565b610203565b005b3480156100cf57600080fd5b506100c16100de366004610c64565b610266565b6100c16100f1366004610c97565b610337565b34801561010257600080fd5b5061010b6103f0565b6040519081526020015b60405180910390f35b34801561012a57600080fd5b506100c161049e565b34801561013f57600080fd5b506101486104d4565b6040516101159190610d5b565b34801561016157600080fd5b506100c1610170366004610c64565b610547565b34801561018157600080fd5b506100c1610190366004610c64565b610661565b3480156101a157600080fd5b5060c9546001600160a01b0316610148565b3480156101bf57600080fd5b506100c16101ce366004610c64565b610696565b3480156101df57600080fd5b506101f36101ee366004610c64565b61072d565b6040519015158152602001610115565b61020b610764565b6001600160a01b038116600090815260fc602052604090819020805460ff19169055517f7534c63860313c46c473e4e98328f37017e9674e2162faf1a3ad7a96236c3b7b9061025b908390610d5b565b60405180910390a150565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102b75760405162461bcd60e51b81526004016102ae90610d6f565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166102e96107c5565b6001600160a01b03161461030f5760405162461bcd60e51b81526004016102ae90610dbb565b610318816107e1565b60408051600080825260208201909252610334918391906107e9565b50565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361037f5760405162461bcd60e51b81526004016102ae90610d6f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166103b16107c5565b6001600160a01b0316146103d75760405162461bcd60e51b81526004016102ae90610dbb565b6103e0826107e1565b6103ec828260016107e9565b5050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461048b5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016102ae565b50600080516020610efc83398151915290565b6104a6610764565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b60448201526064016102ae565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801561051e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105429190610e07565b905090565b600054610100900460ff16158080156105675750600054600160ff909116105b806105815750303b158015610581575060005460ff166001145b6105e45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102ae565b6000805460ff191660011790558015610607576000805461ff0019166101001790555b61061082610959565b610618610989565b80156103ec576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b610669610764565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b60448201526064016102ae565b61069e610764565b6001600160a01b0381166106da5760405162461bcd60e51b815260206004820152600360248201526204c32360ec1b60448201526064016102ae565b6001600160a01b038116600090815260fc602052604090819020805460ff19166001179055517fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b8559061025b908390610d5b565b60006001600160a01b03821661074557506000919050565b506001600160a01b0316600090815260fc602052604090205460ff1690565b3361076d6104d4565b6001600160a01b0316146107c35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ae565b565b600080516020610efc833981519152546001600160a01b031690565b610334610764565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156108215761081c836109b0565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561087b575060408051601f3d908101601f1916820190925261087891810190610e24565b60015b6108de5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016102ae565b600080516020610efc833981519152811461094d5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016102ae565b5061081c838383610a4c565b600054610100900460ff166109805760405162461bcd60e51b81526004016102ae90610e3d565b61033481610a77565b600054610100900460ff166107c35760405162461bcd60e51b81526004016102ae90610e3d565b6001600160a01b0381163b610a1d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016102ae565b600080516020610efc83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b610a5583610ac0565b600082511180610a625750805b1561081c57610a718383610b00565b50505050565b600054610100900460ff16610a9e5760405162461bcd60e51b81526004016102ae90610e3d565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b610ac9816109b0565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b258383604051806060016040528060278152602001610f1c60279139610b2c565b9392505050565b6060600080856001600160a01b031685604051610b499190610eac565b600060405180830381855af49150503d8060008114610b84576040519150601f19603f3d011682016040523d82523d6000602084013e610b89565b606091505b5091509150610b9a86838387610ba4565b9695505050505050565b60608315610c13578251600003610c0c576001600160a01b0385163b610c0c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102ae565b5081610c1d565b610c1d8383610c25565b949350505050565b815115610c355781518083602001fd5b8060405162461bcd60e51b81526004016102ae9190610ec8565b6001600160a01b038116811461033457600080fd5b600060208284031215610c7657600080fd5b8135610b2581610c4f565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610caa57600080fd5b8235610cb581610c4f565b9150602083013567ffffffffffffffff80821115610cd257600080fd5b818501915085601f830112610ce657600080fd5b813581811115610cf857610cf8610c81565b604051601f8201601f19908116603f01168101908382118183101715610d2057610d20610c81565b81604052828152886020848701011115610d3957600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6001600160a01b0391909116815260200190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610e1957600080fd5b8151610b2581610c4f565b600060208284031215610e3657600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610ea3578181015183820152602001610e8b565b50506000910152565b60008251610ebe818460208701610e88565b9190910192915050565b6020815260008251806020840152610ee7816040850160208701610e88565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122068653b3cb0163c655681914a384f12a7d01a343b85c958ca5422614df271381b64736f6c63430008120033", "devdoc": { "author": "Lila Rest (https://lila.rest)", "custom:security-contact": "security@ledgity.comsecurity@ledgity.com", @@ -470,7 +470,7 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 8691, + "astId": 8986, "contract": "contracts/src/GlobalBlacklist.sol:GlobalBlacklist", "label": "_globalOwner", "offset": 0, @@ -478,7 +478,7 @@ "type": "t_contract(GlobalOwner)5028" }, { - "astId": 8775, + "astId": 9070, "contract": "contracts/src/GlobalBlacklist.sol:GlobalBlacklist", "label": "__gap", "offset": 0, diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist_Proxy.json b/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist_Proxy.json index 3a7a2bb5..f75261dd 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist_Proxy.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalBlacklist_Proxy.json @@ -1,5 +1,5 @@ { - "address": "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", + "address": "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", "abi": [ { "inputs": [ @@ -71,51 +71,51 @@ "type": "receive" } ], - "transactionHash": "0x8985975396163dbeba4fd745885f3aaa0bdfcfff5090d5d89a8198f4e7144b59", + "transactionHash": "0x66a0d6cefe63c18a2ff42363aeb0dda1e01a9fb56678bec630dc618ed391c06d", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", - "transactionIndex": 3, - "gasUsed": "332581", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000800000000000000000000000000000000000080000000000000080000000000000004000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000000000000000000200000000000000020000000000000000000000000000000000000000000000000000000", - "blockHash": "0x624a188c92e3001c102eea63c4f41f2333c551525b5f4b4aeb2809507a0eef58", - "transactionHash": "0x8985975396163dbeba4fd745885f3aaa0bdfcfff5090d5d89a8198f4e7144b59", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", + "transactionIndex": 14, + "gasUsed": "332593", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000200000000000000000000020000000000000000000040100000000000000000000100000000000000020000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x131019c36a3968280a3fe03c8916786152531a6d40ed0c4eb1fe6ad39dbc06f0", + "transactionHash": "0x66a0d6cefe63c18a2ff42363aeb0dda1e01a9fb56678bec630dc618ed391c06d", "logs": [ { - "transactionIndex": 3, - "blockNumber": 9269431, - "transactionHash": "0x8985975396163dbeba4fd745885f3aaa0bdfcfff5090d5d89a8198f4e7144b59", - "address": "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", + "transactionIndex": 14, + "blockNumber": 12320777, + "transactionHash": "0x66a0d6cefe63c18a2ff42363aeb0dda1e01a9fb56678bec630dc618ed391c06d", + "address": "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000003860d3642e0e6ee4f8af53b39777417eb697b1ec" + "0x00000000000000000000000067efae630f0f7fae539b0f1eb1fc1c4cc4dc3e47" ], "data": "0x", - "logIndex": 3, - "blockHash": "0x624a188c92e3001c102eea63c4f41f2333c551525b5f4b4aeb2809507a0eef58" + "logIndex": 90, + "blockHash": "0x131019c36a3968280a3fe03c8916786152531a6d40ed0c4eb1fe6ad39dbc06f0" }, { - "transactionIndex": 3, - "blockNumber": 9269431, - "transactionHash": "0x8985975396163dbeba4fd745885f3aaa0bdfcfff5090d5d89a8198f4e7144b59", - "address": "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", + "transactionIndex": 14, + "blockNumber": 12320777, + "transactionHash": "0x66a0d6cefe63c18a2ff42363aeb0dda1e01a9fb56678bec630dc618ed391c06d", + "address": "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 4, - "blockHash": "0x624a188c92e3001c102eea63c4f41f2333c551525b5f4b4aeb2809507a0eef58" + "logIndex": 91, + "blockHash": "0x131019c36a3968280a3fe03c8916786152531a6d40ed0c4eb1fe6ad39dbc06f0" } ], - "blockNumber": 9269431, - "cumulativeGasUsed": "823091", + "blockNumber": 12320777, + "cumulativeGasUsed": "4234563", "status": 1, "byzantium": true }, "args": [ - "0x3860D3642E0e6Ee4f8AF53B39777417eb697B1ec", - "0xc4d66de800000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b2" + "0x67efAe630f0F7faE539B0F1EB1fC1C4cc4dc3e47", + "0xc4d66de8000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalOwner.json b/contracts/hardhat/deployments/baseSepolia/GlobalOwner.json index 62a6c92d..95aee630 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalOwner.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalOwner.json @@ -1,5 +1,5 @@ { - "address": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", + "address": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", "abi": [ { "anonymous": false, @@ -226,64 +226,64 @@ "type": "constructor" } ], - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", - "transactionIndex": 4, - "gasUsed": "335746", - "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000004000000000000000000000000000000020000000000000002000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000080000600000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000000400000000002000020002000000000000000000000040000000000000000000000000000000000800000", - "blockHash": "0xd414684927d6536a6f3a5760eba18bb46342a6f034426d7977143fb782666f9e", - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", + "transactionIndex": 8, + "gasUsed": "335812", + "logsBloom": "0x00000000000000000000000000000400400000000000000000800000000000000000000000100000000000000000000000000000000000000000000000040000000000000000004000000000000002000001000000000000000000000000200000000000020000000000000000000800000400000000000000000000000000402000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000020000000000080000000040000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000001000000", + "blockHash": "0xa54e9440a8d7824245c3e44797e20cdb3f44f7e89dc2c5b9e4c130b99b32772c", + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", "logs": [ { - "transactionIndex": 4, - "blockNumber": 9269412, - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", - "address": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", + "transactionIndex": 8, + "blockNumber": 12320758, + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", + "address": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000cf85a7ef9f59d98f419ba09a075de8319777c218" + "0x0000000000000000000000000dff3884ec69cd0b19b8b2bddedfbe73801ead61" ], "data": "0x", - "logIndex": 2, - "blockHash": "0xd414684927d6536a6f3a5760eba18bb46342a6f034426d7977143fb782666f9e" + "logIndex": 66, + "blockHash": "0xa54e9440a8d7824245c3e44797e20cdb3f44f7e89dc2c5b9e4c130b99b32772c" }, { - "transactionIndex": 4, - "blockNumber": 9269412, - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", - "address": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", + "transactionIndex": 8, + "blockNumber": 12320758, + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", + "address": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000069b69dc81caf0b2ff53b946421f51b0ec276e679" + "0x0000000000000000000000000f97f63da69a5b86fe47517459d982198cba22d2" ], "data": "0x", - "logIndex": 3, - "blockHash": "0xd414684927d6536a6f3a5760eba18bb46342a6f034426d7977143fb782666f9e" + "logIndex": 67, + "blockHash": "0xa54e9440a8d7824245c3e44797e20cdb3f44f7e89dc2c5b9e4c130b99b32772c" }, { - "transactionIndex": 4, - "blockNumber": 9269412, - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", - "address": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", + "transactionIndex": 8, + "blockNumber": 12320758, + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", + "address": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 4, - "blockHash": "0xd414684927d6536a6f3a5760eba18bb46342a6f034426d7977143fb782666f9e" + "logIndex": 68, + "blockHash": "0xa54e9440a8d7824245c3e44797e20cdb3f44f7e89dc2c5b9e4c130b99b32772c" } ], - "blockNumber": 9269412, - "cumulativeGasUsed": "1722935", + "blockNumber": 12320758, + "cumulativeGasUsed": "4082916", "status": 1, "byzantium": true }, "args": [ - "0xcF85a7eF9f59D98F419Ba09a075De8319777C218", + "0x0DFF3884ec69cD0B19B8B2bDdEdFbE73801EaD61", "0x8129fc1c" ], "numDeployments": 1, @@ -295,7 +295,7 @@ "methodName": "initialize", "args": [] }, - "implementation": "0xcF85a7eF9f59D98F419Ba09a075De8319777C218", + "implementation": "0x0DFF3884ec69cD0B19B8B2bDdEdFbE73801EaD61", "devdoc": { "details": "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.", "kind": "dev", diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalOwner_Implementation.json b/contracts/hardhat/deployments/baseSepolia/GlobalOwner_Implementation.json index 48210381..227878bf 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalOwner_Implementation.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalOwner_Implementation.json @@ -1,5 +1,5 @@ { - "address": "0xcF85a7eF9f59D98F419Ba09a075De8319777C218", + "address": "0x0DFF3884ec69cD0B19B8B2bDdEdFbE73801EaD61", "abi": [ { "inputs": [], @@ -207,41 +207,41 @@ "type": "function" } ], - "transactionHash": "0x2e5f74367785c9dc45da2858ecc79f81ee4dd8c7e8a8a1f18743fbc6ab3e9811", + "transactionHash": "0x5201720b4404ccac7ff49b988b2d685cec2b0e797296f034273b2a44d43f051f", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0xcF85a7eF9f59D98F419Ba09a075De8319777C218", - "transactionIndex": 1, - "gasUsed": "862049", - "logsBloom": "0x00000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000008000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x6e153c0d137ec69b7e1a782ef2cedb760b50f71dcc1f358c10d4ef2e5438e4da", - "transactionHash": "0x2e5f74367785c9dc45da2858ecc79f81ee4dd8c7e8a8a1f18743fbc6ab3e9811", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x0DFF3884ec69cD0B19B8B2bDdEdFbE73801EaD61", + "transactionIndex": 7, + "gasUsed": "853734", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x26f85ea9add971aeab060fe98361105e2e11f1061c5307e04581df0492a85cc8", + "transactionHash": "0x5201720b4404ccac7ff49b988b2d685cec2b0e797296f034273b2a44d43f051f", "logs": [ { - "transactionIndex": 1, - "blockNumber": 9269407, - "transactionHash": "0x2e5f74367785c9dc45da2858ecc79f81ee4dd8c7e8a8a1f18743fbc6ab3e9811", - "address": "0xcF85a7eF9f59D98F419Ba09a075De8319777C218", + "transactionIndex": 7, + "blockNumber": 12320753, + "transactionHash": "0x5201720b4404ccac7ff49b988b2d685cec2b0e797296f034273b2a44d43f051f", + "address": "0x0DFF3884ec69cD0B19B8B2bDdEdFbE73801EaD61", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "logIndex": 0, - "blockHash": "0x6e153c0d137ec69b7e1a782ef2cedb760b50f71dcc1f358c10d4ef2e5438e4da" + "logIndex": 41, + "blockHash": "0x26f85ea9add971aeab060fe98361105e2e11f1061c5307e04581df0492a85cc8" } ], - "blockNumber": 9269407, - "cumulativeGasUsed": "905924", + "blockNumber": 12320753, + "cumulativeGasUsed": "2929252", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "15c81200c85905d33a34abc672a45266", - "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Specifically, some contracts within the codebase inherit from the GlobalOwnableUpgradeable abstract contract. This provides them with an overriden owner() function that retrieves the owner's address from this contract instead.For further details, see \\\"GlobalOwner\\\" section of whitepaper.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\"},\"initialize()\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"title\":\"GlobalOwner\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"constructor\":{\"notice\":\"Prevents implementation contract from being initialized as recommended by OpenZeppelin.\"},\"initialize()\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"}},\"notice\":\"Holds the address of a global owner account shared by all contracts of the Ledgity Yield's codebase.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/GlobalOwner.sol\":\"GlobalOwner\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051610e2a610118600039600081816101a1015281816101ea01528181610289015281816102c9015261035c0152610e2a6000f3fe6080604052600436106100865760003560e01c806379ba50971161005957806379ba5097146100fd5780638129fc1c146101125780638da5cb5b14610127578063e30c397814610159578063f2fde38b1461017757600080fd5b80633659cfe61461008b5780634f1ef286146100ad57806352d1902d146100c0578063715018a6146100e8575b600080fd5b34801561009757600080fd5b506100ab6100a6366004610b4b565b610197565b005b6100ab6100bb366004610b7c565b61027f565b3480156100cc57600080fd5b506100d561034f565b6040519081526020015b60405180910390f35b3480156100f457600080fd5b506100ab610402565b34801561010957600080fd5b506100ab610416565b34801561011e57600080fd5b506100ab61048d565b34801561013357600080fd5b506097546001600160a01b03165b6040516001600160a01b0390911681526020016100df565b34801561016557600080fd5b5060c9546001600160a01b0316610141565b34801561018357600080fd5b506100ab610192366004610b4b565b6105a5565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036101e85760405162461bcd60e51b81526004016101df90610c3e565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610231600080516020610dae833981519152546001600160a01b031690565b6001600160a01b0316146102575760405162461bcd60e51b81526004016101df90610c8a565b61026081610616565b6040805160008082526020820190925261027c9183919061061e565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102c75760405162461bcd60e51b81526004016101df90610c3e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610310600080516020610dae833981519152546001600160a01b031690565b6001600160a01b0316146103365760405162461bcd60e51b81526004016101df90610c8a565b61033f82610616565b61034b8282600161061e565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103ef5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016101df565b50600080516020610dae83398151915290565b61040a61078e565b61041460006107e8565b565b60c95433906001600160a01b031681146104845760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016101df565b61027c816107e8565b600054610100900460ff16158080156104ad5750600054600160ff909116105b806104c75750303b1580156104c7575060005460ff166001145b61052a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101df565b6000805460ff19166001179055801561054d576000805461ff0019166101001790555b610555610801565b61055d610830565b801561027c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6105ad61078e565b60c980546001600160a01b0383166001600160a01b031990911681179091556105de6097546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b61027c61078e565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156106565761065183610857565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106b0575060408051601f3d908101601f191682019092526106ad91810190610cd6565b60015b6107135760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101df565b600080516020610dae83398151915281146107825760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101df565b506106518383836108f3565b6097546001600160a01b031633146104145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101df565b60c980546001600160a01b031916905561027c8161091e565b600054610100900460ff166108285760405162461bcd60e51b81526004016101df90610cef565b610414610970565b600054610100900460ff166104145760405162461bcd60e51b81526004016101df90610cef565b6001600160a01b0381163b6108c45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101df565b600080516020610dae83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6108fc836109a0565b6000825111806109095750805b156106515761091883836109e0565b50505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166109975760405162461bcd60e51b81526004016101df90610cef565b610414336107e8565b6109a981610857565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610a058383604051806060016040528060278152602001610dce60279139610a0c565b9392505050565b6060600080856001600160a01b031685604051610a299190610d5e565b600060405180830381855af49150503d8060008114610a64576040519150601f19603f3d011682016040523d82523d6000602084013e610a69565b606091505b5091509150610a7a86838387610a84565b9695505050505050565b60608315610af3578251600003610aec576001600160a01b0385163b610aec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101df565b5081610afd565b610afd8383610b05565b949350505050565b815115610b155781518083602001fd5b8060405162461bcd60e51b81526004016101df9190610d7a565b80356001600160a01b0381168114610b4657600080fd5b919050565b600060208284031215610b5d57600080fd5b610a0582610b2f565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b8f57600080fd5b610b9883610b2f565b9150602083013567ffffffffffffffff80821115610bb557600080fd5b818501915085601f830112610bc957600080fd5b813581811115610bdb57610bdb610b66565b604051601f8201601f19908116603f01168101908382118183101715610c0357610c03610b66565b81604052828152886020848701011115610c1c57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610ce857600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610d55578181015183820152602001610d3d565b50506000910152565b60008251610d70818460208701610d3a565b9190910192915050565b6020815260008251806020840152610d99816040850160208701610d3a565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220bf4d86ddafb4e67006b30af9e139567cad9fe8a30e6aad3fb9c85abe69dc796264736f6c63430008120033", - "deployedBytecode": "0x6080604052600436106100865760003560e01c806379ba50971161005957806379ba5097146100fd5780638129fc1c146101125780638da5cb5b14610127578063e30c397814610159578063f2fde38b1461017757600080fd5b80633659cfe61461008b5780634f1ef286146100ad57806352d1902d146100c0578063715018a6146100e8575b600080fd5b34801561009757600080fd5b506100ab6100a6366004610b4b565b610197565b005b6100ab6100bb366004610b7c565b61027f565b3480156100cc57600080fd5b506100d561034f565b6040519081526020015b60405180910390f35b3480156100f457600080fd5b506100ab610402565b34801561010957600080fd5b506100ab610416565b34801561011e57600080fd5b506100ab61048d565b34801561013357600080fd5b506097546001600160a01b03165b6040516001600160a01b0390911681526020016100df565b34801561016557600080fd5b5060c9546001600160a01b0316610141565b34801561018357600080fd5b506100ab610192366004610b4b565b6105a5565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036101e85760405162461bcd60e51b81526004016101df90610c3e565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610231600080516020610dae833981519152546001600160a01b031690565b6001600160a01b0316146102575760405162461bcd60e51b81526004016101df90610c8a565b61026081610616565b6040805160008082526020820190925261027c9183919061061e565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102c75760405162461bcd60e51b81526004016101df90610c3e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610310600080516020610dae833981519152546001600160a01b031690565b6001600160a01b0316146103365760405162461bcd60e51b81526004016101df90610c8a565b61033f82610616565b61034b8282600161061e565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103ef5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016101df565b50600080516020610dae83398151915290565b61040a61078e565b61041460006107e8565b565b60c95433906001600160a01b031681146104845760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016101df565b61027c816107e8565b600054610100900460ff16158080156104ad5750600054600160ff909116105b806104c75750303b1580156104c7575060005460ff166001145b61052a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101df565b6000805460ff19166001179055801561054d576000805461ff0019166101001790555b610555610801565b61055d610830565b801561027c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6105ad61078e565b60c980546001600160a01b0383166001600160a01b031990911681179091556105de6097546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b61027c61078e565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156106565761065183610857565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106b0575060408051601f3d908101601f191682019092526106ad91810190610cd6565b60015b6107135760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101df565b600080516020610dae83398151915281146107825760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101df565b506106518383836108f3565b6097546001600160a01b031633146104145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101df565b60c980546001600160a01b031916905561027c8161091e565b600054610100900460ff166108285760405162461bcd60e51b81526004016101df90610cef565b610414610970565b600054610100900460ff166104145760405162461bcd60e51b81526004016101df90610cef565b6001600160a01b0381163b6108c45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101df565b600080516020610dae83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6108fc836109a0565b6000825111806109095750805b156106515761091883836109e0565b50505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166109975760405162461bcd60e51b81526004016101df90610cef565b610414336107e8565b6109a981610857565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610a058383604051806060016040528060278152602001610dce60279139610a0c565b9392505050565b6060600080856001600160a01b031685604051610a299190610d5e565b600060405180830381855af49150503d8060008114610a64576040519150601f19603f3d011682016040523d82523d6000602084013e610a69565b606091505b5091509150610a7a86838387610a84565b9695505050505050565b60608315610af3578251600003610aec576001600160a01b0385163b610aec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101df565b5081610afd565b610afd8383610b05565b949350505050565b815115610b155781518083602001fd5b8060405162461bcd60e51b81526004016101df9190610d7a565b80356001600160a01b0381168114610b4657600080fd5b919050565b600060208284031215610b5d57600080fd5b610a0582610b2f565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b8f57600080fd5b610b9883610b2f565b9150602083013567ffffffffffffffff80821115610bb557600080fd5b818501915085601f830112610bc957600080fd5b813581811115610bdb57610bdb610b66565b604051601f8201601f19908116603f01168101908382118183101715610c0357610c03610b66565b81604052828152886020848701011115610c1c57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610ce857600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610d55578181015183820152602001610d3d565b50506000910152565b60008251610d70818460208701610d3a565b9190910192915050565b6020815260008251806020840152610d99816040850160208701610d3a565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220bf4d86ddafb4e67006b30af9e139567cad9fe8a30e6aad3fb9c85abe69dc796264736f6c63430008120033", + "solcInputHash": "1d9f98e9f73009a42653e1abaf15e178", + "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Specifically, some contracts within the codebase inherit from the GlobalOwnableUpgradeable abstract contract. This provides them with an overriden owner() function that retrieves the owner's address from this contract instead.For further details, see \\\"GlobalOwner\\\" section of whitepaper.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\"},\"initialize()\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"title\":\"GlobalOwner\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"constructor\":{\"notice\":\"Prevents implementation contract from being initialized as recommended by OpenZeppelin.\"},\"initialize()\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"}},\"notice\":\"Holds the address of a global owner account shared by all contracts of the Ledgity Yield's codebase.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/GlobalOwner.sol\":\"GlobalOwner\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051610e0361011860003960008181610191015281816101da01528181610262015281816102a2015261031e0152610e036000f3fe6080604052600436106100765760003560e01c80633659cfe61461007b5780634f1ef2861461009d57806352d1902d146100b0578063715018a6146100d857806379ba5097146100ed5780638129fc1c146101025780638da5cb5b14610117578063e30c397814610149578063f2fde38b14610167575b600080fd5b34801561008757600080fd5b5061009b610096366004610b24565b610187565b005b61009b6100ab366004610b55565b610258565b3480156100bc57600080fd5b506100c5610311565b6040519081526020015b60405180910390f35b3480156100e457600080fd5b5061009b6103bf565b3480156100f957600080fd5b5061009b6103d3565b34801561010e57600080fd5b5061009b61044a565b34801561012357600080fd5b506097546001600160a01b03165b6040516001600160a01b0390911681526020016100cf565b34801561015557600080fd5b5060c9546001600160a01b0316610131565b34801561017357600080fd5b5061009b610182366004610b24565b610562565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036101d85760405162461bcd60e51b81526004016101cf90610c17565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661020a6105d3565b6001600160a01b0316146102305760405162461bcd60e51b81526004016101cf90610c63565b610239816105ef565b60408051600080825260208201909252610255918391906105f7565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102a05760405162461bcd60e51b81526004016101cf90610c17565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166102d26105d3565b6001600160a01b0316146102f85760405162461bcd60e51b81526004016101cf90610c63565b610301826105ef565b61030d828260016105f7565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103ac5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016101cf565b50600080516020610d8783398151915290565b6103c7610767565b6103d160006107c1565b565b60c95433906001600160a01b031681146104415760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016101cf565b610255816107c1565b600054610100900460ff161580801561046a5750600054600160ff909116105b806104845750303b158015610484575060005460ff166001145b6104e75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101cf565b6000805460ff19166001179055801561050a576000805461ff0019166101001790555b6105126107da565b61051a610809565b8015610255576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b61056a610767565b60c980546001600160a01b0383166001600160a01b0319909116811790915561059b6097546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600080516020610d87833981519152546001600160a01b031690565b610255610767565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561062f5761062a83610830565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610689575060408051601f3d908101601f1916820190925261068691810190610caf565b60015b6106ec5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101cf565b600080516020610d87833981519152811461075b5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101cf565b5061062a8383836108cc565b6097546001600160a01b031633146103d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cf565b60c980546001600160a01b0319169055610255816108f7565b600054610100900460ff166108015760405162461bcd60e51b81526004016101cf90610cc8565b6103d1610949565b600054610100900460ff166103d15760405162461bcd60e51b81526004016101cf90610cc8565b6001600160a01b0381163b61089d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101cf565b600080516020610d8783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6108d583610979565b6000825111806108e25750805b1561062a576108f183836109b9565b50505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166109705760405162461bcd60e51b81526004016101cf90610cc8565b6103d1336107c1565b61098281610830565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606109de8383604051806060016040528060278152602001610da7602791396109e5565b9392505050565b6060600080856001600160a01b031685604051610a029190610d37565b600060405180830381855af49150503d8060008114610a3d576040519150601f19603f3d011682016040523d82523d6000602084013e610a42565b606091505b5091509150610a5386838387610a5d565b9695505050505050565b60608315610acc578251600003610ac5576001600160a01b0385163b610ac55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101cf565b5081610ad6565b610ad68383610ade565b949350505050565b815115610aee5781518083602001fd5b8060405162461bcd60e51b81526004016101cf9190610d53565b80356001600160a01b0381168114610b1f57600080fd5b919050565b600060208284031215610b3657600080fd5b6109de82610b08565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b6857600080fd5b610b7183610b08565b9150602083013567ffffffffffffffff80821115610b8e57600080fd5b818501915085601f830112610ba257600080fd5b813581811115610bb457610bb4610b3f565b604051601f8201601f19908116603f01168101908382118183101715610bdc57610bdc610b3f565b81604052828152886020848701011115610bf557600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610cc157600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610d2e578181015183820152602001610d16565b50506000910152565b60008251610d49818460208701610d13565b9190910192915050565b6020815260008251806020840152610d72816040850160208701610d13565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201104273b2778a97ac23eb945b519c0919bdac25b7ff05206e0b10545dabd0db564736f6c63430008120033", + "deployedBytecode": "0x6080604052600436106100765760003560e01c80633659cfe61461007b5780634f1ef2861461009d57806352d1902d146100b0578063715018a6146100d857806379ba5097146100ed5780638129fc1c146101025780638da5cb5b14610117578063e30c397814610149578063f2fde38b14610167575b600080fd5b34801561008757600080fd5b5061009b610096366004610b24565b610187565b005b61009b6100ab366004610b55565b610258565b3480156100bc57600080fd5b506100c5610311565b6040519081526020015b60405180910390f35b3480156100e457600080fd5b5061009b6103bf565b3480156100f957600080fd5b5061009b6103d3565b34801561010e57600080fd5b5061009b61044a565b34801561012357600080fd5b506097546001600160a01b03165b6040516001600160a01b0390911681526020016100cf565b34801561015557600080fd5b5060c9546001600160a01b0316610131565b34801561017357600080fd5b5061009b610182366004610b24565b610562565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036101d85760405162461bcd60e51b81526004016101cf90610c17565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661020a6105d3565b6001600160a01b0316146102305760405162461bcd60e51b81526004016101cf90610c63565b610239816105ef565b60408051600080825260208201909252610255918391906105f7565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102a05760405162461bcd60e51b81526004016101cf90610c17565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166102d26105d3565b6001600160a01b0316146102f85760405162461bcd60e51b81526004016101cf90610c63565b610301826105ef565b61030d828260016105f7565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103ac5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016101cf565b50600080516020610d8783398151915290565b6103c7610767565b6103d160006107c1565b565b60c95433906001600160a01b031681146104415760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016101cf565b610255816107c1565b600054610100900460ff161580801561046a5750600054600160ff909116105b806104845750303b158015610484575060005460ff166001145b6104e75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101cf565b6000805460ff19166001179055801561050a576000805461ff0019166101001790555b6105126107da565b61051a610809565b8015610255576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b61056a610767565b60c980546001600160a01b0383166001600160a01b0319909116811790915561059b6097546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600080516020610d87833981519152546001600160a01b031690565b610255610767565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561062f5761062a83610830565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610689575060408051601f3d908101601f1916820190925261068691810190610caf565b60015b6106ec5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101cf565b600080516020610d87833981519152811461075b5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101cf565b5061062a8383836108cc565b6097546001600160a01b031633146103d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cf565b60c980546001600160a01b0319169055610255816108f7565b600054610100900460ff166108015760405162461bcd60e51b81526004016101cf90610cc8565b6103d1610949565b600054610100900460ff166103d15760405162461bcd60e51b81526004016101cf90610cc8565b6001600160a01b0381163b61089d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101cf565b600080516020610d8783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6108d583610979565b6000825111806108e25750805b1561062a576108f183836109b9565b50505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166109705760405162461bcd60e51b81526004016101cf90610cc8565b6103d1336107c1565b61098281610830565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606109de8383604051806060016040528060278152602001610da7602791396109e5565b9392505050565b6060600080856001600160a01b031685604051610a029190610d37565b600060405180830381855af49150503d8060008114610a3d576040519150601f19603f3d011682016040523d82523d6000602084013e610a42565b606091505b5091509150610a5386838387610a5d565b9695505050505050565b60608315610acc578251600003610ac5576001600160a01b0385163b610ac55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101cf565b5081610ad6565b610ad68383610ade565b949350505050565b815115610aee5781518083602001fd5b8060405162461bcd60e51b81526004016101cf9190610d53565b80356001600160a01b0381168114610b1f57600080fd5b919050565b600060208284031215610b3657600080fd5b6109de82610b08565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b6857600080fd5b610b7183610b08565b9150602083013567ffffffffffffffff80821115610b8e57600080fd5b818501915085601f830112610ba257600080fd5b813581811115610bb457610bb4610b3f565b604051601f8201601f19908116603f01168101908382118183101715610bdc57610bdc610b3f565b81604052828152886020848701011115610bf557600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610cc157600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610d2e578181015183820152602001610d16565b50506000910152565b60008251610d49818460208701610d13565b9190910192915050565b6020815260008251806020840152610d72816040850160208701610d13565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201104273b2778a97ac23eb945b519c0919bdac25b7ff05206e0b10545dabd0db564736f6c63430008120033", "devdoc": { "author": "Lila Rest (https://lila.rest)", "custom:security-contact": "security@ledgity.comsecurity@ledgity.com", diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalOwner_Proxy.json b/contracts/hardhat/deployments/baseSepolia/GlobalOwner_Proxy.json index 5a659561..042fe792 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalOwner_Proxy.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalOwner_Proxy.json @@ -1,5 +1,5 @@ { - "address": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", + "address": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", "abi": [ { "inputs": [ @@ -71,64 +71,64 @@ "type": "receive" } ], - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", - "transactionIndex": 4, - "gasUsed": "335746", - "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000004000000000000000000000000000000020000000000000002000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000080000600000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000000400000000002000020002000000000000000000000040000000000000000000000000000000000800000", - "blockHash": "0xd414684927d6536a6f3a5760eba18bb46342a6f034426d7977143fb782666f9e", - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", + "transactionIndex": 8, + "gasUsed": "335812", + "logsBloom": "0x00000000000000000000000000000400400000000000000000800000000000000000000000100000000000000000000000000000000000000000000000040000000000000000004000000000000002000001000000000000000000000000200000000000020000000000000000000800000400000000000000000000000000402000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000020000000000080000000040000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000001000000", + "blockHash": "0xa54e9440a8d7824245c3e44797e20cdb3f44f7e89dc2c5b9e4c130b99b32772c", + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", "logs": [ { - "transactionIndex": 4, - "blockNumber": 9269412, - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", - "address": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", + "transactionIndex": 8, + "blockNumber": 12320758, + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", + "address": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000cf85a7ef9f59d98f419ba09a075de8319777c218" + "0x0000000000000000000000000dff3884ec69cd0b19b8b2bddedfbe73801ead61" ], "data": "0x", - "logIndex": 2, - "blockHash": "0xd414684927d6536a6f3a5760eba18bb46342a6f034426d7977143fb782666f9e" + "logIndex": 66, + "blockHash": "0xa54e9440a8d7824245c3e44797e20cdb3f44f7e89dc2c5b9e4c130b99b32772c" }, { - "transactionIndex": 4, - "blockNumber": 9269412, - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", - "address": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", + "transactionIndex": 8, + "blockNumber": 12320758, + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", + "address": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000069b69dc81caf0b2ff53b946421f51b0ec276e679" + "0x0000000000000000000000000f97f63da69a5b86fe47517459d982198cba22d2" ], "data": "0x", - "logIndex": 3, - "blockHash": "0xd414684927d6536a6f3a5760eba18bb46342a6f034426d7977143fb782666f9e" + "logIndex": 67, + "blockHash": "0xa54e9440a8d7824245c3e44797e20cdb3f44f7e89dc2c5b9e4c130b99b32772c" }, { - "transactionIndex": 4, - "blockNumber": 9269412, - "transactionHash": "0xb23034eec0f390b17591f72365579c1b6b0905a5d0c00dc2d2addb3359c53c2f", - "address": "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", + "transactionIndex": 8, + "blockNumber": 12320758, + "transactionHash": "0xa13292c1bfbd7bcda5988f2fa0db329d3771b95ab632a30d5887a2f779261d79", + "address": "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 4, - "blockHash": "0xd414684927d6536a6f3a5760eba18bb46342a6f034426d7977143fb782666f9e" + "logIndex": 68, + "blockHash": "0xa54e9440a8d7824245c3e44797e20cdb3f44f7e89dc2c5b9e4c130b99b32772c" } ], - "blockNumber": 9269412, - "cumulativeGasUsed": "1722935", + "blockNumber": 12320758, + "cumulativeGasUsed": "4082916", "status": 1, "byzantium": true }, "args": [ - "0xcF85a7eF9f59D98F419Ba09a075De8319777C218", + "0x0DFF3884ec69cD0B19B8B2bDdEdFbE73801EaD61", "0x8129fc1c" ], "numDeployments": 1, diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalPause.json b/contracts/hardhat/deployments/baseSepolia/GlobalPause.json index 516e0eb6..e03dca7e 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalPause.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalPause.json @@ -1,5 +1,5 @@ { - "address": "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", + "address": "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", "abi": [ { "anonymous": false, @@ -259,51 +259,51 @@ "type": "constructor" } ], - "transactionHash": "0xbfe5404b37eaf5c9a32b386664e15bb938e66ceab38d30aa011b15cf514e062e", + "transactionHash": "0xe8ac1502d733d95d2f1ef05db6aa8a9b84bdc562cddbb40a4bdd01974d6a448a", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", - "transactionIndex": 2, - "gasUsed": "335159", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000800000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000004000000080000000000000000020000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xa0e5f2241e4413c854e37fdfc5dae489206d959ee7f3148c655af621c151367f", - "transactionHash": "0xbfe5404b37eaf5c9a32b386664e15bb938e66ceab38d30aa011b15cf514e062e", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", + "transactionIndex": 8, + "gasUsed": "335171", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000002000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000080000000000800000000000000000000000000000000000400000000000000000000000000000000000000000420000000000000000000040000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000", + "blockHash": "0xff9998d0f8e28c4fec7276850d5bb30a93702fec75a1d938871cc6bb42693751", + "transactionHash": "0xe8ac1502d733d95d2f1ef05db6aa8a9b84bdc562cddbb40a4bdd01974d6a448a", "logs": [ { - "transactionIndex": 2, - "blockNumber": 9269421, - "transactionHash": "0xbfe5404b37eaf5c9a32b386664e15bb938e66ceab38d30aa011b15cf514e062e", - "address": "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", + "transactionIndex": 8, + "blockNumber": 12320768, + "transactionHash": "0xe8ac1502d733d95d2f1ef05db6aa8a9b84bdc562cddbb40a4bdd01974d6a448a", + "address": "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000001f3c77be982b11a391646cc50149f3cd23a7b61b" + "0x0000000000000000000000004ef07549078673e98b16d9c9c2d1319117a166ab" ], "data": "0x", - "logIndex": 2, - "blockHash": "0xa0e5f2241e4413c854e37fdfc5dae489206d959ee7f3148c655af621c151367f" + "logIndex": 143, + "blockHash": "0xff9998d0f8e28c4fec7276850d5bb30a93702fec75a1d938871cc6bb42693751" }, { - "transactionIndex": 2, - "blockNumber": 9269421, - "transactionHash": "0xbfe5404b37eaf5c9a32b386664e15bb938e66ceab38d30aa011b15cf514e062e", - "address": "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", + "transactionIndex": 8, + "blockNumber": 12320768, + "transactionHash": "0xe8ac1502d733d95d2f1ef05db6aa8a9b84bdc562cddbb40a4bdd01974d6a448a", + "address": "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 3, - "blockHash": "0xa0e5f2241e4413c854e37fdfc5dae489206d959ee7f3148c655af621c151367f" + "logIndex": 144, + "blockHash": "0xff9998d0f8e28c4fec7276850d5bb30a93702fec75a1d938871cc6bb42693751" } ], - "blockNumber": 9269421, - "cumulativeGasUsed": "713718", + "blockNumber": 12320768, + "cumulativeGasUsed": "6495855", "status": 1, "byzantium": true }, "args": [ - "0x1f3c77bE982B11a391646CC50149f3cD23A7b61B", - "0xc4d66de800000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b2" + "0x4Ef07549078673e98b16D9C9c2D1319117A166Ab", + "0xc4d66de8000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", @@ -313,10 +313,10 @@ "execute": { "methodName": "initialize", "args": [ - "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2" + "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53" ] }, - "implementation": "0x1f3c77bE982B11a391646CC50149f3cD23A7b61B", + "implementation": "0x4Ef07549078673e98b16D9C9c2D1319117A166Ab", "devdoc": { "details": "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.", "kind": "dev", diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalPause_Implementation.json b/contracts/hardhat/deployments/baseSepolia/GlobalPause_Implementation.json index bdd968b8..8825543c 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalPause_Implementation.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalPause_Implementation.json @@ -1,5 +1,5 @@ { - "address": "0x1f3c77bE982B11a391646CC50149f3cD23A7b61B", + "address": "0x4Ef07549078673e98b16D9C9c2D1319117A166Ab", "abi": [ { "inputs": [], @@ -240,41 +240,41 @@ "type": "function" } ], - "transactionHash": "0xc81e6ee5a0e7dc83db7df59db77c28fb140ef03b6e714ca466fa3189c53abadc", + "transactionHash": "0x16e8699cc7c633b43523b6ca79c08291885ee22f28881b98704887c5fa370b9b", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x1f3c77bE982B11a391646CC50149f3cD23A7b61B", - "transactionIndex": 3, - "gasUsed": "955363", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000002000200000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xc2a381a701ec494a7473faa051def917e1849132c042b5dcb172bd78be9a708c", - "transactionHash": "0xc81e6ee5a0e7dc83db7df59db77c28fb140ef03b6e714ca466fa3189c53abadc", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x4Ef07549078673e98b16D9C9c2D1319117A166Ab", + "transactionIndex": 2, + "gasUsed": "950501", + "logsBloom": "0x00400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000080000000000000010000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x3f29cbb22159e35c7a82f2233c6deea40e095aa615875b5b065bf3ebf3eb2245", + "transactionHash": "0x16e8699cc7c633b43523b6ca79c08291885ee22f28881b98704887c5fa370b9b", "logs": [ { - "transactionIndex": 3, - "blockNumber": 9269417, - "transactionHash": "0xc81e6ee5a0e7dc83db7df59db77c28fb140ef03b6e714ca466fa3189c53abadc", - "address": "0x1f3c77bE982B11a391646CC50149f3cD23A7b61B", + "transactionIndex": 2, + "blockNumber": 12320763, + "transactionHash": "0x16e8699cc7c633b43523b6ca79c08291885ee22f28881b98704887c5fa370b9b", + "address": "0x4Ef07549078673e98b16D9C9c2D1319117A166Ab", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "logIndex": 3, - "blockHash": "0xc2a381a701ec494a7473faa051def917e1849132c042b5dcb172bd78be9a708c" + "logIndex": 1, + "blockHash": "0x3f29cbb22159e35c7a82f2233c6deea40e095aa615875b5b065bf3ebf3eb2245" } ], - "blockNumber": 9269417, - "cumulativeGasUsed": "1673480", + "blockNumber": 12320763, + "cumulativeGasUsed": "1043051", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "15c81200c85905d33a34abc672a45266", - "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Specifically, some contracts within the codebase inherit from the GlobalPausableUpgradeable abstract contract. This provides them with an overriden paused() function that retrieves the pause state from this contract instead.For further details, see \\\"GlobalPause\\\" section of whitepaper.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\"},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"initialize(address)\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\",\"params\":{\"globalOwner_\":\"The address of the GlobalOwner contract.\"}},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"pause()\":{\"details\":\"Public implementation of PausableUpgradeable's pausing and unpausing functions but restricted to contract's owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"title\":\"GlobalPause\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"constructor\":{\"notice\":\"Prevents implementation contract from being initialized as recommended by OpenZeppelin.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"initialize(address)\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"}},\"notice\":\"Holds a global pause state shared by all contracts of the Ledgity Yield codebase.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/GlobalPause.sol\":\"GlobalPause\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x40c636b4572ff5f1dc50cf22097e93c0723ee14eff87e99ac2b02636eeca1250\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/GlobalPause.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalPause\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global pause state shared by all contracts of the Ledgity Yield\\n * codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalPausableUpgradeable abstract contract. This provides them with an overriden\\n * paused() function that retrieves the pause state from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalPause\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalPause is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n PausableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev Public implementation of PausableUpgradeable's pausing and unpausing functions\\n * but restricted to contract's owner.\\n */\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n}\\n\",\"keccak256\":\"0x9a0767e761dbd1d5800db03558c3903f229e6ef29f5fe5ff38f45fb4d7572e2e\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051610fda610118600039600081816101f50152818161023e015281816102ef0152818161032f01526103c20152610fda6000f3fe60806040526004361061009c5760003560e01c8063715018a611610064578063715018a6146101365780638456cb591461014b5780638da5cb5b14610160578063c4d66de81461018d578063f2fde38b146101ad578063f762e734146101cd57600080fd5b80633659cfe6146100a15780633f4ba83a146100c35780634f1ef286146100d857806352d1902d146100eb5780635c975abb14610113575b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610cda565b6101eb565b005b3480156100cf57600080fd5b506100c16102d3565b6100c16100e6366004610d0d565b6102e5565b3480156100f757600080fd5b506101006103b5565b6040519081526020015b60405180910390f35b34801561011f57600080fd5b5060fc5460ff16604051901515815260200161010a565b34801561014257600080fd5b506100c1610468565b34801561015757600080fd5b506100c161049e565b34801561016c57600080fd5b506101756104ae565b6040516001600160a01b03909116815260200161010a565b34801561019957600080fd5b506100c16101a8366004610cda565b610521565b3480156101b957600080fd5b506100c16101c8366004610cda565b610643565b3480156101d957600080fd5b5060c9546001600160a01b0316610175565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361023c5760405162461bcd60e51b815260040161023390610dd1565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610285600080516020610f5e833981519152546001600160a01b031690565b6001600160a01b0316146102ab5760405162461bcd60e51b815260040161023390610e1d565b6102b481610678565b604080516000808252602082019092526102d091839190610680565b50565b6102db6107f0565b6102e361084f565b565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361032d5760405162461bcd60e51b815260040161023390610dd1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610376600080516020610f5e833981519152546001600160a01b031690565b6001600160a01b03161461039c5760405162461bcd60e51b815260040161023390610e1d565b6103a582610678565b6103b182826001610680565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104555760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610233565b50600080516020610f5e83398151915290565b6104706107f0565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610233565b6104a66107f0565b6102e36108a1565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c9190610e69565b905090565b600054610100900460ff16158080156105415750600054600160ff909116105b8061055b5750303b15801561055b575060005460ff166001145b6105be5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610233565b6000805460ff1916600117905580156105e1576000805461ff0019166101001790555b6105ea826108de565b6105f261090e565b6105fa61093d565b80156103b1576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b61064b6107f0565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610233565b6102d06107f0565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156106b8576106b383610964565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610712575060408051601f3d908101601f1916820190925261070f91810190610e86565b60015b6107755760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610233565b600080516020610f5e83398151915281146107e45760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610233565b506106b3838383610a00565b336107f96104ae565b6001600160a01b0316146102e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610233565b610857610a2b565b60fc805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6108a9610a74565b60fc805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108843390565b600054610100900460ff166109055760405162461bcd60e51b815260040161023390610e9f565b6102d081610aba565b600054610100900460ff166109355760405162461bcd60e51b815260040161023390610e9f565b6102e3610b03565b600054610100900460ff166102e35760405162461bcd60e51b815260040161023390610e9f565b6001600160a01b0381163b6109d15760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610233565b600080516020610f5e83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b610a0983610b36565b600082511180610a165750805b156106b357610a258383610b76565b50505050565b60fc5460ff166102e35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610233565b60fc5460ff16156102e35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610233565b600054610100900460ff16610ae15760405162461bcd60e51b815260040161023390610e9f565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16610b2a5760405162461bcd60e51b815260040161023390610e9f565b60fc805460ff19169055565b610b3f81610964565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b9b8383604051806060016040528060278152602001610f7e60279139610ba2565b9392505050565b6060600080856001600160a01b031685604051610bbf9190610f0e565b600060405180830381855af49150503d8060008114610bfa576040519150601f19603f3d011682016040523d82523d6000602084013e610bff565b606091505b5091509150610c1086838387610c1a565b9695505050505050565b60608315610c89578251600003610c82576001600160a01b0385163b610c825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610233565b5081610c93565b610c938383610c9b565b949350505050565b815115610cab5781518083602001fd5b8060405162461bcd60e51b81526004016102339190610f2a565b6001600160a01b03811681146102d057600080fd5b600060208284031215610cec57600080fd5b8135610b9b81610cc5565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610d2057600080fd5b8235610d2b81610cc5565b9150602083013567ffffffffffffffff80821115610d4857600080fd5b818501915085601f830112610d5c57600080fd5b813581811115610d6e57610d6e610cf7565b604051601f8201601f19908116603f01168101908382118183101715610d9657610d96610cf7565b81604052828152886020848701011115610daf57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610e7b57600080fd5b8151610b9b81610cc5565b600060208284031215610e9857600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610f05578181015183820152602001610eed565b50506000910152565b60008251610f20818460208701610eea565b9190910192915050565b6020815260008251806020840152610f49816040850160208701610eea565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204b6850ce781cface9fdf0c166b79d65bd4bbb2d52856d077ee54eb215d1371b564736f6c63430008120033", - "deployedBytecode": "0x60806040526004361061009c5760003560e01c8063715018a611610064578063715018a6146101365780638456cb591461014b5780638da5cb5b14610160578063c4d66de81461018d578063f2fde38b146101ad578063f762e734146101cd57600080fd5b80633659cfe6146100a15780633f4ba83a146100c35780634f1ef286146100d857806352d1902d146100eb5780635c975abb14610113575b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610cda565b6101eb565b005b3480156100cf57600080fd5b506100c16102d3565b6100c16100e6366004610d0d565b6102e5565b3480156100f757600080fd5b506101006103b5565b6040519081526020015b60405180910390f35b34801561011f57600080fd5b5060fc5460ff16604051901515815260200161010a565b34801561014257600080fd5b506100c1610468565b34801561015757600080fd5b506100c161049e565b34801561016c57600080fd5b506101756104ae565b6040516001600160a01b03909116815260200161010a565b34801561019957600080fd5b506100c16101a8366004610cda565b610521565b3480156101b957600080fd5b506100c16101c8366004610cda565b610643565b3480156101d957600080fd5b5060c9546001600160a01b0316610175565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361023c5760405162461bcd60e51b815260040161023390610dd1565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610285600080516020610f5e833981519152546001600160a01b031690565b6001600160a01b0316146102ab5760405162461bcd60e51b815260040161023390610e1d565b6102b481610678565b604080516000808252602082019092526102d091839190610680565b50565b6102db6107f0565b6102e361084f565b565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361032d5760405162461bcd60e51b815260040161023390610dd1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610376600080516020610f5e833981519152546001600160a01b031690565b6001600160a01b03161461039c5760405162461bcd60e51b815260040161023390610e1d565b6103a582610678565b6103b182826001610680565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104555760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610233565b50600080516020610f5e83398151915290565b6104706107f0565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610233565b6104a66107f0565b6102e36108a1565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa1580156104f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051c9190610e69565b905090565b600054610100900460ff16158080156105415750600054600160ff909116105b8061055b5750303b15801561055b575060005460ff166001145b6105be5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610233565b6000805460ff1916600117905580156105e1576000805461ff0019166101001790555b6105ea826108de565b6105f261090e565b6105fa61093d565b80156103b1576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b61064b6107f0565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610233565b6102d06107f0565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156106b8576106b383610964565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610712575060408051601f3d908101601f1916820190925261070f91810190610e86565b60015b6107755760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610233565b600080516020610f5e83398151915281146107e45760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610233565b506106b3838383610a00565b336107f96104ae565b6001600160a01b0316146102e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610233565b610857610a2b565b60fc805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6108a9610a74565b60fc805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108843390565b600054610100900460ff166109055760405162461bcd60e51b815260040161023390610e9f565b6102d081610aba565b600054610100900460ff166109355760405162461bcd60e51b815260040161023390610e9f565b6102e3610b03565b600054610100900460ff166102e35760405162461bcd60e51b815260040161023390610e9f565b6001600160a01b0381163b6109d15760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610233565b600080516020610f5e83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b610a0983610b36565b600082511180610a165750805b156106b357610a258383610b76565b50505050565b60fc5460ff166102e35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610233565b60fc5460ff16156102e35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610233565b600054610100900460ff16610ae15760405162461bcd60e51b815260040161023390610e9f565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16610b2a5760405162461bcd60e51b815260040161023390610e9f565b60fc805460ff19169055565b610b3f81610964565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b9b8383604051806060016040528060278152602001610f7e60279139610ba2565b9392505050565b6060600080856001600160a01b031685604051610bbf9190610f0e565b600060405180830381855af49150503d8060008114610bfa576040519150601f19603f3d011682016040523d82523d6000602084013e610bff565b606091505b5091509150610c1086838387610c1a565b9695505050505050565b60608315610c89578251600003610c82576001600160a01b0385163b610c825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610233565b5081610c93565b610c938383610c9b565b949350505050565b815115610cab5781518083602001fd5b8060405162461bcd60e51b81526004016102339190610f2a565b6001600160a01b03811681146102d057600080fd5b600060208284031215610cec57600080fd5b8135610b9b81610cc5565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610d2057600080fd5b8235610d2b81610cc5565b9150602083013567ffffffffffffffff80821115610d4857600080fd5b818501915085601f830112610d5c57600080fd5b813581811115610d6e57610d6e610cf7565b604051601f8201601f19908116603f01168101908382118183101715610d9657610d96610cf7565b81604052828152886020848701011115610daf57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610e7b57600080fd5b8151610b9b81610cc5565b600060208284031215610e9857600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610f05578181015183820152602001610eed565b50506000910152565b60008251610f20818460208701610eea565b9190910192915050565b6020815260008251806020840152610f49816040850160208701610eea565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212204b6850ce781cface9fdf0c166b79d65bd4bbb2d52856d077ee54eb215d1371b564736f6c63430008120033", + "solcInputHash": "1d9f98e9f73009a42653e1abaf15e178", + "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Specifically, some contracts within the codebase inherit from the GlobalPausableUpgradeable abstract contract. This provides them with an overriden paused() function that retrieves the pause state from this contract instead.For further details, see \\\"GlobalPause\\\" section of whitepaper.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\"},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"initialize(address)\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\",\"params\":{\"globalOwner_\":\"The address of the GlobalOwner contract.\"}},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"pause()\":{\"details\":\"Public implementation of PausableUpgradeable's pausing and unpausing functions but restricted to contract's owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"title\":\"GlobalPause\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"constructor\":{\"notice\":\"Prevents implementation contract from being initialized as recommended by OpenZeppelin.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"initialize(address)\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"}},\"notice\":\"Holds a global pause state shared by all contracts of the Ledgity Yield codebase.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/GlobalPause.sol\":\"GlobalPause\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x40c636b4572ff5f1dc50cf22097e93c0723ee14eff87e99ac2b02636eeca1250\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/GlobalPause.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalPause\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global pause state shared by all contracts of the Ledgity Yield\\n * codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalPausableUpgradeable abstract contract. This provides them with an overriden\\n * paused() function that retrieves the pause state from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalPause\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalPause is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n PausableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev Public implementation of PausableUpgradeable's pausing and unpausing functions\\n * but restricted to contract's owner.\\n */\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n}\\n\",\"keccak256\":\"0x9a0767e761dbd1d5800db03558c3903f229e6ef29f5fe5ff38f45fb4d7572e2e\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051610fc3610118600039600081816101f50152818161023e015281816102d80152818161031801526103940152610fc36000f3fe60806040526004361061009c5760003560e01c8063715018a611610064578063715018a6146101365780638456cb591461014b5780638da5cb5b14610160578063c4d66de81461018d578063f2fde38b146101ad578063f762e734146101cd57600080fd5b80633659cfe6146100a15780633f4ba83a146100c35780634f1ef286146100d857806352d1902d146100eb5780635c975abb14610113575b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610cc3565b6101eb565b005b3480156100cf57600080fd5b506100c16102bc565b6100c16100e6366004610cf6565b6102ce565b3480156100f757600080fd5b50610100610387565b6040519081526020015b60405180910390f35b34801561011f57600080fd5b5060fc5460ff16604051901515815260200161010a565b34801561014257600080fd5b506100c1610435565b34801561015757600080fd5b506100c161046b565b34801561016c57600080fd5b5061017561047b565b6040516001600160a01b03909116815260200161010a565b34801561019957600080fd5b506100c16101a8366004610cc3565b6104ee565b3480156101b957600080fd5b506100c16101c8366004610cc3565b610610565b3480156101d957600080fd5b5060c9546001600160a01b0316610175565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361023c5760405162461bcd60e51b815260040161023390610dba565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661026e610645565b6001600160a01b0316146102945760405162461bcd60e51b815260040161023390610e06565b61029d81610661565b604080516000808252602082019092526102b991839190610669565b50565b6102c46107d9565b6102cc610838565b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036103165760405162461bcd60e51b815260040161023390610dba565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610348610645565b6001600160a01b03161461036e5760405162461bcd60e51b815260040161023390610e06565b61037782610661565b61038382826001610669565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104225760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610233565b50600080516020610f4783398151915290565b61043d6107d9565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610233565b6104736107d9565b6102cc61088a565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa1580156104c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e99190610e52565b905090565b600054610100900460ff161580801561050e5750600054600160ff909116105b806105285750303b158015610528575060005460ff166001145b61058b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610233565b6000805460ff1916600117905580156105ae576000805461ff0019166101001790555b6105b7826108c7565b6105bf6108f7565b6105c7610926565b8015610383576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6106186107d9565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610233565b600080516020610f47833981519152546001600160a01b031690565b6102b96107d9565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156106a15761069c8361094d565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106fb575060408051601f3d908101601f191682019092526106f891810190610e6f565b60015b61075e5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610233565b600080516020610f4783398151915281146107cd5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610233565b5061069c8383836109e9565b336107e261047b565b6001600160a01b0316146102cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610233565b610840610a14565b60fc805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610892610a5d565b60fc805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861086d3390565b600054610100900460ff166108ee5760405162461bcd60e51b815260040161023390610e88565b6102b981610aa3565b600054610100900460ff1661091e5760405162461bcd60e51b815260040161023390610e88565b6102cc610aec565b600054610100900460ff166102cc5760405162461bcd60e51b815260040161023390610e88565b6001600160a01b0381163b6109ba5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610233565b600080516020610f4783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6109f283610b1f565b6000825111806109ff5750805b1561069c57610a0e8383610b5f565b50505050565b60fc5460ff166102cc5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610233565b60fc5460ff16156102cc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610233565b600054610100900460ff16610aca5760405162461bcd60e51b815260040161023390610e88565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16610b135760405162461bcd60e51b815260040161023390610e88565b60fc805460ff19169055565b610b288161094d565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b848383604051806060016040528060278152602001610f6760279139610b8b565b9392505050565b6060600080856001600160a01b031685604051610ba89190610ef7565b600060405180830381855af49150503d8060008114610be3576040519150601f19603f3d011682016040523d82523d6000602084013e610be8565b606091505b5091509150610bf986838387610c03565b9695505050505050565b60608315610c72578251600003610c6b576001600160a01b0385163b610c6b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610233565b5081610c7c565b610c7c8383610c84565b949350505050565b815115610c945781518083602001fd5b8060405162461bcd60e51b81526004016102339190610f13565b6001600160a01b03811681146102b957600080fd5b600060208284031215610cd557600080fd5b8135610b8481610cae565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610d0957600080fd5b8235610d1481610cae565b9150602083013567ffffffffffffffff80821115610d3157600080fd5b818501915085601f830112610d4557600080fd5b813581811115610d5757610d57610ce0565b604051601f8201601f19908116603f01168101908382118183101715610d7f57610d7f610ce0565b81604052828152886020848701011115610d9857600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610e6457600080fd5b8151610b8481610cae565b600060208284031215610e8157600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610eee578181015183820152602001610ed6565b50506000910152565b60008251610f09818460208701610ed3565b9190910192915050565b6020815260008251806020840152610f32816040850160208701610ed3565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220728238acc100e5a0f49d0586499a41bf3458739841c6aac64a2a1fed860dbb3364736f6c63430008120033", + "deployedBytecode": "0x60806040526004361061009c5760003560e01c8063715018a611610064578063715018a6146101365780638456cb591461014b5780638da5cb5b14610160578063c4d66de81461018d578063f2fde38b146101ad578063f762e734146101cd57600080fd5b80633659cfe6146100a15780633f4ba83a146100c35780634f1ef286146100d857806352d1902d146100eb5780635c975abb14610113575b600080fd5b3480156100ad57600080fd5b506100c16100bc366004610cc3565b6101eb565b005b3480156100cf57600080fd5b506100c16102bc565b6100c16100e6366004610cf6565b6102ce565b3480156100f757600080fd5b50610100610387565b6040519081526020015b60405180910390f35b34801561011f57600080fd5b5060fc5460ff16604051901515815260200161010a565b34801561014257600080fd5b506100c1610435565b34801561015757600080fd5b506100c161046b565b34801561016c57600080fd5b5061017561047b565b6040516001600160a01b03909116815260200161010a565b34801561019957600080fd5b506100c16101a8366004610cc3565b6104ee565b3480156101b957600080fd5b506100c16101c8366004610cc3565b610610565b3480156101d957600080fd5b5060c9546001600160a01b0316610175565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361023c5760405162461bcd60e51b815260040161023390610dba565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661026e610645565b6001600160a01b0316146102945760405162461bcd60e51b815260040161023390610e06565b61029d81610661565b604080516000808252602082019092526102b991839190610669565b50565b6102c46107d9565b6102cc610838565b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036103165760405162461bcd60e51b815260040161023390610dba565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610348610645565b6001600160a01b03161461036e5760405162461bcd60e51b815260040161023390610e06565b61037782610661565b61038382826001610669565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104225760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610233565b50600080516020610f4783398151915290565b61043d6107d9565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610233565b6104736107d9565b6102cc61088a565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa1580156104c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e99190610e52565b905090565b600054610100900460ff161580801561050e5750600054600160ff909116105b806105285750303b158015610528575060005460ff166001145b61058b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610233565b6000805460ff1916600117905580156105ae576000805461ff0019166101001790555b6105b7826108c7565b6105bf6108f7565b6105c7610926565b8015610383576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6106186107d9565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610233565b600080516020610f47833981519152546001600160a01b031690565b6102b96107d9565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156106a15761069c8361094d565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106fb575060408051601f3d908101601f191682019092526106f891810190610e6f565b60015b61075e5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610233565b600080516020610f4783398151915281146107cd5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610233565b5061069c8383836109e9565b336107e261047b565b6001600160a01b0316146102cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610233565b610840610a14565b60fc805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610892610a5d565b60fc805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861086d3390565b600054610100900460ff166108ee5760405162461bcd60e51b815260040161023390610e88565b6102b981610aa3565b600054610100900460ff1661091e5760405162461bcd60e51b815260040161023390610e88565b6102cc610aec565b600054610100900460ff166102cc5760405162461bcd60e51b815260040161023390610e88565b6001600160a01b0381163b6109ba5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610233565b600080516020610f4783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6109f283610b1f565b6000825111806109ff5750805b1561069c57610a0e8383610b5f565b50505050565b60fc5460ff166102cc5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610233565b60fc5460ff16156102cc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610233565b600054610100900460ff16610aca5760405162461bcd60e51b815260040161023390610e88565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16610b135760405162461bcd60e51b815260040161023390610e88565b60fc805460ff19169055565b610b288161094d565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610b848383604051806060016040528060278152602001610f6760279139610b8b565b9392505050565b6060600080856001600160a01b031685604051610ba89190610ef7565b600060405180830381855af49150503d8060008114610be3576040519150601f19603f3d011682016040523d82523d6000602084013e610be8565b606091505b5091509150610bf986838387610c03565b9695505050505050565b60608315610c72578251600003610c6b576001600160a01b0385163b610c6b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610233565b5081610c7c565b610c7c8383610c84565b949350505050565b815115610c945781518083602001fd5b8060405162461bcd60e51b81526004016102339190610f13565b6001600160a01b03811681146102b957600080fd5b600060208284031215610cd557600080fd5b8135610b8481610cae565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610d0957600080fd5b8235610d1481610cae565b9150602083013567ffffffffffffffff80821115610d3157600080fd5b818501915085601f830112610d4557600080fd5b813581811115610d5757610d57610ce0565b604051601f8201601f19908116603f01168101908382118183101715610d7f57610d7f610ce0565b81604052828152886020848701011115610d9857600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610e6457600080fd5b8151610b8481610cae565b600060208284031215610e8157600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610eee578181015183820152602001610ed6565b50506000910152565b60008251610f09818460208701610ed3565b9190910192915050565b6020815260008251806020840152610f32816040850160208701610ed3565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220728238acc100e5a0f49d0586499a41bf3458739841c6aac64a2a1fed860dbb3364736f6c63430008120033", "devdoc": { "author": "Lila Rest (https://lila.rest)", "custom:security-contact": "security@ledgity.comsecurity@ledgity.com", @@ -426,7 +426,7 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 8691, + "astId": 8986, "contract": "contracts/src/GlobalPause.sol:GlobalPause", "label": "_globalOwner", "offset": 0, @@ -434,7 +434,7 @@ "type": "t_contract(GlobalOwner)5028" }, { - "astId": 8775, + "astId": 9070, "contract": "contracts/src/GlobalPause.sol:GlobalPause", "label": "__gap", "offset": 0, diff --git a/contracts/hardhat/deployments/baseSepolia/GlobalPause_Proxy.json b/contracts/hardhat/deployments/baseSepolia/GlobalPause_Proxy.json index 8f1c2a66..fa0cd4dc 100644 --- a/contracts/hardhat/deployments/baseSepolia/GlobalPause_Proxy.json +++ b/contracts/hardhat/deployments/baseSepolia/GlobalPause_Proxy.json @@ -1,5 +1,5 @@ { - "address": "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", + "address": "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", "abi": [ { "inputs": [ @@ -71,51 +71,51 @@ "type": "receive" } ], - "transactionHash": "0xbfe5404b37eaf5c9a32b386664e15bb938e66ceab38d30aa011b15cf514e062e", + "transactionHash": "0xe8ac1502d733d95d2f1ef05db6aa8a9b84bdc562cddbb40a4bdd01974d6a448a", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", - "transactionIndex": 2, - "gasUsed": "335159", - "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000800000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000004000000080000000000000000020000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xa0e5f2241e4413c854e37fdfc5dae489206d959ee7f3148c655af621c151367f", - "transactionHash": "0xbfe5404b37eaf5c9a32b386664e15bb938e66ceab38d30aa011b15cf514e062e", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", + "transactionIndex": 8, + "gasUsed": "335171", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000002000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000080000000000800000000000000000000000000000000000400000000000000000000000000000000000000000420000000000000000000040000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000", + "blockHash": "0xff9998d0f8e28c4fec7276850d5bb30a93702fec75a1d938871cc6bb42693751", + "transactionHash": "0xe8ac1502d733d95d2f1ef05db6aa8a9b84bdc562cddbb40a4bdd01974d6a448a", "logs": [ { - "transactionIndex": 2, - "blockNumber": 9269421, - "transactionHash": "0xbfe5404b37eaf5c9a32b386664e15bb938e66ceab38d30aa011b15cf514e062e", - "address": "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", + "transactionIndex": 8, + "blockNumber": 12320768, + "transactionHash": "0xe8ac1502d733d95d2f1ef05db6aa8a9b84bdc562cddbb40a4bdd01974d6a448a", + "address": "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000001f3c77be982b11a391646cc50149f3cd23a7b61b" + "0x0000000000000000000000004ef07549078673e98b16d9c9c2d1319117a166ab" ], "data": "0x", - "logIndex": 2, - "blockHash": "0xa0e5f2241e4413c854e37fdfc5dae489206d959ee7f3148c655af621c151367f" + "logIndex": 143, + "blockHash": "0xff9998d0f8e28c4fec7276850d5bb30a93702fec75a1d938871cc6bb42693751" }, { - "transactionIndex": 2, - "blockNumber": 9269421, - "transactionHash": "0xbfe5404b37eaf5c9a32b386664e15bb938e66ceab38d30aa011b15cf514e062e", - "address": "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", + "transactionIndex": 8, + "blockNumber": 12320768, + "transactionHash": "0xe8ac1502d733d95d2f1ef05db6aa8a9b84bdc562cddbb40a4bdd01974d6a448a", + "address": "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 3, - "blockHash": "0xa0e5f2241e4413c854e37fdfc5dae489206d959ee7f3148c655af621c151367f" + "logIndex": 144, + "blockHash": "0xff9998d0f8e28c4fec7276850d5bb30a93702fec75a1d938871cc6bb42693751" } ], - "blockNumber": 9269421, - "cumulativeGasUsed": "713718", + "blockNumber": 12320768, + "cumulativeGasUsed": "6495855", "status": 1, "byzantium": true }, "args": [ - "0x1f3c77bE982B11a391646CC50149f3cD23A7b61B", - "0xc4d66de800000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b2" + "0x4Ef07549078673e98b16D9C9c2D1319117A166Ab", + "0xc4d66de8000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", diff --git a/contracts/hardhat/deployments/baseSepolia/LDY.json b/contracts/hardhat/deployments/baseSepolia/LDY.json index 1ec61dcb..f8f18527 100644 --- a/contracts/hardhat/deployments/baseSepolia/LDY.json +++ b/contracts/hardhat/deployments/baseSepolia/LDY.json @@ -1,5 +1,5 @@ { - "address": "0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E", + "address": "0x8584BCd220A048104e654F842C56E33d37d6aEe3", "abi": [ { "inputs": [], @@ -308,43 +308,43 @@ "type": "function" } ], - "transactionHash": "0x485a86d79fd8c3c604a79ae882f7f4de0cecb5c5ab44a30e2fd21aac0ee649ab", + "transactionHash": "0x6a46e4af4c456137568351ebb8c4fca3d479b5ba72328a72cc36cefd480cc693", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E", - "transactionIndex": 6, - "gasUsed": "716757", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000008000010000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000400000002000020000000000000000000000000000000000000000000000000000000000000800000", - "blockHash": "0x7f84da5102ddb2a9b06256fcd1f142a5ecab400a7d4556a0cd1529d5c9fbf7eb", - "transactionHash": "0x485a86d79fd8c3c604a79ae882f7f4de0cecb5c5ab44a30e2fd21aac0ee649ab", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x8584BCd220A048104e654F842C56E33d37d6aEe3", + "transactionIndex": 2, + "gasUsed": "713257", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000040000000000000000004000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000002000000000000000000400000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x81bb2fdd3da41684b5b53d72e46af1ddefdf8a647733c24e06317727d7eefabb", + "transactionHash": "0x6a46e4af4c456137568351ebb8c4fca3d479b5ba72328a72cc36cefd480cc693", "logs": [ { - "transactionIndex": 6, - "blockNumber": 9269441, - "transactionHash": "0x485a86d79fd8c3c604a79ae882f7f4de0cecb5c5ab44a30e2fd21aac0ee649ab", - "address": "0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E", + "transactionIndex": 2, + "blockNumber": 12320786, + "transactionHash": "0x6a46e4af4c456137568351ebb8c4fca3d479b5ba72328a72cc36cefd480cc693", + "address": "0x8584BCd220A048104e654F842C56E33d37d6aEe3", "topics": [ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000069b69dc81caf0b2ff53b946421f51b0ec276e679" + "0x0000000000000000000000000f97f63da69a5b86fe47517459d982198cba22d2" ], "data": "0x0000000000000000000000000000000000000000003e09de2596099e2b000000", - "logIndex": 4, - "blockHash": "0x7f84da5102ddb2a9b06256fcd1f142a5ecab400a7d4556a0cd1529d5c9fbf7eb" + "logIndex": 1, + "blockHash": "0x81bb2fdd3da41684b5b53d72e46af1ddefdf8a647733c24e06317727d7eefabb" } ], - "blockNumber": 9269441, - "cumulativeGasUsed": "1529152", + "blockNumber": 12320786, + "cumulativeGasUsed": "843922", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "15c81200c85905d33a34abc672a45266", - "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (lila@ledgity.com)\",\"custom:security-contact\":\"security@ledgity.com\",\"details\":\"The $LDY is the utility and governance token of the entire Ledgity ecosystem. This contract has been kept as minimal as possible to enforce stakeholders safety but also to pave the way for sensitive use cases like cross-chain bridging, use in governance scenarios, and compatibility with 3rd party DApps. It is non-upgradeable, non-ownable, non-pausable, non-mintable, and non-restrictable. It implements nothing more than what is provided by its OpenZepellin ancestors. Moreover, to eliminate the need for ownership and complex vesting functions, the entire supply is minted at deployment-time. Vesting of allocated tokens is then managed via Sablier streams that anyone can verify on this page: https://docs.ledgity.finance/tokenomics/vesting-proofs Specifications: - Name: Ledgity Token - Symbol: LDY - Decimals: 18 - Total supply: 75,000,000\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"burn(uint256)\":{\"details\":\"Destroys `amount` tokens from the caller. See {ERC20-_burn}.\"},\"burnFrom(address,uint256)\":{\"details\":\"Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`.\"},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.\"}},\"title\":\"LDY\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/LDY.sol\":\"LDY\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"./extensions/IERC20Metadata.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * The default value of {decimals} is 18. To change this, you should override\\n * this function so it returns a different value.\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20, IERC20Metadata {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor(string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the default value returned by this function, unless\\n * it's overridden.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, allowance(owner, spender) + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = allowance(owner, spender);\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `from` to `to`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(address from, address to, uint256 amount) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\\n // decrementing then incrementing.\\n _balances[to] += amount;\\n }\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n unchecked {\\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\\n _balances[account] += amount;\\n }\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n // Overflow not possible: amount <= accountBalance <= totalSupply.\\n _totalSupply -= amount;\\n }\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n}\\n\",\"keccak256\":\"0xa56ca923f70c1748830700250b19c61b70db9a683516dc5e216694a50445d99c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC20.sol\\\";\\nimport \\\"../../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\\n * tokens and those that they have an allowance for, in a way that can be\\n * recognized off-chain (via event analysis).\\n */\\nabstract contract ERC20Burnable is Context, ERC20 {\\n /**\\n * @dev Destroys `amount` tokens from the caller.\\n *\\n * See {ERC20-_burn}.\\n */\\n function burn(uint256 amount) public virtual {\\n _burn(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\\n * allowance.\\n *\\n * See {ERC20-_burn} and {ERC20-allowance}.\\n *\\n * Requirements:\\n *\\n * - the caller must have allowance for ``accounts``'s tokens of at least\\n * `amount`.\\n */\\n function burnFrom(address account, uint256 amount) public virtual {\\n _spendAllowance(account, _msgSender(), amount);\\n _burn(account, amount);\\n }\\n}\\n\",\"keccak256\":\"0x0d19410453cda55960a818e02bd7c18952a5c8fe7a3036e81f0d599f34487a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/src/LDY.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {ERC20} from \\\"@openzeppelin/contracts/token/ERC20/ERC20.sol\\\";\\nimport {ERC20Burnable} from \\\"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\\\";\\n\\n/**\\n * @title LDY\\n * @author Lila Rest (lila@ledgity.com)\\n * @dev The $LDY is the utility and governance token of the entire Ledgity ecosystem.\\n *\\n * This contract has been kept as minimal as possible to enforce stakeholders safety\\n * but also to pave the way for sensitive use cases like cross-chain bridging, use in\\n * governance scenarios, and compatibility with 3rd party DApps.\\n *\\n * It is non-upgradeable, non-ownable, non-pausable, non-mintable, and non-restrictable.\\n * It implements nothing more than what is provided by its OpenZepellin ancestors.\\n *\\n * Moreover, to eliminate the need for ownership and complex vesting functions, the\\n * entire supply is minted at deployment-time. Vesting of allocated tokens is then\\n * managed via Sablier streams that anyone can verify on this page:\\n * https://docs.ledgity.finance/tokenomics/vesting-proofs\\n *\\n * Specifications:\\n * - Name: Ledgity Token\\n * - Symbol: LDY\\n * - Decimals: 18\\n * - Total supply: 75,000,000\\n *\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LDY is ERC20, ERC20Burnable {\\n constructor() ERC20(\\\"Ledgity Token\\\", \\\"LDY\\\") {\\n _mint(msg.sender, 75_000_000 * 10 ** decimals());\\n }\\n}\\n\",\"keccak256\":\"0x7047fcacb023cb7af24c4d1d30ee577ba1fbab669f7f3f2463f3c729292e6d1d\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040518060400160405280600d81526020016c2632b233b4ba3c902a37b5b2b760991b815250604051806040016040528060038152602001624c445960e81b815250816003908162000065919062000229565b50600462000074828262000229565b505050620000af336200008c620000b560201b60201c565b6200009990600a6200040a565b620000a99063047868c062000422565b620000ba565b62000452565b601290565b6001600160a01b038216620001155760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200012991906200043c565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001b057607f821691505b602082108103620001d157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200018057600081815260208120601f850160051c81016020861015620002005750805b601f850160051c820191505b8181101562000221578281556001016200020c565b505050505050565b81516001600160401b0381111562000245576200024562000185565b6200025d816200025684546200019b565b84620001d7565b602080601f8311600181146200029557600084156200027c5750858301515b600019600386901b1c1916600185901b17855562000221565b600085815260208120601f198616915b82811015620002c657888601518255948401946001909101908401620002a5565b5085821015620002e55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200034c578160001904821115620003305762000330620002f5565b808516156200033e57918102915b93841c939080029062000310565b509250929050565b600082620003655750600162000404565b81620003745750600062000404565b81600181146200038d57600281146200039857620003b8565b600191505062000404565b60ff841115620003ac57620003ac620002f5565b50506001821b62000404565b5060208310610133831016604e8410600b8410161715620003dd575081810a62000404565b620003e983836200030b565b8060001904821115620004005762000400620002f5565b0290505b92915050565b60006200041b60ff84168362000354565b9392505050565b8082028115828204841417620004045762000404620002f5565b80820180821115620004045762000404620002f5565b610a0a80620004626000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc6101ee565b6040516100e9919061083b565b60405180910390f35b6101056101003660046108a5565b610280565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046108cf565b61029a565b604051601281526020016100e9565b6101056101573660046108a5565b6102be565b61016f61016a36600461090b565b6102e0565b005b61011961017f366004610924565b6001600160a01b031660009081526020819052604090205490565b61016f6101a83660046108a5565b6102ed565b6100dc610306565b6101056101c33660046108a5565b610315565b6101056101d63660046108a5565b610395565b6101196101e9366004610946565b6103a3565b6060600380546101fd90610979565b80601f016020809104026020016040519081016040528092919081815260200182805461022990610979565b80156102765780601f1061024b57610100808354040283529160200191610276565b820191906000526020600020905b81548152906001019060200180831161025957829003601f168201915b5050505050905090565b60003361028e8185856103ce565b60019150505b92915050565b6000336102a88582856104f3565b6102b385858561056d565b506001949350505050565b60003361028e8185856102d183836103a3565b6102db91906109b3565b6103ce565b6102ea3382610711565b50565b6102f88233836104f3565b6103028282610711565b5050565b6060600480546101fd90610979565b6000338161032382866103a3565b9050838110156103885760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102b382868684036103ce565b60003361028e81858561056d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104305760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161037f565b6001600160a01b0382166104915760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161037f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006104ff84846103a3565b90506000198114610567578181101561055a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161037f565b61056784848484036103ce565b50505050565b6001600160a01b0383166105d15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161037f565b6001600160a01b0382166106335760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161037f565b6001600160a01b038316600090815260208190526040902054818110156106ab5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161037f565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610567565b6001600160a01b0382166107715760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161037f565b6001600160a01b038216600090815260208190526040902054818110156107e55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161037f565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016104e6565b600060208083528351808285015260005b818110156108685785810183015185820160400152820161084c565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146108a057600080fd5b919050565b600080604083850312156108b857600080fd5b6108c183610889565b946020939093013593505050565b6000806000606084860312156108e457600080fd5b6108ed84610889565b92506108fb60208501610889565b9150604084013590509250925092565b60006020828403121561091d57600080fd5b5035919050565b60006020828403121561093657600080fd5b61093f82610889565b9392505050565b6000806040838503121561095957600080fd5b61096283610889565b915061097060208401610889565b90509250929050565b600181811c9082168061098d57607f821691505b6020821081036109ad57634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561029457634e487b7160e01b600052601160045260246000fdfea2646970667358221220c86cf8e823f28896890e319ee49aa9dcd9fffb156f0ab5c0a37a11e85937613564736f6c63430008120033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc6101ee565b6040516100e9919061083b565b60405180910390f35b6101056101003660046108a5565b610280565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046108cf565b61029a565b604051601281526020016100e9565b6101056101573660046108a5565b6102be565b61016f61016a36600461090b565b6102e0565b005b61011961017f366004610924565b6001600160a01b031660009081526020819052604090205490565b61016f6101a83660046108a5565b6102ed565b6100dc610306565b6101056101c33660046108a5565b610315565b6101056101d63660046108a5565b610395565b6101196101e9366004610946565b6103a3565b6060600380546101fd90610979565b80601f016020809104026020016040519081016040528092919081815260200182805461022990610979565b80156102765780601f1061024b57610100808354040283529160200191610276565b820191906000526020600020905b81548152906001019060200180831161025957829003601f168201915b5050505050905090565b60003361028e8185856103ce565b60019150505b92915050565b6000336102a88582856104f3565b6102b385858561056d565b506001949350505050565b60003361028e8185856102d183836103a3565b6102db91906109b3565b6103ce565b6102ea3382610711565b50565b6102f88233836104f3565b6103028282610711565b5050565b6060600480546101fd90610979565b6000338161032382866103a3565b9050838110156103885760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102b382868684036103ce565b60003361028e81858561056d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104305760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161037f565b6001600160a01b0382166104915760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161037f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006104ff84846103a3565b90506000198114610567578181101561055a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161037f565b61056784848484036103ce565b50505050565b6001600160a01b0383166105d15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161037f565b6001600160a01b0382166106335760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161037f565b6001600160a01b038316600090815260208190526040902054818110156106ab5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161037f565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610567565b6001600160a01b0382166107715760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161037f565b6001600160a01b038216600090815260208190526040902054818110156107e55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161037f565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016104e6565b600060208083528351808285015260005b818110156108685785810183015185820160400152820161084c565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146108a057600080fd5b919050565b600080604083850312156108b857600080fd5b6108c183610889565b946020939093013593505050565b6000806000606084860312156108e457600080fd5b6108ed84610889565b92506108fb60208501610889565b9150604084013590509250925092565b60006020828403121561091d57600080fd5b5035919050565b60006020828403121561093657600080fd5b61093f82610889565b9392505050565b6000806040838503121561095957600080fd5b61096283610889565b915061097060208401610889565b90509250929050565b600181811c9082168061098d57607f821691505b6020821081036109ad57634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561029457634e487b7160e01b600052601160045260246000fdfea2646970667358221220c86cf8e823f28896890e319ee49aa9dcd9fffb156f0ab5c0a37a11e85937613564736f6c63430008120033", + "solcInputHash": "1d9f98e9f73009a42653e1abaf15e178", + "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (lila@ledgity.com)\",\"custom:security-contact\":\"security@ledgity.com\",\"details\":\"The $LDY is the utility and governance token of the entire Ledgity ecosystem. This contract has been kept as minimal as possible to enforce stakeholders safety but also to pave the way for sensitive use cases like cross-chain bridging, use in governance scenarios, and compatibility with 3rd party DApps. It is non-upgradeable, non-ownable, non-pausable, non-mintable, and non-restrictable. It implements nothing more than what is provided by its OpenZepellin ancestors. Moreover, to eliminate the need for ownership and complex vesting functions, the entire supply is minted at deployment-time. Vesting of allocated tokens is then managed via Sablier streams that anyone can verify on this page: https://docs.ledgity.finance/tokenomics/vesting-proofs Specifications: - Name: Ledgity Token - Symbol: LDY - Decimals: 18 - Total supply: 75,000,000\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"burn(uint256)\":{\"details\":\"Destroys `amount` tokens from the caller. See {ERC20-_burn}.\"},\"burnFrom(address,uint256)\":{\"details\":\"Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`.\"},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.\"}},\"title\":\"LDY\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/LDY.sol\":\"LDY\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"./extensions/IERC20Metadata.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * The default value of {decimals} is 18. To change this, you should override\\n * this function so it returns a different value.\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20, IERC20Metadata {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor(string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the default value returned by this function, unless\\n * it's overridden.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, allowance(owner, spender) + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = allowance(owner, spender);\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `from` to `to`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(address from, address to, uint256 amount) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\\n // decrementing then incrementing.\\n _balances[to] += amount;\\n }\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n unchecked {\\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\\n _balances[account] += amount;\\n }\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n // Overflow not possible: amount <= accountBalance <= totalSupply.\\n _totalSupply -= amount;\\n }\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n}\\n\",\"keccak256\":\"0xa56ca923f70c1748830700250b19c61b70db9a683516dc5e216694a50445d99c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC20.sol\\\";\\nimport \\\"../../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\\n * tokens and those that they have an allowance for, in a way that can be\\n * recognized off-chain (via event analysis).\\n */\\nabstract contract ERC20Burnable is Context, ERC20 {\\n /**\\n * @dev Destroys `amount` tokens from the caller.\\n *\\n * See {ERC20-_burn}.\\n */\\n function burn(uint256 amount) public virtual {\\n _burn(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\\n * allowance.\\n *\\n * See {ERC20-_burn} and {ERC20-allowance}.\\n *\\n * Requirements:\\n *\\n * - the caller must have allowance for ``accounts``'s tokens of at least\\n * `amount`.\\n */\\n function burnFrom(address account, uint256 amount) public virtual {\\n _spendAllowance(account, _msgSender(), amount);\\n _burn(account, amount);\\n }\\n}\\n\",\"keccak256\":\"0x0d19410453cda55960a818e02bd7c18952a5c8fe7a3036e81f0d599f34487a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/src/LDY.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {ERC20} from \\\"@openzeppelin/contracts/token/ERC20/ERC20.sol\\\";\\nimport {ERC20Burnable} from \\\"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\\\";\\n\\n/**\\n * @title LDY\\n * @author Lila Rest (lila@ledgity.com)\\n * @dev The $LDY is the utility and governance token of the entire Ledgity ecosystem.\\n *\\n * This contract has been kept as minimal as possible to enforce stakeholders safety\\n * but also to pave the way for sensitive use cases like cross-chain bridging, use in\\n * governance scenarios, and compatibility with 3rd party DApps.\\n *\\n * It is non-upgradeable, non-ownable, non-pausable, non-mintable, and non-restrictable.\\n * It implements nothing more than what is provided by its OpenZepellin ancestors.\\n *\\n * Moreover, to eliminate the need for ownership and complex vesting functions, the\\n * entire supply is minted at deployment-time. Vesting of allocated tokens is then\\n * managed via Sablier streams that anyone can verify on this page:\\n * https://docs.ledgity.finance/tokenomics/vesting-proofs\\n *\\n * Specifications:\\n * - Name: Ledgity Token\\n * - Symbol: LDY\\n * - Decimals: 18\\n * - Total supply: 75,000,000\\n *\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LDY is ERC20, ERC20Burnable {\\n constructor() ERC20(\\\"Ledgity Token\\\", \\\"LDY\\\") {\\n _mint(msg.sender, 75_000_000 * 10 ** decimals());\\n }\\n}\\n\",\"keccak256\":\"0x7047fcacb023cb7af24c4d1d30ee577ba1fbab669f7f3f2463f3c729292e6d1d\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60806040523480156200001157600080fd5b506040518060400160405280600d81526020016c2632b233b4ba3c902a37b5b2b760991b815250604051806040016040528060038152602001624c445960e81b815250816003908162000065919062000229565b50600462000074828262000229565b505050620000af336200008c620000b560201b60201c565b6200009990600a6200040a565b620000a99063047868c062000422565b620000ba565b62000452565b601290565b6001600160a01b038216620001155760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200012991906200043c565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001b057607f821691505b602082108103620001d157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200018057600081815260208120601f850160051c81016020861015620002005750805b601f850160051c820191505b8181101562000221578281556001016200020c565b505050505050565b81516001600160401b0381111562000245576200024562000185565b6200025d816200025684546200019b565b84620001d7565b602080601f8311600181146200029557600084156200027c5750858301515b600019600386901b1c1916600185901b17855562000221565b600085815260208120601f198616915b82811015620002c657888601518255948401946001909101908401620002a5565b5085821015620002e55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200034c578160001904821115620003305762000330620002f5565b808516156200033e57918102915b93841c939080029062000310565b509250929050565b600082620003655750600162000404565b81620003745750600062000404565b81600181146200038d57600281146200039857620003b8565b600191505062000404565b60ff841115620003ac57620003ac620002f5565b50506001821b62000404565b5060208310610133831016604e8410600b8410161715620003dd575081810a62000404565b620003e983836200030b565b8060001904821115620004005762000400620002f5565b0290505b92915050565b60006200041b60ff84168362000354565b9392505050565b8082028115828204841417620004045762000404620002f5565b80820180821115620004045762000404620002f5565b6109fa80620004626000396000f3fe608060405234801561001057600080fd5b50600436106100bf5760003560e01c806342966c681161007c57806342966c681461014c57806370a082311461016157806379cc67901461018a57806395d89b411461019d578063a457c2d7146101a5578063a9059cbb146101b8578063dd62ed3e146101cb57600080fd5b806306fdde03146100c4578063095ea7b3146100e257806318160ddd1461010557806323b872dd14610117578063313ce5671461012a5780633950935114610139575b600080fd5b6100cc6101de565b6040516100d9919061082b565b60405180910390f35b6100f56100f0366004610895565b610270565b60405190151581526020016100d9565b6002545b6040519081526020016100d9565b6100f56101253660046108bf565b61028a565b604051601281526020016100d9565b6100f5610147366004610895565b6102ae565b61015f61015a3660046108fb565b6102d0565b005b61010961016f366004610914565b6001600160a01b031660009081526020819052604090205490565b61015f610198366004610895565b6102dd565b6100cc6102f6565b6100f56101b3366004610895565b610305565b6100f56101c6366004610895565b610385565b6101096101d9366004610936565b610393565b6060600380546101ed90610969565b80601f016020809104026020016040519081016040528092919081815260200182805461021990610969565b80156102665780601f1061023b57610100808354040283529160200191610266565b820191906000526020600020905b81548152906001019060200180831161024957829003601f168201915b5050505050905090565b60003361027e8185856103be565b60019150505b92915050565b6000336102988582856104e3565b6102a385858561055d565b506001949350505050565b60003361027e8185856102c18383610393565b6102cb91906109a3565b6103be565b6102da3382610701565b50565b6102e88233836104e3565b6102f28282610701565b5050565b6060600480546101ed90610969565b600033816103138286610393565b9050838110156103785760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102a382868684036103be565b60003361027e81858561055d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104205760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161036f565b6001600160a01b0382166104815760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161036f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006104ef8484610393565b90506000198114610557578181101561054a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161036f565b61055784848484036103be565b50505050565b6001600160a01b0383166105c15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161036f565b6001600160a01b0382166106235760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161036f565b6001600160a01b0383166000908152602081905260409020548181101561069b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161036f565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610557565b6001600160a01b0382166107615760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161036f565b6001600160a01b038216600090815260208190526040902054818110156107d55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161036f565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016104d6565b600060208083528351808285015260005b818110156108585785810183015185820160400152820161083c565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461089057600080fd5b919050565b600080604083850312156108a857600080fd5b6108b183610879565b946020939093013593505050565b6000806000606084860312156108d457600080fd5b6108dd84610879565b92506108eb60208501610879565b9150604084013590509250925092565b60006020828403121561090d57600080fd5b5035919050565b60006020828403121561092657600080fd5b61092f82610879565b9392505050565b6000806040838503121561094957600080fd5b61095283610879565b915061096060208401610879565b90509250929050565b600181811c9082168061097d57607f821691505b60208210810361099d57634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561028457634e487b7160e01b600052601160045260246000fdfea264697066735822122084b5c7dcceb1be8417fad4986345e161e42349843ad243e3e983818b9dadd07364736f6c63430008120033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100bf5760003560e01c806342966c681161007c57806342966c681461014c57806370a082311461016157806379cc67901461018a57806395d89b411461019d578063a457c2d7146101a5578063a9059cbb146101b8578063dd62ed3e146101cb57600080fd5b806306fdde03146100c4578063095ea7b3146100e257806318160ddd1461010557806323b872dd14610117578063313ce5671461012a5780633950935114610139575b600080fd5b6100cc6101de565b6040516100d9919061082b565b60405180910390f35b6100f56100f0366004610895565b610270565b60405190151581526020016100d9565b6002545b6040519081526020016100d9565b6100f56101253660046108bf565b61028a565b604051601281526020016100d9565b6100f5610147366004610895565b6102ae565b61015f61015a3660046108fb565b6102d0565b005b61010961016f366004610914565b6001600160a01b031660009081526020819052604090205490565b61015f610198366004610895565b6102dd565b6100cc6102f6565b6100f56101b3366004610895565b610305565b6100f56101c6366004610895565b610385565b6101096101d9366004610936565b610393565b6060600380546101ed90610969565b80601f016020809104026020016040519081016040528092919081815260200182805461021990610969565b80156102665780601f1061023b57610100808354040283529160200191610266565b820191906000526020600020905b81548152906001019060200180831161024957829003601f168201915b5050505050905090565b60003361027e8185856103be565b60019150505b92915050565b6000336102988582856104e3565b6102a385858561055d565b506001949350505050565b60003361027e8185856102c18383610393565b6102cb91906109a3565b6103be565b6102da3382610701565b50565b6102e88233836104e3565b6102f28282610701565b5050565b6060600480546101ed90610969565b600033816103138286610393565b9050838110156103785760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102a382868684036103be565b60003361027e81858561055d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104205760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161036f565b6001600160a01b0382166104815760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161036f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006104ef8484610393565b90506000198114610557578181101561054a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161036f565b61055784848484036103be565b50505050565b6001600160a01b0383166105c15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161036f565b6001600160a01b0382166106235760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161036f565b6001600160a01b0383166000908152602081905260409020548181101561069b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161036f565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610557565b6001600160a01b0382166107615760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161036f565b6001600160a01b038216600090815260208190526040902054818110156107d55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161036f565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016104d6565b600060208083528351808285015260005b818110156108585785810183015185820160400152820161083c565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461089057600080fd5b919050565b600080604083850312156108a857600080fd5b6108b183610879565b946020939093013593505050565b6000806000606084860312156108d457600080fd5b6108dd84610879565b92506108eb60208501610879565b9150604084013590509250925092565b60006020828403121561090d57600080fd5b5035919050565b60006020828403121561092657600080fd5b61092f82610879565b9392505050565b6000806040838503121561094957600080fd5b61095283610879565b915061096060208401610879565b90509250929050565b600181811c9082168061097d57607f821691505b60208210810361099d57634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561028457634e487b7160e01b600052601160045260246000fdfea264697066735822122084b5c7dcceb1be8417fad4986345e161e42349843ad243e3e983818b9dadd07364736f6c63430008120033", "devdoc": { "author": "Lila Rest (lila@ledgity.com)", "custom:security-contact": "security@ledgity.com", diff --git a/contracts/hardhat/deployments/baseSepolia/LDYStaking.json b/contracts/hardhat/deployments/baseSepolia/LDYStaking.json index 66f31f91..d4c72e01 100644 --- a/contracts/hardhat/deployments/baseSepolia/LDYStaking.json +++ b/contracts/hardhat/deployments/baseSepolia/LDYStaking.json @@ -1,5 +1,5 @@ { - "address": "0xA798B51F15B0024880f835723C681cB730835628", + "address": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", "abi": [ { "anonymous": false, @@ -288,6 +288,37 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getStakeDurationInfo", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "multiplier", + "type": "uint256" + } + ], + "internalType": "struct LDYStaking.StakeDurationInfo", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -525,6 +556,31 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "multiplier", + "type": "uint256" + } + ], + "internalType": "struct LDYStaking.StakeDurationInfo", + "name": "durationInfo", + "type": "tuple" + } + ], + "name": "pushStakeDurationInfo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -615,6 +671,32 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stakeAmountForPerks_", + "type": "uint256" + } + ], + "name": "setStakeAmountForPerks", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stakeDurationForPerks_", + "type": "uint256" + } + ], + "name": "setStakeDurationForPerks", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -715,6 +797,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "totalRewards", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "totalStaked", @@ -864,51 +959,51 @@ "type": "constructor" } ], - "transactionHash": "0x70d046b9d0e273798012ac8c923252c5aea8eb625053ff4b608b3f97b5363e11", + "transactionHash": "0x99dbf8271327e905e54667e9ef2b1d334d58993cccba2c4585c68fc0bf1a565c", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0xA798B51F15B0024880f835723C681cB730835628", - "transactionIndex": 9, - "gasUsed": "725364", - "logsBloom": "0x00000000000000000000200800000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000080000000000000000020000000000000000000000000000400000000000000000000000000000000000000000020100000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080", - "blockHash": "0xf031826e43ea12305cfb5f060dd15b7889f370bb50cb35d508082d5b383d3450", - "transactionHash": "0x70d046b9d0e273798012ac8c923252c5aea8eb625053ff4b608b3f97b5363e11", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", + "transactionIndex": 4, + "gasUsed": "634391", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000002000000000008000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000080000000000000000000000000000000000000000000400400000000000000000000000000000800000000000020000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x3927e8ec76fd878fd1b68f251a2f457c97a8f2820332e9ecc1bedca1bb21c67e", + "transactionHash": "0x99dbf8271327e905e54667e9ef2b1d334d58993cccba2c4585c68fc0bf1a565c", "logs": [ { - "transactionIndex": 9, - "blockNumber": 10098321, - "transactionHash": "0x70d046b9d0e273798012ac8c923252c5aea8eb625053ff4b608b3f97b5363e11", - "address": "0xA798B51F15B0024880f835723C681cB730835628", + "transactionIndex": 4, + "blockNumber": 12320796, + "transactionHash": "0x99dbf8271327e905e54667e9ef2b1d334d58993cccba2c4585c68fc0bf1a565c", + "address": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000e12589233c93262b182efb9b89e44d480e44ba7e" + "0x000000000000000000000000fd6792b610941081afa5108c7f1fd54767dd5b09" ], "data": "0x", - "logIndex": 23, - "blockHash": "0xf031826e43ea12305cfb5f060dd15b7889f370bb50cb35d508082d5b383d3450" + "logIndex": 45, + "blockHash": "0x3927e8ec76fd878fd1b68f251a2f457c97a8f2820332e9ecc1bedca1bb21c67e" }, { - "transactionIndex": 9, - "blockNumber": 10098321, - "transactionHash": "0x70d046b9d0e273798012ac8c923252c5aea8eb625053ff4b608b3f97b5363e11", - "address": "0xA798B51F15B0024880f835723C681cB730835628", + "transactionIndex": 4, + "blockNumber": 12320796, + "transactionHash": "0x99dbf8271327e905e54667e9ef2b1d334d58993cccba2c4585c68fc0bf1a565c", + "address": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 24, - "blockHash": "0xf031826e43ea12305cfb5f060dd15b7889f370bb50cb35d508082d5b383d3450" + "logIndex": 46, + "blockHash": "0x3927e8ec76fd878fd1b68f251a2f457c97a8f2820332e9ecc1bedca1bb21c67e" } ], - "blockNumber": 10098321, - "cumulativeGasUsed": "2216886", + "blockNumber": 12320796, + "cumulativeGasUsed": "2630690", "status": 1, "byzantium": true }, "args": [ - "0xe12589233C93262b182eFb9B89e44d480E44bA7E", - "0x63d0712000000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b20000000000000000000000009992cc9176f2b86c56fda697d814c1a054c2035e000000000000000000000000546b48297ce50fa31a383afe7df48297337c12b5000000000000000000000000e376bd13399f1f86ad659145a2bed2cdc24a7e5e00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000001ea6e0000000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000028de8000000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000000000000f537000000000000000000000000000000000000000000000000000000000000003a980000000000000000000000000000000000000000000000000000000001ea6e000000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000003d4dc0000000000000000000000000000000000000000000000000000000000000075300000000000000000000000000000000000000000000000000000000005bf4a000000000000000000000000000000000000000000000000000000000000009c40" + "0xfD6792b610941081aFA5108C7F1fD54767dD5B09", + "0x63d07120000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53000000000000000000000000061b0b71b87bd4ff6086011a17589ea08daa49a500000000000000000000000098002b5c06b44c8769da3dae97ca498ab6f971370000000000000000000000008584bcd220a048104e654f842c56e33d37d6aee300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000001ea6e0000000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000028de800000000000000000000000000000000000000000000000000000000000009c400000000000000000000000000000000000000000000000000000000000f53700000000000000000000000000000000000000000000000000000000000000ea600000000000000000000000000000000000000000000000000000000001ea6e0000000000000000000000000000000000000000000000000000000000000186a0" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", @@ -918,10 +1013,10 @@ "execute": { "methodName": "initialize", "args": [ - "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2", - "0x9992CC9176f2b86c56FDA697D814C1a054C2035e", - "0x546b48297Ce50FA31a383aFe7Df48297337c12B5", - "0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E", + "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", + "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", + "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", + "0x8584BCd220A048104e654F842C56E33d37d6aEe3", [ [ 0, @@ -929,30 +1024,22 @@ ], [ 2678400, - 12500 + 40000 ], [ 16070400, - 15000 + 60000 ], [ 32140800, - 20000 - ], - [ - 64281600, - 30000 - ], - [ - 96422400, - 40000 + 100000 ] ], 32140800, "1000000000000000000000" ] }, - "implementation": "0xe12589233C93262b182eFb9B89e44d480E44bA7E", + "implementation": "0xfD6792b610941081aFA5108C7F1fD54767dD5B09", "devdoc": { "details": "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.", "kind": "dev", diff --git a/contracts/hardhat/deployments/baseSepolia/LDYStaking_Implementation.json b/contracts/hardhat/deployments/baseSepolia/LDYStaking_Implementation.json index 208396b4..c2efc66f 100644 --- a/contracts/hardhat/deployments/baseSepolia/LDYStaking_Implementation.json +++ b/contracts/hardhat/deployments/baseSepolia/LDYStaking_Implementation.json @@ -1,5 +1,5 @@ { - "address": "0xe12589233C93262b182eFb9B89e44d480E44bA7E", + "address": "0xfD6792b610941081aFA5108C7F1fD54767dD5B09", "abi": [ { "inputs": [], @@ -285,6 +285,37 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "getStakeDurationInfo", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "multiplier", + "type": "uint256" + } + ], + "internalType": "struct LDYStaking.StakeDurationInfo", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -522,6 +553,31 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "multiplier", + "type": "uint256" + } + ], + "internalType": "struct LDYStaking.StakeDurationInfo", + "name": "durationInfo", + "type": "tuple" + } + ], + "name": "pushStakeDurationInfo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -612,6 +668,32 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stakeAmountForPerks_", + "type": "uint256" + } + ], + "name": "setStakeAmountForPerks", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "stakeDurationForPerks_", + "type": "uint256" + } + ], + "name": "setStakeDurationForPerks", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -712,6 +794,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "totalRewards", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "totalStaked", @@ -845,41 +940,41 @@ "type": "function" } ], - "transactionHash": "0x44b61d128ae1bb124bb9fcc96cff31b9be76f0aa598db526df4c6488f3a11e46", + "transactionHash": "0xe467e2a75cd31b6a1916fa320cf243077888d2d5455a096eb2847500fcd3a0f6", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0xe12589233C93262b182eFb9B89e44d480E44bA7E", - "transactionIndex": 5, - "gasUsed": "2645279", - "logsBloom": "0x040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000400000004000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x980b333c42a635774d8883ed59c0cd2fe9331af38917be41ff6f81d8e2ed0d05", - "transactionHash": "0x44b61d128ae1bb124bb9fcc96cff31b9be76f0aa598db526df4c6488f3a11e46", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0xfD6792b610941081aFA5108C7F1fD54767dD5B09", + "transactionIndex": 1, + "gasUsed": "2774860", + "logsBloom": "0x00000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000004000000000000000080000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x247bb6db175e02d13c5ba446782d67190dd81c797f07a64c93fb545c773599cb", + "transactionHash": "0xe467e2a75cd31b6a1916fa320cf243077888d2d5455a096eb2847500fcd3a0f6", "logs": [ { - "transactionIndex": 5, - "blockNumber": 10098315, - "transactionHash": "0x44b61d128ae1bb124bb9fcc96cff31b9be76f0aa598db526df4c6488f3a11e46", - "address": "0xe12589233C93262b182eFb9B89e44d480E44bA7E", + "transactionIndex": 1, + "blockNumber": 12320791, + "transactionHash": "0xe467e2a75cd31b6a1916fa320cf243077888d2d5455a096eb2847500fcd3a0f6", + "address": "0xfD6792b610941081aFA5108C7F1fD54767dD5B09", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "logIndex": 4, - "blockHash": "0x980b333c42a635774d8883ed59c0cd2fe9331af38917be41ff6f81d8e2ed0d05" + "logIndex": 0, + "blockHash": "0x247bb6db175e02d13c5ba446782d67190dd81c797f07a64c93fb545c773599cb" } ], - "blockNumber": 10098315, - "cumulativeGasUsed": "3151334", + "blockNumber": 12320791, + "cumulativeGasUsed": "2829899", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "77252ae545c4d734665a9c3f89121ce4", - "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardPerSec\",\"type\":\"uint256\"}],\"name\":\"NotifiedRewardAmount\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"RewardPaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Staked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Unstaked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MULTIPLIER_BASIS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"}],\"name\":\"earned\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finishAt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getEarnedUser\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"}],\"name\":\"getReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getUserStakes\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stakedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unStakeAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerTokenPaid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"internalType\":\"struct LDYStaking.StakingInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalBlacklist\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalPause\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"highTierAccounts\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"globalPause_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"globalBlacklist_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stakeRewardToken_\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"multiplier\",\"type\":\"uint256\"}],\"internalType\":\"struct LDYStaking.StakeDurationInfo[]\",\"name\":\"stakeDurationInfos_\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"stakeDurationForPerks_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakeAmountForPerks_\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastTimeRewardApplicable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"notifyRewardAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"recoverERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardPerToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardPerTokenStored\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardRatePerSec\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardsDuration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"setRewardsDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"stakeDurationIndex\",\"type\":\"uint8\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeAmountForPerks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeDurationForPerks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"stakeDurationInfos\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"multiplier\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeRewardToken\",\"outputs\":[{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"tierOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tier\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalStaked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalWeightedStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"}],\"name\":\"unstake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"userStakingInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"stakedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unStakeAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerTokenPaid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"This contract implements tierOf() function from LDYStaking as it's the only one the LToken contract relies on.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"NotifiedRewardAmount(uint256,uint256)\":{\"params\":{\"rewardAmount\":\"Reward amount added by admin.\",\"rewardPerSec\":\"RewardRatePerSec updated.\"}},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"RewardPaid(address,uint256,uint256)\":{\"params\":{\"reward\":\"Reward token amount\",\"stakeIndex\":\"User staking pool index\",\"user\":\"User address\"}},\"Staked(address,uint256,uint256)\":{\"params\":{\"amount\":\"Staked amount\",\"stakeIndex\":\"Latest index of user staking pool\",\"user\":\"User address\"}},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"Unstaked(address,uint256,uint256)\":{\"params\":{\"amount\":\"Staked amount\",\"stakeIndex\":\"User staking pool index\",\"user\":\"User address\"}},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"earned(address,uint256)\":{\"params\":{\"account\":\"Address of the user.\",\"stakeIndex\":\"Index of the stakePool\"},\"returns\":{\"_0\":\"Return earned amounts\"}},\"getEarnedUser(address)\":{\"params\":{\"account\":\"Address of the user.\"},\"returns\":{\"_0\":\"Return earned rewards array for a user.\"}},\"getReward(uint256)\":{\"details\":\"Emits a `RewardPaid` event upon successful reward claim.\",\"params\":{\"stakeIndex\":\"The index of user staking pool.\"}},\"getUserStakes(address)\":{\"params\":{\"account\":\"The address of user.\"},\"returns\":{\"_0\":\"StakingInfo array.\"}},\"globalBlacklist()\":{\"returns\":{\"_0\":\"The address of the GlobalBlacklist contract.\"}},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"globalPause()\":{\"returns\":{\"_0\":\"The address of the GlobalPause contract.\"}},\"initialize(address,address,address,address,(uint256,uint256)[],uint256,uint256)\":{\"details\":\"This function is intended for setting initial values for the contract's state variables.\",\"params\":{\"globalBlacklist_\":\"The address of the GlobalBlacklist contract.\",\"globalOwner_\":\"The address of the GlobalOwner contract.\",\"globalPause_\":\"The address of the GlobalPause contract.\",\"stakeAmountForPerks_\":\"Minimal staking amount for perks.\",\"stakeDurationForPerks_\":\"Minimal staking duration for perks.\",\"stakeDurationInfos_\":\"Available Staking Durations.\",\"stakeRewardToken_\":\"The address of stake and reward token(LDY token).\"}},\"lastTimeRewardApplicable()\":{\"returns\":{\"_0\":\"Timestamp of the most recent rewards calculation.\"}},\"notifyRewardAmount(uint256)\":{\"details\":\"Only callable by owner.\",\"params\":{\"amount\":\"The amount of reward to be distributed.\"}},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"paused()\":{\"returns\":{\"_0\":\"Whether the contract is paused or not.\"}},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"recoverERC20(address,uint256)\":{\"params\":{\"amount\":\"The amount of token to recover.\",\"tokenAddress\":\"The address of the token to recover.\"}},\"rewardPerToken()\":{\"returns\":{\"_0\":\"Current reward per token.\"}},\"setRewardsDuration(uint256)\":{\"details\":\"Only callable by owner, and setting available only after rewards period.\",\"params\":{\"duration\":\"The nmew rewards duration in seconds.\"}},\"stake(uint256,uint8)\":{\"details\":\"Emits a `Staked` event upon successful staking.\",\"params\":{\"amount\":\"The amount of tokens to stake.\",\"stakeDurationIndex\":\"The Index of stakeDurationInfos array.\"}},\"tierOf(address)\":{\"details\":\"tierOf() function that always return that the given account is not elligible to any LDY staking tier, except if the account is in the highTierAccounts mapping.\",\"params\":{\"account\":\"The account to check the tier of.\"}},\"unstake(uint256,uint256)\":{\"details\":\"Emits a `Unstaked` event upon successful withdrawal. On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\",\"params\":{\"amount\":\"The amount of tokens to withdraw.\",\"stakeIndex\":\"The index of user staking pool\"}},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"stateVariables\":{\"highTierAccounts\":{\"details\":\"This is notably used to allow PreMining contracts to benefit from 0% withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\"}},\"title\":\"LDYStaking\",\"version\":1},\"userdoc\":{\"events\":{\"NotifiedRewardAmount(uint256,uint256)\":{\"notice\":\"Emitted when admin add rewards.\"},\"RewardPaid(address,uint256,uint256)\":{\"notice\":\"Emitted when users claim rewards\"},\"Staked(address,uint256,uint256)\":{\"notice\":\"Emitted when users stake token\"},\"Unstaked(address,uint256,uint256)\":{\"notice\":\"Emitted when users unstake token\"}},\"kind\":\"user\",\"methods\":{\"MULTIPLIER_BASIS()\":{\"notice\":\"Decimals of multiplier\"},\"earned(address,uint256)\":{\"notice\":\"Calculate the user's stake pool earnings\"},\"finishAt()\":{\"notice\":\"Timestamp of when the rewards finish.\"},\"getEarnedUser(address)\":{\"notice\":\"Get the earned rewards array for a user.\"},\"getReward(uint256)\":{\"notice\":\"Claim pending rewards.\"},\"getUserStakes(address)\":{\"notice\":\"Get User Stake Data.\"},\"globalBlacklist()\":{\"notice\":\"Retrieves the address of GlobalBlacklist contract.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"globalPause()\":{\"notice\":\"Retrieves the address of GlobalPause contract.\"},\"highTierAccounts(address)\":{\"notice\":\"Holds a mapping of addresses that default to the highest staking tier.\"},\"initialize(address,address,address,address,(uint256,uint256)[],uint256,uint256)\":{\"notice\":\"Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\"},\"lastTimeRewardApplicable()\":{\"notice\":\"Get the last time when rewards were applicable for the specified reward token.\"},\"lastUpdateTime()\":{\"notice\":\"Timestamp of the reward updated.\"},\"notifyRewardAmount(uint256)\":{\"notice\":\"Notify the contract about the amount of rewards to be distributed and update reward parameters.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"paused()\":{\"notice\":\"Override of PausableUpgradeable.pause() that retrieves the pause state from the GlobalPause contract instead.\"},\"recoverERC20(address,uint256)\":{\"notice\":\"Recovers a specified amount of a given token address. Will fail if the contract doesn't hold enough tokens.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"rewardPerToken()\":{\"notice\":\"Calculate the reward per token for a given reward token.\"},\"rewardPerTokenStored()\":{\"notice\":\"Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\"},\"rewardRatePerSec()\":{\"notice\":\"Reward per second(total rewards / duration).\"},\"rewardsDuration()\":{\"notice\":\"Duration of the rewards (in seconds).\"},\"setRewardsDuration(uint256)\":{\"notice\":\"Update Rewards Duration.\"},\"stake(uint256,uint8)\":{\"notice\":\"Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\"},\"stakeAmountForPerks()\":{\"notice\":\"Minimal stake amount for perks.\"},\"stakeDurationForPerks()\":{\"notice\":\"Minimal stake duration for perks.\"},\"stakeDurationInfos(uint256)\":{\"notice\":\"Stake durations info array.\"},\"stakeRewardToken()\":{\"notice\":\"Stake and Reward token.\"},\"totalStaked()\":{\"notice\":\"Total staked amounts.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"unstake(uint256,uint256)\":{\"notice\":\"Withdraw staked tokens after stakeDuration has passed.\"},\"userStakingInfo(address,uint256)\":{\"notice\":\"User stakingInfo map, user address => array of the staking info\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/LDYStaking.sol\":\"LDYStaking\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x40c636b4572ff5f1dc50cf22097e93c0723ee14eff87e99ac2b02636eeca1250\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Returns true if the reentrancy guard is currently set to \\\"entered\\\", which indicates there is a\\n * `nonReentrant` function in the call stack.\\n */\\n function _reentrancyGuardEntered() internal view returns (bool) {\\n return _status == _ENTERED;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xb82ef33f43b6b96109687d91b39c94573fdccaaa423fe28e8ba0977b31c023e0\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x0e1f0f5f62f67a881cd1a9597acbc0a5e4071f3c2c10449a183b922ae7272e3f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n */\\ninterface IERC20PermitUpgradeable {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xd60f939a3ca0199014d079b4dd66aa757954334947d81eb5c1d35d7a83061ab3\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../extensions/IERC20PermitUpgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n /**\\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n /**\\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n */\\n function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n }\\n }\\n\\n /**\\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to\\n * 0 before setting it to a non-zero value.\\n */\\n function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20PermitUpgradeable token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n *\\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0x4dae161227d332808312ee2caf6384929321b83c16cc89b5642985fbec6b814c\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalBlacklist.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalBlacklist\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global mapping of blacklisted accounts shared by all contracts of the\\n * Ledgity Yield codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers\\n * and getter functions to easily check against this global blacklist.\\n *\\n * @dev For further details, see \\\"GlobalBlacklist\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalBlacklist is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\\n /**\\n * @notice Mapping of accounts to their blacklist status.\\n * @dev This mapping is made private and isBlacklisted() should be used instead.This\\n * helps saving gas in some scenario. See isBlacklisted() documentation for more details.\\n */\\n mapping(address => bool) private _list;\\n\\n /// @dev Emitted when `account` is blacklisted.\\n event Blacklisted(address account);\\n\\n /// @dev Emitted when `account` is unblacklisted.\\n event Unblacklisted(address account);\\n\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @notice Adds a given account to the blacklist.\\n * @param account The account's address to be blacklisted.\\n */\\n function blacklist(address account) external onlyOwner {\\n require(account != address(0), \\\"L20\\\");\\n _list[account] = true;\\n emit Blacklisted(account);\\n }\\n\\n /**\\n * @notice Removes a given account from the blacklist.\\n * @param account The account's address to be un-blacklisted.\\n */\\n function unBlacklist(address account) external onlyOwner {\\n _list[account] = false;\\n emit Unblacklisted(account);\\n }\\n\\n /**\\n * @notice Checks whether a given account is blacklisted.\\n * @param account Address of the account to check.\\n * @return 'true' if the account is blacklisted, 'false' otherwise\\n */\\n function isBlacklisted(address account) external view returns (bool) {\\n // Gas optimization: Avoid accessing storage if account is the zero address\\n // (e.g, during a mint or a burn of tokens)\\n if (account == address(0)) return false;\\n\\n // Else, return current account's blacklist status\\n return _list[account];\\n }\\n}\\n\",\"keccak256\":\"0x7e771076a06cfec935df22cf2d307df7e1f7df5b887976ec1dea30f8b68a878d\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/GlobalPause.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalPause\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global pause state shared by all contracts of the Ledgity Yield\\n * codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalPausableUpgradeable abstract contract. This provides them with an overriden\\n * paused() function that retrieves the pause state from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalPause\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalPause is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n PausableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev Public implementation of PausableUpgradeable's pausing and unpausing functions\\n * but restricted to contract's owner.\\n */\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n}\\n\",\"keccak256\":\"0x9a0767e761dbd1d5800db03558c3903f229e6ef29f5fe5ff38f45fb4d7572e2e\",\"license\":\"MIT\"},\"contracts/src/LDYStaking.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Contracts\\nimport {ReentrancyGuardUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\\\";\\nimport {BaseUpgradeable} from \\\"./abstracts/base/BaseUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title LDYStaking\\n * @custom:security-contact security@ledgity.com\\n *\\n * @dev This contract implements tierOf() function from LDYStaking as it's the only\\n * one the LToken contract relies on.\\n *\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LDYStaking is BaseUpgradeable, ReentrancyGuardUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /**\\n * @notice Represents a user staking info in array.\\n * @param stakedAmount Amount of the stake.\\n * @param unStakeAt Unstake at.\\n * @param duration Staking period in seconds.\\n * @param rewardPerTokenPaid Reward per token paid.\\n * @param rewards Rewards to be claimed.\\n */\\n struct StakingInfo {\\n uint256 stakedAmount;\\n uint256 unStakeAt;\\n uint256 duration;\\n uint256 rewardPerTokenPaid;\\n uint256 rewards;\\n }\\n\\n /**\\n * @notice Represent duration and multiplier per each stake option.\\n * @param duration Staking period in seconds.\\n * @param multiplier Token weight\\n */\\n struct StakeDurationInfo {\\n uint256 duration;\\n uint256 multiplier;\\n }\\n\\n /// @notice Decimals of multiplier\\n uint256 public constant MULTIPLIER_BASIS = 1e4;\\n\\n /// @notice Stake and Reward token.\\n IERC20Upgradeable public stakeRewardToken;\\n\\n /// @notice Minimal stake duration for perks.\\n uint256 public stakeDurationForPerks;\\n\\n /// @notice Minimal stake amount for perks.\\n uint256 public stakeAmountForPerks;\\n\\n /// @notice Stake durations info array.\\n StakeDurationInfo[] public stakeDurationInfos;\\n\\n /// @notice Duration of the rewards (in seconds).\\n uint256 public rewardsDuration;\\n\\n /// @notice Timestamp of when the rewards finish.\\n uint256 public finishAt;\\n\\n /// @notice Timestamp of the reward updated.\\n uint256 public lastUpdateTime;\\n\\n /// @notice Reward per second(total rewards / duration).\\n uint256 public rewardRatePerSec;\\n\\n /// @notice Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\\n uint256 public rewardPerTokenStored;\\n\\n /// @notice Total staked amounts.\\n uint256 public totalStaked;\\n\\n // Total staked amounts with multiplier applied\\n uint256 public totalWeightedStake;\\n\\n /// @notice User stakingInfo map, user address => array of the staking info\\n mapping(address => StakingInfo[]) public userStakingInfo;\\n\\n /**\\n * @notice Emitted when users stake token\\n * @param user User address\\n * @param stakeIndex Latest index of user staking pool\\n * @param amount Staked amount\\n */\\n event Staked(address indexed user, uint256 stakeIndex, uint256 amount);\\n\\n /**\\n * @notice Emitted when users unstake token\\n * @param user User address\\n * @param stakeIndex User staking pool index\\n * @param amount Staked amount\\n */\\n event Unstaked(address indexed user, uint256 stakeIndex, uint256 amount);\\n\\n /**\\n * @notice Emitted when users claim rewards\\n * @param user User address\\n * @param stakeIndex User staking pool index\\n * @param reward Reward token amount\\n */\\n event RewardPaid(address indexed user, uint256 stakeIndex, uint256 reward);\\n\\n /**\\n * @notice Emitted when admin add rewards.\\n * @param rewardAmount Reward amount added by admin.\\n * @param rewardPerSec RewardRatePerSec updated.\\n */\\n event NotifiedRewardAmount(uint256 rewardAmount, uint256 rewardPerSec);\\n\\n /**\\n * @notice Holds a mapping of addresses that default to the highest staking tier.\\n * @dev This is notably used to allow PreMining contracts to benefit from 0%\\n * withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\\n */\\n mapping(address => bool) public highTierAccounts;\\n\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\\n * @dev This function is intended for setting initial values for the contract's state variables.\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param stakeRewardToken_ The address of stake and reward token(LDY token).\\n * @param stakeDurationInfos_ Available Staking Durations.\\n * @param stakeDurationForPerks_ Minimal staking duration for perks.\\n * @param stakeAmountForPerks_ Minimal staking amount for perks.\\n */\\n function initialize(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n address stakeRewardToken_,\\n StakeDurationInfo[] memory stakeDurationInfos_,\\n uint256 stakeDurationForPerks_,\\n uint256 stakeAmountForPerks_\\n ) public initializer {\\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\\n stakeRewardToken = IERC20Upgradeable(stakeRewardToken_);\\n uint stakeDurationInfosLength = stakeDurationInfos_.length;\\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\\n stakeDurationInfos.push(stakeDurationInfos_[i]);\\n }\\n stakeDurationForPerks = stakeDurationForPerks_;\\n stakeAmountForPerks = stakeAmountForPerks_;\\n }\\n\\n // --------------------\\n // MUTATIVE FUNCTIONS\\n // --------------------\\n\\n /**\\n * @notice Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\\n * @dev Emits a `Staked` event upon successful staking.\\n * @param amount The amount of tokens to stake.\\n * @param stakeDurationIndex The Index of stakeDurationInfos array.\\n */\\n function stake(\\n uint256 amount,\\n uint8 stakeDurationIndex\\n ) external nonReentrant whenNotPaused notBlacklisted(_msgSender()) {\\n require(amount > 0, \\\"amount = 0\\\");\\n require(stakeDurationIndex <= stakeDurationInfos.length - 1, \\\"Invalid staking period\\\");\\n\\n _updateReward(address(0), 0);\\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[stakeDurationIndex];\\n StakingInfo memory stakingInfo = StakingInfo({\\n stakedAmount: amount,\\n unStakeAt: block.timestamp + stakeDurationInfo.duration,\\n duration: stakeDurationInfo.duration,\\n rewardPerTokenPaid: rewardPerTokenStored,\\n rewards: 0\\n });\\n\\n // check whether account is eligible for benefit from the protocol\\n if (stakeDurationInfo.duration >= stakeDurationForPerks && amount >= stakeAmountForPerks) {\\n highTierAccounts[_msgSender()] = true;\\n }\\n\\n userStakingInfo[_msgSender()].push(stakingInfo);\\n\\n uint256 stakeIndex = userStakingInfo[_msgSender()].length - 1;\\n uint256 weightedStake = (amount * stakeDurationInfo.multiplier) / MULTIPLIER_BASIS;\\n totalWeightedStake += weightedStake;\\n totalStaked += amount;\\n\\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\\n\\n emit Staked(_msgSender(), stakeIndex, amount);\\n }\\n\\n /**\\n * @notice Withdraw staked tokens after stakeDuration has passed.\\n * @dev Emits a `Unstaked` event upon successful withdrawal.\\n * On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\\n * @param amount The amount of tokens to withdraw.\\n * @param stakeIndex The index of user staking pool\\n */\\n function unstake(\\n uint256 amount,\\n uint256 stakeIndex\\n ) external nonReentrant notBlacklisted(_msgSender()) {\\n require(amount > 0, \\\"amount = 0\\\");\\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \\\"Invalid stakeIndex\\\");\\n require(\\n block.timestamp >= userStakingInfo[_msgSender()][stakeIndex].unStakeAt,\\n \\\"Cannot unstake during staking period\\\"\\n );\\n require(\\n amount <= userStakingInfo[_msgSender()][stakeIndex].stakedAmount,\\n \\\"Insufficient unstake amount\\\"\\n );\\n\\n _updateReward(_msgSender(), stakeIndex);\\n\\n uint256 multiplier = _getMultiplier(userStakingInfo[_msgSender()][stakeIndex].duration);\\n\\n uint256 currentWeightedStake = (amount * multiplier) / MULTIPLIER_BASIS;\\n totalWeightedStake -= currentWeightedStake;\\n\\n totalStaked -= amount;\\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount -= amount;\\n\\n // check whether account is eligible for benefit from the protocol\\n if (\\n userStakingInfo[_msgSender()][stakeIndex].duration >= stakeDurationForPerks &&\\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount < stakeAmountForPerks\\n ) {\\n highTierAccounts[_msgSender()] = false;\\n }\\n\\n // remove staking info from array on full withdrawal\\n if (userStakingInfo[_msgSender()][stakeIndex].stakedAmount == 0) {\\n _claimReward(_msgSender(), stakeIndex);\\n\\n userStakingInfo[_msgSender()][stakeIndex] = userStakingInfo[_msgSender()][\\n userStakingInfo[_msgSender()].length - 1\\n ];\\n userStakingInfo[_msgSender()].pop();\\n }\\n stakeRewardToken.safeTransfer(_msgSender(), amount);\\n\\n emit Unstaked(_msgSender(), stakeIndex, amount);\\n }\\n\\n /**\\n * @notice Claim pending rewards.\\n * @dev Emits a `RewardPaid` event upon successful reward claim.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function getReward(uint256 stakeIndex) external nonReentrant notBlacklisted(_msgSender()) {\\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \\\"Invalid stakeIndex\\\");\\n _updateReward(_msgSender(), stakeIndex);\\n _claimReward(_msgSender(), stakeIndex);\\n }\\n\\n // --------------------\\n // ADMIN CONFIGURATION\\n // --------------------\\n\\n /**\\n * @notice Update Rewards Duration.\\n * @dev Only callable by owner, and setting available only after rewards period.\\n * @param duration The nmew rewards duration in seconds.\\n */\\n function setRewardsDuration(uint256 duration) external onlyOwner {\\n require(finishAt < block.timestamp, \\\"reward duration is not finished\\\");\\n rewardsDuration = duration;\\n }\\n\\n /**\\n * @notice Notify the contract about the amount of rewards to be distributed and update reward parameters.\\n * @dev Only callable by owner.\\n * @param amount The amount of reward to be distributed.\\n */\\n function notifyRewardAmount(uint256 amount) external onlyOwner {\\n require(rewardsDuration > 0, \\\"rewards duration is not set\\\");\\n require(amount > 0, \\\"amount = 0\\\");\\n\\n _updateReward(address(0), 0);\\n\\n if (block.timestamp >= finishAt) {\\n rewardRatePerSec = amount / rewardsDuration;\\n } else {\\n uint256 remainingRewards = (finishAt - block.timestamp) * rewardRatePerSec;\\n rewardRatePerSec = (amount + remainingRewards) / rewardsDuration;\\n }\\n\\n require(rewardRatePerSec > 0, \\\"reward rate = 0\\\");\\n require(\\n rewardRatePerSec <=\\n (stakeRewardToken.balanceOf(address(this)) + amount - totalStaked) /\\n rewardsDuration,\\n \\\"reward amount > balance\\\"\\n );\\n\\n finishAt = block.timestamp + rewardsDuration;\\n lastUpdateTime = block.timestamp;\\n\\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\\n\\n emit NotifiedRewardAmount(amount, rewardRatePerSec);\\n }\\n\\n // --------------------\\n // VIEW FUNCTIONS\\n // --------------------\\n\\n /**\\n * @notice Get the last time when rewards were applicable for the specified reward token.\\n * @return Timestamp of the most recent rewards calculation.\\n */\\n function lastTimeRewardApplicable() public view returns (uint256) {\\n return _min(finishAt, block.timestamp);\\n }\\n\\n /**\\n * @notice Calculate the reward per token for a given reward token.\\n * @return Current reward per token.\\n */\\n function rewardPerToken() public view returns (uint256) {\\n if (totalStaked == 0) {\\n return rewardPerTokenStored;\\n }\\n\\n return\\n rewardPerTokenStored +\\n ((rewardRatePerSec * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) /\\n totalWeightedStake);\\n }\\n\\n /**\\n * @notice Calculate the user's stake pool earnings\\n * @param account Address of the user.\\n * @param stakeIndex Index of the stakePool\\n * @return Return earned amounts\\n */\\n function earned(address account, uint256 stakeIndex) public view returns (uint256) {\\n StakingInfo memory userInfo = userStakingInfo[account][stakeIndex];\\n uint256 multiplier = _getMultiplier(userInfo.duration);\\n uint256 weightedAmount = (userInfo.stakedAmount * multiplier) / MULTIPLIER_BASIS;\\n uint256 rewardsSinceLastUpdate = ((weightedAmount *\\n (rewardPerToken() - userInfo.rewardPerTokenPaid)) / 1e18);\\n return rewardsSinceLastUpdate + userInfo.rewards;\\n }\\n\\n /**\\n * @notice Get the earned rewards array for a user.\\n * @param account Address of the user.\\n * @return Return earned rewards array for a user.\\n */\\n function getEarnedUser(address account) public view returns (uint256[] memory) {\\n uint256 numberOfPools = userStakingInfo[account].length;\\n uint256[] memory earnedArray = new uint256[](numberOfPools);\\n for (uint256 index; index < numberOfPools; index++) {\\n earnedArray[index] = earned(account, index);\\n }\\n return earnedArray;\\n }\\n\\n /**\\n * @dev tierOf() function that always return that the given account is not\\n * elligible to any LDY staking tier, except if the account is in the\\n * highTierAccounts mapping.\\n * @param account The account to check the tier of.\\n */\\n function tierOf(address account) public view returns (uint256 tier) {\\n if (highTierAccounts[account]) return 3;\\n return 0;\\n }\\n\\n /**\\n * @notice Get User Stake Data.\\n * @param account The address of user.\\n * @return StakingInfo array.\\n */\\n function getUserStakes(address account) external view returns (StakingInfo[] memory) {\\n return userStakingInfo[account];\\n }\\n\\n /**\\n * @notice Send rewards to user.\\n * @dev This is private function, called by getReward function.\\n * @param account The address of user.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function _claimReward(address account, uint256 stakeIndex) private {\\n uint256 reward = userStakingInfo[account][stakeIndex].rewards;\\n\\n if (reward > 0) {\\n userStakingInfo[account][stakeIndex].rewards = 0;\\n stakeRewardToken.safeTransfer(account, reward);\\n emit RewardPaid(account, stakeIndex, reward);\\n }\\n }\\n\\n /**\\n * @notice Calculate and update user rewards per stakeIndex.\\n * @dev this is private function, called by stake, unstake, getRewards, and notifyRewardAmount functions.\\n * @param account The address of user.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function _updateReward(address account, uint256 stakeIndex) private {\\n rewardPerTokenStored = rewardPerToken();\\n lastUpdateTime = lastTimeRewardApplicable();\\n\\n if (account != address(0)) {\\n userStakingInfo[account][stakeIndex].rewards = earned(account, stakeIndex);\\n userStakingInfo[account][stakeIndex].rewardPerTokenPaid = rewardPerTokenStored;\\n }\\n }\\n\\n /**\\n * @notice Get multiplier from stakeDurationInfo based on duration\\n * @param duration Stake Duration\\n */\\n function _getMultiplier(uint256 duration) private view returns (uint256) {\\n uint256 stakeDurationInfosLength = stakeDurationInfos.length;\\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[i];\\n if (duration == stakeDurationInfo.duration) {\\n return stakeDurationInfo.multiplier;\\n }\\n }\\n return 0;\\n }\\n\\n /**\\n * @notice Take minimum value between x and y.\\n */\\n function _min(uint256 x, uint256 y) private pure returns (uint256) {\\n return x <= y ? x : y;\\n }\\n}\\n\",\"keccak256\":\"0x9ede458867436354edae8f8ac3f5c4b777ebcf7b3b26eec612e7771a0c8e90d8\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalPausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalPause} from \\\"../GlobalPause.sol\\\";\\n\\n/**\\n * @title GlobalPausableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit a pause state from the specified GlobalPause\\n * contract (see GlobalPause.sol). This design facilitates centralized management of\\n * pause state for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure\\n * The _globalPause state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalPausableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalPausableUpgradeable is Initializable, PausableUpgradeable {\\n /**\\n * @notice The GlobalPause contract the pause state will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalPause private _globalPause;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalPause_ The address of the GlobalPause contract.\\n */\\n function __GlobalPausable_init(address globalPause_) internal onlyInitializing {\\n __Pausable_init();\\n __GlobalPausable_init_unchained(globalPause_);\\n }\\n\\n function __GlobalPausable_init_unchained(address globalPause_) internal onlyInitializing {\\n _globalPause = GlobalPause(globalPause_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalPause contract.\\n * @return The address of the GlobalPause contract.\\n */\\n function globalPause() public view returns (address) {\\n return address(_globalPause);\\n }\\n\\n /**\\n * @notice Override of PausableUpgradeable.pause() that retrieves the pause state\\n * from the GlobalPause contract instead.\\n * @return Whether the contract is paused or not.\\n */\\n function paused() public view virtual override returns (bool) {\\n return _globalPause.paused();\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xff508c0b8c48916885453b4894d0401e94580fb24fb6af1885a3e160864cde94\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalRestrictableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalBlacklist} from \\\"../GlobalBlacklist.sol\\\";\\n\\n/**\\n * @title GlobalRestrictableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit a blacklist state from the specified\\n * GlobalBlacklist contract (see GlobalBlacklist.sol). This design facilitates\\n * centralized management of a blacklist for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalBlacklist state must be set at initialization time and, for evident\\n * security reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalRestrictableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalRestrictableUpgradeable is Initializable {\\n /**\\n * @notice The GlobalBlacklist contract the blacklist state will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalBlacklist private _globalBlacklist;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n */\\n function __GlobalRestrictable_init(address globalBlacklist_) internal onlyInitializing {\\n __GlobalRestrictable_init_unchained(globalBlacklist_);\\n }\\n\\n function __GlobalRestrictable_init_unchained(\\n address globalBlacklist_\\n ) internal onlyInitializing {\\n _globalBlacklist = GlobalBlacklist(globalBlacklist_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalBlacklist contract.\\n * @return The address of the GlobalBlacklist contract.\\n */\\n function globalBlacklist() public view returns (address) {\\n return address(_globalBlacklist);\\n }\\n\\n /**\\n * @notice Reverts if the given account is blacklisted by the GlobalBlacklist contract.\\n * @param account Address to verify.\\n */\\n modifier notBlacklisted(address account) {\\n require(isBlacklisted(account) == false, \\\"L9\\\");\\n _;\\n }\\n\\n /**\\n * @notice Checks if the given account is blacklisted by the GlobalBlacklist contract.\\n * @param account Address to verify.\\n * @return Whether the account is blacklisted.\\n */\\n function isBlacklisted(address account) internal view returns (bool) {\\n return _globalBlacklist.isBlacklisted(account);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x0032fde90d9cf23e70dd4b604ae0d1ed3283f117bc24f68d32f8933e1bd372bc\",\"license\":\"MIT\"},\"contracts/src/abstracts/RecoverableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Conracts\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./GlobalOwnableUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title RecoverableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts are provided with helper functions allowing the recovery of\\n * assets accidentally sent to them.\\n *\\n * @dev Where are utilities Ether, ERC721, etc.?\\n * This abstract contract currently supports only ERC20 tokens. Derived contracts\\n * in this codebase currently do not implement the necessary functions to receive Ether\\n * or ERC721/ERC1155 tokens, so no recovery functions are provided for these assets.\\n *\\n * @dev For further details, see \\\"RecoverableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract RecoverableUpgradeable is Initializable, GlobalOwnableUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __Recoverable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init(globalOwner_);\\n __Recoverable_init_unchained();\\n }\\n\\n function __Recoverable_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Recovers a specified amount of a given token address. Will fail if the\\n * contract doesn't hold enough tokens.\\n * @param tokenAddress The address of the token to recover.\\n * @param amount The amount of token to recover.\\n */\\n function recoverERC20(address tokenAddress, uint256 amount) public virtual onlyOwner {\\n // Ensure the specified amount is not zero\\n require(amount > 0, \\\"L10\\\");\\n\\n // Create a reference to token's contract\\n IERC20Upgradeable tokenContract = IERC20Upgradeable(tokenAddress);\\n\\n // Ensure there is enough token to recover\\n require(tokenContract.balanceOf(address(this)) >= amount, \\\"L11\\\");\\n\\n // Transfer the recovered token amount to the sender\\n tokenContract.safeTransfer(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xc70110d1284c9e4aa7c518b3b98682dd9edbe6f6fb23761d825554ba41a80d5e\",\"license\":\"MIT\"},\"contracts/src/abstracts/base/BaseUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalPausableUpgradeable} from \\\"../GlobalPausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"../GlobalOwnableUpgradeable.sol\\\";\\nimport {GlobalRestrictableUpgradeable} from \\\"../GlobalRestrictableUpgradeable.sol\\\";\\nimport {RecoverableUpgradeable} from \\\"../RecoverableUpgradeable.sol\\\";\\n\\n/**\\n * @title BaseUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This abstract contract acts as a base for numerous contracts in this codebase,\\n * minimizing code repetition and enhancing readability and maintainability.\\n *\\n * @dev For further details, see \\\"Base\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract BaseUpgradeable is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n GlobalPausableUpgradeable,\\n GlobalRestrictableUpgradeable,\\n RecoverableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n */\\n function __Base_init(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_\\n ) internal onlyInitializing {\\n __UUPSUpgradeable_init();\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __GlobalPausable_init_unchained(globalPause_);\\n __GlobalRestrictable_init_unchained(globalBlacklist_);\\n __Recoverable_init_unchained();\\n }\\n\\n function __Base_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xe445c759682f31d39e63663ff8217072c0e81086bda11ea473247be334c3e424\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a0604052306080523480156200001557600080fd5b506200002062000030565b6200002a62000030565b620000f1565b600054610100900460ff16156200009d5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000ef576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051612e696200012960003960008181610a5c01528181610a9c01528181610ebc01528181610efc0152610f8b0152612e696000f3fe60806040526004361061021a5760003560e01c8063817b1cd211610123578063c8f74bb8116100ab578063eed9da1f1161006f578063eed9da1f1461061e578063f12d54d814610635578063f2fde38b14610654578063f6c3565014610674578063f762e7341461069557600080fd5b8063c8f74bb81461059b578063cc1a378f146105bb578063cd3daf9d146105db578063cedaf639146105f0578063df136d651461060757600080fd5b80639b602f0a116100f25780639b602f0a146105055780639e2c8a5b1461051c578063bddff5921461053c578063c66120f414610553578063c8f33c911461058457600080fd5b8063817b1cd21461048c578063842e2981146104a35780638980f11f146104d05780638da5cb5b146104f057600080fd5b806352d1902d116101a657806367d3b4881161017557806367d3b488146103eb578063715018a6146104025780637b2cca38146104175780637c2edb161461044457806380faa57d1461047757600080fd5b806352d1902d1461035c5780635c046e66146103715780635c975abb146103a657806363d07120146103cb57600080fd5b8063386a9525116101ed578063386a9525146102ce5780633c6b16ab146102f35780633e491d471461031357806340a8d39f146103335780634f1ef2861461034957600080fd5b806304d978f11461021f57806310087fb11461026c5780631c4b774b1461028e5780633659cfe6146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004612794565b6106b3565b604080519586526020860194909452928401919091526060830152608082015260a0015b60405180910390f35b34801561027857600080fd5b5061028c6102873660046127c0565b610702565b005b34801561029a57600080fd5b5061028c6102a93660046127f6565b6109a0565b3480156102ba57600080fd5b5061028c6102c936600461280f565b610a52565b3480156102da57600080fd5b506102e561022e5481565b604051908152602001610263565b3480156102ff57600080fd5b5061028c61030e3660046127f6565b610b2e565b34801561031f57600080fd5b506102e561032e366004612794565b610db0565b34801561033f57600080fd5b506102e561271081565b61028c61035736600461289c565b610eb2565b34801561036857600080fd5b506102e5610f7e565b34801561037d57600080fd5b5061039161038c3660046127f6565b611031565b60408051928352602083019190915201610263565b3480156103b257600080fd5b506103bb611060565b6040519015158152602001610263565b3480156103d757600080fd5b5061028c6103e6366004612944565b6110d4565b3480156103f757600080fd5b506102e561022f5481565b34801561040e57600080fd5b5061028c61127c565b34801561042357600080fd5b5061043761043236600461280f565b6112b2565b6040516102639190612a70565b34801561045057600080fd5b50610161546001600160a01b03165b6040516001600160a01b039091168152602001610263565b34801561048357600080fd5b506102e5611360565b34801561049857600080fd5b506102e56102335481565b3480156104af57600080fd5b506104c36104be36600461280f565b61136f565b6040516102639190612ab4565b3480156104dc57600080fd5b5061028c6104eb366004612794565b611417565b3480156104fc57600080fd5b5061045f61150e565b34801561051157600080fd5b506102e561022c5481565b34801561052857600080fd5b5061028c610537366004612b22565b61157c565b34801561054857600080fd5b506102e56102315481565b34801561055f57600080fd5b506103bb61056e36600461280f565b6102366020526000908152604090205460ff1681565b34801561059057600080fd5b506102e56102305481565b3480156105a757600080fd5b506102e56105b636600461280f565b611a86565b3480156105c757600080fd5b5061028c6105d63660046127f6565b611ab8565b3480156105e757600080fd5b506102e5611b18565b3480156105fc57600080fd5b506102e561022b5481565b34801561061357600080fd5b506102e56102325481565b34801561062a57600080fd5b506102e56102345481565b34801561064157600080fd5b5061012e546001600160a01b031661045f565b34801561066057600080fd5b5061028c61066f36600461280f565b611b7f565b34801561068057600080fd5b5061022a5461045f906001600160a01b031681565b3480156106a157600080fd5b5060fb546001600160a01b031661045f565b61023560205281600052604060002081815481106106d057600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b61070a611bb4565b610712611c0f565b3361071c81611c59565b156107425760405162461bcd60e51b815260040161073990612b44565b60405180910390fd5b600083116107625760405162461bcd60e51b815260040161073990612b60565b61022d5461077290600190612b9a565b8260ff1611156107bd5760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081cdd185ada5b99c81c195c9a5bd960521b6044820152606401610739565b6107c8600080611cc9565b600061022d8360ff16815481106107e1576107e1612bad565b600091825260208083206040805180820182526002909402909101805484526001015483830152805160a08101909152878152825192945091908201906108289042612bc3565b815283516020820152610232546040820152600060609091015261022b5483519192501180159061085c575061022c548510155b1561087d5733600090815261023660205260409020805460ff191660011790555b3360008181526102356020908152604080832080546001808201835582865284862088516005909302019182559387015181850155918601516002830155606086015160038301556080860151600490920191909155928252915490916108e391612b9a565b905060006127108460200151886108fa9190612bd6565b6109049190612bed565b90508061023460008282546109199190612bc3565b925050819055508661023360008282546109339190612bc3565b909155505061022a54610951906001600160a01b031633308a611d8e565b604080518381526020810189905233917f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90910160405180910390a2505050505061099c60016101f855565b5050565b6109a8611bb4565b336109b281611c59565b156109cf5760405162461bcd60e51b815260040161073990612b44565b6109da826001612bc3565b33600090815261023560205260409020541015610a2e5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840e6e8c2d6ca92dcc8caf60731b6044820152606401610739565b610a39335b83611cc9565b610a433383611dff565b50610a4f60016101f855565b50565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a9a5760405162461bcd60e51b815260040161073990612c0f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ae3600080516020612ded833981519152546001600160a01b031690565b6001600160a01b031614610b095760405162461bcd60e51b815260040161073990612c5b565b610b1281611ee7565b60408051600080825260208201909252610a4f91839190611eef565b610b3661205a565b600061022e5411610b895760405162461bcd60e51b815260206004820152601b60248201527f72657761726473206475726174696f6e206973206e6f742073657400000000006044820152606401610739565b60008111610ba95760405162461bcd60e51b815260040161073990612b60565b610bb4600080611cc9565b61022f544210610bd55761022e54610bcc9082612bed565b61023155610c15565b6000610231544261022f54610bea9190612b9a565b610bf49190612bd6565b61022e54909150610c058284612bc3565b610c0f9190612bed565b61023155505b60006102315411610c5a5760405162461bcd60e51b815260206004820152600f60248201526e07265776172642072617465203d203608c1b6044820152606401610739565b61022e546102335461022a546040516370a0823160e01b815230600482015284916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccf9190612ca7565b610cd99190612bc3565b610ce39190612b9a565b610ced9190612bed565b610231541115610d3f5760405162461bcd60e51b815260206004820152601760248201527f72657761726420616d6f756e74203e2062616c616e63650000000000000000006044820152606401610739565b61022e54610d4d9042612bc3565b61022f554261023055610d6f3361022a546001600160a01b0316903084611d8e565b610231546040805183815260208101929092527fc3ed9e2a55e03c1173986e2799c70b4a5654ed43739f79f1ad3833683dad9f7f910160405180910390a150565b6001600160a01b038216600090815261023560205260408120805482919084908110610dde57610dde612bad565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000610e3a82604001516120b9565b90506000612710828460000151610e519190612bd6565b610e5b9190612bed565b90506000670de0b6b3a76400008460600151610e75611b18565b610e7f9190612b9a565b610e899084612bd6565b610e939190612bed565b9050836080015181610ea59190612bc3565b9450505050505b92915050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610efa5760405162461bcd60e51b815260040161073990612c0f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610f43600080516020612ded833981519152546001600160a01b031690565b6001600160a01b031614610f695760405162461bcd60e51b815260040161073990612c5b565b610f7282611ee7565b61099c82826001611eef565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461101e5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610739565b50600080516020612ded83398151915290565b61022d818154811061104257600080fd5b60009182526020909120600290910201805460019091015490915082565b61012e5460408051635c975abb60e01b815290516000926001600160a01b031691635c975abb9160048083019260209291908290030181865afa1580156110ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110cf9190612cc0565b905090565b600054610100900460ff16158080156110f45750600054600160ff909116105b8061110e5750303b15801561110e575060005460ff166001145b6111715760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610739565b6000805460ff191660011790558015611194576000805461ff0019166101001790555b61119f888888612143565b61022a80546001600160a01b0319166001600160a01b038716179055835160005b8181101561121e5761022d8682815181106111dd576111dd612bad565b60209081029190910181015182546001818101855560009485529383902082516002909202019081559101519101558061121681612ce2565b9150506111c0565b505061022b83905561022c8290558015611272576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b61128461205a565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610739565b6001600160a01b038116600090815261023560205260408120546060918167ffffffffffffffff8111156112e8576112e861282c565b604051908082528060200260200182016040528015611311578160200160208202803683370190505b50905060005b82811015611358576113298582610db0565b82828151811061133b5761133b612bad565b60209081029190910101528061135081612ce2565b915050611317565b509392505050565b60006110cf61022f544261219d565b6001600160a01b038116600090815261023560209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561140c57838290600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050815260200190600101906113a8565b505050509050919050565b61141f61205a565b600081116114555760405162461bcd60e51b815260206004820152600360248201526204c31360ec1b6044820152606401610739565b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a0823190602401602060405180830381865afa15801561149d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c19190612ca7565b10156114f55760405162461bcd60e51b81526020600482015260036024820152624c313160e81b6044820152606401610739565b6115096001600160a01b03821633846121b6565b505050565b60fb5460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015611558573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110cf9190612cfb565b611584611bb4565b3361158e81611c59565b156115ab5760405162461bcd60e51b815260040161073990612b44565b600083116115cb5760405162461bcd60e51b815260040161073990612b60565b6115d6826001612bc3565b3360009081526102356020526040902054101561162a5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840e6e8c2d6ca92dcc8caf60731b6044820152606401610739565b3360009081526102356020526040902080548390811061164c5761164c612bad565b9060005260206000209060050201600101544210156116b95760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420756e7374616b6520647572696e67207374616b696e672070656044820152631c9a5bd960e21b6064820152608401610739565b336000908152610235602052604090208054839081106116db576116db612bad565b90600052602060002090600502016000015483111561173c5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420756e7374616b6520616d6f756e7400000000006044820152606401610739565b61174533610a33565b33600090815261023560205260408120805461178391908590811061176c5761176c612bad565b9060005260206000209060050201600201546120b9565b905060006127106117948387612bd6565b61179e9190612bed565b90508061023460008282546117b39190612b9a565b925050819055508461023360008282546117cd9190612b9a565b9091555050336000908152610235602052604090208054869190869081106117f7576117f7612bad565b906000526020600020906005020160000160008282546118179190612b9a565b909155505061022b543360009081526102356020526040902080548690811061184257611842612bad565b90600052602060002090600502016002015410158015611897575061022c543360009081526102356020526040902080548690811061188357611883612bad565b906000526020600020906005020160000154105b156118b55733600090815261023660205260409020805460ff191690555b336000908152610235602052604090208054859081106118d7576118d7612bad565b906000526020600020906005020160000154600003611a25576118fa3385611dff565b33600090815261023560205260409020805461191890600190612b9a565b8154811061192857611928612bad565b906000526020600020906005020161023560006119423390565b6001600160a01b03166001600160a01b03168152602001908152602001600020858154811061197357611973612bad565b9060005260206000209060050201600082015481600001556001820154816001015560028201548160020155600382015481600301556004820154816004015590505061023560006119c23390565b6001600160a01b03166001600160a01b031681526020019081526020016000208054806119f1576119f1612d18565b6000828152602081206005600019909301928302018181556001810182905560028101829055600381018290556004015590555b611a3d3361022a546001600160a01b031690876121b6565b604080518581526020810187905233917f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e910160405180910390a250505061099c60016101f855565b6001600160a01b0381166000908152610236602052604081205460ff1615611ab057506003919050565b506000919050565b611ac061205a565b4261022f5410611b125760405162461bcd60e51b815260206004820152601f60248201527f726577617264206475726174696f6e206973206e6f742066696e6973686564006044820152606401610739565b61022e55565b600061023354600003611b2d57506102325490565b6102345461023054611b3d611360565b611b479190612b9a565b61023154611b559190612bd6565b611b6790670de0b6b3a7640000612bd6565b611b719190612bed565b610232546110cf9190612bc3565b611b8761205a565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610739565b60026101f85403611c075760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610739565b60026101f855565b611c17611060565b15611c575760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610739565b565b6101615460405163fe575a8760e01b81526001600160a01b038381166004830152600092169063fe575a8790602401602060405180830381865afa158015611ca5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eac9190612cc0565b611cd1611b18565b61023255611cdd611360565b610230556001600160a01b0382161561099c57611cfa8282610db0565b6001600160a01b038316600090815261023560205260409020805483908110611d2557611d25612bad565b906000526020600020906005020160040181905550610232546102356000846001600160a01b03166001600160a01b031681526020019081526020016000208281548110611d7557611d75612bad565b9060005260206000209060050201600301819055505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611df99085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526121e6565b50505050565b6001600160a01b038216600090815261023560205260408120805483908110611e2a57611e2a612bad565b90600052602060002090600502016004015490506000811115611509576001600160a01b038316600090815261023560205260408120805484908110611e7257611e72612bad565b600091825260209091206004600590920201015561022a54611e9e906001600160a01b031684836121b6565b60408051838152602081018390526001600160a01b038516917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f51910160405180910390a2505050565b610a4f61205a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611f2257611509836122bb565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611f7c575060408051601f3d908101601f19168201909252611f7991810190612ca7565b60015b611fdf5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610739565b600080516020612ded833981519152811461204e5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610739565b50611509838383612357565b3361206361150e565b6001600160a01b031614611c575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610739565b61022d54600090815b8181101561213957600061022d82815481106120e0576120e0612bad565b9060005260206000209060020201604051806040016040529081600082015481526020016001820154815250509050806000015185036121265760200151949350505050565b508061213181612ce2565b9150506120c2565b5060009392505050565b600054610100900460ff1661216a5760405162461bcd60e51b815260040161073990612d2e565b61217261237c565b61217b836123a3565b6121836123d3565b61218c82612402565b6121958161244c565b61150961237c565b6000818311156121ad57816121af565b825b9392505050565b6040516001600160a01b03831660248201526044810182905261150990849063a9059cbb60e01b90606401611dc2565b600061223b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124969092919063ffffffff16565b905080516000148061225c57508080602001905181019061225c9190612cc0565b6115095760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610739565b6001600160a01b0381163b6123285760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610739565b600080516020612ded83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612360836124ad565b60008251118061236d5750805b1561150957611df983836124ed565b600054610100900460ff16611c575760405162461bcd60e51b815260040161073990612d2e565b600054610100900460ff166123ca5760405162461bcd60e51b815260040161073990612d2e565b610a4f81612512565b600054610100900460ff166123fa5760405162461bcd60e51b815260040161073990612d2e565b611c5761255b565b600054610100900460ff166124295760405162461bcd60e51b815260040161073990612d2e565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166124735760405162461bcd60e51b815260040161073990612d2e565b61016180546001600160a01b0319166001600160a01b0392909216919091179055565b60606124a5848460008561258e565b949350505050565b6124b6816122bb565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606121af8383604051806060016040528060278152602001612e0d60279139612669565b600054610100900460ff166125395760405162461bcd60e51b815260040161073990612d2e565b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166125825760405162461bcd60e51b815260040161073990612d2e565b6097805460ff19169055565b6060824710156125ef5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610739565b600080866001600160a01b0316858760405161260b9190612d9d565b60006040518083038185875af1925050503d8060008114612648576040519150601f19603f3d011682016040523d82523d6000602084013e61264d565b606091505b509150915061265e878383876126e1565b979650505050505050565b6060600080856001600160a01b0316856040516126869190612d9d565b600060405180830381855af49150503d80600081146126c1576040519150601f19603f3d011682016040523d82523d6000602084013e6126c6565b606091505b50915091506126d7868383876126e1565b9695505050505050565b60608315612750578251600003612749576001600160a01b0385163b6127495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610739565b50816124a5565b6124a583838151156127655781518083602001fd5b8060405162461bcd60e51b81526004016107399190612db9565b6001600160a01b0381168114610a4f57600080fd5b600080604083850312156127a757600080fd5b82356127b28161277f565b946020939093013593505050565b600080604083850312156127d357600080fd5b82359150602083013560ff811681146127eb57600080fd5b809150509250929050565b60006020828403121561280857600080fd5b5035919050565b60006020828403121561282157600080fd5b81356121af8161277f565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156128655761286561282c565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156128945761289461282c565b604052919050565b600080604083850312156128af57600080fd5b82356128ba8161277f565b915060208381013567ffffffffffffffff808211156128d857600080fd5b818601915086601f8301126128ec57600080fd5b8135818111156128fe576128fe61282c565b612910601f8201601f1916850161286b565b9150808252878482850101111561292657600080fd5b80848401858401376000848284010152508093505050509250929050565b600080600080600080600060e0888a03121561295f57600080fd5b873561296a8161277f565b965060208881013561297b8161277f565b9650604089013561298b8161277f565b9550606089013561299b8161277f565b9450608089013567ffffffffffffffff808211156129b857600080fd5b818b0191508b601f8301126129cc57600080fd5b8135818111156129de576129de61282c565b6129ec848260051b0161286b565b818152848101925060069190911b83018401908d821115612a0c57600080fd5b928401925b81841015612a4f576040848f031215612a2a5760008081fd5b612a32612842565b843581528585013586820152835260409093019291840191612a11565b9a9d999c50979a96999860a0880135985060c0909701359695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612aa857835183529284019291840191600101612a8c565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015612b155781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101612ad1565b5091979650505050505050565b60008060408385031215612b3557600080fd5b50508035926020909101359150565b6020808252600290820152614c3960f01b604082015260600190565b6020808252600a90820152690616d6f756e74203d20360b41b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610eac57610eac612b84565b634e487b7160e01b600052603260045260246000fd5b80820180821115610eac57610eac612b84565b8082028115828204841417610eac57610eac612b84565b600082612c0a57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215612cb957600080fd5b5051919050565b600060208284031215612cd257600080fd5b815180151581146121af57600080fd5b600060018201612cf457612cf4612b84565b5060010190565b600060208284031215612d0d57600080fd5b81516121af8161277f565b634e487b7160e01b600052603160045260246000fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015612d94578181015183820152602001612d7c565b50506000910152565b60008251612daf818460208701612d79565b9190910192915050565b6020815260008251806020840152612dd8816040850160208701612d79565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122067797dfbd62390a00ad62d606e5ca2017793bd8979bdc5f283a1578b923288d364736f6c63430008120033", - "deployedBytecode": "0x60806040526004361061021a5760003560e01c8063817b1cd211610123578063c8f74bb8116100ab578063eed9da1f1161006f578063eed9da1f1461061e578063f12d54d814610635578063f2fde38b14610654578063f6c3565014610674578063f762e7341461069557600080fd5b8063c8f74bb81461059b578063cc1a378f146105bb578063cd3daf9d146105db578063cedaf639146105f0578063df136d651461060757600080fd5b80639b602f0a116100f25780639b602f0a146105055780639e2c8a5b1461051c578063bddff5921461053c578063c66120f414610553578063c8f33c911461058457600080fd5b8063817b1cd21461048c578063842e2981146104a35780638980f11f146104d05780638da5cb5b146104f057600080fd5b806352d1902d116101a657806367d3b4881161017557806367d3b488146103eb578063715018a6146104025780637b2cca38146104175780637c2edb161461044457806380faa57d1461047757600080fd5b806352d1902d1461035c5780635c046e66146103715780635c975abb146103a657806363d07120146103cb57600080fd5b8063386a9525116101ed578063386a9525146102ce5780633c6b16ab146102f35780633e491d471461031357806340a8d39f146103335780634f1ef2861461034957600080fd5b806304d978f11461021f57806310087fb11461026c5780631c4b774b1461028e5780633659cfe6146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004612794565b6106b3565b604080519586526020860194909452928401919091526060830152608082015260a0015b60405180910390f35b34801561027857600080fd5b5061028c6102873660046127c0565b610702565b005b34801561029a57600080fd5b5061028c6102a93660046127f6565b6109a0565b3480156102ba57600080fd5b5061028c6102c936600461280f565b610a52565b3480156102da57600080fd5b506102e561022e5481565b604051908152602001610263565b3480156102ff57600080fd5b5061028c61030e3660046127f6565b610b2e565b34801561031f57600080fd5b506102e561032e366004612794565b610db0565b34801561033f57600080fd5b506102e561271081565b61028c61035736600461289c565b610eb2565b34801561036857600080fd5b506102e5610f7e565b34801561037d57600080fd5b5061039161038c3660046127f6565b611031565b60408051928352602083019190915201610263565b3480156103b257600080fd5b506103bb611060565b6040519015158152602001610263565b3480156103d757600080fd5b5061028c6103e6366004612944565b6110d4565b3480156103f757600080fd5b506102e561022f5481565b34801561040e57600080fd5b5061028c61127c565b34801561042357600080fd5b5061043761043236600461280f565b6112b2565b6040516102639190612a70565b34801561045057600080fd5b50610161546001600160a01b03165b6040516001600160a01b039091168152602001610263565b34801561048357600080fd5b506102e5611360565b34801561049857600080fd5b506102e56102335481565b3480156104af57600080fd5b506104c36104be36600461280f565b61136f565b6040516102639190612ab4565b3480156104dc57600080fd5b5061028c6104eb366004612794565b611417565b3480156104fc57600080fd5b5061045f61150e565b34801561051157600080fd5b506102e561022c5481565b34801561052857600080fd5b5061028c610537366004612b22565b61157c565b34801561054857600080fd5b506102e56102315481565b34801561055f57600080fd5b506103bb61056e36600461280f565b6102366020526000908152604090205460ff1681565b34801561059057600080fd5b506102e56102305481565b3480156105a757600080fd5b506102e56105b636600461280f565b611a86565b3480156105c757600080fd5b5061028c6105d63660046127f6565b611ab8565b3480156105e757600080fd5b506102e5611b18565b3480156105fc57600080fd5b506102e561022b5481565b34801561061357600080fd5b506102e56102325481565b34801561062a57600080fd5b506102e56102345481565b34801561064157600080fd5b5061012e546001600160a01b031661045f565b34801561066057600080fd5b5061028c61066f36600461280f565b611b7f565b34801561068057600080fd5b5061022a5461045f906001600160a01b031681565b3480156106a157600080fd5b5060fb546001600160a01b031661045f565b61023560205281600052604060002081815481106106d057600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b61070a611bb4565b610712611c0f565b3361071c81611c59565b156107425760405162461bcd60e51b815260040161073990612b44565b60405180910390fd5b600083116107625760405162461bcd60e51b815260040161073990612b60565b61022d5461077290600190612b9a565b8260ff1611156107bd5760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081cdd185ada5b99c81c195c9a5bd960521b6044820152606401610739565b6107c8600080611cc9565b600061022d8360ff16815481106107e1576107e1612bad565b600091825260208083206040805180820182526002909402909101805484526001015483830152805160a08101909152878152825192945091908201906108289042612bc3565b815283516020820152610232546040820152600060609091015261022b5483519192501180159061085c575061022c548510155b1561087d5733600090815261023660205260409020805460ff191660011790555b3360008181526102356020908152604080832080546001808201835582865284862088516005909302019182559387015181850155918601516002830155606086015160038301556080860151600490920191909155928252915490916108e391612b9a565b905060006127108460200151886108fa9190612bd6565b6109049190612bed565b90508061023460008282546109199190612bc3565b925050819055508661023360008282546109339190612bc3565b909155505061022a54610951906001600160a01b031633308a611d8e565b604080518381526020810189905233917f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90910160405180910390a2505050505061099c60016101f855565b5050565b6109a8611bb4565b336109b281611c59565b156109cf5760405162461bcd60e51b815260040161073990612b44565b6109da826001612bc3565b33600090815261023560205260409020541015610a2e5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840e6e8c2d6ca92dcc8caf60731b6044820152606401610739565b610a39335b83611cc9565b610a433383611dff565b50610a4f60016101f855565b50565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a9a5760405162461bcd60e51b815260040161073990612c0f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ae3600080516020612ded833981519152546001600160a01b031690565b6001600160a01b031614610b095760405162461bcd60e51b815260040161073990612c5b565b610b1281611ee7565b60408051600080825260208201909252610a4f91839190611eef565b610b3661205a565b600061022e5411610b895760405162461bcd60e51b815260206004820152601b60248201527f72657761726473206475726174696f6e206973206e6f742073657400000000006044820152606401610739565b60008111610ba95760405162461bcd60e51b815260040161073990612b60565b610bb4600080611cc9565b61022f544210610bd55761022e54610bcc9082612bed565b61023155610c15565b6000610231544261022f54610bea9190612b9a565b610bf49190612bd6565b61022e54909150610c058284612bc3565b610c0f9190612bed565b61023155505b60006102315411610c5a5760405162461bcd60e51b815260206004820152600f60248201526e07265776172642072617465203d203608c1b6044820152606401610739565b61022e546102335461022a546040516370a0823160e01b815230600482015284916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccf9190612ca7565b610cd99190612bc3565b610ce39190612b9a565b610ced9190612bed565b610231541115610d3f5760405162461bcd60e51b815260206004820152601760248201527f72657761726420616d6f756e74203e2062616c616e63650000000000000000006044820152606401610739565b61022e54610d4d9042612bc3565b61022f554261023055610d6f3361022a546001600160a01b0316903084611d8e565b610231546040805183815260208101929092527fc3ed9e2a55e03c1173986e2799c70b4a5654ed43739f79f1ad3833683dad9f7f910160405180910390a150565b6001600160a01b038216600090815261023560205260408120805482919084908110610dde57610dde612bad565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000610e3a82604001516120b9565b90506000612710828460000151610e519190612bd6565b610e5b9190612bed565b90506000670de0b6b3a76400008460600151610e75611b18565b610e7f9190612b9a565b610e899084612bd6565b610e939190612bed565b9050836080015181610ea59190612bc3565b9450505050505b92915050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610efa5760405162461bcd60e51b815260040161073990612c0f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610f43600080516020612ded833981519152546001600160a01b031690565b6001600160a01b031614610f695760405162461bcd60e51b815260040161073990612c5b565b610f7282611ee7565b61099c82826001611eef565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461101e5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610739565b50600080516020612ded83398151915290565b61022d818154811061104257600080fd5b60009182526020909120600290910201805460019091015490915082565b61012e5460408051635c975abb60e01b815290516000926001600160a01b031691635c975abb9160048083019260209291908290030181865afa1580156110ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110cf9190612cc0565b905090565b600054610100900460ff16158080156110f45750600054600160ff909116105b8061110e5750303b15801561110e575060005460ff166001145b6111715760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610739565b6000805460ff191660011790558015611194576000805461ff0019166101001790555b61119f888888612143565b61022a80546001600160a01b0319166001600160a01b038716179055835160005b8181101561121e5761022d8682815181106111dd576111dd612bad565b60209081029190910181015182546001818101855560009485529383902082516002909202019081559101519101558061121681612ce2565b9150506111c0565b505061022b83905561022c8290558015611272576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b61128461205a565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610739565b6001600160a01b038116600090815261023560205260408120546060918167ffffffffffffffff8111156112e8576112e861282c565b604051908082528060200260200182016040528015611311578160200160208202803683370190505b50905060005b82811015611358576113298582610db0565b82828151811061133b5761133b612bad565b60209081029190910101528061135081612ce2565b915050611317565b509392505050565b60006110cf61022f544261219d565b6001600160a01b038116600090815261023560209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561140c57838290600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050815260200190600101906113a8565b505050509050919050565b61141f61205a565b600081116114555760405162461bcd60e51b815260206004820152600360248201526204c31360ec1b6044820152606401610739565b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a0823190602401602060405180830381865afa15801561149d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c19190612ca7565b10156114f55760405162461bcd60e51b81526020600482015260036024820152624c313160e81b6044820152606401610739565b6115096001600160a01b03821633846121b6565b505050565b60fb5460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015611558573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110cf9190612cfb565b611584611bb4565b3361158e81611c59565b156115ab5760405162461bcd60e51b815260040161073990612b44565b600083116115cb5760405162461bcd60e51b815260040161073990612b60565b6115d6826001612bc3565b3360009081526102356020526040902054101561162a5760405162461bcd60e51b8152602060048201526012602482015271092dcecc2d8d2c840e6e8c2d6ca92dcc8caf60731b6044820152606401610739565b3360009081526102356020526040902080548390811061164c5761164c612bad565b9060005260206000209060050201600101544210156116b95760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420756e7374616b6520647572696e67207374616b696e672070656044820152631c9a5bd960e21b6064820152608401610739565b336000908152610235602052604090208054839081106116db576116db612bad565b90600052602060002090600502016000015483111561173c5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420756e7374616b6520616d6f756e7400000000006044820152606401610739565b61174533610a33565b33600090815261023560205260408120805461178391908590811061176c5761176c612bad565b9060005260206000209060050201600201546120b9565b905060006127106117948387612bd6565b61179e9190612bed565b90508061023460008282546117b39190612b9a565b925050819055508461023360008282546117cd9190612b9a565b9091555050336000908152610235602052604090208054869190869081106117f7576117f7612bad565b906000526020600020906005020160000160008282546118179190612b9a565b909155505061022b543360009081526102356020526040902080548690811061184257611842612bad565b90600052602060002090600502016002015410158015611897575061022c543360009081526102356020526040902080548690811061188357611883612bad565b906000526020600020906005020160000154105b156118b55733600090815261023660205260409020805460ff191690555b336000908152610235602052604090208054859081106118d7576118d7612bad565b906000526020600020906005020160000154600003611a25576118fa3385611dff565b33600090815261023560205260409020805461191890600190612b9a565b8154811061192857611928612bad565b906000526020600020906005020161023560006119423390565b6001600160a01b03166001600160a01b03168152602001908152602001600020858154811061197357611973612bad565b9060005260206000209060050201600082015481600001556001820154816001015560028201548160020155600382015481600301556004820154816004015590505061023560006119c23390565b6001600160a01b03166001600160a01b031681526020019081526020016000208054806119f1576119f1612d18565b6000828152602081206005600019909301928302018181556001810182905560028101829055600381018290556004015590555b611a3d3361022a546001600160a01b031690876121b6565b604080518581526020810187905233917f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e910160405180910390a250505061099c60016101f855565b6001600160a01b0381166000908152610236602052604081205460ff1615611ab057506003919050565b506000919050565b611ac061205a565b4261022f5410611b125760405162461bcd60e51b815260206004820152601f60248201527f726577617264206475726174696f6e206973206e6f742066696e6973686564006044820152606401610739565b61022e55565b600061023354600003611b2d57506102325490565b6102345461023054611b3d611360565b611b479190612b9a565b61023154611b559190612bd6565b611b6790670de0b6b3a7640000612bd6565b611b719190612bed565b610232546110cf9190612bc3565b611b8761205a565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610739565b60026101f85403611c075760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610739565b60026101f855565b611c17611060565b15611c575760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610739565b565b6101615460405163fe575a8760e01b81526001600160a01b038381166004830152600092169063fe575a8790602401602060405180830381865afa158015611ca5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eac9190612cc0565b611cd1611b18565b61023255611cdd611360565b610230556001600160a01b0382161561099c57611cfa8282610db0565b6001600160a01b038316600090815261023560205260409020805483908110611d2557611d25612bad565b906000526020600020906005020160040181905550610232546102356000846001600160a01b03166001600160a01b031681526020019081526020016000208281548110611d7557611d75612bad565b9060005260206000209060050201600301819055505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611df99085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526121e6565b50505050565b6001600160a01b038216600090815261023560205260408120805483908110611e2a57611e2a612bad565b90600052602060002090600502016004015490506000811115611509576001600160a01b038316600090815261023560205260408120805484908110611e7257611e72612bad565b600091825260209091206004600590920201015561022a54611e9e906001600160a01b031684836121b6565b60408051838152602081018390526001600160a01b038516917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f51910160405180910390a2505050565b610a4f61205a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611f2257611509836122bb565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611f7c575060408051601f3d908101601f19168201909252611f7991810190612ca7565b60015b611fdf5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610739565b600080516020612ded833981519152811461204e5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610739565b50611509838383612357565b3361206361150e565b6001600160a01b031614611c575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610739565b61022d54600090815b8181101561213957600061022d82815481106120e0576120e0612bad565b9060005260206000209060020201604051806040016040529081600082015481526020016001820154815250509050806000015185036121265760200151949350505050565b508061213181612ce2565b9150506120c2565b5060009392505050565b600054610100900460ff1661216a5760405162461bcd60e51b815260040161073990612d2e565b61217261237c565b61217b836123a3565b6121836123d3565b61218c82612402565b6121958161244c565b61150961237c565b6000818311156121ad57816121af565b825b9392505050565b6040516001600160a01b03831660248201526044810182905261150990849063a9059cbb60e01b90606401611dc2565b600061223b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124969092919063ffffffff16565b905080516000148061225c57508080602001905181019061225c9190612cc0565b6115095760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610739565b6001600160a01b0381163b6123285760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610739565b600080516020612ded83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612360836124ad565b60008251118061236d5750805b1561150957611df983836124ed565b600054610100900460ff16611c575760405162461bcd60e51b815260040161073990612d2e565b600054610100900460ff166123ca5760405162461bcd60e51b815260040161073990612d2e565b610a4f81612512565b600054610100900460ff166123fa5760405162461bcd60e51b815260040161073990612d2e565b611c5761255b565b600054610100900460ff166124295760405162461bcd60e51b815260040161073990612d2e565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166124735760405162461bcd60e51b815260040161073990612d2e565b61016180546001600160a01b0319166001600160a01b0392909216919091179055565b60606124a5848460008561258e565b949350505050565b6124b6816122bb565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606121af8383604051806060016040528060278152602001612e0d60279139612669565b600054610100900460ff166125395760405162461bcd60e51b815260040161073990612d2e565b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166125825760405162461bcd60e51b815260040161073990612d2e565b6097805460ff19169055565b6060824710156125ef5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610739565b600080866001600160a01b0316858760405161260b9190612d9d565b60006040518083038185875af1925050503d8060008114612648576040519150601f19603f3d011682016040523d82523d6000602084013e61264d565b606091505b509150915061265e878383876126e1565b979650505050505050565b6060600080856001600160a01b0316856040516126869190612d9d565b600060405180830381855af49150503d80600081146126c1576040519150601f19603f3d011682016040523d82523d6000602084013e6126c6565b606091505b50915091506126d7868383876126e1565b9695505050505050565b60608315612750578251600003612749576001600160a01b0385163b6127495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610739565b50816124a5565b6124a583838151156127655781518083602001fd5b8060405162461bcd60e51b81526004016107399190612db9565b6001600160a01b0381168114610a4f57600080fd5b600080604083850312156127a757600080fd5b82356127b28161277f565b946020939093013593505050565b600080604083850312156127d357600080fd5b82359150602083013560ff811681146127eb57600080fd5b809150509250929050565b60006020828403121561280857600080fd5b5035919050565b60006020828403121561282157600080fd5b81356121af8161277f565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156128655761286561282c565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156128945761289461282c565b604052919050565b600080604083850312156128af57600080fd5b82356128ba8161277f565b915060208381013567ffffffffffffffff808211156128d857600080fd5b818601915086601f8301126128ec57600080fd5b8135818111156128fe576128fe61282c565b612910601f8201601f1916850161286b565b9150808252878482850101111561292657600080fd5b80848401858401376000848284010152508093505050509250929050565b600080600080600080600060e0888a03121561295f57600080fd5b873561296a8161277f565b965060208881013561297b8161277f565b9650604089013561298b8161277f565b9550606089013561299b8161277f565b9450608089013567ffffffffffffffff808211156129b857600080fd5b818b0191508b601f8301126129cc57600080fd5b8135818111156129de576129de61282c565b6129ec848260051b0161286b565b818152848101925060069190911b83018401908d821115612a0c57600080fd5b928401925b81841015612a4f576040848f031215612a2a5760008081fd5b612a32612842565b843581528585013586820152835260409093019291840191612a11565b9a9d999c50979a96999860a0880135985060c0909701359695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612aa857835183529284019291840191600101612a8c565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015612b155781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101612ad1565b5091979650505050505050565b60008060408385031215612b3557600080fd5b50508035926020909101359150565b6020808252600290820152614c3960f01b604082015260600190565b6020808252600a90820152690616d6f756e74203d20360b41b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610eac57610eac612b84565b634e487b7160e01b600052603260045260246000fd5b80820180821115610eac57610eac612b84565b8082028115828204841417610eac57610eac612b84565b600082612c0a57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215612cb957600080fd5b5051919050565b600060208284031215612cd257600080fd5b815180151581146121af57600080fd5b600060018201612cf457612cf4612b84565b5060010190565b600060208284031215612d0d57600080fd5b81516121af8161277f565b634e487b7160e01b600052603160045260246000fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015612d94578181015183820152602001612d7c565b50506000910152565b60008251612daf818460208701612d79565b9190910192915050565b6020815260008251806020840152612dd8816040850160208701612d79565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122067797dfbd62390a00ad62d606e5ca2017793bd8979bdc5f283a1578b923288d364736f6c63430008120033", + "solcInputHash": "1d9f98e9f73009a42653e1abaf15e178", + "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardPerSec\",\"type\":\"uint256\"}],\"name\":\"NotifiedRewardAmount\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"RewardPaid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Staked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Unstaked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MULTIPLIER_BASIS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"}],\"name\":\"earned\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finishAt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getEarnedUser\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"}],\"name\":\"getReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getStakeDurationInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"multiplier\",\"type\":\"uint256\"}],\"internalType\":\"struct LDYStaking.StakeDurationInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getUserStakes\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"stakedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unStakeAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerTokenPaid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"internalType\":\"struct LDYStaking.StakingInfo[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalBlacklist\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalPause\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"highTierAccounts\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"globalPause_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"globalBlacklist_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stakeRewardToken_\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"multiplier\",\"type\":\"uint256\"}],\"internalType\":\"struct LDYStaking.StakeDurationInfo[]\",\"name\":\"stakeDurationInfos_\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"stakeDurationForPerks_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakeAmountForPerks_\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastTimeRewardApplicable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"notifyRewardAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"multiplier\",\"type\":\"uint256\"}],\"internalType\":\"struct LDYStaking.StakeDurationInfo\",\"name\":\"durationInfo\",\"type\":\"tuple\"}],\"name\":\"pushStakeDurationInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"recoverERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardPerToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardPerTokenStored\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardRatePerSec\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardsDuration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"setRewardsDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"stakeAmountForPerks_\",\"type\":\"uint256\"}],\"name\":\"setStakeAmountForPerks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"stakeDurationForPerks_\",\"type\":\"uint256\"}],\"name\":\"setStakeDurationForPerks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"stakeDurationIndex\",\"type\":\"uint8\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeAmountForPerks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeDurationForPerks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"stakeDurationInfos\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"multiplier\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakeRewardToken\",\"outputs\":[{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"tierOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tier\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalStaked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalWeightedStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakeIndex\",\"type\":\"uint256\"}],\"name\":\"unstake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"userStakingInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"stakedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unStakeAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardPerTokenPaid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"This contract implements tierOf() function from LDYStaking as it's the only one the LToken contract relies on.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"NotifiedRewardAmount(uint256,uint256)\":{\"params\":{\"rewardAmount\":\"Reward amount added by admin.\",\"rewardPerSec\":\"RewardRatePerSec updated.\"}},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"RewardPaid(address,uint256,uint256)\":{\"params\":{\"reward\":\"Reward token amount\",\"stakeIndex\":\"User staking pool index\",\"user\":\"User address\"}},\"Staked(address,uint256,uint256)\":{\"params\":{\"amount\":\"Staked amount\",\"stakeIndex\":\"Latest index of user staking pool\",\"user\":\"User address\"}},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"Unstaked(address,uint256,uint256)\":{\"params\":{\"amount\":\"Staked amount\",\"stakeIndex\":\"User staking pool index\",\"user\":\"User address\"}},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"earned(address,uint256)\":{\"params\":{\"account\":\"Address of the user.\",\"stakeIndex\":\"Index of the stakePool\"},\"returns\":{\"_0\":\"Return earned amounts\"}},\"getEarnedUser(address)\":{\"params\":{\"account\":\"Address of the user.\"},\"returns\":{\"_0\":\"Return earned rewards array for a user.\"}},\"getReward(uint256)\":{\"details\":\"Emits a `RewardPaid` event upon successful reward claim.\",\"params\":{\"stakeIndex\":\"The index of user staking pool.\"}},\"getStakeDurationInfo(uint256)\":{\"params\":{\"index\":\"Index of StakeDurationInfos.\"},\"returns\":{\"_0\":\"StakeDurationInfo.\"}},\"getUserStakes(address)\":{\"params\":{\"account\":\"The address of user.\"},\"returns\":{\"_0\":\"StakingInfo array.\"}},\"globalBlacklist()\":{\"returns\":{\"_0\":\"The address of the GlobalBlacklist contract.\"}},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"globalPause()\":{\"returns\":{\"_0\":\"The address of the GlobalPause contract.\"}},\"initialize(address,address,address,address,(uint256,uint256)[],uint256,uint256)\":{\"details\":\"This function is intended for setting initial values for the contract's state variables.\",\"params\":{\"globalBlacklist_\":\"The address of the GlobalBlacklist contract.\",\"globalOwner_\":\"The address of the GlobalOwner contract.\",\"globalPause_\":\"The address of the GlobalPause contract.\",\"stakeAmountForPerks_\":\"Minimal staking amount for perks.\",\"stakeDurationForPerks_\":\"Minimal staking duration for perks.\",\"stakeDurationInfos_\":\"Available Staking Durations.\",\"stakeRewardToken_\":\"The address of stake and reward token(LDY token).\"}},\"lastTimeRewardApplicable()\":{\"returns\":{\"_0\":\"Timestamp of the most recent rewards calculation.\"}},\"notifyRewardAmount(uint256)\":{\"details\":\"Only callable by owner.\",\"params\":{\"amount\":\"The amount of reward to be distributed.\"}},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"paused()\":{\"returns\":{\"_0\":\"Whether the contract is paused or not.\"}},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"pushStakeDurationInfo((uint256,uint256))\":{\"details\":\"Only callable by owner.\"},\"recoverERC20(address,uint256)\":{\"params\":{\"amount\":\"The amount of token to recover.\",\"tokenAddress\":\"The address of the token to recover.\"}},\"rewardPerToken()\":{\"returns\":{\"_0\":\"Current reward per token.\"}},\"setRewardsDuration(uint256)\":{\"details\":\"Only callable by owner, and setting available only after rewards period.\",\"params\":{\"duration\":\"New reward duration in seconds.\"}},\"setStakeAmountForPerks(uint256)\":{\"details\":\"Only callable by owner.\",\"params\":{\"stakeAmountForPerks_\":\"New stakeDurationForPerks.\"}},\"setStakeDurationForPerks(uint256)\":{\"details\":\"Only callable by owner.\",\"params\":{\"stakeDurationForPerks_\":\"New stakeDurationForPerks.\"}},\"stake(uint256,uint8)\":{\"details\":\"Emits a `Staked` event upon successful staking.\",\"params\":{\"amount\":\"The amount of tokens to stake.\",\"stakeDurationIndex\":\"The Index of stakeDurationInfos array.\"}},\"tierOf(address)\":{\"details\":\"tierOf() function that always return that the given account is not elligible to any LDY staking tier, except if the account is in the highTierAccounts mapping.\",\"params\":{\"account\":\"The account to check the tier of.\"}},\"unstake(uint256,uint256)\":{\"details\":\"Emits a `Unstaked` event upon successful withdrawal. On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\",\"params\":{\"amount\":\"The amount of tokens to withdraw.\",\"stakeIndex\":\"The index of user staking pool\"}},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"stateVariables\":{\"highTierAccounts\":{\"details\":\"This is notably used to allow PreMining contracts to benefit from 0% withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\"}},\"title\":\"LDYStaking\",\"version\":1},\"userdoc\":{\"events\":{\"NotifiedRewardAmount(uint256,uint256)\":{\"notice\":\"Emitted when admin add rewards.\"},\"RewardPaid(address,uint256,uint256)\":{\"notice\":\"Emitted when users claim rewards\"},\"Staked(address,uint256,uint256)\":{\"notice\":\"Emitted when users stake token\"},\"Unstaked(address,uint256,uint256)\":{\"notice\":\"Emitted when users unstake token\"}},\"kind\":\"user\",\"methods\":{\"MULTIPLIER_BASIS()\":{\"notice\":\"Decimals of multiplier\"},\"earned(address,uint256)\":{\"notice\":\"Calculate the user's stake pool earnings\"},\"finishAt()\":{\"notice\":\"Timestamp of when the rewards finish.\"},\"getEarnedUser(address)\":{\"notice\":\"Get the earned rewards array for a user.\"},\"getReward(uint256)\":{\"notice\":\"Claim pending rewards.\"},\"getStakeDurationInfo(uint256)\":{\"notice\":\"Get StakeDurationInfo.\"},\"getUserStakes(address)\":{\"notice\":\"Get User Stake Data.\"},\"globalBlacklist()\":{\"notice\":\"Retrieves the address of GlobalBlacklist contract.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"globalPause()\":{\"notice\":\"Retrieves the address of GlobalPause contract.\"},\"highTierAccounts(address)\":{\"notice\":\"Holds a mapping of addresses that default to the highest staking tier.\"},\"initialize(address,address,address,address,(uint256,uint256)[],uint256,uint256)\":{\"notice\":\"Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\"},\"lastTimeRewardApplicable()\":{\"notice\":\"Get the last time when rewards were applicable for the specified reward token.\"},\"lastUpdateTime()\":{\"notice\":\"Timestamp of the reward updated.\"},\"notifyRewardAmount(uint256)\":{\"notice\":\"Notify the contract about the amount of rewards to be distributed and update reward parameters.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"paused()\":{\"notice\":\"Override of PausableUpgradeable.pause() that retrieves the pause state from the GlobalPause contract instead.\"},\"pushStakeDurationInfo((uint256,uint256))\":{\"notice\":\"Push stakeDurationInfo\"},\"recoverERC20(address,uint256)\":{\"notice\":\"Recovers a specified amount of a given token address. Will fail if the contract doesn't hold enough tokens.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"rewardPerToken()\":{\"notice\":\"Calculate the reward per token for a given reward token.\"},\"rewardPerTokenStored()\":{\"notice\":\"Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\"},\"rewardRatePerSec()\":{\"notice\":\"Reward per second(total rewards / duration).\"},\"rewardsDuration()\":{\"notice\":\"Duration of the rewards (in seconds).\"},\"setRewardsDuration(uint256)\":{\"notice\":\"Update Rewards Duration.\"},\"setStakeAmountForPerks(uint256)\":{\"notice\":\"Update stakeAmountForPerks\"},\"setStakeDurationForPerks(uint256)\":{\"notice\":\"Update stakeDurationForPerks\"},\"stake(uint256,uint8)\":{\"notice\":\"Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\"},\"stakeAmountForPerks()\":{\"notice\":\"Minimal stake amount for perks.\"},\"stakeDurationForPerks()\":{\"notice\":\"Minimal stake duration for perks.\"},\"stakeDurationInfos(uint256)\":{\"notice\":\"Stake durations info array.\"},\"stakeRewardToken()\":{\"notice\":\"Stake and Reward token.\"},\"totalRewards()\":{\"notice\":\"Total rewards amount.\"},\"totalStaked()\":{\"notice\":\"Total staked amounts.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"unstake(uint256,uint256)\":{\"notice\":\"Withdraw staked tokens after stakeDuration has passed.\"},\"userStakingInfo(address,uint256)\":{\"notice\":\"User stakingInfo map, user address => array of the staking info\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/LDYStaking.sol\":\"LDYStaking\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x40c636b4572ff5f1dc50cf22097e93c0723ee14eff87e99ac2b02636eeca1250\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Returns true if the reentrancy guard is currently set to \\\"entered\\\", which indicates there is a\\n * `nonReentrant` function in the call stack.\\n */\\n function _reentrancyGuardEntered() internal view returns (bool) {\\n return _status == _ENTERED;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xb82ef33f43b6b96109687d91b39c94573fdccaaa423fe28e8ba0977b31c023e0\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x0e1f0f5f62f67a881cd1a9597acbc0a5e4071f3c2c10449a183b922ae7272e3f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n */\\ninterface IERC20PermitUpgradeable {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xd60f939a3ca0199014d079b4dd66aa757954334947d81eb5c1d35d7a83061ab3\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../extensions/IERC20PermitUpgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n /**\\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n /**\\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n */\\n function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n }\\n }\\n\\n /**\\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to\\n * 0 before setting it to a non-zero value.\\n */\\n function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20PermitUpgradeable token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n *\\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0x4dae161227d332808312ee2caf6384929321b83c16cc89b5642985fbec6b814c\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalBlacklist.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalBlacklist\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global mapping of blacklisted accounts shared by all contracts of the\\n * Ledgity Yield codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers\\n * and getter functions to easily check against this global blacklist.\\n *\\n * @dev For further details, see \\\"GlobalBlacklist\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalBlacklist is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\\n /**\\n * @notice Mapping of accounts to their blacklist status.\\n * @dev This mapping is made private and isBlacklisted() should be used instead.This\\n * helps saving gas in some scenario. See isBlacklisted() documentation for more details.\\n */\\n mapping(address => bool) private _list;\\n\\n /// @dev Emitted when `account` is blacklisted.\\n event Blacklisted(address account);\\n\\n /// @dev Emitted when `account` is unblacklisted.\\n event Unblacklisted(address account);\\n\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @notice Adds a given account to the blacklist.\\n * @param account The account's address to be blacklisted.\\n */\\n function blacklist(address account) external onlyOwner {\\n require(account != address(0), \\\"L20\\\");\\n _list[account] = true;\\n emit Blacklisted(account);\\n }\\n\\n /**\\n * @notice Removes a given account from the blacklist.\\n * @param account The account's address to be un-blacklisted.\\n */\\n function unBlacklist(address account) external onlyOwner {\\n _list[account] = false;\\n emit Unblacklisted(account);\\n }\\n\\n /**\\n * @notice Checks whether a given account is blacklisted.\\n * @param account Address of the account to check.\\n * @return 'true' if the account is blacklisted, 'false' otherwise\\n */\\n function isBlacklisted(address account) external view returns (bool) {\\n // Gas optimization: Avoid accessing storage if account is the zero address\\n // (e.g, during a mint or a burn of tokens)\\n if (account == address(0)) return false;\\n\\n // Else, return current account's blacklist status\\n return _list[account];\\n }\\n}\\n\",\"keccak256\":\"0x7e771076a06cfec935df22cf2d307df7e1f7df5b887976ec1dea30f8b68a878d\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/GlobalPause.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalPause\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global pause state shared by all contracts of the Ledgity Yield\\n * codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalPausableUpgradeable abstract contract. This provides them with an overriden\\n * paused() function that retrieves the pause state from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalPause\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalPause is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n PausableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev Public implementation of PausableUpgradeable's pausing and unpausing functions\\n * but restricted to contract's owner.\\n */\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n}\\n\",\"keccak256\":\"0x9a0767e761dbd1d5800db03558c3903f229e6ef29f5fe5ff38f45fb4d7572e2e\",\"license\":\"MIT\"},\"contracts/src/LDYStaking.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Contracts\\nimport {ReentrancyGuardUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\\\";\\nimport {BaseUpgradeable} from \\\"./abstracts/base/BaseUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title LDYStaking\\n * @custom:security-contact security@ledgity.com\\n *\\n * @dev This contract implements tierOf() function from LDYStaking as it's the only\\n * one the LToken contract relies on.\\n *\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LDYStaking is BaseUpgradeable, ReentrancyGuardUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /**\\n * @notice Represents a user staking info in array.\\n * @param stakedAmount Amount of the stake.\\n * @param unStakeAt Unstake at.\\n * @param duration Staking period in seconds.\\n * @param rewardPerTokenPaid Reward per token paid.\\n * @param rewards Rewards to be claimed.\\n */\\n struct StakingInfo {\\n uint256 stakedAmount;\\n uint256 unStakeAt;\\n uint256 duration;\\n uint256 rewardPerTokenPaid;\\n uint256 rewards;\\n }\\n\\n /**\\n * @notice Represent duration and multiplier per each stake option.\\n * @param duration Staking period in seconds.\\n * @param multiplier Token weight\\n */\\n struct StakeDurationInfo {\\n uint256 duration;\\n uint256 multiplier;\\n }\\n\\n /// @notice Decimals of multiplier\\n uint256 public constant MULTIPLIER_BASIS = 1e4;\\n\\n /// @notice Stake and Reward token.\\n IERC20Upgradeable public stakeRewardToken;\\n\\n /// @notice Minimal stake duration for perks.\\n uint256 public stakeDurationForPerks;\\n\\n /// @notice Minimal stake amount for perks.\\n uint256 public stakeAmountForPerks;\\n\\n /// @notice Stake durations info array.\\n StakeDurationInfo[] public stakeDurationInfos;\\n\\n /// @notice Duration of the rewards (in seconds).\\n uint256 public rewardsDuration;\\n\\n /// @notice Timestamp of when the rewards finish.\\n uint256 public finishAt;\\n\\n /// @notice Timestamp of the reward updated.\\n uint256 public lastUpdateTime;\\n\\n /// @notice Reward per second(total rewards / duration).\\n uint256 public rewardRatePerSec;\\n\\n /// @notice Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\\n uint256 public rewardPerTokenStored;\\n\\n /// @notice Total staked amounts.\\n uint256 public totalStaked;\\n\\n // Total staked amounts with multiplier applied\\n uint256 public totalWeightedStake;\\n\\n /// @notice User stakingInfo map, user address => array of the staking info\\n mapping(address => StakingInfo[]) public userStakingInfo;\\n\\n /// @notice Total rewards amount.\\n uint256 public totalRewards;\\n\\n /**\\n * @notice Emitted when users stake token\\n * @param user User address\\n * @param stakeIndex Latest index of user staking pool\\n * @param amount Staked amount\\n */\\n event Staked(address indexed user, uint256 stakeIndex, uint256 amount);\\n\\n /**\\n * @notice Emitted when users unstake token\\n * @param user User address\\n * @param stakeIndex User staking pool index\\n * @param amount Staked amount\\n */\\n event Unstaked(address indexed user, uint256 stakeIndex, uint256 amount);\\n\\n /**\\n * @notice Emitted when users claim rewards\\n * @param user User address\\n * @param stakeIndex User staking pool index\\n * @param reward Reward token amount\\n */\\n event RewardPaid(address indexed user, uint256 stakeIndex, uint256 reward);\\n\\n /**\\n * @notice Emitted when admin add rewards.\\n * @param rewardAmount Reward amount added by admin.\\n * @param rewardPerSec RewardRatePerSec updated.\\n */\\n event NotifiedRewardAmount(uint256 rewardAmount, uint256 rewardPerSec);\\n\\n /**\\n * @notice Holds a mapping of addresses that default to the highest staking tier.\\n * @dev This is notably used to allow PreMining contracts to benefit from 0%\\n * withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\\n */\\n mapping(address => bool) public highTierAccounts;\\n\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\\n * @dev This function is intended for setting initial values for the contract's state variables.\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param stakeRewardToken_ The address of stake and reward token(LDY token).\\n * @param stakeDurationInfos_ Available Staking Durations.\\n * @param stakeDurationForPerks_ Minimal staking duration for perks.\\n * @param stakeAmountForPerks_ Minimal staking amount for perks.\\n */\\n function initialize(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n address stakeRewardToken_,\\n StakeDurationInfo[] memory stakeDurationInfos_,\\n uint256 stakeDurationForPerks_,\\n uint256 stakeAmountForPerks_\\n ) public initializer {\\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\\n stakeRewardToken = IERC20Upgradeable(stakeRewardToken_);\\n uint stakeDurationInfosLength = stakeDurationInfos_.length;\\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\\n stakeDurationInfos.push(stakeDurationInfos_[i]);\\n }\\n stakeDurationForPerks = stakeDurationForPerks_;\\n stakeAmountForPerks = stakeAmountForPerks_;\\n }\\n\\n // --------------------\\n // MUTATIVE FUNCTIONS\\n // --------------------\\n\\n /**\\n * @notice Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\\n * @dev Emits a `Staked` event upon successful staking.\\n * @param amount The amount of tokens to stake.\\n * @param stakeDurationIndex The Index of stakeDurationInfos array.\\n */\\n function stake(\\n uint256 amount,\\n uint8 stakeDurationIndex\\n ) external nonReentrant whenNotPaused notBlacklisted(_msgSender()) {\\n require(amount > 0, \\\"amount = 0\\\");\\n require(stakeDurationIndex <= stakeDurationInfos.length - 1, \\\"Invalid staking period\\\");\\n\\n _updateReward(address(0), 0);\\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[stakeDurationIndex];\\n StakingInfo memory stakingInfo = StakingInfo({\\n stakedAmount: amount,\\n unStakeAt: block.timestamp + stakeDurationInfo.duration,\\n duration: stakeDurationInfo.duration,\\n rewardPerTokenPaid: rewardPerTokenStored,\\n rewards: 0\\n });\\n\\n // check whether account is eligible for benefit from the protocol\\n if (stakeDurationInfo.duration >= stakeDurationForPerks && amount >= stakeAmountForPerks) {\\n highTierAccounts[_msgSender()] = true;\\n }\\n\\n userStakingInfo[_msgSender()].push(stakingInfo);\\n\\n uint256 stakeIndex = userStakingInfo[_msgSender()].length - 1;\\n uint256 weightedStake = (amount * stakeDurationInfo.multiplier) / MULTIPLIER_BASIS;\\n totalWeightedStake += weightedStake;\\n totalStaked += amount;\\n\\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\\n\\n emit Staked(_msgSender(), stakeIndex, amount);\\n }\\n\\n /**\\n * @notice Withdraw staked tokens after stakeDuration has passed.\\n * @dev Emits a `Unstaked` event upon successful withdrawal.\\n * On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\\n * @param amount The amount of tokens to withdraw.\\n * @param stakeIndex The index of user staking pool\\n */\\n function unstake(\\n uint256 amount,\\n uint256 stakeIndex\\n ) external nonReentrant notBlacklisted(_msgSender()) {\\n require(amount > 0, \\\"amount = 0\\\");\\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \\\"Invalid stakeIndex\\\");\\n require(\\n block.timestamp >= userStakingInfo[_msgSender()][stakeIndex].unStakeAt,\\n \\\"Cannot unstake during staking period\\\"\\n );\\n require(\\n amount <= userStakingInfo[_msgSender()][stakeIndex].stakedAmount,\\n \\\"Insufficient unstake amount\\\"\\n );\\n\\n _updateReward(_msgSender(), stakeIndex);\\n\\n uint256 multiplier = _getMultiplier(userStakingInfo[_msgSender()][stakeIndex].duration);\\n\\n uint256 currentWeightedStake = (amount * multiplier) / MULTIPLIER_BASIS;\\n totalWeightedStake -= currentWeightedStake;\\n\\n totalStaked -= amount;\\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount -= amount;\\n\\n // check whether account is eligible for benefit from the protocol\\n if (\\n userStakingInfo[_msgSender()][stakeIndex].duration >= stakeDurationForPerks &&\\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount < stakeAmountForPerks\\n ) {\\n highTierAccounts[_msgSender()] = false;\\n }\\n\\n // remove staking info from array on full withdrawal\\n if (userStakingInfo[_msgSender()][stakeIndex].stakedAmount == 0) {\\n _claimReward(_msgSender(), stakeIndex);\\n\\n userStakingInfo[_msgSender()][stakeIndex] = userStakingInfo[_msgSender()][\\n userStakingInfo[_msgSender()].length - 1\\n ];\\n userStakingInfo[_msgSender()].pop();\\n }\\n stakeRewardToken.safeTransfer(_msgSender(), amount);\\n\\n emit Unstaked(_msgSender(), stakeIndex, amount);\\n }\\n\\n /**\\n * @notice Claim pending rewards.\\n * @dev Emits a `RewardPaid` event upon successful reward claim.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function getReward(uint256 stakeIndex) external nonReentrant notBlacklisted(_msgSender()) {\\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \\\"Invalid stakeIndex\\\");\\n _updateReward(_msgSender(), stakeIndex);\\n _claimReward(_msgSender(), stakeIndex);\\n }\\n\\n // --------------------\\n // ADMIN CONFIGURATION\\n // --------------------\\n\\n /**\\n * @notice Update Rewards Duration.\\n * @dev Only callable by owner, and setting available only after rewards period.\\n * @param duration New reward duration in seconds.\\n */\\n function setRewardsDuration(uint256 duration) external onlyOwner {\\n require(finishAt < block.timestamp, \\\"reward duration is not finished\\\");\\n rewardsDuration = duration;\\n }\\n\\n /**\\n * @notice Update stakeDurationForPerks\\n * @dev Only callable by owner.\\n * @param stakeDurationForPerks_ New stakeDurationForPerks.\\n */\\n function setStakeDurationForPerks(uint256 stakeDurationForPerks_) external onlyOwner {\\n stakeDurationForPerks = stakeDurationForPerks_;\\n }\\n\\n /**\\n * @notice Update stakeAmountForPerks\\n * @dev Only callable by owner.\\n * @param stakeAmountForPerks_ New stakeDurationForPerks.\\n */\\n function setStakeAmountForPerks(uint256 stakeAmountForPerks_) external onlyOwner {\\n stakeAmountForPerks = stakeAmountForPerks_;\\n }\\n\\n /**\\n * @notice Push stakeDurationInfo\\n * @dev Only callable by owner.\\n */\\n function pushStakeDurationInfo(StakeDurationInfo memory durationInfo) external onlyOwner {\\n stakeDurationInfos.push(durationInfo);\\n }\\n\\n /**\\n * @notice Notify the contract about the amount of rewards to be distributed and update reward parameters.\\n * @dev Only callable by owner.\\n * @param amount The amount of reward to be distributed.\\n */\\n function notifyRewardAmount(uint256 amount) external onlyOwner {\\n require(rewardsDuration > 0, \\\"rewards duration is not set\\\");\\n require(amount > 0, \\\"amount = 0\\\");\\n\\n _updateReward(address(0), 0);\\n\\n if (block.timestamp >= finishAt) {\\n rewardRatePerSec = amount / rewardsDuration;\\n } else {\\n uint256 remainingRewards = (finishAt - block.timestamp) * rewardRatePerSec;\\n rewardRatePerSec = (amount + remainingRewards) / rewardsDuration;\\n }\\n\\n require(rewardRatePerSec > 0, \\\"reward rate = 0\\\");\\n require(\\n rewardRatePerSec <=\\n (stakeRewardToken.balanceOf(address(this)) + amount - totalStaked) /\\n rewardsDuration,\\n \\\"reward amount > balance\\\"\\n );\\n\\n finishAt = block.timestamp + rewardsDuration;\\n lastUpdateTime = block.timestamp;\\n\\n totalRewards += amount;\\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\\n\\n emit NotifiedRewardAmount(amount, rewardRatePerSec);\\n }\\n\\n // --------------------\\n // VIEW FUNCTIONS\\n // --------------------\\n\\n /**\\n * @notice Get the last time when rewards were applicable for the specified reward token.\\n * @return Timestamp of the most recent rewards calculation.\\n */\\n function lastTimeRewardApplicable() public view returns (uint256) {\\n return _min(finishAt, block.timestamp);\\n }\\n\\n /**\\n * @notice Calculate the reward per token for a given reward token.\\n * @return Current reward per token.\\n */\\n function rewardPerToken() public view returns (uint256) {\\n if (totalStaked == 0) {\\n return rewardPerTokenStored;\\n }\\n\\n return\\n rewardPerTokenStored +\\n ((rewardRatePerSec * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) /\\n totalWeightedStake);\\n }\\n\\n /**\\n * @notice Calculate the user's stake pool earnings\\n * @param account Address of the user.\\n * @param stakeIndex Index of the stakePool\\n * @return Return earned amounts\\n */\\n function earned(address account, uint256 stakeIndex) public view returns (uint256) {\\n StakingInfo memory userInfo = userStakingInfo[account][stakeIndex];\\n uint256 multiplier = _getMultiplier(userInfo.duration);\\n uint256 weightedAmount = (userInfo.stakedAmount * multiplier) / MULTIPLIER_BASIS;\\n uint256 rewardsSinceLastUpdate = ((weightedAmount *\\n (rewardPerToken() - userInfo.rewardPerTokenPaid)) / 1e18);\\n return rewardsSinceLastUpdate + userInfo.rewards;\\n }\\n\\n /**\\n * @notice Get the earned rewards array for a user.\\n * @param account Address of the user.\\n * @return Return earned rewards array for a user.\\n */\\n function getEarnedUser(address account) public view returns (uint256[] memory) {\\n uint256 numberOfPools = userStakingInfo[account].length;\\n uint256[] memory earnedArray = new uint256[](numberOfPools);\\n for (uint256 index; index < numberOfPools; index++) {\\n earnedArray[index] = earned(account, index);\\n }\\n return earnedArray;\\n }\\n\\n /**\\n * @dev tierOf() function that always return that the given account is not\\n * elligible to any LDY staking tier, except if the account is in the\\n * highTierAccounts mapping.\\n * @param account The account to check the tier of.\\n */\\n function tierOf(address account) public view returns (uint256 tier) {\\n if (highTierAccounts[account]) return 3;\\n return 0;\\n }\\n\\n /**\\n * @notice Get User Stake Data.\\n * @param account The address of user.\\n * @return StakingInfo array.\\n */\\n function getUserStakes(address account) external view returns (StakingInfo[] memory) {\\n return userStakingInfo[account];\\n }\\n\\n /**\\n * @notice Get StakeDurationInfo.\\n * @param index Index of StakeDurationInfos.\\n * @return StakeDurationInfo.\\n */\\n function getStakeDurationInfo(uint256 index) external view returns (StakeDurationInfo memory) {\\n require(stakeDurationInfos.length - 1 >= index, \\\"wrong index\\\");\\n return stakeDurationInfos[index];\\n }\\n\\n /**\\n * @notice Send rewards to user.\\n * @dev This is private function, called by getReward function.\\n * @param account The address of user.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function _claimReward(address account, uint256 stakeIndex) private {\\n uint256 reward = userStakingInfo[account][stakeIndex].rewards;\\n\\n if (reward > 0) {\\n userStakingInfo[account][stakeIndex].rewards = 0;\\n totalRewards -= reward;\\n stakeRewardToken.safeTransfer(account, reward);\\n emit RewardPaid(account, stakeIndex, reward);\\n }\\n }\\n\\n /**\\n * @notice Calculate and update user rewards per stakeIndex.\\n * @dev this is private function, called by stake, unstake, getRewards, and notifyRewardAmount functions.\\n * @param account The address of user.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function _updateReward(address account, uint256 stakeIndex) private {\\n rewardPerTokenStored = rewardPerToken();\\n lastUpdateTime = lastTimeRewardApplicable();\\n\\n if (account != address(0)) {\\n userStakingInfo[account][stakeIndex].rewards = earned(account, stakeIndex);\\n userStakingInfo[account][stakeIndex].rewardPerTokenPaid = rewardPerTokenStored;\\n }\\n }\\n\\n /**\\n * @notice Get multiplier from stakeDurationInfo based on duration\\n * @param duration Stake Duration\\n */\\n function _getMultiplier(uint256 duration) private view returns (uint256) {\\n uint256 stakeDurationInfosLength = stakeDurationInfos.length;\\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[i];\\n if (duration == stakeDurationInfo.duration) {\\n return stakeDurationInfo.multiplier;\\n }\\n }\\n return 0;\\n }\\n\\n /**\\n * @notice Take minimum value between x and y.\\n */\\n function _min(uint256 x, uint256 y) private pure returns (uint256) {\\n return x <= y ? x : y;\\n }\\n}\\n\",\"keccak256\":\"0x7e6eba9f67c4a0ad1ade18149d04fe01a53bae4cc3a898a8ab0b347c1d036cc5\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalPausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalPause} from \\\"../GlobalPause.sol\\\";\\n\\n/**\\n * @title GlobalPausableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit a pause state from the specified GlobalPause\\n * contract (see GlobalPause.sol). This design facilitates centralized management of\\n * pause state for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure\\n * The _globalPause state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalPausableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalPausableUpgradeable is Initializable, PausableUpgradeable {\\n /**\\n * @notice The GlobalPause contract the pause state will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalPause private _globalPause;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalPause_ The address of the GlobalPause contract.\\n */\\n function __GlobalPausable_init(address globalPause_) internal onlyInitializing {\\n __Pausable_init();\\n __GlobalPausable_init_unchained(globalPause_);\\n }\\n\\n function __GlobalPausable_init_unchained(address globalPause_) internal onlyInitializing {\\n _globalPause = GlobalPause(globalPause_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalPause contract.\\n * @return The address of the GlobalPause contract.\\n */\\n function globalPause() public view returns (address) {\\n return address(_globalPause);\\n }\\n\\n /**\\n * @notice Override of PausableUpgradeable.pause() that retrieves the pause state\\n * from the GlobalPause contract instead.\\n * @return Whether the contract is paused or not.\\n */\\n function paused() public view virtual override returns (bool) {\\n return _globalPause.paused();\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xff508c0b8c48916885453b4894d0401e94580fb24fb6af1885a3e160864cde94\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalRestrictableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalBlacklist} from \\\"../GlobalBlacklist.sol\\\";\\n\\n/**\\n * @title GlobalRestrictableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit a blacklist state from the specified\\n * GlobalBlacklist contract (see GlobalBlacklist.sol). This design facilitates\\n * centralized management of a blacklist for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalBlacklist state must be set at initialization time and, for evident\\n * security reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalRestrictableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalRestrictableUpgradeable is Initializable {\\n /**\\n * @notice The GlobalBlacklist contract the blacklist state will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalBlacklist private _globalBlacklist;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n */\\n function __GlobalRestrictable_init(address globalBlacklist_) internal onlyInitializing {\\n __GlobalRestrictable_init_unchained(globalBlacklist_);\\n }\\n\\n function __GlobalRestrictable_init_unchained(\\n address globalBlacklist_\\n ) internal onlyInitializing {\\n _globalBlacklist = GlobalBlacklist(globalBlacklist_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalBlacklist contract.\\n * @return The address of the GlobalBlacklist contract.\\n */\\n function globalBlacklist() public view returns (address) {\\n return address(_globalBlacklist);\\n }\\n\\n /**\\n * @notice Reverts if the given account is blacklisted by the GlobalBlacklist contract.\\n * @param account Address to verify.\\n */\\n modifier notBlacklisted(address account) {\\n require(isBlacklisted(account) == false, \\\"L9\\\");\\n _;\\n }\\n\\n /**\\n * @notice Checks if the given account is blacklisted by the GlobalBlacklist contract.\\n * @param account Address to verify.\\n * @return Whether the account is blacklisted.\\n */\\n function isBlacklisted(address account) internal view returns (bool) {\\n return _globalBlacklist.isBlacklisted(account);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x0032fde90d9cf23e70dd4b604ae0d1ed3283f117bc24f68d32f8933e1bd372bc\",\"license\":\"MIT\"},\"contracts/src/abstracts/RecoverableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Conracts\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./GlobalOwnableUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title RecoverableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts are provided with helper functions allowing the recovery of\\n * assets accidentally sent to them.\\n *\\n * @dev Where are utilities Ether, ERC721, etc.?\\n * This abstract contract currently supports only ERC20 tokens. Derived contracts\\n * in this codebase currently do not implement the necessary functions to receive Ether\\n * or ERC721/ERC1155 tokens, so no recovery functions are provided for these assets.\\n *\\n * @dev For further details, see \\\"RecoverableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract RecoverableUpgradeable is Initializable, GlobalOwnableUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __Recoverable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init(globalOwner_);\\n __Recoverable_init_unchained();\\n }\\n\\n function __Recoverable_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Recovers a specified amount of a given token address. Will fail if the\\n * contract doesn't hold enough tokens.\\n * @param tokenAddress The address of the token to recover.\\n * @param amount The amount of token to recover.\\n */\\n function recoverERC20(address tokenAddress, uint256 amount) public virtual onlyOwner {\\n // Ensure the specified amount is not zero\\n require(amount > 0, \\\"L10\\\");\\n\\n // Create a reference to token's contract\\n IERC20Upgradeable tokenContract = IERC20Upgradeable(tokenAddress);\\n\\n // Ensure there is enough token to recover\\n require(tokenContract.balanceOf(address(this)) >= amount, \\\"L11\\\");\\n\\n // Transfer the recovered token amount to the sender\\n tokenContract.safeTransfer(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xc70110d1284c9e4aa7c518b3b98682dd9edbe6f6fb23761d825554ba41a80d5e\",\"license\":\"MIT\"},\"contracts/src/abstracts/base/BaseUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalPausableUpgradeable} from \\\"../GlobalPausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"../GlobalOwnableUpgradeable.sol\\\";\\nimport {GlobalRestrictableUpgradeable} from \\\"../GlobalRestrictableUpgradeable.sol\\\";\\nimport {RecoverableUpgradeable} from \\\"../RecoverableUpgradeable.sol\\\";\\n\\n/**\\n * @title BaseUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This abstract contract acts as a base for numerous contracts in this codebase,\\n * minimizing code repetition and enhancing readability and maintainability.\\n *\\n * @dev For further details, see \\\"Base\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract BaseUpgradeable is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n GlobalPausableUpgradeable,\\n GlobalRestrictableUpgradeable,\\n RecoverableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n */\\n function __Base_init(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_\\n ) internal onlyInitializing {\\n __UUPSUpgradeable_init();\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __GlobalPausable_init_unchained(globalPause_);\\n __GlobalRestrictable_init_unchained(globalBlacklist_);\\n __Recoverable_init_unchained();\\n }\\n\\n function __Base_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xe445c759682f31d39e63663ff8217072c0e81086bda11ea473247be334c3e424\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60a0604052306080523480156200001557600080fd5b506200002062000030565b6200002a62000030565b620000f1565b600054610100900460ff16156200009d5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000ef576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6080516130c06200012960003960008181610b1501528181610b5501528181610f8601528181610fc6015261103e01526130c06000f3fe6080604052600436106102515760003560e01c8063817b1cd211610139578063c8f33c91116100b6578063df136d651161007a578063df136d65146106e5578063eed9da1f146106fc578063f12d54d814610713578063f2fde38b14610732578063f6c3565014610752578063f762e7341461077357600080fd5b8063c8f33c9114610662578063c8f74bb814610679578063cc1a378f14610699578063cd3daf9d146106b9578063cedaf639146106ce57600080fd5b80639e2c8a5b116100fd5780639e2c8a5b1461059f578063a029e898146105bf578063bddff592146105fa578063be01d6c714610611578063c66120f41461063157600080fd5b8063817b1cd21461050f578063842e2981146105265780638980f11f146105535780638da5cb5b146105735780639b602f0a1461058857600080fd5b80634f1ef286116101d257806367d3b4881161019657806367d3b48814610459578063715018a614610470578063793e875e146104855780637b2cca38146104a55780637c2edb16146104d257806380faa57d146104fa57600080fd5b80634f1ef286146103b757806352d1902d146103ca5780635c046e66146103df5780635c975abb1461041457806363d071201461043957600080fd5b8063386a952511610219578063386a95251461032a5780633c6b16ab146103415780633e491d471461036157806340a8d39f146103815780634a7f48041461039757600080fd5b806304d978f1146102565780630e15561a146102a357806310087fb1146102c85780631c4b774b146102ea5780633659cfe61461030a575b600080fd5b34801561026257600080fd5b50610276610271366004612984565b610791565b604080519586526020860194909452928401919091526060830152608082015260a0015b60405180910390f35b3480156102af57600080fd5b506102ba6102365481565b60405190815260200161029a565b3480156102d457600080fd5b506102e86102e33660046129b0565b6107e0565b005b3480156102f657600080fd5b506102e86103053660046129e6565b610a7e565b34801561031657600080fd5b506102e86103253660046129ff565b610b0b565b34801561033657600080fd5b506102ba61022e5481565b34801561034d57600080fd5b506102e861035c3660046129e6565b610bd0565b34801561036d57600080fd5b506102ba61037c366004612984565b610e6c565b34801561038d57600080fd5b506102ba61271081565b3480156103a357600080fd5b506102e86103b23660046129e6565b610f6e565b6102e86103c5366004612a63565b610f7c565b3480156103d657600080fd5b506102ba611031565b3480156103eb57600080fd5b506103ff6103fa3660046129e6565b6110df565b6040805192835260208301919091520161029a565b34801561042057600080fd5b5061042961110e565b604051901515815260200161029a565b34801561044557600080fd5b506102e8610454366004612b5a565b611182565b34801561046557600080fd5b506102ba61022f5481565b34801561047c57600080fd5b506102e861132a565b34801561049157600080fd5b506102e86104a0366004612c6b565b611360565b3480156104b157600080fd5b506104c56104c03660046129ff565b6113d2565b60405161029a9190612c87565b3480156104de57600080fd5b50610161546001600160a01b03165b60405161029a9190612ccb565b34801561050657600080fd5b506102ba611480565b34801561051b57600080fd5b506102ba6102335481565b34801561053257600080fd5b506105466105413660046129ff565b61148f565b60405161029a9190612cdf565b34801561055f57600080fd5b506102e861056e366004612984565b611537565b34801561057f57600080fd5b506104ed611633565b34801561059457600080fd5b506102ba61022c5481565b3480156105ab57600080fd5b506102e86105ba366004612d4d565b6116a1565b3480156105cb57600080fd5b506105df6105da3660046129e6565b611b86565b6040805182518152602092830151928101929092520161029a565b34801561060657600080fd5b506102ba6102315481565b34801561061d57600080fd5b506102e861062c3660046129e6565b611c30565b34801561063d57600080fd5b5061042961064c3660046129ff565b6102376020526000908152604090205460ff1681565b34801561066e57600080fd5b506102ba6102305481565b34801561068557600080fd5b506102ba6106943660046129ff565b611c3e565b3480156106a557600080fd5b506102e86106b43660046129e6565b611c70565b3480156106c557600080fd5b506102ba611cd0565b3480156106da57600080fd5b506102ba61022b5481565b3480156106f157600080fd5b506102ba6102325481565b34801561070857600080fd5b506102ba6102345481565b34801561071f57600080fd5b5061012e546001600160a01b03166104ed565b34801561073e57600080fd5b506102e861074d3660046129ff565b611d37565b34801561075e57600080fd5b5061022a546104ed906001600160a01b031681565b34801561077f57600080fd5b5060fb546001600160a01b03166104ed565b61023560205281600052604060002081815481106107ae57600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b6107e8611d6c565b6107f0611dc7565b336107fa81611e11565b156108205760405162461bcd60e51b815260040161081790612d6f565b60405180910390fd5b600083116108405760405162461bcd60e51b815260040161081790612d8b565b61022d5461085090600190612dc5565b8260ff16111561089b5760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081cdd185ada5b99c81c195c9a5bd960521b6044820152606401610817565b6108a6600080611e84565b600061022d8360ff16815481106108bf576108bf612dd8565b600091825260208083206040805180820182526002909402909101805484526001015483830152805160a08101909152878152825192945091908201906109069042612dee565b815283516020820152610232546040820152600060609091015261022b5483519192501180159061093a575061022c548510155b1561095b5733600090815261023760205260409020805460ff191660011790555b3360008181526102356020908152604080832080546001808201835582865284862088516005909302019182559387015181850155918601516002830155606086015160038301556080860151600490920191909155928252915490916109c191612dc5565b905060006127108460200151886109d89190612e01565b6109e29190612e18565b90508061023460008282546109f79190612dee565b92505081905550866102336000828254610a119190612dee565b909155505061022a54610a2f906001600160a01b031633308a611f49565b604080518381526020810189905233917f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90910160405180910390a25050505050610a7a60016101f855565b5050565b610a86611d6c565b33610a9081611e11565b15610aad5760405162461bcd60e51b815260040161081790612d6f565b610ab8826001612dee565b33600090815261023560205260409020541015610ae75760405162461bcd60e51b815260040161081790612e3a565b610af2335b83611e84565b610afc3383611fba565b50610b0860016101f855565b50565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610b535760405162461bcd60e51b815260040161081790612e66565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b856120bb565b6001600160a01b031614610bab5760405162461bcd60e51b815260040161081790612eb2565b610bb4816120d7565b60408051600080825260208201909252610b08918391906120df565b610bd861224a565b600061022e5411610c2b5760405162461bcd60e51b815260206004820152601b60248201527f72657761726473206475726174696f6e206973206e6f742073657400000000006044820152606401610817565b60008111610c4b5760405162461bcd60e51b815260040161081790612d8b565b610c56600080611e84565b61022f544210610c775761022e54610c6e9082612e18565b61023155610cb7565b6000610231544261022f54610c8c9190612dc5565b610c969190612e01565b61022e54909150610ca78284612dee565b610cb19190612e18565b61023155505b60006102315411610cfc5760405162461bcd60e51b815260206004820152600f60248201526e07265776172642072617465203d203608c1b6044820152606401610817565b61022e546102335461022a546040516370a0823160e01b815284916001600160a01b0316906370a0823190610d35903090600401612ccb565b602060405180830381865afa158015610d52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d769190612efe565b610d809190612dee565b610d8a9190612dc5565b610d949190612e18565b610231541115610de05760405162461bcd60e51b815260206004820152601760248201527672657761726420616d6f756e74203e2062616c616e636560481b6044820152606401610817565b61022e54610dee9042612dee565b61022f5542610230556102368054829190600090610e0d908490612dee565b909155505061022a54610e2b906001600160a01b0316333084611f49565b610231546040805183815260208101929092527fc3ed9e2a55e03c1173986e2799c70b4a5654ed43739f79f1ad3833683dad9f7f910160405180910390a150565b6001600160a01b038216600090815261023560205260408120805482919084908110610e9a57610e9a612dd8565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000610ef682604001516122a9565b90506000612710828460000151610f0d9190612e01565b610f179190612e18565b90506000670de0b6b3a76400008460600151610f31611cd0565b610f3b9190612dc5565b610f459084612e01565b610f4f9190612e18565b9050836080015181610f619190612dee565b9450505050505b92915050565b610f7661224a565b61022b55565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610fc45760405162461bcd60e51b815260040161081790612e66565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ff66120bb565b6001600160a01b03161461101c5760405162461bcd60e51b815260040161081790612eb2565b611025826120d7565b610a7a828260016120df565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110cc5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610817565b5060008051602061304483398151915290565b61022d81815481106110f057600080fd5b60009182526020909120600290910201805460019091015490915082565b61012e5460408051635c975abb60e01b815290516000926001600160a01b031691635c975abb9160048083019260209291908290030181865afa158015611159573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117d9190612f17565b905090565b600054610100900460ff16158080156111a25750600054600160ff909116105b806111bc5750303b1580156111bc575060005460ff166001145b61121f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610817565b6000805460ff191660011790558015611242576000805461ff0019166101001790555b61124d888888612333565b61022a80546001600160a01b0319166001600160a01b038716179055835160005b818110156112cc5761022d86828151811061128b5761128b612dd8565b6020908102919091018101518254600181810185556000948552938390208251600290920201908155910151910155806112c481612f39565b91505061126e565b505061022b83905561022c8290558015611320576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b61133261224a565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610817565b61136861224a565b61022d805460018101825560009190915281517fcbe5eb94ee31c6183f3d82fc7ed725908f7d7e2da0ee28e8d5e09973be5efd3d6002909202918201556020909101517fcbe5eb94ee31c6183f3d82fc7ed725908f7d7e2da0ee28e8d5e09973be5efd3e90910155565b6001600160a01b038116600090815261023560205260408120546060918167ffffffffffffffff81111561140857611408612a1c565b604051908082528060200260200182016040528015611431578160200160208202803683370190505b50905060005b82811015611478576114498582610e6c565b82828151811061145b5761145b612dd8565b60209081029190910101528061147081612f39565b915050611437565b509392505050565b600061117d61022f544261238d565b6001600160a01b038116600090815261023560209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561152c57838290600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050815260200190600101906114c8565b505050509050919050565b61153f61224a565b600081116115755760405162461bcd60e51b815260206004820152600360248201526204c31360ec1b6044820152606401610817565b6040516370a0823160e01b8152829082906001600160a01b038316906370a08231906115a5903090600401612ccb565b602060405180830381865afa1580156115c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e69190612efe565b101561161a5760405162461bcd60e51b81526020600482015260036024820152624c313160e81b6044820152606401610817565b61162e6001600160a01b03821633846123a6565b505050565b60fb5460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801561167d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117d9190612f52565b6116a9611d6c565b336116b381611e11565b156116d05760405162461bcd60e51b815260040161081790612d6f565b600083116116f05760405162461bcd60e51b815260040161081790612d8b565b6116fb826001612dee565b3360009081526102356020526040902054101561172a5760405162461bcd60e51b815260040161081790612e3a565b3360009081526102356020526040902080548390811061174c5761174c612dd8565b9060005260206000209060050201600101544210156117b95760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420756e7374616b6520647572696e67207374616b696e672070656044820152631c9a5bd960e21b6064820152608401610817565b336000908152610235602052604090208054839081106117db576117db612dd8565b90600052602060002090600502016000015483111561183c5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420756e7374616b6520616d6f756e7400000000006044820152606401610817565b61184533610aec565b33600090815261023560205260408120805461188391908590811061186c5761186c612dd8565b9060005260206000209060050201600201546122a9565b905060006127106118948387612e01565b61189e9190612e18565b90508061023460008282546118b39190612dc5565b925050819055508461023360008282546118cd9190612dc5565b9091555050336000908152610235602052604090208054869190869081106118f7576118f7612dd8565b906000526020600020906005020160000160008282546119179190612dc5565b909155505061022b543360009081526102356020526040902080548690811061194257611942612dd8565b90600052602060002090600502016002015410158015611997575061022c543360009081526102356020526040902080548690811061198357611983612dd8565b906000526020600020906005020160000154105b156119b55733600090815261023760205260409020805460ff191690555b336000908152610235602052604090208054859081106119d7576119d7612dd8565b906000526020600020906005020160000154600003611b25576119fa3385611fba565b336000908152610235602052604090208054611a1890600190612dc5565b81548110611a2857611a28612dd8565b90600052602060002090600502016102356000611a423390565b6001600160a01b03166001600160a01b031681526020019081526020016000208581548110611a7357611a73612dd8565b906000526020600020906005020160008201548160000155600182015481600101556002820154816002015560038201548160030155600482015481600401559050506102356000611ac23390565b6001600160a01b03166001600160a01b03168152602001908152602001600020805480611af157611af1612f6f565b6000828152602081206005600019909301928302018181556001810182905560028101829055600381018290556004015590555b611b3d3361022a546001600160a01b031690876123a6565b604080518581526020810187905233917f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e910160405180910390a2505050610a7a60016101f855565b604080518082019091526000808252602082015261022d548290611bac90600190612dc5565b1015611be85760405162461bcd60e51b815260206004820152600b60248201526a0eee4dedcce40d2dcc8caf60ab1b6044820152606401610817565b61022d8281548110611bfc57611bfc612dd8565b9060005260206000209060020201604051806040016040529081600082015481526020016001820154815250509050919050565b611c3861224a565b61022c55565b6001600160a01b0381166000908152610237602052604081205460ff1615611c6857506003919050565b506000919050565b611c7861224a565b4261022f5410611cca5760405162461bcd60e51b815260206004820152601f60248201527f726577617264206475726174696f6e206973206e6f742066696e6973686564006044820152606401610817565b61022e55565b600061023354600003611ce557506102325490565b6102345461023054611cf5611480565b611cff9190612dc5565b61023154611d0d9190612e01565b611d1f90670de0b6b3a7640000612e01565b611d299190612e18565b6102325461117d9190612dee565b611d3f61224a565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610817565b60026101f85403611dbf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610817565b60026101f855565b611dcf61110e565b15611e0f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610817565b565b6101615460405163fe575a8760e01b81526000916001600160a01b03169063fe575a8790611e43908590600401612ccb565b602060405180830381865afa158015611e60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f689190612f17565b611e8c611cd0565b61023255611e98611480565b610230556001600160a01b03821615610a7a57611eb58282610e6c565b6001600160a01b038316600090815261023560205260409020805483908110611ee057611ee0612dd8565b906000526020600020906005020160040181905550610232546102356000846001600160a01b03166001600160a01b031681526020019081526020016000208281548110611f3057611f30612dd8565b9060005260206000209060050201600301819055505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611fb49085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526123d6565b50505050565b6001600160a01b038216600090815261023560205260408120805483908110611fe557611fe5612dd8565b9060005260206000209060050201600401549050600081111561162e576001600160a01b03831660009081526102356020526040812080548490811061202d5761202d612dd8565b9060005260206000209060050201600401819055508061023660008282546120559190612dc5565b909155505061022a54612072906001600160a01b031684836123a6565b60408051838152602081018390526001600160a01b038516917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f51910160405180910390a2505050565b600080516020613044833981519152546001600160a01b031690565b610b0861224a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156121125761162e836124ab565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561216c575060408051601f3d908101601f1916820190925261216991810190612efe565b60015b6121cf5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610817565b600080516020613044833981519152811461223e5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610817565b5061162e838383612547565b33612253611633565b6001600160a01b031614611e0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b61022d54600090815b8181101561232957600061022d82815481106122d0576122d0612dd8565b9060005260206000209060020201604051806040016040529081600082015481526020016001820154815250509050806000015185036123165760200151949350505050565b508061232181612f39565b9150506122b2565b5060009392505050565b600054610100900460ff1661235a5760405162461bcd60e51b815260040161081790612f85565b61236261256c565b61236b83612593565b6123736125c3565b61237c826125f2565b6123858161263c565b61162e61256c565b60008183111561239d578161239f565b825b9392505050565b6040516001600160a01b03831660248201526044810182905261162e90849063a9059cbb60e01b90606401611f7d565b600061242b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126869092919063ffffffff16565b905080516000148061244c57508080602001905181019061244c9190612f17565b61162e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610817565b6001600160a01b0381163b6125185760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610817565b60008051602061304483398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6125508361269d565b60008251118061255d5750805b1561162e57611fb483836126dd565b600054610100900460ff16611e0f5760405162461bcd60e51b815260040161081790612f85565b600054610100900460ff166125ba5760405162461bcd60e51b815260040161081790612f85565b610b0881612702565b600054610100900460ff166125ea5760405162461bcd60e51b815260040161081790612f85565b611e0f61274b565b600054610100900460ff166126195760405162461bcd60e51b815260040161081790612f85565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166126635760405162461bcd60e51b815260040161081790612f85565b61016180546001600160a01b0319166001600160a01b0392909216919091179055565b6060612695848460008561277e565b949350505050565b6126a6816124ab565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061239f838360405180606001604052806027815260200161306460279139612859565b600054610100900460ff166127295760405162461bcd60e51b815260040161081790612f85565b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166127725760405162461bcd60e51b815260040161081790612f85565b6097805460ff19169055565b6060824710156127df5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610817565b600080866001600160a01b031685876040516127fb9190612ff4565b60006040518083038185875af1925050503d8060008114612838576040519150601f19603f3d011682016040523d82523d6000602084013e61283d565b606091505b509150915061284e878383876128d1565b979650505050505050565b6060600080856001600160a01b0316856040516128769190612ff4565b600060405180830381855af49150503d80600081146128b1576040519150601f19603f3d011682016040523d82523d6000602084013e6128b6565b606091505b50915091506128c7868383876128d1565b9695505050505050565b60608315612940578251600003612939576001600160a01b0385163b6129395760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610817565b5081612695565b61269583838151156129555781518083602001fd5b8060405162461bcd60e51b81526004016108179190613010565b6001600160a01b0381168114610b0857600080fd5b6000806040838503121561299757600080fd5b82356129a28161296f565b946020939093013593505050565b600080604083850312156129c357600080fd5b82359150602083013560ff811681146129db57600080fd5b809150509250929050565b6000602082840312156129f857600080fd5b5035919050565b600060208284031215612a1157600080fd5b813561239f8161296f565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612a5b57612a5b612a1c565b604052919050565b60008060408385031215612a7657600080fd5b8235612a818161296f565b915060208381013567ffffffffffffffff80821115612a9f57600080fd5b818601915086601f830112612ab357600080fd5b813581811115612ac557612ac5612a1c565b612ad7601f8201601f19168501612a32565b91508082528784828501011115612aed57600080fd5b80848401858401376000848284010152508093505050509250929050565b600060408284031215612b1d57600080fd5b6040516040810181811067ffffffffffffffff82111715612b4057612b40612a1c565b604052823581526020928301359281019290925250919050565b600080600080600080600060e0888a031215612b7557600080fd5b8735612b808161296f565b9650602088810135612b918161296f565b9650604089810135612ba28161296f565b965060608a0135612bb28161296f565b955060808a013567ffffffffffffffff80821115612bcf57600080fd5b818c0191508c601f830112612be357600080fd5b813581811115612bf557612bf5612a1c565b612c03858260051b01612a32565b818152858101925060069190911b83018501908e821115612c2357600080fd5b928501925b81841015612c4957612c3a8f85612b0b565b83529284019291850191612c28565b9b9e9a9d50989b979a9960a0890135995060c090980135979650505050505050565b600060408284031215612c7d57600080fd5b61239f8383612b0b565b6020808252825182820181905260009190848201906040850190845b81811015612cbf57835183529284019291840191600101612ca3565b50909695505050505050565b6001600160a01b0391909116815260200190565b602080825282518282018190526000919060409081850190868401855b82811015612d405781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101612cfc565b5091979650505050505050565b60008060408385031215612d6057600080fd5b50508035926020909101359150565b6020808252600290820152614c3960f01b604082015260600190565b6020808252600a90820152690616d6f756e74203d20360b41b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610f6857610f68612daf565b634e487b7160e01b600052603260045260246000fd5b80820180821115610f6857610f68612daf565b8082028115828204841417610f6857610f68612daf565b600082612e3557634e487b7160e01b600052601260045260246000fd5b500490565b602080825260129082015271092dcecc2d8d2c840e6e8c2d6ca92dcc8caf60731b604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215612f1057600080fd5b5051919050565b600060208284031215612f2957600080fd5b8151801515811461239f57600080fd5b600060018201612f4b57612f4b612daf565b5060010190565b600060208284031215612f6457600080fd5b815161239f8161296f565b634e487b7160e01b600052603160045260246000fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015612feb578181015183820152602001612fd3565b50506000910152565b60008251613006818460208701612fd0565b9190910192915050565b602081526000825180602084015261302f816040850160208701612fd0565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220dd8f5718c929011317fcd87e89f5583d4a3d3bab40cf01666a792f08e3afe72d64736f6c63430008120033", + "deployedBytecode": "0x6080604052600436106102515760003560e01c8063817b1cd211610139578063c8f33c91116100b6578063df136d651161007a578063df136d65146106e5578063eed9da1f146106fc578063f12d54d814610713578063f2fde38b14610732578063f6c3565014610752578063f762e7341461077357600080fd5b8063c8f33c9114610662578063c8f74bb814610679578063cc1a378f14610699578063cd3daf9d146106b9578063cedaf639146106ce57600080fd5b80639e2c8a5b116100fd5780639e2c8a5b1461059f578063a029e898146105bf578063bddff592146105fa578063be01d6c714610611578063c66120f41461063157600080fd5b8063817b1cd21461050f578063842e2981146105265780638980f11f146105535780638da5cb5b146105735780639b602f0a1461058857600080fd5b80634f1ef286116101d257806367d3b4881161019657806367d3b48814610459578063715018a614610470578063793e875e146104855780637b2cca38146104a55780637c2edb16146104d257806380faa57d146104fa57600080fd5b80634f1ef286146103b757806352d1902d146103ca5780635c046e66146103df5780635c975abb1461041457806363d071201461043957600080fd5b8063386a952511610219578063386a95251461032a5780633c6b16ab146103415780633e491d471461036157806340a8d39f146103815780634a7f48041461039757600080fd5b806304d978f1146102565780630e15561a146102a357806310087fb1146102c85780631c4b774b146102ea5780633659cfe61461030a575b600080fd5b34801561026257600080fd5b50610276610271366004612984565b610791565b604080519586526020860194909452928401919091526060830152608082015260a0015b60405180910390f35b3480156102af57600080fd5b506102ba6102365481565b60405190815260200161029a565b3480156102d457600080fd5b506102e86102e33660046129b0565b6107e0565b005b3480156102f657600080fd5b506102e86103053660046129e6565b610a7e565b34801561031657600080fd5b506102e86103253660046129ff565b610b0b565b34801561033657600080fd5b506102ba61022e5481565b34801561034d57600080fd5b506102e861035c3660046129e6565b610bd0565b34801561036d57600080fd5b506102ba61037c366004612984565b610e6c565b34801561038d57600080fd5b506102ba61271081565b3480156103a357600080fd5b506102e86103b23660046129e6565b610f6e565b6102e86103c5366004612a63565b610f7c565b3480156103d657600080fd5b506102ba611031565b3480156103eb57600080fd5b506103ff6103fa3660046129e6565b6110df565b6040805192835260208301919091520161029a565b34801561042057600080fd5b5061042961110e565b604051901515815260200161029a565b34801561044557600080fd5b506102e8610454366004612b5a565b611182565b34801561046557600080fd5b506102ba61022f5481565b34801561047c57600080fd5b506102e861132a565b34801561049157600080fd5b506102e86104a0366004612c6b565b611360565b3480156104b157600080fd5b506104c56104c03660046129ff565b6113d2565b60405161029a9190612c87565b3480156104de57600080fd5b50610161546001600160a01b03165b60405161029a9190612ccb565b34801561050657600080fd5b506102ba611480565b34801561051b57600080fd5b506102ba6102335481565b34801561053257600080fd5b506105466105413660046129ff565b61148f565b60405161029a9190612cdf565b34801561055f57600080fd5b506102e861056e366004612984565b611537565b34801561057f57600080fd5b506104ed611633565b34801561059457600080fd5b506102ba61022c5481565b3480156105ab57600080fd5b506102e86105ba366004612d4d565b6116a1565b3480156105cb57600080fd5b506105df6105da3660046129e6565b611b86565b6040805182518152602092830151928101929092520161029a565b34801561060657600080fd5b506102ba6102315481565b34801561061d57600080fd5b506102e861062c3660046129e6565b611c30565b34801561063d57600080fd5b5061042961064c3660046129ff565b6102376020526000908152604090205460ff1681565b34801561066e57600080fd5b506102ba6102305481565b34801561068557600080fd5b506102ba6106943660046129ff565b611c3e565b3480156106a557600080fd5b506102e86106b43660046129e6565b611c70565b3480156106c557600080fd5b506102ba611cd0565b3480156106da57600080fd5b506102ba61022b5481565b3480156106f157600080fd5b506102ba6102325481565b34801561070857600080fd5b506102ba6102345481565b34801561071f57600080fd5b5061012e546001600160a01b03166104ed565b34801561073e57600080fd5b506102e861074d3660046129ff565b611d37565b34801561075e57600080fd5b5061022a546104ed906001600160a01b031681565b34801561077f57600080fd5b5060fb546001600160a01b03166104ed565b61023560205281600052604060002081815481106107ae57600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b6107e8611d6c565b6107f0611dc7565b336107fa81611e11565b156108205760405162461bcd60e51b815260040161081790612d6f565b60405180910390fd5b600083116108405760405162461bcd60e51b815260040161081790612d8b565b61022d5461085090600190612dc5565b8260ff16111561089b5760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081cdd185ada5b99c81c195c9a5bd960521b6044820152606401610817565b6108a6600080611e84565b600061022d8360ff16815481106108bf576108bf612dd8565b600091825260208083206040805180820182526002909402909101805484526001015483830152805160a08101909152878152825192945091908201906109069042612dee565b815283516020820152610232546040820152600060609091015261022b5483519192501180159061093a575061022c548510155b1561095b5733600090815261023760205260409020805460ff191660011790555b3360008181526102356020908152604080832080546001808201835582865284862088516005909302019182559387015181850155918601516002830155606086015160038301556080860151600490920191909155928252915490916109c191612dc5565b905060006127108460200151886109d89190612e01565b6109e29190612e18565b90508061023460008282546109f79190612dee565b92505081905550866102336000828254610a119190612dee565b909155505061022a54610a2f906001600160a01b031633308a611f49565b604080518381526020810189905233917f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90910160405180910390a25050505050610a7a60016101f855565b5050565b610a86611d6c565b33610a9081611e11565b15610aad5760405162461bcd60e51b815260040161081790612d6f565b610ab8826001612dee565b33600090815261023560205260409020541015610ae75760405162461bcd60e51b815260040161081790612e3a565b610af2335b83611e84565b610afc3383611fba565b50610b0860016101f855565b50565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610b535760405162461bcd60e51b815260040161081790612e66565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b856120bb565b6001600160a01b031614610bab5760405162461bcd60e51b815260040161081790612eb2565b610bb4816120d7565b60408051600080825260208201909252610b08918391906120df565b610bd861224a565b600061022e5411610c2b5760405162461bcd60e51b815260206004820152601b60248201527f72657761726473206475726174696f6e206973206e6f742073657400000000006044820152606401610817565b60008111610c4b5760405162461bcd60e51b815260040161081790612d8b565b610c56600080611e84565b61022f544210610c775761022e54610c6e9082612e18565b61023155610cb7565b6000610231544261022f54610c8c9190612dc5565b610c969190612e01565b61022e54909150610ca78284612dee565b610cb19190612e18565b61023155505b60006102315411610cfc5760405162461bcd60e51b815260206004820152600f60248201526e07265776172642072617465203d203608c1b6044820152606401610817565b61022e546102335461022a546040516370a0823160e01b815284916001600160a01b0316906370a0823190610d35903090600401612ccb565b602060405180830381865afa158015610d52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d769190612efe565b610d809190612dee565b610d8a9190612dc5565b610d949190612e18565b610231541115610de05760405162461bcd60e51b815260206004820152601760248201527672657761726420616d6f756e74203e2062616c616e636560481b6044820152606401610817565b61022e54610dee9042612dee565b61022f5542610230556102368054829190600090610e0d908490612dee565b909155505061022a54610e2b906001600160a01b0316333084611f49565b610231546040805183815260208101929092527fc3ed9e2a55e03c1173986e2799c70b4a5654ed43739f79f1ad3833683dad9f7f910160405180910390a150565b6001600160a01b038216600090815261023560205260408120805482919084908110610e9a57610e9a612dd8565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000610ef682604001516122a9565b90506000612710828460000151610f0d9190612e01565b610f179190612e18565b90506000670de0b6b3a76400008460600151610f31611cd0565b610f3b9190612dc5565b610f459084612e01565b610f4f9190612e18565b9050836080015181610f619190612dee565b9450505050505b92915050565b610f7661224a565b61022b55565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610fc45760405162461bcd60e51b815260040161081790612e66565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ff66120bb565b6001600160a01b03161461101c5760405162461bcd60e51b815260040161081790612eb2565b611025826120d7565b610a7a828260016120df565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110cc5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610817565b5060008051602061304483398151915290565b61022d81815481106110f057600080fd5b60009182526020909120600290910201805460019091015490915082565b61012e5460408051635c975abb60e01b815290516000926001600160a01b031691635c975abb9160048083019260209291908290030181865afa158015611159573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117d9190612f17565b905090565b600054610100900460ff16158080156111a25750600054600160ff909116105b806111bc5750303b1580156111bc575060005460ff166001145b61121f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610817565b6000805460ff191660011790558015611242576000805461ff0019166101001790555b61124d888888612333565b61022a80546001600160a01b0319166001600160a01b038716179055835160005b818110156112cc5761022d86828151811061128b5761128b612dd8565b6020908102919091018101518254600181810185556000948552938390208251600290920201908155910151910155806112c481612f39565b91505061126e565b505061022b83905561022c8290558015611320576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b61133261224a565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610817565b61136861224a565b61022d805460018101825560009190915281517fcbe5eb94ee31c6183f3d82fc7ed725908f7d7e2da0ee28e8d5e09973be5efd3d6002909202918201556020909101517fcbe5eb94ee31c6183f3d82fc7ed725908f7d7e2da0ee28e8d5e09973be5efd3e90910155565b6001600160a01b038116600090815261023560205260408120546060918167ffffffffffffffff81111561140857611408612a1c565b604051908082528060200260200182016040528015611431578160200160208202803683370190505b50905060005b82811015611478576114498582610e6c565b82828151811061145b5761145b612dd8565b60209081029190910101528061147081612f39565b915050611437565b509392505050565b600061117d61022f544261238d565b6001600160a01b038116600090815261023560209081526040808320805482518185028101850190935280835260609492939192909184015b8282101561152c57838290600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050815260200190600101906114c8565b505050509050919050565b61153f61224a565b600081116115755760405162461bcd60e51b815260206004820152600360248201526204c31360ec1b6044820152606401610817565b6040516370a0823160e01b8152829082906001600160a01b038316906370a08231906115a5903090600401612ccb565b602060405180830381865afa1580156115c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e69190612efe565b101561161a5760405162461bcd60e51b81526020600482015260036024820152624c313160e81b6044820152606401610817565b61162e6001600160a01b03821633846123a6565b505050565b60fb5460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801561167d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117d9190612f52565b6116a9611d6c565b336116b381611e11565b156116d05760405162461bcd60e51b815260040161081790612d6f565b600083116116f05760405162461bcd60e51b815260040161081790612d8b565b6116fb826001612dee565b3360009081526102356020526040902054101561172a5760405162461bcd60e51b815260040161081790612e3a565b3360009081526102356020526040902080548390811061174c5761174c612dd8565b9060005260206000209060050201600101544210156117b95760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420756e7374616b6520647572696e67207374616b696e672070656044820152631c9a5bd960e21b6064820152608401610817565b336000908152610235602052604090208054839081106117db576117db612dd8565b90600052602060002090600502016000015483111561183c5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420756e7374616b6520616d6f756e7400000000006044820152606401610817565b61184533610aec565b33600090815261023560205260408120805461188391908590811061186c5761186c612dd8565b9060005260206000209060050201600201546122a9565b905060006127106118948387612e01565b61189e9190612e18565b90508061023460008282546118b39190612dc5565b925050819055508461023360008282546118cd9190612dc5565b9091555050336000908152610235602052604090208054869190869081106118f7576118f7612dd8565b906000526020600020906005020160000160008282546119179190612dc5565b909155505061022b543360009081526102356020526040902080548690811061194257611942612dd8565b90600052602060002090600502016002015410158015611997575061022c543360009081526102356020526040902080548690811061198357611983612dd8565b906000526020600020906005020160000154105b156119b55733600090815261023760205260409020805460ff191690555b336000908152610235602052604090208054859081106119d7576119d7612dd8565b906000526020600020906005020160000154600003611b25576119fa3385611fba565b336000908152610235602052604090208054611a1890600190612dc5565b81548110611a2857611a28612dd8565b90600052602060002090600502016102356000611a423390565b6001600160a01b03166001600160a01b031681526020019081526020016000208581548110611a7357611a73612dd8565b906000526020600020906005020160008201548160000155600182015481600101556002820154816002015560038201548160030155600482015481600401559050506102356000611ac23390565b6001600160a01b03166001600160a01b03168152602001908152602001600020805480611af157611af1612f6f565b6000828152602081206005600019909301928302018181556001810182905560028101829055600381018290556004015590555b611b3d3361022a546001600160a01b031690876123a6565b604080518581526020810187905233917f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e910160405180910390a2505050610a7a60016101f855565b604080518082019091526000808252602082015261022d548290611bac90600190612dc5565b1015611be85760405162461bcd60e51b815260206004820152600b60248201526a0eee4dedcce40d2dcc8caf60ab1b6044820152606401610817565b61022d8281548110611bfc57611bfc612dd8565b9060005260206000209060020201604051806040016040529081600082015481526020016001820154815250509050919050565b611c3861224a565b61022c55565b6001600160a01b0381166000908152610237602052604081205460ff1615611c6857506003919050565b506000919050565b611c7861224a565b4261022f5410611cca5760405162461bcd60e51b815260206004820152601f60248201527f726577617264206475726174696f6e206973206e6f742066696e6973686564006044820152606401610817565b61022e55565b600061023354600003611ce557506102325490565b6102345461023054611cf5611480565b611cff9190612dc5565b61023154611d0d9190612e01565b611d1f90670de0b6b3a7640000612e01565b611d299190612e18565b6102325461117d9190612dee565b611d3f61224a565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610817565b60026101f85403611dbf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610817565b60026101f855565b611dcf61110e565b15611e0f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610817565b565b6101615460405163fe575a8760e01b81526000916001600160a01b03169063fe575a8790611e43908590600401612ccb565b602060405180830381865afa158015611e60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f689190612f17565b611e8c611cd0565b61023255611e98611480565b610230556001600160a01b03821615610a7a57611eb58282610e6c565b6001600160a01b038316600090815261023560205260409020805483908110611ee057611ee0612dd8565b906000526020600020906005020160040181905550610232546102356000846001600160a01b03166001600160a01b031681526020019081526020016000208281548110611f3057611f30612dd8565b9060005260206000209060050201600301819055505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611fb49085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526123d6565b50505050565b6001600160a01b038216600090815261023560205260408120805483908110611fe557611fe5612dd8565b9060005260206000209060050201600401549050600081111561162e576001600160a01b03831660009081526102356020526040812080548490811061202d5761202d612dd8565b9060005260206000209060050201600401819055508061023660008282546120559190612dc5565b909155505061022a54612072906001600160a01b031684836123a6565b60408051838152602081018390526001600160a01b038516917fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f51910160405180910390a2505050565b600080516020613044833981519152546001600160a01b031690565b610b0861224a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156121125761162e836124ab565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561216c575060408051601f3d908101601f1916820190925261216991810190612efe565b60015b6121cf5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610817565b600080516020613044833981519152811461223e5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610817565b5061162e838383612547565b33612253611633565b6001600160a01b031614611e0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610817565b61022d54600090815b8181101561232957600061022d82815481106122d0576122d0612dd8565b9060005260206000209060020201604051806040016040529081600082015481526020016001820154815250509050806000015185036123165760200151949350505050565b508061232181612f39565b9150506122b2565b5060009392505050565b600054610100900460ff1661235a5760405162461bcd60e51b815260040161081790612f85565b61236261256c565b61236b83612593565b6123736125c3565b61237c826125f2565b6123858161263c565b61162e61256c565b60008183111561239d578161239f565b825b9392505050565b6040516001600160a01b03831660248201526044810182905261162e90849063a9059cbb60e01b90606401611f7d565b600061242b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126869092919063ffffffff16565b905080516000148061244c57508080602001905181019061244c9190612f17565b61162e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610817565b6001600160a01b0381163b6125185760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610817565b60008051602061304483398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6125508361269d565b60008251118061255d5750805b1561162e57611fb483836126dd565b600054610100900460ff16611e0f5760405162461bcd60e51b815260040161081790612f85565b600054610100900460ff166125ba5760405162461bcd60e51b815260040161081790612f85565b610b0881612702565b600054610100900460ff166125ea5760405162461bcd60e51b815260040161081790612f85565b611e0f61274b565b600054610100900460ff166126195760405162461bcd60e51b815260040161081790612f85565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166126635760405162461bcd60e51b815260040161081790612f85565b61016180546001600160a01b0319166001600160a01b0392909216919091179055565b6060612695848460008561277e565b949350505050565b6126a6816124ab565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061239f838360405180606001604052806027815260200161306460279139612859565b600054610100900460ff166127295760405162461bcd60e51b815260040161081790612f85565b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166127725760405162461bcd60e51b815260040161081790612f85565b6097805460ff19169055565b6060824710156127df5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610817565b600080866001600160a01b031685876040516127fb9190612ff4565b60006040518083038185875af1925050503d8060008114612838576040519150601f19603f3d011682016040523d82523d6000602084013e61283d565b606091505b509150915061284e878383876128d1565b979650505050505050565b6060600080856001600160a01b0316856040516128769190612ff4565b600060405180830381855af49150503d80600081146128b1576040519150601f19603f3d011682016040523d82523d6000602084013e6128b6565b606091505b50915091506128c7868383876128d1565b9695505050505050565b60608315612940578251600003612939576001600160a01b0385163b6129395760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610817565b5081612695565b61269583838151156129555781518083602001fd5b8060405162461bcd60e51b81526004016108179190613010565b6001600160a01b0381168114610b0857600080fd5b6000806040838503121561299757600080fd5b82356129a28161296f565b946020939093013593505050565b600080604083850312156129c357600080fd5b82359150602083013560ff811681146129db57600080fd5b809150509250929050565b6000602082840312156129f857600080fd5b5035919050565b600060208284031215612a1157600080fd5b813561239f8161296f565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612a5b57612a5b612a1c565b604052919050565b60008060408385031215612a7657600080fd5b8235612a818161296f565b915060208381013567ffffffffffffffff80821115612a9f57600080fd5b818601915086601f830112612ab357600080fd5b813581811115612ac557612ac5612a1c565b612ad7601f8201601f19168501612a32565b91508082528784828501011115612aed57600080fd5b80848401858401376000848284010152508093505050509250929050565b600060408284031215612b1d57600080fd5b6040516040810181811067ffffffffffffffff82111715612b4057612b40612a1c565b604052823581526020928301359281019290925250919050565b600080600080600080600060e0888a031215612b7557600080fd5b8735612b808161296f565b9650602088810135612b918161296f565b9650604089810135612ba28161296f565b965060608a0135612bb28161296f565b955060808a013567ffffffffffffffff80821115612bcf57600080fd5b818c0191508c601f830112612be357600080fd5b813581811115612bf557612bf5612a1c565b612c03858260051b01612a32565b818152858101925060069190911b83018501908e821115612c2357600080fd5b928501925b81841015612c4957612c3a8f85612b0b565b83529284019291850191612c28565b9b9e9a9d50989b979a9960a0890135995060c090980135979650505050505050565b600060408284031215612c7d57600080fd5b61239f8383612b0b565b6020808252825182820181905260009190848201906040850190845b81811015612cbf57835183529284019291840191600101612ca3565b50909695505050505050565b6001600160a01b0391909116815260200190565b602080825282518282018190526000919060409081850190868401855b82811015612d405781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101612cfc565b5091979650505050505050565b60008060408385031215612d6057600080fd5b50508035926020909101359150565b6020808252600290820152614c3960f01b604082015260600190565b6020808252600a90820152690616d6f756e74203d20360b41b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b81810381811115610f6857610f68612daf565b634e487b7160e01b600052603260045260246000fd5b80820180821115610f6857610f68612daf565b8082028115828204841417610f6857610f68612daf565b600082612e3557634e487b7160e01b600052601260045260246000fd5b500490565b602080825260129082015271092dcecc2d8d2c840e6e8c2d6ca92dcc8caf60731b604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215612f1057600080fd5b5051919050565b600060208284031215612f2957600080fd5b8151801515811461239f57600080fd5b600060018201612f4b57612f4b612daf565b5060010190565b600060208284031215612f6457600080fd5b815161239f8161296f565b634e487b7160e01b600052603160045260246000fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015612feb578181015183820152602001612fd3565b50506000910152565b60008251613006818460208701612fd0565b9190910192915050565b602081526000825180602084015261302f816040850160208701612fd0565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220dd8f5718c929011317fcd87e89f5583d4a3d3bab40cf01666a792f08e3afe72d64736f6c63430008120033", "devdoc": { "custom:security-contact": "security@ledgity.comsecurity@ledgity.com", "details": "This contract implements tierOf() function from LDYStaking as it's the only one the LToken contract relies on.", @@ -958,6 +1053,14 @@ "stakeIndex": "The index of user staking pool." } }, + "getStakeDurationInfo(uint256)": { + "params": { + "index": "Index of StakeDurationInfos." + }, + "returns": { + "_0": "StakeDurationInfo." + } + }, "getUserStakes(address)": { "params": { "account": "The address of user." @@ -1017,6 +1120,9 @@ "proxiableUUID()": { "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier." }, + "pushStakeDurationInfo((uint256,uint256))": { + "details": "Only callable by owner." + }, "recoverERC20(address,uint256)": { "params": { "amount": "The amount of token to recover.", @@ -1031,7 +1137,19 @@ "setRewardsDuration(uint256)": { "details": "Only callable by owner, and setting available only after rewards period.", "params": { - "duration": "The nmew rewards duration in seconds." + "duration": "New reward duration in seconds." + } + }, + "setStakeAmountForPerks(uint256)": { + "details": "Only callable by owner.", + "params": { + "stakeAmountForPerks_": "New stakeDurationForPerks." + } + }, + "setStakeDurationForPerks(uint256)": { + "details": "Only callable by owner.", + "params": { + "stakeDurationForPerks_": "New stakeDurationForPerks." } }, "stake(uint256,uint8)": { @@ -1103,6 +1221,9 @@ "getReward(uint256)": { "notice": "Claim pending rewards." }, + "getStakeDurationInfo(uint256)": { + "notice": "Get StakeDurationInfo." + }, "getUserStakes(address)": { "notice": "Get User Stake Data." }, @@ -1136,6 +1257,9 @@ "paused()": { "notice": "Override of PausableUpgradeable.pause() that retrieves the pause state from the GlobalPause contract instead." }, + "pushStakeDurationInfo((uint256,uint256))": { + "notice": "Push stakeDurationInfo" + }, "recoverERC20(address,uint256)": { "notice": "Recovers a specified amount of a given token address. Will fail if the contract doesn't hold enough tokens." }, @@ -1157,6 +1281,12 @@ "setRewardsDuration(uint256)": { "notice": "Update Rewards Duration." }, + "setStakeAmountForPerks(uint256)": { + "notice": "Update stakeAmountForPerks" + }, + "setStakeDurationForPerks(uint256)": { + "notice": "Update stakeDurationForPerks" + }, "stake(uint256,uint8)": { "notice": "Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards." }, @@ -1172,6 +1302,9 @@ "stakeRewardToken()": { "notice": "Stake and Reward token." }, + "totalRewards()": { + "notice": "Total rewards amount." + }, "totalStaked()": { "notice": "Total staked amounts." }, @@ -1262,7 +1395,7 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 8879, + "astId": 8986, "contract": "contracts/src/LDYStaking.sol:LDYStaking", "label": "_globalOwner", "offset": 0, @@ -1270,7 +1403,7 @@ "type": "t_contract(GlobalOwner)5028" }, { - "astId": 8963, + "astId": 9070, "contract": "contracts/src/LDYStaking.sol:LDYStaking", "label": "__gap", "offset": 0, @@ -1278,7 +1411,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 8981, + "astId": 9088, "contract": "contracts/src/LDYStaking.sol:LDYStaking", "label": "_globalPause", "offset": 0, @@ -1286,7 +1419,7 @@ "type": "t_contract(GlobalPause)5104" }, { - "astId": 9040, + "astId": 9147, "contract": "contracts/src/LDYStaking.sol:LDYStaking", "label": "__gap", "offset": 0, @@ -1294,7 +1427,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 9054, + "astId": 9161, "contract": "contracts/src/LDYStaking.sol:LDYStaking", "label": "_globalBlacklist", "offset": 0, @@ -1302,7 +1435,7 @@ "type": "t_contract(GlobalBlacklist)4981" }, { - "astId": 9128, + "astId": 9235, "contract": "contracts/src/LDYStaking.sol:LDYStaking", "label": "__gap", "offset": 0, @@ -1310,7 +1443,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 10147, + "astId": 10254, "contract": "contracts/src/LDYStaking.sol:LDYStaking", "label": "__gap", "offset": 0, @@ -1318,7 +1451,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 10238, + "astId": 10345, "contract": "contracts/src/LDYStaking.sol:LDYStaking", "label": "__gap", "offset": 0, @@ -1438,11 +1571,19 @@ "type": "t_mapping(t_address,t_array(t_struct(StakingInfo)5165_storage)dyn_storage)" }, { - "astId": 5255, + "astId": 5219, "contract": "contracts/src/LDYStaking.sol:LDYStaking", - "label": "highTierAccounts", + "label": "totalRewards", "offset": 0, "slot": "566", + "type": "t_uint256" + }, + { + "astId": 5258, + "contract": "contracts/src/LDYStaking.sol:LDYStaking", + "label": "highTierAccounts", + "offset": 0, + "slot": "567", "type": "t_mapping(t_address,t_bool)" } ], diff --git a/contracts/hardhat/deployments/baseSepolia/LDYStaking_Proxy.json b/contracts/hardhat/deployments/baseSepolia/LDYStaking_Proxy.json index 77032bdb..1c33171f 100644 --- a/contracts/hardhat/deployments/baseSepolia/LDYStaking_Proxy.json +++ b/contracts/hardhat/deployments/baseSepolia/LDYStaking_Proxy.json @@ -1,5 +1,5 @@ { - "address": "0xA798B51F15B0024880f835723C681cB730835628", + "address": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", "abi": [ { "inputs": [ @@ -71,51 +71,51 @@ "type": "receive" } ], - "transactionHash": "0x70d046b9d0e273798012ac8c923252c5aea8eb625053ff4b608b3f97b5363e11", + "transactionHash": "0x99dbf8271327e905e54667e9ef2b1d334d58993cccba2c4585c68fc0bf1a565c", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0xA798B51F15B0024880f835723C681cB730835628", - "transactionIndex": 9, - "gasUsed": "725364", - "logsBloom": "0x00000000000000000000200800000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000080000000000000000020000000000000000000000000000400000000000000000000000000000000000000000020100000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080", - "blockHash": "0xf031826e43ea12305cfb5f060dd15b7889f370bb50cb35d508082d5b383d3450", - "transactionHash": "0x70d046b9d0e273798012ac8c923252c5aea8eb625053ff4b608b3f97b5363e11", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", + "transactionIndex": 4, + "gasUsed": "634391", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000002000000000008000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000080000000000000000000000000000000000000000000400400000000000000000000000000000800000000000020000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x3927e8ec76fd878fd1b68f251a2f457c97a8f2820332e9ecc1bedca1bb21c67e", + "transactionHash": "0x99dbf8271327e905e54667e9ef2b1d334d58993cccba2c4585c68fc0bf1a565c", "logs": [ { - "transactionIndex": 9, - "blockNumber": 10098321, - "transactionHash": "0x70d046b9d0e273798012ac8c923252c5aea8eb625053ff4b608b3f97b5363e11", - "address": "0xA798B51F15B0024880f835723C681cB730835628", + "transactionIndex": 4, + "blockNumber": 12320796, + "transactionHash": "0x99dbf8271327e905e54667e9ef2b1d334d58993cccba2c4585c68fc0bf1a565c", + "address": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000e12589233c93262b182efb9b89e44d480e44ba7e" + "0x000000000000000000000000fd6792b610941081afa5108c7f1fd54767dd5b09" ], "data": "0x", - "logIndex": 23, - "blockHash": "0xf031826e43ea12305cfb5f060dd15b7889f370bb50cb35d508082d5b383d3450" + "logIndex": 45, + "blockHash": "0x3927e8ec76fd878fd1b68f251a2f457c97a8f2820332e9ecc1bedca1bb21c67e" }, { - "transactionIndex": 9, - "blockNumber": 10098321, - "transactionHash": "0x70d046b9d0e273798012ac8c923252c5aea8eb625053ff4b608b3f97b5363e11", - "address": "0xA798B51F15B0024880f835723C681cB730835628", + "transactionIndex": 4, + "blockNumber": 12320796, + "transactionHash": "0x99dbf8271327e905e54667e9ef2b1d334d58993cccba2c4585c68fc0bf1a565c", + "address": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 24, - "blockHash": "0xf031826e43ea12305cfb5f060dd15b7889f370bb50cb35d508082d5b383d3450" + "logIndex": 46, + "blockHash": "0x3927e8ec76fd878fd1b68f251a2f457c97a8f2820332e9ecc1bedca1bb21c67e" } ], - "blockNumber": 10098321, - "cumulativeGasUsed": "2216886", + "blockNumber": 12320796, + "cumulativeGasUsed": "2630690", "status": 1, "byzantium": true }, "args": [ - "0xe12589233C93262b182eFb9B89e44d480E44bA7E", - "0x63d0712000000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b20000000000000000000000009992cc9176f2b86c56fda697d814c1a054c2035e000000000000000000000000546b48297ce50fa31a383afe7df48297337c12b5000000000000000000000000e376bd13399f1f86ad659145a2bed2cdc24a7e5e00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000001ea6e0000000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000028de8000000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000000000000f537000000000000000000000000000000000000000000000000000000000000003a980000000000000000000000000000000000000000000000000000000001ea6e000000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000003d4dc0000000000000000000000000000000000000000000000000000000000000075300000000000000000000000000000000000000000000000000000000005bf4a000000000000000000000000000000000000000000000000000000000000009c40" + "0xfD6792b610941081aFA5108C7F1fD54767dD5B09", + "0x63d07120000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53000000000000000000000000061b0b71b87bd4ff6086011a17589ea08daa49a500000000000000000000000098002b5c06b44c8769da3dae97ca498ab6f971370000000000000000000000008584bcd220a048104e654f842c56e33d37d6aee300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000001ea6e0000000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000028de800000000000000000000000000000000000000000000000000000000000009c400000000000000000000000000000000000000000000000000000000000f53700000000000000000000000000000000000000000000000000000000000000ea600000000000000000000000000000000000000000000000000000000001ea6e0000000000000000000000000000000000000000000000000000000000000186a0" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", diff --git a/contracts/hardhat/deployments/baseSepolia/LTokenSignaler.json b/contracts/hardhat/deployments/baseSepolia/LTokenSignaler.json index f020888f..46e20799 100644 --- a/contracts/hardhat/deployments/baseSepolia/LTokenSignaler.json +++ b/contracts/hardhat/deployments/baseSepolia/LTokenSignaler.json @@ -1,5 +1,5 @@ { - "address": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", + "address": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", "abi": [ { "anonymous": false, @@ -232,51 +232,51 @@ "type": "constructor" } ], - "transactionHash": "0x0844100b3b566a106c7020c768a2252029f6bbc668a99e60b207d0178d589091", + "transactionHash": "0x90059bb83d5774379ea41e579d629697a2dd954c13391d28fdc4519ba7b2b6b3", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", - "transactionIndex": 4, - "gasUsed": "332603", - "logsBloom": "0x00000000000000000000000000000000400000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000008000000000020000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000020000000000001400000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x2a64aadf4bd6b093aa3abef414d68e9994065953cb15c36b66fb10ab1693c328", - "transactionHash": "0x0844100b3b566a106c7020c768a2252029f6bbc668a99e60b207d0178d589091", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", + "transactionIndex": 7, + "gasUsed": "332681", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002100000000000000000080000000000000000000000010100000000000000000000400000004000000000000000000000000000000000020000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x55d45ee8c12c6abba0b76448547548d07fdacbbcc32ed534d8dff8fbcf325864", + "transactionHash": "0x90059bb83d5774379ea41e579d629697a2dd954c13391d28fdc4519ba7b2b6b3", "logs": [ { - "transactionIndex": 4, - "blockNumber": 9269469, - "transactionHash": "0x0844100b3b566a106c7020c768a2252029f6bbc668a99e60b207d0178d589091", - "address": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", + "transactionIndex": 7, + "blockNumber": 12320814, + "transactionHash": "0x90059bb83d5774379ea41e579d629697a2dd954c13391d28fdc4519ba7b2b6b3", + "address": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000ba93a7d76cd3873d63cb9f6510fef3c1fb78be86" + "0x000000000000000000000000189073f3d50c637125a8b82c3afd39437a8e3fd3" ], "data": "0x", - "logIndex": 3, - "blockHash": "0x2a64aadf4bd6b093aa3abef414d68e9994065953cb15c36b66fb10ab1693c328" + "logIndex": 98, + "blockHash": "0x55d45ee8c12c6abba0b76448547548d07fdacbbcc32ed534d8dff8fbcf325864" }, { - "transactionIndex": 4, - "blockNumber": 9269469, - "transactionHash": "0x0844100b3b566a106c7020c768a2252029f6bbc668a99e60b207d0178d589091", - "address": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", + "transactionIndex": 7, + "blockNumber": 12320814, + "transactionHash": "0x90059bb83d5774379ea41e579d629697a2dd954c13391d28fdc4519ba7b2b6b3", + "address": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 4, - "blockHash": "0x2a64aadf4bd6b093aa3abef414d68e9994065953cb15c36b66fb10ab1693c328" + "logIndex": 99, + "blockHash": "0x55d45ee8c12c6abba0b76448547548d07fdacbbcc32ed534d8dff8fbcf325864" } ], - "blockNumber": 9269469, - "cumulativeGasUsed": "2600968", + "blockNumber": 12320814, + "cumulativeGasUsed": "4928490", "status": 1, "byzantium": true }, "args": [ - "0xBa93a7D76cD3873D63cb9F6510FEF3c1fB78be86", - "0xc4d66de800000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b2" + "0x189073F3D50C637125a8B82C3afD39437a8E3FD3", + "0xc4d66de8000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", @@ -286,10 +286,10 @@ "execute": { "methodName": "initialize", "args": [ - "0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2" + "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53" ] }, - "implementation": "0xBa93a7D76cD3873D63cb9F6510FEF3c1fB78be86", + "implementation": "0x189073F3D50C637125a8B82C3afD39437a8E3FD3", "devdoc": { "details": "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.", "kind": "dev", diff --git a/contracts/hardhat/deployments/baseSepolia/LTokenSignaler_Implementation.json b/contracts/hardhat/deployments/baseSepolia/LTokenSignaler_Implementation.json index 64dcbb05..69f259d1 100644 --- a/contracts/hardhat/deployments/baseSepolia/LTokenSignaler_Implementation.json +++ b/contracts/hardhat/deployments/baseSepolia/LTokenSignaler_Implementation.json @@ -1,5 +1,5 @@ { - "address": "0xBa93a7D76cD3873D63cb9F6510FEF3c1fB78be86", + "address": "0x189073F3D50C637125a8B82C3afD39437a8E3FD3", "abi": [ { "inputs": [], @@ -213,41 +213,41 @@ "type": "function" } ], - "transactionHash": "0xcfcc1b29e2787ce89663f9927e687f258815a3d3003d9370261d46db1efd8548", + "transactionHash": "0x07be42eb95eae96898471013614f6043b42fc22be9b658b077632f27789fbd2a", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0xBa93a7D76cD3873D63cb9F6510FEF3c1fB78be86", - "transactionIndex": 1, - "gasUsed": "862865", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000400000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xc9b58168d7161c6baf0c9755b69a3f4b331f47bd725b2e4804bd5cde4a17ecc6", - "transactionHash": "0xcfcc1b29e2787ce89663f9927e687f258815a3d3003d9370261d46db1efd8548", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x189073F3D50C637125a8B82C3afD39437a8E3FD3", + "transactionIndex": 5, + "gasUsed": "854562", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000040000000000000000000000000000000000004000000000000000000", + "blockHash": "0x415056f60c4f4c26c1958dea346a60e2f28e02cf99e89967630db9ac11b60564", + "transactionHash": "0x07be42eb95eae96898471013614f6043b42fc22be9b658b077632f27789fbd2a", "logs": [ { - "transactionIndex": 1, - "blockNumber": 9269465, - "transactionHash": "0xcfcc1b29e2787ce89663f9927e687f258815a3d3003d9370261d46db1efd8548", - "address": "0xBa93a7D76cD3873D63cb9F6510FEF3c1fB78be86", + "transactionIndex": 5, + "blockNumber": 12320809, + "transactionHash": "0x07be42eb95eae96898471013614f6043b42fc22be9b658b077632f27789fbd2a", + "address": "0x189073F3D50C637125a8B82C3afD39437a8E3FD3", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "logIndex": 0, - "blockHash": "0xc9b58168d7161c6baf0c9755b69a3f4b331f47bd725b2e4804bd5cde4a17ecc6" + "logIndex": 6, + "blockHash": "0x415056f60c4f4c26c1958dea346a60e2f28e02cf99e89967630db9ac11b60564" } ], - "blockNumber": 9269465, - "cumulativeGasUsed": "906740", + "blockNumber": 12320809, + "cumulativeGasUsed": "1233427", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "15c81200c85905d33a34abc672a45266", - "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"lTokenAddress\",\"type\":\"address\"}],\"name\":\"LTokenSignalEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lTokenAddress\",\"type\":\"address\"}],\"name\":\"signalLToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Signal are ignored by the subgraph if the L-Token is already known by it.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"LTokenSignalEvent(address)\":{\"params\":{\"lTokenAddress\":\"The address of the L-Token contract to signal.\"}},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\"},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"initialize(address)\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\"},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"signalLToken(address)\":{\"params\":{\"lTokenAddress\":\"The address of the LToken contract to signal.\"}},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"title\":\"LTokenSignaler\",\"version\":1},\"userdoc\":{\"events\":{\"LTokenSignalEvent(address)\":{\"notice\":\"Emitted to inform subgraph of the existence of a new L-Token contract.\"}},\"kind\":\"user\",\"methods\":{\"constructor\":{\"notice\":\"Prevents implementation contract from being initialized as recommended by OpenZeppelin.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"initialize(address)\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"signalLToken(address)\":{\"notice\":\"Signals a LToken contract to the TheGraph subgraph of the current chain.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"}},\"notice\":\"Used to inform subgraph from the existence of a new L-Token contract. Once signaled, a L-Token will start being indexed.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/LTokenSignaler.sol\":\"LTokenSignaler\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/LTokenSignaler.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title LTokenSignaler\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Used to inform subgraph from the existence of a new L-Token contract. Once\\n * signaled, a L-Token will start being indexed.\\n *\\n * @dev Signal are ignored by the subgraph if the L-Token is already known by it.\\n *\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LTokenSignaler is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\\n /**\\n * @notice Emitted to inform subgraph of the existence of a new L-Token contract.\\n * @param lTokenAddress The address of the L-Token contract to signal.\\n */\\n event LTokenSignalEvent(address indexed lTokenAddress);\\n\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @notice Signals a LToken contract to the TheGraph subgraph of the current chain.\\n * @param lTokenAddress The address of the LToken contract to signal.\\n */\\n function signalLToken(address lTokenAddress) external onlyOwner {\\n // Signal the LToken contract\\n emit LTokenSignalEvent(lTokenAddress);\\n }\\n}\\n\",\"keccak256\":\"0xdfbd3364c76705fb67b72cdb405d6691a9b2e3cbcc0f3f783add6ac6cc855bd3\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051610e2e610118600039600081816101b2015281816101fb0152818161029a015281816102da015261036d0152610e2e6000f3fe6080604052600436106100865760003560e01c80638da5cb5b116100595780638da5cb5b146100fd578063a69823dc1461012a578063c4d66de81461014a578063f2fde38b1461016a578063f762e7341461018a57600080fd5b80633659cfe61461008b5780634f1ef286146100ad57806352d1902d146100c0578063715018a6146100e8575b600080fd5b34801561009757600080fd5b506100ab6100a6366004610b2e565b6101a8565b005b6100ab6100bb366004610b61565b610290565b3480156100cc57600080fd5b506100d5610360565b6040519081526020015b60405180910390f35b3480156100f457600080fd5b506100ab610413565b34801561010957600080fd5b50610112610449565b6040516001600160a01b0390911681526020016100df565b34801561013657600080fd5b506100ab610145366004610b2e565b6104bc565b34801561015657600080fd5b506100ab610165366004610b2e565b6104fb565b34801561017657600080fd5b506100ab610185366004610b2e565b610615565b34801561019657600080fd5b5060c9546001600160a01b0316610112565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036101f95760405162461bcd60e51b81526004016101f090610c25565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610242600080516020610db2833981519152546001600160a01b031690565b6001600160a01b0316146102685760405162461bcd60e51b81526004016101f090610c71565b6102718161064a565b6040805160008082526020820190925261028d91839190610652565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102d85760405162461bcd60e51b81526004016101f090610c25565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610321600080516020610db2833981519152546001600160a01b031690565b6001600160a01b0316146103475760405162461bcd60e51b81526004016101f090610c71565b6103508261064a565b61035c82826001610652565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104005760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016101f0565b50600080516020610db283398151915290565b61041b6107c2565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b60448201526064016101f0565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b79190610cbd565b905090565b6104c46107c2565b6040516001600160a01b038216907f36c1488d5243eeaf5fb0cf28a35c54973316358b76e9c32ccbe2c57956b0879b90600090a250565b600054610100900460ff161580801561051b5750600054600160ff909116105b806105355750303b158015610535575060005460ff166001145b6105985760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101f0565b6000805460ff1916600117905580156105bb576000805461ff0019166101001790555b6105c482610823565b6105cc610853565b801561035c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b61061d6107c2565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b60448201526064016101f0565b61028d6107c2565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561068a576106858361087a565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106e4575060408051601f3d908101601f191682019092526106e191810190610cda565b60015b6107475760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101f0565b600080516020610db283398151915281146107b65760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101f0565b50610685838383610916565b336107cb610449565b6001600160a01b0316146108215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101f0565b565b600054610100900460ff1661084a5760405162461bcd60e51b81526004016101f090610cf3565b61028d81610941565b600054610100900460ff166108215760405162461bcd60e51b81526004016101f090610cf3565b6001600160a01b0381163b6108e75760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101f0565b600080516020610db283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61091f8361098a565b60008251118061092c5750805b156106855761093b83836109ca565b50505050565b600054610100900460ff166109685760405162461bcd60e51b81526004016101f090610cf3565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b6109938161087a565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606109ef8383604051806060016040528060278152602001610dd2602791396109f6565b9392505050565b6060600080856001600160a01b031685604051610a139190610d62565b600060405180830381855af49150503d8060008114610a4e576040519150601f19603f3d011682016040523d82523d6000602084013e610a53565b606091505b5091509150610a6486838387610a6e565b9695505050505050565b60608315610add578251600003610ad6576001600160a01b0385163b610ad65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101f0565b5081610ae7565b610ae78383610aef565b949350505050565b815115610aff5781518083602001fd5b8060405162461bcd60e51b81526004016101f09190610d7e565b6001600160a01b038116811461028d57600080fd5b600060208284031215610b4057600080fd5b81356109ef81610b19565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b7457600080fd5b8235610b7f81610b19565b9150602083013567ffffffffffffffff80821115610b9c57600080fd5b818501915085601f830112610bb057600080fd5b813581811115610bc257610bc2610b4b565b604051601f8201601f19908116603f01168101908382118183101715610bea57610bea610b4b565b81604052828152886020848701011115610c0357600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610ccf57600080fd5b81516109ef81610b19565b600060208284031215610cec57600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610d59578181015183820152602001610d41565b50506000910152565b60008251610d74818460208701610d3e565b9190910192915050565b6020815260008251806020840152610d9d816040850160208701610d3e565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122068da0230acd1366802db80aa8fbec2cdf9b29855484e88bbd5526025431b168464736f6c63430008120033", - "deployedBytecode": "0x6080604052600436106100865760003560e01c80638da5cb5b116100595780638da5cb5b146100fd578063a69823dc1461012a578063c4d66de81461014a578063f2fde38b1461016a578063f762e7341461018a57600080fd5b80633659cfe61461008b5780634f1ef286146100ad57806352d1902d146100c0578063715018a6146100e8575b600080fd5b34801561009757600080fd5b506100ab6100a6366004610b2e565b6101a8565b005b6100ab6100bb366004610b61565b610290565b3480156100cc57600080fd5b506100d5610360565b6040519081526020015b60405180910390f35b3480156100f457600080fd5b506100ab610413565b34801561010957600080fd5b50610112610449565b6040516001600160a01b0390911681526020016100df565b34801561013657600080fd5b506100ab610145366004610b2e565b6104bc565b34801561015657600080fd5b506100ab610165366004610b2e565b6104fb565b34801561017657600080fd5b506100ab610185366004610b2e565b610615565b34801561019657600080fd5b5060c9546001600160a01b0316610112565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036101f95760405162461bcd60e51b81526004016101f090610c25565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610242600080516020610db2833981519152546001600160a01b031690565b6001600160a01b0316146102685760405162461bcd60e51b81526004016101f090610c71565b6102718161064a565b6040805160008082526020820190925261028d91839190610652565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102d85760405162461bcd60e51b81526004016101f090610c25565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610321600080516020610db2833981519152546001600160a01b031690565b6001600160a01b0316146103475760405162461bcd60e51b81526004016101f090610c71565b6103508261064a565b61035c82826001610652565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104005760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016101f0565b50600080516020610db283398151915290565b61041b6107c2565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b60448201526064016101f0565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b79190610cbd565b905090565b6104c46107c2565b6040516001600160a01b038216907f36c1488d5243eeaf5fb0cf28a35c54973316358b76e9c32ccbe2c57956b0879b90600090a250565b600054610100900460ff161580801561051b5750600054600160ff909116105b806105355750303b158015610535575060005460ff166001145b6105985760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101f0565b6000805460ff1916600117905580156105bb576000805461ff0019166101001790555b6105c482610823565b6105cc610853565b801561035c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b61061d6107c2565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b60448201526064016101f0565b61028d6107c2565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561068a576106858361087a565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106e4575060408051601f3d908101601f191682019092526106e191810190610cda565b60015b6107475760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101f0565b600080516020610db283398151915281146107b65760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101f0565b50610685838383610916565b336107cb610449565b6001600160a01b0316146108215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101f0565b565b600054610100900460ff1661084a5760405162461bcd60e51b81526004016101f090610cf3565b61028d81610941565b600054610100900460ff166108215760405162461bcd60e51b81526004016101f090610cf3565b6001600160a01b0381163b6108e75760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101f0565b600080516020610db283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61091f8361098a565b60008251118061092c5750805b156106855761093b83836109ca565b50505050565b600054610100900460ff166109685760405162461bcd60e51b81526004016101f090610cf3565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b6109938161087a565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606109ef8383604051806060016040528060278152602001610dd2602791396109f6565b9392505050565b6060600080856001600160a01b031685604051610a139190610d62565b600060405180830381855af49150503d8060008114610a4e576040519150601f19603f3d011682016040523d82523d6000602084013e610a53565b606091505b5091509150610a6486838387610a6e565b9695505050505050565b60608315610add578251600003610ad6576001600160a01b0385163b610ad65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101f0565b5081610ae7565b610ae78383610aef565b949350505050565b815115610aff5781518083602001fd5b8060405162461bcd60e51b81526004016101f09190610d7e565b6001600160a01b038116811461028d57600080fd5b600060208284031215610b4057600080fd5b81356109ef81610b19565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b7457600080fd5b8235610b7f81610b19565b9150602083013567ffffffffffffffff80821115610b9c57600080fd5b818501915085601f830112610bb057600080fd5b813581811115610bc257610bc2610b4b565b604051601f8201601f19908116603f01168101908382118183101715610bea57610bea610b4b565b81604052828152886020848701011115610c0357600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610ccf57600080fd5b81516109ef81610b19565b600060208284031215610cec57600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610d59578181015183820152602001610d41565b50506000910152565b60008251610d74818460208701610d3e565b9190910192915050565b6020815260008251806020840152610d9d816040850160208701610d3e565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122068da0230acd1366802db80aa8fbec2cdf9b29855484e88bbd5526025431b168464736f6c63430008120033", + "solcInputHash": "1d9f98e9f73009a42653e1abaf15e178", + "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"lTokenAddress\",\"type\":\"address\"}],\"name\":\"LTokenSignalEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lTokenAddress\",\"type\":\"address\"}],\"name\":\"signalLToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Signal are ignored by the subgraph if the L-Token is already known by it.\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"LTokenSignalEvent(address)\":{\"params\":{\"lTokenAddress\":\"The address of the L-Token contract to signal.\"}},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\"},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"initialize(address)\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\"},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"signalLToken(address)\":{\"params\":{\"lTokenAddress\":\"The address of the LToken contract to signal.\"}},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"title\":\"LTokenSignaler\",\"version\":1},\"userdoc\":{\"events\":{\"LTokenSignalEvent(address)\":{\"notice\":\"Emitted to inform subgraph of the existence of a new L-Token contract.\"}},\"kind\":\"user\",\"methods\":{\"constructor\":{\"notice\":\"Prevents implementation contract from being initialized as recommended by OpenZeppelin.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"initialize(address)\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"signalLToken(address)\":{\"notice\":\"Signals a LToken contract to the TheGraph subgraph of the current chain.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"}},\"notice\":\"Used to inform subgraph from the existence of a new L-Token contract. Once signaled, a L-Token will start being indexed.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/LTokenSignaler.sol\":\"LTokenSignaler\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/LTokenSignaler.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title LTokenSignaler\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Used to inform subgraph from the existence of a new L-Token contract. Once\\n * signaled, a L-Token will start being indexed.\\n *\\n * @dev Signal are ignored by the subgraph if the L-Token is already known by it.\\n *\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LTokenSignaler is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\\n /**\\n * @notice Emitted to inform subgraph of the existence of a new L-Token contract.\\n * @param lTokenAddress The address of the L-Token contract to signal.\\n */\\n event LTokenSignalEvent(address indexed lTokenAddress);\\n\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @notice Signals a LToken contract to the TheGraph subgraph of the current chain.\\n * @param lTokenAddress The address of the LToken contract to signal.\\n */\\n function signalLToken(address lTokenAddress) external onlyOwner {\\n // Signal the LToken contract\\n emit LTokenSignalEvent(lTokenAddress);\\n }\\n}\\n\",\"keccak256\":\"0xdfbd3364c76705fb67b72cdb405d6691a9b2e3cbcc0f3f783add6ac6cc855bd3\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100e1565b600054610100900460ff161561008e5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100df576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051610e07610118600039600081816101a2015281816101eb01528181610273015281816102b3015261032f0152610e076000f3fe6080604052600436106100765760003560e01c80633659cfe61461007b5780634f1ef2861461009d57806352d1902d146100b0578063715018a6146100d85780638da5cb5b146100ed578063a69823dc1461011a578063c4d66de81461013a578063f2fde38b1461015a578063f762e7341461017a575b600080fd5b34801561008757600080fd5b5061009b610096366004610b07565b610198565b005b61009b6100ab366004610b3a565b610269565b3480156100bc57600080fd5b506100c5610322565b6040519081526020015b60405180910390f35b3480156100e457600080fd5b5061009b6103d0565b3480156100f957600080fd5b50610102610406565b6040516001600160a01b0390911681526020016100cf565b34801561012657600080fd5b5061009b610135366004610b07565b610479565b34801561014657600080fd5b5061009b610155366004610b07565b6104b8565b34801561016657600080fd5b5061009b610175366004610b07565b6105d2565b34801561018657600080fd5b5060c9546001600160a01b0316610102565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036101e95760405162461bcd60e51b81526004016101e090610bfe565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661021b610607565b6001600160a01b0316146102415760405162461bcd60e51b81526004016101e090610c4a565b61024a81610623565b604080516000808252602082019092526102669183919061062b565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102b15760405162461bcd60e51b81526004016101e090610bfe565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166102e3610607565b6001600160a01b0316146103095760405162461bcd60e51b81526004016101e090610c4a565b61031282610623565b61031e8282600161062b565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103bd5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016101e0565b50600080516020610d8b83398151915290565b6103d861079b565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b60448201526064016101e0565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015610450573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104749190610c96565b905090565b61048161079b565b6040516001600160a01b038216907f36c1488d5243eeaf5fb0cf28a35c54973316358b76e9c32ccbe2c57956b0879b90600090a250565b600054610100900460ff16158080156104d85750600054600160ff909116105b806104f25750303b1580156104f2575060005460ff166001145b6105555760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101e0565b6000805460ff191660011790558015610578576000805461ff0019166101001790555b610581826107fc565b61058961082c565b801561031e576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6105da61079b565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b60448201526064016101e0565b600080516020610d8b833981519152546001600160a01b031690565b61026661079b565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156106635761065e83610853565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106bd575060408051601f3d908101601f191682019092526106ba91810190610cb3565b60015b6107205760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101e0565b600080516020610d8b833981519152811461078f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101e0565b5061065e8383836108ef565b336107a4610406565b6001600160a01b0316146107fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101e0565b565b600054610100900460ff166108235760405162461bcd60e51b81526004016101e090610ccc565b6102668161091a565b600054610100900460ff166107fa5760405162461bcd60e51b81526004016101e090610ccc565b6001600160a01b0381163b6108c05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101e0565b600080516020610d8b83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6108f883610963565b6000825111806109055750805b1561065e5761091483836109a3565b50505050565b600054610100900460ff166109415760405162461bcd60e51b81526004016101e090610ccc565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b61096c81610853565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606109c88383604051806060016040528060278152602001610dab602791396109cf565b9392505050565b6060600080856001600160a01b0316856040516109ec9190610d3b565b600060405180830381855af49150503d8060008114610a27576040519150601f19603f3d011682016040523d82523d6000602084013e610a2c565b606091505b5091509150610a3d86838387610a47565b9695505050505050565b60608315610ab6578251600003610aaf576001600160a01b0385163b610aaf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101e0565b5081610ac0565b610ac08383610ac8565b949350505050565b815115610ad85781518083602001fd5b8060405162461bcd60e51b81526004016101e09190610d57565b6001600160a01b038116811461026657600080fd5b600060208284031215610b1957600080fd5b81356109c881610af2565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b4d57600080fd5b8235610b5881610af2565b9150602083013567ffffffffffffffff80821115610b7557600080fd5b818501915085601f830112610b8957600080fd5b813581811115610b9b57610b9b610b24565b604051601f8201601f19908116603f01168101908382118183101715610bc357610bc3610b24565b81604052828152886020848701011115610bdc57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610ca857600080fd5b81516109c881610af2565b600060208284031215610cc557600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610d32578181015183820152602001610d1a565b50506000910152565b60008251610d4d818460208701610d17565b9190910192915050565b6020815260008251806020840152610d76816040850160208701610d17565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220c979403e23f66822407c9b9760531f16fe7c0a891ebb757e8839f8d3e90bfc8764736f6c63430008120033", + "deployedBytecode": "0x6080604052600436106100765760003560e01c80633659cfe61461007b5780634f1ef2861461009d57806352d1902d146100b0578063715018a6146100d85780638da5cb5b146100ed578063a69823dc1461011a578063c4d66de81461013a578063f2fde38b1461015a578063f762e7341461017a575b600080fd5b34801561008757600080fd5b5061009b610096366004610b07565b610198565b005b61009b6100ab366004610b3a565b610269565b3480156100bc57600080fd5b506100c5610322565b6040519081526020015b60405180910390f35b3480156100e457600080fd5b5061009b6103d0565b3480156100f957600080fd5b50610102610406565b6040516001600160a01b0390911681526020016100cf565b34801561012657600080fd5b5061009b610135366004610b07565b610479565b34801561014657600080fd5b5061009b610155366004610b07565b6104b8565b34801561016657600080fd5b5061009b610175366004610b07565b6105d2565b34801561018657600080fd5b5060c9546001600160a01b0316610102565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036101e95760405162461bcd60e51b81526004016101e090610bfe565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661021b610607565b6001600160a01b0316146102415760405162461bcd60e51b81526004016101e090610c4a565b61024a81610623565b604080516000808252602082019092526102669183919061062b565b50565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036102b15760405162461bcd60e51b81526004016101e090610bfe565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166102e3610607565b6001600160a01b0316146103095760405162461bcd60e51b81526004016101e090610c4a565b61031282610623565b61031e8282600161062b565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103bd5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016101e0565b50600080516020610d8b83398151915290565b6103d861079b565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b60448201526064016101e0565b60c95460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015610450573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104749190610c96565b905090565b61048161079b565b6040516001600160a01b038216907f36c1488d5243eeaf5fb0cf28a35c54973316358b76e9c32ccbe2c57956b0879b90600090a250565b600054610100900460ff16158080156104d85750600054600160ff909116105b806104f25750303b1580156104f2575060005460ff166001145b6105555760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016101e0565b6000805460ff191660011790558015610578576000805461ff0019166101001790555b610581826107fc565b61058961082c565b801561031e576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6105da61079b565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b60448201526064016101e0565b600080516020610d8b833981519152546001600160a01b031690565b61026661079b565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156106635761065e83610853565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156106bd575060408051601f3d908101601f191682019092526106ba91810190610cb3565b60015b6107205760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016101e0565b600080516020610d8b833981519152811461078f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016101e0565b5061065e8383836108ef565b336107a4610406565b6001600160a01b0316146107fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101e0565b565b600054610100900460ff166108235760405162461bcd60e51b81526004016101e090610ccc565b6102668161091a565b600054610100900460ff166107fa5760405162461bcd60e51b81526004016101e090610ccc565b6001600160a01b0381163b6108c05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016101e0565b600080516020610d8b83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6108f883610963565b6000825111806109055750805b1561065e5761091483836109a3565b50505050565b600054610100900460ff166109415760405162461bcd60e51b81526004016101e090610ccc565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b61096c81610853565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606109c88383604051806060016040528060278152602001610dab602791396109cf565b9392505050565b6060600080856001600160a01b0316856040516109ec9190610d3b565b600060405180830381855af49150503d8060008114610a27576040519150601f19603f3d011682016040523d82523d6000602084013e610a2c565b606091505b5091509150610a3d86838387610a47565b9695505050505050565b60608315610ab6578251600003610aaf576001600160a01b0385163b610aaf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101e0565b5081610ac0565b610ac08383610ac8565b949350505050565b815115610ad85781518083602001fd5b8060405162461bcd60e51b81526004016101e09190610d57565b6001600160a01b038116811461026657600080fd5b600060208284031215610b1957600080fd5b81356109c881610af2565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610b4d57600080fd5b8235610b5881610af2565b9150602083013567ffffffffffffffff80821115610b7557600080fd5b818501915085601f830112610b8957600080fd5b813581811115610b9b57610b9b610b24565b604051601f8201601f19908116603f01168101908382118183101715610bc357610bc3610b24565b81604052828152886020848701011115610bdc57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b600060208284031215610ca857600080fd5b81516109c881610af2565b600060208284031215610cc557600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015610d32578181015183820152602001610d1a565b50506000910152565b60008251610d4d818460208701610d17565b9190910192915050565b6020815260008251806020840152610d76816040850160208701610d17565b601f01601f1916919091016040019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220c979403e23f66822407c9b9760531f16fe7c0a891ebb757e8839f8d3e90bfc8764736f6c63430008120033", "devdoc": { "author": "Lila Rest (https://lila.rest)", "custom:security-contact": "security@ledgity.comsecurity@ledgity.com", @@ -402,7 +402,7 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 8691, + "astId": 8986, "contract": "contracts/src/LTokenSignaler.sol:LTokenSignaler", "label": "_globalOwner", "offset": 0, @@ -410,7 +410,7 @@ "type": "t_contract(GlobalOwner)5028" }, { - "astId": 8775, + "astId": 9070, "contract": "contracts/src/LTokenSignaler.sol:LTokenSignaler", "label": "__gap", "offset": 0, diff --git a/contracts/hardhat/deployments/baseSepolia/LTokenSignaler_Proxy.json b/contracts/hardhat/deployments/baseSepolia/LTokenSignaler_Proxy.json index 3431f0cb..eddaa53f 100644 --- a/contracts/hardhat/deployments/baseSepolia/LTokenSignaler_Proxy.json +++ b/contracts/hardhat/deployments/baseSepolia/LTokenSignaler_Proxy.json @@ -1,5 +1,5 @@ { - "address": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", + "address": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", "abi": [ { "inputs": [ @@ -71,51 +71,51 @@ "type": "receive" } ], - "transactionHash": "0x0844100b3b566a106c7020c768a2252029f6bbc668a99e60b207d0178d589091", + "transactionHash": "0x90059bb83d5774379ea41e579d629697a2dd954c13391d28fdc4519ba7b2b6b3", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", - "transactionIndex": 4, - "gasUsed": "332603", - "logsBloom": "0x00000000000000000000000000000000400000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000008000000000020000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000020000000000001400000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x2a64aadf4bd6b093aa3abef414d68e9994065953cb15c36b66fb10ab1693c328", - "transactionHash": "0x0844100b3b566a106c7020c768a2252029f6bbc668a99e60b207d0178d589091", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", + "transactionIndex": 7, + "gasUsed": "332681", + "logsBloom": "0x00000000000000000000000000000000400000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002100000000000000000080000000000000000000000010100000000000000000000400000004000000000000000000000000000000000020000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x55d45ee8c12c6abba0b76448547548d07fdacbbcc32ed534d8dff8fbcf325864", + "transactionHash": "0x90059bb83d5774379ea41e579d629697a2dd954c13391d28fdc4519ba7b2b6b3", "logs": [ { - "transactionIndex": 4, - "blockNumber": 9269469, - "transactionHash": "0x0844100b3b566a106c7020c768a2252029f6bbc668a99e60b207d0178d589091", - "address": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", + "transactionIndex": 7, + "blockNumber": 12320814, + "transactionHash": "0x90059bb83d5774379ea41e579d629697a2dd954c13391d28fdc4519ba7b2b6b3", + "address": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x000000000000000000000000ba93a7d76cd3873d63cb9f6510fef3c1fb78be86" + "0x000000000000000000000000189073f3d50c637125a8b82c3afd39437a8e3fd3" ], "data": "0x", - "logIndex": 3, - "blockHash": "0x2a64aadf4bd6b093aa3abef414d68e9994065953cb15c36b66fb10ab1693c328" + "logIndex": 98, + "blockHash": "0x55d45ee8c12c6abba0b76448547548d07fdacbbcc32ed534d8dff8fbcf325864" }, { - "transactionIndex": 4, - "blockNumber": 9269469, - "transactionHash": "0x0844100b3b566a106c7020c768a2252029f6bbc668a99e60b207d0178d589091", - "address": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", + "transactionIndex": 7, + "blockNumber": 12320814, + "transactionHash": "0x90059bb83d5774379ea41e579d629697a2dd954c13391d28fdc4519ba7b2b6b3", + "address": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 4, - "blockHash": "0x2a64aadf4bd6b093aa3abef414d68e9994065953cb15c36b66fb10ab1693c328" + "logIndex": 99, + "blockHash": "0x55d45ee8c12c6abba0b76448547548d07fdacbbcc32ed534d8dff8fbcf325864" } ], - "blockNumber": 9269469, - "cumulativeGasUsed": "2600968", + "blockNumber": 12320814, + "cumulativeGasUsed": "4928490", "status": 1, "byzantium": true }, "args": [ - "0xBa93a7D76cD3873D63cb9F6510FEF3c1fB78be86", - "0xc4d66de800000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b2" + "0x189073F3D50C637125a8B82C3afD39437a8E3FD3", + "0xc4d66de8000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", diff --git a/contracts/hardhat/deployments/baseSepolia/LUSDC.json b/contracts/hardhat/deployments/baseSepolia/LUSDC.json index 5b05ac90..a9dd9574 100644 --- a/contracts/hardhat/deployments/baseSepolia/LUSDC.json +++ b/contracts/hardhat/deployments/baseSepolia/LUSDC.json @@ -1,5 +1,5 @@ { - "address": "0x3E995f24C0417b4A010B2DC403093F3e27B85d33", + "address": "0x20Cb912b0E1B8018F2E308A7f6f2Da66754923E4", "abi": [ { "anonymous": false, @@ -111,6 +111,12 @@ "internalType": "int256", "name": "newId", "type": "int256" + }, + { + "indexed": false, + "internalType": "string", + "name": "referralCode", + "type": "string" } ], "name": "ActivityEvent", @@ -392,6 +398,11 @@ "internalType": "uint256", "name": "amount", "type": "uint256" + }, + { + "internalType": "string", + "name": "refCode", + "type": "string" } ], "name": "deposit", @@ -959,6 +970,19 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "withdrawalFeeInEth_", + "type": "uint256" + } + ], + "name": "setWithdrawalFeeInEth", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -1258,6 +1282,19 @@ "stateMutability": "pure", "type": "function" }, + { + "inputs": [], + "name": "withdrawalFeeInEth", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1325,58 +1362,68 @@ "type": "constructor" } ], - "transactionHash": "0x54ac0032e007001b18ee1579167a51044857432a26d34c2bf632b77fd1448864", + "transactionHash": "0x4677d25568549deb7025e70ff8e1f26b60c9379a6e2583dbea4bc02e1af0f8d2", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x3E995f24C0417b4A010B2DC403093F3e27B85d33", - "transactionIndex": 6, - "gasUsed": "659225", - "logsBloom": "0x00000000000000000000000000000000400000000200000000000000000000000000000000000000000000000000100000000000000400000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000020000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000", - "blockHash": "0x3ff923c38a15e82d9d99cae577d0829ca23223eb3fa5288af678b4b8fc3b9add", - "transactionHash": "0x54ac0032e007001b18ee1579167a51044857432a26d34c2bf632b77fd1448864", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x20Cb912b0E1B8018F2E308A7f6f2Da66754923E4", + "transactionIndex": 3, + "gasUsed": "681589", + "logsBloom": "0x00000000000000000000000000008000400000000000000000000000000000000000010000000000000000000000000000000000000000000000000000800000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000008000000000000000400000000000000000000000000000000000000200020000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x46d406579f0370174b7cdf4a587bb39c37b83f8dd1e113db94b769d725530f31", + "transactionHash": "0x4677d25568549deb7025e70ff8e1f26b60c9379a6e2583dbea4bc02e1af0f8d2", "logs": [ { - "transactionIndex": 6, - "blockNumber": 9269461, - "transactionHash": "0x54ac0032e007001b18ee1579167a51044857432a26d34c2bf632b77fd1448864", - "address": "0x3E995f24C0417b4A010B2DC403093F3e27B85d33", + "transactionIndex": 3, + "blockNumber": 12320805, + "transactionHash": "0x4677d25568549deb7025e70ff8e1f26b60c9379a6e2583dbea4bc02e1af0f8d2", + "address": "0x20Cb912b0E1B8018F2E308A7f6f2Da66754923E4", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000002c0f4c6127693c688ff4b8794fdb22ffb235cd87" + "0x000000000000000000000000346245ed74cd6319f169228b980d91f17d98cd99" ], "data": "0x", - "logIndex": 11, - "blockHash": "0x3ff923c38a15e82d9d99cae577d0829ca23223eb3fa5288af678b4b8fc3b9add" + "logIndex": 0, + "blockHash": "0x46d406579f0370174b7cdf4a587bb39c37b83f8dd1e113db94b769d725530f31" }, { - "transactionIndex": 6, - "blockNumber": 9269461, - "transactionHash": "0x54ac0032e007001b18ee1579167a51044857432a26d34c2bf632b77fd1448864", - "address": "0x3E995f24C0417b4A010B2DC403093F3e27B85d33", + "transactionIndex": 3, + "blockNumber": 12320805, + "transactionHash": "0x4677d25568549deb7025e70ff8e1f26b60c9379a6e2583dbea4bc02e1af0f8d2", + "address": "0x20Cb912b0E1B8018F2E308A7f6f2Da66754923E4", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 12, - "blockHash": "0x3ff923c38a15e82d9d99cae577d0829ca23223eb3fa5288af678b4b8fc3b9add" + "logIndex": 1, + "blockHash": "0x46d406579f0370174b7cdf4a587bb39c37b83f8dd1e113db94b769d725530f31" } ], - "blockNumber": 9269461, - "cumulativeGasUsed": "1515560", + "blockNumber": 12320805, + "cumulativeGasUsed": "2635164", "status": 1, "byzantium": true }, "args": [ - "0x2c0F4C6127693C688ff4b8794fdB22FfB235cd87", - "0x1459457a00000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b20000000000000000000000009992cc9176f2b86c56fda697d814c1a054c2035e000000000000000000000000546b48297ce50fa31a383afe7df48297337c12b50000000000000000000000005f1e968d9103dddc896ff44b4aac9972a422b4c1000000000000000000000000036cbd53842c5426634e7929541ec2318f3dcf7e" + "0x346245eD74Cd6319f169228b980D91f17d98Cd99", + "0x1459457a000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53000000000000000000000000061b0b71b87bd4ff6086011a17589ea08daa49a500000000000000000000000098002b5c06b44c8769da3dae97ca498ab6f97137000000000000000000000000b5c69197e5d6a52c776384479b529d2d76f9e2de000000000000000000000000036cbd53842c5426634e7929541ec2318f3dcf7e" ], - "numDeployments": 3, + "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", "metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_logic\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"details\":\"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.\",\"kind\":\"dev\",\"methods\":{\"constructor\":{\"details\":\"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 initializating the storage of the proxy like a Solidity constructor.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol\":\"ERC1967Proxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x93b4e21c931252739a1ec13ea31d3d35a5c068be3163ccab83e4d70c40355f03\",\"license\":\"MIT\"},\"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Proxy.sol\\\";\\nimport \\\"./ERC1967Upgrade.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\\\"eip1967.proxy.implementation\\\")) - 1));\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0x6309f9f39dc6f4f45a24f296543867aa358e32946cd6b2874627a996d606b3a0\",\"license\":\"MIT\"},\"solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeacon.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\nimport \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(Address.isContract(IBeacon(newBeacon).implementation()), \\\"ERC1967: beacon implementation is not a contract\\\");\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x17668652127feebed0ce8d9431ef95ccc8c4292f03e3b8cf06c6ca16af396633\",\"license\":\"MIT\"},\"solc_0.8/openzeppelin/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internall call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overriden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n\",\"keccak256\":\"0xd5d1fd16e9faff7fcb3a52e02a8d49156f42a38a03f07b5f1810c21c2149a8ab\",\"license\":\"MIT\"},\"solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61\",\"license\":\"MIT\"},\"solc_0.8/openzeppelin/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3777e696b62134e6177440dbe6e6601c0c156a443f57167194b67e75527439de\",\"license\":\"MIT\"},\"solc_0.8/openzeppelin/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0xfe1b7a9aa2a530a9e705b220e26cd584e2fbdc9602a3a1066032b12816b46aca\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x608060405260405161084e38038061084e83398101604081905261002291610349565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610417565b600080516020610807833981519152146100695761006961043c565b6100758282600061007c565b50506104a1565b610085836100b2565b6000825111806100925750805b156100ad576100ab83836100f260201b6100291760201c565b505b505050565b6100bb8161011e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606101178383604051806060016040528060278152602001610827602791396101de565b9392505050565b610131816102bc60201b6100551760201c565b6101985760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101bd60008051602061080783398151915260001b6102cb60201b6100711760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606001600160a01b0384163b6102465760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161018f565b600080856001600160a01b0316856040516102619190610452565b600060405180830381855af49150503d806000811461029c576040519150601f19603f3d011682016040523d82523d6000602084013e6102a1565b606091505b5090925090506102b28282866102ce565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102dd575081610117565b8251156102ed5782518084602001fd5b8160405162461bcd60e51b815260040161018f919061046e565b634e487b7160e01b600052604160045260246000fd5b60005b83811015610338578181015183820152602001610320565b838111156100ab5750506000910152565b6000806040838503121561035c57600080fd5b82516001600160a01b038116811461037357600080fd5b60208401519092506001600160401b038082111561039057600080fd5b818501915085601f8301126103a457600080fd5b8151818111156103b6576103b6610307565b604051601f8201601f19908116603f011681019083821181831017156103de576103de610307565b816040528281528860208487010111156103f757600080fd5b61040883602083016020880161031d565b80955050505050509250929050565b60008282101561043757634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161046481846020870161031d565b9190910192915050565b602081526000825180602084015261048d81604085016020870161031d565b601f01601f19169190910160400192915050565b610357806104b06000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610074565b6100b9565b565b606061004e83836040518060600160405280602781526020016102fb602791396100dd565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b90565b60006100b47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e8080156100d8573d6000f35b3d6000fd5b606073ffffffffffffffffffffffffffffffffffffffff84163b610188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516101b0919061028d565b600060405180830381855af49150503d80600081146101eb576040519150601f19603f3d011682016040523d82523d6000602084013e6101f0565b606091505b509150915061020082828661020a565b9695505050505050565b6060831561021957508161004e565b8251156102295782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017f91906102a9565b60005b83811015610278578181015183820152602001610260565b83811115610287576000848401525b50505050565b6000825161029f81846020870161025d565b9190910192915050565b60208152600082518060208401526102c881604085016020870161025d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201e3c9348ed6dd2f363e89451207bd8df182bc878dc80d47166301a510c8801e964736f6c634300080a0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610074565b6100b9565b565b606061004e83836040518060600160405280602781526020016102fb602791396100dd565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b90565b60006100b47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e8080156100d8573d6000f35b3d6000fd5b606073ffffffffffffffffffffffffffffffffffffffff84163b610188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516101b0919061028d565b600060405180830381855af49150503d80600081146101eb576040519150601f19603f3d011682016040523d82523d6000602084013e6101f0565b606091505b509150915061020082828661020a565b9695505050505050565b6060831561021957508161004e565b8251156102295782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017f91906102a9565b60005b83811015610278578181015183820152602001610260565b83811115610287576000848401525b50505050565b6000825161029f81846020870161025d565b9190910192915050565b60208152600082518060208401526102c881604085016020870161025d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201e3c9348ed6dd2f363e89451207bd8df182bc878dc80d47166301a510c8801e964736f6c634300080a0033", - "implementation": "0xFFEC364a313667Ba320295D64c085b18513b6AD7", + "execute": { + "methodName": "initialize", + "args": [ + "0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53", + "0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5", + "0x98002b5c06b44c8769dA3DAe97CA498aB6F97137", + "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", + "0x036CbD53842c5426634e7929541eC2318f3dCF7e" + ] + }, + "implementation": "0x346245eD74Cd6319f169228b980D91f17d98Cd99", "devdoc": { "details": "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.", "kind": "dev", diff --git a/contracts/hardhat/deployments/baseSepolia/LUSDC_Implementation.json b/contracts/hardhat/deployments/baseSepolia/LUSDC_Implementation.json index 4c4dfb31..0f0d8491 100644 --- a/contracts/hardhat/deployments/baseSepolia/LUSDC_Implementation.json +++ b/contracts/hardhat/deployments/baseSepolia/LUSDC_Implementation.json @@ -1,5 +1,5 @@ { - "address": "0xFFEC364a313667Ba320295D64c085b18513b6AD7", + "address": "0x346245eD74Cd6319f169228b980D91f17d98Cd99", "abi": [ { "anonymous": false, @@ -58,6 +58,12 @@ "internalType": "int256", "name": "newId", "type": "int256" + }, + { + "indexed": false, + "internalType": "string", + "name": "referralCode", + "type": "string" } ], "name": "ActivityEvent", @@ -384,6 +390,11 @@ "internalType": "uint256", "name": "amount", "type": "uint256" + }, + { + "internalType": "string", + "name": "refCode", + "type": "string" } ], "name": "deposit", @@ -951,6 +962,19 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "withdrawalFeeInEth_", + "type": "uint256" + } + ], + "name": "setWithdrawalFeeInEth", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -1250,6 +1274,19 @@ "stateMutability": "pure", "type": "function" }, + { + "inputs": [], + "name": "withdrawalFeeInEth", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1301,43 +1338,43 @@ "type": "function" } ], - "transactionHash": "0x6028a36e936dcdd24259a40a7ebd80ff3b3b78b3669c65452d92d5e7e53b0443", + "transactionHash": "0x650c4d2b98330844eb9840b905c8b0f50812351161a9be03e2cdd325717ac730", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0xFFEC364a313667Ba320295D64c085b18513b6AD7", - "transactionIndex": 2, - "gasUsed": "5364287", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400008000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800", - "blockHash": "0x5a654da487134a4cffbbf57a8f061814b8a8819bf5aaded0b5de34a73d73a0bc", - "transactionHash": "0x6028a36e936dcdd24259a40a7ebd80ff3b3b78b3669c65452d92d5e7e53b0443", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x346245eD74Cd6319f169228b980D91f17d98Cd99", + "transactionIndex": 11, + "gasUsed": "5353645", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000", + "blockHash": "0x8927cb06edc6e0b5b7090a0de5c7e17868c79171c144f12e294351abe62dba95", + "transactionHash": "0x650c4d2b98330844eb9840b905c8b0f50812351161a9be03e2cdd325717ac730", "logs": [ { - "transactionIndex": 2, - "blockNumber": 10098328, - "transactionHash": "0x6028a36e936dcdd24259a40a7ebd80ff3b3b78b3669c65452d92d5e7e53b0443", - "address": "0xFFEC364a313667Ba320295D64c085b18513b6AD7", + "transactionIndex": 11, + "blockNumber": 12320800, + "transactionHash": "0x650c4d2b98330844eb9840b905c8b0f50812351161a9be03e2cdd325717ac730", + "address": "0x346245eD74Cd6319f169228b980D91f17d98Cd99", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", - "logIndex": 1, - "blockHash": "0x5a654da487134a4cffbbf57a8f061814b8a8819bf5aaded0b5de34a73d73a0bc" + "logIndex": 65, + "blockHash": "0x8927cb06edc6e0b5b7090a0de5c7e17868c79171c144f12e294351abe62dba95" } ], - "blockNumber": 10098328, - "cumulativeGasUsed": "5468318", + "blockNumber": 12320800, + "cumulativeGasUsed": "8340114", "status": 1, "byzantium": true }, "args": [], - "numDeployments": 3, - "solcInputHash": "77252ae545c4d734665a9c3f89121ce4", - "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newAPRUD7x3\",\"type\":\"uint16\"}],\"name\":\"APRChangeEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"int256\",\"name\":\"id\",\"type\":\"int256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"enum LToken.Action\",\"name\":\"action\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountAfterFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum LToken.Status\",\"name\":\"newStatus\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"newId\",\"type\":\"int256\"}],\"name\":\"ActivityEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balanceBefore\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"name\":\"MintedRewardsEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newTVL\",\"type\":\"uint256\"}],\"name\":\"TVLChangeEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"name\":\"cancelWithdrawalRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositFor\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feesRateUD7x3\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"frozenRequests\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"amount\",\"type\":\"uint96\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fund\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAPR\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getExpectedRetained\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getWithdrawnAmountAndFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"withdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalBlacklist\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalPause\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"globalPause_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"globalBlacklist_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ldyStaking_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlyingToken\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"instantWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"invested\",\"outputs\":[{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ldyStaking\",\"outputs\":[{\"internalType\":\"contract LDYStaking\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"listenerContract\",\"type\":\"address\"}],\"name\":\"listenToTransfers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"name\":\"processBigQueuedRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"processQueuedRequests\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"realBalanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"realTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"recoverERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"recoverUnderlying\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"repatriate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"requestWithdrawal\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"retentionRateUD7x3\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardsRedirectsFromTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"rewardsRedirectsToFrom\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"aprUD7x3\",\"type\":\"uint16\"}],\"name\":\"setAPR\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"feesRateUD7x3_\",\"type\":\"uint32\"}],\"name\":\"setFeesRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"fund_\",\"type\":\"address\"}],\"name\":\"setFund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"ldyStakingAddress\",\"type\":\"address\"}],\"name\":\"setLDYStaking\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"retentionRateUD7x3_\",\"type\":\"uint32\"}],\"name\":\"setRetentionRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"withdrawer_\",\"type\":\"address\"}],\"name\":\"setWithdrawer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"startRewardsRedirection\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"stopRewardsRedirection\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalQueued\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transfersListeners\",\"outputs\":[{\"internalType\":\"contract ITransfersListener\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unclaimedFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"underlying\",\"outputs\":[{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"listenerContract\",\"type\":\"address\"}],\"name\":\"unlistenToTransfers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"unmintedRewardsOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usableUnderlyings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTo\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdrawalQueue\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"amount\",\"type\":\"uint96\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawalQueueCursor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawer\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:oz-upgrades-unsafe-allow\":\"external-library-linking\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Definitions: - Deposit: Swap of underlying tokens for L-Tokens (1:1 ratio). - Withdrawal: Swap of L-Tokens for underlying tokens (1:1 ratio, minus applicable fees). - Instant: Processed immediately. - Request: Queued for later processing. - Big Request: A requested withdrawal exceeding half of the retention rate. - (Withdrawal) queue: A list of all requested withdrawals sorted by priority. - Request ID: The index of a withdrawal request in the queue array. - Retention rate: Maximum fraction of underlying tokens TVL the contract can retain. - Fees Rate: Percentage of fees applied to successful withdrawals. - Usable underlyings: Amount of underlying tokens that have been deposited through expected ways and are so considered safe to use by the contract. - Transfers listeners: External contracts listening on L-Tokens transfers. - Fund wallet: Wallet managed by the Ledgity's financial team. - Withdrawer wallet: Managed by an off-chain server to automate withdrawal request processing. Note that words between parenthesis are sometimes omitted for brevity.Deployment notice: This contract can safely receive funds immediately after initialization. (i.e., there is no way for funds to be sent to non-owned addresses). It is, however, recommended to replace ASAP owner and fund wallets with multi-sig wallets.For further details, see \\\"LToken\\\" section of whitepaper.\",\"events\":{\"APRChangeEvent(uint16)\":{\"params\":{\"newAPRUD7x3\":\"The new APR in UD7x3 format.\"}},\"ActivityEvent(int256,address,uint8,uint256,uint256,uint8,int256)\":{\"params\":{\"account\":\"The account involved in the activity.\",\"action\":\"The type of activity.\",\"amount\":\"The amount of underlying tokens involved in the activity.\",\"id\":\"ID of the involved withdrawal request or NO_ID (-1) if not applicable.\",\"newId\":\"The new ID of the request if it has been moved in the queue.\",\"newStatus\":\"The new status of the activity.\"}},\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"MintedRewardsEvent(address,uint256,uint256)\":{\"params\":{\"account\":\"The account that received the rewards.\",\"balanceBefore\":\"The balance of the account before the minting.\",\"rewards\":\"The amount of minted rewards.\"}},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"TVLChangeEvent(uint256)\":{\"details\":\"TVL = realTotalSupply()\",\"params\":{\"newTVL\":\"The new TVL of the contract.\"}},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"This is an oOverride of ERC20Upgradeable.balanceOf() that rewards that have not been yet minted to the specified account.\",\"params\":{\"account\":\"The account to check the total balance of.\"},\"returns\":{\"_0\":\"The total balance of the account.\"}},\"cancelWithdrawalRequest(uint256)\":{\"params\":{\"requestId\":\"The ID of the withdrawal request to cancel.\"}},\"decimals()\":{\"details\":\"The ERC20WrapperUpgradeable version is preferred because it mirrors the decimals amount of the underlying stablecoin token.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"deposit(uint256)\":{\"params\":{\"amount\":\"The amount of underlying tokens to deposit.\"}},\"depositFor(address,uint256)\":{\"details\":\"Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens.\"},\"getAPR()\":{\"returns\":{\"_0\":\"The current APR in UD7x3 format.\"}},\"getExpectedRetained()\":{\"returns\":{\"amount\":\"The expected amount of retained underlying tokens.\"}},\"getWithdrawnAmountAndFees(address,uint256)\":{\"params\":{\"account\":\"The account initiating the withdrawal.\",\"amount\":\"The amount of the withdrawal.\"}},\"globalBlacklist()\":{\"returns\":{\"_0\":\"The address of the GlobalBlacklist contract.\"}},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"globalPause()\":{\"returns\":{\"_0\":\"The address of the GlobalPause contract.\"}},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"initialize(address,address,address,address,address)\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\",\"params\":{\"globalBlacklist_\":\"The address of the GlobalBlacklist contract.\",\"globalOwner_\":\"The address of the GlobalOwner contract.\",\"globalPause_\":\"The address of the GlobalPause contract.\",\"underlyingToken\":\"The address of the underlying stablecoin ERC20 token.\"}},\"instantWithdrawal(uint256)\":{\"details\":\"In order to save some gas and time to users, frontends should propose this function to users only when it has been verified that it will not revert. They should propose the requestWithdrawal() function otherwise.\",\"params\":{\"amount\":\"The amount L-Tokens to withdraw.\"}},\"invested()\":{\"returns\":{\"_0\":\"The reference to the invested token contract.\"}},\"listenToTransfers(address)\":{\"details\":\"Each time a transfer occurs, the onLTokenTransfer() function of the specified contract will be called.IMPORTANT SECURITY NOTE: This method is not intended to be used with contracts that are not owned by the Ledgity team.\",\"params\":{\"listenerContract\":\"The address of the new transfers listener contract.\"}},\"name()\":{\"details\":\"Returns the name of the token.\"},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"paused()\":{\"details\":\"Both version are the same as ERC20BaseUpgradeable.paused() mirrors GlobalPausableUpgradeable.paused(), so a random one is chosen.\",\"returns\":{\"_0\":\"Whether the contract is paused or not.\"}},\"processBigQueuedRequest(uint256)\":{\"details\":\"In contrast to non-big requests processing, this function will uses to fund wallet's balance to fill the request. This allows processing requests that are greater than retention rate without having to exceed this rate on the contract.\",\"params\":{\"requestId\":\"The ID of the big request to process.\"}},\"processQueuedRequests()\":{\"details\":\"For further details, see \\\"LToken > Withdrawals\\\" section of whitepaper.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"realBalanceOf(address)\":{\"params\":{\"account\":\"The account to check the real balance of.\"},\"returns\":{\"_0\":\"The real balance of the account.\"}},\"realTotalSupply()\":{\"returns\":{\"_0\":\"The real total supply of L-Tokens.\"}},\"recoverERC20(address,uint256)\":{\"details\":\"This override of RecoverableUpgradeable.recoverERC20() prevents the recovered token from being the underlying token.\",\"params\":{\"amount\":\"The amount of token to recover.\",\"tokenAddress\":\"The address of the token to recover.\"}},\"recoverUnderlying()\":{\"details\":\"To prevent owner from being able to drain the contract, this function only allows recovering \\\"unusable\\\" underlying tokens, i.e., tokens that have not been sent through fund() or deposit() functions.\"},\"repatriate(uint256)\":{\"details\":\"The function will revert if repatriated amount makes the contract exceeding the retention rate.\",\"params\":{\"amount\":\"The amount of underlying tokens to repatriate.\"}},\"requestWithdrawal(uint256)\":{\"details\":\"The sender must attach 0.003 ETH to pre-pay the future processing gas fees paid by the withdrawer wallet.\",\"params\":{\"amount\":\"The amount L-Tokens to withdraw.\"}},\"setAPR(uint16)\":{\"params\":{\"aprUD7x3\":\"The new APR in UD7x3 format.\"}},\"setFeesRate(uint32)\":{\"params\":{\"feesRateUD7x3_\":\"The new withdrawal fee rate in UD7x3 format.\"}},\"setFund(address)\":{\"params\":{\"fund_\":\"The address of the new fund wallet.\"}},\"setLDYStaking(address)\":{\"params\":{\"ldyStakingAddress\":\"The address of the new LDYStaking contract.\"}},\"setRetentionRate(uint32)\":{\"details\":\"The retention rate is capped at 10%, which ensures that no more than 10% of deposited assets will ever be exposed in this contract (reduces attack surface).\",\"params\":{\"retentionRateUD7x3_\":\"The new retention rate in UD7x3 format.\"}},\"setWithdrawer(address)\":{\"params\":{\"withdrawer_\":\"The address of the new withdrawer wallet.\"}},\"startRewardsRedirection(address,address)\":{\"params\":{\"from\":\"The address of the account to redirect rewards from.\",\"to\":\"The address of the account to redirect rewards to.\"}},\"stopRewardsRedirection(address,address)\":{\"params\":{\"from\":\"The address of the account to stop redirecting rewards from.\",\"to\":\"The address of the account to stop redirecting rewards to.\"}},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"returns\":{\"_0\":\"The total supply of L-Tokens.\"}},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.\"},\"underlying()\":{\"details\":\"Returns the address of the underlying ERC-20 token that is being wrapped.\"},\"unlistenToTransfers(address)\":{\"details\":\"The onLTokenTransfer() function of the specified contract will not be called anymore each time a L-Token transfer occurs.\",\"params\":{\"listenerContract\":\"The address of the listener contract.\"}},\"unmintedRewardsOf(address)\":{\"details\":\"This is a public implementation of InvestUpgradeable_rewardsOf(). In the context of LToken, this function returns the amount of rewards that have not been distributed/minted yet to the specified account.This is particularly useful for off-chain services to display charts and statistics, as seen in the Ledgity Yield's frontend.\",\"params\":{\"account\":\"The account to check the unminted rewards of.\"},\"returns\":{\"_0\":\"The amount of account's unminted rewards.\"}},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"withdrawTo(address,uint256)\":{\"details\":\"Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens.\"}},\"stateVariables\":{\"frozenRequests\":{\"details\":\"If a request emitter as been blacklisted, its request is moved here to prevent it from blocking the queue.\"},\"transfersListeners\":{\"details\":\"onLTokenTransfer() functions of those contracts will be called on each transfer.\"},\"usableUnderlyings\":{\"details\":\"Are usable, only underlying tokens deposit through deposit() or fund() functions.\"}},\"title\":\"LToken\",\"version\":1},\"userdoc\":{\"events\":{\"APRChangeEvent(uint16)\":{\"notice\":\"Emitted to inform listeners about a change in the APR's value.\"},\"ActivityEvent(int256,address,uint8,uint256,uint256,uint8,int256)\":{\"notice\":\"Emitted to inform listerners about an activity related to deposits and withdrawals.\"},\"MintedRewardsEvent(address,uint256,uint256)\":{\"notice\":\"Emitted to inform listeners that some rewards have been minted.\"},\"TVLChangeEvent(uint256)\":{\"notice\":\"Emitted to inform listeners about a change in the contract's TVL.\"}},\"kind\":\"user\",\"methods\":{\"balanceOf(address)\":{\"notice\":\"Retrieves the total balance of L-Tokens that belong to the account.\"},\"cancelWithdrawalRequest(uint256)\":{\"notice\":\"Cancels a given withdrawal request. The request emitter receive back its L-Tokens and no fees will be charged.\"},\"claimFees()\":{\"notice\":\"Used by owner to claim fees generated from successful withdrawals.\"},\"decimals()\":{\"notice\":\"Required override of decimals() which is implemented by both ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts.\"},\"deposit(uint256)\":{\"notice\":\"Allows exchanging some underlying tokens for the same amount of L-Tokens.\"},\"depositFor(address,uint256)\":{\"notice\":\"Override of ERC20WrapperUpgradeable.depositFor() that reverts. Use deposit() function instead.\"},\"feesRateUD7x3()\":{\"notice\":\"Holds the withdrawal fees rate in UD7x3 format (e.g., 350 = 0.350%).\"},\"frozenRequests(uint256)\":{\"notice\":\"Holds a list of all currently frozen withdrawal requests.\"},\"fund()\":{\"notice\":\"Holds address of fund wallet (managed by Ledgity financial team).\"},\"getAPR()\":{\"notice\":\"Retrieves the most recently set APR.\"},\"getExpectedRetained()\":{\"notice\":\"Computes the maximum amount of underlying tokens that should be retained by the contract (based on retention rate).\"},\"getWithdrawnAmountAndFees(address,uint256)\":{\"notice\":\"Computes fees and net withdrawn amount for a given account withdrawing a given amount.\"},\"globalBlacklist()\":{\"notice\":\"Retrieves the address of GlobalBlacklist contract.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"globalPause()\":{\"notice\":\"Retrieves the address of GlobalPause contract.\"},\"initialize(address,address,address,address,address)\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"},\"instantWithdrawal(uint256)\":{\"notice\":\"Allows instaneously exchanging a given amount of L-Tokens for the same amount of underlying tokens. It will fail if the contract currently doesn't hold enough underlying tokens to cover the withdrawal.\"},\"invested()\":{\"notice\":\"Retrieves the reference to the invested token contract.\"},\"ldyStaking()\":{\"notice\":\"Holds a reference to the LDYStaking contract.\"},\"listenToTransfers(address)\":{\"notice\":\"Adds a new contract to the L-Token transfers list.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"paused()\":{\"notice\":\"Required override of paused() which is implemented by both GlobalPausableUpgradeable and ERC20BaseUpgradeable parent contracts.\"},\"processBigQueuedRequest(uint256)\":{\"notice\":\"Processes a given queued big withdrawal request (one that exceeds half of the retention rate).\"},\"processQueuedRequests()\":{\"notice\":\"Processes queued withdrawal requests until there is else no more requests, else not enough underlying tokens to continue.\"},\"realBalanceOf(address)\":{\"notice\":\"Retrieves the \\\"real\\\" balance of an account, i.e., excluding its not yet minted/distributed rewards.\"},\"realTotalSupply()\":{\"notice\":\"Returns the \\\"real\\\" amount of existing L-Tokens, i.e., excluding not yet minted withdrawal fees and L-Tokens currently in the withdrawal queue.\"},\"recoverERC20(address,uint256)\":{\"notice\":\"Recovers a specified amount of a given token address.\"},\"recoverUnderlying()\":{\"notice\":\"Recovers underlying tokens accidentally sent to the contract.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"repatriate(uint256)\":{\"notice\":\"Used by the fund wallet to repatriate underlying tokens on the contract whenever those are required to fulfill some withdrawal requests.\"},\"requestWithdrawal(uint256)\":{\"notice\":\"Allows requesting the exchange of a given amount of L-Tokens for the same amount of underlying tokens. The request will be automatically processed later.\"},\"retentionRateUD7x3()\":{\"notice\":\"Holds the retention rate in UD7x3 format.\"},\"rewardsRedirectsFromTo(address)\":{\"notice\":\"Holds active rewards redirections in both from->to and to->from[] ways.\"},\"setAPR(uint16)\":{\"notice\":\"Updates the investment APR. Restricted to owner.\"},\"setFeesRate(uint32)\":{\"notice\":\"Updates the current withdrawal fee rate.\"},\"setFund(address)\":{\"notice\":\"Updates the address of the fund wallet.\"},\"setLDYStaking(address)\":{\"notice\":\"Updates the address of LDYStaking contract.\"},\"setRetentionRate(uint32)\":{\"notice\":\"Updates the current underlying token retention rate.\"},\"setWithdrawer(address)\":{\"notice\":\"Updates the address of the withdrawer wallet.\"},\"startRewardsRedirection(address,address)\":{\"notice\":\"Enables redirection of rewards from one account to another.\"},\"stopRewardsRedirection(address,address)\":{\"notice\":\"Disable an active rewards redirection.\"},\"totalQueued()\":{\"notice\":\"Holds the amount of L-Tokens currently in the withdrawal queue.\"},\"totalSupply()\":{\"notice\":\"Retrives the total supply of L-Tokens, including not yet minted withdrawal fees and L-Tokens currently in the withdrawal queue.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"transfersListeners(uint256)\":{\"notice\":\"Holds a list of contracts' references that are listening to L-Tokens transfers.\"},\"unclaimedFees()\":{\"notice\":\"Holds the amount of withdrawal fees not yet claimed by contract's owner.\"},\"unlistenToTransfers(address)\":{\"notice\":\"Removes a contract from the L-Token transfers list.\"},\"unmintedRewardsOf(address)\":{\"notice\":\"Retrieves the amount of given account's not yet minted rewards.\"},\"usableUnderlyings()\":{\"notice\":\"Holds the amount of underlying tokens considered as usable by the contract.\"},\"withdrawTo(address,uint256)\":{\"notice\":\"Override of ERC20WrapperUpgradeable.withdrawTo() that reverts. Use instantWithdrawal() or requestWithdrawal() functions instead.\"},\"withdrawalQueue(uint256)\":{\"notice\":\"Holds an ordered list of active withdrawal requests.\"},\"withdrawalQueueCursor()\":{\"notice\":\"Holds the index of the next withdrawal request to process in the queue.\"},\"withdrawer()\":{\"notice\":\"Holds address of withdrawer wallet (managed by withdrawal server).\"}},\"notice\":\"Main contract of the Ledgity Yield protocol. It powers every L-Token (i.e., investment pools backed by RWA). An L-Token is an ERC20 wrapper around a stablecoin. As soon as a wallet holds some L-Tokens, it starts receiving rewards in the form of additional L-Tokens, which are auto-compounded over time.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/LToken.sol\":\"LToken\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x40c636b4572ff5f1dc50cf22097e93c0723ee14eff87e99ac2b02636eeca1250\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Returns true if the reentrancy guard is currently set to \\\"entered\\\", which indicates there is a\\n * `nonReentrant` function in the call stack.\\n */\\n function _reentrancyGuardEntered() internal view returns (bool) {\\n return _status == _ENTERED;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xb82ef33f43b6b96109687d91b39c94573fdccaaa423fe28e8ba0977b31c023e0\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20Upgradeable.sol\\\";\\nimport \\\"./extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport \\\"../../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * The default value of {decimals} is 18. To change this, you should override\\n * this function so it returns a different value.\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {\\n __ERC20_init_unchained(name_, symbol_);\\n }\\n\\n function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the default value returned by this function, unless\\n * it's overridden.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, allowance(owner, spender) + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = allowance(owner, spender);\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `from` to `to`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(address from, address to, uint256 amount) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\\n // decrementing then incrementing.\\n _balances[to] += amount;\\n }\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n unchecked {\\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\\n _balances[account] += amount;\\n }\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n // Overflow not possible: amount <= accountBalance <= totalSupply.\\n _totalSupply -= amount;\\n }\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0xd14a627157b9a411d2410713e5dd3a377e9064bd5c194a90748bbf27ea625784\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x0e1f0f5f62f67a881cd1a9597acbc0a5e4071f3c2c10449a183b922ae7272e3f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC20Upgradeable.sol\\\";\\nimport \\\"../../../security/PausableUpgradeable.sol\\\";\\nimport \\\"../../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev ERC20 token with pausable token transfers, minting and burning.\\n *\\n * Useful for scenarios such as preventing trades until the end of an evaluation\\n * period, or having an emergency switch for freezing all token transfers in the\\n * event of a large bug.\\n *\\n * IMPORTANT: This contract does not include public pause and unpause functions. In\\n * addition to inheriting this contract, you must define both functions, invoking the\\n * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate\\n * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will\\n * make the contract unpausable.\\n */\\nabstract contract ERC20PausableUpgradeable is Initializable, ERC20Upgradeable, PausableUpgradeable {\\n function __ERC20Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __ERC20Pausable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev See {ERC20-_beforeTokenTransfer}.\\n *\\n * Requirements:\\n *\\n * - the contract must not be paused.\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\\n super._beforeTokenTransfer(from, to, amount);\\n\\n require(!paused(), \\\"ERC20Pausable: token transfer while paused\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xf0bd7f71ffae5f0addd375e8511fbf2ad8ca0c9b2606c32d92bdda7d76a7a81c\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Wrapper.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC20Upgradeable.sol\\\";\\nimport \\\"../utils/SafeERC20Upgradeable.sol\\\";\\nimport \\\"../../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Extension of the ERC20 token contract to support token wrapping.\\n *\\n * Users can deposit and withdraw \\\"underlying tokens\\\" and receive a matching number of \\\"wrapped tokens\\\". This is useful\\n * in conjunction with other modules. For example, combining this wrapping mechanism with {ERC20Votes} will allow the\\n * wrapping of an existing \\\"basic\\\" ERC20 into a governance token.\\n *\\n * _Available since v4.2._\\n *\\n * @custom:storage-size 51\\n */\\nabstract contract ERC20WrapperUpgradeable is Initializable, ERC20Upgradeable {\\n IERC20Upgradeable private _underlying;\\n\\n function __ERC20Wrapper_init(IERC20Upgradeable underlyingToken) internal onlyInitializing {\\n __ERC20Wrapper_init_unchained(underlyingToken);\\n }\\n\\n function __ERC20Wrapper_init_unchained(IERC20Upgradeable underlyingToken) internal onlyInitializing {\\n require(underlyingToken != this, \\\"ERC20Wrapper: cannot self wrap\\\");\\n _underlying = underlyingToken;\\n }\\n\\n /**\\n * @dev See {ERC20-decimals}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n try IERC20MetadataUpgradeable(address(_underlying)).decimals() returns (uint8 value) {\\n return value;\\n } catch {\\n return super.decimals();\\n }\\n }\\n\\n /**\\n * @dev Returns the address of the underlying ERC-20 token that is being wrapped.\\n */\\n function underlying() public view returns (IERC20Upgradeable) {\\n return _underlying;\\n }\\n\\n /**\\n * @dev Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens.\\n */\\n function depositFor(address account, uint256 amount) public virtual returns (bool) {\\n address sender = _msgSender();\\n require(sender != address(this), \\\"ERC20Wrapper: wrapper can't deposit\\\");\\n SafeERC20Upgradeable.safeTransferFrom(_underlying, sender, address(this), amount);\\n _mint(account, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens.\\n */\\n function withdrawTo(address account, uint256 amount) public virtual returns (bool) {\\n _burn(_msgSender(), amount);\\n SafeERC20Upgradeable.safeTransfer(_underlying, account, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Mint wrapped token to cover any underlyingTokens that would have been transferred by mistake. Internal\\n * function that can be exposed with access control if desired.\\n */\\n function _recover(address account) internal virtual returns (uint256) {\\n uint256 value = _underlying.balanceOf(address(this)) - totalSupply();\\n _mint(account, value);\\n return value;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x14bb62a60fcbc911c33ac0e5456bf31ed50b502c30be46ee15bd3b698e91bd81\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x605434219ebbe4653f703640f06969faa5a1d78f0bfef878e5ddbb1ca369ceeb\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n */\\ninterface IERC20PermitUpgradeable {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xd60f939a3ca0199014d079b4dd66aa757954334947d81eb5c1d35d7a83061ab3\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../extensions/IERC20PermitUpgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n /**\\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n /**\\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n */\\n function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n }\\n }\\n\\n /**\\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to\\n * 0 before setting it to a non-zero value.\\n */\\n function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20PermitUpgradeable token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n *\\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0x4dae161227d332808312ee2caf6384929321b83c16cc89b5642985fbec6b814c\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalBlacklist.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalBlacklist\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global mapping of blacklisted accounts shared by all contracts of the\\n * Ledgity Yield codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers\\n * and getter functions to easily check against this global blacklist.\\n *\\n * @dev For further details, see \\\"GlobalBlacklist\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalBlacklist is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\\n /**\\n * @notice Mapping of accounts to their blacklist status.\\n * @dev This mapping is made private and isBlacklisted() should be used instead.This\\n * helps saving gas in some scenario. See isBlacklisted() documentation for more details.\\n */\\n mapping(address => bool) private _list;\\n\\n /// @dev Emitted when `account` is blacklisted.\\n event Blacklisted(address account);\\n\\n /// @dev Emitted when `account` is unblacklisted.\\n event Unblacklisted(address account);\\n\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @notice Adds a given account to the blacklist.\\n * @param account The account's address to be blacklisted.\\n */\\n function blacklist(address account) external onlyOwner {\\n require(account != address(0), \\\"L20\\\");\\n _list[account] = true;\\n emit Blacklisted(account);\\n }\\n\\n /**\\n * @notice Removes a given account from the blacklist.\\n * @param account The account's address to be un-blacklisted.\\n */\\n function unBlacklist(address account) external onlyOwner {\\n _list[account] = false;\\n emit Unblacklisted(account);\\n }\\n\\n /**\\n * @notice Checks whether a given account is blacklisted.\\n * @param account Address of the account to check.\\n * @return 'true' if the account is blacklisted, 'false' otherwise\\n */\\n function isBlacklisted(address account) external view returns (bool) {\\n // Gas optimization: Avoid accessing storage if account is the zero address\\n // (e.g, during a mint or a burn of tokens)\\n if (account == address(0)) return false;\\n\\n // Else, return current account's blacklist status\\n return _list[account];\\n }\\n}\\n\",\"keccak256\":\"0x7e771076a06cfec935df22cf2d307df7e1f7df5b887976ec1dea30f8b68a878d\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/GlobalPause.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalPause\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global pause state shared by all contracts of the Ledgity Yield\\n * codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalPausableUpgradeable abstract contract. This provides them with an overriden\\n * paused() function that retrieves the pause state from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalPause\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalPause is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n PausableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev Public implementation of PausableUpgradeable's pausing and unpausing functions\\n * but restricted to contract's owner.\\n */\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n}\\n\",\"keccak256\":\"0x9a0767e761dbd1d5800db03558c3903f229e6ef29f5fe5ff38f45fb4d7572e2e\",\"license\":\"MIT\"},\"contracts/src/LDYStaking.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Contracts\\nimport {ReentrancyGuardUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\\\";\\nimport {BaseUpgradeable} from \\\"./abstracts/base/BaseUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title LDYStaking\\n * @custom:security-contact security@ledgity.com\\n *\\n * @dev This contract implements tierOf() function from LDYStaking as it's the only\\n * one the LToken contract relies on.\\n *\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LDYStaking is BaseUpgradeable, ReentrancyGuardUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /**\\n * @notice Represents a user staking info in array.\\n * @param stakedAmount Amount of the stake.\\n * @param unStakeAt Unstake at.\\n * @param duration Staking period in seconds.\\n * @param rewardPerTokenPaid Reward per token paid.\\n * @param rewards Rewards to be claimed.\\n */\\n struct StakingInfo {\\n uint256 stakedAmount;\\n uint256 unStakeAt;\\n uint256 duration;\\n uint256 rewardPerTokenPaid;\\n uint256 rewards;\\n }\\n\\n /**\\n * @notice Represent duration and multiplier per each stake option.\\n * @param duration Staking period in seconds.\\n * @param multiplier Token weight\\n */\\n struct StakeDurationInfo {\\n uint256 duration;\\n uint256 multiplier;\\n }\\n\\n /// @notice Decimals of multiplier\\n uint256 public constant MULTIPLIER_BASIS = 1e4;\\n\\n /// @notice Stake and Reward token.\\n IERC20Upgradeable public stakeRewardToken;\\n\\n /// @notice Minimal stake duration for perks.\\n uint256 public stakeDurationForPerks;\\n\\n /// @notice Minimal stake amount for perks.\\n uint256 public stakeAmountForPerks;\\n\\n /// @notice Stake durations info array.\\n StakeDurationInfo[] public stakeDurationInfos;\\n\\n /// @notice Duration of the rewards (in seconds).\\n uint256 public rewardsDuration;\\n\\n /// @notice Timestamp of when the rewards finish.\\n uint256 public finishAt;\\n\\n /// @notice Timestamp of the reward updated.\\n uint256 public lastUpdateTime;\\n\\n /// @notice Reward per second(total rewards / duration).\\n uint256 public rewardRatePerSec;\\n\\n /// @notice Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\\n uint256 public rewardPerTokenStored;\\n\\n /// @notice Total staked amounts.\\n uint256 public totalStaked;\\n\\n // Total staked amounts with multiplier applied\\n uint256 public totalWeightedStake;\\n\\n /// @notice User stakingInfo map, user address => array of the staking info\\n mapping(address => StakingInfo[]) public userStakingInfo;\\n\\n /**\\n * @notice Emitted when users stake token\\n * @param user User address\\n * @param stakeIndex Latest index of user staking pool\\n * @param amount Staked amount\\n */\\n event Staked(address indexed user, uint256 stakeIndex, uint256 amount);\\n\\n /**\\n * @notice Emitted when users unstake token\\n * @param user User address\\n * @param stakeIndex User staking pool index\\n * @param amount Staked amount\\n */\\n event Unstaked(address indexed user, uint256 stakeIndex, uint256 amount);\\n\\n /**\\n * @notice Emitted when users claim rewards\\n * @param user User address\\n * @param stakeIndex User staking pool index\\n * @param reward Reward token amount\\n */\\n event RewardPaid(address indexed user, uint256 stakeIndex, uint256 reward);\\n\\n /**\\n * @notice Emitted when admin add rewards.\\n * @param rewardAmount Reward amount added by admin.\\n * @param rewardPerSec RewardRatePerSec updated.\\n */\\n event NotifiedRewardAmount(uint256 rewardAmount, uint256 rewardPerSec);\\n\\n /**\\n * @notice Holds a mapping of addresses that default to the highest staking tier.\\n * @dev This is notably used to allow PreMining contracts to benefit from 0%\\n * withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\\n */\\n mapping(address => bool) public highTierAccounts;\\n\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\\n * @dev This function is intended for setting initial values for the contract's state variables.\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param stakeRewardToken_ The address of stake and reward token(LDY token).\\n * @param stakeDurationInfos_ Available Staking Durations.\\n * @param stakeDurationForPerks_ Minimal staking duration for perks.\\n * @param stakeAmountForPerks_ Minimal staking amount for perks.\\n */\\n function initialize(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n address stakeRewardToken_,\\n StakeDurationInfo[] memory stakeDurationInfos_,\\n uint256 stakeDurationForPerks_,\\n uint256 stakeAmountForPerks_\\n ) public initializer {\\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\\n stakeRewardToken = IERC20Upgradeable(stakeRewardToken_);\\n uint stakeDurationInfosLength = stakeDurationInfos_.length;\\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\\n stakeDurationInfos.push(stakeDurationInfos_[i]);\\n }\\n stakeDurationForPerks = stakeDurationForPerks_;\\n stakeAmountForPerks = stakeAmountForPerks_;\\n }\\n\\n // --------------------\\n // MUTATIVE FUNCTIONS\\n // --------------------\\n\\n /**\\n * @notice Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\\n * @dev Emits a `Staked` event upon successful staking.\\n * @param amount The amount of tokens to stake.\\n * @param stakeDurationIndex The Index of stakeDurationInfos array.\\n */\\n function stake(\\n uint256 amount,\\n uint8 stakeDurationIndex\\n ) external nonReentrant whenNotPaused notBlacklisted(_msgSender()) {\\n require(amount > 0, \\\"amount = 0\\\");\\n require(stakeDurationIndex <= stakeDurationInfos.length - 1, \\\"Invalid staking period\\\");\\n\\n _updateReward(address(0), 0);\\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[stakeDurationIndex];\\n StakingInfo memory stakingInfo = StakingInfo({\\n stakedAmount: amount,\\n unStakeAt: block.timestamp + stakeDurationInfo.duration,\\n duration: stakeDurationInfo.duration,\\n rewardPerTokenPaid: rewardPerTokenStored,\\n rewards: 0\\n });\\n\\n // check whether account is eligible for benefit from the protocol\\n if (stakeDurationInfo.duration >= stakeDurationForPerks && amount >= stakeAmountForPerks) {\\n highTierAccounts[_msgSender()] = true;\\n }\\n\\n userStakingInfo[_msgSender()].push(stakingInfo);\\n\\n uint256 stakeIndex = userStakingInfo[_msgSender()].length - 1;\\n uint256 weightedStake = (amount * stakeDurationInfo.multiplier) / MULTIPLIER_BASIS;\\n totalWeightedStake += weightedStake;\\n totalStaked += amount;\\n\\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\\n\\n emit Staked(_msgSender(), stakeIndex, amount);\\n }\\n\\n /**\\n * @notice Withdraw staked tokens after stakeDuration has passed.\\n * @dev Emits a `Unstaked` event upon successful withdrawal.\\n * On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\\n * @param amount The amount of tokens to withdraw.\\n * @param stakeIndex The index of user staking pool\\n */\\n function unstake(\\n uint256 amount,\\n uint256 stakeIndex\\n ) external nonReentrant notBlacklisted(_msgSender()) {\\n require(amount > 0, \\\"amount = 0\\\");\\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \\\"Invalid stakeIndex\\\");\\n require(\\n block.timestamp >= userStakingInfo[_msgSender()][stakeIndex].unStakeAt,\\n \\\"Cannot unstake during staking period\\\"\\n );\\n require(\\n amount <= userStakingInfo[_msgSender()][stakeIndex].stakedAmount,\\n \\\"Insufficient unstake amount\\\"\\n );\\n\\n _updateReward(_msgSender(), stakeIndex);\\n\\n uint256 multiplier = _getMultiplier(userStakingInfo[_msgSender()][stakeIndex].duration);\\n\\n uint256 currentWeightedStake = (amount * multiplier) / MULTIPLIER_BASIS;\\n totalWeightedStake -= currentWeightedStake;\\n\\n totalStaked -= amount;\\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount -= amount;\\n\\n // check whether account is eligible for benefit from the protocol\\n if (\\n userStakingInfo[_msgSender()][stakeIndex].duration >= stakeDurationForPerks &&\\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount < stakeAmountForPerks\\n ) {\\n highTierAccounts[_msgSender()] = false;\\n }\\n\\n // remove staking info from array on full withdrawal\\n if (userStakingInfo[_msgSender()][stakeIndex].stakedAmount == 0) {\\n _claimReward(_msgSender(), stakeIndex);\\n\\n userStakingInfo[_msgSender()][stakeIndex] = userStakingInfo[_msgSender()][\\n userStakingInfo[_msgSender()].length - 1\\n ];\\n userStakingInfo[_msgSender()].pop();\\n }\\n stakeRewardToken.safeTransfer(_msgSender(), amount);\\n\\n emit Unstaked(_msgSender(), stakeIndex, amount);\\n }\\n\\n /**\\n * @notice Claim pending rewards.\\n * @dev Emits a `RewardPaid` event upon successful reward claim.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function getReward(uint256 stakeIndex) external nonReentrant notBlacklisted(_msgSender()) {\\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \\\"Invalid stakeIndex\\\");\\n _updateReward(_msgSender(), stakeIndex);\\n _claimReward(_msgSender(), stakeIndex);\\n }\\n\\n // --------------------\\n // ADMIN CONFIGURATION\\n // --------------------\\n\\n /**\\n * @notice Update Rewards Duration.\\n * @dev Only callable by owner, and setting available only after rewards period.\\n * @param duration The nmew rewards duration in seconds.\\n */\\n function setRewardsDuration(uint256 duration) external onlyOwner {\\n require(finishAt < block.timestamp, \\\"reward duration is not finished\\\");\\n rewardsDuration = duration;\\n }\\n\\n /**\\n * @notice Notify the contract about the amount of rewards to be distributed and update reward parameters.\\n * @dev Only callable by owner.\\n * @param amount The amount of reward to be distributed.\\n */\\n function notifyRewardAmount(uint256 amount) external onlyOwner {\\n require(rewardsDuration > 0, \\\"rewards duration is not set\\\");\\n require(amount > 0, \\\"amount = 0\\\");\\n\\n _updateReward(address(0), 0);\\n\\n if (block.timestamp >= finishAt) {\\n rewardRatePerSec = amount / rewardsDuration;\\n } else {\\n uint256 remainingRewards = (finishAt - block.timestamp) * rewardRatePerSec;\\n rewardRatePerSec = (amount + remainingRewards) / rewardsDuration;\\n }\\n\\n require(rewardRatePerSec > 0, \\\"reward rate = 0\\\");\\n require(\\n rewardRatePerSec <=\\n (stakeRewardToken.balanceOf(address(this)) + amount - totalStaked) /\\n rewardsDuration,\\n \\\"reward amount > balance\\\"\\n );\\n\\n finishAt = block.timestamp + rewardsDuration;\\n lastUpdateTime = block.timestamp;\\n\\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\\n\\n emit NotifiedRewardAmount(amount, rewardRatePerSec);\\n }\\n\\n // --------------------\\n // VIEW FUNCTIONS\\n // --------------------\\n\\n /**\\n * @notice Get the last time when rewards were applicable for the specified reward token.\\n * @return Timestamp of the most recent rewards calculation.\\n */\\n function lastTimeRewardApplicable() public view returns (uint256) {\\n return _min(finishAt, block.timestamp);\\n }\\n\\n /**\\n * @notice Calculate the reward per token for a given reward token.\\n * @return Current reward per token.\\n */\\n function rewardPerToken() public view returns (uint256) {\\n if (totalStaked == 0) {\\n return rewardPerTokenStored;\\n }\\n\\n return\\n rewardPerTokenStored +\\n ((rewardRatePerSec * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) /\\n totalWeightedStake);\\n }\\n\\n /**\\n * @notice Calculate the user's stake pool earnings\\n * @param account Address of the user.\\n * @param stakeIndex Index of the stakePool\\n * @return Return earned amounts\\n */\\n function earned(address account, uint256 stakeIndex) public view returns (uint256) {\\n StakingInfo memory userInfo = userStakingInfo[account][stakeIndex];\\n uint256 multiplier = _getMultiplier(userInfo.duration);\\n uint256 weightedAmount = (userInfo.stakedAmount * multiplier) / MULTIPLIER_BASIS;\\n uint256 rewardsSinceLastUpdate = ((weightedAmount *\\n (rewardPerToken() - userInfo.rewardPerTokenPaid)) / 1e18);\\n return rewardsSinceLastUpdate + userInfo.rewards;\\n }\\n\\n /**\\n * @notice Get the earned rewards array for a user.\\n * @param account Address of the user.\\n * @return Return earned rewards array for a user.\\n */\\n function getEarnedUser(address account) public view returns (uint256[] memory) {\\n uint256 numberOfPools = userStakingInfo[account].length;\\n uint256[] memory earnedArray = new uint256[](numberOfPools);\\n for (uint256 index; index < numberOfPools; index++) {\\n earnedArray[index] = earned(account, index);\\n }\\n return earnedArray;\\n }\\n\\n /**\\n * @dev tierOf() function that always return that the given account is not\\n * elligible to any LDY staking tier, except if the account is in the\\n * highTierAccounts mapping.\\n * @param account The account to check the tier of.\\n */\\n function tierOf(address account) public view returns (uint256 tier) {\\n if (highTierAccounts[account]) return 3;\\n return 0;\\n }\\n\\n /**\\n * @notice Get User Stake Data.\\n * @param account The address of user.\\n * @return StakingInfo array.\\n */\\n function getUserStakes(address account) external view returns (StakingInfo[] memory) {\\n return userStakingInfo[account];\\n }\\n\\n /**\\n * @notice Send rewards to user.\\n * @dev This is private function, called by getReward function.\\n * @param account The address of user.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function _claimReward(address account, uint256 stakeIndex) private {\\n uint256 reward = userStakingInfo[account][stakeIndex].rewards;\\n\\n if (reward > 0) {\\n userStakingInfo[account][stakeIndex].rewards = 0;\\n stakeRewardToken.safeTransfer(account, reward);\\n emit RewardPaid(account, stakeIndex, reward);\\n }\\n }\\n\\n /**\\n * @notice Calculate and update user rewards per stakeIndex.\\n * @dev this is private function, called by stake, unstake, getRewards, and notifyRewardAmount functions.\\n * @param account The address of user.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function _updateReward(address account, uint256 stakeIndex) private {\\n rewardPerTokenStored = rewardPerToken();\\n lastUpdateTime = lastTimeRewardApplicable();\\n\\n if (account != address(0)) {\\n userStakingInfo[account][stakeIndex].rewards = earned(account, stakeIndex);\\n userStakingInfo[account][stakeIndex].rewardPerTokenPaid = rewardPerTokenStored;\\n }\\n }\\n\\n /**\\n * @notice Get multiplier from stakeDurationInfo based on duration\\n * @param duration Stake Duration\\n */\\n function _getMultiplier(uint256 duration) private view returns (uint256) {\\n uint256 stakeDurationInfosLength = stakeDurationInfos.length;\\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[i];\\n if (duration == stakeDurationInfo.duration) {\\n return stakeDurationInfo.multiplier;\\n }\\n }\\n return 0;\\n }\\n\\n /**\\n * @notice Take minimum value between x and y.\\n */\\n function _min(uint256 x, uint256 y) private pure returns (uint256) {\\n return x <= y ? x : y;\\n }\\n}\\n\",\"keccak256\":\"0x9ede458867436354edae8f8ac3f5c4b777ebcf7b3b26eec612e7771a0c8e90d8\",\"license\":\"MIT\"},\"contracts/src/LToken.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Contracts\\nimport {ERC20WrapperUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol\\\";\\nimport \\\"./abstracts/base/ERC20BaseUpgradeable.sol\\\";\\nimport {InvestUpgradeable} from \\\"./abstracts/InvestUpgradeable.sol\\\";\\nimport {LDYStaking} from \\\"./LDYStaking.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\nimport {SUD} from \\\"./libs/SUD.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\nimport {IERC20MetadataUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport {ITransfersListener} from \\\"./interfaces/ITransfersListener.sol\\\";\\n\\n/**\\n * @title LToken\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Main contract of the Ledgity Yield protocol. It powers every L-Token (i.e.,\\n * investment pools backed by RWA). An L-Token is an ERC20 wrapper around a stablecoin.\\n * As soon as a wallet holds some L-Tokens, it starts receiving rewards in\\n * the form of additional L-Tokens, which are auto-compounded over time.\\n *\\n * @dev Definitions:\\n * - Deposit: Swap of underlying tokens for L-Tokens (1:1 ratio).\\n * - Withdrawal: Swap of L-Tokens for underlying tokens (1:1 ratio, minus applicable fees).\\n * - Instant: Processed immediately.\\n * - Request: Queued for later processing.\\n * - Big Request: A requested withdrawal exceeding half of the retention rate.\\n * - (Withdrawal) queue: A list of all requested withdrawals sorted by priority.\\n * - Request ID: The index of a withdrawal request in the queue array.\\n * - Retention rate: Maximum fraction of underlying tokens TVL the contract can retain.\\n * - Fees Rate: Percentage of fees applied to successful withdrawals.\\n * - Usable underlyings: Amount of underlying tokens that have been deposited through\\n * expected ways and are so considered safe to use by the contract.\\n * - Transfers listeners: External contracts listening on L-Tokens transfers.\\n * - Fund wallet: Wallet managed by the Ledgity's financial team.\\n * - Withdrawer wallet: Managed by an off-chain server to automate withdrawal request\\n * processing.\\n *\\n * Note that words between parenthesis are sometimes omitted for brevity.\\n *\\n * @dev Deployment notice:\\n * This contract can safely receive funds immediately after initialization. (i.e., there\\n * is no way for funds to be sent to non-owned addresses). It is, however, recommended to\\n * replace ASAP owner and fund wallets with multi-sig wallets.\\n *\\n * @dev For further details, see \\\"LToken\\\" section of whitepaper.\\n * @custom:oz-upgrades-unsafe-allow external-library-linking\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /// @dev Represents type of actions triggering ActivityEvent events.\\n enum Action {\\n Deposit,\\n Withdraw\\n }\\n\\n /// @dev Represents different status of actions triggering ActivityEvent events.\\n enum Status {\\n Queued,\\n Cancelled,\\n Success,\\n Moved\\n }\\n\\n /**\\n * @notice Represents a withdrawal request in the queue.\\n * @dev A request fits in a single storage slot (32 bytes).\\n * @param account The account that initiated the request.\\n * @param amount The amount of underlying tokens requested.\\n */\\n struct WithdrawalRequest {\\n address account; // 20 bytes\\n uint96 amount; // 12 bytes\\n }\\n\\n /// @notice Upper limit of retention rate.\\n uint32 private constant MAX_RETENTION_RATE_UD7x3 = 10 * 10 ** 3; // 10%\\n\\n /// @notice Upper limit of fees rate.\\n uint32 private constant MAX_FEES_RATE_UD7x3 = 20 * 10 ** 3; // 20%\\n\\n /// @notice Used in activity events to represent the absence of request ID.\\n int256 private constant NO_ID = -1;\\n\\n /// @notice Holds a reference to the LDYStaking contract.\\n LDYStaking public ldyStaking;\\n\\n /// @notice Holds address of withdrawer wallet (managed by withdrawal server).\\n address payable public withdrawer;\\n\\n /// @notice Holds address of fund wallet (managed by Ledgity financial team).\\n address public fund;\\n\\n /// @notice Holds the withdrawal fees rate in UD7x3 format (e.g., 350 = 0.350%).\\n uint32 public feesRateUD7x3;\\n\\n /// @notice Holds the retention rate in UD7x3 format.\\n uint32 public retentionRateUD7x3;\\n\\n /// @notice Holds the amount of withdrawal fees not yet claimed by contract's owner.\\n uint256 public unclaimedFees;\\n\\n /// @notice Holds the amount of L-Tokens currently in the withdrawal queue.\\n uint256 public totalQueued;\\n\\n /**\\n * @notice Holds the amount of underlying tokens considered as usable by the contract.\\n * @dev Are usable, only underlying tokens deposit through deposit() or fund() functions.\\n */\\n uint256 public usableUnderlyings;\\n\\n /// @notice Holds an ordered list of active withdrawal requests.\\n WithdrawalRequest[] public withdrawalQueue;\\n\\n /// @notice Holds the index of the next withdrawal request to process in the queue.\\n uint256 public withdrawalQueueCursor;\\n\\n /**\\n * @notice Holds a list of all currently frozen withdrawal requests.\\n * @dev If a request emitter as been blacklisted, its request is moved here to prevent\\n * it from blocking the queue.\\n */\\n WithdrawalRequest[] public frozenRequests;\\n\\n /**\\n * @notice Holds a list of contracts' references that are listening to L-Tokens transfers.\\n * @dev onLTokenTransfer() functions of those contracts will be called on each transfer.\\n */\\n ITransfersListener[] public transfersListeners;\\n\\n /**\\n * @notice Emitted to inform listeners about a change in the contract's TVL.\\n * @dev TVL = realTotalSupply()\\n * @param newTVL The new TVL of the contract.\\n */\\n event TVLChangeEvent(uint256 newTVL);\\n\\n /**\\n * @notice Emitted to inform listerners about an activity related to deposits and withdrawals.\\n * @param id ID of the involved withdrawal request or NO_ID (-1) if not applicable.\\n * @param account The account involved in the activity.\\n * @param action The type of activity.\\n * @param amount The amount of underlying tokens involved in the activity.\\n * @param newStatus The new status of the activity.\\n * @param newId The new ID of the request if it has been moved in the queue.\\n */\\n event ActivityEvent(\\n int256 indexed id,\\n address indexed account,\\n Action indexed action,\\n uint256 amount,\\n uint256 amountAfterFees,\\n Status newStatus,\\n int256 newId\\n );\\n\\n /**\\n * @notice Emitted to inform listeners that some rewards have been minted.\\n * @param account The account that received the rewards.\\n * @param balanceBefore The balance of the account before the minting.\\n * @param rewards The amount of minted rewards.\\n */\\n event MintedRewardsEvent(address indexed account, uint256 balanceBefore, uint256 rewards);\\n\\n /// @notice Reverts if the function caller is not the withdrawer wallet.\\n modifier onlyWithdrawer() {\\n require(_msgSender() == withdrawer, \\\"L39\\\");\\n _;\\n }\\n\\n /// @notice Reverts if the function caller is not the fund wallet.\\n modifier onlyFund() {\\n require(_msgSender() == fund, \\\"L40\\\");\\n _;\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param underlyingToken The address of the underlying stablecoin ERC20 token.\\n */\\n function initialize(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n address ldyStaking_,\\n address underlyingToken\\n ) public initializer {\\n // Initialize ERC20 base.\\n string memory underlyingSymbol = IERC20MetadataUpgradeable(underlyingToken).symbol();\\n __ERC20Base_init(\\n globalOwner_,\\n globalPause_,\\n globalBlacklist_,\\n string(abi.encodePacked(\\\"Ledgity \\\", underlyingSymbol)),\\n string(abi.encodePacked(\\\"L\\\", underlyingSymbol))\\n );\\n\\n // IMPORTANT: Below calls must not be restricted to owner at any point.\\n // This is because the GlobalOwner contract may not be a fresh one, and so\\n // the contract deployer may not be the owner anymore after ERC20Base init.\\n\\n // Initialize other parents contracts.\\n __ERC20Wrapper_init(IERC20Upgradeable(underlyingToken));\\n __Invest_init_unchained(address(this));\\n\\n // Set LDYStaking contract\\n ldyStaking = LDYStaking(ldyStaking_);\\n\\n // Set initial withdrawal fees rate to 0.3%\\n feesRateUD7x3 = 300;\\n\\n // Set initial retention rate to 10%\\n retentionRateUD7x3 = 10_000;\\n\\n // Default withdrawer and fund wallet to contract owner address. This prevents\\n // any loss of funds if a deposit/withdrawal is made before those are manually set.\\n withdrawer = payable(owner());\\n fund = payable(owner());\\n }\\n\\n /**\\n * @notice Required override of decimals() which is implemented by both\\n * ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts.\\n * @dev The ERC20WrapperUpgradeable version is preferred because it mirrors the\\n * decimals amount of the underlying stablecoin token.\\n * @inheritdoc ERC20WrapperUpgradeable\\n */\\n function decimals()\\n public\\n view\\n override(ERC20Upgradeable, ERC20WrapperUpgradeable)\\n returns (uint8)\\n {\\n return ERC20WrapperUpgradeable.decimals();\\n }\\n\\n /**\\n * @notice Required override of paused() which is implemented by both\\n * GlobalPausableUpgradeable and ERC20BaseUpgradeable parent contracts.\\n * @dev Both version are the same as ERC20BaseUpgradeable.paused() mirrors\\n * GlobalPausableUpgradeable.paused(), so a random one is chosen.\\n * @inheritdoc GlobalPausableUpgradeable\\n */\\n function paused()\\n public\\n view\\n virtual\\n override(GlobalPausableUpgradeable, ERC20BaseUpgradeable)\\n returns (bool)\\n {\\n return GlobalPausableUpgradeable.paused();\\n }\\n\\n /**\\n * @notice Updates the current withdrawal fee rate.\\n * @param feesRateUD7x3_ The new withdrawal fee rate in UD7x3 format.\\n */\\n function setFeesRate(uint32 feesRateUD7x3_) public onlyOwner {\\n require(feesRateUD7x3_ <= MAX_FEES_RATE_UD7x3, \\\"L88\\\");\\n feesRateUD7x3 = feesRateUD7x3_;\\n }\\n\\n /**\\n * @notice Updates the current underlying token retention rate.\\n * @dev The retention rate is capped at 10%, which ensures that no more than 10% of\\n * deposited assets will ever be exposed in this contract (reduces attack surface).\\n * @param retentionRateUD7x3_ The new retention rate in UD7x3 format.\\n */\\n function setRetentionRate(uint32 retentionRateUD7x3_) public onlyOwner {\\n require(retentionRateUD7x3_ <= MAX_RETENTION_RATE_UD7x3, \\\"L41\\\");\\n retentionRateUD7x3 = retentionRateUD7x3_;\\n }\\n\\n /**\\n * @notice Updates the address of LDYStaking contract.\\n * @param ldyStakingAddress The address of the new LDYStaking contract.\\n */\\n function setLDYStaking(address ldyStakingAddress) public onlyOwner {\\n ldyStaking = LDYStaking(ldyStakingAddress);\\n }\\n\\n /**\\n * @notice Updates the address of the withdrawer wallet.\\n * @param withdrawer_ The address of the new withdrawer wallet.\\n */\\n function setWithdrawer(address payable withdrawer_) public onlyOwner {\\n // Ensure address is not the zero address (pre-processing fees would be lost else)\\n require(withdrawer_ != address(0), \\\"L63\\\");\\n\\n // Set new withdrawer wallet's address\\n withdrawer = withdrawer_;\\n }\\n\\n /**\\n * @notice Updates the address of the fund wallet.\\n * @param fund_ The address of the new fund wallet.\\n */\\n function setFund(address payable fund_) public onlyOwner {\\n // Ensure address is not the zero address (deposited tokens would be lost else)\\n require(fund_ != address(0), \\\"L64\\\");\\n\\n // Set new fund wallet's address\\n fund = fund_;\\n }\\n\\n /**\\n * @notice Adds a new contract to the L-Token transfers list.\\n * @dev Each time a transfer occurs, the onLTokenTransfer() function of the\\n * specified contract will be called.\\n * @dev IMPORTANT SECURITY NOTE: This method is not intended to be used with\\n * contracts that are not owned by the Ledgity team.\\n * @param listenerContract The address of the new transfers listener contract.\\n */\\n function listenToTransfers(address listenerContract) public onlyOwner {\\n transfersListeners.push(ITransfersListener(listenerContract));\\n }\\n\\n /**\\n * @notice Removes a contract from the L-Token transfers list.\\n * @dev The onLTokenTransfer() function of the specified contract will not be called\\n * anymore each time a L-Token transfer occurs.\\n * @param listenerContract The address of the listener contract.\\n */\\n function unlistenToTransfers(address listenerContract) public onlyOwner {\\n // Find index of listener contract in transferListeners array\\n int256 index = -1;\\n uint256 transfersListenersLength = transfersListeners.length;\\n for (uint256 i = 0; i < transfersListenersLength; i++) {\\n if (address(transfersListeners[i]) == listenerContract) {\\n index = int256(i);\\n break;\\n }\\n }\\n\\n // Revert if given contract wasn't listening to transfers\\n require(index > -1, \\\"L42\\\");\\n\\n // Else, remove transfers listener contract from listeners array\\n transfersListeners[uint256(index)] = transfersListeners[transfersListenersLength - 1];\\n transfersListeners.pop();\\n }\\n\\n /**\\n * @notice Retrieves the amount of given account's not yet minted rewards.\\n * @dev This is a public implementation of InvestUpgradeable_rewardsOf(). In the\\n * context of LToken, this function returns the amount of rewards that have not been\\n * distributed/minted yet to the specified account.\\n * @dev This is particularly useful for off-chain services to display charts and\\n * statistics, as seen in the Ledgity Yield's frontend.\\n * @param account The account to check the unminted rewards of.\\n * @return The amount of account's unminted rewards.\\n */\\n function unmintedRewardsOf(address account) public view returns (uint256) {\\n return _rewardsOf(account, true);\\n }\\n\\n /**\\n * @notice Retrieves the \\\"real\\\" balance of an account, i.e., excluding its not yet\\n * minted/distributed rewards.\\n * @param account The account to check the real balance of.\\n * @return The real balance of the account.\\n */\\n function realBalanceOf(address account) public view returns (uint256) {\\n return super.balanceOf(account);\\n }\\n\\n /**\\n * @notice Retrieves the total balance of L-Tokens that belong to the account.\\n * @dev This is an oOverride of ERC20Upgradeable.balanceOf() that rewards that have\\n * not been yet minted to the specified account.\\n * @param account The account to check the total balance of.\\n * @return The total balance of the account.\\n */\\n function balanceOf(address account) public view override returns (uint256) {\\n return realBalanceOf(account) + unmintedRewardsOf(account);\\n }\\n\\n /**\\n * @notice Returns the \\\"real\\\" amount of existing L-Tokens, i.e., excluding not yet\\n * minted withdrawal fees and L-Tokens currently in the withdrawal queue.\\n * @return The real total supply of L-Tokens.\\n */\\n function realTotalSupply() public view returns (uint256) {\\n return super.totalSupply();\\n }\\n\\n /**\\n * @notice Retrives the total supply of L-Tokens, including not yet minted withdrawal\\n * fees and L-Tokens currently in the withdrawal queue.\\n * @return The total supply of L-Tokens.\\n */\\n function totalSupply() public view override returns (uint256) {\\n return realTotalSupply() + totalQueued + unclaimedFees;\\n }\\n\\n /**\\n * @notice Recovers a specified amount of a given token address.\\n * @dev This override of RecoverableUpgradeable.recoverERC20() prevents the recovered\\n * token from being the underlying token.\\n * @inheritdoc RecoverableUpgradeable\\n */\\n function recoverERC20(address tokenAddress, uint256 amount) public override onlyOwner {\\n // Ensure the token is not the underlying token\\n require(tokenAddress != address(underlying()), \\\"L43\\\");\\n\\n // Proceed to recovery\\n super.recoverERC20(tokenAddress, amount);\\n }\\n\\n /**\\n * @notice Recovers underlying tokens accidentally sent to the contract.\\n * @dev To prevent owner from being able to drain the contract, this function only\\n * allows recovering \\\"unusable\\\" underlying tokens, i.e., tokens that have not been\\n * sent through fund() or deposit() functions.\\n */\\n function recoverUnderlying() external onlyOwner {\\n // Compute the recoverable amount by taking the difference between the contract's\\n // balance and the amount of usable underlying tokens\\n uint256 recoverableAmount = underlying().balanceOf(address(this)) - usableUnderlyings;\\n\\n // Revert if there is nothing to recover\\n require(recoverableAmount > 0, \\\"L44\\\");\\n\\n // Else, proceed to underlying tokens recovery\\n super.recoverERC20(address(underlying()), recoverableAmount);\\n }\\n\\n /**\\n * @notice Retrieves the amount of underlying tokens invested by the given account.\\n * @dev Implementing this function is required by the InvestUpgradeable contract. In\\n * LToken contract, the investment of an account is equal to its real balance.\\n * @inheritdoc InvestUpgradeable\\n */\\n function _investmentOf(address account) internal view override returns (uint256) {\\n return realBalanceOf(account);\\n }\\n\\n /**\\n * @notice Distributes a specified amount of rewards (in L-Tokens) to a given account.\\n * @dev Implementing this function is required by the InvestUpgradeable contract so\\n * it can distribute rewards to accounts before each period reset.\\n * @dev InvestUpgradeable contract already ensure that amount > 0.\\n * @inheritdoc InvestUpgradeable\\n */\\n function _distributeRewards(address account, uint256 amount) internal override returns (bool) {\\n // Inform listeners of the rewards minting\\n emit MintedRewardsEvent(account, realBalanceOf(account), amount);\\n\\n // Mint L-Tokens rewards to account\\n _mint(account, amount);\\n\\n // Return true indicating to InvestUpgradeable that the rewards have been distributed\\n return true;\\n }\\n\\n /**\\n * @notice Override of ERC20._beforeTokenTransfer() to integrate with InvestUpgradeable.\\n * @dev This overriden version ensure that _beforeInvestmentChange() hook is properly\\n * called each time an account's balance is going to change.\\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\\n * already included in ERC20BaseUpgradeable._beforeTokenTransfer().\\n * @inheritdoc ERC20BaseUpgradeable\\n */\\n function _beforeTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal override(ERC20Upgradeable, ERC20BaseUpgradeable) {\\n ERC20BaseUpgradeable._beforeTokenTransfer(from, to, amount);\\n\\n // Invoke _beforeInvestmentChange() hook for non-zero accounts\\n if (from != address(0)) _beforeInvestmentChange(from, true);\\n if (to != address(0)) _beforeInvestmentChange(to, true);\\n }\\n\\n /**\\n * @notice Override of ERC20._afterTokenTransfer() to notify all transfers listeners.\\n * @dev This overriden version will trigger onLTokenTransfer() functions of all\\n * transfers listeners.\\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\\n * already checked in _beforeTokenTransfer().\\n * @inheritdoc ERC20Upgradeable\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal override {\\n super._afterTokenTransfer(from, to, amount);\\n\\n // If some L-Token have been burned/minted, inform listeners of a TVL change\\n if (from == address(0) || to == address(0)) emit TVLChangeEvent(totalSupply());\\n\\n // Trigger onLTokenTransfer() functions of all the transfers listeners\\n for (uint256 i = 0; i < transfersListeners.length; i++) {\\n transfersListeners[i].onLTokenTransfer(from, to, amount);\\n }\\n }\\n\\n /**\\n * @notice Computes the maximum amount of underlying tokens that should be retained\\n * by the contract (based on retention rate).\\n * @return amount The expected amount of retained underlying tokens.\\n */\\n function getExpectedRetained() public view returns (uint256 amount) {\\n // Cache invested token's decimals number\\n uint256 d = SUD.decimalsOf(address(invested()));\\n\\n // Convert totalSupply and retentionRate to SUD\\n uint256 totalSupplySUD = SUD.fromAmount(totalSupply(), d);\\n uint256 retentionRateSUD = SUD.fromRate(retentionRateUD7x3, d);\\n\\n // Compute and return expected retained amount\\n uint256 expectedRetainedSUD = (totalSupplySUD * retentionRateSUD) / SUD.fromInt(100, d);\\n return SUD.toAmount(expectedRetainedSUD, d);\\n }\\n\\n /// @notice Transfers underlying tokens exceeding the retention rate to the fund wallet.\\n function _transferExceedingToFund() internal {\\n // Retrieve the expected amount retained\\n uint256 expectedRetained = getExpectedRetained();\\n\\n // If usable underlyings are less than or equal to expected retained, return\\n if (usableUnderlyings <= expectedRetained) return;\\n\\n // Else, exceeding amount is equal to difference between those values\\n uint256 exceedingAmount = usableUnderlyings - expectedRetained;\\n\\n // Decrease usable underlyings amount accordingly\\n usableUnderlyings -= exceedingAmount;\\n\\n // Transfer the exceeding amount to the fund wallet\\n underlying().safeTransfer(fund, exceedingAmount);\\n }\\n\\n /**\\n * @notice Override of ERC20WrapperUpgradeable.withdrawTo() that reverts.\\n * Use instantWithdrawal() or requestWithdrawal() functions instead.\\n * @inheritdoc ERC20WrapperUpgradeable\\n */\\n function withdrawTo(address account, uint256 amount) public pure override returns (bool) {\\n account; // Silence unused variable compiler warning\\n amount;\\n revert(\\\"L45\\\");\\n }\\n\\n /**\\n * @notice Override of ERC20WrapperUpgradeable.depositFor() that reverts.\\n * Use deposit() function instead.\\n * @inheritdoc ERC20WrapperUpgradeable\\n */\\n function depositFor(address account, uint256 amount) public pure override returns (bool) {\\n account; // Silence unused variable compiler warning\\n amount;\\n revert(\\\"L46\\\");\\n }\\n\\n /**\\n * @notice Allows exchanging some underlying tokens for the same amount of L-Tokens.\\n * @param amount The amount of underlying tokens to deposit.\\n */\\n function deposit(uint256 amount) public whenNotPaused notBlacklisted(_msgSender()) {\\n // Ensure the account has enough underlying tokens to deposit\\n require(underlying().balanceOf(_msgSender()) >= amount, \\\"L47\\\");\\n\\n // Update usable underlyings balance accordingly\\n usableUnderlyings += amount;\\n\\n // Inform listeners of the deposit activity event\\n emit ActivityEvent(\\n NO_ID,\\n _msgSender(),\\n Action.Deposit,\\n amount,\\n amount,\\n Status.Success,\\n NO_ID\\n );\\n\\n // Receive underlying tokens and mint L-Tokens to the account in a 1:1 ratio\\n super.depositFor(_msgSender(), amount);\\n\\n // Transfer exceeding underlying tokens to the fund wallet\\n _transferExceedingToFund();\\n }\\n\\n /**\\n * @notice Computes fees and net withdrawn amount for a given account withdrawing a\\n * given amount.\\n * @param account The account initiating the withdrawal.\\n * @param amount The amount of the withdrawal.\\n */\\n function getWithdrawnAmountAndFees(\\n address account,\\n uint256 amount\\n ) public view returns (uint256 withdrawnAmount, uint256 fees) {\\n // If the account is eligible to staking tier 2, no fees are applied\\n if (ldyStaking.tierOf(account) >= 2) return (amount, 0);\\n\\n // Cache invested token's decimals number\\n uint256 d = SUD.decimalsOf(address(invested()));\\n\\n // Convert amount and fees rate to SUD\\n uint256 amountSUD = SUD.fromAmount(amount, d);\\n uint256 feesRateSUD = SUD.fromRate(feesRateUD7x3, d);\\n\\n // Compute fees and withdrawn amount (initial amount minus fees)\\n uint256 feesSUD = (amountSUD * feesRateSUD) / SUD.fromInt(100, d);\\n fees = SUD.toAmount(feesSUD, d);\\n withdrawnAmount = amount - fees;\\n }\\n\\n /**\\n * @notice Allows instaneously exchanging a given amount of L-Tokens for the same\\n * amount of underlying tokens. It will fail if the contract currently doesn't hold\\n * enough underlying tokens to cover the withdrawal.\\n * @dev In order to save some gas and time to users, frontends should propose this\\n * function to users only when it has been verified that it will not revert. They\\n * should propose the requestWithdrawal() function otherwise.\\n * @param amount The amount L-Tokens to withdraw.\\n */\\n function instantWithdrawal(uint256 amount) external whenNotPaused notBlacklisted(_msgSender()) {\\n // Ensure the account has enough L-Tokens to withdraw\\n require(amount <= balanceOf(_msgSender()), \\\"L48\\\");\\n\\n // Can the contract cover this withdrawal plus all already queued requests?\\n bool cond1 = totalQueued + amount <= usableUnderlyings;\\n\\n // Is caller eligible to staking tier 2 and the contract can cover this withdrawal?\\n bool cond2 = ldyStaking.tierOf(_msgSender()) >= 2 && amount <= usableUnderlyings;\\n\\n // Revert if conditions are not met for the withdrawal to be processed instantaneously\\n if (!(cond1 || cond2)) revert(\\\"L49\\\");\\n\\n // Else, retrieve withdrawal fees and net withdrawn amount\\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(_msgSender(), amount);\\n\\n // Increase unclaimed fees amount accordingly\\n unclaimedFees += fees;\\n\\n // Decrease usable underlyings balance accordingly\\n usableUnderlyings -= withdrawnAmount;\\n\\n // Inform listeners of this instant withdrawal activity event\\n emit ActivityEvent(\\n NO_ID,\\n _msgSender(),\\n Action.Withdraw,\\n amount,\\n withdrawnAmount,\\n Status.Success,\\n NO_ID\\n );\\n\\n // Burn withdrawal fees from the account\\n _burn(_msgSender(), fees);\\n\\n // Burn account's withdrawn L-Tokens and transfer to it underlying tokens in a 1:1 ratio\\n super.withdrawTo(_msgSender(), withdrawnAmount);\\n }\\n\\n /**\\n * @notice Allows requesting the exchange of a given amount of L-Tokens for the same\\n * amount of underlying tokens. The request will be automatically processed later.\\n * @dev The sender must attach 0.003 ETH to pre-pay the future processing gas fees\\n * paid by the withdrawer wallet.\\n * @param amount The amount L-Tokens to withdraw.\\n */\\n function requestWithdrawal(\\n uint256 amount\\n ) public payable whenNotPaused notBlacklisted(_msgSender()) {\\n // Ensure the account has enough L-Tokens to withdraw\\n require(amount <= balanceOf(_msgSender()), \\\"L53\\\");\\n\\n // Ensure the requested amount doesn't overflow uint96\\n require(amount <= type(uint96).max, \\\"L54\\\");\\n\\n // Ensure the sender attached the pre-paid processing gas fees\\n require(msg.value == 0.003 * 10 ** 18, \\\"L55\\\");\\n\\n // Create withdrawal request data\\n WithdrawalRequest memory request = WithdrawalRequest({\\n account: _msgSender(),\\n amount: uint96(amount)\\n });\\n\\n // Will hold the request ID\\n uint256 requestId;\\n\\n // Append request to the withdrawal queue:\\n // - At the beginning, if account is eligible to staking tier 2 and cursor is not 0\\n if (ldyStaking.tierOf(_msgSender()) >= 2 && withdrawalQueueCursor > 0) {\\n withdrawalQueueCursor--;\\n requestId = withdrawalQueueCursor;\\n withdrawalQueue[requestId] = request;\\n }\\n // - At the end else\\n else {\\n withdrawalQueue.push(request);\\n requestId = withdrawalQueue.length - 1;\\n }\\n\\n // Increase total amount queued accordingly\\n totalQueued += amount;\\n\\n // Inform listeners of this new queued withdrawal activity event\\n emit ActivityEvent(\\n int256(requestId),\\n _msgSender(),\\n Action.Withdraw,\\n amount,\\n amount,\\n Status.Queued,\\n NO_ID\\n );\\n\\n // Burn withdrawal L-Tokens amount from account's balance\\n _burn(_msgSender(), amount);\\n\\n // Forward pre-paid processing gas fees to the withdrawer wallet\\n (bool sent, ) = withdrawer.call{value: msg.value}(\\\"\\\");\\n require(sent, \\\"L56\\\");\\n }\\n\\n /**\\n * @notice Processes queued withdrawal requests until there is else no more requests,\\n * else not enough underlying tokens to continue.\\n * @dev For further details, see \\\"LToken > Withdrawals\\\" section of whitepaper.\\n */\\n function processQueuedRequests() external onlyWithdrawer whenNotPaused {\\n // Accumulators variables, will be written on-chain after the loop\\n uint256 cumulatedFees = 0;\\n uint256 cumulatedWithdrawnAmount = 0;\\n uint256 nextRequestId = withdrawalQueueCursor;\\n\\n // Cache queue length to avoid multiple SLOADs and avoid infinite loop as big\\n // requests are increasing the queue length when moved at the end of the queue.\\n uint256 queueLength = withdrawalQueue.length;\\n\\n // Iterate over requests to be processed\\n while (nextRequestId < queueLength) {\\n // Stop processing requests if there is not enough gas left to continue the\\n // loop and properly end the function call. This prevents an attacker from\\n // blocking the withdrawal processing by creating a ton of tiny requests so\\n // this function call cannot fit anymore in block gas limit.\\n if (gasleft() < 45000) break;\\n\\n // Retrieve request data\\n WithdrawalRequest memory request = withdrawalQueue[nextRequestId];\\n\\n // Skip empty request (processed big requests or cancelled requests)\\n if (request.account == address(0)) {}\\n //\\n // If account has been blacklisted since request emission\\n else if (isBlacklisted(request.account)) {\\n // Remove request from queue\\n delete withdrawalQueue[nextRequestId];\\n\\n // Append request in the frozen requests list\\n frozenRequests.push(request);\\n }\\n //\\n // Or if request is a big request, move it at the end of the queue for now.\\n // This request will be processed manually later using processBigQueuedRequest()\\n else if (request.amount > getExpectedRetained() / 2) {\\n // Inform listeners of this queued request being moved at the end of the queue\\n emit ActivityEvent(\\n int256(nextRequestId),\\n _msgSender(),\\n Action.Withdraw,\\n request.amount,\\n request.amount,\\n Status.Moved,\\n int256(withdrawalQueue.length)\\n );\\n\\n // Remove request from queue\\n delete withdrawalQueue[nextRequestId];\\n\\n // Append request at the end of the queue\\n withdrawalQueue.push(request);\\n }\\n //\\n // Else, continue request processing\\n else {\\n // Retrieve withdrawal fees and net withdrawn amount\\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\\n request.account,\\n request.amount\\n );\\n\\n // Break if the contract doesn't hold enough funds to cover the request\\n if (withdrawnAmount > usableUnderlyings - cumulatedWithdrawnAmount) break;\\n\\n // Accumulate fees and withdrawn amount\\n cumulatedFees += fees;\\n cumulatedWithdrawnAmount += withdrawnAmount;\\n\\n // Inform listeners of this queued withdrawal processing activity event\\n emit ActivityEvent(\\n int256(nextRequestId),\\n request.account,\\n Action.Withdraw,\\n request.amount,\\n withdrawnAmount,\\n Status.Success,\\n NO_ID\\n );\\n\\n // Remove request from queue\\n delete withdrawalQueue[nextRequestId];\\n\\n // Transfer underlying tokens to account. Burning L-Tokens is not required\\n // as equestWithdrawal() already did it.\\n // Security note: Re-entrancy warning are disabled as the request has\\n // just been deleted from the queue, it will so be skipped if trying to\\n // process it again.\\n // slither-disable-next-line reentrancy-no-eth\\n underlying().safeTransfer(request.account, withdrawnAmount);\\n }\\n\\n // Increment next request ID\\n nextRequestId++;\\n }\\n\\n // Increase unclaimed fees by the amount of cumulated fees\\n unclaimedFees += cumulatedFees;\\n\\n // Decrease usable underlyings by the cumulated amount of withdrawn underlyings\\n usableUnderlyings -= cumulatedWithdrawnAmount;\\n\\n // Decrease total amount queued by the cumulated amount requested\\n totalQueued -= cumulatedWithdrawnAmount + cumulatedFees;\\n\\n // Update new queue cursor\\n withdrawalQueueCursor = nextRequestId;\\n\\n // Retention rate cannot exceeds as the withdrawal decreases both usable\\n // underlyings and expected retained amounts by the same number and as the\\n // expected retained amount is a subset of usable underlyings amount.\\n }\\n\\n /**\\n * @notice Processes a given queued big withdrawal request (one that exceeds half of\\n * the retention rate).\\n * @dev In contrast to non-big requests processing, this function will uses to fund\\n * wallet's balance to fill the request. This allows processing requests that are\\n * greater than retention rate without having to exceed this rate on the contract.\\n * @param requestId The ID of the big request to process.\\n */\\n function processBigQueuedRequest(uint256 requestId) external onlyFund whenNotPaused {\\n // Retrieve request data\\n WithdrawalRequest memory request = withdrawalQueue[requestId];\\n\\n // Ensure the request is active\\n require(request.account != address(0), \\\"L66\\\");\\n\\n // Ensure the request emitter has not been blacklisted since request emission\\n require(!isBlacklisted(request.account), \\\"L50\\\");\\n\\n // Ensure this is indeed a big request\\n require(request.amount > getExpectedRetained() / 2, \\\"L51\\\");\\n\\n // Retrieve withdrawal fees and net withdrawn amount\\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\\n request.account,\\n request.amount\\n );\\n\\n // Ensure withdrawn amount can be covered by contract + fund wallet balances\\n uint256 fundBalance = underlying().balanceOf(fund);\\n require(withdrawnAmount <= usableUnderlyings + fundBalance, \\\"L52\\\");\\n\\n // Increase amount of unclaimed fees accordingly\\n unclaimedFees += fees;\\n\\n // Decrease total queued amount by request amount\\n totalQueued -= request.amount;\\n\\n // Increment queue cursor if request was the next request to be processed\\n if (requestId == withdrawalQueueCursor) withdrawalQueueCursor++;\\n\\n // Inform listeners of this queued withdrawal processing activity event\\n emit ActivityEvent(\\n int256(requestId),\\n request.account,\\n Action.Withdraw,\\n request.amount,\\n withdrawnAmount,\\n Status.Success,\\n NO_ID\\n );\\n\\n // Remove request from queue\\n delete withdrawalQueue[requestId];\\n\\n // If fund wallet's balance can cover request, rely on it only\\n if (withdrawnAmount <= fundBalance) {\\n underlying().safeTransferFrom(_msgSender(), request.account, withdrawnAmount);\\n }\\n // Else, cover request from both fund wallet and contract balances\\n else {\\n // Compute amount missing from fund wallet to cover request\\n uint256 missingAmount = withdrawnAmount - fundBalance;\\n\\n // Decrease usable amount of underlying tokens accordingly\\n usableUnderlyings -= missingAmount;\\n\\n // Transfer entire fund balance to request's emitter\\n underlying().safeTransferFrom(_msgSender(), request.account, fundBalance);\\n\\n // Transfer missing amount from contract balance to request emitter\\n underlying().safeTransfer(request.account, missingAmount);\\n }\\n\\n // Transfer exceeding underlying tokens to the fund wallet\\n _transferExceedingToFund();\\n }\\n\\n /**\\n * @notice Cancels a given withdrawal request. The request emitter receive back its\\n * L-Tokens and no fees will be charged.\\n * @param requestId The ID of the withdrawal request to cancel.\\n */\\n function cancelWithdrawalRequest(\\n uint256 requestId\\n ) public whenNotPaused notBlacklisted(_msgSender()) {\\n // Retrieve request data\\n WithdrawalRequest memory request = withdrawalQueue[requestId];\\n\\n // Ensure request belongs to caller\\n require(_msgSender() == request.account, \\\"L57\\\");\\n\\n // Decrease total amount queued accordingly\\n totalQueued -= request.amount;\\n\\n // Delete the withdrawal request from queue\\n delete withdrawalQueue[requestId];\\n\\n // Inform listeners of this cancelled withdrawal request activity event\\n emit ActivityEvent(\\n int256(requestId),\\n request.account,\\n Action.Withdraw,\\n request.amount,\\n request.amount,\\n Status.Cancelled,\\n NO_ID\\n );\\n\\n // Mint back L-Tokens to account\\n _mint(request.account, uint256(request.amount));\\n }\\n\\n /**\\n * @notice Used by the fund wallet to repatriate underlying tokens on the contract\\n * whenever those are required to fulfill some withdrawal requests.\\n * @dev The function will revert if repatriated amount makes the contract exceeding\\n * the retention rate.\\n * @param amount The amount of underlying tokens to repatriate.\\n */\\n function repatriate(uint256 amount) external onlyFund whenNotPaused {\\n // Ensure the fund wallet has enough funds to repatriate\\n require(amount <= underlying().balanceOf(fund), \\\"L58\\\");\\n\\n // Calculate new contract usable balance\\n uint256 newBalance = usableUnderlyings + amount;\\n\\n // Ensure the new balance doesn't exceed the retention rate\\n require(newBalance <= getExpectedRetained(), \\\"L59\\\");\\n\\n // Increase usable underlyings amount by repatriated amount\\n usableUnderlyings += amount;\\n\\n // Transfer amount from fund wallet to contract\\n underlying().safeTransferFrom(_msgSender(), address(this), amount);\\n }\\n\\n /// @notice Used by owner to claim fees generated from successful withdrawals.\\n function claimFees() external onlyOwner {\\n // Ensure there are some fees to claim\\n require(unclaimedFees > 0, \\\"L60\\\");\\n\\n // Ensure the contract holds enough underlying tokens to cover fees\\n require(usableUnderlyings >= unclaimedFees, \\\"L61\\\");\\n\\n // Decrease usable underlyings amount accordingly\\n usableUnderlyings -= unclaimedFees;\\n\\n // Store fees amount in memory and reset unclaimed fees amount\\n uint256 fees = unclaimedFees;\\n unclaimedFees = 0;\\n\\n // Transfer unclaimed fees to owner\\n underlying().safeTransfer(owner(), fees);\\n }\\n}\\n\",\"keccak256\":\"0x57f3b86852c72b7c6e5e57c87ae52c7532cfa0879d2985ffc249f46ff18d48e6\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalPausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalPause} from \\\"../GlobalPause.sol\\\";\\n\\n/**\\n * @title GlobalPausableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit a pause state from the specified GlobalPause\\n * contract (see GlobalPause.sol). This design facilitates centralized management of\\n * pause state for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure\\n * The _globalPause state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalPausableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalPausableUpgradeable is Initializable, PausableUpgradeable {\\n /**\\n * @notice The GlobalPause contract the pause state will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalPause private _globalPause;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalPause_ The address of the GlobalPause contract.\\n */\\n function __GlobalPausable_init(address globalPause_) internal onlyInitializing {\\n __Pausable_init();\\n __GlobalPausable_init_unchained(globalPause_);\\n }\\n\\n function __GlobalPausable_init_unchained(address globalPause_) internal onlyInitializing {\\n _globalPause = GlobalPause(globalPause_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalPause contract.\\n * @return The address of the GlobalPause contract.\\n */\\n function globalPause() public view returns (address) {\\n return address(_globalPause);\\n }\\n\\n /**\\n * @notice Override of PausableUpgradeable.pause() that retrieves the pause state\\n * from the GlobalPause contract instead.\\n * @return Whether the contract is paused or not.\\n */\\n function paused() public view virtual override returns (bool) {\\n return _globalPause.paused();\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xff508c0b8c48916885453b4894d0401e94580fb24fb6af1885a3e160864cde94\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalRestrictableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalBlacklist} from \\\"../GlobalBlacklist.sol\\\";\\n\\n/**\\n * @title GlobalRestrictableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit a blacklist state from the specified\\n * GlobalBlacklist contract (see GlobalBlacklist.sol). This design facilitates\\n * centralized management of a blacklist for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalBlacklist state must be set at initialization time and, for evident\\n * security reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalRestrictableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalRestrictableUpgradeable is Initializable {\\n /**\\n * @notice The GlobalBlacklist contract the blacklist state will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalBlacklist private _globalBlacklist;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n */\\n function __GlobalRestrictable_init(address globalBlacklist_) internal onlyInitializing {\\n __GlobalRestrictable_init_unchained(globalBlacklist_);\\n }\\n\\n function __GlobalRestrictable_init_unchained(\\n address globalBlacklist_\\n ) internal onlyInitializing {\\n _globalBlacklist = GlobalBlacklist(globalBlacklist_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalBlacklist contract.\\n * @return The address of the GlobalBlacklist contract.\\n */\\n function globalBlacklist() public view returns (address) {\\n return address(_globalBlacklist);\\n }\\n\\n /**\\n * @notice Reverts if the given account is blacklisted by the GlobalBlacklist contract.\\n * @param account Address to verify.\\n */\\n modifier notBlacklisted(address account) {\\n require(isBlacklisted(account) == false, \\\"L9\\\");\\n _;\\n }\\n\\n /**\\n * @notice Checks if the given account is blacklisted by the GlobalBlacklist contract.\\n * @param account Address to verify.\\n * @return Whether the account is blacklisted.\\n */\\n function isBlacklisted(address account) internal view returns (bool) {\\n return _globalBlacklist.isBlacklisted(account);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x0032fde90d9cf23e70dd4b604ae0d1ed3283f117bc24f68d32f8933e1bd372bc\",\"license\":\"MIT\"},\"contracts/src/abstracts/InvestUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Contracts\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./GlobalOwnableUpgradeable.sol\\\";\\nimport {GlobalPausableUpgradeable} from \\\"./GlobalPausableUpgradeable.sol\\\";\\nimport {GlobalRestrictableUpgradeable} from \\\"./GlobalRestrictableUpgradeable.sol\\\";\\nimport \\\"./base/BaseUpgradeable.sol\\\";\\nimport {RecoverableUpgradeable} from \\\"../abstracts/RecoverableUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\nimport {APRHistory as APRH} from \\\"../libs/APRHistory.sol\\\";\\nimport {SUD} from \\\"../libs/SUD.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\nimport {IERC20MetadataUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\\\";\\n\\n/**\\n * @title InvestUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts are provided with utilities to manage an invested token,\\n * users' investment periods, rewards calculations, virtual balances, and auto-compounding.\\n *\\n * @dev Intuition:\\n * This contract primarily exists for code splitting and reusability. It unburdens the\\n * LToken contract code, making it easier to understand and maintain.\\n *\\n * This contract is generic because it may be used in the LDYStaking contract in the future.\\n *\\n * @dev Definitions:\\n * - Investment: The act of depositing or investing tokens into the contract.\\n * - Investment period: Time between the last invested amount change and the present.\\n * - Virtual balance: Temporary storage for account rewards, used when those can't be\\n * distributed between investment periods.\\n * - Rewards redirection: Mechanism allowing an account to redirect its rewards to another.\\n *\\n * @dev Derived contract must:\\n * - Set invested token during initialization\\n * - Implement _investmentOf() function\\n * - (optionally) Implement _distributeRewards() function\\n *\\n * @dev For further details, see \\\"InvestmentUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract InvestUpgradeable is BaseUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n using APRH for APRH.Pack[];\\n\\n /**\\n * @notice Represents an account's investment period.\\n * @param timestamp The timestamp of the most recent rewards distribution.\\n * @param ref The reference of the last APR checkpoint at that timestamp.\\n */\\n struct InvestmentPeriod {\\n uint40 timestamp; // Supports dates up to 20/02/36812\\n APRH.Reference ref;\\n }\\n\\n /**\\n * @notice Represents the investment details of an account.\\n * @param period The current investment period of the account.\\n * @param virtualBalance May hold a part of account rewards until they are claimed.\\n */\\n struct AccountDetails {\\n InvestmentPeriod period;\\n uint256 virtualBalance;\\n }\\n\\n /// @notice Holds a reference to the invested token's contract.\\n IERC20Upgradeable private _invested;\\n\\n /// @notice Holds investment details of each account.\\n mapping(address => AccountDetails) internal accountsDetails;\\n\\n /// @notice Holds an history of the APR value over time (see APRHistory.sol).\\n APRH.Pack[] private _aprHistory;\\n\\n /// @notice Holds active rewards redirections in both from->to and to->from[] ways.\\n mapping(address => address) public rewardsRedirectsFromTo;\\n mapping(address => address[]) public rewardsRedirectsToFrom;\\n\\n /// @notice Is used to prevent infinite loop in _beforeInvestmentChange().\\n bool private _isClaiming;\\n\\n /**\\n * @notice Emitted to inform listeners about a change in the APR's value.\\n * @param newAPRUD7x3 The new APR in UD7x3 format.\\n */\\n event APRChangeEvent(uint16 newAPRUD7x3);\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param invested_ The address of the invested token contract.\\n */\\n function __Invest_init(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n address invested_\\n ) internal onlyInitializing {\\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\\n __Invest_init_unchained(invested_);\\n }\\n\\n function __Invest_init_unchained(address invested_) internal onlyInitializing {\\n // Set invested token\\n _invested = IERC20Upgradeable(invested_);\\n\\n // Define initial APR to 0%. This would prevent getAPR() from reverting because\\n // of an empty APR history\\n _aprHistory.setAPR(0);\\n }\\n\\n /**\\n * @notice Retrieves the reference to the invested token contract.\\n * @return The reference to the invested token contract.\\n */\\n function invested() public view returns (IERC20Upgradeable) {\\n return _invested;\\n }\\n\\n /**\\n * @notice Updates the investment APR. Restricted to owner.\\n * @param aprUD7x3 The new APR in UD7x3 format.\\n */\\n function setAPR(uint16 aprUD7x3) public onlyOwner {\\n _aprHistory.setAPR(aprUD7x3);\\n emit APRChangeEvent(aprUD7x3);\\n }\\n\\n /**\\n * @notice Retrieves the most recently set APR.\\n * @return The current APR in UD7x3 format.\\n */\\n function getAPR() public view returns (uint16) {\\n return _aprHistory.getAPR();\\n }\\n\\n /**\\n * @notice Enables redirection of rewards from one account to another.\\n * @param from The address of the account to redirect rewards from.\\n * @param to The address of the account to redirect rewards to.\\n */\\n function startRewardsRedirection(\\n address from,\\n address to\\n ) public whenNotPaused notBlacklisted(from) notBlacklisted(to) {\\n // Ensure the address is not already redirecting rewards\\n require(rewardsRedirectsFromTo[from] == address(0), \\\"L62\\\");\\n\\n // Ensure neither 'from' nor 'to' are the zero address\\n require(from != address(0), \\\"L12\\\");\\n require(to != address(0), \\\"L13\\\");\\n\\n // Ensure 'from' and 'to' addresses are distinct\\n require(from != to, \\\"L14\\\");\\n\\n // Ensure function caller is either the owner or the 'from' address\\n require(_msgSender() == owner() || _msgSender() == from, \\\"L15\\\");\\n\\n // Distribute current rewards and reset investment periods of both accounts\\n _beforeInvestmentChange(from, true);\\n _beforeInvestmentChange(to, true);\\n\\n // Activate rewards redirection\\n rewardsRedirectsFromTo[from] = to;\\n rewardsRedirectsToFrom[to].push(from);\\n }\\n\\n /**\\n * @notice Disable an active rewards redirection.\\n * @param from The address of the account to stop redirecting rewards from.\\n * @param to The address of the account to stop redirecting rewards to.\\n */\\n function stopRewardsRedirection(\\n address from,\\n address to\\n ) public whenNotPaused notBlacklisted(from) notBlacklisted(to) {\\n // Ensure neither 'from' nor 'to' are the zero address\\n require(from != address(0), \\\"L16\\\");\\n require(to != address(0), \\\"L17\\\");\\n\\n // Ensure function caller is either the owner or the 'from' address\\n require(_msgSender() == owner() || _msgSender() == from, \\\"L18\\\");\\n\\n // Ensure a rewards redirection was active\\n require(rewardsRedirectsFromTo[from] == to, \\\"L19\\\");\\n\\n // Distribute current rewards and reset investment periods of both accounts\\n _beforeInvestmentChange(from, true);\\n _beforeInvestmentChange(to, true);\\n\\n // Retrieve 'from' index in the redirection array of 'to'\\n int256 fromIndex = -1;\\n for (uint256 i = 0; i < rewardsRedirectsToFrom[to].length; i++) {\\n if (rewardsRedirectsToFrom[to][i] == from) {\\n fromIndex = int256(i);\\n break;\\n }\\n }\\n\\n // fromIndex should never be -1 at this point\\n assert(fromIndex >= 0);\\n\\n // Deactivate rewards redirection\\n rewardsRedirectsFromTo[from] = address(0);\\n rewardsRedirectsToFrom[to][uint256(fromIndex)] = rewardsRedirectsToFrom[to][\\n rewardsRedirectsToFrom[to].length - 1\\n ];\\n rewardsRedirectsToFrom[to].pop();\\n }\\n\\n /**\\n * @notice Retrieves the total amount of tokens invested by the given account.\\n * @dev Derived contracts must implement this function.\\n * @param account The account to get the investment of.\\n * @return The total amount of tokens invested by the given account.\\n */\\n function _investmentOf(address account) internal view virtual returns (uint256);\\n\\n /**\\n * @notice Distributes a specified amount of rewards to a given account.\\n * @dev Derived contracts may optionally implement this function.\\n * @dev Implementations must return true to indicate a successful distribution, and\\n * false otherwise. If it returns false, the rewards will be added to the account's\\n * virtual balance, in order to be claimed later.\\n * @param account The account to claim the rewards of.\\n * @param amount The amount of rewards to claim.\\n * @return Whether the rewards distribution was successfull.\\n */\\n function _distributeRewards(address account, uint256 amount) internal virtual returns (bool) {\\n account; // Silence unused variables warning\\n amount;\\n return false;\\n }\\n\\n /**\\n * @notice Computes the rewards accrued over a specified period of time, based on a\\n * given APR and amount of invested tokens.\\n * @dev For further details, see \\\"InvestUpgradeable > Rewards calculation\\\" section of\\n * the whitepaper.\\n * @param beginTimestamp The moment the period commenced.\\n * @param endTimestamp The moment the period concluded.\\n * @param aprUD7x3 The APR during this period, in UD7x3 format.\\n * @param investedAmount The amount of tokens deposited/invested during the period.\\n * @return The amount of rewards generated during the period.\\n */\\n function _calculatePeriodRewards(\\n uint40 beginTimestamp,\\n uint40 endTimestamp,\\n uint16 aprUD7x3,\\n uint256 investedAmount\\n ) internal view returns (uint256) {\\n // Cache invested token's decimals number\\n uint256 d = SUD.decimalsOf(address(invested()));\\n\\n // Compute the number of elapsed years\\n uint256 elapsedTimeSUD = SUD.fromInt(endTimestamp - beginTimestamp, d);\\n uint256 elapsedYearsSUD = (elapsedTimeSUD * SUD.fromInt(1, d)) / SUD.fromInt(365 days, d);\\n\\n // Compute the growth in invested amount (thanks to rewards)\\n uint256 aprSUD = SUD.fromRate(aprUD7x3, d);\\n uint256 growthSUD = (elapsedYearsSUD * aprSUD) / SUD.fromInt(1, d);\\n\\n // Compute and return the rewards\\n uint256 investedAmountSUD = SUD.fromAmount(investedAmount, d);\\n uint256 rewardsSUD = (investedAmountSUD * growthSUD) / SUD.fromInt(100, d);\\n return SUD.toAmount(rewardsSUD, d);\\n }\\n\\n /**\\n * @notice Computes the sum of given account's invested amount, plus invested amount\\n * of all accounts that recursively redirect rewards to this account.\\n * @param account The account to calculate the deep investment of.\\n * @return deepInvestedAmount The deep invested amount.\\n */\\n function _deepInvestmentOf(address account) internal view returns (uint256 deepInvestedAmount) {\\n // Consider account's direct investment\\n deepInvestedAmount += _investmentOf(account);\\n\\n // But also the deep investments of all accounts redirecting rewards to this account\\n for (uint256 i = 0; i < rewardsRedirectsToFrom[account].length; i++) {\\n deepInvestedAmount += _deepInvestmentOf(rewardsRedirectsToFrom[account][i]);\\n }\\n }\\n\\n /**\\n * @notice Computes the amount of unclaimed/undistributed rewards of a given account.\\n * @dev For further details, see \\\"InvestUpgradeable > Rewards calculation\\\" section of\\n * the whitepaper.\\n * @param account The account to calculate the unclaimed rewards of.\\n * @param autocompound Whether to autocompound the rewards between APR checkpoints.\\n * @return rewards The amount of unclaimed/undistributed rewards of the given account.\\n */\\n function _rewardsOf(\\n address account,\\n bool autocompound\\n ) internal view returns (uint256 rewards) {\\n // Retrieve account's investment details\\n AccountDetails memory details = accountsDetails[account];\\n\\n // Retrieve account's deep invested amount\\n uint256 investedAmount = _deepInvestmentOf(account);\\n\\n // Return 0 if the account has never invested or has no invested amount\\n if (details.period.timestamp == 0 || investedAmount == 0) return 0;\\n\\n // Retrieve reference and data of APR checkpoint at which started investment period\\n APRH.Reference memory currRef = details.period.ref;\\n APRH.CheckpointData memory currCheckpoint = _aprHistory.getDataFromReference(currRef);\\n\\n // Retrieve reference of latest APR checkpoint\\n APRH.Reference memory latestRef = _aprHistory.getLatestReference();\\n\\n // 1) Fill rewards with virtual balance (rewards not claimed/distributed yet)\\n // See \\\"InvestUpgradeable > Yield calculation > 1)\\\" section of the whitepaper\\n rewards = details.virtualBalance;\\n\\n // If start checkpoint is not the latest one\\n if (!APRH.eq(currRef, latestRef)) {\\n // Retrieve reference and data of APR checkpoint that comes after start checkpoint\\n APRH.Reference memory nextRef = APRH.incrementReference(currRef);\\n APRH.CheckpointData memory nextCheckpoint = _aprHistory.getDataFromReference(nextRef);\\n\\n // 2) Calculate rewards from investment period start to next checkpoint\\n // See \\\"InvestUpgradeable > Yield calculation > 2)\\\" section of the whitepaper\\n rewards += _calculatePeriodRewards(\\n details.period.timestamp,\\n nextCheckpoint.timestamp,\\n currCheckpoint.aprUD7x3,\\n investedAmount + (autocompound ? rewards : 0)\\n );\\n\\n // 3) Calculate rewards for each crossed pair of checkpoints\\n // See \\\"InvestUpgradeable > Yield calculation > 3)\\\" section of the whitepaper\\n while (true) {\\n // Set next checkpoint as the current one\\n currRef = nextRef;\\n currCheckpoint = nextCheckpoint;\\n\\n // Break if current checkpoint is the latest one\\n if (APRH.eq(currRef, latestRef)) break;\\n\\n // Else, retrieve the new next checkpoint\\n nextRef = APRH.incrementReference(currRef);\\n nextCheckpoint = _aprHistory.getDataFromReference(nextRef);\\n\\n // Calculate rewards between the current pair of checkpoints\\n rewards += _calculatePeriodRewards(\\n currCheckpoint.timestamp,\\n nextCheckpoint.timestamp,\\n currCheckpoint.aprUD7x3,\\n investedAmount + (autocompound ? rewards : 0)\\n );\\n }\\n\\n // 4) Calculate rewards from the latest checkpoint to now\\n // See \\\"InvestUpgradeable > Yield calculation > 4)\\\" section of the whitepaper\\n rewards += _calculatePeriodRewards(\\n currCheckpoint.timestamp,\\n uint40(block.timestamp),\\n currCheckpoint.aprUD7x3,\\n investedAmount + (autocompound ? rewards : 0)\\n );\\n } else {\\n // 2.bis) Calculate rewards from investment period start to now\\n // See \\\"InvestUpgradeable > Yield calculation > 2.bis)\\\" section of the whitepaper\\n rewards += _calculatePeriodRewards(\\n details.period.timestamp,\\n uint40(block.timestamp),\\n currCheckpoint.aprUD7x3,\\n investedAmount + (autocompound ? rewards : 0)\\n );\\n }\\n }\\n\\n /**\\n * @notice Recursively resets the investment period of the specified account and of\\n * all accounts that directly or indirectly redirect rewards to this account.\\n * @param account The account to deeply reset the investment period of.\\n */\\n function _deepResetInvestmentPeriodOf(address account) internal {\\n // Reset account investment period timestamp and APR checkpoint to latest ones\\n accountsDetails[account].period.timestamp = uint40(block.timestamp);\\n accountsDetails[account].period.ref = _aprHistory.getLatestReference();\\n\\n // Also reset the ones of all accounts that recursively redirect rewards to this account\\n for (uint256 i = 0; i < rewardsRedirectsToFrom[account].length; i++) {\\n _deepResetInvestmentPeriodOf(rewardsRedirectsToFrom[account][i]);\\n }\\n }\\n\\n /**\\n * @notice Hook to be invoked before the invested amount of an account changes. It\\n * ensures that rewards are distributed and that account's investment period is reset.\\n * @param account The account whose invested amount is going to change.\\n * @param autocompound Whether to autocompound the rewards between APR checkpoints.\\n */\\n function _beforeInvestmentChange(address account, bool autocompound) internal {\\n // This hook is called inside LToken._beforeTokenTransfer() and as new tokens are\\n // minted in LToken._distributeRewards(), this guards against infinite loop.\\n if (_isClaiming) return;\\n\\n // LToken._beforeTokenTransfer() calls this hook for both involved addresses.\\n // As first call will treat both addresses, the second call would be redundant.\\n // Therefore, we skip accounts already processed in this block to save up some gas.\\n if (accountsDetails[account].period.timestamp == uint40(block.timestamp)) return;\\n\\n // If account redirects its rewards\\n address redirectRewardsTo = rewardsRedirectsFromTo[account];\\n if (redirectRewardsTo != address(0)) {\\n // Call hook on redirection target (this will indirectly reset the investment\\n // of this source account) and return\\n _beforeInvestmentChange(redirectRewardsTo, autocompound);\\n return;\\n }\\n\\n // Else, compute account's undistributed/unclaimed rewards\\n uint256 rewards = _rewardsOf(account, autocompound);\\n\\n // If there are some rewards\\n if (rewards > 0) {\\n // Try to distribute rewards to account\\n _isClaiming = true;\\n bool distributed = _distributeRewards(account, rewards);\\n _isClaiming = false;\\n\\n // If rewards have not been distributed, accumulate them in account's virtual balance\\n if (!distributed) accountsDetails[account].virtualBalance = rewards;\\n }\\n\\n // Finally, deeply reset investment period of the account\\n _deepResetInvestmentPeriodOf(account);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xdb6d0b0e2f2546b6be0ac9244e99017c5e5da1e5b7783d6fff50f4217b9ec820\",\"license\":\"MIT\"},\"contracts/src/abstracts/RecoverableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Conracts\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./GlobalOwnableUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title RecoverableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts are provided with helper functions allowing the recovery of\\n * assets accidentally sent to them.\\n *\\n * @dev Where are utilities Ether, ERC721, etc.?\\n * This abstract contract currently supports only ERC20 tokens. Derived contracts\\n * in this codebase currently do not implement the necessary functions to receive Ether\\n * or ERC721/ERC1155 tokens, so no recovery functions are provided for these assets.\\n *\\n * @dev For further details, see \\\"RecoverableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract RecoverableUpgradeable is Initializable, GlobalOwnableUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __Recoverable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init(globalOwner_);\\n __Recoverable_init_unchained();\\n }\\n\\n function __Recoverable_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Recovers a specified amount of a given token address. Will fail if the\\n * contract doesn't hold enough tokens.\\n * @param tokenAddress The address of the token to recover.\\n * @param amount The amount of token to recover.\\n */\\n function recoverERC20(address tokenAddress, uint256 amount) public virtual onlyOwner {\\n // Ensure the specified amount is not zero\\n require(amount > 0, \\\"L10\\\");\\n\\n // Create a reference to token's contract\\n IERC20Upgradeable tokenContract = IERC20Upgradeable(tokenAddress);\\n\\n // Ensure there is enough token to recover\\n require(tokenContract.balanceOf(address(this)) >= amount, \\\"L11\\\");\\n\\n // Transfer the recovered token amount to the sender\\n tokenContract.safeTransfer(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xc70110d1284c9e4aa7c518b3b98682dd9edbe6f6fb23761d825554ba41a80d5e\",\"license\":\"MIT\"},\"contracts/src/abstracts/base/BaseUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalPausableUpgradeable} from \\\"../GlobalPausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"../GlobalOwnableUpgradeable.sol\\\";\\nimport {GlobalRestrictableUpgradeable} from \\\"../GlobalRestrictableUpgradeable.sol\\\";\\nimport {RecoverableUpgradeable} from \\\"../RecoverableUpgradeable.sol\\\";\\n\\n/**\\n * @title BaseUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This abstract contract acts as a base for numerous contracts in this codebase,\\n * minimizing code repetition and enhancing readability and maintainability.\\n *\\n * @dev For further details, see \\\"Base\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract BaseUpgradeable is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n GlobalPausableUpgradeable,\\n GlobalRestrictableUpgradeable,\\n RecoverableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n */\\n function __Base_init(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_\\n ) internal onlyInitializing {\\n __UUPSUpgradeable_init();\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __GlobalPausable_init_unchained(globalPause_);\\n __GlobalRestrictable_init_unchained(globalBlacklist_);\\n __Recoverable_init_unchained();\\n }\\n\\n function __Base_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xe445c759682f31d39e63663ff8217072c0e81086bda11ea473247be334c3e424\",\"license\":\"MIT\"},\"contracts/src/abstracts/base/ERC20BaseUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {ERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\\\";\\nimport {ERC20PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport \\\"./BaseUpgradeable.sol\\\";\\nimport {GlobalPausableUpgradeable} from \\\"../GlobalPausableUpgradeable.sol\\\";\\n\\n/**\\n * @title ERC20BaseUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This abstract contract is an extension of BaseUpgradeable intended to be used\\n * as a base for ERC20 tokens contracts.\\n *\\n * @dev For further details, see \\\"ERC20BaseUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract ERC20BaseUpgradeable is\\n ERC20Upgradeable,\\n BaseUpgradeable,\\n ERC20PausableUpgradeable\\n{\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param name_ The display name of the token.\\n * @param symbol_ The symbol of the token.\\n */\\n function __ERC20Base_init(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n string memory name_,\\n string memory symbol_\\n ) internal onlyInitializing {\\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\\n __ERC20_init(name_, symbol_);\\n __ERC20Pausable_init_unchained();\\n }\\n\\n function __ERC20Base_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Required override of paused() which is implemented by both\\n * GlobalPausableUpgradeable and PausableUpgradeable parent contracts.\\n * The GlobalPausableUpgradeable version is preferred because it checks the pause\\n * state from the GlobalPause contract.\\n * @inheritdoc GlobalPausableUpgradeable\\n */\\n function paused()\\n public\\n view\\n virtual\\n override(GlobalPausableUpgradeable, PausableUpgradeable)\\n returns (bool)\\n {\\n return GlobalPausableUpgradeable.paused();\\n }\\n\\n /**\\n * @dev Required override of _beforeTokenTransfer() which is implemented by both\\n * ERC20PausableUpgradeable and ERC20Upgradeable parent contracts.\\n * The ERC20PausableUpgradeable version is preferred because it also checks that\\n * the contract is not paused before allowing the transfer.\\n * @inheritdoc ERC20PausableUpgradeable\\n */\\n function _beforeTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n )\\n internal\\n virtual\\n override(ERC20PausableUpgradeable, ERC20Upgradeable)\\n whenNotPaused\\n notBlacklisted(from)\\n notBlacklisted(to)\\n {\\n ERC20PausableUpgradeable._beforeTokenTransfer(from, to, amount);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xa69b9acca2902fcfe513889516fcffc830903fc3c6a3a11e2ad8da7460201378\",\"license\":\"MIT\"},\"contracts/src/interfaces/ITransfersListener.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\ninterface ITransfersListener {\\n function onLTokenTransfer(address from, address to, uint256 amount) external;\\n}\\n\",\"keccak256\":\"0xf1d4172da97ccaf7199601dd9bdb2ac92a49b6977ec34bba010af37f662549fb\",\"license\":\"MIT\"},\"contracts/src/libs/APRHistory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n/**\\n * @title APRHistory\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This library offers utilities to efficiently maintain the history of an\\n * on-chain APR (Annual Percentage Rate) state. Each entry in this history is called\\n * a \\\"checkpoint\\\".\\n *\\n * @dev Intuition:\\n * Each checkpoint in an APR history consists of two data:\\n * - the creation timestamp\\n * - the APR at that time\\n *\\n * Given that reading and writing to storage slots are among the most costly operations\\n * in Solidity, this library provides a way to store those data in a way that minimizes\\n * the number of used storage slots.\\n *\\n * Instead of storing each checkpoint in a separate storage slot, this library\\n * facilitates the packing of up to 4 checkpoints in a single storage slot.\\n *\\n * @dev Definitions:\\n * - Checkpoint: A record of an APR change\\n * - Pack: A collection of 4 checkpoints stored in a single storage slot\\n * - History: A dynamic array of packs\\n * - Reference: A storage pointer to a checkpoint in the APR history\\n * - CheckpointData: An in-memory representation of a checkpoint data\\n *\\n * @dev Value limitation:\\n * This library can accommodate APRs only up to 65.536%. This is however sufficient for\\n * APR in LToken contract, which is expected to remain below 10%.\\n *\\n * @dev For further details, see \\\"APRHistory\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nlibrary APRHistory {\\n /**\\n * @notice Represents data of a checkpoint extracted from the on-chain history.\\n * For on-chain representation see \\\"Pack\\\" struct.\\n * @param aprUD7x3 APR in UD7x3 format (e.g., 12345 = 12.345%).\\n * @param timestamp Timestamp of the checkpoint's creation.\\n */\\n struct CheckpointData {\\n uint16 aprUD7x3; // Allows up to 65.536%\\n uint40 timestamp; // Supports dates up to 20/02/36812\\n }\\n\\n /**\\n * @notice Represents how APR checkpoints are stored on chain. Each pack can contain\\n * the data 4 checkpoints. Packs are then stored in a dynamic array (the history).\\n * @param aprsUD7x3 Array of checkpoints' APRs.\\n * @param timestamps Array of checkpoints' timestamps.\\n * @param cursor Index of the next checkpoint to be written.\\n */\\n struct Pack {\\n uint16[4] aprsUD7x3;\\n uint40[4] timestamps;\\n uint32 cursor;\\n }\\n\\n /**\\n * @notice Represents a storage pointer to a specific checkpoint in the history.\\n * @param packIndex Index of the pack the checkpoint belongs to.\\n * @param cursorIndex Index of the checkpoint in this pack (between 0 and 3).\\n */\\n struct Reference {\\n uint256 packIndex;\\n uint32 cursorIndex;\\n }\\n\\n /**\\n * @notice Compares two checkpoints references.\\n * @param ref1 The first reference to compare.\\n * @param ref2 The second reference to compare.\\n * @return Whether the two references points to the same checkpoint.\\n */\\n function eq(Reference memory ref1, Reference memory ref2) external pure returns (bool) {\\n return ref1.packIndex == ref2.packIndex && ref1.cursorIndex == ref2.cursorIndex;\\n }\\n\\n /**\\n * @notice Returns the reference of the checkpoint that should come right after the\\n * referenced checkpoint in the APR history.\\n * @param ref The reference to be incremented.\\n * @return The incremented reference.\\n */\\n function incrementReference(Reference memory ref) public pure returns (Reference memory) {\\n // Ensure cursor index of the given ref is within valid range [0, 3]\\n require(ref.cursorIndex <= 3, \\\"L1\\\");\\n\\n // If the given ref is the last slot in its pack, return ref of next pack's first slot\\n if (ref.cursorIndex == 3) return Reference(ref.packIndex + 1, 0);\\n //\\n // Else, return ref of next slot in current pack\\n else return Reference(ref.packIndex, ref.cursorIndex + 1);\\n }\\n\\n /**\\n * @notice Extracts checkpoint data from a given reference and in APR history.\\n * @param self The APR history to extract the checkpoint from.\\n * @param ref The reference of the checkpoint data to extract.\\n * @return The extracted checkpoint's data.\\n */\\n function getDataFromReference(\\n Pack[] storage self,\\n Reference memory ref\\n ) public view returns (CheckpointData memory) {\\n // Ensure cursor index of the given ref is within valid range [0, 3]\\n require(ref.cursorIndex <= 3, \\\"L2\\\");\\n\\n // Ensure pack index of the given ref exists in history\\n require(ref.packIndex < self.length, \\\"L3\\\");\\n\\n // Retrieve pack data from history\\n Pack memory pack = self[ref.packIndex];\\n\\n // Ensure cursor index of the given ref has been written\\n require(ref.cursorIndex < pack.cursor, \\\"L4\\\");\\n\\n // Build and return the checkpoint data\\n return\\n CheckpointData({\\n aprUD7x3: pack.aprsUD7x3[ref.cursorIndex],\\n timestamp: pack.timestamps[ref.cursorIndex]\\n });\\n }\\n\\n /**\\n * @notice Retrieves the reference to the most recently added checkpoint in the APR history.\\n * @param self The history to extract the reference from.\\n * @return The reference of the latest checkpoint.\\n */\\n function getLatestReference(Pack[] storage self) public view returns (Reference memory) {\\n // Ensure the given history is not empty\\n require(self.length != 0, \\\"L5\\\");\\n\\n // Retrieve latest pack's index and cursor\\n uint256 packIndex = self.length - 1;\\n uint32 packCursor = self[packIndex].cursor;\\n\\n // If this is the first pack ever, ensure it is not empty\\n if (packIndex == 0) require(packCursor != 0, \\\"L6\\\");\\n\\n // If the pack is empty, return ref of previous pack's latest slot\\n if (packCursor == 0) return Reference(packIndex - 1, 3);\\n //\\n // Else, return ref of previous slot in current pack\\n else return Reference(packIndex, packCursor - 1);\\n }\\n\\n /**\\n * @notice Appends a new empty pack to the end of the given APR history array.\\n * @param self The APR history to append an empty to.\\n */\\n function newBlankPack(Pack[] storage self) internal {\\n // If history is not empty, ensure the latest pack is full\\n require(self.length == 0 || getLatestReference(self).cursorIndex == 3, \\\"L7\\\");\\n\\n // Push a new blank pack to the history array\\n self.push(\\n Pack({\\n aprsUD7x3: [uint16(0), uint16(0), uint16(0), uint16(0)],\\n timestamps: [uint40(0), uint40(0), uint40(0), uint40(0)],\\n cursor: 0\\n })\\n );\\n }\\n\\n /**\\n * @notice Write a new APR checkpoint at the end of the given history array.\\n * @param self The array of packs to write the new checkpoint to.\\n * @param aprUD7x3 The new APR in UD7x3 format.\\n */\\n function setAPR(Pack[] storage self, uint16 aprUD7x3) external {\\n // Determine the reference where the new checkpoint should be written\\n Reference memory newRef = self.length == 0\\n ? Reference(0, 0)\\n : incrementReference(getLatestReference(self));\\n\\n // If pack to be written doesn't exist yet, push a new blank pack in history\\n if (newRef.packIndex >= self.length) newBlankPack(self);\\n\\n // Retrieve the pack where the new checkpoint will be stored\\n Pack memory pack = self[newRef.packIndex];\\n\\n // Add new checkpoint's data to the pack\\n pack.aprsUD7x3[newRef.cursorIndex] = aprUD7x3;\\n pack.timestamps[newRef.cursorIndex] = uint40(block.timestamp);\\n\\n // Increment the pack's cursor\\n pack.cursor++;\\n\\n // Write the updated pack in storage\\n self[newRef.packIndex] = pack;\\n }\\n\\n /**\\n * @notice Retrieves the APR of the latest checkpoint written in the APR history.\\n * @param self The history array to read APR from.\\n * @return The latest checkpoint's APR.\\n */\\n function getAPR(Pack[] storage self) public view returns (uint16) {\\n // Retrieve the latest checkpoint data\\n Reference memory ref = getLatestReference(self);\\n CheckpointData memory data = getDataFromReference(self, ref);\\n\\n // Return the latest checkpoint's APR\\n return data.aprUD7x3;\\n }\\n}\\n\",\"keccak256\":\"0x0b3d02a33c5e5be03cefc5192439def2efa43be664c372e83f309be34fd476b7\",\"license\":\"MIT\"},\"contracts/src/libs/SUD.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {IERC20MetadataUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\\\";\\n\\n/**\\n * @title SUD\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice SUD serves as an intermediary number format for calculations within this\\n * codebase. It ensures consistency and reduces precision losses. This library\\n * facilitates conversions between various number formats and the SUD format.\\n *\\n * @dev Intuition:\\n * This codebase employs the UD (unsigned decimal fixed-point numbers) format to\\n * represent both percentage rates and tokens amounts.\\n *\\n * Rates are expressed in UD7x3 format, whereas the format for tokens amounts depends on\\n * the decimals() value of the involved tokens.\\n *\\n * Three challenges arise from this:\\n * 1) To compute values together, it's essential that they are in the same format\\n * 2) Calculations involving consecutive divisions on UD numbers lead to accumulated\\n * precision loss (because division shrinks). A common approach is to scale up and\\n * down values by a few decimals before and after performing calculations.\\n * 3) Given that rates use the UD7x3 format, if we decided to scale them to and from\\n * the number of decimals of the involved token, 1 to 3 of the rates' decimals would\\n * be shrunk in case token's decimals number is in [0, 2].\\n *\\n * To address these challenges, this library provides the SUD format, which acts as a\\n * consistent and scaled intermediate format to perform calculations.\\n *\\n * SUD is an acronym for either \\\"Scaled UD\\\" or \\\"Safe UD\\\".\\n *\\n * @dev Definitions:\\n * - Integer: A number without fractional part, e.g., block.timestamp\\n * - UD: A decimal unsigned fixed-point number. The \\\"UD\\\" notation is inspired from\\n * libraries like [prb-math](https://github.com/PaulRBerg/prb-math/)\\n * - Amount: A token amount. A UD with an unknown repartition of digits between integral\\n * and fractional parts (as token amounts have variable decimal numbers)\\n * - Rate: A percentage rate. An UD with 7 integral digits and 3 fractional ones (= UD7x3)\\n * - SUD: An intermediate format to perform calculations involving Rates and Amounts. A UD\\n * with 3 more decimals than the involved UD with the highest decimals number. As\\n * rates are represented by UD7x3, a SUD number has at least 6 decimals (3+3) and\\n * so ranges from UD71x6 to UD0x77 formats.\\n *\\n * @dev A conversion library:\\n * This library provides utilities to perform the following conversions:\\n * - Amount <--> SUD\\n * - Rate (UD7x3) <--> SUD\\n * - Integer <--> SUD\\n *\\n * @dev Why scaling by 3 decimals?\\n * - It provides an adequate degree of precision for this codebase,\\n * - It enables the conversion of a UD7x3 rate to SUD format by merely scaling it up by\\n * the involved token's decimal number, so is gas efficient.\\n *\\n * @dev Why internal functions?\\n * The functions of this library are not set to external because incorporating them\\n * directly into contracts is more gas-efficient. Given their minimal size and frequent\\n * usage in the InvestUpgradeable, LDYStaking, and LToken contracts, any bytecode savings\\n * from making them external are negated by the additional bytecode required for external\\n * calls to this library. This can be observed by comparing the output of `bun cc:size`\\n * when those functions's visibility is set to external or internal.\\n *\\n * @dev Precision warning:\\n * While this library mitigates precision loss during calculations on UD numbers, it's\\n * important to note that tokens with lower decimal counts and supply inherently suffer\\n * more from precision loss. Conversely, tokens with higher decimal counts and supply\\n * will experience less precision loss.\\n *\\n * @dev For further details, see \\\"SUD\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nlibrary SUD {\\n /**\\n * @notice Retrieves decimals number of the given ERC20 contract address.\\n * @param tokenAddress The address to retrieve decimals number from.\\n * @return decimals The decimals number of the given ERC20 contract address.\\n */\\n function decimalsOf(address tokenAddress) internal view returns (uint256 decimals) {\\n return IERC20MetadataUpgradeable(tokenAddress).decimals();\\n }\\n\\n /**\\n * @notice Convert a given token amount into SUD format.\\n * @param nAmount The token amount to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nSUD The amount in SUD format\\n */\\n function fromAmount(uint256 nAmount, uint256 decimals) internal pure returns (uint256 nSUD) {\\n // If token decimals < 3, return a UD71x6 number\\n if (decimals < 3) return nAmount * 10 ** (6 - decimals);\\n\\n // Else return a number with decimals+3 fractional digits\\n return nAmount * 10 ** 3;\\n }\\n\\n /**\\n * @notice Convert a given SUD number into token amount format.\\n * @param nSUD The SUD number to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nAmount The number in amount format\\n */\\n function toAmount(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nAmount) {\\n // If token decimals < 3, convert from a UD71x6 number\\n if (decimals < 3) return nSUD / 10 ** (6 - decimals);\\n\\n // Else, convert from a number with decimals+3 fractional digits\\n return nSUD / 10 ** 3;\\n }\\n\\n /**\\n * @notice Converts a given UD7x3 rate into SUD format.\\n * @param nUD7x3 The UD7x3 rate to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nSUD The rate in SUD format.\\n */\\n function fromRate(uint256 nUD7x3, uint256 decimals) internal pure returns (uint256 nSUD) {\\n // If token decimals < 3, return a UD71x6 number\\n if (decimals < 3) return nUD7x3 * 10 ** 3;\\n\\n // Else, return a number with decimals+3 fractional digits\\n return nUD7x3 * 10 ** decimals;\\n }\\n\\n /**\\n * @notice Converts a given SUD number into a UD7x3 rate.\\n * @param nSUD The SUD number to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nUD7x3 The number in UD7x3 rate format.\\n */\\n function toRate(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nUD7x3) {\\n // If token decimals < 3, convert from a UD71x6 number\\n if (decimals < 3) return nSUD / 10 ** 3;\\n\\n // Else, convert from a number with decimals+3 fractional digits\\n return nSUD / 10 ** decimals;\\n }\\n\\n /**\\n * @notice Converts a given integer into SUD format.\\n * @param n The integer to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nSUD The integer in SUD format.\\n */\\n function fromInt(uint256 n, uint256 decimals) internal pure returns (uint256 nSUD) {\\n // If token decimals < 3, return a UD71x6 number\\n if (decimals < 3) return n * 10 ** 6;\\n\\n // Else, return a number with decimals+3 fractional digits\\n return n * 10 ** (decimals + 3);\\n }\\n\\n /**\\n * @notice Converts a given SUD number as an integer (all decimals shrinked).\\n * @param nSUD The SUD number to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return n The SUD number as an integer.\\n */\\n function toInt(uint256 nSUD, uint256 decimals) internal pure returns (uint256 n) {\\n // If token decimals < 3, convert from a UD71x6 number\\n if (decimals < 3) return nSUD / 10 ** 6;\\n\\n // Else, convert from a number with decimals+3 fractional digits\\n return nSUD / 10 ** (decimals + 3);\\n }\\n}\\n\",\"keccak256\":\"0x7297fc67064b5925e26fa5ed3a4ba4b0f64a9162fdf0ebc2aac8649fddce543a\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e7565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000e5576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051615f916200011f60003960008181611462015281816114a2015281816118fd0152818161193d01526119d00152615f916000f3fe6080604052600436106103d95760003560e01c80638980f11f116101fd578063c822adda11610118578063dd62ed3e116100ab578063ef356a791161007a578063ef356a7914610b96578063f12d54d814610bab578063f2fde38b14610bca578063f762e73414610bea578063f94ce2c214610c0957600080fd5b8063dd62ed3e14610b11578063ee1335d114610b31578063ee153c4f14610b51578063ef2591af14610b7157600080fd5b8063d038875c116100e7578063d038875c14610a8d578063d039981b14610ac7578063d294f09314610ae7578063db84faac14610afc57600080fd5b8063c822adda14610a05578063c89d5b8b14610a25578063cafb220214610a4d578063cdc1842414610a6c57600080fd5b8063a457c2d711610190578063b2de2a431161015f578063b2de2a431461097a578063b60d42881461098f578063b6b55f25146109b0578063bacd609e146109d057600080fd5b8063a457c2d7146108fa578063a64c91cc1461091a578063a8f763201461093a578063a9059cbb1461095a57600080fd5b806395d89b41116101cc57806395d89b411461089257806399a03c70146108a75780639c271975146108c75780639ee679e8146108e757600080fd5b80638980f11f146108065780638d8e6bd7146108265780638da5cb5b1461085d57806392e5ced71461087257600080fd5b80634134bee9116102f85780636d3a4ac81161028b578063734d82871161025a578063734d8287146107795780637594d0b51461079057806375a5652b146107a75780637c2edb16146107c75780638370e1f7146107e657600080fd5b80636d3a4ac8146107055780636f307dc31461072557806370a0823114610744578063715018a61461076457600080fd5b806353ac4b66116102c757806353ac4b661461067257806353d3a42f146106895780635c975abb146106d05780635f0e8e37146106e557600080fd5b80634134bee91461060a57806345b05d091461062a5780634f1ef2861461064a57806352d1902d1461065d57600080fd5b806323b872dd116103705780633659cfe61161033f5780633659cfe614610571578063391d85ec1461059157806339509351146105ca5780633e7ae353146105ea57600080fd5b806323b872dd146104f55780632a1b8b1c146105155780632f4f21e21461052a578063313ce5671461054a57600080fd5b80631459457a116103ac5780631459457a1461047b57806318160ddd1461049b5780631c19be6d146104be578063205c2878146104d557600080fd5b806306fdde03146103de578063095ea7b3146104095780630d174c24146104395780630e21750f1461045b575b600080fd5b3480156103ea57600080fd5b506103f3610c29565b604051610400919061549e565b60405180910390f35b34801561041557600080fd5b506104296104243660046154e6565b610cbb565b6040519015158152602001610400565b34801561044557600080fd5b50610459610454366004615512565b610cd5565b005b34801561046757600080fd5b50610459610476366004615512565b610d41565b34801561048757600080fd5b5061045961049636600461552f565b610da8565b3480156104a757600080fd5b506104b061100c565b604051908152602001610400565b3480156104ca57600080fd5b506104b06102fe5481565b3480156104e157600080fd5b506104296104f03660046154e6565b611037565b34801561050157600080fd5b506104296105103660046155a0565b611068565b34801561052157600080fd5b5061045961108e565b34801561053657600080fd5b506104296105453660046154e6565b61141d565b34801561055657600080fd5b5061055f61144e565b60405160ff9091168152602001610400565b34801561057d57600080fd5b5061045961058c366004615512565b611458565b34801561059d57600080fd5b506102f9546105b2906001600160a01b031681565b6040516001600160a01b039091168152602001610400565b3480156105d657600080fd5b506104296105e53660046154e6565b611537565b3480156105f657600080fd5b506105b26106053660046154e6565b611559565b34801561061657600080fd5b506104596106253660046155e1565b611592565b34801561063657600080fd5b506104596106453660046155e1565b611786565b610459610658366004615692565b6118f3565b34801561066957600080fd5b506104b06119c3565b34801561067e57600080fd5b506104b06102fd5481565b34801561069557600080fd5b506106a96106a43660046155e1565b611a76565b604080516001600160a01b0390931683526001600160601b03909116602083015201610400565b3480156106dc57600080fd5b50610429611ab2565b3480156106f157600080fd5b50610459610700366004615512565b611abc565b34801561071157600080fd5b50610459610720366004615735565b611c13565b34801561073157600080fd5b506102c6546001600160a01b03166105b2565b34801561075057600080fd5b506104b061075f366004615512565b611cc4565b34801561077057600080fd5b50610459611ce2565b34801561078557600080fd5b506104b06102fc5481565b34801561079c57600080fd5b506104b06103005481565b3480156107b357600080fd5b506104596107c23660046155e1565b611d18565b3480156107d357600080fd5b50610193546001600160a01b03166105b2565b3480156107f257600080fd5b506104596108013660046155e1565b6120d4565b34801561081257600080fd5b506104596108213660046154e6565b612258565b34801561083257600080fd5b506105b2610841366004615512565b610291602052600090815260409020546001600160a01b031681565b34801561086957600080fd5b506105b26122bd565b34801561087e57600080fd5b5061045961088d366004615752565b61232c565b34801561089e57600080fd5b506103f3612563565b3480156108b357600080fd5b506104b06108c2366004615512565b612572565b3480156108d357600080fd5b506104596108e2366004615512565b612590565b6104596108f53660046155e1565b6125eb565b34801561090657600080fd5b506104296109153660046154e6565b612952565b34801561092657600080fd5b50610459610935366004615512565b6129d8565b34801561094657600080fd5b50610459610955366004615752565b612a03565b34801561096657600080fd5b506104296109753660046154e6565b612d39565b34801561098657600080fd5b50610459612d47565b34801561099b57600080fd5b506102fb546105b2906001600160a01b031681565b3480156109bc57600080fd5b506104596109cb3660046155e1565b612e30565b3480156109dc57600080fd5b506109f06109eb3660046154e6565b612f87565b60408051928352602083019190915201610400565b348015610a1157600080fd5b506106a9610a203660046155e1565b6130a3565b348015610a3157600080fd5b50610a3a6130b4565b60405161ffff9091168152602001610400565b348015610a5957600080fd5b5061028e546001600160a01b03166105b2565b348015610a7857600080fd5b506102fa546105b2906001600160a01b031681565b348015610a9957600080fd5b506102fb54610ab290600160a01b900463ffffffff1681565b60405163ffffffff9091168152602001610400565b348015610ad357600080fd5b506104b0610ae2366004615512565b61312c565b348015610af357600080fd5b50610459613139565b348015610b0857600080fd5b506104b06131fa565b348015610b1d57600080fd5b506104b0610b2c366004615752565b613281565b348015610b3d57600080fd5b50610459610b4c36600461579d565b6132ac565b348015610b5d57600080fd5b506105b2610b6c3660046155e1565b613319565b348015610b7d57600080fd5b506102fb54610ab290600160c01b900463ffffffff1681565b348015610ba257600080fd5b506104b0613344565b348015610bb757600080fd5b50610160546001600160a01b03166105b2565b348015610bd657600080fd5b50610459610be5366004615512565b61334f565b348015610bf657600080fd5b5061012d546001600160a01b03166105b2565b348015610c1557600080fd5b50610459610c2436600461579d565b613384565b6060609a8054610c38906157ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610c64906157ba565b8015610cb15780601f10610c8657610100808354040283529160200191610cb1565b820191906000526020600020905b815481529060010190602001808311610c9457829003601f168201915b5050505050905090565b600033610cc98185856133f1565b60019150505b92915050565b610cdd613515565b6001600160a01b038116610d1e5760405162461bcd60e51b81526020600482015260036024820152624c363360e81b60448201526064015b60405180910390fd5b6102fa80546001600160a01b0319166001600160a01b0392909216919091179055565b610d49613515565b6001600160a01b038116610d855760405162461bcd60e51b8152602060048201526003602482015262130d8d60ea1b6044820152606401610d15565b6102fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1615808015610dc85750600054600160ff909116105b80610de25750303b158015610de2575060005460ff166001145b610e455760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d15565b6000805460ff191660011790558015610e68576000805461ff0019166101001790555b6000826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ea8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ed091908101906157ee565b9050610f1d87878784604051602001610ee99190615865565b60405160208183030381529060405285604051602001610f099190615895565b604051602081830303815290604052613576565b610f26836135ba565b610f2f306135ea565b6102f980546001600160a01b0319166001600160a01b0386161790556102fb805467ffffffffffffffff60a01b19166509c40000004b60a21b179055610f736122bd565b6102fa80546001600160a01b0319166001600160a01b0392909216919091179055610f9c6122bd565b6102fb80546001600160a01b0319166001600160a01b0392909216919091179055508015611004576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60006102fc546102fd5461101e613344565b61102891906158d4565b61103291906158d4565b905090565b60405162461bcd60e51b81526020600482015260036024820152624c343560e81b6044820152600090606401610d15565b600033611076858285613694565b61108185858561370e565b60019150505b9392505050565b6102fa546001600160a01b0316336001600160a01b0316146110d85760405162461bcd60e51b81526020600482015260036024820152624c333960e81b6044820152606401610d15565b6110e06138ca565b610300546102ff5460009182915b808210156113c05761afc85a106113c05760006102ff8381548110611115576111156158e7565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150156113ad57805161116490613912565b156111e6576102ff838154811061117d5761117d6158e7565b60009182526020808320909101829055610301805460018101825592528251908301516001600160601b0316600160a01b026001600160a01b0391909116177fe78f8e39db67a8c6e0d54c288efc6f296f5d558bc028138a8476c9b97f6fcaa4909101556113ad565b60026111f06131fa565b6111fa91906158fd565b81602001516001600160601b031611156112c65760208101516102ff5460405160019233928792600080516020615f3c833981519152926112419290918291600391615941565b60405180910390a46102ff838154811061125d5761125d6158e7565b600091825260208083209091018290556102ff805460018101825592528251908301516001600160601b0316600160a01b026001600160a01b0391909116177f5a4a1f748f8cfa795b59cdc37192794ee567e6029e925719381be08d7ccaf4ec909101556113ad565b6000806112e4836000015184602001516001600160601b0316612f87565b91509150856102fe546112f79190615975565b821115611306575050506113c0565b61131081886158d4565b965061131c82876158d4565b9550600183600001516001600160a01b031686600080516020615f3c83398151915286602001518660026000196040516113599493929190615988565b60405180910390a46102ff8581548110611375576113756158e7565b600091825260208220015582516113aa908361139a6102c6546001600160a01b031690565b6001600160a01b03169190613982565b50505b826113b7816159ac565b935050506110ee565b836102fc60008282546113d391906158d4565b92505081905550826102fe60008282546113ed9190615975565b909155506113fd905084846158d4565b6102fd600082825461140f9190615975565b909155505050610300555050565b60405162461bcd60e51b8152602060048201526003602482015262261a1b60e91b6044820152600090606401610d15565b60006110326139e5565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114a05760405162461bcd60e51b8152600401610d15906159c5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166114e9600080516020615ef5833981519152546001600160a01b031690565b6001600160a01b03161461150f5760405162461bcd60e51b8152600401610d1590615a11565b61151881613a5b565b6040805160008082526020820190925261153491839190613a63565b50565b600033610cc981858561154a8383613281565b61155491906158d4565b6133f1565b610292602052816000526040600020818154811061157657600080fd5b6000918252602090912001546001600160a01b03169150829050565b61159a6138ca565b336115a481613912565b156115c15760405162461bcd60e51b8152600401610d1590615a5d565b6115ca33611cc4565b8211156115ff5760405162461bcd60e51b815260206004820152600360248201526209868760eb1b6044820152606401610d15565b60006102fe54836102fd5461161491906158d4565b6102f95491101591506000906002906001600160a01b031663c8f74bb8336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169a9190615a79565b101580156116ab57506102fe548411155b905081806116b65750805b6116e85760405162461bcd60e51b81526020600482015260036024820152624c343960e81b6044820152606401610d15565b6000806116f53387612f87565b91509150806102fc600082825461170c91906158d4565b92505081905550816102fe60008282546117269190615975565b9091555060019050336001600160a01b0316600019600080516020615f3c833981519152898660026000196040516117619493929190615a92565b60405180910390a46117733382613bce565b61177d3383613d15565b50505050505050565b61178e6138ca565b3361179881613912565b156117b55760405162461bcd60e51b8152600401610d1590615a5d565b60006102ff83815481106117cb576117cb6158e7565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150336001600160a01b0316146118475760405162461bcd60e51b81526020600482015260036024820152624c353760e81b6044820152606401610d15565b80602001516001600160601b03166102fd60008282546118679190615975565b90915550506102ff805484908110611881576118816158e7565b6000918252602082200155600181600001516001600160a01b031684600080516020615f3c8339815191528460200151856020015160016000196040516118cb9493929190615941565b60405180910390a46118ee816000015182602001516001600160601b0316613d42565b505050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361193b5760405162461bcd60e51b8152600401610d15906159c5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611984600080516020615ef5833981519152546001600160a01b031690565b6001600160a01b0316146119aa5760405162461bcd60e51b8152600401610d1590615a11565b6119b382613a5b565b6119bf82826001613a63565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611a635760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610d15565b50600080516020615ef583398151915290565b6103018181548110611a8757600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b90046001600160601b031682565b6000611032613e17565b611ac4613515565b610302546000199060005b81811015611b2957836001600160a01b03166103028281548110611af557611af56158e7565b6000918252602090912001546001600160a01b031603611b1757809250611b29565b80611b21816159ac565b915050611acf565b506000198213611b615760405162461bcd60e51b8152602060048201526003602482015262261a1960e91b6044820152606401610d15565b610302611b6f600183615975565b81548110611b7f57611b7f6158e7565b60009182526020909120015461030280546001600160a01b039092169184908110611bac57611bac6158e7565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610302805480611bec57611bec615aad565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b611c1b613515565b60405163433e3bad60e11b8152610290600482015261ffff82166024820152739b508ABEbB61a0C24d28A728BB45834e440e47619063867c775a9060440160006040518083038186803b158015611c7157600080fd5b505af4158015611c85573d6000803e3d6000fd5b505060405161ffff841681527f3d6d63f501ae621a01c729938fb4428a25138835257943d6b56c49b402ba36329250602001905060405180910390a150565b6000611ccf8261312c565b611cd883612572565b610ccf91906158d4565b611cea613515565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610d15565b6102fb546001600160a01b0316336001600160a01b031614611d625760405162461bcd60e51b815260206004820152600360248201526204c34360ec1b6044820152606401610d15565b611d6a6138ca565b60006102ff8281548110611d8057611d806158e7565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150611df15760405162461bcd60e51b8152602060048201526003602482015262261b1b60e91b6044820152606401610d15565b8051611dfc90613912565b15611e2f5760405162461bcd60e51b815260206004820152600360248201526204c35360ec1b6044820152606401610d15565b6002611e396131fa565b611e4391906158fd565b81602001516001600160601b031611611e845760405162461bcd60e51b81526020600482015260036024820152624c353160e81b6044820152606401610d15565b600080611ea2836000015184602001516001600160601b0316612f87565b915091506000611ebb6102c6546001600160a01b031690565b6102fb546040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa158015611f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f299190615a79565b9050806102fe54611f3a91906158d4565b831115611f6f5760405162461bcd60e51b8152602060048201526003602482015262261a9960e91b6044820152606401610d15565b816102fc6000828254611f8291906158d4565b9250508190555083602001516001600160601b03166102fd6000828254611fa99190615975565b9091555050610300548503611fcf576103008054906000611fc9836159ac565b91905055505b600184600001516001600160a01b031686600080516020615f3c833981519152876020015187600260001960405161200a9493929190615988565b60405180910390a46102ff8581548110612026576120266158e7565b600091825260208220015580831161206857612063338551856120526102c6546001600160a01b031690565b6001600160a01b0316929190613e86565b6120c5565b60006120748285615975565b9050806102fe60008282546120899190615975565b909155506120a99050338651846120526102c6546001600160a01b031690565b84516120c3908261139a6102c6546001600160a01b031690565b505b6120cd613ebe565b5050505050565b6102fb546001600160a01b0316336001600160a01b03161461211e5760405162461bcd60e51b815260206004820152600360248201526204c34360ec1b6044820152606401610d15565b6121266138ca565b6102c6546001600160a01b03166102fb546040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa15801561217d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a19190615a79565b8111156121d65760405162461bcd60e51b81526020600482015260036024820152620986a760eb1b6044820152606401610d15565b6000816102fe546121e791906158d4565b90506121f16131fa565b8111156122265760405162461bcd60e51b81526020600482015260036024820152624c353960e81b6044820152606401610d15565b816102fe600082825461223991906158d4565b909155506119bf90503330846120526102c6546001600160a01b031690565b612260613515565b6102c6546001600160a01b03166001600160a01b0316826001600160a01b0316036122b35760405162461bcd60e51b81526020600482015260036024820152624c343360e81b6044820152606401610d15565b6119bf8282613f27565b61012d5460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015612308573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110329190615ac3565b6123346138ca565b8161233e81613912565b1561235b5760405162461bcd60e51b8152600401610d1590615a5d565b8161236581613912565b156123825760405162461bcd60e51b8152600401610d1590615a5d565b6001600160a01b038481166000908152610291602052604090205416156123d15760405162461bcd60e51b8152602060048201526003602482015262261b1960e91b6044820152606401610d15565b6001600160a01b03841661240d5760405162461bcd60e51b815260206004820152600360248201526226189960e91b6044820152606401610d15565b6001600160a01b0383166124495760405162461bcd60e51b81526020600482015260036024820152624c313360e81b6044820152606401610d15565b826001600160a01b0316846001600160a01b0316036124905760405162461bcd60e51b8152602060048201526003602482015262130c4d60ea1b6044820152606401610d15565b6124986122bd565b6001600160a01b0316336001600160a01b031614806124bf5750336001600160a01b038516145b6124f15760405162461bcd60e51b81526020600482015260036024820152624c313560e81b6044820152606401610d15565b6124fc846001614019565b612507836001614019565b50506001600160a01b039182166000818152610291602090815260408083208054969095166001600160a01b03199687168117909555938252610292815292812080546001810182559082529290209091018054909216179055565b6060609b8054610c38906157ba565b6001600160a01b038116600090815260976020526040812054610ccf565b612598613515565b61030280546001810182556000919091527f552430c2010355dda19e8bae437f75cfb136cb8d667c4c0867367db21eee69b60180546001600160a01b0319166001600160a01b0392909216919091179055565b6125f36138ca565b336125fd81613912565b1561261a5760405162461bcd60e51b8152600401610d1590615a5d565b61262333611cc4565b8211156126585760405162461bcd60e51b81526020600482015260036024820152624c353360e81b6044820152606401610d15565b6001600160601b038211156126955760405162461bcd60e51b8152602060048201526003602482015262130d4d60ea1b6044820152606401610d15565b34660aa87bee538000146126d15760405162461bcd60e51b81526020600482015260036024820152624c353560e81b6044820152606401610d15565b600060405180604001604052806126e53390565b6001600160a01b0390811682526001600160601b0386166020909201919091526102f9549192506000916002911663c8f74bb8336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561275d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127819190615a79565b101580156127925750600061030054115b156128005761030080549060006127a883615ae0565b9190505550610300549050816102ff82815481106127c8576127c86158e7565b6000918252602091829020835193909201516001600160601b0316600160a01b026001600160a01b039093169290921791015561286a565b6102ff8054600181810183556000839052845160208601516001600160601b0316600160a01b026001600160a01b03909116177f5a4a1f748f8cfa795b59cdc37192794ee567e6029e925719381be08d7ccaf4ec9092019190915590546128679190615975565b90505b836102fd600082825461287d91906158d4565b9091555060019050336001600160a01b031682600080516020615f3c833981519152878860006000196040516128b69493929190615a92565b60405180910390a46128c83385613bce565b6102fa546040516000916001600160a01b03169034908381818185875af1925050503d8060008114612916576040519150601f19603f3d011682016040523d82523d6000602084013e61291b565b606091505b50509050806120cd5760405162461bcd60e51b8152602060048201526003602482015262261a9b60e91b6044820152606401610d15565b600033816129608286613281565b9050838110156129c05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d15565b6129cd82868684036133f1565b506001949350505050565b6129e0613515565b6102f980546001600160a01b0319166001600160a01b0392909216919091179055565b612a0b6138ca565b81612a1581613912565b15612a325760405162461bcd60e51b8152600401610d1590615a5d565b81612a3c81613912565b15612a595760405162461bcd60e51b8152600401610d1590615a5d565b6001600160a01b038416612a955760405162461bcd60e51b815260206004820152600360248201526226189b60e91b6044820152606401610d15565b6001600160a01b038316612ad15760405162461bcd60e51b81526020600482015260036024820152624c313760e81b6044820152606401610d15565b612ad96122bd565b6001600160a01b0316336001600160a01b03161480612b005750336001600160a01b038516145b612b325760405162461bcd60e51b815260206004820152600360248201526209862760eb1b6044820152606401610d15565b6001600160a01b0384811660009081526102916020526040902054811690841614612b855760405162461bcd60e51b81526020600482015260036024820152624c313960e81b6044820152606401610d15565b612b90846001614019565b612b9b836001614019565b60001960005b6001600160a01b03851660009081526102926020526040902054811015612c26576001600160a01b0385811660009081526102926020526040902080549188169183908110612bf257612bf26158e7565b6000918252602090912001546001600160a01b031603612c1457809150612c26565b80612c1e816159ac565b915050612ba1565b506000811215612c3857612c38615af7565b6001600160a01b0380861660009081526102916020908152604080832080546001600160a01b031916905592871682526102929052208054612c7c90600190615975565b81548110612c8c57612c8c6158e7565b60009182526020808320909101546001600160a01b0387811684526102929092526040909220805491909216919083908110612cca57612cca6158e7565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055918616815261029290915260409020805480612d1057612d10615aad565b600082815260209020810160001990810180546001600160a01b03191690550190555050505050565b600033610cc981858561370e565b612d4f613515565b60006102fe54612d686102c6546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015612dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd29190615a79565b612ddc9190615975565b905060008111612e145760405162461bcd60e51b8152602060048201526003602482015262130d0d60ea1b6044820152606401610d15565b611534612e2a6102c6546001600160a01b031690565b82613f27565b612e386138ca565b33612e4281613912565b15612e5f5760405162461bcd60e51b8152600401610d1590615a5d565b81612e736102c6546001600160a01b031690565b6001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eea9190615a79565b1015612f1e5760405162461bcd60e51b81526020600482015260036024820152624c343760e81b6044820152606401610d15565b816102fe6000828254612f3191906158d4565b9091555060009050336001600160a01b0316600019600080516020615f3c83398151915285866002600019604051612f6c9493929190615a92565b60405180910390a4612f7e33836140ee565b506119bf613ebe565b6102f95460405163191ee97760e31b81526001600160a01b03848116600483015260009283926002929091169063c8f74bb890602401602060405180830381865afa158015612fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ffe9190615a79565b1061300e5750819050600061309c565b600061302b61302661028e546001600160a01b031690565b61416f565b9050600061303985836141dc565b6102fb5490915060009061305a90600160a01b900463ffffffff168461421a565b90506000613069606485614246565b6130738385615b0d565b61307d91906158fd565b90506130898185614274565b94506130958588615975565b9550505050505b9250929050565b6102ff8181548110611a8757600080fd5b60405163106d64cf60e31b81526102906004820152600090739b508ABEbB61a0C24d28A728BB45834e440e47619063836b267890602401602060405180830381865af4158015613108573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110329190615b24565b6000610ccf8260016142ab565b613141613515565b60006102fc541161317a5760405162461bcd60e51b815260206004820152600360248201526204c36360ec1b6044820152606401610d15565b6102fc546102fe5410156131b65760405162461bcd60e51b81526020600482015260036024820152624c363160e81b6044820152606401610d15565b6102fc546102fe60008282546131cc9190615975565b90915550506102fc805460009091556115346131e66122bd565b8261139a6102c6546001600160a01b031690565b60008061321361302661028e546001600160a01b031690565b9050600061322861322261100c565b836141dc565b6102fb5490915060009061324990600160c01b900463ffffffff168461421a565b90506000613258606485614246565b6132628385615b0d565b61326c91906158fd565b90506132788185614274565b94505050505090565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b6132b4613515565b614e2063ffffffff821611156132f25760405162461bcd60e51b815260206004820152600360248201526209870760eb1b6044820152606401610d15565b6102fb805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b610302818154811061332a57600080fd5b6000918252602090912001546001600160a01b0316905081565b600061103260995490565b613357613515565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610d15565b61338c613515565b61271063ffffffff821611156133ca5760405162461bcd60e51b81526020600482015260036024820152624c343160e81b6044820152606401610d15565b6102fb805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b6001600160a01b0383166134535760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d15565b6001600160a01b0382166134b45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d15565b6001600160a01b0383811660008181526098602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b3361351e6122bd565b6001600160a01b0316146135745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d15565b565b600054610100900460ff1661359d5760405162461bcd60e51b8152600401610d1590615b41565b6135a8858585614811565b6135b2828261486b565b6120cd61489c565b600054610100900460ff166135e15760405162461bcd60e51b8152600401610d1590615b41565b611534816148c3565b600054610100900460ff166136115760405162461bcd60e51b8152600401610d1590615b41565b61028e80546001600160a01b0319166001600160a01b03831617905560405163433e3bad60e11b8152610290600482015260006024820152739b508ABEbB61a0C24d28A728BB45834e440e47619063867c775a9060440160006040518083038186803b15801561368057600080fd5b505af41580156120cd573d6000803e3d6000fd5b60006136a08484613281565b9050600019811461370857818110156136fb5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610d15565b61370884848484036133f1565b50505050565b6001600160a01b0383166137725760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610d15565b6001600160a01b0382166137d45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610d15565b6137df838383614965565b6001600160a01b038316600090815260976020526040902054818110156138575760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610d15565b6001600160a01b0380851660008181526097602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906138b79086815260200190565b60405180910390a36137088484846149a4565b6138d2611ab2565b156135745760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d15565b6101935460405163fe575a8760e01b81526001600160a01b038381166004830152600092169063fe575a8790602401602060405180830381865afa15801561395e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccf9190615b8c565b6040516001600160a01b0383166024820152604481018290526118ee90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614aad565b6102c6546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa925050508015613a4c575060408051601f3d908101601f19168201909252613a4991810190615bae565b60015b613a565750601290565b919050565b611534613515565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615613a96576118ee83614b82565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015613af0575060408051601f3d908101601f19168201909252613aed91810190615a79565b60015b613b535760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610d15565b600080516020615ef58339815191528114613bc25760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610d15565b506118ee838383614c1e565b6001600160a01b038216613c2e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610d15565b613c3a82600083614965565b6001600160a01b03821660009081526097602052604090205481811015613cae5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610d15565b6001600160a01b03831660008181526097602090815260408083208686039055609980548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36118ee836000846149a4565b6000613d213383613bce565b6102c654613d39906001600160a01b03168484613982565b50600192915050565b6001600160a01b038216613d985760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610d15565b613da460008383614965565b8060996000828254613db691906158d4565b90915550506001600160a01b0382166000818152609760209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36119bf600083836149a4565b6101605460408051635c975abb60e01b815290516000926001600160a01b031691635c975abb9160048083019260209291908290030181865afa158015613e62573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110329190615b8c565b6040516001600160a01b03808516602483015283166044820152606481018290526137089085906323b872dd60e01b906084016139ae565b6000613ec86131fa565b9050806102fe5411613ed75750565b6000816102fe54613ee89190615975565b9050806102fe6000828254613efd9190615975565b90915550506102fb546119bf906001600160a01b03168261139a6102c6546001600160a01b031690565b613f2f613515565b60008111613f655760405162461bcd60e51b815260206004820152600360248201526204c31360ec1b6044820152606401610d15565b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a0823190602401602060405180830381865afa158015613fad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fd19190615a79565b10156140055760405162461bcd60e51b81526020600482015260036024820152624c313160e81b6044820152606401610d15565b6118ee6001600160a01b0382163384613982565b6102935460ff1615614029575050565b6001600160a01b038216600090815261028f602052604090205464ffffffffff428116911603614057575050565b6001600160a01b0380831660009081526102916020526040902054168015614083576118ee8183614019565b600061408f84846142ab565b905080156140e557610293805460ff1916600117905560006140b18583614c43565b610293805460ff191690559050806140e3576001600160a01b038516600090815261028f602052604090206003018290555b505b61370884614c9a565b60003330810361414c5760405162461bcd60e51b815260206004820152602360248201527f4552433230577261707065723a20777261707065722063616e2774206465706f6044820152621cda5d60ea1b6064820152608401610d15565b6102c654614165906001600160a01b0316823086613e86565b610cc98484613d42565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156141af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d39190615bae565b60ff1692915050565b6000600382101561420e576141f2826006615975565b6141fd90600a615cb5565b6142079084615b0d565b9050610ccf565b611087836103e8615b0d565b6000600382101561423157614207836103e8615b0d565b61423c82600a615cb5565b6110879084615b0d565b6000600382101561425e5761420783620f4240615b0d565b6142698260036158d4565b61423c90600a615cb5565b6000600382101561429f5761428a826006615975565b61429590600a615cb5565b61420790846158fd565b6110876103e8846158fd565b6001600160a01b038216600090815261028f602090815260408083208151608081018352815464ffffffffff16818401908152835180850190945260018301548452600283015463ffffffff1684860152606082019390935291825260030154918101919091528161431c85614dfc565b82515190915064ffffffffff161580614333575080155b1561434357600092505050610ccf565b815160200151604051630b27cfb160e31b8152600090739b508ABEbB61a0C24d28A728BB45834e440e47619063593e7d889061438790610290908690600401615cc1565b6040805180830381865af41580156143a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143c79190615ce5565b60405163038255fd60e11b81526102906004820152909150600090739b508ABEbB61a0C24d28A728BB45834e440e476190630704abfa906024016040805180830381865af415801561441d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144419190615d30565b905084602001519550739b508ABEbB61a0C24d28A728BB45834e440e4761634ead0c5384836040518363ffffffff1660e01b8152600401614483929190615d5c565b602060405180830381865af41580156144a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144c49190615b8c565b6147d557604051633e1e5c5360e11b8152600090739b508ABEbB61a0C24d28A728BB45834e440e476190637c3cb8a690614502908790600401615d90565b6040805180830381865af415801561451e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145429190615d30565b604051630b27cfb160e31b8152909150600090739b508ABEbB61a0C24d28A728BB45834e440e47619063593e7d889061458390610290908690600401615cc1565b6040805180830381865af415801561459f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145c39190615ce5565b875151602082015186519293506145f1928c6145e05760006145e2565b8b5b6145ec908b6158d4565b614ea5565b6145fb90896158d4565b97505b819450809350739b508ABEbB61a0C24d28A728BB45834e440e4761634ead0c5386856040518363ffffffff1660e01b815260040161463d929190615d5c565b602060405180830381865af415801561465a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061467e9190615b8c565b6147a857604051633e1e5c5360e11b8152739b508ABEbB61a0C24d28A728BB45834e440e476190637c3cb8a6906146b9908890600401615d90565b6040805180830381865af41580156146d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146f99190615d30565b604051630b27cfb160e31b8152909250739b508ABEbB61a0C24d28A728BB45834e440e47619063593e7d889061473790610290908690600401615cc1565b6040805180830381865af4158015614753573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147779190615ce5565b90506147978460200151826020015186600001518c6145e05760006145e2565b6147a190896158d4565b97506145fe565b6147c284602001514286600001518c6145e05760006145e2565b6147cc90896158d4565b97505050614806565b84515182516147f9919042908a6147ed5760006147ef565b895b6145ec90896158d4565b61480390876158d4565b95505b505050505092915050565b600054610100900460ff166148385760405162461bcd60e51b8152600401610d1590615b41565b61484061489c565b61484983614f91565b614851614fc1565b61485a82614ff0565b6148638161503a565b6118ee61489c565b600054610100900460ff166148925760405162461bcd60e51b8152600401610d1590615b41565b6119bf8282615084565b600054610100900460ff166135745760405162461bcd60e51b8152600401610d1590615b41565b600054610100900460ff166148ea5760405162461bcd60e51b8152600401610d1590615b41565b306001600160a01b038216036149425760405162461bcd60e51b815260206004820152601e60248201527f4552433230577261707065723a2063616e6e6f742073656c66207772617000006044820152606401610d15565b6102c680546001600160a01b0319166001600160a01b0392909216919091179055565b6149708383836150c4565b6001600160a01b0383161561498a5761498a836001614019565b6001600160a01b038216156118ee576118ee826001614019565b6001600160a01b03831615806149c157506001600160a01b038216155b15614a01577f980f7e6fb44009001d533a10bc3bd558b4efe22dcb4888bca4767aa93c71ce1f6149ef61100c565b60405190815260200160405180910390a15b60005b61030254811015613708576103028181548110614a2357614a236158e7565b600091825260209091200154604051636e0d037d60e11b81526001600160a01b0386811660048301528581166024830152604482018590529091169063dc1a06fa90606401600060405180830381600087803b158015614a8257600080fd5b505af1158015614a96573d6000803e3d6000fd5b505050508080614aa5906159ac565b915050614a04565b6000614b02826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166151259092919063ffffffff16565b9050805160001480614b23575080806020019051810190614b239190615b8c565b6118ee5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d15565b6001600160a01b0381163b614bef5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610d15565b600080516020615ef583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b614c2783615134565b600082511180614c345750805b156118ee576137088383615174565b6000826001600160a01b03167f05a71d417f891ba4b7a94b48d1b1f4b59b070921cba593b3c72a05a5587a78a9614c7985612572565b60408051918252602082018690520160405180910390a2613d398383613d42565b6001600160a01b038116600090815261028f602052604090819020805464ffffffffff19164264ffffffffff161790555163038255fd60e11b81526102906004820152739b508ABEbB61a0C24d28A728BB45834e440e476190630704abfa906024016040805180830381865af4158015614d18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d3c9190615d30565b6001600160a01b038216600090815261028f602090815260408220835160018201559201516002909201805463ffffffff191663ffffffff909316929092179091555b6001600160a01b038216600090815261029260205260409020548110156119bf576001600160a01b0382166000908152610292602052604090208054614dea919083908110614dd057614dd06158e7565b6000918252602090912001546001600160a01b0316614c9a565b80614df4816159ac565b915050614d7f565b6000614e0782615199565b614e1190826158d4565b905060005b6001600160a01b03831660009081526102926020526040902054811015614e9f576001600160a01b0383166000908152610292602052604090208054614e81919083908110614e6757614e676158e7565b6000918252602090912001546001600160a01b0316614dfc565b614e8b90836158d4565b915080614e97816159ac565b915050614e16565b50919050565b600080614ebe61302661028e546001600160a01b031690565b90506000614edc614ecf8888615dad565b64ffffffffff1683614246565b90506000614eee6301e1338084614246565b614ef9600185614246565b614f039084615b0d565b614f0d91906158fd565b90506000614f1f8761ffff168561421a565b90506000614f2e600186614246565b614f388385615b0d565b614f4291906158fd565b90506000614f5088876141dc565b90506000614f5f606488614246565b614f698484615b0d565b614f7391906158fd565b9050614f7f8188614274565b9750505050505050505b949350505050565b600054610100900460ff16614fb85760405162461bcd60e51b8152600401610d1590615b41565b611534816151a4565b600054610100900460ff16614fe85760405162461bcd60e51b8152600401610d1590615b41565b6135746151ee565b600054610100900460ff166150175760405162461bcd60e51b8152600401610d1590615b41565b61016080546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166150615760405162461bcd60e51b8152600401610d1590615b41565b61019380546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166150ab5760405162461bcd60e51b8152600401610d1590615b41565b609a6150b78382615e18565b50609b6118ee8282615e18565b6150cc6138ca565b826150d681613912565b156150f35760405162461bcd60e51b8152600401610d1590615a5d565b826150fd81613912565b1561511a5760405162461bcd60e51b8152600401610d1590615a5d565b6120cd858585615221565b6060614f898484600085615289565b61513d81614b82565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606110878383604051806060016040528060278152602001615f1560279139615364565b6000610ccf82612572565b600054610100900460ff166151cb5760405162461bcd60e51b8152600401610d1590615b41565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166152155760405162461bcd60e51b8152600401610d1590615b41565b60c9805460ff19169055565b615229611ab2565b156118ee5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610d15565b6060824710156152ea5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610d15565b600080866001600160a01b031685876040516153069190615ed8565b60006040518083038185875af1925050503d8060008114615343576040519150601f19603f3d011682016040523d82523d6000602084013e615348565b606091505b5091509150615359878383876153dc565b979650505050505050565b6060600080856001600160a01b0316856040516153819190615ed8565b600060405180830381855af49150503d80600081146153bc576040519150601f19603f3d011682016040523d82523d6000602084013e6153c1565b606091505b50915091506153d2868383876153dc565b9695505050505050565b6060831561544b578251600003615444576001600160a01b0385163b6154445760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d15565b5081614f89565b614f8983838151156154605781518083602001fd5b8060405162461bcd60e51b8152600401610d15919061549e565b60005b8381101561549557818101518382015260200161547d565b50506000910152565b60208152600082518060208401526154bd81604085016020870161547a565b601f01601f19169190910160400192915050565b6001600160a01b038116811461153457600080fd5b600080604083850312156154f957600080fd5b8235615504816154d1565b946020939093013593505050565b60006020828403121561552457600080fd5b8135611087816154d1565b600080600080600060a0868803121561554757600080fd5b8535615552816154d1565b94506020860135615562816154d1565b93506040860135615572816154d1565b92506060860135615582816154d1565b91506080860135615592816154d1565b809150509295509295909350565b6000806000606084860312156155b557600080fd5b83356155c0816154d1565b925060208401356155d0816154d1565b929592945050506040919091013590565b6000602082840312156155f357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715615633576156336155fa565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715615662576156626155fa565b604052919050565b600067ffffffffffffffff821115615684576156846155fa565b50601f01601f191660200190565b600080604083850312156156a557600080fd5b82356156b0816154d1565b9150602083013567ffffffffffffffff8111156156cc57600080fd5b8301601f810185136156dd57600080fd5b80356156f06156eb8261566a565b615639565b81815286602083850101111561570557600080fd5b816020840160208301376000602083830101528093505050509250929050565b61ffff8116811461153457600080fd5b60006020828403121561574757600080fd5b813561108781615725565b6000806040838503121561576557600080fd5b8235615770816154d1565b91506020830135615780816154d1565b809150509250929050565b63ffffffff8116811461153457600080fd5b6000602082840312156157af57600080fd5b81356110878161578b565b600181811c908216806157ce57607f821691505b602082108103614e9f57634e487b7160e01b600052602260045260246000fd5b60006020828403121561580057600080fd5b815167ffffffffffffffff81111561581757600080fd5b8201601f8101841361582857600080fd5b80516158366156eb8261566a565b81815285602083850101111561584b57600080fd5b61585c82602083016020860161547a565b95945050505050565b6702632b233b4ba3c960c51b81526000825161588881600885016020870161547a565b9190910160080192915050565b601360fa1b8152600082516158b181600185016020870161547a565b9190910160010192915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ccf57610ccf6158be565b634e487b7160e01b600052603260045260246000fd5b60008261591a57634e487b7160e01b600052601260045260246000fd5b500490565b6004811061593d57634e487b7160e01b600052602160045260246000fd5b9052565b6001600160601b0385811682528416602082015260808101615966604083018561591f565b82606083015295945050505050565b81810381811115610ccf57610ccf6158be565b6001600160601b03851681526020810184905260808101615966604083018561591f565b6000600182016159be576159be6158be565b5060010190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252600290820152614c3960f01b604082015260600190565b600060208284031215615a8b57600080fd5b5051919050565b8481526020810184905260808101615966604083018561591f565b634e487b7160e01b600052603160045260246000fd5b600060208284031215615ad557600080fd5b8151611087816154d1565b600081615aef57615aef6158be565b506000190190565b634e487b7160e01b600052600160045260246000fd5b8082028115828204841417610ccf57610ccf6158be565b600060208284031215615b3657600080fd5b815161108781615725565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060208284031215615b9e57600080fd5b8151801515811461108757600080fd5b600060208284031215615bc057600080fd5b815160ff8116811461108757600080fd5b600181815b80851115615c0c578160001904821115615bf257615bf26158be565b80851615615bff57918102915b93841c9390800290615bd6565b509250929050565b600082615c2357506001610ccf565b81615c3057506000610ccf565b8160018114615c465760028114615c5057615c6c565b6001915050610ccf565b60ff841115615c6157615c616158be565b50506001821b610ccf565b5060208310610133831016604e8410600b8410161715615c8f575081810a610ccf565b615c998383615bd1565b8060001904821115615cad57615cad6158be565b029392505050565b60006110878383615c14565b8281526060810161108760208301848051825260209081015163ffffffff16910152565b600060408284031215615cf757600080fd5b615cff615610565b8251615d0a81615725565b8152602083015164ffffffffff81168114615d2457600080fd5b60208201529392505050565b600060408284031215615d4257600080fd5b615d4a615610565b825181526020830151615d248161578b565b8251815260208084015163ffffffff16908201526080810182516040830152602083015163ffffffff166060830152611087565b8151815260208083015163ffffffff169082015260408101610ccf565b64ffffffffff828116828216039080821115615dcb57615dcb6158be565b5092915050565b601f8211156118ee57600081815260208120601f850160051c81016020861015615df95750805b601f850160051c820191505b8181101561100457828155600101615e05565b815167ffffffffffffffff811115615e3257615e326155fa565b615e4681615e4084546157ba565b84615dd2565b602080601f831160018114615e7b5760008415615e635750858301515b600019600386901b1c1916600185901b178555611004565b600085815260208120601f198616915b82811015615eaa57888601518255948401946001909101908401615e8b565b5085821015615ec85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615eea81846020870161547a565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564d58e94604d90293a1c1ad95bfe6a6e6c352c33c5774a4b6b4f4b6f7460da29c5a2646970667358221220845d48641891e9c632d25ff3d5dc0d5f5747737754054dfe5d7e5f080ee59cdf64736f6c63430008120033", - "deployedBytecode": "0x6080604052600436106103d95760003560e01c80638980f11f116101fd578063c822adda11610118578063dd62ed3e116100ab578063ef356a791161007a578063ef356a7914610b96578063f12d54d814610bab578063f2fde38b14610bca578063f762e73414610bea578063f94ce2c214610c0957600080fd5b8063dd62ed3e14610b11578063ee1335d114610b31578063ee153c4f14610b51578063ef2591af14610b7157600080fd5b8063d038875c116100e7578063d038875c14610a8d578063d039981b14610ac7578063d294f09314610ae7578063db84faac14610afc57600080fd5b8063c822adda14610a05578063c89d5b8b14610a25578063cafb220214610a4d578063cdc1842414610a6c57600080fd5b8063a457c2d711610190578063b2de2a431161015f578063b2de2a431461097a578063b60d42881461098f578063b6b55f25146109b0578063bacd609e146109d057600080fd5b8063a457c2d7146108fa578063a64c91cc1461091a578063a8f763201461093a578063a9059cbb1461095a57600080fd5b806395d89b41116101cc57806395d89b411461089257806399a03c70146108a75780639c271975146108c75780639ee679e8146108e757600080fd5b80638980f11f146108065780638d8e6bd7146108265780638da5cb5b1461085d57806392e5ced71461087257600080fd5b80634134bee9116102f85780636d3a4ac81161028b578063734d82871161025a578063734d8287146107795780637594d0b51461079057806375a5652b146107a75780637c2edb16146107c75780638370e1f7146107e657600080fd5b80636d3a4ac8146107055780636f307dc31461072557806370a0823114610744578063715018a61461076457600080fd5b806353ac4b66116102c757806353ac4b661461067257806353d3a42f146106895780635c975abb146106d05780635f0e8e37146106e557600080fd5b80634134bee91461060a57806345b05d091461062a5780634f1ef2861461064a57806352d1902d1461065d57600080fd5b806323b872dd116103705780633659cfe61161033f5780633659cfe614610571578063391d85ec1461059157806339509351146105ca5780633e7ae353146105ea57600080fd5b806323b872dd146104f55780632a1b8b1c146105155780632f4f21e21461052a578063313ce5671461054a57600080fd5b80631459457a116103ac5780631459457a1461047b57806318160ddd1461049b5780631c19be6d146104be578063205c2878146104d557600080fd5b806306fdde03146103de578063095ea7b3146104095780630d174c24146104395780630e21750f1461045b575b600080fd5b3480156103ea57600080fd5b506103f3610c29565b604051610400919061549e565b60405180910390f35b34801561041557600080fd5b506104296104243660046154e6565b610cbb565b6040519015158152602001610400565b34801561044557600080fd5b50610459610454366004615512565b610cd5565b005b34801561046757600080fd5b50610459610476366004615512565b610d41565b34801561048757600080fd5b5061045961049636600461552f565b610da8565b3480156104a757600080fd5b506104b061100c565b604051908152602001610400565b3480156104ca57600080fd5b506104b06102fe5481565b3480156104e157600080fd5b506104296104f03660046154e6565b611037565b34801561050157600080fd5b506104296105103660046155a0565b611068565b34801561052157600080fd5b5061045961108e565b34801561053657600080fd5b506104296105453660046154e6565b61141d565b34801561055657600080fd5b5061055f61144e565b60405160ff9091168152602001610400565b34801561057d57600080fd5b5061045961058c366004615512565b611458565b34801561059d57600080fd5b506102f9546105b2906001600160a01b031681565b6040516001600160a01b039091168152602001610400565b3480156105d657600080fd5b506104296105e53660046154e6565b611537565b3480156105f657600080fd5b506105b26106053660046154e6565b611559565b34801561061657600080fd5b506104596106253660046155e1565b611592565b34801561063657600080fd5b506104596106453660046155e1565b611786565b610459610658366004615692565b6118f3565b34801561066957600080fd5b506104b06119c3565b34801561067e57600080fd5b506104b06102fd5481565b34801561069557600080fd5b506106a96106a43660046155e1565b611a76565b604080516001600160a01b0390931683526001600160601b03909116602083015201610400565b3480156106dc57600080fd5b50610429611ab2565b3480156106f157600080fd5b50610459610700366004615512565b611abc565b34801561071157600080fd5b50610459610720366004615735565b611c13565b34801561073157600080fd5b506102c6546001600160a01b03166105b2565b34801561075057600080fd5b506104b061075f366004615512565b611cc4565b34801561077057600080fd5b50610459611ce2565b34801561078557600080fd5b506104b06102fc5481565b34801561079c57600080fd5b506104b06103005481565b3480156107b357600080fd5b506104596107c23660046155e1565b611d18565b3480156107d357600080fd5b50610193546001600160a01b03166105b2565b3480156107f257600080fd5b506104596108013660046155e1565b6120d4565b34801561081257600080fd5b506104596108213660046154e6565b612258565b34801561083257600080fd5b506105b2610841366004615512565b610291602052600090815260409020546001600160a01b031681565b34801561086957600080fd5b506105b26122bd565b34801561087e57600080fd5b5061045961088d366004615752565b61232c565b34801561089e57600080fd5b506103f3612563565b3480156108b357600080fd5b506104b06108c2366004615512565b612572565b3480156108d357600080fd5b506104596108e2366004615512565b612590565b6104596108f53660046155e1565b6125eb565b34801561090657600080fd5b506104296109153660046154e6565b612952565b34801561092657600080fd5b50610459610935366004615512565b6129d8565b34801561094657600080fd5b50610459610955366004615752565b612a03565b34801561096657600080fd5b506104296109753660046154e6565b612d39565b34801561098657600080fd5b50610459612d47565b34801561099b57600080fd5b506102fb546105b2906001600160a01b031681565b3480156109bc57600080fd5b506104596109cb3660046155e1565b612e30565b3480156109dc57600080fd5b506109f06109eb3660046154e6565b612f87565b60408051928352602083019190915201610400565b348015610a1157600080fd5b506106a9610a203660046155e1565b6130a3565b348015610a3157600080fd5b50610a3a6130b4565b60405161ffff9091168152602001610400565b348015610a5957600080fd5b5061028e546001600160a01b03166105b2565b348015610a7857600080fd5b506102fa546105b2906001600160a01b031681565b348015610a9957600080fd5b506102fb54610ab290600160a01b900463ffffffff1681565b60405163ffffffff9091168152602001610400565b348015610ad357600080fd5b506104b0610ae2366004615512565b61312c565b348015610af357600080fd5b50610459613139565b348015610b0857600080fd5b506104b06131fa565b348015610b1d57600080fd5b506104b0610b2c366004615752565b613281565b348015610b3d57600080fd5b50610459610b4c36600461579d565b6132ac565b348015610b5d57600080fd5b506105b2610b6c3660046155e1565b613319565b348015610b7d57600080fd5b506102fb54610ab290600160c01b900463ffffffff1681565b348015610ba257600080fd5b506104b0613344565b348015610bb757600080fd5b50610160546001600160a01b03166105b2565b348015610bd657600080fd5b50610459610be5366004615512565b61334f565b348015610bf657600080fd5b5061012d546001600160a01b03166105b2565b348015610c1557600080fd5b50610459610c2436600461579d565b613384565b6060609a8054610c38906157ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610c64906157ba565b8015610cb15780601f10610c8657610100808354040283529160200191610cb1565b820191906000526020600020905b815481529060010190602001808311610c9457829003601f168201915b5050505050905090565b600033610cc98185856133f1565b60019150505b92915050565b610cdd613515565b6001600160a01b038116610d1e5760405162461bcd60e51b81526020600482015260036024820152624c363360e81b60448201526064015b60405180910390fd5b6102fa80546001600160a01b0319166001600160a01b0392909216919091179055565b610d49613515565b6001600160a01b038116610d855760405162461bcd60e51b8152602060048201526003602482015262130d8d60ea1b6044820152606401610d15565b6102fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1615808015610dc85750600054600160ff909116105b80610de25750303b158015610de2575060005460ff166001145b610e455760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610d15565b6000805460ff191660011790558015610e68576000805461ff0019166101001790555b6000826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ea8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ed091908101906157ee565b9050610f1d87878784604051602001610ee99190615865565b60405160208183030381529060405285604051602001610f099190615895565b604051602081830303815290604052613576565b610f26836135ba565b610f2f306135ea565b6102f980546001600160a01b0319166001600160a01b0386161790556102fb805467ffffffffffffffff60a01b19166509c40000004b60a21b179055610f736122bd565b6102fa80546001600160a01b0319166001600160a01b0392909216919091179055610f9c6122bd565b6102fb80546001600160a01b0319166001600160a01b0392909216919091179055508015611004576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60006102fc546102fd5461101e613344565b61102891906158d4565b61103291906158d4565b905090565b60405162461bcd60e51b81526020600482015260036024820152624c343560e81b6044820152600090606401610d15565b600033611076858285613694565b61108185858561370e565b60019150505b9392505050565b6102fa546001600160a01b0316336001600160a01b0316146110d85760405162461bcd60e51b81526020600482015260036024820152624c333960e81b6044820152606401610d15565b6110e06138ca565b610300546102ff5460009182915b808210156113c05761afc85a106113c05760006102ff8381548110611115576111156158e7565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150156113ad57805161116490613912565b156111e6576102ff838154811061117d5761117d6158e7565b60009182526020808320909101829055610301805460018101825592528251908301516001600160601b0316600160a01b026001600160a01b0391909116177fe78f8e39db67a8c6e0d54c288efc6f296f5d558bc028138a8476c9b97f6fcaa4909101556113ad565b60026111f06131fa565b6111fa91906158fd565b81602001516001600160601b031611156112c65760208101516102ff5460405160019233928792600080516020615f3c833981519152926112419290918291600391615941565b60405180910390a46102ff838154811061125d5761125d6158e7565b600091825260208083209091018290556102ff805460018101825592528251908301516001600160601b0316600160a01b026001600160a01b0391909116177f5a4a1f748f8cfa795b59cdc37192794ee567e6029e925719381be08d7ccaf4ec909101556113ad565b6000806112e4836000015184602001516001600160601b0316612f87565b91509150856102fe546112f79190615975565b821115611306575050506113c0565b61131081886158d4565b965061131c82876158d4565b9550600183600001516001600160a01b031686600080516020615f3c83398151915286602001518660026000196040516113599493929190615988565b60405180910390a46102ff8581548110611375576113756158e7565b600091825260208220015582516113aa908361139a6102c6546001600160a01b031690565b6001600160a01b03169190613982565b50505b826113b7816159ac565b935050506110ee565b836102fc60008282546113d391906158d4565b92505081905550826102fe60008282546113ed9190615975565b909155506113fd905084846158d4565b6102fd600082825461140f9190615975565b909155505050610300555050565b60405162461bcd60e51b8152602060048201526003602482015262261a1b60e91b6044820152600090606401610d15565b60006110326139e5565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114a05760405162461bcd60e51b8152600401610d15906159c5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166114e9600080516020615ef5833981519152546001600160a01b031690565b6001600160a01b03161461150f5760405162461bcd60e51b8152600401610d1590615a11565b61151881613a5b565b6040805160008082526020820190925261153491839190613a63565b50565b600033610cc981858561154a8383613281565b61155491906158d4565b6133f1565b610292602052816000526040600020818154811061157657600080fd5b6000918252602090912001546001600160a01b03169150829050565b61159a6138ca565b336115a481613912565b156115c15760405162461bcd60e51b8152600401610d1590615a5d565b6115ca33611cc4565b8211156115ff5760405162461bcd60e51b815260206004820152600360248201526209868760eb1b6044820152606401610d15565b60006102fe54836102fd5461161491906158d4565b6102f95491101591506000906002906001600160a01b031663c8f74bb8336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015611676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169a9190615a79565b101580156116ab57506102fe548411155b905081806116b65750805b6116e85760405162461bcd60e51b81526020600482015260036024820152624c343960e81b6044820152606401610d15565b6000806116f53387612f87565b91509150806102fc600082825461170c91906158d4565b92505081905550816102fe60008282546117269190615975565b9091555060019050336001600160a01b0316600019600080516020615f3c833981519152898660026000196040516117619493929190615a92565b60405180910390a46117733382613bce565b61177d3383613d15565b50505050505050565b61178e6138ca565b3361179881613912565b156117b55760405162461bcd60e51b8152600401610d1590615a5d565b60006102ff83815481106117cb576117cb6158e7565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150336001600160a01b0316146118475760405162461bcd60e51b81526020600482015260036024820152624c353760e81b6044820152606401610d15565b80602001516001600160601b03166102fd60008282546118679190615975565b90915550506102ff805484908110611881576118816158e7565b6000918252602082200155600181600001516001600160a01b031684600080516020615f3c8339815191528460200151856020015160016000196040516118cb9493929190615941565b60405180910390a46118ee816000015182602001516001600160601b0316613d42565b505050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361193b5760405162461bcd60e51b8152600401610d15906159c5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611984600080516020615ef5833981519152546001600160a01b031690565b6001600160a01b0316146119aa5760405162461bcd60e51b8152600401610d1590615a11565b6119b382613a5b565b6119bf82826001613a63565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611a635760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610d15565b50600080516020615ef583398151915290565b6103018181548110611a8757600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b90046001600160601b031682565b6000611032613e17565b611ac4613515565b610302546000199060005b81811015611b2957836001600160a01b03166103028281548110611af557611af56158e7565b6000918252602090912001546001600160a01b031603611b1757809250611b29565b80611b21816159ac565b915050611acf565b506000198213611b615760405162461bcd60e51b8152602060048201526003602482015262261a1960e91b6044820152606401610d15565b610302611b6f600183615975565b81548110611b7f57611b7f6158e7565b60009182526020909120015461030280546001600160a01b039092169184908110611bac57611bac6158e7565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610302805480611bec57611bec615aad565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b611c1b613515565b60405163433e3bad60e11b8152610290600482015261ffff8216602482015273__$3728f51d90da6977d2525dcec632daa0b3$__9063867c775a9060440160006040518083038186803b158015611c7157600080fd5b505af4158015611c85573d6000803e3d6000fd5b505060405161ffff841681527f3d6d63f501ae621a01c729938fb4428a25138835257943d6b56c49b402ba36329250602001905060405180910390a150565b6000611ccf8261312c565b611cd883612572565b610ccf91906158d4565b611cea613515565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610d15565b6102fb546001600160a01b0316336001600160a01b031614611d625760405162461bcd60e51b815260206004820152600360248201526204c34360ec1b6044820152606401610d15565b611d6a6138ca565b60006102ff8281548110611d8057611d806158e7565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150611df15760405162461bcd60e51b8152602060048201526003602482015262261b1b60e91b6044820152606401610d15565b8051611dfc90613912565b15611e2f5760405162461bcd60e51b815260206004820152600360248201526204c35360ec1b6044820152606401610d15565b6002611e396131fa565b611e4391906158fd565b81602001516001600160601b031611611e845760405162461bcd60e51b81526020600482015260036024820152624c353160e81b6044820152606401610d15565b600080611ea2836000015184602001516001600160601b0316612f87565b915091506000611ebb6102c6546001600160a01b031690565b6102fb546040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa158015611f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f299190615a79565b9050806102fe54611f3a91906158d4565b831115611f6f5760405162461bcd60e51b8152602060048201526003602482015262261a9960e91b6044820152606401610d15565b816102fc6000828254611f8291906158d4565b9250508190555083602001516001600160601b03166102fd6000828254611fa99190615975565b9091555050610300548503611fcf576103008054906000611fc9836159ac565b91905055505b600184600001516001600160a01b031686600080516020615f3c833981519152876020015187600260001960405161200a9493929190615988565b60405180910390a46102ff8581548110612026576120266158e7565b600091825260208220015580831161206857612063338551856120526102c6546001600160a01b031690565b6001600160a01b0316929190613e86565b6120c5565b60006120748285615975565b9050806102fe60008282546120899190615975565b909155506120a99050338651846120526102c6546001600160a01b031690565b84516120c3908261139a6102c6546001600160a01b031690565b505b6120cd613ebe565b5050505050565b6102fb546001600160a01b0316336001600160a01b03161461211e5760405162461bcd60e51b815260206004820152600360248201526204c34360ec1b6044820152606401610d15565b6121266138ca565b6102c6546001600160a01b03166102fb546040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa15801561217d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a19190615a79565b8111156121d65760405162461bcd60e51b81526020600482015260036024820152620986a760eb1b6044820152606401610d15565b6000816102fe546121e791906158d4565b90506121f16131fa565b8111156122265760405162461bcd60e51b81526020600482015260036024820152624c353960e81b6044820152606401610d15565b816102fe600082825461223991906158d4565b909155506119bf90503330846120526102c6546001600160a01b031690565b612260613515565b6102c6546001600160a01b03166001600160a01b0316826001600160a01b0316036122b35760405162461bcd60e51b81526020600482015260036024820152624c343360e81b6044820152606401610d15565b6119bf8282613f27565b61012d5460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa158015612308573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110329190615ac3565b6123346138ca565b8161233e81613912565b1561235b5760405162461bcd60e51b8152600401610d1590615a5d565b8161236581613912565b156123825760405162461bcd60e51b8152600401610d1590615a5d565b6001600160a01b038481166000908152610291602052604090205416156123d15760405162461bcd60e51b8152602060048201526003602482015262261b1960e91b6044820152606401610d15565b6001600160a01b03841661240d5760405162461bcd60e51b815260206004820152600360248201526226189960e91b6044820152606401610d15565b6001600160a01b0383166124495760405162461bcd60e51b81526020600482015260036024820152624c313360e81b6044820152606401610d15565b826001600160a01b0316846001600160a01b0316036124905760405162461bcd60e51b8152602060048201526003602482015262130c4d60ea1b6044820152606401610d15565b6124986122bd565b6001600160a01b0316336001600160a01b031614806124bf5750336001600160a01b038516145b6124f15760405162461bcd60e51b81526020600482015260036024820152624c313560e81b6044820152606401610d15565b6124fc846001614019565b612507836001614019565b50506001600160a01b039182166000818152610291602090815260408083208054969095166001600160a01b03199687168117909555938252610292815292812080546001810182559082529290209091018054909216179055565b6060609b8054610c38906157ba565b6001600160a01b038116600090815260976020526040812054610ccf565b612598613515565b61030280546001810182556000919091527f552430c2010355dda19e8bae437f75cfb136cb8d667c4c0867367db21eee69b60180546001600160a01b0319166001600160a01b0392909216919091179055565b6125f36138ca565b336125fd81613912565b1561261a5760405162461bcd60e51b8152600401610d1590615a5d565b61262333611cc4565b8211156126585760405162461bcd60e51b81526020600482015260036024820152624c353360e81b6044820152606401610d15565b6001600160601b038211156126955760405162461bcd60e51b8152602060048201526003602482015262130d4d60ea1b6044820152606401610d15565b34660aa87bee538000146126d15760405162461bcd60e51b81526020600482015260036024820152624c353560e81b6044820152606401610d15565b600060405180604001604052806126e53390565b6001600160a01b0390811682526001600160601b0386166020909201919091526102f9549192506000916002911663c8f74bb8336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561275d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127819190615a79565b101580156127925750600061030054115b156128005761030080549060006127a883615ae0565b9190505550610300549050816102ff82815481106127c8576127c86158e7565b6000918252602091829020835193909201516001600160601b0316600160a01b026001600160a01b039093169290921791015561286a565b6102ff8054600181810183556000839052845160208601516001600160601b0316600160a01b026001600160a01b03909116177f5a4a1f748f8cfa795b59cdc37192794ee567e6029e925719381be08d7ccaf4ec9092019190915590546128679190615975565b90505b836102fd600082825461287d91906158d4565b9091555060019050336001600160a01b031682600080516020615f3c833981519152878860006000196040516128b69493929190615a92565b60405180910390a46128c83385613bce565b6102fa546040516000916001600160a01b03169034908381818185875af1925050503d8060008114612916576040519150601f19603f3d011682016040523d82523d6000602084013e61291b565b606091505b50509050806120cd5760405162461bcd60e51b8152602060048201526003602482015262261a9b60e91b6044820152606401610d15565b600033816129608286613281565b9050838110156129c05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d15565b6129cd82868684036133f1565b506001949350505050565b6129e0613515565b6102f980546001600160a01b0319166001600160a01b0392909216919091179055565b612a0b6138ca565b81612a1581613912565b15612a325760405162461bcd60e51b8152600401610d1590615a5d565b81612a3c81613912565b15612a595760405162461bcd60e51b8152600401610d1590615a5d565b6001600160a01b038416612a955760405162461bcd60e51b815260206004820152600360248201526226189b60e91b6044820152606401610d15565b6001600160a01b038316612ad15760405162461bcd60e51b81526020600482015260036024820152624c313760e81b6044820152606401610d15565b612ad96122bd565b6001600160a01b0316336001600160a01b03161480612b005750336001600160a01b038516145b612b325760405162461bcd60e51b815260206004820152600360248201526209862760eb1b6044820152606401610d15565b6001600160a01b0384811660009081526102916020526040902054811690841614612b855760405162461bcd60e51b81526020600482015260036024820152624c313960e81b6044820152606401610d15565b612b90846001614019565b612b9b836001614019565b60001960005b6001600160a01b03851660009081526102926020526040902054811015612c26576001600160a01b0385811660009081526102926020526040902080549188169183908110612bf257612bf26158e7565b6000918252602090912001546001600160a01b031603612c1457809150612c26565b80612c1e816159ac565b915050612ba1565b506000811215612c3857612c38615af7565b6001600160a01b0380861660009081526102916020908152604080832080546001600160a01b031916905592871682526102929052208054612c7c90600190615975565b81548110612c8c57612c8c6158e7565b60009182526020808320909101546001600160a01b0387811684526102929092526040909220805491909216919083908110612cca57612cca6158e7565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055918616815261029290915260409020805480612d1057612d10615aad565b600082815260209020810160001990810180546001600160a01b03191690550190555050505050565b600033610cc981858561370e565b612d4f613515565b60006102fe54612d686102c6546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015612dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd29190615a79565b612ddc9190615975565b905060008111612e145760405162461bcd60e51b8152602060048201526003602482015262130d0d60ea1b6044820152606401610d15565b611534612e2a6102c6546001600160a01b031690565b82613f27565b612e386138ca565b33612e4281613912565b15612e5f5760405162461bcd60e51b8152600401610d1590615a5d565b81612e736102c6546001600160a01b031690565b6001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015612ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eea9190615a79565b1015612f1e5760405162461bcd60e51b81526020600482015260036024820152624c343760e81b6044820152606401610d15565b816102fe6000828254612f3191906158d4565b9091555060009050336001600160a01b0316600019600080516020615f3c83398151915285866002600019604051612f6c9493929190615a92565b60405180910390a4612f7e33836140ee565b506119bf613ebe565b6102f95460405163191ee97760e31b81526001600160a01b03848116600483015260009283926002929091169063c8f74bb890602401602060405180830381865afa158015612fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ffe9190615a79565b1061300e5750819050600061309c565b600061302b61302661028e546001600160a01b031690565b61416f565b9050600061303985836141dc565b6102fb5490915060009061305a90600160a01b900463ffffffff168461421a565b90506000613069606485614246565b6130738385615b0d565b61307d91906158fd565b90506130898185614274565b94506130958588615975565b9550505050505b9250929050565b6102ff8181548110611a8757600080fd5b60405163106d64cf60e31b8152610290600482015260009073__$3728f51d90da6977d2525dcec632daa0b3$__9063836b267890602401602060405180830381865af4158015613108573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110329190615b24565b6000610ccf8260016142ab565b613141613515565b60006102fc541161317a5760405162461bcd60e51b815260206004820152600360248201526204c36360ec1b6044820152606401610d15565b6102fc546102fe5410156131b65760405162461bcd60e51b81526020600482015260036024820152624c363160e81b6044820152606401610d15565b6102fc546102fe60008282546131cc9190615975565b90915550506102fc805460009091556115346131e66122bd565b8261139a6102c6546001600160a01b031690565b60008061321361302661028e546001600160a01b031690565b9050600061322861322261100c565b836141dc565b6102fb5490915060009061324990600160c01b900463ffffffff168461421a565b90506000613258606485614246565b6132628385615b0d565b61326c91906158fd565b90506132788185614274565b94505050505090565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b6132b4613515565b614e2063ffffffff821611156132f25760405162461bcd60e51b815260206004820152600360248201526209870760eb1b6044820152606401610d15565b6102fb805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b610302818154811061332a57600080fd5b6000918252602090912001546001600160a01b0316905081565b600061103260995490565b613357613515565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610d15565b61338c613515565b61271063ffffffff821611156133ca5760405162461bcd60e51b81526020600482015260036024820152624c343160e81b6044820152606401610d15565b6102fb805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b6001600160a01b0383166134535760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d15565b6001600160a01b0382166134b45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d15565b6001600160a01b0383811660008181526098602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b3361351e6122bd565b6001600160a01b0316146135745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d15565b565b600054610100900460ff1661359d5760405162461bcd60e51b8152600401610d1590615b41565b6135a8858585614811565b6135b2828261486b565b6120cd61489c565b600054610100900460ff166135e15760405162461bcd60e51b8152600401610d1590615b41565b611534816148c3565b600054610100900460ff166136115760405162461bcd60e51b8152600401610d1590615b41565b61028e80546001600160a01b0319166001600160a01b03831617905560405163433e3bad60e11b815261029060048201526000602482015273__$3728f51d90da6977d2525dcec632daa0b3$__9063867c775a9060440160006040518083038186803b15801561368057600080fd5b505af41580156120cd573d6000803e3d6000fd5b60006136a08484613281565b9050600019811461370857818110156136fb5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610d15565b61370884848484036133f1565b50505050565b6001600160a01b0383166137725760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610d15565b6001600160a01b0382166137d45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610d15565b6137df838383614965565b6001600160a01b038316600090815260976020526040902054818110156138575760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610d15565b6001600160a01b0380851660008181526097602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906138b79086815260200190565b60405180910390a36137088484846149a4565b6138d2611ab2565b156135745760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d15565b6101935460405163fe575a8760e01b81526001600160a01b038381166004830152600092169063fe575a8790602401602060405180830381865afa15801561395e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ccf9190615b8c565b6040516001600160a01b0383166024820152604481018290526118ee90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614aad565b6102c6546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa925050508015613a4c575060408051601f3d908101601f19168201909252613a4991810190615bae565b60015b613a565750601290565b919050565b611534613515565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615613a96576118ee83614b82565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015613af0575060408051601f3d908101601f19168201909252613aed91810190615a79565b60015b613b535760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610d15565b600080516020615ef58339815191528114613bc25760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610d15565b506118ee838383614c1e565b6001600160a01b038216613c2e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610d15565b613c3a82600083614965565b6001600160a01b03821660009081526097602052604090205481811015613cae5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610d15565b6001600160a01b03831660008181526097602090815260408083208686039055609980548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36118ee836000846149a4565b6000613d213383613bce565b6102c654613d39906001600160a01b03168484613982565b50600192915050565b6001600160a01b038216613d985760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610d15565b613da460008383614965565b8060996000828254613db691906158d4565b90915550506001600160a01b0382166000818152609760209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36119bf600083836149a4565b6101605460408051635c975abb60e01b815290516000926001600160a01b031691635c975abb9160048083019260209291908290030181865afa158015613e62573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110329190615b8c565b6040516001600160a01b03808516602483015283166044820152606481018290526137089085906323b872dd60e01b906084016139ae565b6000613ec86131fa565b9050806102fe5411613ed75750565b6000816102fe54613ee89190615975565b9050806102fe6000828254613efd9190615975565b90915550506102fb546119bf906001600160a01b03168261139a6102c6546001600160a01b031690565b613f2f613515565b60008111613f655760405162461bcd60e51b815260206004820152600360248201526204c31360ec1b6044820152606401610d15565b6040516370a0823160e01b8152306004820152829082906001600160a01b038316906370a0823190602401602060405180830381865afa158015613fad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fd19190615a79565b10156140055760405162461bcd60e51b81526020600482015260036024820152624c313160e81b6044820152606401610d15565b6118ee6001600160a01b0382163384613982565b6102935460ff1615614029575050565b6001600160a01b038216600090815261028f602052604090205464ffffffffff428116911603614057575050565b6001600160a01b0380831660009081526102916020526040902054168015614083576118ee8183614019565b600061408f84846142ab565b905080156140e557610293805460ff1916600117905560006140b18583614c43565b610293805460ff191690559050806140e3576001600160a01b038516600090815261028f602052604090206003018290555b505b61370884614c9a565b60003330810361414c5760405162461bcd60e51b815260206004820152602360248201527f4552433230577261707065723a20777261707065722063616e2774206465706f6044820152621cda5d60ea1b6064820152608401610d15565b6102c654614165906001600160a01b0316823086613e86565b610cc98484613d42565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156141af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d39190615bae565b60ff1692915050565b6000600382101561420e576141f2826006615975565b6141fd90600a615cb5565b6142079084615b0d565b9050610ccf565b611087836103e8615b0d565b6000600382101561423157614207836103e8615b0d565b61423c82600a615cb5565b6110879084615b0d565b6000600382101561425e5761420783620f4240615b0d565b6142698260036158d4565b61423c90600a615cb5565b6000600382101561429f5761428a826006615975565b61429590600a615cb5565b61420790846158fd565b6110876103e8846158fd565b6001600160a01b038216600090815261028f602090815260408083208151608081018352815464ffffffffff16818401908152835180850190945260018301548452600283015463ffffffff1684860152606082019390935291825260030154918101919091528161431c85614dfc565b82515190915064ffffffffff161580614333575080155b1561434357600092505050610ccf565b815160200151604051630b27cfb160e31b815260009073__$3728f51d90da6977d2525dcec632daa0b3$__9063593e7d889061438790610290908690600401615cc1565b6040805180830381865af41580156143a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143c79190615ce5565b60405163038255fd60e11b8152610290600482015290915060009073__$3728f51d90da6977d2525dcec632daa0b3$__90630704abfa906024016040805180830381865af415801561441d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144419190615d30565b90508460200151955073__$3728f51d90da6977d2525dcec632daa0b3$__634ead0c5384836040518363ffffffff1660e01b8152600401614483929190615d5c565b602060405180830381865af41580156144a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144c49190615b8c565b6147d557604051633e1e5c5360e11b815260009073__$3728f51d90da6977d2525dcec632daa0b3$__90637c3cb8a690614502908790600401615d90565b6040805180830381865af415801561451e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145429190615d30565b604051630b27cfb160e31b815290915060009073__$3728f51d90da6977d2525dcec632daa0b3$__9063593e7d889061458390610290908690600401615cc1565b6040805180830381865af415801561459f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145c39190615ce5565b875151602082015186519293506145f1928c6145e05760006145e2565b8b5b6145ec908b6158d4565b614ea5565b6145fb90896158d4565b97505b81945080935073__$3728f51d90da6977d2525dcec632daa0b3$__634ead0c5386856040518363ffffffff1660e01b815260040161463d929190615d5c565b602060405180830381865af415801561465a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061467e9190615b8c565b6147a857604051633e1e5c5360e11b815273__$3728f51d90da6977d2525dcec632daa0b3$__90637c3cb8a6906146b9908890600401615d90565b6040805180830381865af41580156146d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146f99190615d30565b604051630b27cfb160e31b815290925073__$3728f51d90da6977d2525dcec632daa0b3$__9063593e7d889061473790610290908690600401615cc1565b6040805180830381865af4158015614753573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147779190615ce5565b90506147978460200151826020015186600001518c6145e05760006145e2565b6147a190896158d4565b97506145fe565b6147c284602001514286600001518c6145e05760006145e2565b6147cc90896158d4565b97505050614806565b84515182516147f9919042908a6147ed5760006147ef565b895b6145ec90896158d4565b61480390876158d4565b95505b505050505092915050565b600054610100900460ff166148385760405162461bcd60e51b8152600401610d1590615b41565b61484061489c565b61484983614f91565b614851614fc1565b61485a82614ff0565b6148638161503a565b6118ee61489c565b600054610100900460ff166148925760405162461bcd60e51b8152600401610d1590615b41565b6119bf8282615084565b600054610100900460ff166135745760405162461bcd60e51b8152600401610d1590615b41565b600054610100900460ff166148ea5760405162461bcd60e51b8152600401610d1590615b41565b306001600160a01b038216036149425760405162461bcd60e51b815260206004820152601e60248201527f4552433230577261707065723a2063616e6e6f742073656c66207772617000006044820152606401610d15565b6102c680546001600160a01b0319166001600160a01b0392909216919091179055565b6149708383836150c4565b6001600160a01b0383161561498a5761498a836001614019565b6001600160a01b038216156118ee576118ee826001614019565b6001600160a01b03831615806149c157506001600160a01b038216155b15614a01577f980f7e6fb44009001d533a10bc3bd558b4efe22dcb4888bca4767aa93c71ce1f6149ef61100c565b60405190815260200160405180910390a15b60005b61030254811015613708576103028181548110614a2357614a236158e7565b600091825260209091200154604051636e0d037d60e11b81526001600160a01b0386811660048301528581166024830152604482018590529091169063dc1a06fa90606401600060405180830381600087803b158015614a8257600080fd5b505af1158015614a96573d6000803e3d6000fd5b505050508080614aa5906159ac565b915050614a04565b6000614b02826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166151259092919063ffffffff16565b9050805160001480614b23575080806020019051810190614b239190615b8c565b6118ee5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d15565b6001600160a01b0381163b614bef5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610d15565b600080516020615ef583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b614c2783615134565b600082511180614c345750805b156118ee576137088383615174565b6000826001600160a01b03167f05a71d417f891ba4b7a94b48d1b1f4b59b070921cba593b3c72a05a5587a78a9614c7985612572565b60408051918252602082018690520160405180910390a2613d398383613d42565b6001600160a01b038116600090815261028f602052604090819020805464ffffffffff19164264ffffffffff161790555163038255fd60e11b8152610290600482015273__$3728f51d90da6977d2525dcec632daa0b3$__90630704abfa906024016040805180830381865af4158015614d18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d3c9190615d30565b6001600160a01b038216600090815261028f602090815260408220835160018201559201516002909201805463ffffffff191663ffffffff909316929092179091555b6001600160a01b038216600090815261029260205260409020548110156119bf576001600160a01b0382166000908152610292602052604090208054614dea919083908110614dd057614dd06158e7565b6000918252602090912001546001600160a01b0316614c9a565b80614df4816159ac565b915050614d7f565b6000614e0782615199565b614e1190826158d4565b905060005b6001600160a01b03831660009081526102926020526040902054811015614e9f576001600160a01b0383166000908152610292602052604090208054614e81919083908110614e6757614e676158e7565b6000918252602090912001546001600160a01b0316614dfc565b614e8b90836158d4565b915080614e97816159ac565b915050614e16565b50919050565b600080614ebe61302661028e546001600160a01b031690565b90506000614edc614ecf8888615dad565b64ffffffffff1683614246565b90506000614eee6301e1338084614246565b614ef9600185614246565b614f039084615b0d565b614f0d91906158fd565b90506000614f1f8761ffff168561421a565b90506000614f2e600186614246565b614f388385615b0d565b614f4291906158fd565b90506000614f5088876141dc565b90506000614f5f606488614246565b614f698484615b0d565b614f7391906158fd565b9050614f7f8188614274565b9750505050505050505b949350505050565b600054610100900460ff16614fb85760405162461bcd60e51b8152600401610d1590615b41565b611534816151a4565b600054610100900460ff16614fe85760405162461bcd60e51b8152600401610d1590615b41565b6135746151ee565b600054610100900460ff166150175760405162461bcd60e51b8152600401610d1590615b41565b61016080546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166150615760405162461bcd60e51b8152600401610d1590615b41565b61019380546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166150ab5760405162461bcd60e51b8152600401610d1590615b41565b609a6150b78382615e18565b50609b6118ee8282615e18565b6150cc6138ca565b826150d681613912565b156150f35760405162461bcd60e51b8152600401610d1590615a5d565b826150fd81613912565b1561511a5760405162461bcd60e51b8152600401610d1590615a5d565b6120cd858585615221565b6060614f898484600085615289565b61513d81614b82565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606110878383604051806060016040528060278152602001615f1560279139615364565b6000610ccf82612572565b600054610100900460ff166151cb5760405162461bcd60e51b8152600401610d1590615b41565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166152155760405162461bcd60e51b8152600401610d1590615b41565b60c9805460ff19169055565b615229611ab2565b156118ee5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610d15565b6060824710156152ea5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610d15565b600080866001600160a01b031685876040516153069190615ed8565b60006040518083038185875af1925050503d8060008114615343576040519150601f19603f3d011682016040523d82523d6000602084013e615348565b606091505b5091509150615359878383876153dc565b979650505050505050565b6060600080856001600160a01b0316856040516153819190615ed8565b600060405180830381855af49150503d80600081146153bc576040519150601f19603f3d011682016040523d82523d6000602084013e6153c1565b606091505b50915091506153d2868383876153dc565b9695505050505050565b6060831561544b578251600003615444576001600160a01b0385163b6154445760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d15565b5081614f89565b614f8983838151156154605781518083602001fd5b8060405162461bcd60e51b8152600401610d15919061549e565b60005b8381101561549557818101518382015260200161547d565b50506000910152565b60208152600082518060208401526154bd81604085016020870161547a565b601f01601f19169190910160400192915050565b6001600160a01b038116811461153457600080fd5b600080604083850312156154f957600080fd5b8235615504816154d1565b946020939093013593505050565b60006020828403121561552457600080fd5b8135611087816154d1565b600080600080600060a0868803121561554757600080fd5b8535615552816154d1565b94506020860135615562816154d1565b93506040860135615572816154d1565b92506060860135615582816154d1565b91506080860135615592816154d1565b809150509295509295909350565b6000806000606084860312156155b557600080fd5b83356155c0816154d1565b925060208401356155d0816154d1565b929592945050506040919091013590565b6000602082840312156155f357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715615633576156336155fa565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715615662576156626155fa565b604052919050565b600067ffffffffffffffff821115615684576156846155fa565b50601f01601f191660200190565b600080604083850312156156a557600080fd5b82356156b0816154d1565b9150602083013567ffffffffffffffff8111156156cc57600080fd5b8301601f810185136156dd57600080fd5b80356156f06156eb8261566a565b615639565b81815286602083850101111561570557600080fd5b816020840160208301376000602083830101528093505050509250929050565b61ffff8116811461153457600080fd5b60006020828403121561574757600080fd5b813561108781615725565b6000806040838503121561576557600080fd5b8235615770816154d1565b91506020830135615780816154d1565b809150509250929050565b63ffffffff8116811461153457600080fd5b6000602082840312156157af57600080fd5b81356110878161578b565b600181811c908216806157ce57607f821691505b602082108103614e9f57634e487b7160e01b600052602260045260246000fd5b60006020828403121561580057600080fd5b815167ffffffffffffffff81111561581757600080fd5b8201601f8101841361582857600080fd5b80516158366156eb8261566a565b81815285602083850101111561584b57600080fd5b61585c82602083016020860161547a565b95945050505050565b6702632b233b4ba3c960c51b81526000825161588881600885016020870161547a565b9190910160080192915050565b601360fa1b8152600082516158b181600185016020870161547a565b9190910160010192915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ccf57610ccf6158be565b634e487b7160e01b600052603260045260246000fd5b60008261591a57634e487b7160e01b600052601260045260246000fd5b500490565b6004811061593d57634e487b7160e01b600052602160045260246000fd5b9052565b6001600160601b0385811682528416602082015260808101615966604083018561591f565b82606083015295945050505050565b81810381811115610ccf57610ccf6158be565b6001600160601b03851681526020810184905260808101615966604083018561591f565b6000600182016159be576159be6158be565b5060010190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252600290820152614c3960f01b604082015260600190565b600060208284031215615a8b57600080fd5b5051919050565b8481526020810184905260808101615966604083018561591f565b634e487b7160e01b600052603160045260246000fd5b600060208284031215615ad557600080fd5b8151611087816154d1565b600081615aef57615aef6158be565b506000190190565b634e487b7160e01b600052600160045260246000fd5b8082028115828204841417610ccf57610ccf6158be565b600060208284031215615b3657600080fd5b815161108781615725565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060208284031215615b9e57600080fd5b8151801515811461108757600080fd5b600060208284031215615bc057600080fd5b815160ff8116811461108757600080fd5b600181815b80851115615c0c578160001904821115615bf257615bf26158be565b80851615615bff57918102915b93841c9390800290615bd6565b509250929050565b600082615c2357506001610ccf565b81615c3057506000610ccf565b8160018114615c465760028114615c5057615c6c565b6001915050610ccf565b60ff841115615c6157615c616158be565b50506001821b610ccf565b5060208310610133831016604e8410600b8410161715615c8f575081810a610ccf565b615c998383615bd1565b8060001904821115615cad57615cad6158be565b029392505050565b60006110878383615c14565b8281526060810161108760208301848051825260209081015163ffffffff16910152565b600060408284031215615cf757600080fd5b615cff615610565b8251615d0a81615725565b8152602083015164ffffffffff81168114615d2457600080fd5b60208201529392505050565b600060408284031215615d4257600080fd5b615d4a615610565b825181526020830151615d248161578b565b8251815260208084015163ffffffff16908201526080810182516040830152602083015163ffffffff166060830152611087565b8151815260208083015163ffffffff169082015260408101610ccf565b64ffffffffff828116828216039080821115615dcb57615dcb6158be565b5092915050565b601f8211156118ee57600081815260208120601f850160051c81016020861015615df95750805b601f850160051c820191505b8181101561100457828155600101615e05565b815167ffffffffffffffff811115615e3257615e326155fa565b615e4681615e4084546157ba565b84615dd2565b602080601f831160018114615e7b5760008415615e635750858301515b600019600386901b1c1916600185901b178555611004565b600085815260208120601f198616915b82811015615eaa57888601518255948401946001909101908401615e8b565b5085821015615ec85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615eea81846020870161547a565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564d58e94604d90293a1c1ad95bfe6a6e6c352c33c5774a4b6b4f4b6f7460da29c5a2646970667358221220845d48641891e9c632d25ff3d5dc0d5f5747737754054dfe5d7e5f080ee59cdf64736f6c63430008120033", + "numDeployments": 1, + "solcInputHash": "1d9f98e9f73009a42653e1abaf15e178", + "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newAPRUD7x3\",\"type\":\"uint16\"}],\"name\":\"APRChangeEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"int256\",\"name\":\"id\",\"type\":\"int256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"enum LToken.Action\",\"name\":\"action\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountAfterFees\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum LToken.Status\",\"name\":\"newStatus\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"newId\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"referralCode\",\"type\":\"string\"}],\"name\":\"ActivityEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"balanceBefore\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewards\",\"type\":\"uint256\"}],\"name\":\"MintedRewardsEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newTVL\",\"type\":\"uint256\"}],\"name\":\"TVLChangeEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"name\":\"cancelWithdrawalRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"refCode\",\"type\":\"string\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositFor\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feesRateUD7x3\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"frozenRequests\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"amount\",\"type\":\"uint96\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fund\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAPR\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getExpectedRetained\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getWithdrawnAmountAndFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"withdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalBlacklist\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalPause\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"globalOwner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"globalPause_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"globalBlacklist_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ldyStaking_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"underlyingToken\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"instantWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"invested\",\"outputs\":[{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ldyStaking\",\"outputs\":[{\"internalType\":\"contract LDYStaking\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"listenerContract\",\"type\":\"address\"}],\"name\":\"listenToTransfers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"name\":\"processBigQueuedRequest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"processQueuedRequests\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"realBalanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"realTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"recoverERC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"recoverUnderlying\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"repatriate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"requestWithdrawal\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"retentionRateUD7x3\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardsRedirectsFromTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"rewardsRedirectsToFrom\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"aprUD7x3\",\"type\":\"uint16\"}],\"name\":\"setAPR\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"feesRateUD7x3_\",\"type\":\"uint32\"}],\"name\":\"setFeesRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"fund_\",\"type\":\"address\"}],\"name\":\"setFund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"ldyStakingAddress\",\"type\":\"address\"}],\"name\":\"setLDYStaking\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"retentionRateUD7x3_\",\"type\":\"uint32\"}],\"name\":\"setRetentionRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"withdrawalFeeInEth_\",\"type\":\"uint256\"}],\"name\":\"setWithdrawalFeeInEth\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"withdrawer_\",\"type\":\"address\"}],\"name\":\"setWithdrawer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"startRewardsRedirection\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"stopRewardsRedirection\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalQueued\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transfersListeners\",\"outputs\":[{\"internalType\":\"contract ITransfersListener\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unclaimedFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"underlying\",\"outputs\":[{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"listenerContract\",\"type\":\"address\"}],\"name\":\"unlistenToTransfers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"unmintedRewardsOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usableUnderlyings\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTo\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawalFeeInEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdrawalQueue\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"amount\",\"type\":\"uint96\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawalQueueCursor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawer\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Lila Rest (https://lila.rest)\",\"custom:oz-upgrades-unsafe-allow\":\"external-library-linking\",\"custom:security-contact\":\"security@ledgity.comsecurity@ledgity.com\",\"details\":\"Definitions: - Deposit: Swap of underlying tokens for L-Tokens (1:1 ratio). - Withdrawal: Swap of L-Tokens for underlying tokens (1:1 ratio, minus applicable fees). - Instant: Processed immediately. - Request: Queued for later processing. - Big Request: A requested withdrawal exceeding half of the retention rate. - (Withdrawal) queue: A list of all requested withdrawals sorted by priority. - Request ID: The index of a withdrawal request in the queue array. - Retention rate: Maximum fraction of underlying tokens TVL the contract can retain. - Fees Rate: Percentage of fees applied to successful withdrawals. - Usable underlyings: Amount of underlying tokens that have been deposited through expected ways and are so considered safe to use by the contract. - Transfers listeners: External contracts listening on L-Tokens transfers. - Fund wallet: Wallet managed by the Ledgity's financial team. - Withdrawer wallet: Managed by an off-chain server to automate withdrawal request processing. Note that words between parenthesis are sometimes omitted for brevity.Deployment notice: This contract can safely receive funds immediately after initialization. (i.e., there is no way for funds to be sent to non-owned addresses). It is, however, recommended to replace ASAP owner and fund wallets with multi-sig wallets.For further details, see \\\"LToken\\\" section of whitepaper.\",\"events\":{\"APRChangeEvent(uint16)\":{\"params\":{\"newAPRUD7x3\":\"The new APR in UD7x3 format.\"}},\"ActivityEvent(int256,address,uint8,uint256,uint256,uint8,int256,string)\":{\"params\":{\"account\":\"The account involved in the activity.\",\"action\":\"The type of activity.\",\"amount\":\"The amount of underlying tokens involved in the activity.\",\"id\":\"ID of the involved withdrawal request or NO_ID (-1) if not applicable.\",\"newId\":\"The new ID of the request if it has been moved in the queue.\",\"newStatus\":\"The new status of the activity.\"}},\"AdminChanged(address,address)\":{\"details\":\"Emitted when the admin account has changed.\"},\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"BeaconUpgraded(address)\":{\"details\":\"Emitted when the beacon is changed.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"MintedRewardsEvent(address,uint256,uint256)\":{\"params\":{\"account\":\"The account that received the rewards.\",\"balanceBefore\":\"The balance of the account before the minting.\",\"rewards\":\"The amount of minted rewards.\"}},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"TVLChangeEvent(uint256)\":{\"details\":\"TVL = realTotalSupply()\",\"params\":{\"newTVL\":\"The new TVL of the contract.\"}},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"This is an oOverride of ERC20Upgradeable.balanceOf() that rewards that have not been yet minted to the specified account.\",\"params\":{\"account\":\"The account to check the total balance of.\"},\"returns\":{\"_0\":\"The total balance of the account.\"}},\"cancelWithdrawalRequest(uint256)\":{\"params\":{\"requestId\":\"The ID of the withdrawal request to cancel.\"}},\"decimals()\":{\"details\":\"The ERC20WrapperUpgradeable version is preferred because it mirrors the decimals amount of the underlying stablecoin token.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"deposit(uint256,string)\":{\"params\":{\"amount\":\"The amount of underlying tokens to deposit.\",\"refCode\":\"The Referral code\"}},\"depositFor(address,uint256)\":{\"details\":\"Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens.\"},\"getAPR()\":{\"returns\":{\"_0\":\"The current APR in UD7x3 format.\"}},\"getExpectedRetained()\":{\"returns\":{\"amount\":\"The expected amount of retained underlying tokens.\"}},\"getWithdrawnAmountAndFees(address,uint256)\":{\"params\":{\"account\":\"The account initiating the withdrawal.\",\"amount\":\"The amount of the withdrawal.\"}},\"globalBlacklist()\":{\"returns\":{\"_0\":\"The address of the GlobalBlacklist contract.\"}},\"globalOwner()\":{\"returns\":{\"_0\":\"The address of the GlobalOwner contract.\"}},\"globalPause()\":{\"returns\":{\"_0\":\"The address of the GlobalPause contract.\"}},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"initialize(address,address,address,address,address)\":{\"details\":\"See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\",\"params\":{\"globalBlacklist_\":\"The address of the GlobalBlacklist contract.\",\"globalOwner_\":\"The address of the GlobalOwner contract.\",\"globalPause_\":\"The address of the GlobalPause contract.\",\"underlyingToken\":\"The address of the underlying stablecoin ERC20 token.\"}},\"instantWithdrawal(uint256)\":{\"details\":\"In order to save some gas and time to users, frontends should propose this function to users only when it has been verified that it will not revert. They should propose the requestWithdrawal() function otherwise.\",\"params\":{\"amount\":\"The amount L-Tokens to withdraw.\"}},\"invested()\":{\"returns\":{\"_0\":\"The reference to the invested token contract.\"}},\"listenToTransfers(address)\":{\"details\":\"Each time a transfer occurs, the onLTokenTransfer() function of the specified contract will be called.IMPORTANT SECURITY NOTE: This method is not intended to be used with contracts that are not owned by the Ledgity team.\",\"params\":{\"listenerContract\":\"The address of the new transfers listener contract.\"}},\"name()\":{\"details\":\"Returns the name of the token.\"},\"owner()\":{\"returns\":{\"_0\":\"The address of the owner\"}},\"paused()\":{\"details\":\"Both version are the same as ERC20BaseUpgradeable.paused() mirrors GlobalPausableUpgradeable.paused(), so a random one is chosen.\",\"returns\":{\"_0\":\"Whether the contract is paused or not.\"}},\"processBigQueuedRequest(uint256)\":{\"details\":\"In contrast to non-big requests processing, this function will uses to fund wallet's balance to fill the request. This allows processing requests that are greater than retention rate without having to exceed this rate on the contract.\",\"params\":{\"requestId\":\"The ID of the big request to process.\"}},\"processQueuedRequests()\":{\"details\":\"For further details, see \\\"LToken > Withdrawals\\\" section of whitepaper.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. 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. This is guaranteed by the `notDelegated` modifier.\"},\"realBalanceOf(address)\":{\"params\":{\"account\":\"The account to check the real balance of.\"},\"returns\":{\"_0\":\"The real balance of the account.\"}},\"realTotalSupply()\":{\"returns\":{\"_0\":\"The real total supply of L-Tokens.\"}},\"recoverERC20(address,uint256)\":{\"details\":\"This override of RecoverableUpgradeable.recoverERC20() prevents the recovered token from being the underlying token.\",\"params\":{\"amount\":\"The amount of token to recover.\",\"tokenAddress\":\"The address of the token to recover.\"}},\"recoverUnderlying()\":{\"details\":\"To prevent owner from being able to drain the contract, this function only allows recovering \\\"unusable\\\" underlying tokens, i.e., tokens that have not been sent through fund() or deposit() functions.\"},\"repatriate(uint256)\":{\"details\":\"The function will revert if repatriated amount makes the contract exceeding the retention rate.\",\"params\":{\"amount\":\"The amount of underlying tokens to repatriate.\"}},\"requestWithdrawal(uint256)\":{\"details\":\"The sender must attach withdrawalFeeInETH to pre-pay the future processing gas fees paid by the withdrawer wallet.\",\"params\":{\"amount\":\"The amount L-Tokens to withdraw.\"}},\"setAPR(uint16)\":{\"params\":{\"aprUD7x3\":\"The new APR in UD7x3 format.\"}},\"setFeesRate(uint32)\":{\"params\":{\"feesRateUD7x3_\":\"The new withdrawal fee rate in UD7x3 format.\"}},\"setFund(address)\":{\"params\":{\"fund_\":\"The address of the new fund wallet.\"}},\"setLDYStaking(address)\":{\"params\":{\"ldyStakingAddress\":\"The address of the new LDYStaking contract.\"}},\"setRetentionRate(uint32)\":{\"details\":\"The retention rate is capped at 10%, which ensures that no more than 10% of deposited assets will ever be exposed in this contract (reduces attack surface).\",\"params\":{\"retentionRateUD7x3_\":\"The new retention rate in UD7x3 format.\"}},\"setWithdrawalFeeInEth(uint256)\":{\"params\":{\"withdrawalFeeInEth_\":\"The new withdrawalFee in ETH.\"}},\"setWithdrawer(address)\":{\"params\":{\"withdrawer_\":\"The address of the new withdrawer wallet.\"}},\"startRewardsRedirection(address,address)\":{\"params\":{\"from\":\"The address of the account to redirect rewards from.\",\"to\":\"The address of the account to redirect rewards to.\"}},\"stopRewardsRedirection(address,address)\":{\"params\":{\"from\":\"The address of the account to stop redirecting rewards from.\",\"to\":\"The address of the account to stop redirecting rewards to.\"}},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"returns\":{\"_0\":\"The total supply of L-Tokens.\"}},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.\"},\"underlying()\":{\"details\":\"Returns the address of the underlying ERC-20 token that is being wrapped.\"},\"unlistenToTransfers(address)\":{\"details\":\"The onLTokenTransfer() function of the specified contract will not be called anymore each time a L-Token transfer occurs.\",\"params\":{\"listenerContract\":\"The address of the listener contract.\"}},\"unmintedRewardsOf(address)\":{\"details\":\"This is a public implementation of InvestUpgradeable_rewardsOf(). In the context of LToken, this function returns the amount of rewards that have not been distributed/minted yet to the specified account.This is particularly useful for off-chain services to display charts and statistics, as seen in the Ledgity Yield's frontend.\",\"params\":{\"account\":\"The account to check the unminted rewards of.\"},\"returns\":{\"_0\":\"The amount of account's unminted rewards.\"}},\"upgradeTo(address)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"withdrawTo(address,uint256)\":{\"details\":\"Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens.\"}},\"stateVariables\":{\"frozenRequests\":{\"details\":\"If a request emitter as been blacklisted, its request is moved here to prevent it from blocking the queue.\"},\"transfersListeners\":{\"details\":\"onLTokenTransfer() functions of those contracts will be called on each transfer.\"},\"usableUnderlyings\":{\"details\":\"Are usable, only underlying tokens deposit through deposit() or fund() functions.\"}},\"title\":\"LToken\",\"version\":1},\"userdoc\":{\"events\":{\"APRChangeEvent(uint16)\":{\"notice\":\"Emitted to inform listeners about a change in the APR's value.\"},\"ActivityEvent(int256,address,uint8,uint256,uint256,uint8,int256,string)\":{\"notice\":\"Emitted to inform listerners about an activity related to deposits and withdrawals.\"},\"MintedRewardsEvent(address,uint256,uint256)\":{\"notice\":\"Emitted to inform listeners that some rewards have been minted.\"},\"TVLChangeEvent(uint256)\":{\"notice\":\"Emitted to inform listeners about a change in the contract's TVL.\"}},\"kind\":\"user\",\"methods\":{\"balanceOf(address)\":{\"notice\":\"Retrieves the total balance of L-Tokens that belong to the account.\"},\"cancelWithdrawalRequest(uint256)\":{\"notice\":\"Cancels a given withdrawal request. The request emitter receive back its L-Tokens and no fees will be charged.\"},\"claimFees()\":{\"notice\":\"Used by owner to claim fees generated from successful withdrawals.\"},\"decimals()\":{\"notice\":\"Required override of decimals() which is implemented by both ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts.\"},\"deposit(uint256,string)\":{\"notice\":\"Allows exchanging some underlying tokens for the same amount of L-Tokens.\"},\"depositFor(address,uint256)\":{\"notice\":\"Override of ERC20WrapperUpgradeable.depositFor() that reverts. Use deposit() function instead.\"},\"feesRateUD7x3()\":{\"notice\":\"Holds the withdrawal fees rate in UD7x3 format (e.g., 350 = 0.350%).\"},\"frozenRequests(uint256)\":{\"notice\":\"Holds a list of all currently frozen withdrawal requests.\"},\"fund()\":{\"notice\":\"Holds address of fund wallet (managed by Ledgity financial team).\"},\"getAPR()\":{\"notice\":\"Retrieves the most recently set APR.\"},\"getExpectedRetained()\":{\"notice\":\"Computes the maximum amount of underlying tokens that should be retained by the contract (based on retention rate).\"},\"getWithdrawnAmountAndFees(address,uint256)\":{\"notice\":\"Computes fees and net withdrawn amount for a given account withdrawing a given amount.\"},\"globalBlacklist()\":{\"notice\":\"Retrieves the address of GlobalBlacklist contract.\"},\"globalOwner()\":{\"notice\":\"Retrieves the address of GlobalOwner contract.\"},\"globalPause()\":{\"notice\":\"Retrieves the address of GlobalPause contract.\"},\"initialize(address,address,address,address,address)\":{\"notice\":\"Initializer function of the contract. It replaces the constructor() function in the context of upgradeable contracts.\"},\"instantWithdrawal(uint256)\":{\"notice\":\"Allows instaneously exchanging a given amount of L-Tokens for the same amount of underlying tokens. It will fail if the contract currently doesn't hold enough underlying tokens to cover the withdrawal.\"},\"invested()\":{\"notice\":\"Retrieves the reference to the invested token contract.\"},\"ldyStaking()\":{\"notice\":\"Holds a reference to the LDYStaking contract.\"},\"listenToTransfers(address)\":{\"notice\":\"Adds a new contract to the L-Token transfers list.\"},\"owner()\":{\"notice\":\"Override of OwnableUpgradeable.owner() that retrieves the owner's address from the GlobalOwner contract instead.\"},\"paused()\":{\"notice\":\"Required override of paused() which is implemented by both GlobalPausableUpgradeable and ERC20BaseUpgradeable parent contracts.\"},\"processBigQueuedRequest(uint256)\":{\"notice\":\"Processes a given queued big withdrawal request (one that exceeds half of the retention rate).\"},\"processQueuedRequests()\":{\"notice\":\"Processes queued withdrawal requests until there is else no more requests, else not enough underlying tokens to continue.\"},\"realBalanceOf(address)\":{\"notice\":\"Retrieves the \\\"real\\\" balance of an account, i.e., excluding its not yet minted/distributed rewards.\"},\"realTotalSupply()\":{\"notice\":\"Returns the \\\"real\\\" amount of existing L-Tokens, i.e., excluding not yet minted withdrawal fees and L-Tokens currently in the withdrawal queue.\"},\"recoverERC20(address,uint256)\":{\"notice\":\"Recovers a specified amount of a given token address.\"},\"recoverUnderlying()\":{\"notice\":\"Recovers underlying tokens accidentally sent to the contract.\"},\"renounceOwnership()\":{\"notice\":\"Override of OwnableUpgradeable.renounceOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"repatriate(uint256)\":{\"notice\":\"Used by the fund wallet to repatriate underlying tokens on the contract whenever those are required to fulfill some withdrawal requests.\"},\"requestWithdrawal(uint256)\":{\"notice\":\"Allows requesting the exchange of a given amount of L-Tokens for the same amount of underlying tokens. The request will be automatically processed later.\"},\"retentionRateUD7x3()\":{\"notice\":\"Holds the retention rate in UD7x3 format.\"},\"rewardsRedirectsFromTo(address)\":{\"notice\":\"Holds active rewards redirections in both from->to and to->from[] ways.\"},\"setAPR(uint16)\":{\"notice\":\"Updates the investment APR. Restricted to owner.\"},\"setFeesRate(uint32)\":{\"notice\":\"Updates the current withdrawal fee rate.\"},\"setFund(address)\":{\"notice\":\"Updates the address of the fund wallet.\"},\"setLDYStaking(address)\":{\"notice\":\"Updates the address of LDYStaking contract.\"},\"setRetentionRate(uint32)\":{\"notice\":\"Updates the current underlying token retention rate.\"},\"setWithdrawalFeeInEth(uint256)\":{\"notice\":\"Updates the current withdrawalFeeInETH.\"},\"setWithdrawer(address)\":{\"notice\":\"Updates the address of the withdrawer wallet.\"},\"startRewardsRedirection(address,address)\":{\"notice\":\"Enables redirection of rewards from one account to another.\"},\"stopRewardsRedirection(address,address)\":{\"notice\":\"Disable an active rewards redirection.\"},\"totalQueued()\":{\"notice\":\"Holds the amount of L-Tokens currently in the withdrawal queue.\"},\"totalSupply()\":{\"notice\":\"Retrives the total supply of L-Tokens, including not yet minted withdrawal fees and L-Tokens currently in the withdrawal queue.\"},\"transferOwnership(address)\":{\"notice\":\"Override of OwnableUpgradeable.transferOwnership() that always reverts. Ownership is managed by the GlobalOwner contract and must be modified there.\"},\"transfersListeners(uint256)\":{\"notice\":\"Holds a list of contracts' references that are listening to L-Tokens transfers.\"},\"unclaimedFees()\":{\"notice\":\"Holds the amount of withdrawal fees not yet claimed by contract's owner.\"},\"unlistenToTransfers(address)\":{\"notice\":\"Removes a contract from the L-Token transfers list.\"},\"unmintedRewardsOf(address)\":{\"notice\":\"Retrieves the amount of given account's not yet minted rewards.\"},\"usableUnderlyings()\":{\"notice\":\"Holds the amount of underlying tokens considered as usable by the contract.\"},\"withdrawTo(address,uint256)\":{\"notice\":\"Override of ERC20WrapperUpgradeable.withdrawTo() that reverts. Use instantWithdrawal() or requestWithdrawal() functions instead.\"},\"withdrawalFeeInEth()\":{\"notice\":\"Holds the withdrawalFee amount in ETH that will be sent to withdrawer wallet.\"},\"withdrawalQueue(uint256)\":{\"notice\":\"Holds an ordered list of active withdrawal requests.\"},\"withdrawalQueueCursor()\":{\"notice\":\"Holds the index of the next withdrawal request to process in the queue.\"},\"withdrawer()\":{\"notice\":\"Holds address of withdrawer wallet (managed by withdrawal server).\"}},\"notice\":\"Main contract of the Ledgity Yield protocol. It powers every L-Token (i.e., investment pools backed by RWA). An L-Token is an ERC20 wrapper around a stablecoin. As soon as a wallet holds some L-Tokens, it starts receiving rewards in the form of additional L-Tokens, which are auto-compounded over time.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/src/LToken.sol\":\"LToken\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x84efb8889801b0ac817324aff6acc691d07bbee816b671817132911d287a8c63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x4075622496acc77fd6d4de4cc30a8577a744d5c75afad33fdeacf1704d6eda98\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n *\\n * _Available since v4.8.3._\\n */\\ninterface IERC1967Upgradeable {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0x47d6e06872b12e72c79d1b5eb55842f860b5fb1207b2317c2358d2766b950a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/IERC1967Upgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x584ebdf9c1118a7c773f98788e3f3ede01982bdf8932aa06f5acc7d54876e161\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeTo(address newImplementation) public virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xb607cb94c27e89750f5ae2ccebcb94e654e926f6125f4fd4c6262c89875118ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x40c636b4572ff5f1dc50cf22097e93c0723ee14eff87e99ac2b02636eeca1250\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Returns true if the reentrancy guard is currently set to \\\"entered\\\", which indicates there is a\\n * `nonReentrant` function in the call stack.\\n */\\n function _reentrancyGuardEntered() internal view returns (bool) {\\n return _status == _ENTERED;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xb82ef33f43b6b96109687d91b39c94573fdccaaa423fe28e8ba0977b31c023e0\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20Upgradeable.sol\\\";\\nimport \\\"./extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport \\\"../../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * The default value of {decimals} is 18. To change this, you should override\\n * this function so it returns a different value.\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {\\n __ERC20_init_unchained(name_, symbol_);\\n }\\n\\n function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the default value returned by this function, unless\\n * it's overridden.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, allowance(owner, spender) + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = allowance(owner, spender);\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `from` to `to`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(address from, address to, uint256 amount) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\\n // decrementing then incrementing.\\n _balances[to] += amount;\\n }\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n unchecked {\\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\\n _balances[account] += amount;\\n }\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n // Overflow not possible: amount <= accountBalance <= totalSupply.\\n _totalSupply -= amount;\\n }\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0xd14a627157b9a411d2410713e5dd3a377e9064bd5c194a90748bbf27ea625784\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x0e1f0f5f62f67a881cd1a9597acbc0a5e4071f3c2c10449a183b922ae7272e3f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC20Upgradeable.sol\\\";\\nimport \\\"../../../security/PausableUpgradeable.sol\\\";\\nimport \\\"../../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev ERC20 token with pausable token transfers, minting and burning.\\n *\\n * Useful for scenarios such as preventing trades until the end of an evaluation\\n * period, or having an emergency switch for freezing all token transfers in the\\n * event of a large bug.\\n *\\n * IMPORTANT: This contract does not include public pause and unpause functions. In\\n * addition to inheriting this contract, you must define both functions, invoking the\\n * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate\\n * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will\\n * make the contract unpausable.\\n */\\nabstract contract ERC20PausableUpgradeable is Initializable, ERC20Upgradeable, PausableUpgradeable {\\n function __ERC20Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __ERC20Pausable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev See {ERC20-_beforeTokenTransfer}.\\n *\\n * Requirements:\\n *\\n * - the contract must not be paused.\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\\n super._beforeTokenTransfer(from, to, amount);\\n\\n require(!paused(), \\\"ERC20Pausable: token transfer while paused\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xf0bd7f71ffae5f0addd375e8511fbf2ad8ca0c9b2606c32d92bdda7d76a7a81c\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Wrapper.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC20Upgradeable.sol\\\";\\nimport \\\"../utils/SafeERC20Upgradeable.sol\\\";\\nimport \\\"../../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Extension of the ERC20 token contract to support token wrapping.\\n *\\n * Users can deposit and withdraw \\\"underlying tokens\\\" and receive a matching number of \\\"wrapped tokens\\\". This is useful\\n * in conjunction with other modules. For example, combining this wrapping mechanism with {ERC20Votes} will allow the\\n * wrapping of an existing \\\"basic\\\" ERC20 into a governance token.\\n *\\n * _Available since v4.2._\\n *\\n * @custom:storage-size 51\\n */\\nabstract contract ERC20WrapperUpgradeable is Initializable, ERC20Upgradeable {\\n IERC20Upgradeable private _underlying;\\n\\n function __ERC20Wrapper_init(IERC20Upgradeable underlyingToken) internal onlyInitializing {\\n __ERC20Wrapper_init_unchained(underlyingToken);\\n }\\n\\n function __ERC20Wrapper_init_unchained(IERC20Upgradeable underlyingToken) internal onlyInitializing {\\n require(underlyingToken != this, \\\"ERC20Wrapper: cannot self wrap\\\");\\n _underlying = underlyingToken;\\n }\\n\\n /**\\n * @dev See {ERC20-decimals}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n try IERC20MetadataUpgradeable(address(_underlying)).decimals() returns (uint8 value) {\\n return value;\\n } catch {\\n return super.decimals();\\n }\\n }\\n\\n /**\\n * @dev Returns the address of the underlying ERC-20 token that is being wrapped.\\n */\\n function underlying() public view returns (IERC20Upgradeable) {\\n return _underlying;\\n }\\n\\n /**\\n * @dev Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens.\\n */\\n function depositFor(address account, uint256 amount) public virtual returns (bool) {\\n address sender = _msgSender();\\n require(sender != address(this), \\\"ERC20Wrapper: wrapper can't deposit\\\");\\n SafeERC20Upgradeable.safeTransferFrom(_underlying, sender, address(this), amount);\\n _mint(account, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens.\\n */\\n function withdrawTo(address account, uint256 amount) public virtual returns (bool) {\\n _burn(_msgSender(), amount);\\n SafeERC20Upgradeable.safeTransfer(_underlying, account, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Mint wrapped token to cover any underlyingTokens that would have been transferred by mistake. Internal\\n * function that can be exposed with access control if desired.\\n */\\n function _recover(address account) internal virtual returns (uint256) {\\n uint256 value = _underlying.balanceOf(address(this)) - totalSupply();\\n _mint(account, value);\\n return value;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x14bb62a60fcbc911c33ac0e5456bf31ed50b502c30be46ee15bd3b698e91bd81\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x605434219ebbe4653f703640f06969faa5a1d78f0bfef878e5ddbb1ca369ceeb\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n */\\ninterface IERC20PermitUpgradeable {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xd60f939a3ca0199014d079b4dd66aa757954334947d81eb5c1d35d7a83061ab3\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../extensions/IERC20PermitUpgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n /**\\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n /**\\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n */\\n function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n }\\n }\\n\\n /**\\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to\\n * 0 before setting it to a non-zero value.\\n */\\n function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20PermitUpgradeable token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n *\\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0x4dae161227d332808312ee2caf6384929321b83c16cc89b5642985fbec6b814c\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x07ac95acad040f1fb1f6120dd0aa5f702db69446e95f82613721879d30de0908\",\"license\":\"MIT\"},\"contracts/src/GlobalBlacklist.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalBlacklist\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global mapping of blacklisted accounts shared by all contracts of the\\n * Ledgity Yield codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers\\n * and getter functions to easily check against this global blacklist.\\n *\\n * @dev For further details, see \\\"GlobalBlacklist\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalBlacklist is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\\n /**\\n * @notice Mapping of accounts to their blacklist status.\\n * @dev This mapping is made private and isBlacklisted() should be used instead.This\\n * helps saving gas in some scenario. See isBlacklisted() documentation for more details.\\n */\\n mapping(address => bool) private _list;\\n\\n /// @dev Emitted when `account` is blacklisted.\\n event Blacklisted(address account);\\n\\n /// @dev Emitted when `account` is unblacklisted.\\n event Unblacklisted(address account);\\n\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @notice Adds a given account to the blacklist.\\n * @param account The account's address to be blacklisted.\\n */\\n function blacklist(address account) external onlyOwner {\\n require(account != address(0), \\\"L20\\\");\\n _list[account] = true;\\n emit Blacklisted(account);\\n }\\n\\n /**\\n * @notice Removes a given account from the blacklist.\\n * @param account The account's address to be un-blacklisted.\\n */\\n function unBlacklist(address account) external onlyOwner {\\n _list[account] = false;\\n emit Unblacklisted(account);\\n }\\n\\n /**\\n * @notice Checks whether a given account is blacklisted.\\n * @param account Address of the account to check.\\n * @return 'true' if the account is blacklisted, 'false' otherwise\\n */\\n function isBlacklisted(address account) external view returns (bool) {\\n // Gas optimization: Avoid accessing storage if account is the zero address\\n // (e.g, during a mint or a burn of tokens)\\n if (account == address(0)) return false;\\n\\n // Else, return current account's blacklist status\\n return _list[account];\\n }\\n}\\n\",\"keccak256\":\"0x7e771076a06cfec935df22cf2d307df7e1f7df5b887976ec1dea30f8b68a878d\",\"license\":\"MIT\"},\"contracts/src/GlobalOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalOwner\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds the address of a global owner account shared by all contracts of the\\n * Ledgity Yield's codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\\n * owner() function that retrieves the owner's address from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalOwner\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n */\\n function initialize() public initializer {\\n __Ownable2Step_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xa3b880c4d82e796c162c99a398b569ce4a8e6d27232014b81a6a4503718f12dc\",\"license\":\"MIT\"},\"contracts/src/GlobalPause.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./abstracts/GlobalOwnableUpgradeable.sol\\\";\\n\\n/**\\n * @title GlobalPause\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Holds a global pause state shared by all contracts of the Ledgity Yield\\n * codebase.\\n *\\n * @dev Specifically, some contracts within the codebase inherit from the\\n * GlobalPausableUpgradeable abstract contract. This provides them with an overriden\\n * paused() function that retrieves the pause state from this contract instead.\\n *\\n * @dev For further details, see \\\"GlobalPause\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract GlobalPause is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n PausableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function initialize(address globalOwner_) public initializer {\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __UUPSUpgradeable_init();\\n }\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev Public implementation of PausableUpgradeable's pausing and unpausing functions\\n * but restricted to contract's owner.\\n */\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n}\\n\",\"keccak256\":\"0x9a0767e761dbd1d5800db03558c3903f229e6ef29f5fe5ff38f45fb4d7572e2e\",\"license\":\"MIT\"},\"contracts/src/LDYStaking.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Contracts\\nimport {ReentrancyGuardUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\\\";\\nimport {BaseUpgradeable} from \\\"./abstracts/base/BaseUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title LDYStaking\\n * @custom:security-contact security@ledgity.com\\n *\\n * @dev This contract implements tierOf() function from LDYStaking as it's the only\\n * one the LToken contract relies on.\\n *\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LDYStaking is BaseUpgradeable, ReentrancyGuardUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /**\\n * @notice Represents a user staking info in array.\\n * @param stakedAmount Amount of the stake.\\n * @param unStakeAt Unstake at.\\n * @param duration Staking period in seconds.\\n * @param rewardPerTokenPaid Reward per token paid.\\n * @param rewards Rewards to be claimed.\\n */\\n struct StakingInfo {\\n uint256 stakedAmount;\\n uint256 unStakeAt;\\n uint256 duration;\\n uint256 rewardPerTokenPaid;\\n uint256 rewards;\\n }\\n\\n /**\\n * @notice Represent duration and multiplier per each stake option.\\n * @param duration Staking period in seconds.\\n * @param multiplier Token weight\\n */\\n struct StakeDurationInfo {\\n uint256 duration;\\n uint256 multiplier;\\n }\\n\\n /// @notice Decimals of multiplier\\n uint256 public constant MULTIPLIER_BASIS = 1e4;\\n\\n /// @notice Stake and Reward token.\\n IERC20Upgradeable public stakeRewardToken;\\n\\n /// @notice Minimal stake duration for perks.\\n uint256 public stakeDurationForPerks;\\n\\n /// @notice Minimal stake amount for perks.\\n uint256 public stakeAmountForPerks;\\n\\n /// @notice Stake durations info array.\\n StakeDurationInfo[] public stakeDurationInfos;\\n\\n /// @notice Duration of the rewards (in seconds).\\n uint256 public rewardsDuration;\\n\\n /// @notice Timestamp of when the rewards finish.\\n uint256 public finishAt;\\n\\n /// @notice Timestamp of the reward updated.\\n uint256 public lastUpdateTime;\\n\\n /// @notice Reward per second(total rewards / duration).\\n uint256 public rewardRatePerSec;\\n\\n /// @notice Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\\n uint256 public rewardPerTokenStored;\\n\\n /// @notice Total staked amounts.\\n uint256 public totalStaked;\\n\\n // Total staked amounts with multiplier applied\\n uint256 public totalWeightedStake;\\n\\n /// @notice User stakingInfo map, user address => array of the staking info\\n mapping(address => StakingInfo[]) public userStakingInfo;\\n\\n /// @notice Total rewards amount.\\n uint256 public totalRewards;\\n\\n /**\\n * @notice Emitted when users stake token\\n * @param user User address\\n * @param stakeIndex Latest index of user staking pool\\n * @param amount Staked amount\\n */\\n event Staked(address indexed user, uint256 stakeIndex, uint256 amount);\\n\\n /**\\n * @notice Emitted when users unstake token\\n * @param user User address\\n * @param stakeIndex User staking pool index\\n * @param amount Staked amount\\n */\\n event Unstaked(address indexed user, uint256 stakeIndex, uint256 amount);\\n\\n /**\\n * @notice Emitted when users claim rewards\\n * @param user User address\\n * @param stakeIndex User staking pool index\\n * @param reward Reward token amount\\n */\\n event RewardPaid(address indexed user, uint256 stakeIndex, uint256 reward);\\n\\n /**\\n * @notice Emitted when admin add rewards.\\n * @param rewardAmount Reward amount added by admin.\\n * @param rewardPerSec RewardRatePerSec updated.\\n */\\n event NotifiedRewardAmount(uint256 rewardAmount, uint256 rewardPerSec);\\n\\n /**\\n * @notice Holds a mapping of addresses that default to the highest staking tier.\\n * @dev This is notably used to allow PreMining contracts to benefit from 0%\\n * withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\\n */\\n mapping(address => bool) public highTierAccounts;\\n\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\\n * @dev This function is intended for setting initial values for the contract's state variables.\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param stakeRewardToken_ The address of stake and reward token(LDY token).\\n * @param stakeDurationInfos_ Available Staking Durations.\\n * @param stakeDurationForPerks_ Minimal staking duration for perks.\\n * @param stakeAmountForPerks_ Minimal staking amount for perks.\\n */\\n function initialize(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n address stakeRewardToken_,\\n StakeDurationInfo[] memory stakeDurationInfos_,\\n uint256 stakeDurationForPerks_,\\n uint256 stakeAmountForPerks_\\n ) public initializer {\\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\\n stakeRewardToken = IERC20Upgradeable(stakeRewardToken_);\\n uint stakeDurationInfosLength = stakeDurationInfos_.length;\\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\\n stakeDurationInfos.push(stakeDurationInfos_[i]);\\n }\\n stakeDurationForPerks = stakeDurationForPerks_;\\n stakeAmountForPerks = stakeAmountForPerks_;\\n }\\n\\n // --------------------\\n // MUTATIVE FUNCTIONS\\n // --------------------\\n\\n /**\\n * @notice Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\\n * @dev Emits a `Staked` event upon successful staking.\\n * @param amount The amount of tokens to stake.\\n * @param stakeDurationIndex The Index of stakeDurationInfos array.\\n */\\n function stake(\\n uint256 amount,\\n uint8 stakeDurationIndex\\n ) external nonReentrant whenNotPaused notBlacklisted(_msgSender()) {\\n require(amount > 0, \\\"amount = 0\\\");\\n require(stakeDurationIndex <= stakeDurationInfos.length - 1, \\\"Invalid staking period\\\");\\n\\n _updateReward(address(0), 0);\\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[stakeDurationIndex];\\n StakingInfo memory stakingInfo = StakingInfo({\\n stakedAmount: amount,\\n unStakeAt: block.timestamp + stakeDurationInfo.duration,\\n duration: stakeDurationInfo.duration,\\n rewardPerTokenPaid: rewardPerTokenStored,\\n rewards: 0\\n });\\n\\n // check whether account is eligible for benefit from the protocol\\n if (stakeDurationInfo.duration >= stakeDurationForPerks && amount >= stakeAmountForPerks) {\\n highTierAccounts[_msgSender()] = true;\\n }\\n\\n userStakingInfo[_msgSender()].push(stakingInfo);\\n\\n uint256 stakeIndex = userStakingInfo[_msgSender()].length - 1;\\n uint256 weightedStake = (amount * stakeDurationInfo.multiplier) / MULTIPLIER_BASIS;\\n totalWeightedStake += weightedStake;\\n totalStaked += amount;\\n\\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\\n\\n emit Staked(_msgSender(), stakeIndex, amount);\\n }\\n\\n /**\\n * @notice Withdraw staked tokens after stakeDuration has passed.\\n * @dev Emits a `Unstaked` event upon successful withdrawal.\\n * On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\\n * @param amount The amount of tokens to withdraw.\\n * @param stakeIndex The index of user staking pool\\n */\\n function unstake(\\n uint256 amount,\\n uint256 stakeIndex\\n ) external nonReentrant notBlacklisted(_msgSender()) {\\n require(amount > 0, \\\"amount = 0\\\");\\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \\\"Invalid stakeIndex\\\");\\n require(\\n block.timestamp >= userStakingInfo[_msgSender()][stakeIndex].unStakeAt,\\n \\\"Cannot unstake during staking period\\\"\\n );\\n require(\\n amount <= userStakingInfo[_msgSender()][stakeIndex].stakedAmount,\\n \\\"Insufficient unstake amount\\\"\\n );\\n\\n _updateReward(_msgSender(), stakeIndex);\\n\\n uint256 multiplier = _getMultiplier(userStakingInfo[_msgSender()][stakeIndex].duration);\\n\\n uint256 currentWeightedStake = (amount * multiplier) / MULTIPLIER_BASIS;\\n totalWeightedStake -= currentWeightedStake;\\n\\n totalStaked -= amount;\\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount -= amount;\\n\\n // check whether account is eligible for benefit from the protocol\\n if (\\n userStakingInfo[_msgSender()][stakeIndex].duration >= stakeDurationForPerks &&\\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount < stakeAmountForPerks\\n ) {\\n highTierAccounts[_msgSender()] = false;\\n }\\n\\n // remove staking info from array on full withdrawal\\n if (userStakingInfo[_msgSender()][stakeIndex].stakedAmount == 0) {\\n _claimReward(_msgSender(), stakeIndex);\\n\\n userStakingInfo[_msgSender()][stakeIndex] = userStakingInfo[_msgSender()][\\n userStakingInfo[_msgSender()].length - 1\\n ];\\n userStakingInfo[_msgSender()].pop();\\n }\\n stakeRewardToken.safeTransfer(_msgSender(), amount);\\n\\n emit Unstaked(_msgSender(), stakeIndex, amount);\\n }\\n\\n /**\\n * @notice Claim pending rewards.\\n * @dev Emits a `RewardPaid` event upon successful reward claim.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function getReward(uint256 stakeIndex) external nonReentrant notBlacklisted(_msgSender()) {\\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \\\"Invalid stakeIndex\\\");\\n _updateReward(_msgSender(), stakeIndex);\\n _claimReward(_msgSender(), stakeIndex);\\n }\\n\\n // --------------------\\n // ADMIN CONFIGURATION\\n // --------------------\\n\\n /**\\n * @notice Update Rewards Duration.\\n * @dev Only callable by owner, and setting available only after rewards period.\\n * @param duration New reward duration in seconds.\\n */\\n function setRewardsDuration(uint256 duration) external onlyOwner {\\n require(finishAt < block.timestamp, \\\"reward duration is not finished\\\");\\n rewardsDuration = duration;\\n }\\n\\n /**\\n * @notice Update stakeDurationForPerks\\n * @dev Only callable by owner.\\n * @param stakeDurationForPerks_ New stakeDurationForPerks.\\n */\\n function setStakeDurationForPerks(uint256 stakeDurationForPerks_) external onlyOwner {\\n stakeDurationForPerks = stakeDurationForPerks_;\\n }\\n\\n /**\\n * @notice Update stakeAmountForPerks\\n * @dev Only callable by owner.\\n * @param stakeAmountForPerks_ New stakeDurationForPerks.\\n */\\n function setStakeAmountForPerks(uint256 stakeAmountForPerks_) external onlyOwner {\\n stakeAmountForPerks = stakeAmountForPerks_;\\n }\\n\\n /**\\n * @notice Push stakeDurationInfo\\n * @dev Only callable by owner.\\n */\\n function pushStakeDurationInfo(StakeDurationInfo memory durationInfo) external onlyOwner {\\n stakeDurationInfos.push(durationInfo);\\n }\\n\\n /**\\n * @notice Notify the contract about the amount of rewards to be distributed and update reward parameters.\\n * @dev Only callable by owner.\\n * @param amount The amount of reward to be distributed.\\n */\\n function notifyRewardAmount(uint256 amount) external onlyOwner {\\n require(rewardsDuration > 0, \\\"rewards duration is not set\\\");\\n require(amount > 0, \\\"amount = 0\\\");\\n\\n _updateReward(address(0), 0);\\n\\n if (block.timestamp >= finishAt) {\\n rewardRatePerSec = amount / rewardsDuration;\\n } else {\\n uint256 remainingRewards = (finishAt - block.timestamp) * rewardRatePerSec;\\n rewardRatePerSec = (amount + remainingRewards) / rewardsDuration;\\n }\\n\\n require(rewardRatePerSec > 0, \\\"reward rate = 0\\\");\\n require(\\n rewardRatePerSec <=\\n (stakeRewardToken.balanceOf(address(this)) + amount - totalStaked) /\\n rewardsDuration,\\n \\\"reward amount > balance\\\"\\n );\\n\\n finishAt = block.timestamp + rewardsDuration;\\n lastUpdateTime = block.timestamp;\\n\\n totalRewards += amount;\\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\\n\\n emit NotifiedRewardAmount(amount, rewardRatePerSec);\\n }\\n\\n // --------------------\\n // VIEW FUNCTIONS\\n // --------------------\\n\\n /**\\n * @notice Get the last time when rewards were applicable for the specified reward token.\\n * @return Timestamp of the most recent rewards calculation.\\n */\\n function lastTimeRewardApplicable() public view returns (uint256) {\\n return _min(finishAt, block.timestamp);\\n }\\n\\n /**\\n * @notice Calculate the reward per token for a given reward token.\\n * @return Current reward per token.\\n */\\n function rewardPerToken() public view returns (uint256) {\\n if (totalStaked == 0) {\\n return rewardPerTokenStored;\\n }\\n\\n return\\n rewardPerTokenStored +\\n ((rewardRatePerSec * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) /\\n totalWeightedStake);\\n }\\n\\n /**\\n * @notice Calculate the user's stake pool earnings\\n * @param account Address of the user.\\n * @param stakeIndex Index of the stakePool\\n * @return Return earned amounts\\n */\\n function earned(address account, uint256 stakeIndex) public view returns (uint256) {\\n StakingInfo memory userInfo = userStakingInfo[account][stakeIndex];\\n uint256 multiplier = _getMultiplier(userInfo.duration);\\n uint256 weightedAmount = (userInfo.stakedAmount * multiplier) / MULTIPLIER_BASIS;\\n uint256 rewardsSinceLastUpdate = ((weightedAmount *\\n (rewardPerToken() - userInfo.rewardPerTokenPaid)) / 1e18);\\n return rewardsSinceLastUpdate + userInfo.rewards;\\n }\\n\\n /**\\n * @notice Get the earned rewards array for a user.\\n * @param account Address of the user.\\n * @return Return earned rewards array for a user.\\n */\\n function getEarnedUser(address account) public view returns (uint256[] memory) {\\n uint256 numberOfPools = userStakingInfo[account].length;\\n uint256[] memory earnedArray = new uint256[](numberOfPools);\\n for (uint256 index; index < numberOfPools; index++) {\\n earnedArray[index] = earned(account, index);\\n }\\n return earnedArray;\\n }\\n\\n /**\\n * @dev tierOf() function that always return that the given account is not\\n * elligible to any LDY staking tier, except if the account is in the\\n * highTierAccounts mapping.\\n * @param account The account to check the tier of.\\n */\\n function tierOf(address account) public view returns (uint256 tier) {\\n if (highTierAccounts[account]) return 3;\\n return 0;\\n }\\n\\n /**\\n * @notice Get User Stake Data.\\n * @param account The address of user.\\n * @return StakingInfo array.\\n */\\n function getUserStakes(address account) external view returns (StakingInfo[] memory) {\\n return userStakingInfo[account];\\n }\\n\\n /**\\n * @notice Get StakeDurationInfo.\\n * @param index Index of StakeDurationInfos.\\n * @return StakeDurationInfo.\\n */\\n function getStakeDurationInfo(uint256 index) external view returns (StakeDurationInfo memory) {\\n require(stakeDurationInfos.length - 1 >= index, \\\"wrong index\\\");\\n return stakeDurationInfos[index];\\n }\\n\\n /**\\n * @notice Send rewards to user.\\n * @dev This is private function, called by getReward function.\\n * @param account The address of user.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function _claimReward(address account, uint256 stakeIndex) private {\\n uint256 reward = userStakingInfo[account][stakeIndex].rewards;\\n\\n if (reward > 0) {\\n userStakingInfo[account][stakeIndex].rewards = 0;\\n totalRewards -= reward;\\n stakeRewardToken.safeTransfer(account, reward);\\n emit RewardPaid(account, stakeIndex, reward);\\n }\\n }\\n\\n /**\\n * @notice Calculate and update user rewards per stakeIndex.\\n * @dev this is private function, called by stake, unstake, getRewards, and notifyRewardAmount functions.\\n * @param account The address of user.\\n * @param stakeIndex The index of user staking pool.\\n */\\n function _updateReward(address account, uint256 stakeIndex) private {\\n rewardPerTokenStored = rewardPerToken();\\n lastUpdateTime = lastTimeRewardApplicable();\\n\\n if (account != address(0)) {\\n userStakingInfo[account][stakeIndex].rewards = earned(account, stakeIndex);\\n userStakingInfo[account][stakeIndex].rewardPerTokenPaid = rewardPerTokenStored;\\n }\\n }\\n\\n /**\\n * @notice Get multiplier from stakeDurationInfo based on duration\\n * @param duration Stake Duration\\n */\\n function _getMultiplier(uint256 duration) private view returns (uint256) {\\n uint256 stakeDurationInfosLength = stakeDurationInfos.length;\\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[i];\\n if (duration == stakeDurationInfo.duration) {\\n return stakeDurationInfo.multiplier;\\n }\\n }\\n return 0;\\n }\\n\\n /**\\n * @notice Take minimum value between x and y.\\n */\\n function _min(uint256 x, uint256 y) private pure returns (uint256) {\\n return x <= y ? x : y;\\n }\\n}\\n\",\"keccak256\":\"0x7e6eba9f67c4a0ad1ade18149d04fe01a53bae4cc3a898a8ab0b347c1d036cc5\",\"license\":\"MIT\"},\"contracts/src/LToken.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Contracts\\nimport {ERC20WrapperUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol\\\";\\nimport \\\"./abstracts/base/ERC20BaseUpgradeable.sol\\\";\\nimport {InvestUpgradeable} from \\\"./abstracts/InvestUpgradeable.sol\\\";\\nimport {LDYStaking} from \\\"./LDYStaking.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\nimport {SUD} from \\\"./libs/SUD.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\nimport {IERC20MetadataUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\\\";\\nimport {ITransfersListener} from \\\"./interfaces/ITransfersListener.sol\\\";\\n\\n/**\\n * @title LToken\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Main contract of the Ledgity Yield protocol. It powers every L-Token (i.e.,\\n * investment pools backed by RWA). An L-Token is an ERC20 wrapper around a stablecoin.\\n * As soon as a wallet holds some L-Tokens, it starts receiving rewards in\\n * the form of additional L-Tokens, which are auto-compounded over time.\\n *\\n * @dev Definitions:\\n * - Deposit: Swap of underlying tokens for L-Tokens (1:1 ratio).\\n * - Withdrawal: Swap of L-Tokens for underlying tokens (1:1 ratio, minus applicable fees).\\n * - Instant: Processed immediately.\\n * - Request: Queued for later processing.\\n * - Big Request: A requested withdrawal exceeding half of the retention rate.\\n * - (Withdrawal) queue: A list of all requested withdrawals sorted by priority.\\n * - Request ID: The index of a withdrawal request in the queue array.\\n * - Retention rate: Maximum fraction of underlying tokens TVL the contract can retain.\\n * - Fees Rate: Percentage of fees applied to successful withdrawals.\\n * - Usable underlyings: Amount of underlying tokens that have been deposited through\\n * expected ways and are so considered safe to use by the contract.\\n * - Transfers listeners: External contracts listening on L-Tokens transfers.\\n * - Fund wallet: Wallet managed by the Ledgity's financial team.\\n * - Withdrawer wallet: Managed by an off-chain server to automate withdrawal request\\n * processing.\\n *\\n * Note that words between parenthesis are sometimes omitted for brevity.\\n *\\n * @dev Deployment notice:\\n * This contract can safely receive funds immediately after initialization. (i.e., there\\n * is no way for funds to be sent to non-owned addresses). It is, however, recommended to\\n * replace ASAP owner and fund wallets with multi-sig wallets.\\n *\\n * @dev For further details, see \\\"LToken\\\" section of whitepaper.\\n * @custom:oz-upgrades-unsafe-allow external-library-linking\\n * @custom:security-contact security@ledgity.com\\n */\\ncontract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /// @dev Represents type of actions triggering ActivityEvent events.\\n enum Action {\\n Deposit,\\n Withdraw\\n }\\n\\n /// @dev Represents different status of actions triggering ActivityEvent events.\\n enum Status {\\n Queued,\\n Cancelled,\\n Success,\\n Moved\\n }\\n\\n /**\\n * @notice Represents a withdrawal request in the queue.\\n * @dev A request fits in a single storage slot (32 bytes).\\n * @param account The account that initiated the request.\\n * @param amount The amount of underlying tokens requested.\\n */\\n struct WithdrawalRequest {\\n address account; // 20 bytes\\n uint96 amount; // 12 bytes\\n }\\n\\n /// @notice Upper limit of retention rate.\\n uint32 private constant MAX_RETENTION_RATE_UD7x3 = 10 * 10 ** 3; // 10%\\n\\n /// @notice Upper limit of fees rate.\\n uint32 private constant MAX_FEES_RATE_UD7x3 = 20 * 10 ** 3; // 20%\\n\\n /// @notice Used in activity events to represent the absence of request ID.\\n int256 private constant NO_ID = -1;\\n\\n /// @notice Holds a reference to the LDYStaking contract.\\n LDYStaking public ldyStaking;\\n\\n /// @notice Holds address of withdrawer wallet (managed by withdrawal server).\\n address payable public withdrawer;\\n\\n /// @notice Holds address of fund wallet (managed by Ledgity financial team).\\n address public fund;\\n\\n /// @notice Holds the withdrawal fees rate in UD7x3 format (e.g., 350 = 0.350%).\\n uint32 public feesRateUD7x3;\\n\\n /// @notice Holds the retention rate in UD7x3 format.\\n uint32 public retentionRateUD7x3;\\n\\n /// @notice Holds the amount of withdrawal fees not yet claimed by contract's owner.\\n uint256 public unclaimedFees;\\n\\n /// @notice Holds the amount of L-Tokens currently in the withdrawal queue.\\n uint256 public totalQueued;\\n\\n /**\\n * @notice Holds the amount of underlying tokens considered as usable by the contract.\\n * @dev Are usable, only underlying tokens deposit through deposit() or fund() functions.\\n */\\n uint256 public usableUnderlyings;\\n\\n /// @notice Holds an ordered list of active withdrawal requests.\\n WithdrawalRequest[] public withdrawalQueue;\\n\\n /// @notice Holds the index of the next withdrawal request to process in the queue.\\n uint256 public withdrawalQueueCursor;\\n\\n /**\\n * @notice Holds a list of all currently frozen withdrawal requests.\\n * @dev If a request emitter as been blacklisted, its request is moved here to prevent\\n * it from blocking the queue.\\n */\\n WithdrawalRequest[] public frozenRequests;\\n\\n /**\\n * @notice Holds a list of contracts' references that are listening to L-Tokens transfers.\\n * @dev onLTokenTransfer() functions of those contracts will be called on each transfer.\\n */\\n ITransfersListener[] public transfersListeners;\\n\\n /**\\n * @notice Holds the withdrawalFee amount in ETH that will be sent to withdrawer wallet.\\n */\\n uint256 public withdrawalFeeInEth;\\n\\n /**\\n * @notice Emitted to inform listeners about a change in the contract's TVL.\\n * @dev TVL = realTotalSupply()\\n * @param newTVL The new TVL of the contract.\\n */\\n event TVLChangeEvent(uint256 newTVL);\\n\\n /**\\n * @notice Emitted to inform listerners about an activity related to deposits and withdrawals.\\n * @param id ID of the involved withdrawal request or NO_ID (-1) if not applicable.\\n * @param account The account involved in the activity.\\n * @param action The type of activity.\\n * @param amount The amount of underlying tokens involved in the activity.\\n * @param newStatus The new status of the activity.\\n * @param newId The new ID of the request if it has been moved in the queue.\\n */\\n event ActivityEvent(\\n int256 indexed id,\\n address indexed account,\\n Action indexed action,\\n uint256 amount,\\n uint256 amountAfterFees,\\n Status newStatus,\\n int256 newId,\\n string referralCode\\n );\\n\\n /**\\n * @notice Emitted to inform listeners that some rewards have been minted.\\n * @param account The account that received the rewards.\\n * @param balanceBefore The balance of the account before the minting.\\n * @param rewards The amount of minted rewards.\\n */\\n event MintedRewardsEvent(address indexed account, uint256 balanceBefore, uint256 rewards);\\n\\n /// @notice Reverts if the function caller is not the withdrawer wallet.\\n modifier onlyWithdrawer() {\\n require(_msgSender() == withdrawer, \\\"L39\\\");\\n _;\\n }\\n\\n /// @notice Reverts if the function caller is not the fund wallet.\\n modifier onlyFund() {\\n require(_msgSender() == fund, \\\"L40\\\");\\n _;\\n }\\n\\n /**\\n * @notice Initializer function of the contract. It replaces the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param underlyingToken The address of the underlying stablecoin ERC20 token.\\n */\\n function initialize(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n address ldyStaking_,\\n address underlyingToken\\n ) public initializer {\\n // Initialize ERC20 base.\\n string memory underlyingSymbol = IERC20MetadataUpgradeable(underlyingToken).symbol();\\n __ERC20Base_init(\\n globalOwner_,\\n globalPause_,\\n globalBlacklist_,\\n string(abi.encodePacked(\\\"Ledgity \\\", underlyingSymbol)),\\n string(abi.encodePacked(\\\"L\\\", underlyingSymbol))\\n );\\n\\n // IMPORTANT: Below calls must not be restricted to owner at any point.\\n // This is because the GlobalOwner contract may not be a fresh one, and so\\n // the contract deployer may not be the owner anymore after ERC20Base init.\\n\\n // Initialize other parents contracts.\\n __ERC20Wrapper_init(IERC20Upgradeable(underlyingToken));\\n __Invest_init_unchained(address(this));\\n\\n // Set LDYStaking contract\\n ldyStaking = LDYStaking(ldyStaking_);\\n\\n // Set initial withdrawal fees rate to 0.3%\\n feesRateUD7x3 = 300;\\n\\n // Set initial retention rate to 10%\\n retentionRateUD7x3 = 10_000;\\n\\n // Default withdrawer and fund wallet to contract owner address. This prevents\\n // any loss of funds if a deposit/withdrawal is made before those are manually set.\\n withdrawer = payable(owner());\\n fund = payable(owner());\\n\\n // Set initial withdrawalFeeInEth\\n withdrawalFeeInEth = 0.00075 * 1e18;\\n }\\n\\n /**\\n * @notice Required override of decimals() which is implemented by both\\n * ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts.\\n * @dev The ERC20WrapperUpgradeable version is preferred because it mirrors the\\n * decimals amount of the underlying stablecoin token.\\n * @inheritdoc ERC20WrapperUpgradeable\\n */\\n function decimals()\\n public\\n view\\n override(ERC20Upgradeable, ERC20WrapperUpgradeable)\\n returns (uint8)\\n {\\n return ERC20WrapperUpgradeable.decimals();\\n }\\n\\n /**\\n * @notice Required override of paused() which is implemented by both\\n * GlobalPausableUpgradeable and ERC20BaseUpgradeable parent contracts.\\n * @dev Both version are the same as ERC20BaseUpgradeable.paused() mirrors\\n * GlobalPausableUpgradeable.paused(), so a random one is chosen.\\n * @inheritdoc GlobalPausableUpgradeable\\n */\\n function paused()\\n public\\n view\\n virtual\\n override(GlobalPausableUpgradeable, ERC20BaseUpgradeable)\\n returns (bool)\\n {\\n return GlobalPausableUpgradeable.paused();\\n }\\n\\n /**\\n * @notice Updates the current withdrawal fee rate.\\n * @param feesRateUD7x3_ The new withdrawal fee rate in UD7x3 format.\\n */\\n function setFeesRate(uint32 feesRateUD7x3_) public onlyOwner {\\n require(feesRateUD7x3_ <= MAX_FEES_RATE_UD7x3, \\\"L88\\\");\\n feesRateUD7x3 = feesRateUD7x3_;\\n }\\n\\n /**\\n * @notice Updates the current withdrawalFeeInETH.\\n * @param withdrawalFeeInEth_ The new withdrawalFee in ETH.\\n */\\n function setWithdrawalFeeInEth(uint256 withdrawalFeeInEth_) public onlyOwner {\\n withdrawalFeeInEth = withdrawalFeeInEth_;\\n }\\n\\n /**\\n * @notice Updates the current underlying token retention rate.\\n * @dev The retention rate is capped at 10%, which ensures that no more than 10% of\\n * deposited assets will ever be exposed in this contract (reduces attack surface).\\n * @param retentionRateUD7x3_ The new retention rate in UD7x3 format.\\n */\\n function setRetentionRate(uint32 retentionRateUD7x3_) public onlyOwner {\\n require(retentionRateUD7x3_ <= MAX_RETENTION_RATE_UD7x3, \\\"L41\\\");\\n retentionRateUD7x3 = retentionRateUD7x3_;\\n }\\n\\n /**\\n * @notice Updates the address of LDYStaking contract.\\n * @param ldyStakingAddress The address of the new LDYStaking contract.\\n */\\n function setLDYStaking(address ldyStakingAddress) public onlyOwner {\\n ldyStaking = LDYStaking(ldyStakingAddress);\\n }\\n\\n /**\\n * @notice Updates the address of the withdrawer wallet.\\n * @param withdrawer_ The address of the new withdrawer wallet.\\n */\\n function setWithdrawer(address payable withdrawer_) public onlyOwner {\\n // Ensure address is not the zero address (pre-processing fees would be lost else)\\n require(withdrawer_ != address(0), \\\"L63\\\");\\n\\n // Set new withdrawer wallet's address\\n withdrawer = withdrawer_;\\n }\\n\\n /**\\n * @notice Updates the address of the fund wallet.\\n * @param fund_ The address of the new fund wallet.\\n */\\n function setFund(address payable fund_) public onlyOwner {\\n // Ensure address is not the zero address (deposited tokens would be lost else)\\n require(fund_ != address(0), \\\"L64\\\");\\n\\n // Set new fund wallet's address\\n fund = fund_;\\n }\\n\\n /**\\n * @notice Adds a new contract to the L-Token transfers list.\\n * @dev Each time a transfer occurs, the onLTokenTransfer() function of the\\n * specified contract will be called.\\n * @dev IMPORTANT SECURITY NOTE: This method is not intended to be used with\\n * contracts that are not owned by the Ledgity team.\\n * @param listenerContract The address of the new transfers listener contract.\\n */\\n function listenToTransfers(address listenerContract) public onlyOwner {\\n transfersListeners.push(ITransfersListener(listenerContract));\\n }\\n\\n /**\\n * @notice Removes a contract from the L-Token transfers list.\\n * @dev The onLTokenTransfer() function of the specified contract will not be called\\n * anymore each time a L-Token transfer occurs.\\n * @param listenerContract The address of the listener contract.\\n */\\n function unlistenToTransfers(address listenerContract) public onlyOwner {\\n // Find index of listener contract in transferListeners array\\n int256 index = -1;\\n uint256 transfersListenersLength = transfersListeners.length;\\n for (uint256 i = 0; i < transfersListenersLength; i++) {\\n if (address(transfersListeners[i]) == listenerContract) {\\n index = int256(i);\\n break;\\n }\\n }\\n\\n // Revert if given contract wasn't listening to transfers\\n require(index > -1, \\\"L42\\\");\\n\\n // Else, remove transfers listener contract from listeners array\\n transfersListeners[uint256(index)] = transfersListeners[transfersListenersLength - 1];\\n transfersListeners.pop();\\n }\\n\\n /**\\n * @notice Retrieves the amount of given account's not yet minted rewards.\\n * @dev This is a public implementation of InvestUpgradeable_rewardsOf(). In the\\n * context of LToken, this function returns the amount of rewards that have not been\\n * distributed/minted yet to the specified account.\\n * @dev This is particularly useful for off-chain services to display charts and\\n * statistics, as seen in the Ledgity Yield's frontend.\\n * @param account The account to check the unminted rewards of.\\n * @return The amount of account's unminted rewards.\\n */\\n function unmintedRewardsOf(address account) public view returns (uint256) {\\n return _rewardsOf(account, true);\\n }\\n\\n /**\\n * @notice Retrieves the \\\"real\\\" balance of an account, i.e., excluding its not yet\\n * minted/distributed rewards.\\n * @param account The account to check the real balance of.\\n * @return The real balance of the account.\\n */\\n function realBalanceOf(address account) public view returns (uint256) {\\n return super.balanceOf(account);\\n }\\n\\n /**\\n * @notice Retrieves the total balance of L-Tokens that belong to the account.\\n * @dev This is an oOverride of ERC20Upgradeable.balanceOf() that rewards that have\\n * not been yet minted to the specified account.\\n * @param account The account to check the total balance of.\\n * @return The total balance of the account.\\n */\\n function balanceOf(address account) public view override returns (uint256) {\\n return realBalanceOf(account) + unmintedRewardsOf(account);\\n }\\n\\n /**\\n * @notice Returns the \\\"real\\\" amount of existing L-Tokens, i.e., excluding not yet\\n * minted withdrawal fees and L-Tokens currently in the withdrawal queue.\\n * @return The real total supply of L-Tokens.\\n */\\n function realTotalSupply() public view returns (uint256) {\\n return super.totalSupply();\\n }\\n\\n /**\\n * @notice Retrives the total supply of L-Tokens, including not yet minted withdrawal\\n * fees and L-Tokens currently in the withdrawal queue.\\n * @return The total supply of L-Tokens.\\n */\\n function totalSupply() public view override returns (uint256) {\\n return realTotalSupply() + totalQueued + unclaimedFees;\\n }\\n\\n /**\\n * @notice Recovers a specified amount of a given token address.\\n * @dev This override of RecoverableUpgradeable.recoverERC20() prevents the recovered\\n * token from being the underlying token.\\n * @inheritdoc RecoverableUpgradeable\\n */\\n function recoverERC20(address tokenAddress, uint256 amount) public override onlyOwner {\\n // Ensure the token is not the underlying token\\n require(tokenAddress != address(underlying()), \\\"L43\\\");\\n\\n // Proceed to recovery\\n super.recoverERC20(tokenAddress, amount);\\n }\\n\\n /**\\n * @notice Recovers underlying tokens accidentally sent to the contract.\\n * @dev To prevent owner from being able to drain the contract, this function only\\n * allows recovering \\\"unusable\\\" underlying tokens, i.e., tokens that have not been\\n * sent through fund() or deposit() functions.\\n */\\n function recoverUnderlying() external onlyOwner {\\n // Compute the recoverable amount by taking the difference between the contract's\\n // balance and the amount of usable underlying tokens\\n uint256 recoverableAmount = underlying().balanceOf(address(this)) - usableUnderlyings;\\n\\n // Revert if there is nothing to recover\\n require(recoverableAmount > 0, \\\"L44\\\");\\n\\n // Else, proceed to underlying tokens recovery\\n super.recoverERC20(address(underlying()), recoverableAmount);\\n }\\n\\n /**\\n * @notice Retrieves the amount of underlying tokens invested by the given account.\\n * @dev Implementing this function is required by the InvestUpgradeable contract. In\\n * LToken contract, the investment of an account is equal to its real balance.\\n * @inheritdoc InvestUpgradeable\\n */\\n function _investmentOf(address account) internal view override returns (uint256) {\\n return realBalanceOf(account);\\n }\\n\\n /**\\n * @notice Distributes a specified amount of rewards (in L-Tokens) to a given account.\\n * @dev Implementing this function is required by the InvestUpgradeable contract so\\n * it can distribute rewards to accounts before each period reset.\\n * @dev InvestUpgradeable contract already ensure that amount > 0.\\n * @inheritdoc InvestUpgradeable\\n */\\n function _distributeRewards(address account, uint256 amount) internal override returns (bool) {\\n // Inform listeners of the rewards minting\\n emit MintedRewardsEvent(account, realBalanceOf(account), amount);\\n\\n // Mint L-Tokens rewards to account\\n _mint(account, amount);\\n\\n // Return true indicating to InvestUpgradeable that the rewards have been distributed\\n return true;\\n }\\n\\n /**\\n * @notice Override of ERC20._beforeTokenTransfer() to integrate with InvestUpgradeable.\\n * @dev This overriden version ensure that _beforeInvestmentChange() hook is properly\\n * called each time an account's balance is going to change.\\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\\n * already included in ERC20BaseUpgradeable._beforeTokenTransfer().\\n * @inheritdoc ERC20BaseUpgradeable\\n */\\n function _beforeTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal override(ERC20Upgradeable, ERC20BaseUpgradeable) {\\n ERC20BaseUpgradeable._beforeTokenTransfer(from, to, amount);\\n\\n // Invoke _beforeInvestmentChange() hook for non-zero accounts\\n if (from != address(0)) _beforeInvestmentChange(from, true);\\n if (to != address(0)) _beforeInvestmentChange(to, true);\\n }\\n\\n /**\\n * @notice Override of ERC20._afterTokenTransfer() to notify all transfers listeners.\\n * @dev This overriden version will trigger onLTokenTransfer() functions of all\\n * transfers listeners.\\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\\n * already checked in _beforeTokenTransfer().\\n * @inheritdoc ERC20Upgradeable\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal override {\\n super._afterTokenTransfer(from, to, amount);\\n\\n // If some L-Token have been burned/minted, inform listeners of a TVL change\\n if (from == address(0) || to == address(0)) emit TVLChangeEvent(totalSupply());\\n\\n // Trigger onLTokenTransfer() functions of all the transfers listeners\\n for (uint256 i = 0; i < transfersListeners.length; i++) {\\n transfersListeners[i].onLTokenTransfer(from, to, amount);\\n }\\n }\\n\\n /**\\n * @notice Computes the maximum amount of underlying tokens that should be retained\\n * by the contract (based on retention rate).\\n * @return amount The expected amount of retained underlying tokens.\\n */\\n function getExpectedRetained() public view returns (uint256 amount) {\\n // Cache invested token's decimals number\\n uint256 d = SUD.decimalsOf(address(invested()));\\n\\n // Convert totalSupply and retentionRate to SUD\\n uint256 totalSupplySUD = SUD.fromAmount(totalSupply(), d);\\n uint256 retentionRateSUD = SUD.fromRate(retentionRateUD7x3, d);\\n\\n // Compute and return expected retained amount\\n uint256 expectedRetainedSUD = (totalSupplySUD * retentionRateSUD) / SUD.fromInt(100, d);\\n return SUD.toAmount(expectedRetainedSUD, d);\\n }\\n\\n /// @notice Transfers underlying tokens exceeding the retention rate to the fund wallet.\\n function _transferExceedingToFund() internal {\\n // Retrieve the expected amount retained\\n uint256 expectedRetained = getExpectedRetained();\\n\\n // If usable underlyings are less than or equal to expected retained, return\\n if (usableUnderlyings <= expectedRetained) return;\\n\\n // Else, exceeding amount is equal to difference between those values\\n uint256 exceedingAmount = usableUnderlyings - expectedRetained;\\n\\n // Decrease usable underlyings amount accordingly\\n usableUnderlyings -= exceedingAmount;\\n\\n // Transfer the exceeding amount to the fund wallet\\n underlying().safeTransfer(fund, exceedingAmount);\\n }\\n\\n /**\\n * @notice Override of ERC20WrapperUpgradeable.withdrawTo() that reverts.\\n * Use instantWithdrawal() or requestWithdrawal() functions instead.\\n * @inheritdoc ERC20WrapperUpgradeable\\n */\\n function withdrawTo(address account, uint256 amount) public pure override returns (bool) {\\n account; // Silence unused variable compiler warning\\n amount;\\n revert(\\\"L45\\\");\\n }\\n\\n /**\\n * @notice Override of ERC20WrapperUpgradeable.depositFor() that reverts.\\n * Use deposit() function instead.\\n * @inheritdoc ERC20WrapperUpgradeable\\n */\\n function depositFor(address account, uint256 amount) public pure override returns (bool) {\\n account; // Silence unused variable compiler warning\\n amount;\\n revert(\\\"L46\\\");\\n }\\n\\n /**\\n * @notice Allows exchanging some underlying tokens for the same amount of L-Tokens.\\n * @param amount The amount of underlying tokens to deposit.\\n * @param refCode The Referral code\\n */\\n function deposit(\\n uint256 amount,\\n string memory refCode\\n ) public whenNotPaused notBlacklisted(_msgSender()) {\\n // Ensure the account has enough underlying tokens to deposit\\n require(underlying().balanceOf(_msgSender()) >= amount, \\\"L47\\\");\\n\\n // Update usable underlyings balance accordingly\\n usableUnderlyings += amount;\\n\\n // Inform listeners of the deposit activity event\\n emit ActivityEvent(\\n NO_ID,\\n _msgSender(),\\n Action.Deposit,\\n amount,\\n amount,\\n Status.Success,\\n NO_ID,\\n refCode\\n );\\n\\n // Receive underlying tokens and mint L-Tokens to the account in a 1:1 ratio\\n super.depositFor(_msgSender(), amount);\\n\\n // Transfer exceeding underlying tokens to the fund wallet\\n _transferExceedingToFund();\\n }\\n\\n /**\\n * @notice Computes fees and net withdrawn amount for a given account withdrawing a\\n * given amount.\\n * @param account The account initiating the withdrawal.\\n * @param amount The amount of the withdrawal.\\n */\\n function getWithdrawnAmountAndFees(\\n address account,\\n uint256 amount\\n ) public view returns (uint256 withdrawnAmount, uint256 fees) {\\n // If the account is eligible to staking tier 2, no fees are applied\\n if (ldyStaking.tierOf(account) >= 2) return (amount, 0);\\n\\n // Cache invested token's decimals number\\n uint256 d = SUD.decimalsOf(address(invested()));\\n\\n // Convert amount and fees rate to SUD\\n uint256 amountSUD = SUD.fromAmount(amount, d);\\n uint256 feesRateSUD = SUD.fromRate(feesRateUD7x3, d);\\n\\n // Compute fees and withdrawn amount (initial amount minus fees)\\n uint256 feesSUD = (amountSUD * feesRateSUD) / SUD.fromInt(100, d);\\n fees = SUD.toAmount(feesSUD, d);\\n withdrawnAmount = amount - fees;\\n }\\n\\n /**\\n * @notice Allows instaneously exchanging a given amount of L-Tokens for the same\\n * amount of underlying tokens. It will fail if the contract currently doesn't hold\\n * enough underlying tokens to cover the withdrawal.\\n * @dev In order to save some gas and time to users, frontends should propose this\\n * function to users only when it has been verified that it will not revert. They\\n * should propose the requestWithdrawal() function otherwise.\\n * @param amount The amount L-Tokens to withdraw.\\n */\\n function instantWithdrawal(uint256 amount) external whenNotPaused notBlacklisted(_msgSender()) {\\n // Ensure the account has enough L-Tokens to withdraw\\n require(amount <= balanceOf(_msgSender()), \\\"L48\\\");\\n\\n // Can the contract cover this withdrawal plus all already queued requests?\\n bool cond1 = totalQueued + amount <= usableUnderlyings;\\n\\n // Is caller eligible to staking tier 2 and the contract can cover this withdrawal?\\n bool cond2 = ldyStaking.tierOf(_msgSender()) >= 2 && amount <= usableUnderlyings;\\n\\n // Revert if conditions are not met for the withdrawal to be processed instantaneously\\n if (!(cond1 || cond2)) revert(\\\"L49\\\");\\n\\n // Else, retrieve withdrawal fees and net withdrawn amount\\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(_msgSender(), amount);\\n\\n // Increase unclaimed fees amount accordingly\\n unclaimedFees += fees;\\n\\n // Decrease usable underlyings balance accordingly\\n usableUnderlyings -= withdrawnAmount;\\n\\n // Inform listeners of this instant withdrawal activity event\\n emit ActivityEvent(\\n NO_ID,\\n _msgSender(),\\n Action.Withdraw,\\n amount,\\n withdrawnAmount,\\n Status.Success,\\n NO_ID,\\n \\\"\\\"\\n );\\n\\n // Burn withdrawal fees from the account\\n _burn(_msgSender(), fees);\\n\\n // Burn account's withdrawn L-Tokens and transfer to it underlying tokens in a 1:1 ratio\\n super.withdrawTo(_msgSender(), withdrawnAmount);\\n }\\n\\n /**\\n * @notice Allows requesting the exchange of a given amount of L-Tokens for the same\\n * amount of underlying tokens. The request will be automatically processed later.\\n * @dev The sender must attach withdrawalFeeInETH to pre-pay the future processing gas fees\\n * paid by the withdrawer wallet.\\n * @param amount The amount L-Tokens to withdraw.\\n */\\n function requestWithdrawal(\\n uint256 amount\\n ) public payable whenNotPaused notBlacklisted(_msgSender()) {\\n // Ensure the account has enough L-Tokens to withdraw\\n require(amount <= balanceOf(_msgSender()), \\\"L53\\\");\\n\\n // Ensure the requested amount doesn't overflow uint96\\n require(amount <= type(uint96).max, \\\"L54\\\");\\n\\n // Ensure the sender attached the pre-paid processing gas fees\\n require(msg.value == withdrawalFeeInEth, \\\"L55\\\");\\n\\n // Create withdrawal request data\\n WithdrawalRequest memory request = WithdrawalRequest({\\n account: _msgSender(),\\n amount: uint96(amount)\\n });\\n\\n // Will hold the request ID\\n uint256 requestId;\\n\\n // Append request to the withdrawal queue:\\n // - At the beginning, if account is eligible to staking tier 2 and cursor is not 0\\n if (ldyStaking.tierOf(_msgSender()) >= 2 && withdrawalQueueCursor > 0) {\\n withdrawalQueueCursor--;\\n requestId = withdrawalQueueCursor;\\n withdrawalQueue[requestId] = request;\\n }\\n // - At the end else\\n else {\\n withdrawalQueue.push(request);\\n requestId = withdrawalQueue.length - 1;\\n }\\n\\n // Increase total amount queued accordingly\\n totalQueued += amount;\\n\\n // Inform listeners of this new queued withdrawal activity event\\n emit ActivityEvent(\\n int256(requestId),\\n _msgSender(),\\n Action.Withdraw,\\n amount,\\n amount,\\n Status.Queued,\\n NO_ID,\\n \\\"\\\"\\n );\\n\\n // Burn withdrawal L-Tokens amount from account's balance\\n _burn(_msgSender(), amount);\\n\\n // Forward pre-paid processing gas fees to the withdrawer wallet\\n (bool sent, ) = withdrawer.call{value: msg.value}(\\\"\\\");\\n require(sent, \\\"L56\\\");\\n }\\n\\n /**\\n * @notice Processes queued withdrawal requests until there is else no more requests,\\n * else not enough underlying tokens to continue.\\n * @dev For further details, see \\\"LToken > Withdrawals\\\" section of whitepaper.\\n */\\n function processQueuedRequests() external onlyWithdrawer whenNotPaused {\\n // Accumulators variables, will be written on-chain after the loop\\n uint256 cumulatedFees = 0;\\n uint256 cumulatedWithdrawnAmount = 0;\\n uint256 nextRequestId = withdrawalQueueCursor;\\n\\n // Cache queue length to avoid multiple SLOADs and avoid infinite loop as big\\n // requests are increasing the queue length when moved at the end of the queue.\\n uint256 queueLength = withdrawalQueue.length;\\n\\n // Iterate over requests to be processed\\n while (nextRequestId < queueLength) {\\n // Stop processing requests if there is not enough gas left to continue the\\n // loop and properly end the function call. This prevents an attacker from\\n // blocking the withdrawal processing by creating a ton of tiny requests so\\n // this function call cannot fit anymore in block gas limit.\\n if (gasleft() < 45000) break;\\n\\n // Retrieve request data\\n WithdrawalRequest memory request = withdrawalQueue[nextRequestId];\\n\\n // Skip empty request (processed big requests or cancelled requests)\\n if (request.account == address(0)) {}\\n //\\n // If account has been blacklisted since request emission\\n else if (isBlacklisted(request.account)) {\\n // Remove request from queue\\n delete withdrawalQueue[nextRequestId];\\n\\n // Append request in the frozen requests list\\n frozenRequests.push(request);\\n }\\n //\\n // Or if request is a big request, move it at the end of the queue for now.\\n // This request will be processed manually later using processBigQueuedRequest()\\n else if (request.amount > getExpectedRetained() / 2) {\\n // Inform listeners of this queued request being moved at the end of the queue\\n emit ActivityEvent(\\n int256(nextRequestId),\\n _msgSender(),\\n Action.Withdraw,\\n request.amount,\\n request.amount,\\n Status.Moved,\\n int256(withdrawalQueue.length),\\n \\\"\\\"\\n );\\n\\n // Remove request from queue\\n delete withdrawalQueue[nextRequestId];\\n\\n // Append request at the end of the queue\\n withdrawalQueue.push(request);\\n }\\n //\\n // Else, continue request processing\\n else {\\n // Retrieve withdrawal fees and net withdrawn amount\\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\\n request.account,\\n request.amount\\n );\\n\\n // Break if the contract doesn't hold enough funds to cover the request\\n if (withdrawnAmount > usableUnderlyings - cumulatedWithdrawnAmount) break;\\n\\n // Accumulate fees and withdrawn amount\\n cumulatedFees += fees;\\n cumulatedWithdrawnAmount += withdrawnAmount;\\n\\n // Inform listeners of this queued withdrawal processing activity event\\n emit ActivityEvent(\\n int256(nextRequestId),\\n request.account,\\n Action.Withdraw,\\n request.amount,\\n withdrawnAmount,\\n Status.Success,\\n NO_ID,\\n \\\"\\\"\\n );\\n\\n // Remove request from queue\\n delete withdrawalQueue[nextRequestId];\\n\\n // Transfer underlying tokens to account. Burning L-Tokens is not required\\n // as equestWithdrawal() already did it.\\n // Security note: Re-entrancy warning are disabled as the request has\\n // just been deleted from the queue, it will so be skipped if trying to\\n // process it again.\\n // slither-disable-next-line reentrancy-no-eth\\n underlying().safeTransfer(request.account, withdrawnAmount);\\n }\\n\\n // Increment next request ID\\n nextRequestId++;\\n }\\n\\n // Increase unclaimed fees by the amount of cumulated fees\\n unclaimedFees += cumulatedFees;\\n\\n // Decrease usable underlyings by the cumulated amount of withdrawn underlyings\\n usableUnderlyings -= cumulatedWithdrawnAmount;\\n\\n // Decrease total amount queued by the cumulated amount requested\\n totalQueued -= cumulatedWithdrawnAmount + cumulatedFees;\\n\\n // Update new queue cursor\\n withdrawalQueueCursor = nextRequestId;\\n\\n // Retention rate cannot exceeds as the withdrawal decreases both usable\\n // underlyings and expected retained amounts by the same number and as the\\n // expected retained amount is a subset of usable underlyings amount.\\n }\\n\\n /**\\n * @notice Processes a given queued big withdrawal request (one that exceeds half of\\n * the retention rate).\\n * @dev In contrast to non-big requests processing, this function will uses to fund\\n * wallet's balance to fill the request. This allows processing requests that are\\n * greater than retention rate without having to exceed this rate on the contract.\\n * @param requestId The ID of the big request to process.\\n */\\n function processBigQueuedRequest(uint256 requestId) external onlyFund whenNotPaused {\\n // Retrieve request data\\n WithdrawalRequest memory request = withdrawalQueue[requestId];\\n\\n // Ensure the request is active\\n require(request.account != address(0), \\\"L66\\\");\\n\\n // Ensure the request emitter has not been blacklisted since request emission\\n require(!isBlacklisted(request.account), \\\"L50\\\");\\n\\n // Ensure this is indeed a big request\\n require(request.amount > getExpectedRetained() / 2, \\\"L51\\\");\\n\\n // Retrieve withdrawal fees and net withdrawn amount\\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\\n request.account,\\n request.amount\\n );\\n\\n // Ensure withdrawn amount can be covered by contract + fund wallet balances\\n uint256 fundBalance = underlying().balanceOf(fund);\\n require(withdrawnAmount <= usableUnderlyings + fundBalance, \\\"L52\\\");\\n\\n // Increase amount of unclaimed fees accordingly\\n unclaimedFees += fees;\\n\\n // Decrease total queued amount by request amount\\n totalQueued -= request.amount;\\n\\n // Increment queue cursor if request was the next request to be processed\\n if (requestId == withdrawalQueueCursor) withdrawalQueueCursor++;\\n\\n // Inform listeners of this queued withdrawal processing activity event\\n emit ActivityEvent(\\n int256(requestId),\\n request.account,\\n Action.Withdraw,\\n request.amount,\\n withdrawnAmount,\\n Status.Success,\\n NO_ID,\\n \\\"\\\"\\n );\\n\\n // Remove request from queue\\n delete withdrawalQueue[requestId];\\n\\n // If fund wallet's balance can cover request, rely on it only\\n if (withdrawnAmount <= fundBalance) {\\n underlying().safeTransferFrom(_msgSender(), request.account, withdrawnAmount);\\n }\\n // Else, cover request from both fund wallet and contract balances\\n else {\\n // Compute amount missing from fund wallet to cover request\\n uint256 missingAmount = withdrawnAmount - fundBalance;\\n\\n // Decrease usable amount of underlying tokens accordingly\\n usableUnderlyings -= missingAmount;\\n\\n // Transfer entire fund balance to request's emitter\\n underlying().safeTransferFrom(_msgSender(), request.account, fundBalance);\\n\\n // Transfer missing amount from contract balance to request emitter\\n underlying().safeTransfer(request.account, missingAmount);\\n }\\n\\n // Transfer exceeding underlying tokens to the fund wallet\\n _transferExceedingToFund();\\n }\\n\\n /**\\n * @notice Cancels a given withdrawal request. The request emitter receive back its\\n * L-Tokens and no fees will be charged.\\n * @param requestId The ID of the withdrawal request to cancel.\\n */\\n function cancelWithdrawalRequest(\\n uint256 requestId\\n ) public whenNotPaused notBlacklisted(_msgSender()) {\\n // Retrieve request data\\n WithdrawalRequest memory request = withdrawalQueue[requestId];\\n\\n // Ensure request belongs to caller\\n require(_msgSender() == request.account, \\\"L57\\\");\\n\\n // Decrease total amount queued accordingly\\n totalQueued -= request.amount;\\n\\n // Delete the withdrawal request from queue\\n delete withdrawalQueue[requestId];\\n\\n // Inform listeners of this cancelled withdrawal request activity event\\n emit ActivityEvent(\\n int256(requestId),\\n request.account,\\n Action.Withdraw,\\n request.amount,\\n request.amount,\\n Status.Cancelled,\\n NO_ID,\\n \\\"\\\"\\n );\\n\\n // Mint back L-Tokens to account\\n _mint(request.account, uint256(request.amount));\\n }\\n\\n /**\\n * @notice Used by the fund wallet to repatriate underlying tokens on the contract\\n * whenever those are required to fulfill some withdrawal requests.\\n * @dev The function will revert if repatriated amount makes the contract exceeding\\n * the retention rate.\\n * @param amount The amount of underlying tokens to repatriate.\\n */\\n function repatriate(uint256 amount) external onlyFund whenNotPaused {\\n // Ensure the fund wallet has enough funds to repatriate\\n require(amount <= underlying().balanceOf(fund), \\\"L58\\\");\\n\\n // Calculate new contract usable balance\\n uint256 newBalance = usableUnderlyings + amount;\\n\\n // Ensure the new balance doesn't exceed the retention rate\\n require(newBalance <= getExpectedRetained(), \\\"L59\\\");\\n\\n // Increase usable underlyings amount by repatriated amount\\n usableUnderlyings += amount;\\n\\n // Transfer amount from fund wallet to contract\\n underlying().safeTransferFrom(_msgSender(), address(this), amount);\\n }\\n\\n /// @notice Used by owner to claim fees generated from successful withdrawals.\\n function claimFees() external onlyOwner {\\n // Ensure there are some fees to claim\\n require(unclaimedFees > 0, \\\"L60\\\");\\n\\n // Ensure the contract holds enough underlying tokens to cover fees\\n require(usableUnderlyings >= unclaimedFees, \\\"L61\\\");\\n\\n // Decrease usable underlyings amount accordingly\\n usableUnderlyings -= unclaimedFees;\\n\\n // Store fees amount in memory and reset unclaimed fees amount\\n uint256 fees = unclaimedFees;\\n unclaimedFees = 0;\\n\\n // Transfer unclaimed fees to owner\\n underlying().safeTransfer(owner(), fees);\\n }\\n}\\n\",\"keccak256\":\"0xa2ce7f41da91c631cd0e4e75d07f2616a9cb620fe0fd5397027d54fdb9008070\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {OwnableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport {GlobalOwner} from \\\"../GlobalOwner.sol\\\";\\n\\n/**\\n * @title GlobalOwnableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\\n * contract (see GlobalOwner.sol). This design facilitates centralized management\\n * of ownership for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalOwner state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalOwnableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\\n /**\\n * @notice The GlobalOwner contract the ownership will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalOwner private _globalOwner;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init_unchained(globalOwner_);\\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\\n // the initial _owner value, calling it would have no effect.\\n }\\n\\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\\n _globalOwner = GlobalOwner(globalOwner_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalOwner contract.\\n * @return The address of the GlobalOwner contract.\\n */\\n function globalOwner() public view returns (address) {\\n return address(_globalOwner);\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\\n * from the GlobalOwner contract instead.\\n * @return The address of the owner\\n */\\n function owner() public view override returns (address) {\\n return _globalOwner.owner();\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function transferOwnership(address newOwner) public view override onlyOwner {\\n newOwner; // Silence unused variable compiler warning\\n revert(\\\"L8\\\");\\n }\\n\\n /**\\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\\n * Ownership is managed by the GlobalOwner contract and must be modified there.\\n */\\n function renounceOwnership() public view override onlyOwner {\\n revert(\\\"L65\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x9203f7a2a19def126d8ff0fde8357053ffcf1100d65ec8faec8299b6ed2c0c5a\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalPausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport {GlobalPause} from \\\"../GlobalPause.sol\\\";\\n\\n/**\\n * @title GlobalPausableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit a pause state from the specified GlobalPause\\n * contract (see GlobalPause.sol). This design facilitates centralized management of\\n * pause state for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure\\n * The _globalPause state must be set at initialization time and, for evident security\\n * reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalPausableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalPausableUpgradeable is Initializable, PausableUpgradeable {\\n /**\\n * @notice The GlobalPause contract the pause state will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalPause private _globalPause;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalPause_ The address of the GlobalPause contract.\\n */\\n function __GlobalPausable_init(address globalPause_) internal onlyInitializing {\\n __Pausable_init();\\n __GlobalPausable_init_unchained(globalPause_);\\n }\\n\\n function __GlobalPausable_init_unchained(address globalPause_) internal onlyInitializing {\\n _globalPause = GlobalPause(globalPause_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalPause contract.\\n * @return The address of the GlobalPause contract.\\n */\\n function globalPause() public view returns (address) {\\n return address(_globalPause);\\n }\\n\\n /**\\n * @notice Override of PausableUpgradeable.pause() that retrieves the pause state\\n * from the GlobalPause contract instead.\\n * @return Whether the contract is paused or not.\\n */\\n function paused() public view virtual override returns (bool) {\\n return _globalPause.paused();\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xff508c0b8c48916885453b4894d0401e94580fb24fb6af1885a3e160864cde94\",\"license\":\"MIT\"},\"contracts/src/abstracts/GlobalRestrictableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalBlacklist} from \\\"../GlobalBlacklist.sol\\\";\\n\\n/**\\n * @title GlobalRestrictableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts will inherit a blacklist state from the specified\\n * GlobalBlacklist contract (see GlobalBlacklist.sol). This design facilitates\\n * centralized management of a blacklist for all the Ledgity Yield contracts.\\n *\\n * @dev Security measure:\\n * The _globalBlacklist state must be set at initialization time and, for evident\\n * security reasons, cannot be changed afterward.\\n *\\n * @dev For further details, see \\\"GlobalRestrictableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract GlobalRestrictableUpgradeable is Initializable {\\n /**\\n * @notice The GlobalBlacklist contract the blacklist state will be inherited from.\\n * @dev This state is private so derived contracts cannot change its value.\\n */\\n GlobalBlacklist private _globalBlacklist;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n */\\n function __GlobalRestrictable_init(address globalBlacklist_) internal onlyInitializing {\\n __GlobalRestrictable_init_unchained(globalBlacklist_);\\n }\\n\\n function __GlobalRestrictable_init_unchained(\\n address globalBlacklist_\\n ) internal onlyInitializing {\\n _globalBlacklist = GlobalBlacklist(globalBlacklist_);\\n }\\n\\n /**\\n * @notice Retrieves the address of GlobalBlacklist contract.\\n * @return The address of the GlobalBlacklist contract.\\n */\\n function globalBlacklist() public view returns (address) {\\n return address(_globalBlacklist);\\n }\\n\\n /**\\n * @notice Reverts if the given account is blacklisted by the GlobalBlacklist contract.\\n * @param account Address to verify.\\n */\\n modifier notBlacklisted(address account) {\\n require(isBlacklisted(account) == false, \\\"L9\\\");\\n _;\\n }\\n\\n /**\\n * @notice Checks if the given account is blacklisted by the GlobalBlacklist contract.\\n * @param account Address to verify.\\n * @return Whether the account is blacklisted.\\n */\\n function isBlacklisted(address account) internal view returns (bool) {\\n return _globalBlacklist.isBlacklisted(account);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x0032fde90d9cf23e70dd4b604ae0d1ed3283f117bc24f68d32f8933e1bd372bc\",\"license\":\"MIT\"},\"contracts/src/abstracts/InvestUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Contracts\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./GlobalOwnableUpgradeable.sol\\\";\\nimport {GlobalPausableUpgradeable} from \\\"./GlobalPausableUpgradeable.sol\\\";\\nimport {GlobalRestrictableUpgradeable} from \\\"./GlobalRestrictableUpgradeable.sol\\\";\\nimport \\\"./base/BaseUpgradeable.sol\\\";\\nimport {RecoverableUpgradeable} from \\\"../abstracts/RecoverableUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\nimport {APRHistory as APRH} from \\\"../libs/APRHistory.sol\\\";\\nimport {SUD} from \\\"../libs/SUD.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\nimport {IERC20MetadataUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\\\";\\n\\n/**\\n * @title InvestUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts are provided with utilities to manage an invested token,\\n * users' investment periods, rewards calculations, virtual balances, and auto-compounding.\\n *\\n * @dev Intuition:\\n * This contract primarily exists for code splitting and reusability. It unburdens the\\n * LToken contract code, making it easier to understand and maintain.\\n *\\n * This contract is generic because it may be used in the LDYStaking contract in the future.\\n *\\n * @dev Definitions:\\n * - Investment: The act of depositing or investing tokens into the contract.\\n * - Investment period: Time between the last invested amount change and the present.\\n * - Virtual balance: Temporary storage for account rewards, used when those can't be\\n * distributed between investment periods.\\n * - Rewards redirection: Mechanism allowing an account to redirect its rewards to another.\\n *\\n * @dev Derived contract must:\\n * - Set invested token during initialization\\n * - Implement _investmentOf() function\\n * - (optionally) Implement _distributeRewards() function\\n *\\n * @dev For further details, see \\\"InvestmentUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract InvestUpgradeable is BaseUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n using APRH for APRH.Pack[];\\n\\n /**\\n * @notice Represents an account's investment period.\\n * @param timestamp The timestamp of the most recent rewards distribution.\\n * @param ref The reference of the last APR checkpoint at that timestamp.\\n */\\n struct InvestmentPeriod {\\n uint40 timestamp; // Supports dates up to 20/02/36812\\n APRH.Reference ref;\\n }\\n\\n /**\\n * @notice Represents the investment details of an account.\\n * @param period The current investment period of the account.\\n * @param virtualBalance May hold a part of account rewards until they are claimed.\\n */\\n struct AccountDetails {\\n InvestmentPeriod period;\\n uint256 virtualBalance;\\n }\\n\\n /// @notice Holds a reference to the invested token's contract.\\n IERC20Upgradeable private _invested;\\n\\n /// @notice Holds investment details of each account.\\n mapping(address => AccountDetails) internal accountsDetails;\\n\\n /// @notice Holds an history of the APR value over time (see APRHistory.sol).\\n APRH.Pack[] private _aprHistory;\\n\\n /// @notice Holds active rewards redirections in both from->to and to->from[] ways.\\n mapping(address => address) public rewardsRedirectsFromTo;\\n mapping(address => address[]) public rewardsRedirectsToFrom;\\n\\n /// @notice Is used to prevent infinite loop in _beforeInvestmentChange().\\n bool private _isClaiming;\\n\\n /**\\n * @notice Emitted to inform listeners about a change in the APR's value.\\n * @param newAPRUD7x3 The new APR in UD7x3 format.\\n */\\n event APRChangeEvent(uint16 newAPRUD7x3);\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param invested_ The address of the invested token contract.\\n */\\n function __Invest_init(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n address invested_\\n ) internal onlyInitializing {\\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\\n __Invest_init_unchained(invested_);\\n }\\n\\n function __Invest_init_unchained(address invested_) internal onlyInitializing {\\n // Set invested token\\n _invested = IERC20Upgradeable(invested_);\\n\\n // Define initial APR to 0%. This would prevent getAPR() from reverting because\\n // of an empty APR history\\n _aprHistory.setAPR(0);\\n }\\n\\n /**\\n * @notice Retrieves the reference to the invested token contract.\\n * @return The reference to the invested token contract.\\n */\\n function invested() public view returns (IERC20Upgradeable) {\\n return _invested;\\n }\\n\\n /**\\n * @notice Updates the investment APR. Restricted to owner.\\n * @param aprUD7x3 The new APR in UD7x3 format.\\n */\\n function setAPR(uint16 aprUD7x3) public onlyOwner {\\n _aprHistory.setAPR(aprUD7x3);\\n emit APRChangeEvent(aprUD7x3);\\n }\\n\\n /**\\n * @notice Retrieves the most recently set APR.\\n * @return The current APR in UD7x3 format.\\n */\\n function getAPR() public view returns (uint16) {\\n return _aprHistory.getAPR();\\n }\\n\\n /**\\n * @notice Enables redirection of rewards from one account to another.\\n * @param from The address of the account to redirect rewards from.\\n * @param to The address of the account to redirect rewards to.\\n */\\n function startRewardsRedirection(\\n address from,\\n address to\\n ) public whenNotPaused notBlacklisted(from) notBlacklisted(to) {\\n // Ensure the address is not already redirecting rewards\\n require(rewardsRedirectsFromTo[from] == address(0), \\\"L62\\\");\\n\\n // Ensure neither 'from' nor 'to' are the zero address\\n require(from != address(0), \\\"L12\\\");\\n require(to != address(0), \\\"L13\\\");\\n\\n // Ensure 'from' and 'to' addresses are distinct\\n require(from != to, \\\"L14\\\");\\n\\n // Ensure function caller is either the owner or the 'from' address\\n require(_msgSender() == owner() || _msgSender() == from, \\\"L15\\\");\\n\\n // Distribute current rewards and reset investment periods of both accounts\\n _beforeInvestmentChange(from, true);\\n _beforeInvestmentChange(to, true);\\n\\n // Activate rewards redirection\\n rewardsRedirectsFromTo[from] = to;\\n rewardsRedirectsToFrom[to].push(from);\\n }\\n\\n /**\\n * @notice Disable an active rewards redirection.\\n * @param from The address of the account to stop redirecting rewards from.\\n * @param to The address of the account to stop redirecting rewards to.\\n */\\n function stopRewardsRedirection(\\n address from,\\n address to\\n ) public whenNotPaused notBlacklisted(from) notBlacklisted(to) {\\n // Ensure neither 'from' nor 'to' are the zero address\\n require(from != address(0), \\\"L16\\\");\\n require(to != address(0), \\\"L17\\\");\\n\\n // Ensure function caller is either the owner or the 'from' address\\n require(_msgSender() == owner() || _msgSender() == from, \\\"L18\\\");\\n\\n // Ensure a rewards redirection was active\\n require(rewardsRedirectsFromTo[from] == to, \\\"L19\\\");\\n\\n // Distribute current rewards and reset investment periods of both accounts\\n _beforeInvestmentChange(from, true);\\n _beforeInvestmentChange(to, true);\\n\\n // Retrieve 'from' index in the redirection array of 'to'\\n int256 fromIndex = -1;\\n for (uint256 i = 0; i < rewardsRedirectsToFrom[to].length; i++) {\\n if (rewardsRedirectsToFrom[to][i] == from) {\\n fromIndex = int256(i);\\n break;\\n }\\n }\\n\\n // fromIndex should never be -1 at this point\\n assert(fromIndex >= 0);\\n\\n // Deactivate rewards redirection\\n rewardsRedirectsFromTo[from] = address(0);\\n rewardsRedirectsToFrom[to][uint256(fromIndex)] = rewardsRedirectsToFrom[to][\\n rewardsRedirectsToFrom[to].length - 1\\n ];\\n rewardsRedirectsToFrom[to].pop();\\n }\\n\\n /**\\n * @notice Retrieves the total amount of tokens invested by the given account.\\n * @dev Derived contracts must implement this function.\\n * @param account The account to get the investment of.\\n * @return The total amount of tokens invested by the given account.\\n */\\n function _investmentOf(address account) internal view virtual returns (uint256);\\n\\n /**\\n * @notice Distributes a specified amount of rewards to a given account.\\n * @dev Derived contracts may optionally implement this function.\\n * @dev Implementations must return true to indicate a successful distribution, and\\n * false otherwise. If it returns false, the rewards will be added to the account's\\n * virtual balance, in order to be claimed later.\\n * @param account The account to claim the rewards of.\\n * @param amount The amount of rewards to claim.\\n * @return Whether the rewards distribution was successfull.\\n */\\n function _distributeRewards(address account, uint256 amount) internal virtual returns (bool) {\\n account; // Silence unused variables warning\\n amount;\\n return false;\\n }\\n\\n /**\\n * @notice Computes the rewards accrued over a specified period of time, based on a\\n * given APR and amount of invested tokens.\\n * @dev For further details, see \\\"InvestUpgradeable > Rewards calculation\\\" section of\\n * the whitepaper.\\n * @param beginTimestamp The moment the period commenced.\\n * @param endTimestamp The moment the period concluded.\\n * @param aprUD7x3 The APR during this period, in UD7x3 format.\\n * @param investedAmount The amount of tokens deposited/invested during the period.\\n * @return The amount of rewards generated during the period.\\n */\\n function _calculatePeriodRewards(\\n uint40 beginTimestamp,\\n uint40 endTimestamp,\\n uint16 aprUD7x3,\\n uint256 investedAmount\\n ) internal view returns (uint256) {\\n // Cache invested token's decimals number\\n uint256 d = SUD.decimalsOf(address(invested()));\\n\\n // Compute the number of elapsed years\\n uint256 elapsedTimeSUD = SUD.fromInt(endTimestamp - beginTimestamp, d);\\n uint256 elapsedYearsSUD = (elapsedTimeSUD * SUD.fromInt(1, d)) / SUD.fromInt(365 days, d);\\n\\n // Compute the growth in invested amount (thanks to rewards)\\n uint256 aprSUD = SUD.fromRate(aprUD7x3, d);\\n uint256 growthSUD = (elapsedYearsSUD * aprSUD) / SUD.fromInt(1, d);\\n\\n // Compute and return the rewards\\n uint256 investedAmountSUD = SUD.fromAmount(investedAmount, d);\\n uint256 rewardsSUD = (investedAmountSUD * growthSUD) / SUD.fromInt(100, d);\\n return SUD.toAmount(rewardsSUD, d);\\n }\\n\\n /**\\n * @notice Computes the sum of given account's invested amount, plus invested amount\\n * of all accounts that recursively redirect rewards to this account.\\n * @param account The account to calculate the deep investment of.\\n * @return deepInvestedAmount The deep invested amount.\\n */\\n function _deepInvestmentOf(address account) internal view returns (uint256 deepInvestedAmount) {\\n // Consider account's direct investment\\n deepInvestedAmount += _investmentOf(account);\\n\\n // But also the deep investments of all accounts redirecting rewards to this account\\n for (uint256 i = 0; i < rewardsRedirectsToFrom[account].length; i++) {\\n deepInvestedAmount += _deepInvestmentOf(rewardsRedirectsToFrom[account][i]);\\n }\\n }\\n\\n /**\\n * @notice Computes the amount of unclaimed/undistributed rewards of a given account.\\n * @dev For further details, see \\\"InvestUpgradeable > Rewards calculation\\\" section of\\n * the whitepaper.\\n * @param account The account to calculate the unclaimed rewards of.\\n * @param autocompound Whether to autocompound the rewards between APR checkpoints.\\n * @return rewards The amount of unclaimed/undistributed rewards of the given account.\\n */\\n function _rewardsOf(\\n address account,\\n bool autocompound\\n ) internal view returns (uint256 rewards) {\\n // Retrieve account's investment details\\n AccountDetails memory details = accountsDetails[account];\\n\\n // Retrieve account's deep invested amount\\n uint256 investedAmount = _deepInvestmentOf(account);\\n\\n // Return 0 if the account has never invested or has no invested amount\\n if (details.period.timestamp == 0 || investedAmount == 0) return 0;\\n\\n // Retrieve reference and data of APR checkpoint at which started investment period\\n APRH.Reference memory currRef = details.period.ref;\\n APRH.CheckpointData memory currCheckpoint = _aprHistory.getDataFromReference(currRef);\\n\\n // Retrieve reference of latest APR checkpoint\\n APRH.Reference memory latestRef = _aprHistory.getLatestReference();\\n\\n // 1) Fill rewards with virtual balance (rewards not claimed/distributed yet)\\n // See \\\"InvestUpgradeable > Yield calculation > 1)\\\" section of the whitepaper\\n rewards = details.virtualBalance;\\n\\n // If start checkpoint is not the latest one\\n if (!APRH.eq(currRef, latestRef)) {\\n // Retrieve reference and data of APR checkpoint that comes after start checkpoint\\n APRH.Reference memory nextRef = APRH.incrementReference(currRef);\\n APRH.CheckpointData memory nextCheckpoint = _aprHistory.getDataFromReference(nextRef);\\n\\n // 2) Calculate rewards from investment period start to next checkpoint\\n // See \\\"InvestUpgradeable > Yield calculation > 2)\\\" section of the whitepaper\\n rewards += _calculatePeriodRewards(\\n details.period.timestamp,\\n nextCheckpoint.timestamp,\\n currCheckpoint.aprUD7x3,\\n investedAmount + (autocompound ? rewards : 0)\\n );\\n\\n // 3) Calculate rewards for each crossed pair of checkpoints\\n // See \\\"InvestUpgradeable > Yield calculation > 3)\\\" section of the whitepaper\\n while (true) {\\n // Set next checkpoint as the current one\\n currRef = nextRef;\\n currCheckpoint = nextCheckpoint;\\n\\n // Break if current checkpoint is the latest one\\n if (APRH.eq(currRef, latestRef)) break;\\n\\n // Else, retrieve the new next checkpoint\\n nextRef = APRH.incrementReference(currRef);\\n nextCheckpoint = _aprHistory.getDataFromReference(nextRef);\\n\\n // Calculate rewards between the current pair of checkpoints\\n rewards += _calculatePeriodRewards(\\n currCheckpoint.timestamp,\\n nextCheckpoint.timestamp,\\n currCheckpoint.aprUD7x3,\\n investedAmount + (autocompound ? rewards : 0)\\n );\\n }\\n\\n // 4) Calculate rewards from the latest checkpoint to now\\n // See \\\"InvestUpgradeable > Yield calculation > 4)\\\" section of the whitepaper\\n rewards += _calculatePeriodRewards(\\n currCheckpoint.timestamp,\\n uint40(block.timestamp),\\n currCheckpoint.aprUD7x3,\\n investedAmount + (autocompound ? rewards : 0)\\n );\\n } else {\\n // 2.bis) Calculate rewards from investment period start to now\\n // See \\\"InvestUpgradeable > Yield calculation > 2.bis)\\\" section of the whitepaper\\n rewards += _calculatePeriodRewards(\\n details.period.timestamp,\\n uint40(block.timestamp),\\n currCheckpoint.aprUD7x3,\\n investedAmount + (autocompound ? rewards : 0)\\n );\\n }\\n }\\n\\n /**\\n * @notice Recursively resets the investment period of the specified account and of\\n * all accounts that directly or indirectly redirect rewards to this account.\\n * @param account The account to deeply reset the investment period of.\\n */\\n function _deepResetInvestmentPeriodOf(address account) internal {\\n // Reset account investment period timestamp and APR checkpoint to latest ones\\n accountsDetails[account].period.timestamp = uint40(block.timestamp);\\n accountsDetails[account].period.ref = _aprHistory.getLatestReference();\\n\\n // Also reset the ones of all accounts that recursively redirect rewards to this account\\n for (uint256 i = 0; i < rewardsRedirectsToFrom[account].length; i++) {\\n _deepResetInvestmentPeriodOf(rewardsRedirectsToFrom[account][i]);\\n }\\n }\\n\\n /**\\n * @notice Hook to be invoked before the invested amount of an account changes. It\\n * ensures that rewards are distributed and that account's investment period is reset.\\n * @param account The account whose invested amount is going to change.\\n * @param autocompound Whether to autocompound the rewards between APR checkpoints.\\n */\\n function _beforeInvestmentChange(address account, bool autocompound) internal {\\n // This hook is called inside LToken._beforeTokenTransfer() and as new tokens are\\n // minted in LToken._distributeRewards(), this guards against infinite loop.\\n if (_isClaiming) return;\\n\\n // LToken._beforeTokenTransfer() calls this hook for both involved addresses.\\n // As first call will treat both addresses, the second call would be redundant.\\n // Therefore, we skip accounts already processed in this block to save up some gas.\\n if (accountsDetails[account].period.timestamp == uint40(block.timestamp)) return;\\n\\n // If account redirects its rewards\\n address redirectRewardsTo = rewardsRedirectsFromTo[account];\\n if (redirectRewardsTo != address(0)) {\\n // Call hook on redirection target (this will indirectly reset the investment\\n // of this source account) and return\\n _beforeInvestmentChange(redirectRewardsTo, autocompound);\\n return;\\n }\\n\\n // Else, compute account's undistributed/unclaimed rewards\\n uint256 rewards = _rewardsOf(account, autocompound);\\n\\n // If there are some rewards\\n if (rewards > 0) {\\n // Try to distribute rewards to account\\n _isClaiming = true;\\n bool distributed = _distributeRewards(account, rewards);\\n _isClaiming = false;\\n\\n // If rewards have not been distributed, accumulate them in account's virtual balance\\n if (!distributed) accountsDetails[account].virtualBalance = rewards;\\n }\\n\\n // Finally, deeply reset investment period of the account\\n _deepResetInvestmentPeriodOf(account);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xdb6d0b0e2f2546b6be0ac9244e99017c5e5da1e5b7783d6fff50f4217b9ec820\",\"license\":\"MIT\"},\"contracts/src/abstracts/RecoverableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n// Conracts\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"./GlobalOwnableUpgradeable.sol\\\";\\n\\n// Libraries\\nimport {SafeERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n// Interfaces\\nimport {IERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title RecoverableUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice Derived contracts are provided with helper functions allowing the recovery of\\n * assets accidentally sent to them.\\n *\\n * @dev Where are utilities Ether, ERC721, etc.?\\n * This abstract contract currently supports only ERC20 tokens. Derived contracts\\n * in this codebase currently do not implement the necessary functions to receive Ether\\n * or ERC721/ERC1155 tokens, so no recovery functions are provided for these assets.\\n *\\n * @dev For further details, see \\\"RecoverableUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract RecoverableUpgradeable is Initializable, GlobalOwnableUpgradeable {\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n */\\n function __Recoverable_init(address globalOwner_) internal onlyInitializing {\\n __GlobalOwnable_init(globalOwner_);\\n __Recoverable_init_unchained();\\n }\\n\\n function __Recoverable_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Recovers a specified amount of a given token address. Will fail if the\\n * contract doesn't hold enough tokens.\\n * @param tokenAddress The address of the token to recover.\\n * @param amount The amount of token to recover.\\n */\\n function recoverERC20(address tokenAddress, uint256 amount) public virtual onlyOwner {\\n // Ensure the specified amount is not zero\\n require(amount > 0, \\\"L10\\\");\\n\\n // Create a reference to token's contract\\n IERC20Upgradeable tokenContract = IERC20Upgradeable(tokenAddress);\\n\\n // Ensure there is enough token to recover\\n require(tokenContract.balanceOf(address(this)) >= amount, \\\"L11\\\");\\n\\n // Transfer the recovered token amount to the sender\\n tokenContract.safeTransfer(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xc70110d1284c9e4aa7c518b3b98682dd9edbe6f6fb23761d825554ba41a80d5e\",\"license\":\"MIT\"},\"contracts/src/abstracts/base/BaseUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {GlobalPausableUpgradeable} from \\\"../GlobalPausableUpgradeable.sol\\\";\\nimport {GlobalOwnableUpgradeable} from \\\"../GlobalOwnableUpgradeable.sol\\\";\\nimport {GlobalRestrictableUpgradeable} from \\\"../GlobalRestrictableUpgradeable.sol\\\";\\nimport {RecoverableUpgradeable} from \\\"../RecoverableUpgradeable.sol\\\";\\n\\n/**\\n * @title BaseUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This abstract contract acts as a base for numerous contracts in this codebase,\\n * minimizing code repetition and enhancing readability and maintainability.\\n *\\n * @dev For further details, see \\\"Base\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract BaseUpgradeable is\\n Initializable,\\n UUPSUpgradeable,\\n GlobalOwnableUpgradeable,\\n GlobalPausableUpgradeable,\\n GlobalRestrictableUpgradeable,\\n RecoverableUpgradeable\\n{\\n /**\\n * @notice Prevents implementation contract from being initialized as recommended by\\n * OpenZeppelin.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n */\\n function __Base_init(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_\\n ) internal onlyInitializing {\\n __UUPSUpgradeable_init();\\n __GlobalOwnable_init(globalOwner_);\\n __Pausable_init();\\n __GlobalPausable_init_unchained(globalPause_);\\n __GlobalRestrictable_init_unchained(globalBlacklist_);\\n __Recoverable_init_unchained();\\n }\\n\\n function __Base_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\\n * global owner. It is called by the proxy contract during an upgrade.\\n * @param newImplementation The address of the new implementation contract.\\n */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xe445c759682f31d39e63663ff8217072c0e81086bda11ea473247be334c3e424\",\"license\":\"MIT\"},\"contracts/src/abstracts/base/ERC20BaseUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {ERC20Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\\\";\\nimport {ERC20PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol\\\";\\nimport {PausableUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport \\\"./BaseUpgradeable.sol\\\";\\nimport {GlobalPausableUpgradeable} from \\\"../GlobalPausableUpgradeable.sol\\\";\\n\\n/**\\n * @title ERC20BaseUpgradeable\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This abstract contract is an extension of BaseUpgradeable intended to be used\\n * as a base for ERC20 tokens contracts.\\n *\\n * @dev For further details, see \\\"ERC20BaseUpgradeable\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nabstract contract ERC20BaseUpgradeable is\\n ERC20Upgradeable,\\n BaseUpgradeable,\\n ERC20PausableUpgradeable\\n{\\n /**\\n * @notice Initializer functions of the contract. They replace the constructor()\\n * function in the context of upgradeable contracts.\\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\\n * @param globalOwner_ The address of the GlobalOwner contract.\\n * @param globalPause_ The address of the GlobalPause contract.\\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\\n * @param name_ The display name of the token.\\n * @param symbol_ The symbol of the token.\\n */\\n function __ERC20Base_init(\\n address globalOwner_,\\n address globalPause_,\\n address globalBlacklist_,\\n string memory name_,\\n string memory symbol_\\n ) internal onlyInitializing {\\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\\n __ERC20_init(name_, symbol_);\\n __ERC20Pausable_init_unchained();\\n }\\n\\n function __ERC20Base_init_unchained() internal onlyInitializing {}\\n\\n /**\\n * @notice Required override of paused() which is implemented by both\\n * GlobalPausableUpgradeable and PausableUpgradeable parent contracts.\\n * The GlobalPausableUpgradeable version is preferred because it checks the pause\\n * state from the GlobalPause contract.\\n * @inheritdoc GlobalPausableUpgradeable\\n */\\n function paused()\\n public\\n view\\n virtual\\n override(GlobalPausableUpgradeable, PausableUpgradeable)\\n returns (bool)\\n {\\n return GlobalPausableUpgradeable.paused();\\n }\\n\\n /**\\n * @dev Required override of _beforeTokenTransfer() which is implemented by both\\n * ERC20PausableUpgradeable and ERC20Upgradeable parent contracts.\\n * The ERC20PausableUpgradeable version is preferred because it also checks that\\n * the contract is not paused before allowing the transfer.\\n * @inheritdoc ERC20PausableUpgradeable\\n */\\n function _beforeTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n )\\n internal\\n virtual\\n override(ERC20PausableUpgradeable, ERC20Upgradeable)\\n whenNotPaused\\n notBlacklisted(from)\\n notBlacklisted(to)\\n {\\n ERC20PausableUpgradeable._beforeTokenTransfer(from, to, amount);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add\\n * new variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0xa69b9acca2902fcfe513889516fcffc830903fc3c6a3a11e2ad8da7460201378\",\"license\":\"MIT\"},\"contracts/src/interfaces/ITransfersListener.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\ninterface ITransfersListener {\\n function onLTokenTransfer(address from, address to, uint256 amount) external;\\n}\\n\",\"keccak256\":\"0xf1d4172da97ccaf7199601dd9bdb2ac92a49b6977ec34bba010af37f662549fb\",\"license\":\"MIT\"},\"contracts/src/libs/APRHistory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\n/**\\n * @title APRHistory\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice This library offers utilities to efficiently maintain the history of an\\n * on-chain APR (Annual Percentage Rate) state. Each entry in this history is called\\n * a \\\"checkpoint\\\".\\n *\\n * @dev Intuition:\\n * Each checkpoint in an APR history consists of two data:\\n * - the creation timestamp\\n * - the APR at that time\\n *\\n * Given that reading and writing to storage slots are among the most costly operations\\n * in Solidity, this library provides a way to store those data in a way that minimizes\\n * the number of used storage slots.\\n *\\n * Instead of storing each checkpoint in a separate storage slot, this library\\n * facilitates the packing of up to 4 checkpoints in a single storage slot.\\n *\\n * @dev Definitions:\\n * - Checkpoint: A record of an APR change\\n * - Pack: A collection of 4 checkpoints stored in a single storage slot\\n * - History: A dynamic array of packs\\n * - Reference: A storage pointer to a checkpoint in the APR history\\n * - CheckpointData: An in-memory representation of a checkpoint data\\n *\\n * @dev Value limitation:\\n * This library can accommodate APRs only up to 65.536%. This is however sufficient for\\n * APR in LToken contract, which is expected to remain below 10%.\\n *\\n * @dev For further details, see \\\"APRHistory\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nlibrary APRHistory {\\n /**\\n * @notice Represents data of a checkpoint extracted from the on-chain history.\\n * For on-chain representation see \\\"Pack\\\" struct.\\n * @param aprUD7x3 APR in UD7x3 format (e.g., 12345 = 12.345%).\\n * @param timestamp Timestamp of the checkpoint's creation.\\n */\\n struct CheckpointData {\\n uint16 aprUD7x3; // Allows up to 65.536%\\n uint40 timestamp; // Supports dates up to 20/02/36812\\n }\\n\\n /**\\n * @notice Represents how APR checkpoints are stored on chain. Each pack can contain\\n * the data 4 checkpoints. Packs are then stored in a dynamic array (the history).\\n * @param aprsUD7x3 Array of checkpoints' APRs.\\n * @param timestamps Array of checkpoints' timestamps.\\n * @param cursor Index of the next checkpoint to be written.\\n */\\n struct Pack {\\n uint16[4] aprsUD7x3;\\n uint40[4] timestamps;\\n uint32 cursor;\\n }\\n\\n /**\\n * @notice Represents a storage pointer to a specific checkpoint in the history.\\n * @param packIndex Index of the pack the checkpoint belongs to.\\n * @param cursorIndex Index of the checkpoint in this pack (between 0 and 3).\\n */\\n struct Reference {\\n uint256 packIndex;\\n uint32 cursorIndex;\\n }\\n\\n /**\\n * @notice Compares two checkpoints references.\\n * @param ref1 The first reference to compare.\\n * @param ref2 The second reference to compare.\\n * @return Whether the two references points to the same checkpoint.\\n */\\n function eq(Reference memory ref1, Reference memory ref2) external pure returns (bool) {\\n return ref1.packIndex == ref2.packIndex && ref1.cursorIndex == ref2.cursorIndex;\\n }\\n\\n /**\\n * @notice Returns the reference of the checkpoint that should come right after the\\n * referenced checkpoint in the APR history.\\n * @param ref The reference to be incremented.\\n * @return The incremented reference.\\n */\\n function incrementReference(Reference memory ref) public pure returns (Reference memory) {\\n // Ensure cursor index of the given ref is within valid range [0, 3]\\n require(ref.cursorIndex <= 3, \\\"L1\\\");\\n\\n // If the given ref is the last slot in its pack, return ref of next pack's first slot\\n if (ref.cursorIndex == 3) return Reference(ref.packIndex + 1, 0);\\n //\\n // Else, return ref of next slot in current pack\\n else return Reference(ref.packIndex, ref.cursorIndex + 1);\\n }\\n\\n /**\\n * @notice Extracts checkpoint data from a given reference and in APR history.\\n * @param self The APR history to extract the checkpoint from.\\n * @param ref The reference of the checkpoint data to extract.\\n * @return The extracted checkpoint's data.\\n */\\n function getDataFromReference(\\n Pack[] storage self,\\n Reference memory ref\\n ) public view returns (CheckpointData memory) {\\n // Ensure cursor index of the given ref is within valid range [0, 3]\\n require(ref.cursorIndex <= 3, \\\"L2\\\");\\n\\n // Ensure pack index of the given ref exists in history\\n require(ref.packIndex < self.length, \\\"L3\\\");\\n\\n // Retrieve pack data from history\\n Pack memory pack = self[ref.packIndex];\\n\\n // Ensure cursor index of the given ref has been written\\n require(ref.cursorIndex < pack.cursor, \\\"L4\\\");\\n\\n // Build and return the checkpoint data\\n return\\n CheckpointData({\\n aprUD7x3: pack.aprsUD7x3[ref.cursorIndex],\\n timestamp: pack.timestamps[ref.cursorIndex]\\n });\\n }\\n\\n /**\\n * @notice Retrieves the reference to the most recently added checkpoint in the APR history.\\n * @param self The history to extract the reference from.\\n * @return The reference of the latest checkpoint.\\n */\\n function getLatestReference(Pack[] storage self) public view returns (Reference memory) {\\n // Ensure the given history is not empty\\n require(self.length != 0, \\\"L5\\\");\\n\\n // Retrieve latest pack's index and cursor\\n uint256 packIndex = self.length - 1;\\n uint32 packCursor = self[packIndex].cursor;\\n\\n // If this is the first pack ever, ensure it is not empty\\n if (packIndex == 0) require(packCursor != 0, \\\"L6\\\");\\n\\n // If the pack is empty, return ref of previous pack's latest slot\\n if (packCursor == 0) return Reference(packIndex - 1, 3);\\n //\\n // Else, return ref of previous slot in current pack\\n else return Reference(packIndex, packCursor - 1);\\n }\\n\\n /**\\n * @notice Appends a new empty pack to the end of the given APR history array.\\n * @param self The APR history to append an empty to.\\n */\\n function newBlankPack(Pack[] storage self) internal {\\n // If history is not empty, ensure the latest pack is full\\n require(self.length == 0 || getLatestReference(self).cursorIndex == 3, \\\"L7\\\");\\n\\n // Push a new blank pack to the history array\\n self.push(\\n Pack({\\n aprsUD7x3: [uint16(0), uint16(0), uint16(0), uint16(0)],\\n timestamps: [uint40(0), uint40(0), uint40(0), uint40(0)],\\n cursor: 0\\n })\\n );\\n }\\n\\n /**\\n * @notice Write a new APR checkpoint at the end of the given history array.\\n * @param self The array of packs to write the new checkpoint to.\\n * @param aprUD7x3 The new APR in UD7x3 format.\\n */\\n function setAPR(Pack[] storage self, uint16 aprUD7x3) external {\\n // Determine the reference where the new checkpoint should be written\\n Reference memory newRef = self.length == 0\\n ? Reference(0, 0)\\n : incrementReference(getLatestReference(self));\\n\\n // If pack to be written doesn't exist yet, push a new blank pack in history\\n if (newRef.packIndex >= self.length) newBlankPack(self);\\n\\n // Retrieve the pack where the new checkpoint will be stored\\n Pack memory pack = self[newRef.packIndex];\\n\\n // Add new checkpoint's data to the pack\\n pack.aprsUD7x3[newRef.cursorIndex] = aprUD7x3;\\n pack.timestamps[newRef.cursorIndex] = uint40(block.timestamp);\\n\\n // Increment the pack's cursor\\n pack.cursor++;\\n\\n // Write the updated pack in storage\\n self[newRef.packIndex] = pack;\\n }\\n\\n /**\\n * @notice Retrieves the APR of the latest checkpoint written in the APR history.\\n * @param self The history array to read APR from.\\n * @return The latest checkpoint's APR.\\n */\\n function getAPR(Pack[] storage self) public view returns (uint16) {\\n // Retrieve the latest checkpoint data\\n Reference memory ref = getLatestReference(self);\\n CheckpointData memory data = getDataFromReference(self, ref);\\n\\n // Return the latest checkpoint's APR\\n return data.aprUD7x3;\\n }\\n}\\n\",\"keccak256\":\"0x0b3d02a33c5e5be03cefc5192439def2efa43be664c372e83f309be34fd476b7\",\"license\":\"MIT\"},\"contracts/src/libs/SUD.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.18;\\n\\nimport {IERC20MetadataUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\\\";\\n\\n/**\\n * @title SUD\\n * @author Lila Rest (https://lila.rest)\\n * @custom:security-contact security@ledgity.com\\n *\\n * @notice SUD serves as an intermediary number format for calculations within this\\n * codebase. It ensures consistency and reduces precision losses. This library\\n * facilitates conversions between various number formats and the SUD format.\\n *\\n * @dev Intuition:\\n * This codebase employs the UD (unsigned decimal fixed-point numbers) format to\\n * represent both percentage rates and tokens amounts.\\n *\\n * Rates are expressed in UD7x3 format, whereas the format for tokens amounts depends on\\n * the decimals() value of the involved tokens.\\n *\\n * Three challenges arise from this:\\n * 1) To compute values together, it's essential that they are in the same format\\n * 2) Calculations involving consecutive divisions on UD numbers lead to accumulated\\n * precision loss (because division shrinks). A common approach is to scale up and\\n * down values by a few decimals before and after performing calculations.\\n * 3) Given that rates use the UD7x3 format, if we decided to scale them to and from\\n * the number of decimals of the involved token, 1 to 3 of the rates' decimals would\\n * be shrunk in case token's decimals number is in [0, 2].\\n *\\n * To address these challenges, this library provides the SUD format, which acts as a\\n * consistent and scaled intermediate format to perform calculations.\\n *\\n * SUD is an acronym for either \\\"Scaled UD\\\" or \\\"Safe UD\\\".\\n *\\n * @dev Definitions:\\n * - Integer: A number without fractional part, e.g., block.timestamp\\n * - UD: A decimal unsigned fixed-point number. The \\\"UD\\\" notation is inspired from\\n * libraries like [prb-math](https://github.com/PaulRBerg/prb-math/)\\n * - Amount: A token amount. A UD with an unknown repartition of digits between integral\\n * and fractional parts (as token amounts have variable decimal numbers)\\n * - Rate: A percentage rate. An UD with 7 integral digits and 3 fractional ones (= UD7x3)\\n * - SUD: An intermediate format to perform calculations involving Rates and Amounts. A UD\\n * with 3 more decimals than the involved UD with the highest decimals number. As\\n * rates are represented by UD7x3, a SUD number has at least 6 decimals (3+3) and\\n * so ranges from UD71x6 to UD0x77 formats.\\n *\\n * @dev A conversion library:\\n * This library provides utilities to perform the following conversions:\\n * - Amount <--> SUD\\n * - Rate (UD7x3) <--> SUD\\n * - Integer <--> SUD\\n *\\n * @dev Why scaling by 3 decimals?\\n * - It provides an adequate degree of precision for this codebase,\\n * - It enables the conversion of a UD7x3 rate to SUD format by merely scaling it up by\\n * the involved token's decimal number, so is gas efficient.\\n *\\n * @dev Why internal functions?\\n * The functions of this library are not set to external because incorporating them\\n * directly into contracts is more gas-efficient. Given their minimal size and frequent\\n * usage in the InvestUpgradeable, LDYStaking, and LToken contracts, any bytecode savings\\n * from making them external are negated by the additional bytecode required for external\\n * calls to this library. This can be observed by comparing the output of `bun cc:size`\\n * when those functions's visibility is set to external or internal.\\n *\\n * @dev Precision warning:\\n * While this library mitigates precision loss during calculations on UD numbers, it's\\n * important to note that tokens with lower decimal counts and supply inherently suffer\\n * more from precision loss. Conversely, tokens with higher decimal counts and supply\\n * will experience less precision loss.\\n *\\n * @dev For further details, see \\\"SUD\\\" section of whitepaper.\\n * @custom:security-contact security@ledgity.com\\n */\\nlibrary SUD {\\n /**\\n * @notice Retrieves decimals number of the given ERC20 contract address.\\n * @param tokenAddress The address to retrieve decimals number from.\\n * @return decimals The decimals number of the given ERC20 contract address.\\n */\\n function decimalsOf(address tokenAddress) internal view returns (uint256 decimals) {\\n return IERC20MetadataUpgradeable(tokenAddress).decimals();\\n }\\n\\n /**\\n * @notice Convert a given token amount into SUD format.\\n * @param nAmount The token amount to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nSUD The amount in SUD format\\n */\\n function fromAmount(uint256 nAmount, uint256 decimals) internal pure returns (uint256 nSUD) {\\n // If token decimals < 3, return a UD71x6 number\\n if (decimals < 3) return nAmount * 10 ** (6 - decimals);\\n\\n // Else return a number with decimals+3 fractional digits\\n return nAmount * 10 ** 3;\\n }\\n\\n /**\\n * @notice Convert a given SUD number into token amount format.\\n * @param nSUD The SUD number to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nAmount The number in amount format\\n */\\n function toAmount(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nAmount) {\\n // If token decimals < 3, convert from a UD71x6 number\\n if (decimals < 3) return nSUD / 10 ** (6 - decimals);\\n\\n // Else, convert from a number with decimals+3 fractional digits\\n return nSUD / 10 ** 3;\\n }\\n\\n /**\\n * @notice Converts a given UD7x3 rate into SUD format.\\n * @param nUD7x3 The UD7x3 rate to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nSUD The rate in SUD format.\\n */\\n function fromRate(uint256 nUD7x3, uint256 decimals) internal pure returns (uint256 nSUD) {\\n // If token decimals < 3, return a UD71x6 number\\n if (decimals < 3) return nUD7x3 * 10 ** 3;\\n\\n // Else, return a number with decimals+3 fractional digits\\n return nUD7x3 * 10 ** decimals;\\n }\\n\\n /**\\n * @notice Converts a given SUD number into a UD7x3 rate.\\n * @param nSUD The SUD number to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nUD7x3 The number in UD7x3 rate format.\\n */\\n function toRate(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nUD7x3) {\\n // If token decimals < 3, convert from a UD71x6 number\\n if (decimals < 3) return nSUD / 10 ** 3;\\n\\n // Else, convert from a number with decimals+3 fractional digits\\n return nSUD / 10 ** decimals;\\n }\\n\\n /**\\n * @notice Converts a given integer into SUD format.\\n * @param n The integer to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return nSUD The integer in SUD format.\\n */\\n function fromInt(uint256 n, uint256 decimals) internal pure returns (uint256 nSUD) {\\n // If token decimals < 3, return a UD71x6 number\\n if (decimals < 3) return n * 10 ** 6;\\n\\n // Else, return a number with decimals+3 fractional digits\\n return n * 10 ** (decimals + 3);\\n }\\n\\n /**\\n * @notice Converts a given SUD number as an integer (all decimals shrinked).\\n * @param nSUD The SUD number to convert.\\n * @param decimals The decimals number of the involved ERC20 token.\\n * @return n The SUD number as an integer.\\n */\\n function toInt(uint256 nSUD, uint256 decimals) internal pure returns (uint256 n) {\\n // If token decimals < 3, convert from a UD71x6 number\\n if (decimals < 3) return nSUD / 10 ** 6;\\n\\n // Else, convert from a number with decimals+3 fractional digits\\n return nSUD / 10 ** (decimals + 3);\\n }\\n}\\n\",\"keccak256\":\"0x7297fc67064b5925e26fa5ed3a4ba4b0f64a9162fdf0ebc2aac8649fddce543a\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e7565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000e5576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051615f5f6200011f6000396000818161141b0152818161145b01528181611894015281816118d401526119500152615f5f6000f3fe60806040526004361061036f5760003560e01c80638980f11f116101c8578063cafb2202116100f8578063ee1335d11161009b578063ee1335d114610ac9578063ee153c4f14610ae9578063ef2591af14610b09578063ef356a7914610b2e578063f1215d2514610b43578063f12d54d814610b63578063f2fde38b14610b82578063f762e73414610ba2578063f94ce2c214610bc157600080fd5b8063cafb2202146109ce578063cdc18424146109ed578063d038875c14610a0e578063d039981b14610a48578063d1159a8714610a68578063d294f09314610a7f578063db84faac14610a94578063dd62ed3e14610aa957600080fd5b8063a457c2d71161016b578063a457c2d71461089b578063a64c91cc146108bb578063a8f76320146108db578063a9059cbb146108fb578063b2de2a431461091b578063b60d428814610930578063bacd609e14610951578063c822adda14610986578063c89d5b8b146109a657600080fd5b80638980f11f146107a75780638d8e6bd7146107c75780638da5cb5b146107fe57806392e5ced71461081357806395d89b411461083357806399a03c70146108485780639c271975146108685780639ee679e81461088857600080fd5b806345b05d09116102a35780636d3a4ac8116102465780636d3a4ac8146106b05780636f307dc3146106d057806370a08231146106e5578063715018a614610705578063734d82871461071a5780637594d0b51461073157806375a5652b146107485780637c2edb16146107685780638370e1f71461078757600080fd5b806345b05d09146105b55780634f1ef286146105d557806352d1902d146105e857806353ac4b66146105fd57806353d3a42f146106145780635c975abb1461065b5780635f0e8e371461067057806361b76e0f1461069057600080fd5b806323b872dd1161031657806323b872dd1461048b5780632a1b8b1c146104ab5780632f4f21e2146104c0578063313ce567146104e05780633659cfe614610507578063391d85ec1461052757806339509351146105555780633e7ae353146105755780634134bee91461059557600080fd5b806306fdde0314610374578063095ea7b31461039f5780630d174c24146103cf5780630e21750f146103f15780631459457a1461041157806318160ddd146104315780631c19be6d14610454578063205c28781461046b575b600080fd5b34801561038057600080fd5b50610389610be1565b6040516103969190615383565b60405180910390f35b3480156103ab57600080fd5b506103bf6103ba3660046153ab565b610c73565b6040519015158152602001610396565b3480156103db57600080fd5b506103ef6103ea3660046153d7565b610c8d565b005b3480156103fd57600080fd5b506103ef61040c3660046153d7565b610cf9565b34801561041d57600080fd5b506103ef61042c3660046153f4565b610d60565b34801561043d57600080fd5b50610446610fd0565b604051908152602001610396565b34801561046057600080fd5b506104466102fe5481565b34801561047757600080fd5b506103bf6104863660046153ab565b610ffb565b34801561049757600080fd5b506103bf6104a6366004615465565b61102c565b3480156104b757600080fd5b506103ef611052565b3480156104cc57600080fd5b506103bf6104db3660046153ab565b6113d6565b3480156104ec57600080fd5b506104f5611407565b60405160ff9091168152602001610396565b34801561051357600080fd5b506103ef6105223660046153d7565b611411565b34801561053357600080fd5b506102f954610548906001600160a01b031681565b60405161039691906154a6565b34801561056157600080fd5b506103bf6105703660046153ab565b6114d9565b34801561058157600080fd5b506105486105903660046153ab565b6114fb565b3480156105a157600080fd5b506103ef6105b03660046154ba565b611534565b3480156105c157600080fd5b506103ef6105d03660046154ba565b61171d565b6103ef6105e33660046155a6565b61188a565b3480156105f457600080fd5b50610446611943565b34801561060957600080fd5b506104466102fd5481565b34801561062057600080fd5b5061063461062f3660046154ba565b6119f1565b604080516001600160a01b0390931683526001600160601b03909116602083015201610396565b34801561066757600080fd5b506103bf611a2d565b34801561067c57600080fd5b506103ef61068b3660046153d7565b611a37565b34801561069c57600080fd5b506103ef6106ab3660046154ba565b611b8e565b3480156106bc57600080fd5b506103ef6106cb366004615619565b611b9c565b3480156106dc57600080fd5b50610548611c4d565b3480156106f157600080fd5b506104466107003660046153d7565b611c5d565b34801561071157600080fd5b506103ef611c7b565b34801561072657600080fd5b506104466102fc5481565b34801561073d57600080fd5b506104466103005481565b34801561075457600080fd5b506103ef6107633660046154ba565b611cb1565b34801561077457600080fd5b50610193546001600160a01b0316610548565b34801561079357600080fd5b506103ef6107a23660046154ba565b612030565b3480156107b357600080fd5b506103ef6107c23660046153ab565b612193565b3480156107d357600080fd5b506105486107e23660046153d7565b610291602052600090815260409020546001600160a01b031681565b34801561080a57600080fd5b506105486121f3565b34801561081f57600080fd5b506103ef61082e366004615636565b612262565b34801561083f57600080fd5b50610389612499565b34801561085457600080fd5b506104466108633660046153d7565b6124a8565b34801561087457600080fd5b506103ef6108833660046153d7565b6124c6565b6103ef6108963660046154ba565b612521565b3480156108a757600080fd5b506103bf6108b63660046153ab565b612879565b3480156108c757600080fd5b506103ef6108d63660046153d7565b6128ff565b3480156108e757600080fd5b506103ef6108f6366004615636565b61292a565b34801561090757600080fd5b506103bf6109163660046153ab565b612c60565b34801561092757600080fd5b506103ef612c6e565b34801561093c57600080fd5b506102fb54610548906001600160a01b031681565b34801561095d57600080fd5b5061097161096c3660046153ab565b612d43565b60408051928352602083019190915201610396565b34801561099257600080fd5b506106346109a13660046154ba565b612e60565b3480156109b257600080fd5b506109bb612e71565b60405161ffff9091168152602001610396565b3480156109da57600080fd5b5061028e546001600160a01b0316610548565b3480156109f957600080fd5b506102fa54610548906001600160a01b031681565b348015610a1a57600080fd5b506102fb54610a3390600160a01b900463ffffffff1681565b60405163ffffffff9091168152602001610396565b348015610a5457600080fd5b50610446610a633660046153d7565b612ee9565b348015610a7457600080fd5b506104466103035481565b348015610a8b57600080fd5b506103ef612ef6565b348015610aa057600080fd5b50610446612fac565b348015610ab557600080fd5b50610446610ac4366004615636565b613033565b348015610ad557600080fd5b506103ef610ae4366004615681565b61305e565b348015610af557600080fd5b50610548610b043660046154ba565b6130cb565b348015610b1557600080fd5b506102fb54610a3390600160c01b900463ffffffff1681565b348015610b3a57600080fd5b506104466130f6565b348015610b4f57600080fd5b506103ef610b5e36600461569e565b613101565b348015610b6f57600080fd5b50610160546001600160a01b0316610548565b348015610b8e57600080fd5b506103ef610b9d3660046153d7565b613244565b348015610bae57600080fd5b5061012d546001600160a01b0316610548565b348015610bcd57600080fd5b506103ef610bdc366004615681565b613279565b6060609a8054610bf0906156ce565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c906156ce565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b5050505050905090565b600033610c818185856132e6565b60019150505b92915050565b610c9561340a565b6001600160a01b038116610cd65760405162461bcd60e51b81526020600482015260036024820152624c363360e81b60448201526064015b60405180910390fd5b6102fa80546001600160a01b0319166001600160a01b0392909216919091179055565b610d0161340a565b6001600160a01b038116610d3d5760405162461bcd60e51b8152602060048201526003602482015262130d8d60ea1b6044820152606401610ccd565b6102fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1615808015610d805750600054600160ff909116105b80610d9a5750303b158015610d9a575060005460ff166001145b610dfd5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610ccd565b6000805460ff191660011790558015610e20576000805461ff0019166101001790555b6000826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e60573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e889190810190615702565b9050610ed587878784604051602001610ea19190615778565b60405160208183030381529060405285604051602001610ec191906157a8565b60405160208183030381529060405261346b565b610ede836134af565b610ee7306134df565b6102f980546001600160a01b0319166001600160a01b0386161790556102fb805467ffffffffffffffff60a01b19166509c40000004b60a21b179055610f2b6121f3565b6102fa80546001600160a01b0319166001600160a01b0392909216919091179055610f546121f3565b6102fb80546001600160a01b0319166001600160a01b0392909216919091179055506602aa1efb94e000610303558015610fc8576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60006102fc546102fd54610fe26130f6565b610fec91906157e7565b610ff691906157e7565b905090565b60405162461bcd60e51b81526020600482015260036024820152624c343560e81b6044820152600090606401610ccd565b60003361103a858285613589565b611045858585613603565b60019150505b9392505050565b6102fa546001600160a01b0316336001600160a01b03161461109c5760405162461bcd60e51b81526020600482015260036024820152624c333960e81b6044820152606401610ccd565b6110a46137ad565b610300546102ff5460009182915b808210156113795761afc85a106113795760006102ff83815481106110d9576110d96157fa565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252915015611366578051611128906137f5565b156111aa576102ff8381548110611141576111416157fa565b60009182526020808320909101829055610301805460018101825592528251908301516001600160601b0316600160a01b026001600160a01b0391909116177fe78f8e39db67a8c6e0d54c288efc6f296f5d558bc028138a8476c9b97f6fcaa490910155611366565b60026111b4612fac565b6111be9190615810565b81602001516001600160601b0316111561128a5760208101516102ff5460405160019233928792600080516020615ea3833981519152926112059290918291600391615854565b60405180910390a46102ff8381548110611221576112216157fa565b600091825260208083209091018290556102ff805460018101825592528251908301516001600160601b0316600160a01b026001600160a01b0391909116177f5a4a1f748f8cfa795b59cdc37192794ee567e6029e925719381be08d7ccaf4ec90910155611366565b6000806112a8836000015184602001516001600160601b0316612d43565b91509150856102fe546112bb919061589a565b8211156112ca57505050611379565b6112d481886157e7565b96506112e082876157e7565b9550600183600001516001600160a01b031686600080516020615ea3833981519152866020015186600260001960405161131d94939291906158ad565b60405180910390a46102ff8581548110611339576113396157fa565b600091825260208220015582516113639083611353611c4d565b6001600160a01b03169190613868565b50505b82611370816158ed565b935050506110b2565b836102fc600082825461138c91906157e7565b92505081905550826102fe60008282546113a6919061589a565b909155506113b6905084846157e7565b6102fd60008282546113c8919061589a565b909155505050610300555050565b60405162461bcd60e51b8152602060048201526003602482015262261a1b60e91b6044820152600090606401610ccd565b6000610ff66138cb565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114595760405162461bcd60e51b8152600401610ccd90615906565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661148b613941565b6001600160a01b0316146114b15760405162461bcd60e51b8152600401610ccd90615952565b6114ba8161395d565b604080516000808252602082019092526114d691839190613965565b50565b600033610c818185856114ec8383613033565b6114f691906157e7565b6132e6565b610292602052816000526040600020818154811061151857600080fd5b6000918252602090912001546001600160a01b03169150829050565b61153c6137ad565b33611546816137f5565b156115635760405162461bcd60e51b8152600401610ccd9061599e565b61156c33611c5d565b8211156115a15760405162461bcd60e51b815260206004820152600360248201526209868760eb1b6044820152606401610ccd565b60006102fe54836102fd546115b691906157e7565b6102f95491101591506000906002906001600160a01b031663c8f74bb8336040518263ffffffff1660e01b81526004016115f091906154a6565b602060405180830381865afa15801561160d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163191906159ba565b1015801561164257506102fe548411155b9050818061164d5750805b61167f5760405162461bcd60e51b81526020600482015260036024820152624c343960e81b6044820152606401610ccd565b60008061168c3387612d43565b91509150806102fc60008282546116a391906157e7565b92505081905550816102fe60008282546116bd919061589a565b9091555060019050336001600160a01b0316600019600080516020615ea3833981519152898660026000196040516116f894939291906159d3565b60405180910390a461170a3382613ad0565b6117143383613c05565b50505050505050565b6117256137ad565b3361172f816137f5565b1561174c5760405162461bcd60e51b8152600401610ccd9061599e565b60006102ff8381548110611762576117626157fa565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150336001600160a01b0316146117de5760405162461bcd60e51b81526020600482015260036024820152624c353760e81b6044820152606401610ccd565b80602001516001600160601b03166102fd60008282546117fe919061589a565b90915550506102ff805484908110611818576118186157fa565b6000918252602082200155600181600001516001600160a01b031684600080516020615ea38339815191528460200151856020015160016000196040516118629493929190615854565b60405180910390a4611885816000015182602001516001600160601b0316613c32565b505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036118d25760405162461bcd60e51b8152600401610ccd90615906565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611904613941565b6001600160a01b03161461192a5760405162461bcd60e51b8152600401610ccd90615952565b6119338261395d565b61193f82826001613965565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146119de5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610ccd565b50600080516020615ec383398151915290565b6103018181548110611a0257600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b90046001600160601b031682565b6000610ff6613cf5565b611a3f61340a565b610302546000199060005b81811015611aa457836001600160a01b03166103028281548110611a7057611a706157fa565b6000918252602090912001546001600160a01b031603611a9257809250611aa4565b80611a9c816158ed565b915050611a4a565b506000198213611adc5760405162461bcd60e51b8152602060048201526003602482015262261a1960e91b6044820152606401610ccd565b610302611aea60018361589a565b81548110611afa57611afa6157fa565b60009182526020909120015461030280546001600160a01b039092169184908110611b2757611b276157fa565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610302805480611b6757611b676159e9565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b611b9661340a565b61030355565b611ba461340a565b60405163433e3bad60e11b8152610290600482015261ffff821660248201527341B0EeF9787BB07306967c012298C70811cC70f09063867c775a9060440160006040518083038186803b158015611bfa57600080fd5b505af4158015611c0e573d6000803e3d6000fd5b505060405161ffff841681527f3d6d63f501ae621a01c729938fb4428a25138835257943d6b56c49b402ba36329250602001905060405180910390a150565b6102c6546001600160a01b031690565b6000611c6882612ee9565b611c71836124a8565b610c8791906157e7565b611c8361340a565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610ccd565b6102fb546001600160a01b0316336001600160a01b031614611ce55760405162461bcd60e51b8152600401610ccd906159ff565b611ced6137ad565b60006102ff8281548110611d0357611d036157fa565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150611d745760405162461bcd60e51b8152602060048201526003602482015262261b1b60e91b6044820152606401610ccd565b8051611d7f906137f5565b15611db25760405162461bcd60e51b815260206004820152600360248201526204c35360ec1b6044820152606401610ccd565b6002611dbc612fac565b611dc69190615810565b81602001516001600160601b031611611e075760405162461bcd60e51b81526020600482015260036024820152624c353160e81b6044820152606401610ccd565b600080611e25836000015184602001516001600160601b0316612d43565b915091506000611e33611c4d565b6102fb546040516370a0823160e01b81526001600160a01b03928316926370a0823192611e65929116906004016154a6565b602060405180830381865afa158015611e82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea691906159ba565b9050806102fe54611eb791906157e7565b831115611eec5760405162461bcd60e51b8152602060048201526003602482015262261a9960e91b6044820152606401610ccd565b816102fc6000828254611eff91906157e7565b9250508190555083602001516001600160601b03166102fd6000828254611f26919061589a565b9091555050610300548503611f4c576103008054906000611f46836158ed565b91905055505b600184600001516001600160a01b031686600080516020615ea38339815191528760200151876002600019604051611f8794939291906158ad565b60405180910390a46102ff8581548110611fa357611fa36157fa565b6000918252602082200155808311611fda57611fd533855185611fc4611c4d565b6001600160a01b0316929190613d64565b612021565b6000611fe6828561589a565b9050806102fe6000828254611ffb919061589a565b90915550612010905033865184611fc4611c4d565b845161201f9082611353611c4d565b505b612029613d85565b5050505050565b6102fb546001600160a01b0316336001600160a01b0316146120645760405162461bcd60e51b8152600401610ccd906159ff565b61206c6137ad565b612074611c4d565b6102fb546040516370a0823160e01b81526001600160a01b03928316926370a08231926120a6929116906004016154a6565b602060405180830381865afa1580156120c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e791906159ba565b81111561211c5760405162461bcd60e51b81526020600482015260036024820152620986a760eb1b6044820152606401610ccd565b6000816102fe5461212d91906157e7565b9050612137612fac565b81111561216c5760405162461bcd60e51b81526020600482015260036024820152624c353960e81b6044820152606401610ccd565b816102fe600082825461217f91906157e7565b9091555061193f9050333084611fc4611c4d565b61219b61340a565b6121a3611c4d565b6001600160a01b0316826001600160a01b0316036121e95760405162461bcd60e51b81526020600482015260036024820152624c343360e81b6044820152606401610ccd565b61193f8282613de3565b61012d5460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801561223e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff69190615a1c565b61226a6137ad565b81612274816137f5565b156122915760405162461bcd60e51b8152600401610ccd9061599e565b8161229b816137f5565b156122b85760405162461bcd60e51b8152600401610ccd9061599e565b6001600160a01b038481166000908152610291602052604090205416156123075760405162461bcd60e51b8152602060048201526003602482015262261b1960e91b6044820152606401610ccd565b6001600160a01b0384166123435760405162461bcd60e51b815260206004820152600360248201526226189960e91b6044820152606401610ccd565b6001600160a01b03831661237f5760405162461bcd60e51b81526020600482015260036024820152624c313360e81b6044820152606401610ccd565b826001600160a01b0316846001600160a01b0316036123c65760405162461bcd60e51b8152602060048201526003602482015262130c4d60ea1b6044820152606401610ccd565b6123ce6121f3565b6001600160a01b0316336001600160a01b031614806123f55750336001600160a01b038516145b6124275760405162461bcd60e51b81526020600482015260036024820152624c313560e81b6044820152606401610ccd565b612432846001613eda565b61243d836001613eda565b50506001600160a01b039182166000818152610291602090815260408083208054969095166001600160a01b03199687168117909555938252610292815292812080546001810182559082529290209091018054909216179055565b6060609b8054610bf0906156ce565b6001600160a01b038116600090815260976020526040812054610c87565b6124ce61340a565b61030280546001810182556000919091527f552430c2010355dda19e8bae437f75cfb136cb8d667c4c0867367db21eee69b60180546001600160a01b0319166001600160a01b0392909216919091179055565b6125296137ad565b33612533816137f5565b156125505760405162461bcd60e51b8152600401610ccd9061599e565b61255933611c5d565b82111561258e5760405162461bcd60e51b81526020600482015260036024820152624c353360e81b6044820152606401610ccd565b6001600160601b038211156125cb5760405162461bcd60e51b8152602060048201526003602482015262130d4d60ea1b6044820152606401610ccd565b6103035434146126035760405162461bcd60e51b81526020600482015260036024820152624c353560e81b6044820152606401610ccd565b600060405180604001604052806126173390565b6001600160a01b0390811682526001600160601b0386166020909201919091526102f9549192506000916002911663c8f74bb8336040518263ffffffff1660e01b815260040161266791906154a6565b602060405180830381865afa158015612684573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a891906159ba565b101580156126b95750600061030054115b156127275761030080549060006126cf83615a39565b9190505550610300549050816102ff82815481106126ef576126ef6157fa565b6000918252602091829020835193909201516001600160601b0316600160a01b026001600160a01b0390931692909217910155612791565b6102ff8054600181810183556000839052845160208601516001600160601b0316600160a01b026001600160a01b03909116177f5a4a1f748f8cfa795b59cdc37192794ee567e6029e925719381be08d7ccaf4ec90920191909155905461278e919061589a565b90505b836102fd60008282546127a491906157e7565b9091555060019050336001600160a01b031682600080516020615ea3833981519152878860006000196040516127dd94939291906159d3565b60405180910390a46127ef3385613ad0565b6102fa546040516000916001600160a01b03169034908381818185875af1925050503d806000811461283d576040519150601f19603f3d011682016040523d82523d6000602084013e612842565b606091505b50509050806120295760405162461bcd60e51b8152602060048201526003602482015262261a9b60e91b6044820152606401610ccd565b600033816128878286613033565b9050838110156128e75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610ccd565b6128f482868684036132e6565b506001949350505050565b61290761340a565b6102f980546001600160a01b0319166001600160a01b0392909216919091179055565b6129326137ad565b8161293c816137f5565b156129595760405162461bcd60e51b8152600401610ccd9061599e565b81612963816137f5565b156129805760405162461bcd60e51b8152600401610ccd9061599e565b6001600160a01b0384166129bc5760405162461bcd60e51b815260206004820152600360248201526226189b60e91b6044820152606401610ccd565b6001600160a01b0383166129f85760405162461bcd60e51b81526020600482015260036024820152624c313760e81b6044820152606401610ccd565b612a006121f3565b6001600160a01b0316336001600160a01b03161480612a275750336001600160a01b038516145b612a595760405162461bcd60e51b815260206004820152600360248201526209862760eb1b6044820152606401610ccd565b6001600160a01b0384811660009081526102916020526040902054811690841614612aac5760405162461bcd60e51b81526020600482015260036024820152624c313960e81b6044820152606401610ccd565b612ab7846001613eda565b612ac2836001613eda565b60001960005b6001600160a01b03851660009081526102926020526040902054811015612b4d576001600160a01b0385811660009081526102926020526040902080549188169183908110612b1957612b196157fa565b6000918252602090912001546001600160a01b031603612b3b57809150612b4d565b80612b45816158ed565b915050612ac8565b506000811215612b5f57612b5f615a50565b6001600160a01b0380861660009081526102916020908152604080832080546001600160a01b031916905592871682526102929052208054612ba39060019061589a565b81548110612bb357612bb36157fa565b60009182526020808320909101546001600160a01b0387811684526102929092526040909220805491909216919083908110612bf157612bf16157fa565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055918616815261029290915260409020805480612c3757612c376159e9565b600082815260209020810160001990810180546001600160a01b03191690550190555050505050565b600033610c81818585613603565b612c7661340a565b60006102fe54612c84611c4d565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401612caf91906154a6565b602060405180830381865afa158015612ccc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cf091906159ba565b612cfa919061589a565b905060008111612d325760405162461bcd60e51b8152602060048201526003602482015262130d0d60ea1b6044820152606401610ccd565b6114d6612d3d611c4d565b82613de3565b6102f95460405163191ee97760e31b815260009182916002916001600160a01b03169063c8f74bb890612d7a9088906004016154a6565b602060405180830381865afa158015612d97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dbb91906159ba565b10612dcb57508190506000612e59565b6000612de8612de361028e546001600160a01b031690565b613faf565b90506000612df6858361401c565b6102fb54909150600090612e1790600160a01b900463ffffffff168461405a565b90506000612e26606485614086565b612e308385615a66565b612e3a9190615810565b9050612e4681856140b4565b9450612e52858861589a565b9550505050505b9250929050565b6102ff8181548110611a0257600080fd5b60405163106d64cf60e31b815261029060048201526000907341B0EeF9787BB07306967c012298C70811cC70f09063836b267890602401602060405180830381865af4158015612ec5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff69190615a7d565b6000610c878260016140eb565b612efe61340a565b60006102fc5411612f375760405162461bcd60e51b815260206004820152600360248201526204c36360ec1b6044820152606401610ccd565b6102fc546102fe541015612f735760405162461bcd60e51b81526020600482015260036024820152624c363160e81b6044820152606401610ccd565b6102fc546102fe6000828254612f89919061589a565b90915550506102fc805460009091556114d6612fa36121f3565b82611353611c4d565b600080612fc5612de361028e546001600160a01b031690565b90506000612fda612fd4610fd0565b8361401c565b6102fb54909150600090612ffb90600160c01b900463ffffffff168461405a565b9050600061300a606485614086565b6130148385615a66565b61301e9190615810565b905061302a81856140b4565b94505050505090565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b61306661340a565b614e2063ffffffff821611156130a45760405162461bcd60e51b815260206004820152600360248201526209870760eb1b6044820152606401610ccd565b6102fb805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b61030281815481106130dc57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610ff660995490565b6131096137ad565b33613113816137f5565b156131305760405162461bcd60e51b8152600401610ccd9061599e565b82613139611c4d565b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161316491906154a6565b602060405180830381865afa158015613181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a591906159ba565b10156131d95760405162461bcd60e51b81526020600482015260036024820152624c343760e81b6044820152606401610ccd565b826102fe60008282546131ec91906157e7565b9091555060009050336001600160a01b0316600019600080516020615ea38339815191528687600260001989604051613229959493929190615a9a565b60405180910390a461323b3384614651565b50611885613d85565b61324c61340a565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610ccd565b61328161340a565b61271063ffffffff821611156132bf5760405162461bcd60e51b81526020600482015260036024820152624c343160e81b6044820152606401610ccd565b6102fb805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b6001600160a01b0383166133485760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ccd565b6001600160a01b0382166133a95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ccd565b6001600160a01b0383811660008181526098602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b336134136121f3565b6001600160a01b0316146134695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ccd565b565b600054610100900460ff166134925760405162461bcd60e51b8152600401610ccd90615acc565b61349d8585856146d2565b6134a7828261472c565b61202961475d565b600054610100900460ff166134d65760405162461bcd60e51b8152600401610ccd90615acc565b6114d681614784565b600054610100900460ff166135065760405162461bcd60e51b8152600401610ccd90615acc565b61028e80546001600160a01b0319166001600160a01b03831617905560405163433e3bad60e11b81526102906004820152600060248201527341B0EeF9787BB07306967c012298C70811cC70f09063867c775a9060440160006040518083038186803b15801561357557600080fd5b505af4158015612029573d6000803e3d6000fd5b60006135958484613033565b905060001981146135fd57818110156135f05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610ccd565b6135fd84848484036132e6565b50505050565b6001600160a01b0383166136675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ccd565b6001600160a01b0382166136c95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ccd565b6136d4838383614826565b6001600160a01b0383166000908152609760205260409020548181101561374c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610ccd565b6001600160a01b038085166000818152609760205260408082208686039055928616808252908390208054860190559151600080516020615f0a8339815191529061379a9086815260200190565b60405180910390a36135fd848484614865565b6137b5611a2d565b156134695760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ccd565b6101935460405163fe575a8760e01b81526000916001600160a01b03169063fe575a87906138279085906004016154a6565b602060405180830381865afa158015613844573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c879190615b17565b6040516001600160a01b03831660248201526044810182905261188590849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614966565b6102c6546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa925050508015613932575060408051601f3d908101601f1916820190925261392f91810190615b39565b60015b61393c5750601290565b919050565b600080516020615ec3833981519152546001600160a01b031690565b6114d661340a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156139985761188583614a3b565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156139f2575060408051601f3d908101601f191682019092526139ef918101906159ba565b60015b613a555760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610ccd565b600080516020615ec38339815191528114613ac45760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610ccd565b50611885838383614ad7565b6001600160a01b038216613b305760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610ccd565b613b3c82600083614826565b6001600160a01b03821660009081526097602052604090205481811015613bb05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610ccd565b6001600160a01b0383166000818152609760209081526040808320868603905560998054879003905551858152919291600080516020615f0a833981519152910160405180910390a361188583600084614865565b6000613c113383613ad0565b6102c654613c29906001600160a01b03168484613868565b50600192915050565b6001600160a01b038216613c885760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610ccd565b613c9460008383614826565b8060996000828254613ca691906157e7565b90915550506001600160a01b038216600081815260976020908152604080832080548601905551848152600080516020615f0a833981519152910160405180910390a361193f60008383614865565b6101605460408051635c975abb60e01b815290516000926001600160a01b031691635c975abb9160048083019260209291908290030181865afa158015613d40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff69190615b17565b6135fd846323b872dd60e01b85858560405160240161389493929190615b5c565b6000613d8f612fac565b9050806102fe5411613d9e5750565b6000816102fe54613daf919061589a565b9050806102fe6000828254613dc4919061589a565b90915550506102fb5461193f906001600160a01b031682611353611c4d565b613deb61340a565b60008111613e215760405162461bcd60e51b815260206004820152600360248201526204c31360ec1b6044820152606401610ccd565b6040516370a0823160e01b8152829082906001600160a01b038316906370a0823190613e519030906004016154a6565b602060405180830381865afa158015613e6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e9291906159ba565b1015613ec65760405162461bcd60e51b81526020600482015260036024820152624c313160e81b6044820152606401610ccd565b6118856001600160a01b0382163384613868565b6102935460ff1615613eea575050565b6001600160a01b038216600090815261028f602052604090205464ffffffffff428116911603613f18575050565b6001600160a01b0380831660009081526102916020526040902054168015613f44576118858183613eda565b6000613f5084846140eb565b90508015613fa657610293805460ff191660011790556000613f728583614afc565b610293805460ff19169055905080613fa4576001600160a01b038516600090815261028f602052604090206003018290555b505b6135fd84614b53565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015613fef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140139190615b39565b60ff1692915050565b6000600382101561404e5761403282600661589a565b61403d90600a615c64565b6140479084615a66565b9050610c87565b61104b836103e8615a66565b6000600382101561407157614047836103e8615a66565b61407c82600a615c64565b61104b9084615a66565b6000600382101561409e5761404783620f4240615a66565b6140a98260036157e7565b61407c90600a615c64565b600060038210156140df576140ca82600661589a565b6140d590600a615c64565b6140479084615810565b61104b6103e884615810565b6001600160a01b038216600090815261028f602090815260408083208151608081018352815464ffffffffff16818401908152835180850190945260018301548452600283015463ffffffff1684860152606082019390935291825260030154918101919091528161415c85614cb5565b82515190915064ffffffffff161580614173575080155b1561418357600092505050610c87565b815160200151604051630b27cfb160e31b81526000907341B0EeF9787BB07306967c012298C70811cC70f09063593e7d88906141c790610290908690600401615c70565b6040805180830381865af41580156141e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142079190615c94565b60405163038255fd60e11b815261029060048201529091506000907341B0EeF9787BB07306967c012298C70811cC70f090630704abfa906024016040805180830381865af415801561425d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142819190615cdf565b9050846020015195507341B0EeF9787BB07306967c012298C70811cC70f0634ead0c5384836040518363ffffffff1660e01b81526004016142c3929190615d0b565b602060405180830381865af41580156142e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143049190615b17565b61461557604051633e1e5c5360e11b81526000907341B0EeF9787BB07306967c012298C70811cC70f090637c3cb8a690614342908790600401615d3f565b6040805180830381865af415801561435e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143829190615cdf565b604051630b27cfb160e31b81529091506000907341B0EeF9787BB07306967c012298C70811cC70f09063593e7d88906143c390610290908690600401615c70565b6040805180830381865af41580156143df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144039190615c94565b87515160208201518651929350614431928c614420576000614422565b8b5b61442c908b6157e7565b614d5e565b61443b90896157e7565b97505b8194508093507341B0EeF9787BB07306967c012298C70811cC70f0634ead0c5386856040518363ffffffff1660e01b815260040161447d929190615d0b565b602060405180830381865af415801561449a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144be9190615b17565b6145e857604051633e1e5c5360e11b81527341B0EeF9787BB07306967c012298C70811cC70f090637c3cb8a6906144f9908890600401615d3f565b6040805180830381865af4158015614515573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145399190615cdf565b604051630b27cfb160e31b81529092507341B0EeF9787BB07306967c012298C70811cC70f09063593e7d889061457790610290908690600401615c70565b6040805180830381865af4158015614593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145b79190615c94565b90506145d78460200151826020015186600001518c614420576000614422565b6145e190896157e7565b975061443e565b61460284602001514286600001518c614420576000614422565b61460c90896157e7565b97505050614646565b8451518251614639919042908a61462d57600061462f565b895b61442c90896157e7565b61464390876157e7565b95505b505050505092915050565b6000333081036146af5760405162461bcd60e51b815260206004820152602360248201527f4552433230577261707065723a20777261707065722063616e2774206465706f6044820152621cda5d60ea1b6064820152608401610ccd565b6102c6546146c8906001600160a01b0316823086613d64565b610c818484613c32565b600054610100900460ff166146f95760405162461bcd60e51b8152600401610ccd90615acc565b61470161475d565b61470a83614e4a565b614712614e7a565b61471b82614ea9565b61472481614ef3565b61188561475d565b600054610100900460ff166147535760405162461bcd60e51b8152600401610ccd90615acc565b61193f8282614f3d565b600054610100900460ff166134695760405162461bcd60e51b8152600401610ccd90615acc565b600054610100900460ff166147ab5760405162461bcd60e51b8152600401610ccd90615acc565b306001600160a01b038216036148035760405162461bcd60e51b815260206004820152601e60248201527f4552433230577261707065723a2063616e6e6f742073656c66207772617000006044820152606401610ccd565b6102c680546001600160a01b0319166001600160a01b0392909216919091179055565b614831838383614f7d565b6001600160a01b0383161561484b5761484b836001613eda565b6001600160a01b0382161561188557611885826001613eda565b6001600160a01b038316158061488257506001600160a01b038216155b156148c2577f980f7e6fb44009001d533a10bc3bd558b4efe22dcb4888bca4767aa93c71ce1f6148b0610fd0565b60405190815260200160405180910390a15b60005b610302548110156135fd5761030281815481106148e4576148e46157fa565b600091825260209091200154604051636e0d037d60e11b81526001600160a01b039091169063dc1a06fa9061492190879087908790600401615b5c565b600060405180830381600087803b15801561493b57600080fd5b505af115801561494f573d6000803e3d6000fd5b50505050808061495e906158ed565b9150506148c5565b60006149bb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614fde9092919063ffffffff16565b90508051600014806149dc5750808060200190518101906149dc9190615b17565b6118855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ccd565b6001600160a01b0381163b614aa85760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610ccd565b600080516020615ec383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b614ae083614fed565b600082511180614aed5750805b15611885576135fd838361502d565b6000826001600160a01b03167f05a71d417f891ba4b7a94b48d1b1f4b59b070921cba593b3c72a05a5587a78a9614b32856124a8565b60408051918252602082018690520160405180910390a2613c298383613c32565b6001600160a01b038116600090815261028f602052604090819020805464ffffffffff19164264ffffffffff161790555163038255fd60e11b815261029060048201527341B0EeF9787BB07306967c012298C70811cC70f090630704abfa906024016040805180830381865af4158015614bd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614bf59190615cdf565b6001600160a01b038216600090815261028f602090815260408220835160018201559201516002909201805463ffffffff191663ffffffff909316929092179091555b6001600160a01b0382166000908152610292602052604090205481101561193f576001600160a01b0382166000908152610292602052604090208054614ca3919083908110614c8957614c896157fa565b6000918252602090912001546001600160a01b0316614b53565b80614cad816158ed565b915050614c38565b6000614cc082615052565b614cca90826157e7565b905060005b6001600160a01b03831660009081526102926020526040902054811015614d58576001600160a01b0383166000908152610292602052604090208054614d3a919083908110614d2057614d206157fa565b6000918252602090912001546001600160a01b0316614cb5565b614d4490836157e7565b915080614d50816158ed565b915050614ccf565b50919050565b600080614d77612de361028e546001600160a01b031690565b90506000614d95614d888888615d5c565b64ffffffffff1683614086565b90506000614da76301e1338084614086565b614db2600185614086565b614dbc9084615a66565b614dc69190615810565b90506000614dd88761ffff168561405a565b90506000614de7600186614086565b614df18385615a66565b614dfb9190615810565b90506000614e09888761401c565b90506000614e18606488614086565b614e228484615a66565b614e2c9190615810565b9050614e3881886140b4565b9750505050505050505b949350505050565b600054610100900460ff16614e715760405162461bcd60e51b8152600401610ccd90615acc565b6114d68161505d565b600054610100900460ff16614ea15760405162461bcd60e51b8152600401610ccd90615acc565b6134696150a7565b600054610100900460ff16614ed05760405162461bcd60e51b8152600401610ccd90615acc565b61016080546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16614f1a5760405162461bcd60e51b8152600401610ccd90615acc565b61019380546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16614f645760405162461bcd60e51b8152600401610ccd90615acc565b609a614f708382615dc7565b50609b6118858282615dc7565b614f856137ad565b82614f8f816137f5565b15614fac5760405162461bcd60e51b8152600401610ccd9061599e565b82614fb6816137f5565b15614fd35760405162461bcd60e51b8152600401610ccd9061599e565b6120298585856150da565b6060614e428484600085615142565b614ff681614a3b565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061104b8383604051806060016040528060278152602001615ee36027913961521d565b6000610c87826124a8565b600054610100900460ff166150845760405162461bcd60e51b8152600401610ccd90615acc565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166150ce5760405162461bcd60e51b8152600401610ccd90615acc565b60c9805460ff19169055565b6150e2611a2d565b156118855760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610ccd565b6060824710156151a35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ccd565b600080866001600160a01b031685876040516151bf9190615e86565b60006040518083038185875af1925050503d80600081146151fc576040519150601f19603f3d011682016040523d82523d6000602084013e615201565b606091505b509150915061521287838387615295565b979650505050505050565b6060600080856001600160a01b03168560405161523a9190615e86565b600060405180830381855af49150503d8060008114615275576040519150601f19603f3d011682016040523d82523d6000602084013e61527a565b606091505b509150915061528b86838387615295565b9695505050505050565b606083156153045782516000036152fd576001600160a01b0385163b6152fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ccd565b5081614e42565b614e4283838151156153195781518083602001fd5b8060405162461bcd60e51b8152600401610ccd9190615383565b60005b8381101561534e578181015183820152602001615336565b50506000910152565b6000815180845261536f816020860160208601615333565b601f01601f19169290920160200192915050565b60208152600061104b6020830184615357565b6001600160a01b03811681146114d657600080fd5b600080604083850312156153be57600080fd5b82356153c981615396565b946020939093013593505050565b6000602082840312156153e957600080fd5b813561104b81615396565b600080600080600060a0868803121561540c57600080fd5b853561541781615396565b9450602086013561542781615396565b9350604086013561543781615396565b9250606086013561544781615396565b9150608086013561545781615396565b809150509295509295909350565b60008060006060848603121561547a57600080fd5b833561548581615396565b9250602084013561549581615396565b929592945050506040919091013590565b6001600160a01b0391909116815260200190565b6000602082840312156154cc57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561550b5761550b6154d3565b60405290565b604051601f8201601f191681016001600160401b0381118282101715615539576155396154d3565b604052919050565b60006001600160401b0382111561555a5761555a6154d3565b50601f01601f191660200190565b600061557b61557684615541565b615511565b905082815283838301111561558f57600080fd5b828260208301376000602084830101529392505050565b600080604083850312156155b957600080fd5b82356155c481615396565b915060208301356001600160401b038111156155df57600080fd5b8301601f810185136155f057600080fd5b6155ff85823560208401615568565b9150509250929050565b61ffff811681146114d657600080fd5b60006020828403121561562b57600080fd5b813561104b81615609565b6000806040838503121561564957600080fd5b823561565481615396565b9150602083013561566481615396565b809150509250929050565b63ffffffff811681146114d657600080fd5b60006020828403121561569357600080fd5b813561104b8161566f565b600080604083850312156156b157600080fd5b8235915060208301356001600160401b038111156155df57600080fd5b600181811c908216806156e257607f821691505b602082108103614d5857634e487b7160e01b600052602260045260246000fd5b60006020828403121561571457600080fd5b81516001600160401b0381111561572a57600080fd5b8201601f8101841361573b57600080fd5b805161574961557682615541565b81815285602083850101111561575e57600080fd5b61576f826020830160208601615333565b95945050505050565b6702632b233b4ba3c960c51b81526000825161579b816008850160208701615333565b9190910160080192915050565b601360fa1b8152600082516157c4816001850160208701615333565b9190910160010192915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c8757610c876157d1565b634e487b7160e01b600052603260045260246000fd5b60008261582d57634e487b7160e01b600052601260045260246000fd5b500490565b6004811061585057634e487b7160e01b600052602160045260246000fd5b9052565b6001600160601b0385811682528416602082015260006158776040830185615832565b82606083015260a06080830152600060a083015260c08201905095945050505050565b81810381811115610c8757610c876157d1565b6001600160601b03851681528360208201526158cc6040820184615832565b606081019190915260a06080820181905260009082015260c0019392505050565b6000600182016158ff576158ff6157d1565b5060010190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252600290820152614c3960f01b604082015260600190565b6000602082840312156159cc57600080fd5b5051919050565b8481528360208201526158cc6040820184615832565b634e487b7160e01b600052603160045260246000fd5b60208082526003908201526204c34360ec1b604082015260600190565b600060208284031215615a2e57600080fd5b815161104b81615396565b600081615a4857615a486157d1565b506000190190565b634e487b7160e01b600052600160045260246000fd5b8082028115828204841417610c8757610c876157d1565b600060208284031215615a8f57600080fd5b815161104b81615609565b858152846020820152615ab06040820185615832565b82606082015260a06080820152600061521260a0830184615357565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060208284031215615b2957600080fd5b8151801515811461104b57600080fd5b600060208284031215615b4b57600080fd5b815160ff8116811461104b57600080fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b600181815b80851115615bbb578160001904821115615ba157615ba16157d1565b80851615615bae57918102915b93841c9390800290615b85565b509250929050565b600082615bd257506001610c87565b81615bdf57506000610c87565b8160018114615bf55760028114615bff57615c1b565b6001915050610c87565b60ff841115615c1057615c106157d1565b50506001821b610c87565b5060208310610133831016604e8410600b8410161715615c3e575081810a610c87565b615c488383615b80565b8060001904821115615c5c57615c5c6157d1565b029392505050565b600061104b8383615bc3565b8281526060810161104b60208301848051825260209081015163ffffffff16910152565b600060408284031215615ca657600080fd5b615cae6154e9565b8251615cb981615609565b8152602083015164ffffffffff81168114615cd357600080fd5b60208201529392505050565b600060408284031215615cf157600080fd5b615cf96154e9565b825181526020830151615cd38161566f565b8251815260208084015163ffffffff16908201526080810182516040830152602083015163ffffffff16606083015261104b565b8151815260208083015163ffffffff169082015260408101610c87565b64ffffffffff828116828216039080821115615d7a57615d7a6157d1565b5092915050565b601f82111561188557600081815260208120601f850160051c81016020861015615da85750805b601f850160051c820191505b81811015610fc857828155600101615db4565b81516001600160401b03811115615de057615de06154d3565b615df481615dee84546156ce565b84615d81565b602080601f831160018114615e295760008415615e115750858301515b600019600386901b1c1916600185901b178555610fc8565b600085815260208120601f198616915b82811015615e5857888601518255948401946001909101908401615e39565b5085821015615e765787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615e98818460208701615333565b919091019291505056fe20585a03b41b84f4b72a83e5ccd8cb590ff3649833e4638ca8614e80ca27a0de360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220b2257e01d2bdc3559619478e1bae41ea2979f9f0b6d345c69afa9dbcff619bc964736f6c63430008120033", + "deployedBytecode": "0x60806040526004361061036f5760003560e01c80638980f11f116101c8578063cafb2202116100f8578063ee1335d11161009b578063ee1335d114610ac9578063ee153c4f14610ae9578063ef2591af14610b09578063ef356a7914610b2e578063f1215d2514610b43578063f12d54d814610b63578063f2fde38b14610b82578063f762e73414610ba2578063f94ce2c214610bc157600080fd5b8063cafb2202146109ce578063cdc18424146109ed578063d038875c14610a0e578063d039981b14610a48578063d1159a8714610a68578063d294f09314610a7f578063db84faac14610a94578063dd62ed3e14610aa957600080fd5b8063a457c2d71161016b578063a457c2d71461089b578063a64c91cc146108bb578063a8f76320146108db578063a9059cbb146108fb578063b2de2a431461091b578063b60d428814610930578063bacd609e14610951578063c822adda14610986578063c89d5b8b146109a657600080fd5b80638980f11f146107a75780638d8e6bd7146107c75780638da5cb5b146107fe57806392e5ced71461081357806395d89b411461083357806399a03c70146108485780639c271975146108685780639ee679e81461088857600080fd5b806345b05d09116102a35780636d3a4ac8116102465780636d3a4ac8146106b05780636f307dc3146106d057806370a08231146106e5578063715018a614610705578063734d82871461071a5780637594d0b51461073157806375a5652b146107485780637c2edb16146107685780638370e1f71461078757600080fd5b806345b05d09146105b55780634f1ef286146105d557806352d1902d146105e857806353ac4b66146105fd57806353d3a42f146106145780635c975abb1461065b5780635f0e8e371461067057806361b76e0f1461069057600080fd5b806323b872dd1161031657806323b872dd1461048b5780632a1b8b1c146104ab5780632f4f21e2146104c0578063313ce567146104e05780633659cfe614610507578063391d85ec1461052757806339509351146105555780633e7ae353146105755780634134bee91461059557600080fd5b806306fdde0314610374578063095ea7b31461039f5780630d174c24146103cf5780630e21750f146103f15780631459457a1461041157806318160ddd146104315780631c19be6d14610454578063205c28781461046b575b600080fd5b34801561038057600080fd5b50610389610be1565b6040516103969190615383565b60405180910390f35b3480156103ab57600080fd5b506103bf6103ba3660046153ab565b610c73565b6040519015158152602001610396565b3480156103db57600080fd5b506103ef6103ea3660046153d7565b610c8d565b005b3480156103fd57600080fd5b506103ef61040c3660046153d7565b610cf9565b34801561041d57600080fd5b506103ef61042c3660046153f4565b610d60565b34801561043d57600080fd5b50610446610fd0565b604051908152602001610396565b34801561046057600080fd5b506104466102fe5481565b34801561047757600080fd5b506103bf6104863660046153ab565b610ffb565b34801561049757600080fd5b506103bf6104a6366004615465565b61102c565b3480156104b757600080fd5b506103ef611052565b3480156104cc57600080fd5b506103bf6104db3660046153ab565b6113d6565b3480156104ec57600080fd5b506104f5611407565b60405160ff9091168152602001610396565b34801561051357600080fd5b506103ef6105223660046153d7565b611411565b34801561053357600080fd5b506102f954610548906001600160a01b031681565b60405161039691906154a6565b34801561056157600080fd5b506103bf6105703660046153ab565b6114d9565b34801561058157600080fd5b506105486105903660046153ab565b6114fb565b3480156105a157600080fd5b506103ef6105b03660046154ba565b611534565b3480156105c157600080fd5b506103ef6105d03660046154ba565b61171d565b6103ef6105e33660046155a6565b61188a565b3480156105f457600080fd5b50610446611943565b34801561060957600080fd5b506104466102fd5481565b34801561062057600080fd5b5061063461062f3660046154ba565b6119f1565b604080516001600160a01b0390931683526001600160601b03909116602083015201610396565b34801561066757600080fd5b506103bf611a2d565b34801561067c57600080fd5b506103ef61068b3660046153d7565b611a37565b34801561069c57600080fd5b506103ef6106ab3660046154ba565b611b8e565b3480156106bc57600080fd5b506103ef6106cb366004615619565b611b9c565b3480156106dc57600080fd5b50610548611c4d565b3480156106f157600080fd5b506104466107003660046153d7565b611c5d565b34801561071157600080fd5b506103ef611c7b565b34801561072657600080fd5b506104466102fc5481565b34801561073d57600080fd5b506104466103005481565b34801561075457600080fd5b506103ef6107633660046154ba565b611cb1565b34801561077457600080fd5b50610193546001600160a01b0316610548565b34801561079357600080fd5b506103ef6107a23660046154ba565b612030565b3480156107b357600080fd5b506103ef6107c23660046153ab565b612193565b3480156107d357600080fd5b506105486107e23660046153d7565b610291602052600090815260409020546001600160a01b031681565b34801561080a57600080fd5b506105486121f3565b34801561081f57600080fd5b506103ef61082e366004615636565b612262565b34801561083f57600080fd5b50610389612499565b34801561085457600080fd5b506104466108633660046153d7565b6124a8565b34801561087457600080fd5b506103ef6108833660046153d7565b6124c6565b6103ef6108963660046154ba565b612521565b3480156108a757600080fd5b506103bf6108b63660046153ab565b612879565b3480156108c757600080fd5b506103ef6108d63660046153d7565b6128ff565b3480156108e757600080fd5b506103ef6108f6366004615636565b61292a565b34801561090757600080fd5b506103bf6109163660046153ab565b612c60565b34801561092757600080fd5b506103ef612c6e565b34801561093c57600080fd5b506102fb54610548906001600160a01b031681565b34801561095d57600080fd5b5061097161096c3660046153ab565b612d43565b60408051928352602083019190915201610396565b34801561099257600080fd5b506106346109a13660046154ba565b612e60565b3480156109b257600080fd5b506109bb612e71565b60405161ffff9091168152602001610396565b3480156109da57600080fd5b5061028e546001600160a01b0316610548565b3480156109f957600080fd5b506102fa54610548906001600160a01b031681565b348015610a1a57600080fd5b506102fb54610a3390600160a01b900463ffffffff1681565b60405163ffffffff9091168152602001610396565b348015610a5457600080fd5b50610446610a633660046153d7565b612ee9565b348015610a7457600080fd5b506104466103035481565b348015610a8b57600080fd5b506103ef612ef6565b348015610aa057600080fd5b50610446612fac565b348015610ab557600080fd5b50610446610ac4366004615636565b613033565b348015610ad557600080fd5b506103ef610ae4366004615681565b61305e565b348015610af557600080fd5b50610548610b043660046154ba565b6130cb565b348015610b1557600080fd5b506102fb54610a3390600160c01b900463ffffffff1681565b348015610b3a57600080fd5b506104466130f6565b348015610b4f57600080fd5b506103ef610b5e36600461569e565b613101565b348015610b6f57600080fd5b50610160546001600160a01b0316610548565b348015610b8e57600080fd5b506103ef610b9d3660046153d7565b613244565b348015610bae57600080fd5b5061012d546001600160a01b0316610548565b348015610bcd57600080fd5b506103ef610bdc366004615681565b613279565b6060609a8054610bf0906156ce565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c906156ce565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b5050505050905090565b600033610c818185856132e6565b60019150505b92915050565b610c9561340a565b6001600160a01b038116610cd65760405162461bcd60e51b81526020600482015260036024820152624c363360e81b60448201526064015b60405180910390fd5b6102fa80546001600160a01b0319166001600160a01b0392909216919091179055565b610d0161340a565b6001600160a01b038116610d3d5760405162461bcd60e51b8152602060048201526003602482015262130d8d60ea1b6044820152606401610ccd565b6102fb80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1615808015610d805750600054600160ff909116105b80610d9a5750303b158015610d9a575060005460ff166001145b610dfd5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610ccd565b6000805460ff191660011790558015610e20576000805461ff0019166101001790555b6000826001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e60573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e889190810190615702565b9050610ed587878784604051602001610ea19190615778565b60405160208183030381529060405285604051602001610ec191906157a8565b60405160208183030381529060405261346b565b610ede836134af565b610ee7306134df565b6102f980546001600160a01b0319166001600160a01b0386161790556102fb805467ffffffffffffffff60a01b19166509c40000004b60a21b179055610f2b6121f3565b6102fa80546001600160a01b0319166001600160a01b0392909216919091179055610f546121f3565b6102fb80546001600160a01b0319166001600160a01b0392909216919091179055506602aa1efb94e000610303558015610fc8576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60006102fc546102fd54610fe26130f6565b610fec91906157e7565b610ff691906157e7565b905090565b60405162461bcd60e51b81526020600482015260036024820152624c343560e81b6044820152600090606401610ccd565b60003361103a858285613589565b611045858585613603565b60019150505b9392505050565b6102fa546001600160a01b0316336001600160a01b03161461109c5760405162461bcd60e51b81526020600482015260036024820152624c333960e81b6044820152606401610ccd565b6110a46137ad565b610300546102ff5460009182915b808210156113795761afc85a106113795760006102ff83815481106110d9576110d96157fa565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252915015611366578051611128906137f5565b156111aa576102ff8381548110611141576111416157fa565b60009182526020808320909101829055610301805460018101825592528251908301516001600160601b0316600160a01b026001600160a01b0391909116177fe78f8e39db67a8c6e0d54c288efc6f296f5d558bc028138a8476c9b97f6fcaa490910155611366565b60026111b4612fac565b6111be9190615810565b81602001516001600160601b0316111561128a5760208101516102ff5460405160019233928792600080516020615ea3833981519152926112059290918291600391615854565b60405180910390a46102ff8381548110611221576112216157fa565b600091825260208083209091018290556102ff805460018101825592528251908301516001600160601b0316600160a01b026001600160a01b0391909116177f5a4a1f748f8cfa795b59cdc37192794ee567e6029e925719381be08d7ccaf4ec90910155611366565b6000806112a8836000015184602001516001600160601b0316612d43565b91509150856102fe546112bb919061589a565b8211156112ca57505050611379565b6112d481886157e7565b96506112e082876157e7565b9550600183600001516001600160a01b031686600080516020615ea3833981519152866020015186600260001960405161131d94939291906158ad565b60405180910390a46102ff8581548110611339576113396157fa565b600091825260208220015582516113639083611353611c4d565b6001600160a01b03169190613868565b50505b82611370816158ed565b935050506110b2565b836102fc600082825461138c91906157e7565b92505081905550826102fe60008282546113a6919061589a565b909155506113b6905084846157e7565b6102fd60008282546113c8919061589a565b909155505050610300555050565b60405162461bcd60e51b8152602060048201526003602482015262261a1b60e91b6044820152600090606401610ccd565b6000610ff66138cb565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114595760405162461bcd60e51b8152600401610ccd90615906565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661148b613941565b6001600160a01b0316146114b15760405162461bcd60e51b8152600401610ccd90615952565b6114ba8161395d565b604080516000808252602082019092526114d691839190613965565b50565b600033610c818185856114ec8383613033565b6114f691906157e7565b6132e6565b610292602052816000526040600020818154811061151857600080fd5b6000918252602090912001546001600160a01b03169150829050565b61153c6137ad565b33611546816137f5565b156115635760405162461bcd60e51b8152600401610ccd9061599e565b61156c33611c5d565b8211156115a15760405162461bcd60e51b815260206004820152600360248201526209868760eb1b6044820152606401610ccd565b60006102fe54836102fd546115b691906157e7565b6102f95491101591506000906002906001600160a01b031663c8f74bb8336040518263ffffffff1660e01b81526004016115f091906154a6565b602060405180830381865afa15801561160d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163191906159ba565b1015801561164257506102fe548411155b9050818061164d5750805b61167f5760405162461bcd60e51b81526020600482015260036024820152624c343960e81b6044820152606401610ccd565b60008061168c3387612d43565b91509150806102fc60008282546116a391906157e7565b92505081905550816102fe60008282546116bd919061589a565b9091555060019050336001600160a01b0316600019600080516020615ea3833981519152898660026000196040516116f894939291906159d3565b60405180910390a461170a3382613ad0565b6117143383613c05565b50505050505050565b6117256137ad565b3361172f816137f5565b1561174c5760405162461bcd60e51b8152600401610ccd9061599e565b60006102ff8381548110611762576117626157fa565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150336001600160a01b0316146117de5760405162461bcd60e51b81526020600482015260036024820152624c353760e81b6044820152606401610ccd565b80602001516001600160601b03166102fd60008282546117fe919061589a565b90915550506102ff805484908110611818576118186157fa565b6000918252602082200155600181600001516001600160a01b031684600080516020615ea38339815191528460200151856020015160016000196040516118629493929190615854565b60405180910390a4611885816000015182602001516001600160601b0316613c32565b505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036118d25760405162461bcd60e51b8152600401610ccd90615906565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611904613941565b6001600160a01b03161461192a5760405162461bcd60e51b8152600401610ccd90615952565b6119338261395d565b61193f82826001613965565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146119de5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610ccd565b50600080516020615ec383398151915290565b6103018181548110611a0257600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b90046001600160601b031682565b6000610ff6613cf5565b611a3f61340a565b610302546000199060005b81811015611aa457836001600160a01b03166103028281548110611a7057611a706157fa565b6000918252602090912001546001600160a01b031603611a9257809250611aa4565b80611a9c816158ed565b915050611a4a565b506000198213611adc5760405162461bcd60e51b8152602060048201526003602482015262261a1960e91b6044820152606401610ccd565b610302611aea60018361589a565b81548110611afa57611afa6157fa565b60009182526020909120015461030280546001600160a01b039092169184908110611b2757611b276157fa565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550610302805480611b6757611b676159e9565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b611b9661340a565b61030355565b611ba461340a565b60405163433e3bad60e11b8152610290600482015261ffff8216602482015273__$3728f51d90da6977d2525dcec632daa0b3$__9063867c775a9060440160006040518083038186803b158015611bfa57600080fd5b505af4158015611c0e573d6000803e3d6000fd5b505060405161ffff841681527f3d6d63f501ae621a01c729938fb4428a25138835257943d6b56c49b402ba36329250602001905060405180910390a150565b6102c6546001600160a01b031690565b6000611c6882612ee9565b611c71836124a8565b610c8791906157e7565b611c8361340a565b60405162461bcd60e51b81526020600482015260036024820152624c363560e81b6044820152606401610ccd565b6102fb546001600160a01b0316336001600160a01b031614611ce55760405162461bcd60e51b8152600401610ccd906159ff565b611ced6137ad565b60006102ff8281548110611d0357611d036157fa565b6000918252602091829020604080518082019091529101546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092529150611d745760405162461bcd60e51b8152602060048201526003602482015262261b1b60e91b6044820152606401610ccd565b8051611d7f906137f5565b15611db25760405162461bcd60e51b815260206004820152600360248201526204c35360ec1b6044820152606401610ccd565b6002611dbc612fac565b611dc69190615810565b81602001516001600160601b031611611e075760405162461bcd60e51b81526020600482015260036024820152624c353160e81b6044820152606401610ccd565b600080611e25836000015184602001516001600160601b0316612d43565b915091506000611e33611c4d565b6102fb546040516370a0823160e01b81526001600160a01b03928316926370a0823192611e65929116906004016154a6565b602060405180830381865afa158015611e82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea691906159ba565b9050806102fe54611eb791906157e7565b831115611eec5760405162461bcd60e51b8152602060048201526003602482015262261a9960e91b6044820152606401610ccd565b816102fc6000828254611eff91906157e7565b9250508190555083602001516001600160601b03166102fd6000828254611f26919061589a565b9091555050610300548503611f4c576103008054906000611f46836158ed565b91905055505b600184600001516001600160a01b031686600080516020615ea38339815191528760200151876002600019604051611f8794939291906158ad565b60405180910390a46102ff8581548110611fa357611fa36157fa565b6000918252602082200155808311611fda57611fd533855185611fc4611c4d565b6001600160a01b0316929190613d64565b612021565b6000611fe6828561589a565b9050806102fe6000828254611ffb919061589a565b90915550612010905033865184611fc4611c4d565b845161201f9082611353611c4d565b505b612029613d85565b5050505050565b6102fb546001600160a01b0316336001600160a01b0316146120645760405162461bcd60e51b8152600401610ccd906159ff565b61206c6137ad565b612074611c4d565b6102fb546040516370a0823160e01b81526001600160a01b03928316926370a08231926120a6929116906004016154a6565b602060405180830381865afa1580156120c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e791906159ba565b81111561211c5760405162461bcd60e51b81526020600482015260036024820152620986a760eb1b6044820152606401610ccd565b6000816102fe5461212d91906157e7565b9050612137612fac565b81111561216c5760405162461bcd60e51b81526020600482015260036024820152624c353960e81b6044820152606401610ccd565b816102fe600082825461217f91906157e7565b9091555061193f9050333084611fc4611c4d565b61219b61340a565b6121a3611c4d565b6001600160a01b0316826001600160a01b0316036121e95760405162461bcd60e51b81526020600482015260036024820152624c343360e81b6044820152606401610ccd565b61193f8282613de3565b61012d5460408051638da5cb5b60e01b815290516000926001600160a01b031691638da5cb5b9160048083019260209291908290030181865afa15801561223e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff69190615a1c565b61226a6137ad565b81612274816137f5565b156122915760405162461bcd60e51b8152600401610ccd9061599e565b8161229b816137f5565b156122b85760405162461bcd60e51b8152600401610ccd9061599e565b6001600160a01b038481166000908152610291602052604090205416156123075760405162461bcd60e51b8152602060048201526003602482015262261b1960e91b6044820152606401610ccd565b6001600160a01b0384166123435760405162461bcd60e51b815260206004820152600360248201526226189960e91b6044820152606401610ccd565b6001600160a01b03831661237f5760405162461bcd60e51b81526020600482015260036024820152624c313360e81b6044820152606401610ccd565b826001600160a01b0316846001600160a01b0316036123c65760405162461bcd60e51b8152602060048201526003602482015262130c4d60ea1b6044820152606401610ccd565b6123ce6121f3565b6001600160a01b0316336001600160a01b031614806123f55750336001600160a01b038516145b6124275760405162461bcd60e51b81526020600482015260036024820152624c313560e81b6044820152606401610ccd565b612432846001613eda565b61243d836001613eda565b50506001600160a01b039182166000818152610291602090815260408083208054969095166001600160a01b03199687168117909555938252610292815292812080546001810182559082529290209091018054909216179055565b6060609b8054610bf0906156ce565b6001600160a01b038116600090815260976020526040812054610c87565b6124ce61340a565b61030280546001810182556000919091527f552430c2010355dda19e8bae437f75cfb136cb8d667c4c0867367db21eee69b60180546001600160a01b0319166001600160a01b0392909216919091179055565b6125296137ad565b33612533816137f5565b156125505760405162461bcd60e51b8152600401610ccd9061599e565b61255933611c5d565b82111561258e5760405162461bcd60e51b81526020600482015260036024820152624c353360e81b6044820152606401610ccd565b6001600160601b038211156125cb5760405162461bcd60e51b8152602060048201526003602482015262130d4d60ea1b6044820152606401610ccd565b6103035434146126035760405162461bcd60e51b81526020600482015260036024820152624c353560e81b6044820152606401610ccd565b600060405180604001604052806126173390565b6001600160a01b0390811682526001600160601b0386166020909201919091526102f9549192506000916002911663c8f74bb8336040518263ffffffff1660e01b815260040161266791906154a6565b602060405180830381865afa158015612684573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a891906159ba565b101580156126b95750600061030054115b156127275761030080549060006126cf83615a39565b9190505550610300549050816102ff82815481106126ef576126ef6157fa565b6000918252602091829020835193909201516001600160601b0316600160a01b026001600160a01b0390931692909217910155612791565b6102ff8054600181810183556000839052845160208601516001600160601b0316600160a01b026001600160a01b03909116177f5a4a1f748f8cfa795b59cdc37192794ee567e6029e925719381be08d7ccaf4ec90920191909155905461278e919061589a565b90505b836102fd60008282546127a491906157e7565b9091555060019050336001600160a01b031682600080516020615ea3833981519152878860006000196040516127dd94939291906159d3565b60405180910390a46127ef3385613ad0565b6102fa546040516000916001600160a01b03169034908381818185875af1925050503d806000811461283d576040519150601f19603f3d011682016040523d82523d6000602084013e612842565b606091505b50509050806120295760405162461bcd60e51b8152602060048201526003602482015262261a9b60e91b6044820152606401610ccd565b600033816128878286613033565b9050838110156128e75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610ccd565b6128f482868684036132e6565b506001949350505050565b61290761340a565b6102f980546001600160a01b0319166001600160a01b0392909216919091179055565b6129326137ad565b8161293c816137f5565b156129595760405162461bcd60e51b8152600401610ccd9061599e565b81612963816137f5565b156129805760405162461bcd60e51b8152600401610ccd9061599e565b6001600160a01b0384166129bc5760405162461bcd60e51b815260206004820152600360248201526226189b60e91b6044820152606401610ccd565b6001600160a01b0383166129f85760405162461bcd60e51b81526020600482015260036024820152624c313760e81b6044820152606401610ccd565b612a006121f3565b6001600160a01b0316336001600160a01b03161480612a275750336001600160a01b038516145b612a595760405162461bcd60e51b815260206004820152600360248201526209862760eb1b6044820152606401610ccd565b6001600160a01b0384811660009081526102916020526040902054811690841614612aac5760405162461bcd60e51b81526020600482015260036024820152624c313960e81b6044820152606401610ccd565b612ab7846001613eda565b612ac2836001613eda565b60001960005b6001600160a01b03851660009081526102926020526040902054811015612b4d576001600160a01b0385811660009081526102926020526040902080549188169183908110612b1957612b196157fa565b6000918252602090912001546001600160a01b031603612b3b57809150612b4d565b80612b45816158ed565b915050612ac8565b506000811215612b5f57612b5f615a50565b6001600160a01b0380861660009081526102916020908152604080832080546001600160a01b031916905592871682526102929052208054612ba39060019061589a565b81548110612bb357612bb36157fa565b60009182526020808320909101546001600160a01b0387811684526102929092526040909220805491909216919083908110612bf157612bf16157fa565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055918616815261029290915260409020805480612c3757612c376159e9565b600082815260209020810160001990810180546001600160a01b03191690550190555050505050565b600033610c81818585613603565b612c7661340a565b60006102fe54612c84611c4d565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401612caf91906154a6565b602060405180830381865afa158015612ccc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cf091906159ba565b612cfa919061589a565b905060008111612d325760405162461bcd60e51b8152602060048201526003602482015262130d0d60ea1b6044820152606401610ccd565b6114d6612d3d611c4d565b82613de3565b6102f95460405163191ee97760e31b815260009182916002916001600160a01b03169063c8f74bb890612d7a9088906004016154a6565b602060405180830381865afa158015612d97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dbb91906159ba565b10612dcb57508190506000612e59565b6000612de8612de361028e546001600160a01b031690565b613faf565b90506000612df6858361401c565b6102fb54909150600090612e1790600160a01b900463ffffffff168461405a565b90506000612e26606485614086565b612e308385615a66565b612e3a9190615810565b9050612e4681856140b4565b9450612e52858861589a565b9550505050505b9250929050565b6102ff8181548110611a0257600080fd5b60405163106d64cf60e31b8152610290600482015260009073__$3728f51d90da6977d2525dcec632daa0b3$__9063836b267890602401602060405180830381865af4158015612ec5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff69190615a7d565b6000610c878260016140eb565b612efe61340a565b60006102fc5411612f375760405162461bcd60e51b815260206004820152600360248201526204c36360ec1b6044820152606401610ccd565b6102fc546102fe541015612f735760405162461bcd60e51b81526020600482015260036024820152624c363160e81b6044820152606401610ccd565b6102fc546102fe6000828254612f89919061589a565b90915550506102fc805460009091556114d6612fa36121f3565b82611353611c4d565b600080612fc5612de361028e546001600160a01b031690565b90506000612fda612fd4610fd0565b8361401c565b6102fb54909150600090612ffb90600160c01b900463ffffffff168461405a565b9050600061300a606485614086565b6130148385615a66565b61301e9190615810565b905061302a81856140b4565b94505050505090565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b61306661340a565b614e2063ffffffff821611156130a45760405162461bcd60e51b815260206004820152600360248201526209870760eb1b6044820152606401610ccd565b6102fb805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b61030281815481106130dc57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610ff660995490565b6131096137ad565b33613113816137f5565b156131305760405162461bcd60e51b8152600401610ccd9061599e565b82613139611c4d565b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161316491906154a6565b602060405180830381865afa158015613181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a591906159ba565b10156131d95760405162461bcd60e51b81526020600482015260036024820152624c343760e81b6044820152606401610ccd565b826102fe60008282546131ec91906157e7565b9091555060009050336001600160a01b0316600019600080516020615ea38339815191528687600260001989604051613229959493929190615a9a565b60405180910390a461323b3384614651565b50611885613d85565b61324c61340a565b60405162461bcd60e51b8152602060048201526002602482015261098760f31b6044820152606401610ccd565b61328161340a565b61271063ffffffff821611156132bf5760405162461bcd60e51b81526020600482015260036024820152624c343160e81b6044820152606401610ccd565b6102fb805463ffffffff909216600160c01b0263ffffffff60c01b19909216919091179055565b6001600160a01b0383166133485760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ccd565b6001600160a01b0382166133a95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ccd565b6001600160a01b0383811660008181526098602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b336134136121f3565b6001600160a01b0316146134695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ccd565b565b600054610100900460ff166134925760405162461bcd60e51b8152600401610ccd90615acc565b61349d8585856146d2565b6134a7828261472c565b61202961475d565b600054610100900460ff166134d65760405162461bcd60e51b8152600401610ccd90615acc565b6114d681614784565b600054610100900460ff166135065760405162461bcd60e51b8152600401610ccd90615acc565b61028e80546001600160a01b0319166001600160a01b03831617905560405163433e3bad60e11b815261029060048201526000602482015273__$3728f51d90da6977d2525dcec632daa0b3$__9063867c775a9060440160006040518083038186803b15801561357557600080fd5b505af4158015612029573d6000803e3d6000fd5b60006135958484613033565b905060001981146135fd57818110156135f05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610ccd565b6135fd84848484036132e6565b50505050565b6001600160a01b0383166136675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ccd565b6001600160a01b0382166136c95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ccd565b6136d4838383614826565b6001600160a01b0383166000908152609760205260409020548181101561374c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610ccd565b6001600160a01b038085166000818152609760205260408082208686039055928616808252908390208054860190559151600080516020615f0a8339815191529061379a9086815260200190565b60405180910390a36135fd848484614865565b6137b5611a2d565b156134695760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ccd565b6101935460405163fe575a8760e01b81526000916001600160a01b03169063fe575a87906138279085906004016154a6565b602060405180830381865afa158015613844573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c879190615b17565b6040516001600160a01b03831660248201526044810182905261188590849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614966565b6102c6546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa925050508015613932575060408051601f3d908101601f1916820190925261392f91810190615b39565b60015b61393c5750601290565b919050565b600080516020615ec3833981519152546001600160a01b031690565b6114d661340a565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156139985761188583614a3b565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156139f2575060408051601f3d908101601f191682019092526139ef918101906159ba565b60015b613a555760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610ccd565b600080516020615ec38339815191528114613ac45760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610ccd565b50611885838383614ad7565b6001600160a01b038216613b305760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610ccd565b613b3c82600083614826565b6001600160a01b03821660009081526097602052604090205481811015613bb05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610ccd565b6001600160a01b0383166000818152609760209081526040808320868603905560998054879003905551858152919291600080516020615f0a833981519152910160405180910390a361188583600084614865565b6000613c113383613ad0565b6102c654613c29906001600160a01b03168484613868565b50600192915050565b6001600160a01b038216613c885760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610ccd565b613c9460008383614826565b8060996000828254613ca691906157e7565b90915550506001600160a01b038216600081815260976020908152604080832080548601905551848152600080516020615f0a833981519152910160405180910390a361193f60008383614865565b6101605460408051635c975abb60e01b815290516000926001600160a01b031691635c975abb9160048083019260209291908290030181865afa158015613d40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff69190615b17565b6135fd846323b872dd60e01b85858560405160240161389493929190615b5c565b6000613d8f612fac565b9050806102fe5411613d9e5750565b6000816102fe54613daf919061589a565b9050806102fe6000828254613dc4919061589a565b90915550506102fb5461193f906001600160a01b031682611353611c4d565b613deb61340a565b60008111613e215760405162461bcd60e51b815260206004820152600360248201526204c31360ec1b6044820152606401610ccd565b6040516370a0823160e01b8152829082906001600160a01b038316906370a0823190613e519030906004016154a6565b602060405180830381865afa158015613e6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e9291906159ba565b1015613ec65760405162461bcd60e51b81526020600482015260036024820152624c313160e81b6044820152606401610ccd565b6118856001600160a01b0382163384613868565b6102935460ff1615613eea575050565b6001600160a01b038216600090815261028f602052604090205464ffffffffff428116911603613f18575050565b6001600160a01b0380831660009081526102916020526040902054168015613f44576118858183613eda565b6000613f5084846140eb565b90508015613fa657610293805460ff191660011790556000613f728583614afc565b610293805460ff19169055905080613fa4576001600160a01b038516600090815261028f602052604090206003018290555b505b6135fd84614b53565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015613fef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140139190615b39565b60ff1692915050565b6000600382101561404e5761403282600661589a565b61403d90600a615c64565b6140479084615a66565b9050610c87565b61104b836103e8615a66565b6000600382101561407157614047836103e8615a66565b61407c82600a615c64565b61104b9084615a66565b6000600382101561409e5761404783620f4240615a66565b6140a98260036157e7565b61407c90600a615c64565b600060038210156140df576140ca82600661589a565b6140d590600a615c64565b6140479084615810565b61104b6103e884615810565b6001600160a01b038216600090815261028f602090815260408083208151608081018352815464ffffffffff16818401908152835180850190945260018301548452600283015463ffffffff1684860152606082019390935291825260030154918101919091528161415c85614cb5565b82515190915064ffffffffff161580614173575080155b1561418357600092505050610c87565b815160200151604051630b27cfb160e31b815260009073__$3728f51d90da6977d2525dcec632daa0b3$__9063593e7d88906141c790610290908690600401615c70565b6040805180830381865af41580156141e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142079190615c94565b60405163038255fd60e11b8152610290600482015290915060009073__$3728f51d90da6977d2525dcec632daa0b3$__90630704abfa906024016040805180830381865af415801561425d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142819190615cdf565b90508460200151955073__$3728f51d90da6977d2525dcec632daa0b3$__634ead0c5384836040518363ffffffff1660e01b81526004016142c3929190615d0b565b602060405180830381865af41580156142e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143049190615b17565b61461557604051633e1e5c5360e11b815260009073__$3728f51d90da6977d2525dcec632daa0b3$__90637c3cb8a690614342908790600401615d3f565b6040805180830381865af415801561435e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143829190615cdf565b604051630b27cfb160e31b815290915060009073__$3728f51d90da6977d2525dcec632daa0b3$__9063593e7d88906143c390610290908690600401615c70565b6040805180830381865af41580156143df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144039190615c94565b87515160208201518651929350614431928c614420576000614422565b8b5b61442c908b6157e7565b614d5e565b61443b90896157e7565b97505b81945080935073__$3728f51d90da6977d2525dcec632daa0b3$__634ead0c5386856040518363ffffffff1660e01b815260040161447d929190615d0b565b602060405180830381865af415801561449a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144be9190615b17565b6145e857604051633e1e5c5360e11b815273__$3728f51d90da6977d2525dcec632daa0b3$__90637c3cb8a6906144f9908890600401615d3f565b6040805180830381865af4158015614515573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145399190615cdf565b604051630b27cfb160e31b815290925073__$3728f51d90da6977d2525dcec632daa0b3$__9063593e7d889061457790610290908690600401615c70565b6040805180830381865af4158015614593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145b79190615c94565b90506145d78460200151826020015186600001518c614420576000614422565b6145e190896157e7565b975061443e565b61460284602001514286600001518c614420576000614422565b61460c90896157e7565b97505050614646565b8451518251614639919042908a61462d57600061462f565b895b61442c90896157e7565b61464390876157e7565b95505b505050505092915050565b6000333081036146af5760405162461bcd60e51b815260206004820152602360248201527f4552433230577261707065723a20777261707065722063616e2774206465706f6044820152621cda5d60ea1b6064820152608401610ccd565b6102c6546146c8906001600160a01b0316823086613d64565b610c818484613c32565b600054610100900460ff166146f95760405162461bcd60e51b8152600401610ccd90615acc565b61470161475d565b61470a83614e4a565b614712614e7a565b61471b82614ea9565b61472481614ef3565b61188561475d565b600054610100900460ff166147535760405162461bcd60e51b8152600401610ccd90615acc565b61193f8282614f3d565b600054610100900460ff166134695760405162461bcd60e51b8152600401610ccd90615acc565b600054610100900460ff166147ab5760405162461bcd60e51b8152600401610ccd90615acc565b306001600160a01b038216036148035760405162461bcd60e51b815260206004820152601e60248201527f4552433230577261707065723a2063616e6e6f742073656c66207772617000006044820152606401610ccd565b6102c680546001600160a01b0319166001600160a01b0392909216919091179055565b614831838383614f7d565b6001600160a01b0383161561484b5761484b836001613eda565b6001600160a01b0382161561188557611885826001613eda565b6001600160a01b038316158061488257506001600160a01b038216155b156148c2577f980f7e6fb44009001d533a10bc3bd558b4efe22dcb4888bca4767aa93c71ce1f6148b0610fd0565b60405190815260200160405180910390a15b60005b610302548110156135fd5761030281815481106148e4576148e46157fa565b600091825260209091200154604051636e0d037d60e11b81526001600160a01b039091169063dc1a06fa9061492190879087908790600401615b5c565b600060405180830381600087803b15801561493b57600080fd5b505af115801561494f573d6000803e3d6000fd5b50505050808061495e906158ed565b9150506148c5565b60006149bb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614fde9092919063ffffffff16565b90508051600014806149dc5750808060200190518101906149dc9190615b17565b6118855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ccd565b6001600160a01b0381163b614aa85760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610ccd565b600080516020615ec383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b614ae083614fed565b600082511180614aed5750805b15611885576135fd838361502d565b6000826001600160a01b03167f05a71d417f891ba4b7a94b48d1b1f4b59b070921cba593b3c72a05a5587a78a9614b32856124a8565b60408051918252602082018690520160405180910390a2613c298383613c32565b6001600160a01b038116600090815261028f602052604090819020805464ffffffffff19164264ffffffffff161790555163038255fd60e11b8152610290600482015273__$3728f51d90da6977d2525dcec632daa0b3$__90630704abfa906024016040805180830381865af4158015614bd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614bf59190615cdf565b6001600160a01b038216600090815261028f602090815260408220835160018201559201516002909201805463ffffffff191663ffffffff909316929092179091555b6001600160a01b0382166000908152610292602052604090205481101561193f576001600160a01b0382166000908152610292602052604090208054614ca3919083908110614c8957614c896157fa565b6000918252602090912001546001600160a01b0316614b53565b80614cad816158ed565b915050614c38565b6000614cc082615052565b614cca90826157e7565b905060005b6001600160a01b03831660009081526102926020526040902054811015614d58576001600160a01b0383166000908152610292602052604090208054614d3a919083908110614d2057614d206157fa565b6000918252602090912001546001600160a01b0316614cb5565b614d4490836157e7565b915080614d50816158ed565b915050614ccf565b50919050565b600080614d77612de361028e546001600160a01b031690565b90506000614d95614d888888615d5c565b64ffffffffff1683614086565b90506000614da76301e1338084614086565b614db2600185614086565b614dbc9084615a66565b614dc69190615810565b90506000614dd88761ffff168561405a565b90506000614de7600186614086565b614df18385615a66565b614dfb9190615810565b90506000614e09888761401c565b90506000614e18606488614086565b614e228484615a66565b614e2c9190615810565b9050614e3881886140b4565b9750505050505050505b949350505050565b600054610100900460ff16614e715760405162461bcd60e51b8152600401610ccd90615acc565b6114d68161505d565b600054610100900460ff16614ea15760405162461bcd60e51b8152600401610ccd90615acc565b6134696150a7565b600054610100900460ff16614ed05760405162461bcd60e51b8152600401610ccd90615acc565b61016080546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16614f1a5760405162461bcd60e51b8152600401610ccd90615acc565b61019380546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16614f645760405162461bcd60e51b8152600401610ccd90615acc565b609a614f708382615dc7565b50609b6118858282615dc7565b614f856137ad565b82614f8f816137f5565b15614fac5760405162461bcd60e51b8152600401610ccd9061599e565b82614fb6816137f5565b15614fd35760405162461bcd60e51b8152600401610ccd9061599e565b6120298585856150da565b6060614e428484600085615142565b614ff681614a3b565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061104b8383604051806060016040528060278152602001615ee36027913961521d565b6000610c87826124a8565b600054610100900460ff166150845760405162461bcd60e51b8152600401610ccd90615acc565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff166150ce5760405162461bcd60e51b8152600401610ccd90615acc565b60c9805460ff19169055565b6150e2611a2d565b156118855760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610ccd565b6060824710156151a35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ccd565b600080866001600160a01b031685876040516151bf9190615e86565b60006040518083038185875af1925050503d80600081146151fc576040519150601f19603f3d011682016040523d82523d6000602084013e615201565b606091505b509150915061521287838387615295565b979650505050505050565b6060600080856001600160a01b03168560405161523a9190615e86565b600060405180830381855af49150503d8060008114615275576040519150601f19603f3d011682016040523d82523d6000602084013e61527a565b606091505b509150915061528b86838387615295565b9695505050505050565b606083156153045782516000036152fd576001600160a01b0385163b6152fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ccd565b5081614e42565b614e4283838151156153195781518083602001fd5b8060405162461bcd60e51b8152600401610ccd9190615383565b60005b8381101561534e578181015183820152602001615336565b50506000910152565b6000815180845261536f816020860160208601615333565b601f01601f19169290920160200192915050565b60208152600061104b6020830184615357565b6001600160a01b03811681146114d657600080fd5b600080604083850312156153be57600080fd5b82356153c981615396565b946020939093013593505050565b6000602082840312156153e957600080fd5b813561104b81615396565b600080600080600060a0868803121561540c57600080fd5b853561541781615396565b9450602086013561542781615396565b9350604086013561543781615396565b9250606086013561544781615396565b9150608086013561545781615396565b809150509295509295909350565b60008060006060848603121561547a57600080fd5b833561548581615396565b9250602084013561549581615396565b929592945050506040919091013590565b6001600160a01b0391909116815260200190565b6000602082840312156154cc57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561550b5761550b6154d3565b60405290565b604051601f8201601f191681016001600160401b0381118282101715615539576155396154d3565b604052919050565b60006001600160401b0382111561555a5761555a6154d3565b50601f01601f191660200190565b600061557b61557684615541565b615511565b905082815283838301111561558f57600080fd5b828260208301376000602084830101529392505050565b600080604083850312156155b957600080fd5b82356155c481615396565b915060208301356001600160401b038111156155df57600080fd5b8301601f810185136155f057600080fd5b6155ff85823560208401615568565b9150509250929050565b61ffff811681146114d657600080fd5b60006020828403121561562b57600080fd5b813561104b81615609565b6000806040838503121561564957600080fd5b823561565481615396565b9150602083013561566481615396565b809150509250929050565b63ffffffff811681146114d657600080fd5b60006020828403121561569357600080fd5b813561104b8161566f565b600080604083850312156156b157600080fd5b8235915060208301356001600160401b038111156155df57600080fd5b600181811c908216806156e257607f821691505b602082108103614d5857634e487b7160e01b600052602260045260246000fd5b60006020828403121561571457600080fd5b81516001600160401b0381111561572a57600080fd5b8201601f8101841361573b57600080fd5b805161574961557682615541565b81815285602083850101111561575e57600080fd5b61576f826020830160208601615333565b95945050505050565b6702632b233b4ba3c960c51b81526000825161579b816008850160208701615333565b9190910160080192915050565b601360fa1b8152600082516157c4816001850160208701615333565b9190910160010192915050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c8757610c876157d1565b634e487b7160e01b600052603260045260246000fd5b60008261582d57634e487b7160e01b600052601260045260246000fd5b500490565b6004811061585057634e487b7160e01b600052602160045260246000fd5b9052565b6001600160601b0385811682528416602082015260006158776040830185615832565b82606083015260a06080830152600060a083015260c08201905095945050505050565b81810381811115610c8757610c876157d1565b6001600160601b03851681528360208201526158cc6040820184615832565b606081019190915260a06080820181905260009082015260c0019392505050565b6000600182016158ff576158ff6157d1565b5060010190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252600290820152614c3960f01b604082015260600190565b6000602082840312156159cc57600080fd5b5051919050565b8481528360208201526158cc6040820184615832565b634e487b7160e01b600052603160045260246000fd5b60208082526003908201526204c34360ec1b604082015260600190565b600060208284031215615a2e57600080fd5b815161104b81615396565b600081615a4857615a486157d1565b506000190190565b634e487b7160e01b600052600160045260246000fd5b8082028115828204841417610c8757610c876157d1565b600060208284031215615a8f57600080fd5b815161104b81615609565b858152846020820152615ab06040820185615832565b82606082015260a06080820152600061521260a0830184615357565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060208284031215615b2957600080fd5b8151801515811461104b57600080fd5b600060208284031215615b4b57600080fd5b815160ff8116811461104b57600080fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b600181815b80851115615bbb578160001904821115615ba157615ba16157d1565b80851615615bae57918102915b93841c9390800290615b85565b509250929050565b600082615bd257506001610c87565b81615bdf57506000610c87565b8160018114615bf55760028114615bff57615c1b565b6001915050610c87565b60ff841115615c1057615c106157d1565b50506001821b610c87565b5060208310610133831016604e8410600b8410161715615c3e575081810a610c87565b615c488383615b80565b8060001904821115615c5c57615c5c6157d1565b029392505050565b600061104b8383615bc3565b8281526060810161104b60208301848051825260209081015163ffffffff16910152565b600060408284031215615ca657600080fd5b615cae6154e9565b8251615cb981615609565b8152602083015164ffffffffff81168114615cd357600080fd5b60208201529392505050565b600060408284031215615cf157600080fd5b615cf96154e9565b825181526020830151615cd38161566f565b8251815260208084015163ffffffff16908201526080810182516040830152602083015163ffffffff16606083015261104b565b8151815260208083015163ffffffff169082015260408101610c87565b64ffffffffff828116828216039080821115615d7a57615d7a6157d1565b5092915050565b601f82111561188557600081815260208120601f850160051c81016020861015615da85750805b601f850160051c820191505b81811015610fc857828155600101615db4565b81516001600160401b03811115615de057615de06154d3565b615df481615dee84546156ce565b84615d81565b602080601f831160018114615e295760008415615e115750858301515b600019600386901b1c1916600185901b178555610fc8565b600085815260208120601f198616915b82811015615e5857888601518255948401946001909101908401615e39565b5085821015615e765787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251615e98818460208701615333565b919091019291505056fe20585a03b41b84f4b72a83e5ccd8cb590ff3649833e4638ca8614e80ca27a0de360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220b2257e01d2bdc3559619478e1bae41ea2979f9f0b6d345c69afa9dbcff619bc964736f6c63430008120033", "libraries": { - "APRHistory": "0x9b508ABEbB61a0C24d28A728BB45834e440e4761" + "APRHistory": "0x41B0EeF9787BB07306967c012298C70811cC70f0" }, "devdoc": { "author": "Lila Rest (https://lila.rest)", @@ -1350,7 +1387,7 @@ "newAPRUD7x3": "The new APR in UD7x3 format." } }, - "ActivityEvent(int256,address,uint8,uint256,uint256,uint8,int256)": { + "ActivityEvent(int256,address,uint8,uint256,uint256,uint8,int256,string)": { "params": { "account": "The account involved in the activity.", "action": "The type of activity.", @@ -1426,9 +1463,10 @@ "decreaseAllowance(address,uint256)": { "details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`." }, - "deposit(uint256)": { + "deposit(uint256,string)": { "params": { - "amount": "The amount of underlying tokens to deposit." + "amount": "The amount of underlying tokens to deposit.", + "refCode": "The Referral code" } }, "depositFor(address,uint256)": { @@ -1550,7 +1588,7 @@ } }, "requestWithdrawal(uint256)": { - "details": "The sender must attach 0.003 ETH to pre-pay the future processing gas fees paid by the withdrawer wallet.", + "details": "The sender must attach withdrawalFeeInETH to pre-pay the future processing gas fees paid by the withdrawer wallet.", "params": { "amount": "The amount L-Tokens to withdraw." } @@ -1581,6 +1619,11 @@ "retentionRateUD7x3_": "The new retention rate in UD7x3 format." } }, + "setWithdrawalFeeInEth(uint256)": { + "params": { + "withdrawalFeeInEth_": "The new withdrawalFee in ETH." + } + }, "setWithdrawer(address)": { "params": { "withdrawer_": "The address of the new withdrawer wallet." @@ -1661,7 +1704,7 @@ "APRChangeEvent(uint16)": { "notice": "Emitted to inform listeners about a change in the APR's value." }, - "ActivityEvent(int256,address,uint8,uint256,uint256,uint8,int256)": { + "ActivityEvent(int256,address,uint8,uint256,uint256,uint8,int256,string)": { "notice": "Emitted to inform listerners about an activity related to deposits and withdrawals." }, "MintedRewardsEvent(address,uint256,uint256)": { @@ -1685,7 +1728,7 @@ "decimals()": { "notice": "Required override of decimals() which is implemented by both ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts." }, - "deposit(uint256)": { + "deposit(uint256,string)": { "notice": "Allows exchanging some underlying tokens for the same amount of L-Tokens." }, "depositFor(address,uint256)": { @@ -1787,6 +1830,9 @@ "setRetentionRate(uint32)": { "notice": "Updates the current underlying token retention rate." }, + "setWithdrawalFeeInEth(uint256)": { + "notice": "Updates the current withdrawalFeeInETH." + }, "setWithdrawer(address)": { "notice": "Updates the address of the withdrawer wallet." }, @@ -1823,6 +1869,9 @@ "withdrawTo(address,uint256)": { "notice": "Override of ERC20WrapperUpgradeable.withdrawTo() that reverts. Use instantWithdrawal() or requestWithdrawal() functions instead." }, + "withdrawalFeeInEth()": { + "notice": "Holds the withdrawalFee amount in ETH that will be sent to withdrawer wallet." + }, "withdrawalQueue(uint256)": { "notice": "Holds an ordered list of active withdrawal requests." }, @@ -1959,7 +2008,7 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 8879, + "astId": 8986, "contract": "contracts/src/LToken.sol:LToken", "label": "_globalOwner", "offset": 0, @@ -1967,7 +2016,7 @@ "type": "t_contract(GlobalOwner)5028" }, { - "astId": 8963, + "astId": 9070, "contract": "contracts/src/LToken.sol:LToken", "label": "__gap", "offset": 0, @@ -1975,7 +2024,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 8981, + "astId": 9088, "contract": "contracts/src/LToken.sol:LToken", "label": "_globalPause", "offset": 0, @@ -1983,7 +2032,7 @@ "type": "t_contract(GlobalPause)5104" }, { - "astId": 9040, + "astId": 9147, "contract": "contracts/src/LToken.sol:LToken", "label": "__gap", "offset": 0, @@ -1991,7 +2040,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 9054, + "astId": 9161, "contract": "contracts/src/LToken.sol:LToken", "label": "_globalBlacklist", "offset": 0, @@ -1999,7 +2048,7 @@ "type": "t_contract(GlobalBlacklist)4981" }, { - "astId": 9128, + "astId": 9235, "contract": "contracts/src/LToken.sol:LToken", "label": "__gap", "offset": 0, @@ -2007,7 +2056,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 10147, + "astId": 10254, "contract": "contracts/src/LToken.sol:LToken", "label": "__gap", "offset": 0, @@ -2015,7 +2064,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 10238, + "astId": 10345, "contract": "contracts/src/LToken.sol:LToken", "label": "__gap", "offset": 0, @@ -2031,7 +2080,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 10343, + "astId": 10450, "contract": "contracts/src/LToken.sol:LToken", "label": "__gap", "offset": 0, @@ -2039,7 +2088,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 9180, + "astId": 9287, "contract": "contracts/src/LToken.sol:LToken", "label": "_invested", "offset": 0, @@ -2047,23 +2096,23 @@ "type": "t_contract(IERC20Upgradeable)1808" }, { - "astId": 9186, + "astId": 9293, "contract": "contracts/src/LToken.sol:LToken", "label": "accountsDetails", "offset": 0, "slot": "655", - "type": "t_mapping(t_address,t_struct(AccountDetails)9176_storage)" + "type": "t_mapping(t_address,t_struct(AccountDetails)9283_storage)" }, { - "astId": 9191, + "astId": 9298, "contract": "contracts/src/LToken.sol:LToken", "label": "_aprHistory", "offset": 0, "slot": "656", - "type": "t_array(t_struct(Pack)10375_storage)dyn_storage" + "type": "t_array(t_struct(Pack)10482_storage)dyn_storage" }, { - "astId": 9196, + "astId": 9303, "contract": "contracts/src/LToken.sol:LToken", "label": "rewardsRedirectsFromTo", "offset": 0, @@ -2071,7 +2120,7 @@ "type": "t_mapping(t_address,t_address)" }, { - "astId": 9201, + "astId": 9308, "contract": "contracts/src/LToken.sol:LToken", "label": "rewardsRedirectsToFrom", "offset": 0, @@ -2079,7 +2128,7 @@ "type": "t_mapping(t_address,t_array(t_address)dyn_storage)" }, { - "astId": 9204, + "astId": 9311, "contract": "contracts/src/LToken.sol:LToken", "label": "_isClaiming", "offset": 0, @@ -2087,7 +2136,7 @@ "type": "t_bool" }, { - "astId": 10054, + "astId": 10161, "contract": "contracts/src/LToken.sol:LToken", "label": "__gap", "offset": 0, @@ -2111,15 +2160,15 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 6246, + "astId": 6323, "contract": "contracts/src/LToken.sol:LToken", "label": "ldyStaking", "offset": 0, "slot": "761", - "type": "t_contract(LDYStaking)6178" + "type": "t_contract(LDYStaking)6255" }, { - "astId": 6249, + "astId": 6326, "contract": "contracts/src/LToken.sol:LToken", "label": "withdrawer", "offset": 0, @@ -2127,7 +2176,7 @@ "type": "t_address_payable" }, { - "astId": 6252, + "astId": 6329, "contract": "contracts/src/LToken.sol:LToken", "label": "fund", "offset": 0, @@ -2135,7 +2184,7 @@ "type": "t_address" }, { - "astId": 6255, + "astId": 6332, "contract": "contracts/src/LToken.sol:LToken", "label": "feesRateUD7x3", "offset": 20, @@ -2143,7 +2192,7 @@ "type": "t_uint32" }, { - "astId": 6258, + "astId": 6335, "contract": "contracts/src/LToken.sol:LToken", "label": "retentionRateUD7x3", "offset": 24, @@ -2151,7 +2200,7 @@ "type": "t_uint32" }, { - "astId": 6261, + "astId": 6338, "contract": "contracts/src/LToken.sol:LToken", "label": "unclaimedFees", "offset": 0, @@ -2159,7 +2208,7 @@ "type": "t_uint256" }, { - "astId": 6264, + "astId": 6341, "contract": "contracts/src/LToken.sol:LToken", "label": "totalQueued", "offset": 0, @@ -2167,7 +2216,7 @@ "type": "t_uint256" }, { - "astId": 6267, + "astId": 6344, "contract": "contracts/src/LToken.sol:LToken", "label": "usableUnderlyings", "offset": 0, @@ -2175,15 +2224,15 @@ "type": "t_uint256" }, { - "astId": 6272, + "astId": 6349, "contract": "contracts/src/LToken.sol:LToken", "label": "withdrawalQueue", "offset": 0, "slot": "767", - "type": "t_array(t_struct(WithdrawalRequest)6221_storage)dyn_storage" + "type": "t_array(t_struct(WithdrawalRequest)6298_storage)dyn_storage" }, { - "astId": 6275, + "astId": 6352, "contract": "contracts/src/LToken.sol:LToken", "label": "withdrawalQueueCursor", "offset": 0, @@ -2191,20 +2240,28 @@ "type": "t_uint256" }, { - "astId": 6280, + "astId": 6357, "contract": "contracts/src/LToken.sol:LToken", "label": "frozenRequests", "offset": 0, "slot": "769", - "type": "t_array(t_struct(WithdrawalRequest)6221_storage)dyn_storage" + "type": "t_array(t_struct(WithdrawalRequest)6298_storage)dyn_storage" }, { - "astId": 6285, + "astId": 6362, "contract": "contracts/src/LToken.sol:LToken", "label": "transfersListeners", "offset": 0, "slot": "770", - "type": "t_array(t_contract(ITransfersListener)10356)dyn_storage" + "type": "t_array(t_contract(ITransfersListener)10463)dyn_storage" + }, + { + "astId": 6365, + "contract": "contracts/src/LToken.sol:LToken", + "label": "withdrawalFeeInEth", + "offset": 0, + "slot": "771", + "type": "t_uint256" } ], "types": { @@ -2224,20 +2281,20 @@ "label": "address[]", "numberOfBytes": "32" }, - "t_array(t_contract(ITransfersListener)10356)dyn_storage": { - "base": "t_contract(ITransfersListener)10356", + "t_array(t_contract(ITransfersListener)10463)dyn_storage": { + "base": "t_contract(ITransfersListener)10463", "encoding": "dynamic_array", "label": "contract ITransfersListener[]", "numberOfBytes": "32" }, - "t_array(t_struct(Pack)10375_storage)dyn_storage": { - "base": "t_struct(Pack)10375_storage", + "t_array(t_struct(Pack)10482_storage)dyn_storage": { + "base": "t_struct(Pack)10482_storage", "encoding": "dynamic_array", "label": "struct APRHistory.Pack[]", "numberOfBytes": "32" }, - "t_array(t_struct(WithdrawalRequest)6221_storage)dyn_storage": { - "base": "t_struct(WithdrawalRequest)6221_storage", + "t_array(t_struct(WithdrawalRequest)6298_storage)dyn_storage": { + "base": "t_struct(WithdrawalRequest)6298_storage", "encoding": "dynamic_array", "label": "struct LToken.WithdrawalRequest[]", "numberOfBytes": "32" @@ -2297,12 +2354,12 @@ "label": "contract IERC20Upgradeable", "numberOfBytes": "20" }, - "t_contract(ITransfersListener)10356": { + "t_contract(ITransfersListener)10463": { "encoding": "inplace", "label": "contract ITransfersListener", "numberOfBytes": "20" }, - "t_contract(LDYStaking)6178": { + "t_contract(LDYStaking)6255": { "encoding": "inplace", "label": "contract LDYStaking", "numberOfBytes": "20" @@ -2328,12 +2385,12 @@ "numberOfBytes": "32", "value": "t_mapping(t_address,t_uint256)" }, - "t_mapping(t_address,t_struct(AccountDetails)9176_storage)": { + "t_mapping(t_address,t_struct(AccountDetails)9283_storage)": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => struct InvestUpgradeable.AccountDetails)", "numberOfBytes": "32", - "value": "t_struct(AccountDetails)9176_storage" + "value": "t_struct(AccountDetails)9283_storage" }, "t_mapping(t_address,t_uint256)": { "encoding": "mapping", @@ -2347,20 +2404,20 @@ "label": "string", "numberOfBytes": "32" }, - "t_struct(AccountDetails)9176_storage": { + "t_struct(AccountDetails)9283_storage": { "encoding": "inplace", "label": "struct InvestUpgradeable.AccountDetails", "members": [ { - "astId": 9173, + "astId": 9280, "contract": "contracts/src/LToken.sol:LToken", "label": "period", "offset": 0, "slot": "0", - "type": "t_struct(InvestmentPeriod)9170_storage" + "type": "t_struct(InvestmentPeriod)9277_storage" }, { - "astId": 9175, + "astId": 9282, "contract": "contracts/src/LToken.sol:LToken", "label": "virtualBalance", "offset": 0, @@ -2370,12 +2427,12 @@ ], "numberOfBytes": "128" }, - "t_struct(InvestmentPeriod)9170_storage": { + "t_struct(InvestmentPeriod)9277_storage": { "encoding": "inplace", "label": "struct InvestUpgradeable.InvestmentPeriod", "members": [ { - "astId": 9166, + "astId": 9273, "contract": "contracts/src/LToken.sol:LToken", "label": "timestamp", "offset": 0, @@ -2383,22 +2440,22 @@ "type": "t_uint40" }, { - "astId": 9169, + "astId": 9276, "contract": "contracts/src/LToken.sol:LToken", "label": "ref", "offset": 0, "slot": "1", - "type": "t_struct(Reference)10380_storage" + "type": "t_struct(Reference)10487_storage" } ], "numberOfBytes": "96" }, - "t_struct(Pack)10375_storage": { + "t_struct(Pack)10482_storage": { "encoding": "inplace", "label": "struct APRHistory.Pack", "members": [ { - "astId": 10368, + "astId": 10475, "contract": "contracts/src/LToken.sol:LToken", "label": "aprsUD7x3", "offset": 0, @@ -2406,7 +2463,7 @@ "type": "t_array(t_uint16)4_storage" }, { - "astId": 10372, + "astId": 10479, "contract": "contracts/src/LToken.sol:LToken", "label": "timestamps", "offset": 0, @@ -2414,7 +2471,7 @@ "type": "t_array(t_uint40)4_storage" }, { - "astId": 10374, + "astId": 10481, "contract": "contracts/src/LToken.sol:LToken", "label": "cursor", "offset": 0, @@ -2424,12 +2481,12 @@ ], "numberOfBytes": "96" }, - "t_struct(Reference)10380_storage": { + "t_struct(Reference)10487_storage": { "encoding": "inplace", "label": "struct APRHistory.Reference", "members": [ { - "astId": 10377, + "astId": 10484, "contract": "contracts/src/LToken.sol:LToken", "label": "packIndex", "offset": 0, @@ -2437,7 +2494,7 @@ "type": "t_uint256" }, { - "astId": 10379, + "astId": 10486, "contract": "contracts/src/LToken.sol:LToken", "label": "cursorIndex", "offset": 0, @@ -2447,12 +2504,12 @@ ], "numberOfBytes": "64" }, - "t_struct(WithdrawalRequest)6221_storage": { + "t_struct(WithdrawalRequest)6298_storage": { "encoding": "inplace", "label": "struct LToken.WithdrawalRequest", "members": [ { - "astId": 6218, + "astId": 6295, "contract": "contracts/src/LToken.sol:LToken", "label": "account", "offset": 0, @@ -2460,7 +2517,7 @@ "type": "t_address" }, { - "astId": 6220, + "astId": 6297, "contract": "contracts/src/LToken.sol:LToken", "label": "amount", "offset": 20, diff --git a/contracts/hardhat/deployments/baseSepolia/LUSDC_Proxy.json b/contracts/hardhat/deployments/baseSepolia/LUSDC_Proxy.json index a9a9c89e..1a895b1c 100644 --- a/contracts/hardhat/deployments/baseSepolia/LUSDC_Proxy.json +++ b/contracts/hardhat/deployments/baseSepolia/LUSDC_Proxy.json @@ -1,5 +1,5 @@ { - "address": "0x3E995f24C0417b4A010B2DC403093F3e27B85d33", + "address": "0x20Cb912b0E1B8018F2E308A7f6f2Da66754923E4", "abi": [ { "inputs": [ @@ -71,51 +71,51 @@ "type": "receive" } ], - "transactionHash": "0x54ac0032e007001b18ee1579167a51044857432a26d34c2bf632b77fd1448864", + "transactionHash": "0x4677d25568549deb7025e70ff8e1f26b60c9379a6e2583dbea4bc02e1af0f8d2", "receipt": { "to": null, - "from": "0x69b69DC81CAf0b2FF53b946421F51b0eC276E679", - "contractAddress": "0x3E995f24C0417b4A010B2DC403093F3e27B85d33", - "transactionIndex": 6, - "gasUsed": "659225", - "logsBloom": "0x00000000000000000000000000000000400000000200000000000000000000000000000000000000000000000000100000000000000400000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000020000000000000000000040000000020000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000", - "blockHash": "0x3ff923c38a15e82d9d99cae577d0829ca23223eb3fa5288af678b4b8fc3b9add", - "transactionHash": "0x54ac0032e007001b18ee1579167a51044857432a26d34c2bf632b77fd1448864", + "from": "0x0F97f63dA69A5b86Fe47517459D982198Cba22D2", + "contractAddress": "0x20Cb912b0E1B8018F2E308A7f6f2Da66754923E4", + "transactionIndex": 3, + "gasUsed": "681589", + "logsBloom": "0x00000000000000000000000000008000400000000000000000000000000000000000010000000000000000000000000000000000000000000000000000800000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000080000000000000000000000000000008000000000000000400000000000000000000000000000000000000200020000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x46d406579f0370174b7cdf4a587bb39c37b83f8dd1e113db94b769d725530f31", + "transactionHash": "0x4677d25568549deb7025e70ff8e1f26b60c9379a6e2583dbea4bc02e1af0f8d2", "logs": [ { - "transactionIndex": 6, - "blockNumber": 9269461, - "transactionHash": "0x54ac0032e007001b18ee1579167a51044857432a26d34c2bf632b77fd1448864", - "address": "0x3E995f24C0417b4A010B2DC403093F3e27B85d33", + "transactionIndex": 3, + "blockNumber": 12320805, + "transactionHash": "0x4677d25568549deb7025e70ff8e1f26b60c9379a6e2583dbea4bc02e1af0f8d2", + "address": "0x20Cb912b0E1B8018F2E308A7f6f2Da66754923E4", "topics": [ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", - "0x0000000000000000000000002c0f4c6127693c688ff4b8794fdb22ffb235cd87" + "0x000000000000000000000000346245ed74cd6319f169228b980d91f17d98cd99" ], "data": "0x", - "logIndex": 11, - "blockHash": "0x3ff923c38a15e82d9d99cae577d0829ca23223eb3fa5288af678b4b8fc3b9add" + "logIndex": 0, + "blockHash": "0x46d406579f0370174b7cdf4a587bb39c37b83f8dd1e113db94b769d725530f31" }, { - "transactionIndex": 6, - "blockNumber": 9269461, - "transactionHash": "0x54ac0032e007001b18ee1579167a51044857432a26d34c2bf632b77fd1448864", - "address": "0x3E995f24C0417b4A010B2DC403093F3e27B85d33", + "transactionIndex": 3, + "blockNumber": 12320805, + "transactionHash": "0x4677d25568549deb7025e70ff8e1f26b60c9379a6e2583dbea4bc02e1af0f8d2", + "address": "0x20Cb912b0E1B8018F2E308A7f6f2Da66754923E4", "topics": [ "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" ], "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": 12, - "blockHash": "0x3ff923c38a15e82d9d99cae577d0829ca23223eb3fa5288af678b4b8fc3b9add" + "logIndex": 1, + "blockHash": "0x46d406579f0370174b7cdf4a587bb39c37b83f8dd1e113db94b769d725530f31" } ], - "blockNumber": 9269461, - "cumulativeGasUsed": "1515560", + "blockNumber": 12320805, + "cumulativeGasUsed": "2635164", "status": 1, "byzantium": true }, "args": [ - "0x2c0F4C6127693C688ff4b8794fdB22FfB235cd87", - "0x1459457a00000000000000000000000001413e00b19dde5a37a4ef46eaba394535fdb1b20000000000000000000000009992cc9176f2b86c56fda697d814c1a054c2035e000000000000000000000000546b48297ce50fa31a383afe7df48297337c12b50000000000000000000000005f1e968d9103dddc896ff44b4aac9972a422b4c1000000000000000000000000036cbd53842c5426634e7929541ec2318f3dcf7e" + "0x346245eD74Cd6319f169228b980D91f17d98Cd99", + "0x1459457a000000000000000000000000d42b1065ac03f3965b11ef19ee98b0165a2c4e53000000000000000000000000061b0b71b87bd4ff6086011a17589ea08daa49a500000000000000000000000098002b5c06b44c8769da3dae97ca498ab6f97137000000000000000000000000b5c69197e5d6a52c776384479b529d2d76f9e2de000000000000000000000000036cbd53842c5426634e7929541ec2318f3dcf7e" ], "numDeployments": 1, "solcInputHash": "0e89febeebc7444140de8e67c9067d2c", diff --git a/contracts/hardhat/deployments/baseSepolia/solcInputs/15c81200c85905d33a34abc672a45266.json b/contracts/hardhat/deployments/baseSepolia/solcInputs/15c81200c85905d33a34abc672a45266.json deleted file mode 100644 index 56db149d..00000000 --- a/contracts/hardhat/deployments/baseSepolia/solcInputs/15c81200c85905d33a34abc672a45266.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "language": "Solidity", - "sources": { - "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./OwnableUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\n function __Ownable2Step_init() internal onlyInitializing {\n __Ownable_init_unchained();\n }\n\n function __Ownable2Step_init_unchained() internal onlyInitializing {\n }\n address private _pendingOwner;\n\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Returns the address of the pending owner.\n */\n function pendingOwner() public view virtual returns (address) {\n return _pendingOwner;\n }\n\n /**\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual override onlyOwner {\n _pendingOwner = newOwner;\n emit OwnershipTransferStarted(owner(), newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual override {\n delete _pendingOwner;\n super._transferOwnership(newOwner);\n }\n\n /**\n * @dev The new owner accepts the ownership transfer.\n */\n function acceptOwnership() public virtual {\n address sender = _msgSender();\n require(pendingOwner() == sender, \"Ownable2Step: caller is not the new owner\");\n _transferOwnership(sender);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n function __Ownable_init() internal onlyInitializing {\n __Ownable_init_unchained();\n }\n\n function __Ownable_init_unchained() internal onlyInitializing {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822ProxiableUpgradeable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n *\n * _Available since v4.8.3._\n */\ninterface IERC1967Upgradeable {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\n */\ninterface IBeaconUpgradeable {\n /**\n * @dev Must return an address that can be used as a delegate call target.\n *\n * {BeaconProxy} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../beacon/IBeaconUpgradeable.sol\";\nimport \"../../interfaces/IERC1967Upgradeable.sol\";\nimport \"../../interfaces/draft-IERC1822Upgradeable.sol\";\nimport \"../../utils/AddressUpgradeable.sol\";\nimport \"../../utils/StorageSlotUpgradeable.sol\";\nimport \"../utils/Initializable.sol\";\n\n/**\n * @dev This abstract contract provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\n *\n * _Available since v4.1._\n */\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\n function __ERC1967Upgrade_init() internal onlyInitializing {\n }\n\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\n }\n // This is the keccak-256 hash of \"eip1967.proxy.rollback\" subtracted by 1\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\n\n /**\n * @dev Storage slot with the address of the current implementation.\n * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is\n * validated in the constructor.\n */\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev Returns the current implementation address.\n */\n function _getImplementation() internal view returns (address) {\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n }\n\n /**\n * @dev Stores a new address in the EIP1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n require(AddressUpgradeable.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Perform implementation upgrade\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeTo(address newImplementation) internal {\n _setImplementation(newImplementation);\n emit Upgraded(newImplementation);\n }\n\n /**\n * @dev Perform implementation upgrade with additional setup call.\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\n _upgradeTo(newImplementation);\n if (data.length > 0 || forceCall) {\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\n }\n }\n\n /**\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\n // Upgrades from old implementations will perform a rollback test. This test requires the new\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\n // this special case will break upgrade paths from old UUPS implementation to new ones.\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\n _setImplementation(newImplementation);\n } else {\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n require(slot == _IMPLEMENTATION_SLOT, \"ERC1967Upgrade: unsupported proxiableUUID\");\n } catch {\n revert(\"ERC1967Upgrade: new implementation is not UUPS\");\n }\n _upgradeToAndCall(newImplementation, data, forceCall);\n }\n }\n\n /**\n * @dev Storage slot with the admin of the contract.\n * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1, and is\n * validated in the constructor.\n */\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n */\n function _getAdmin() internal view returns (address) {\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\n }\n\n /**\n * @dev Stores a new address in the EIP1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n require(newAdmin != address(0), \"ERC1967: new admin is the zero address\");\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {AdminChanged} event.\n */\n function _changeAdmin(address newAdmin) internal {\n emit AdminChanged(_getAdmin(), newAdmin);\n _setAdmin(newAdmin);\n }\n\n /**\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\n */\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\n\n /**\n * @dev Returns the current beacon.\n */\n function _getBeacon() internal view returns (address) {\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\n }\n\n /**\n * @dev Stores a new beacon in the EIP1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n require(AddressUpgradeable.isContract(newBeacon), \"ERC1967: new beacon is not a contract\");\n require(\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\n \"ERC1967: beacon implementation is not a contract\"\n );\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\n }\n\n /**\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\n *\n * Emits a {BeaconUpgraded} event.\n */\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\n _setBeacon(newBeacon);\n emit BeaconUpgraded(newBeacon);\n if (data.length > 0 || forceCall) {\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\n }\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized != type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n" - }, - "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../interfaces/draft-IERC1822Upgradeable.sol\";\nimport \"../ERC1967/ERC1967UpgradeUpgradeable.sol\";\nimport \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n *\n * _Available since v4.1._\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\n address private immutable __self = address(this);\n\n /**\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n require(address(this) != __self, \"Function must be called through delegatecall\");\n require(_getImplementation() == __self, \"Function must be called through active proxy\");\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n require(address(this) == __self, \"UUPSUpgradeable: must not be called through delegatecall\");\n _;\n }\n\n /**\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\n return _IMPLEMENTATION_SLOT;\n }\n\n /**\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\n *\n * Calls {_authorizeUpgrade}.\n *\n * Emits an {Upgraded} event.\n *\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeTo(address newImplementation) public virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\n }\n\n /**\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\n * encoded in `data`.\n *\n * Calls {_authorizeUpgrade}.\n *\n * Emits an {Upgraded} event.\n *\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data, true);\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {upgradeTo} and {upgradeToAndCall}.\n *\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\n *\n * ```solidity\n * function _authorizeUpgrade(address) internal override onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n function __Pausable_init() internal onlyInitializing {\n __Pausable_init_unchained();\n }\n\n function __Pausable_init_unchained() internal onlyInitializing {\n _paused = false;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view virtual {\n require(!paused(), \"Pausable: paused\");\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view virtual {\n require(paused(), \"Pausable: not paused\");\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n function __ReentrancyGuard_init() internal onlyInitializing {\n __ReentrancyGuard_init_unchained();\n }\n\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n _nonReentrantBefore();\n _;\n _nonReentrantAfter();\n }\n\n function _nonReentrantBefore() private {\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n }\n\n function _nonReentrantAfter() private {\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n * `nonReentrant` function in the call stack.\n */\n function _reentrancyGuardEntered() internal view returns (bool) {\n return _status == _ENTERED;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20Upgradeable.sol\";\nimport \"./extensions/IERC20MetadataUpgradeable.sol\";\nimport \"../../utils/ContextUpgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n /**\n * @dev Sets the values for {name} and {symbol}.\n *\n * All two of these values are immutable: they can only be set once during\n * construction.\n */\n function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {\n __ERC20_init_unchained(name_, symbol_);\n }\n\n function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\n _name = name_;\n _symbol = symbol_;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev Returns the symbol of the token, usually a shorter version of the\n * name.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev Returns the number of decimals used to get its user representation.\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n *\n * Tokens usually opt for a value of 18, imitating the relationship between\n * Ether and Wei. This is the default value returned by this function, unless\n * it's overridden.\n *\n * NOTE: This information is only used for _display_ purposes: it in\n * no way affects any of the arithmetic of the contract, including\n * {IERC20-balanceOf} and {IERC20-transfer}.\n */\n function decimals() public view virtual override returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-allowance}.\n */\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n * `transferFrom`. This is semantically equivalent to an infinite approval.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Emits an {Approval} event indicating the updated allowance. This is not\n * required by the EIP. See the note at the beginning of {ERC20}.\n *\n * NOTE: Does not update the allowance if the current allowance\n * is the maximum `uint256`.\n *\n * Requirements:\n *\n * - `from` and `to` cannot be the zero address.\n * - `from` must have a balance of at least `amount`.\n * - the caller must have allowance for ``from``'s tokens of at least\n * `amount`.\n */\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n /**\n * @dev Atomically increases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n /**\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `spender` must have allowance for the caller of at least\n * `subtractedValue`.\n */\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = allowance(owner, spender);\n require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n /**\n * @dev Moves `amount` of tokens from `from` to `to`.\n *\n * This internal function is equivalent to {transfer}, and can be used to\n * e.g. implement automatic token fees, slashing mechanisms, etc.\n *\n * Emits a {Transfer} event.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `from` must have a balance of at least `amount`.\n */\n function _transfer(address from, address to, uint256 amount) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n unchecked {\n _balances[from] = fromBalance - amount;\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n // decrementing then incrementing.\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * Emits a {Transfer} event with `from` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _beforeTokenTransfer(address(0), account, amount);\n\n _totalSupply += amount;\n unchecked {\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n _balances[account] += amount;\n }\n emit Transfer(address(0), account, amount);\n\n _afterTokenTransfer(address(0), account, amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the\n * total supply.\n *\n * Emits a {Transfer} event with `to` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n */\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n unchecked {\n _balances[account] = accountBalance - amount;\n // Overflow not possible: amount <= accountBalance <= totalSupply.\n _totalSupply -= amount;\n }\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n *\n * This internal function is equivalent to `approve`, and can be used to\n * e.g. set automatic allowances for certain subsystems, etc.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `owner` cannot be the zero address.\n * - `spender` cannot be the zero address.\n */\n function _approve(address owner, address spender, uint256 amount) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n /**\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n *\n * Does not update the allowance amount in case of infinite allowance.\n * Revert if not enough allowance is available.\n *\n * Might emit an {Approval} event.\n */\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n /**\n * @dev Hook that is called before any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * will be transferred to `to`.\n * - when `from` is zero, `amount` tokens will be minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n /**\n * @dev Hook that is called after any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * has been transferred to `to`.\n * - when `from` is zero, `amount` tokens have been minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[45] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20Upgradeable.sol\";\nimport \"../../../security/PausableUpgradeable.sol\";\nimport \"../../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev ERC20 token with pausable token transfers, minting and burning.\n *\n * Useful for scenarios such as preventing trades until the end of an evaluation\n * period, or having an emergency switch for freezing all token transfers in the\n * event of a large bug.\n *\n * IMPORTANT: This contract does not include public pause and unpause functions. In\n * addition to inheriting this contract, you must define both functions, invoking the\n * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate\n * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will\n * make the contract unpausable.\n */\nabstract contract ERC20PausableUpgradeable is Initializable, ERC20Upgradeable, PausableUpgradeable {\n function __ERC20Pausable_init() internal onlyInitializing {\n __Pausable_init_unchained();\n }\n\n function __ERC20Pausable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n require(!paused(), \"ERC20Pausable: token transfer while paused\");\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Wrapper.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20Upgradeable.sol\";\nimport \"../utils/SafeERC20Upgradeable.sol\";\nimport \"../../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Extension of the ERC20 token contract to support token wrapping.\n *\n * Users can deposit and withdraw \"underlying tokens\" and receive a matching number of \"wrapped tokens\". This is useful\n * in conjunction with other modules. For example, combining this wrapping mechanism with {ERC20Votes} will allow the\n * wrapping of an existing \"basic\" ERC20 into a governance token.\n *\n * _Available since v4.2._\n *\n * @custom:storage-size 51\n */\nabstract contract ERC20WrapperUpgradeable is Initializable, ERC20Upgradeable {\n IERC20Upgradeable private _underlying;\n\n function __ERC20Wrapper_init(IERC20Upgradeable underlyingToken) internal onlyInitializing {\n __ERC20Wrapper_init_unchained(underlyingToken);\n }\n\n function __ERC20Wrapper_init_unchained(IERC20Upgradeable underlyingToken) internal onlyInitializing {\n require(underlyingToken != this, \"ERC20Wrapper: cannot self wrap\");\n _underlying = underlyingToken;\n }\n\n /**\n * @dev See {ERC20-decimals}.\n */\n function decimals() public view virtual override returns (uint8) {\n try IERC20MetadataUpgradeable(address(_underlying)).decimals() returns (uint8 value) {\n return value;\n } catch {\n return super.decimals();\n }\n }\n\n /**\n * @dev Returns the address of the underlying ERC-20 token that is being wrapped.\n */\n function underlying() public view returns (IERC20Upgradeable) {\n return _underlying;\n }\n\n /**\n * @dev Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens.\n */\n function depositFor(address account, uint256 amount) public virtual returns (bool) {\n address sender = _msgSender();\n require(sender != address(this), \"ERC20Wrapper: wrapper can't deposit\");\n SafeERC20Upgradeable.safeTransferFrom(_underlying, sender, address(this), amount);\n _mint(account, amount);\n return true;\n }\n\n /**\n * @dev Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens.\n */\n function withdrawTo(address account, uint256 amount) public virtual returns (bool) {\n _burn(_msgSender(), amount);\n SafeERC20Upgradeable.safeTransfer(_underlying, account, amount);\n return true;\n }\n\n /**\n * @dev Mint wrapped token to cover any underlyingTokens that would have been transferred by mistake. Internal\n * function that can be exposed with access control if desired.\n */\n function _recover(address account) internal virtual returns (uint256) {\n uint256 value = _underlying.balanceOf(address(this)) - totalSupply();\n _mint(account, value);\n return value;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20Upgradeable.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\n /**\n * @dev Returns the name of the token.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the symbol of the token.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the decimals places of the token.\n */\n function decimals() external view returns (uint8);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20PermitUpgradeable {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20Upgradeable {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20Upgradeable.sol\";\nimport \"../extensions/IERC20PermitUpgradeable.sol\";\nimport \"../../../utils/AddressUpgradeable.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20Upgradeable {\n using AddressUpgradeable for address;\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to\n * 0 before setting it to a non-zero value.\n */\n function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n * Revert on invalid signature.\n */\n function safePermit(\n IERC20PermitUpgradeable token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n *\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n // and not revert is the subcall reverts.\n\n (bool success, bytes memory returndata) = address(token).call(data);\n return\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));\n }\n}\n" - }, - "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n *\n * Furthermore, `isContract` will also return true if the target contract within\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n * which only has an effect at the end of a transaction.\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" - }, - "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n * function _getImplementation() internal view returns (address) {\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n * }\n *\n * function _setImplementation(address newImplementation) internal {\n * require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\n * _Available since v4.9 for `string`, `bytes`._\n */\nlibrary StorageSlotUpgradeable {\n struct AddressSlot {\n address value;\n }\n\n struct BooleanSlot {\n bool value;\n }\n\n struct Bytes32Slot {\n bytes32 value;\n }\n\n struct Uint256Slot {\n uint256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes value;\n }\n\n /**\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n */\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := store.slot\n }\n }\n}\n" - }, - "@openzeppelin/contracts/access/Ownable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n" - }, - "@openzeppelin/contracts/access/Ownable2Step.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./Ownable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2Step is Ownable {\n address private _pendingOwner;\n\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Returns the address of the pending owner.\n */\n function pendingOwner() public view virtual returns (address) {\n return _pendingOwner;\n }\n\n /**\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual override onlyOwner {\n _pendingOwner = newOwner;\n emit OwnershipTransferStarted(owner(), newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual override {\n delete _pendingOwner;\n super._transferOwnership(newOwner);\n }\n\n /**\n * @dev The new owner accepts the ownership transfer.\n */\n function acceptOwnership() public virtual {\n address sender = _msgSender();\n require(pendingOwner() == sender, \"Ownable2Step: caller is not the new owner\");\n _transferOwnership(sender);\n }\n}\n" - }, - "@openzeppelin/contracts/security/Pausable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract Pausable is Context {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n constructor() {\n _paused = false;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view virtual {\n require(!paused(), \"Pausable: paused\");\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view virtual {\n require(paused(), \"Pausable: not paused\");\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/ERC20.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20.sol\";\nimport \"./extensions/IERC20Metadata.sol\";\nimport \"../../utils/Context.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n /**\n * @dev Sets the values for {name} and {symbol}.\n *\n * All two of these values are immutable: they can only be set once during\n * construction.\n */\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev Returns the symbol of the token, usually a shorter version of the\n * name.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev Returns the number of decimals used to get its user representation.\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n *\n * Tokens usually opt for a value of 18, imitating the relationship between\n * Ether and Wei. This is the default value returned by this function, unless\n * it's overridden.\n *\n * NOTE: This information is only used for _display_ purposes: it in\n * no way affects any of the arithmetic of the contract, including\n * {IERC20-balanceOf} and {IERC20-transfer}.\n */\n function decimals() public view virtual override returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-allowance}.\n */\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n * `transferFrom`. This is semantically equivalent to an infinite approval.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Emits an {Approval} event indicating the updated allowance. This is not\n * required by the EIP. See the note at the beginning of {ERC20}.\n *\n * NOTE: Does not update the allowance if the current allowance\n * is the maximum `uint256`.\n *\n * Requirements:\n *\n * - `from` and `to` cannot be the zero address.\n * - `from` must have a balance of at least `amount`.\n * - the caller must have allowance for ``from``'s tokens of at least\n * `amount`.\n */\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n /**\n * @dev Atomically increases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n /**\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `spender` must have allowance for the caller of at least\n * `subtractedValue`.\n */\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = allowance(owner, spender);\n require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n /**\n * @dev Moves `amount` of tokens from `from` to `to`.\n *\n * This internal function is equivalent to {transfer}, and can be used to\n * e.g. implement automatic token fees, slashing mechanisms, etc.\n *\n * Emits a {Transfer} event.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `from` must have a balance of at least `amount`.\n */\n function _transfer(address from, address to, uint256 amount) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n unchecked {\n _balances[from] = fromBalance - amount;\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n // decrementing then incrementing.\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * Emits a {Transfer} event with `from` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _beforeTokenTransfer(address(0), account, amount);\n\n _totalSupply += amount;\n unchecked {\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n _balances[account] += amount;\n }\n emit Transfer(address(0), account, amount);\n\n _afterTokenTransfer(address(0), account, amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the\n * total supply.\n *\n * Emits a {Transfer} event with `to` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n */\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n unchecked {\n _balances[account] = accountBalance - amount;\n // Overflow not possible: amount <= accountBalance <= totalSupply.\n _totalSupply -= amount;\n }\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n *\n * This internal function is equivalent to `approve`, and can be used to\n * e.g. set automatic allowances for certain subsystems, etc.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `owner` cannot be the zero address.\n * - `spender` cannot be the zero address.\n */\n function _approve(address owner, address spender, uint256 amount) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n /**\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n *\n * Does not update the allowance amount in case of infinite allowance.\n * Revert if not enough allowance is available.\n *\n * Might emit an {Approval} event.\n */\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n /**\n * @dev Hook that is called before any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * will be transferred to `to`.\n * - when `from` is zero, `amount` tokens will be minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n /**\n * @dev Hook that is called after any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * has been transferred to `to`.\n * - when `from` is zero, `amount` tokens have been minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20.sol\";\nimport \"../../../utils/Context.sol\";\n\n/**\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\n * tokens and those that they have an allowance for, in a way that can be\n * recognized off-chain (via event analysis).\n */\nabstract contract ERC20Burnable is Context, ERC20 {\n /**\n * @dev Destroys `amount` tokens from the caller.\n *\n * See {ERC20-_burn}.\n */\n function burn(uint256 amount) public virtual {\n _burn(_msgSender(), amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\n * allowance.\n *\n * See {ERC20-_burn} and {ERC20-allowance}.\n *\n * Requirements:\n *\n * - the caller must have allowance for ``accounts``'s tokens of at least\n * `amount`.\n */\n function burnFrom(address account, uint256 amount) public virtual {\n _spendAllowance(account, _msgSender(), amount);\n _burn(account, amount);\n }\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n /**\n * @dev Returns the name of the token.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the symbol of the token.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the decimals places of the token.\n */\n function decimals() external view returns (uint8);\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/IERC20.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using Address for address;\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to\n * 0 before setting it to a non-zero value.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n * Revert on invalid signature.\n */\n function safePermit(\n IERC20Permit token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n *\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n // and not revert is the subcall reverts.\n\n (bool success, bytes memory returndata) = address(token).call(data);\n return\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\n }\n}\n" - }, - "@openzeppelin/contracts/utils/Address.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n *\n * Furthermore, `isContract` will also return true if the target contract within\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n * which only has an effect at the end of a transaction.\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" - }, - "@openzeppelin/contracts/utils/Context.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" - }, - "contracts/src/abstracts/base/BaseUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {GlobalPausableUpgradeable} from \"../GlobalPausableUpgradeable.sol\";\nimport {GlobalOwnableUpgradeable} from \"../GlobalOwnableUpgradeable.sol\";\nimport {GlobalRestrictableUpgradeable} from \"../GlobalRestrictableUpgradeable.sol\";\nimport {RecoverableUpgradeable} from \"../RecoverableUpgradeable.sol\";\n\n/**\n * @title BaseUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice This abstract contract acts as a base for numerous contracts in this codebase,\n * minimizing code repetition and enhancing readability and maintainability.\n *\n * @dev For further details, see \"Base\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract BaseUpgradeable is\n Initializable,\n UUPSUpgradeable,\n GlobalOwnableUpgradeable,\n GlobalPausableUpgradeable,\n GlobalRestrictableUpgradeable,\n RecoverableUpgradeable\n{\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n */\n function __Base_init(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_\n ) internal onlyInitializing {\n __UUPSUpgradeable_init();\n __GlobalOwnable_init(globalOwner_);\n __Pausable_init();\n __GlobalPausable_init_unchained(globalPause_);\n __GlobalRestrictable_init_unchained(globalBlacklist_);\n __Recoverable_init_unchained();\n }\n\n function __Base_init_unchained() internal onlyInitializing {}\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/base/ERC20BaseUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {ERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\";\nimport {ERC20PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol\";\nimport {PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport \"./BaseUpgradeable.sol\";\nimport {GlobalPausableUpgradeable} from \"../GlobalPausableUpgradeable.sol\";\n\n/**\n * @title ERC20BaseUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice This abstract contract is an extension of BaseUpgradeable intended to be used\n * as a base for ERC20 tokens contracts.\n *\n * @dev For further details, see \"ERC20BaseUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract ERC20BaseUpgradeable is\n ERC20Upgradeable,\n BaseUpgradeable,\n ERC20PausableUpgradeable\n{\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param name_ The display name of the token.\n * @param symbol_ The symbol of the token.\n */\n function __ERC20Base_init(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n string memory name_,\n string memory symbol_\n ) internal onlyInitializing {\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\n __ERC20_init(name_, symbol_);\n __ERC20Pausable_init_unchained();\n }\n\n function __ERC20Base_init_unchained() internal onlyInitializing {}\n\n /**\n * @notice Required override of paused() which is implemented by both\n * GlobalPausableUpgradeable and PausableUpgradeable parent contracts.\n * The GlobalPausableUpgradeable version is preferred because it checks the pause\n * state from the GlobalPause contract.\n * @inheritdoc GlobalPausableUpgradeable\n */\n function paused()\n public\n view\n virtual\n override(GlobalPausableUpgradeable, PausableUpgradeable)\n returns (bool)\n {\n return GlobalPausableUpgradeable.paused();\n }\n\n /**\n * @dev Required override of _beforeTokenTransfer() which is implemented by both\n * ERC20PausableUpgradeable and ERC20Upgradeable parent contracts.\n * The ERC20PausableUpgradeable version is preferred because it also checks that\n * the contract is not paused before allowing the transfer.\n * @inheritdoc ERC20PausableUpgradeable\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n )\n internal\n virtual\n override(ERC20PausableUpgradeable, ERC20Upgradeable)\n whenNotPaused\n notBlacklisted(from)\n notBlacklisted(to)\n {\n ERC20PausableUpgradeable._beforeTokenTransfer(from, to, amount);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/GlobalOwnableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {GlobalOwner} from \"../GlobalOwner.sol\";\n\n/**\n * @title GlobalOwnableUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\n * contract (see GlobalOwner.sol). This design facilitates centralized management\n * of ownership for all the Ledgity Yield contracts.\n *\n * @dev Security measure:\n * The _globalOwner state must be set at initialization time and, for evident security\n * reasons, cannot be changed afterward.\n *\n * @dev For further details, see \"GlobalOwnableUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\n /**\n * @notice The GlobalOwner contract the ownership will be inherited from.\n * @dev This state is private so derived contracts cannot change its value.\n */\n GlobalOwner private _globalOwner;\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n */\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\n __GlobalOwnable_init_unchained(globalOwner_);\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\n // the initial _owner value, calling it would have no effect.\n }\n\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\n _globalOwner = GlobalOwner(globalOwner_);\n }\n\n /**\n * @notice Retrieves the address of GlobalOwner contract.\n * @return The address of the GlobalOwner contract.\n */\n function globalOwner() public view returns (address) {\n return address(_globalOwner);\n }\n\n /**\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\n * from the GlobalOwner contract instead.\n * @return The address of the owner\n */\n function owner() public view override returns (address) {\n return _globalOwner.owner();\n }\n\n /**\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\n * Ownership is managed by the GlobalOwner contract and must be modified there.\n */\n function transferOwnership(address newOwner) public view override onlyOwner {\n newOwner; // Silence unused variable compiler warning\n revert(\"L8\");\n }\n\n /**\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\n * Ownership is managed by the GlobalOwner contract and must be modified there.\n */\n function renounceOwnership() public view override onlyOwner {\n revert(\"L65\");\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/GlobalPausableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport {GlobalPause} from \"../GlobalPause.sol\";\n\n/**\n * @title GlobalPausableUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts will inherit a pause state from the specified GlobalPause\n * contract (see GlobalPause.sol). This design facilitates centralized management of\n * pause state for all the Ledgity Yield contracts.\n *\n * @dev Security measure\n * The _globalPause state must be set at initialization time and, for evident security\n * reasons, cannot be changed afterward.\n *\n * @dev For further details, see \"GlobalPausableUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract GlobalPausableUpgradeable is Initializable, PausableUpgradeable {\n /**\n * @notice The GlobalPause contract the pause state will be inherited from.\n * @dev This state is private so derived contracts cannot change its value.\n */\n GlobalPause private _globalPause;\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalPause_ The address of the GlobalPause contract.\n */\n function __GlobalPausable_init(address globalPause_) internal onlyInitializing {\n __Pausable_init();\n __GlobalPausable_init_unchained(globalPause_);\n }\n\n function __GlobalPausable_init_unchained(address globalPause_) internal onlyInitializing {\n _globalPause = GlobalPause(globalPause_);\n }\n\n /**\n * @notice Retrieves the address of GlobalPause contract.\n * @return The address of the GlobalPause contract.\n */\n function globalPause() public view returns (address) {\n return address(_globalPause);\n }\n\n /**\n * @notice Override of PausableUpgradeable.pause() that retrieves the pause state\n * from the GlobalPause contract instead.\n * @return Whether the contract is paused or not.\n */\n function paused() public view virtual override returns (bool) {\n return _globalPause.paused();\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/GlobalRestrictableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {GlobalBlacklist} from \"../GlobalBlacklist.sol\";\n\n/**\n * @title GlobalRestrictableUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts will inherit a blacklist state from the specified\n * GlobalBlacklist contract (see GlobalBlacklist.sol). This design facilitates\n * centralized management of a blacklist for all the Ledgity Yield contracts.\n *\n * @dev Security measure:\n * The _globalBlacklist state must be set at initialization time and, for evident\n * security reasons, cannot be changed afterward.\n *\n * @dev For further details, see \"GlobalRestrictableUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract GlobalRestrictableUpgradeable is Initializable {\n /**\n * @notice The GlobalBlacklist contract the blacklist state will be inherited from.\n * @dev This state is private so derived contracts cannot change its value.\n */\n GlobalBlacklist private _globalBlacklist;\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n */\n function __GlobalRestrictable_init(address globalBlacklist_) internal onlyInitializing {\n __GlobalRestrictable_init_unchained(globalBlacklist_);\n }\n\n function __GlobalRestrictable_init_unchained(\n address globalBlacklist_\n ) internal onlyInitializing {\n _globalBlacklist = GlobalBlacklist(globalBlacklist_);\n }\n\n /**\n * @notice Retrieves the address of GlobalBlacklist contract.\n * @return The address of the GlobalBlacklist contract.\n */\n function globalBlacklist() public view returns (address) {\n return address(_globalBlacklist);\n }\n\n /**\n * @notice Reverts if the given account is blacklisted by the GlobalBlacklist contract.\n * @param account Address to verify.\n */\n modifier notBlacklisted(address account) {\n require(isBlacklisted(account) == false, \"L9\");\n _;\n }\n\n /**\n * @notice Checks if the given account is blacklisted by the GlobalBlacklist contract.\n * @param account Address to verify.\n * @return Whether the account is blacklisted.\n */\n function isBlacklisted(address account) internal view returns (bool) {\n return _globalBlacklist.isBlacklisted(account);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/InvestUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./GlobalOwnableUpgradeable.sol\";\nimport {GlobalPausableUpgradeable} from \"./GlobalPausableUpgradeable.sol\";\nimport {GlobalRestrictableUpgradeable} from \"./GlobalRestrictableUpgradeable.sol\";\nimport \"./base/BaseUpgradeable.sol\";\nimport {RecoverableUpgradeable} from \"../abstracts/RecoverableUpgradeable.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\nimport {APRHistory as APRH} from \"../libs/APRHistory.sol\";\nimport {SUD} from \"../libs/SUD.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\n\n/**\n * @title InvestUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts are provided with utilities to manage an invested token,\n * users' investment periods, rewards calculations, virtual balances, and auto-compounding.\n *\n * @dev Intuition:\n * This contract primarily exists for code splitting and reusability. It unburdens the\n * LToken contract code, making it easier to understand and maintain.\n *\n * This contract is generic because it may be used in the LDYStaking contract in the future.\n *\n * @dev Definitions:\n * - Investment: The act of depositing or investing tokens into the contract.\n * - Investment period: Time between the last invested amount change and the present.\n * - Virtual balance: Temporary storage for account rewards, used when those can't be\n * distributed between investment periods.\n * - Rewards redirection: Mechanism allowing an account to redirect its rewards to another.\n *\n * @dev Derived contract must:\n * - Set invested token during initialization\n * - Implement _investmentOf() function\n * - (optionally) Implement _distributeRewards() function\n *\n * @dev For further details, see \"InvestmentUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract InvestUpgradeable is BaseUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n using APRH for APRH.Pack[];\n\n /**\n * @notice Represents an account's investment period.\n * @param timestamp The timestamp of the most recent rewards distribution.\n * @param ref The reference of the last APR checkpoint at that timestamp.\n */\n struct InvestmentPeriod {\n uint40 timestamp; // Supports dates up to 20/02/36812\n APRH.Reference ref;\n }\n\n /**\n * @notice Represents the investment details of an account.\n * @param period The current investment period of the account.\n * @param virtualBalance May hold a part of account rewards until they are claimed.\n */\n struct AccountDetails {\n InvestmentPeriod period;\n uint256 virtualBalance;\n }\n\n /// @notice Holds a reference to the invested token's contract.\n IERC20Upgradeable private _invested;\n\n /// @notice Holds investment details of each account.\n mapping(address => AccountDetails) internal accountsDetails;\n\n /// @notice Holds an history of the APR value over time (see APRHistory.sol).\n APRH.Pack[] private _aprHistory;\n\n /// @notice Holds active rewards redirections in both from->to and to->from[] ways.\n mapping(address => address) public rewardsRedirectsFromTo;\n mapping(address => address[]) public rewardsRedirectsToFrom;\n\n /// @notice Is used to prevent infinite loop in _beforeInvestmentChange().\n bool private _isClaiming;\n\n /**\n * @notice Emitted to inform listeners about a change in the APR's value.\n * @param newAPRUD7x3 The new APR in UD7x3 format.\n */\n event APRChangeEvent(uint16 newAPRUD7x3);\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param invested_ The address of the invested token contract.\n */\n function __Invest_init(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address invested_\n ) internal onlyInitializing {\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\n __Invest_init_unchained(invested_);\n }\n\n function __Invest_init_unchained(address invested_) internal onlyInitializing {\n // Set invested token\n _invested = IERC20Upgradeable(invested_);\n\n // Define initial APR to 0%. This would prevent getAPR() from reverting because\n // of an empty APR history\n _aprHistory.setAPR(0);\n }\n\n /**\n * @notice Retrieves the reference to the invested token contract.\n * @return The reference to the invested token contract.\n */\n function invested() public view returns (IERC20Upgradeable) {\n return _invested;\n }\n\n /**\n * @notice Updates the investment APR. Restricted to owner.\n * @param aprUD7x3 The new APR in UD7x3 format.\n */\n function setAPR(uint16 aprUD7x3) public onlyOwner {\n _aprHistory.setAPR(aprUD7x3);\n emit APRChangeEvent(aprUD7x3);\n }\n\n /**\n * @notice Retrieves the most recently set APR.\n * @return The current APR in UD7x3 format.\n */\n function getAPR() public view returns (uint16) {\n return _aprHistory.getAPR();\n }\n\n /**\n * @notice Enables redirection of rewards from one account to another.\n * @param from The address of the account to redirect rewards from.\n * @param to The address of the account to redirect rewards to.\n */\n function startRewardsRedirection(\n address from,\n address to\n ) public whenNotPaused notBlacklisted(from) notBlacklisted(to) {\n // Ensure the address is not already redirecting rewards\n require(rewardsRedirectsFromTo[from] == address(0), \"L62\");\n\n // Ensure neither 'from' nor 'to' are the zero address\n require(from != address(0), \"L12\");\n require(to != address(0), \"L13\");\n\n // Ensure 'from' and 'to' addresses are distinct\n require(from != to, \"L14\");\n\n // Ensure function caller is either the owner or the 'from' address\n require(_msgSender() == owner() || _msgSender() == from, \"L15\");\n\n // Distribute current rewards and reset investment periods of both accounts\n _beforeInvestmentChange(from, true);\n _beforeInvestmentChange(to, true);\n\n // Activate rewards redirection\n rewardsRedirectsFromTo[from] = to;\n rewardsRedirectsToFrom[to].push(from);\n }\n\n /**\n * @notice Disable an active rewards redirection.\n * @param from The address of the account to stop redirecting rewards from.\n * @param to The address of the account to stop redirecting rewards to.\n */\n function stopRewardsRedirection(\n address from,\n address to\n ) public whenNotPaused notBlacklisted(from) notBlacklisted(to) {\n // Ensure neither 'from' nor 'to' are the zero address\n require(from != address(0), \"L16\");\n require(to != address(0), \"L17\");\n\n // Ensure function caller is either the owner or the 'from' address\n require(_msgSender() == owner() || _msgSender() == from, \"L18\");\n\n // Ensure a rewards redirection was active\n require(rewardsRedirectsFromTo[from] == to, \"L19\");\n\n // Distribute current rewards and reset investment periods of both accounts\n _beforeInvestmentChange(from, true);\n _beforeInvestmentChange(to, true);\n\n // Retrieve 'from' index in the redirection array of 'to'\n int256 fromIndex = -1;\n for (uint256 i = 0; i < rewardsRedirectsToFrom[to].length; i++) {\n if (rewardsRedirectsToFrom[to][i] == from) {\n fromIndex = int256(i);\n break;\n }\n }\n\n // fromIndex should never be -1 at this point\n assert(fromIndex >= 0);\n\n // Deactivate rewards redirection\n rewardsRedirectsFromTo[from] = address(0);\n rewardsRedirectsToFrom[to][uint256(fromIndex)] = rewardsRedirectsToFrom[to][\n rewardsRedirectsToFrom[to].length - 1\n ];\n rewardsRedirectsToFrom[to].pop();\n }\n\n /**\n * @notice Retrieves the total amount of tokens invested by the given account.\n * @dev Derived contracts must implement this function.\n * @param account The account to get the investment of.\n * @return The total amount of tokens invested by the given account.\n */\n function _investmentOf(address account) internal view virtual returns (uint256);\n\n /**\n * @notice Distributes a specified amount of rewards to a given account.\n * @dev Derived contracts may optionally implement this function.\n * @dev Implementations must return true to indicate a successful distribution, and\n * false otherwise. If it returns false, the rewards will be added to the account's\n * virtual balance, in order to be claimed later.\n * @param account The account to claim the rewards of.\n * @param amount The amount of rewards to claim.\n * @return Whether the rewards distribution was successfull.\n */\n function _distributeRewards(address account, uint256 amount) internal virtual returns (bool) {\n account; // Silence unused variables warning\n amount;\n return false;\n }\n\n /**\n * @notice Computes the rewards accrued over a specified period of time, based on a\n * given APR and amount of invested tokens.\n * @dev For further details, see \"InvestUpgradeable > Rewards calculation\" section of\n * the whitepaper.\n * @param beginTimestamp The moment the period commenced.\n * @param endTimestamp The moment the period concluded.\n * @param aprUD7x3 The APR during this period, in UD7x3 format.\n * @param investedAmount The amount of tokens deposited/invested during the period.\n * @return The amount of rewards generated during the period.\n */\n function _calculatePeriodRewards(\n uint40 beginTimestamp,\n uint40 endTimestamp,\n uint16 aprUD7x3,\n uint256 investedAmount\n ) internal view returns (uint256) {\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Compute the number of elapsed years\n uint256 elapsedTimeSUD = SUD.fromInt(endTimestamp - beginTimestamp, d);\n uint256 elapsedYearsSUD = (elapsedTimeSUD * SUD.fromInt(1, d)) / SUD.fromInt(365 days, d);\n\n // Compute the growth in invested amount (thanks to rewards)\n uint256 aprSUD = SUD.fromRate(aprUD7x3, d);\n uint256 growthSUD = (elapsedYearsSUD * aprSUD) / SUD.fromInt(1, d);\n\n // Compute and return the rewards\n uint256 investedAmountSUD = SUD.fromAmount(investedAmount, d);\n uint256 rewardsSUD = (investedAmountSUD * growthSUD) / SUD.fromInt(100, d);\n return SUD.toAmount(rewardsSUD, d);\n }\n\n /**\n * @notice Computes the sum of given account's invested amount, plus invested amount\n * of all accounts that recursively redirect rewards to this account.\n * @param account The account to calculate the deep investment of.\n * @return deepInvestedAmount The deep invested amount.\n */\n function _deepInvestmentOf(address account) internal view returns (uint256 deepInvestedAmount) {\n // Consider account's direct investment\n deepInvestedAmount += _investmentOf(account);\n\n // But also the deep investments of all accounts redirecting rewards to this account\n for (uint256 i = 0; i < rewardsRedirectsToFrom[account].length; i++) {\n deepInvestedAmount += _deepInvestmentOf(rewardsRedirectsToFrom[account][i]);\n }\n }\n\n /**\n * @notice Computes the amount of unclaimed/undistributed rewards of a given account.\n * @dev For further details, see \"InvestUpgradeable > Rewards calculation\" section of\n * the whitepaper.\n * @param account The account to calculate the unclaimed rewards of.\n * @param autocompound Whether to autocompound the rewards between APR checkpoints.\n * @return rewards The amount of unclaimed/undistributed rewards of the given account.\n */\n function _rewardsOf(\n address account,\n bool autocompound\n ) internal view returns (uint256 rewards) {\n // Retrieve account's investment details\n AccountDetails memory details = accountsDetails[account];\n\n // Retrieve account's deep invested amount\n uint256 investedAmount = _deepInvestmentOf(account);\n\n // Return 0 if the account has never invested or has no invested amount\n if (details.period.timestamp == 0 || investedAmount == 0) return 0;\n\n // Retrieve reference and data of APR checkpoint at which started investment period\n APRH.Reference memory currRef = details.period.ref;\n APRH.CheckpointData memory currCheckpoint = _aprHistory.getDataFromReference(currRef);\n\n // Retrieve reference of latest APR checkpoint\n APRH.Reference memory latestRef = _aprHistory.getLatestReference();\n\n // 1) Fill rewards with virtual balance (rewards not claimed/distributed yet)\n // See \"InvestUpgradeable > Yield calculation > 1)\" section of the whitepaper\n rewards = details.virtualBalance;\n\n // If start checkpoint is not the latest one\n if (!APRH.eq(currRef, latestRef)) {\n // Retrieve reference and data of APR checkpoint that comes after start checkpoint\n APRH.Reference memory nextRef = APRH.incrementReference(currRef);\n APRH.CheckpointData memory nextCheckpoint = _aprHistory.getDataFromReference(nextRef);\n\n // 2) Calculate rewards from investment period start to next checkpoint\n // See \"InvestUpgradeable > Yield calculation > 2)\" section of the whitepaper\n rewards += _calculatePeriodRewards(\n details.period.timestamp,\n nextCheckpoint.timestamp,\n currCheckpoint.aprUD7x3,\n investedAmount + (autocompound ? rewards : 0)\n );\n\n // 3) Calculate rewards for each crossed pair of checkpoints\n // See \"InvestUpgradeable > Yield calculation > 3)\" section of the whitepaper\n while (true) {\n // Set next checkpoint as the current one\n currRef = nextRef;\n currCheckpoint = nextCheckpoint;\n\n // Break if current checkpoint is the latest one\n if (APRH.eq(currRef, latestRef)) break;\n\n // Else, retrieve the new next checkpoint\n nextRef = APRH.incrementReference(currRef);\n nextCheckpoint = _aprHistory.getDataFromReference(nextRef);\n\n // Calculate rewards between the current pair of checkpoints\n rewards += _calculatePeriodRewards(\n currCheckpoint.timestamp,\n nextCheckpoint.timestamp,\n currCheckpoint.aprUD7x3,\n investedAmount + (autocompound ? rewards : 0)\n );\n }\n\n // 4) Calculate rewards from the latest checkpoint to now\n // See \"InvestUpgradeable > Yield calculation > 4)\" section of the whitepaper\n rewards += _calculatePeriodRewards(\n currCheckpoint.timestamp,\n uint40(block.timestamp),\n currCheckpoint.aprUD7x3,\n investedAmount + (autocompound ? rewards : 0)\n );\n } else {\n // 2.bis) Calculate rewards from investment period start to now\n // See \"InvestUpgradeable > Yield calculation > 2.bis)\" section of the whitepaper\n rewards += _calculatePeriodRewards(\n details.period.timestamp,\n uint40(block.timestamp),\n currCheckpoint.aprUD7x3,\n investedAmount + (autocompound ? rewards : 0)\n );\n }\n }\n\n /**\n * @notice Recursively resets the investment period of the specified account and of\n * all accounts that directly or indirectly redirect rewards to this account.\n * @param account The account to deeply reset the investment period of.\n */\n function _deepResetInvestmentPeriodOf(address account) internal {\n // Reset account investment period timestamp and APR checkpoint to latest ones\n accountsDetails[account].period.timestamp = uint40(block.timestamp);\n accountsDetails[account].period.ref = _aprHistory.getLatestReference();\n\n // Also reset the ones of all accounts that recursively redirect rewards to this account\n for (uint256 i = 0; i < rewardsRedirectsToFrom[account].length; i++) {\n _deepResetInvestmentPeriodOf(rewardsRedirectsToFrom[account][i]);\n }\n }\n\n /**\n * @notice Hook to be invoked before the invested amount of an account changes. It\n * ensures that rewards are distributed and that account's investment period is reset.\n * @param account The account whose invested amount is going to change.\n * @param autocompound Whether to autocompound the rewards between APR checkpoints.\n */\n function _beforeInvestmentChange(address account, bool autocompound) internal {\n // This hook is called inside LToken._beforeTokenTransfer() and as new tokens are\n // minted in LToken._distributeRewards(), this guards against infinite loop.\n if (_isClaiming) return;\n\n // LToken._beforeTokenTransfer() calls this hook for both involved addresses.\n // As first call will treat both addresses, the second call would be redundant.\n // Therefore, we skip accounts already processed in this block to save up some gas.\n if (accountsDetails[account].period.timestamp == uint40(block.timestamp)) return;\n\n // If account redirects its rewards\n address redirectRewardsTo = rewardsRedirectsFromTo[account];\n if (redirectRewardsTo != address(0)) {\n // Call hook on redirection target (this will indirectly reset the investment\n // of this source account) and return\n _beforeInvestmentChange(redirectRewardsTo, autocompound);\n return;\n }\n\n // Else, compute account's undistributed/unclaimed rewards\n uint256 rewards = _rewardsOf(account, autocompound);\n\n // If there are some rewards\n if (rewards > 0) {\n // Try to distribute rewards to account\n _isClaiming = true;\n bool distributed = _distributeRewards(account, rewards);\n _isClaiming = false;\n\n // If rewards have not been distributed, accumulate them in account's virtual balance\n if (!distributed) accountsDetails[account].virtualBalance = rewards;\n }\n\n // Finally, deeply reset investment period of the account\n _deepResetInvestmentPeriodOf(account);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/RecoverableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Conracts\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./GlobalOwnableUpgradeable.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\n\n/**\n * @title RecoverableUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts are provided with helper functions allowing the recovery of\n * assets accidentally sent to them.\n *\n * @dev Where are utilities Ether, ERC721, etc.?\n * This abstract contract currently supports only ERC20 tokens. Derived contracts\n * in this codebase currently do not implement the necessary functions to receive Ether\n * or ERC721/ERC1155 tokens, so no recovery functions are provided for these assets.\n *\n * @dev For further details, see \"RecoverableUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract RecoverableUpgradeable is Initializable, GlobalOwnableUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n */\n function __Recoverable_init(address globalOwner_) internal onlyInitializing {\n __GlobalOwnable_init(globalOwner_);\n __Recoverable_init_unchained();\n }\n\n function __Recoverable_init_unchained() internal onlyInitializing {}\n\n /**\n * @notice Recovers a specified amount of a given token address. Will fail if the\n * contract doesn't hold enough tokens.\n * @param tokenAddress The address of the token to recover.\n * @param amount The amount of token to recover.\n */\n function recoverERC20(address tokenAddress, uint256 amount) public virtual onlyOwner {\n // Ensure the specified amount is not zero\n require(amount > 0, \"L10\");\n\n // Create a reference to token's contract\n IERC20Upgradeable tokenContract = IERC20Upgradeable(tokenAddress);\n\n // Ensure there is enough token to recover\n require(tokenContract.balanceOf(address(this)) >= amount, \"L11\");\n\n // Transfer the recovered token amount to the sender\n tokenContract.safeTransfer(_msgSender(), amount);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/GenericERC20.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport {ERC20Burnable} from \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\";\n\n/**\n * @notice Used for testing purposes only, and used to generate ABIs for Wagmi contracts calls.\n * It represents:\n * - a FIAT-based stablecoin when used to test the LToken contract,\n * - the $LDY token when used to test the LDYStaking contract.\n * This contract accept decimals as constructor argument, so it can be used to to\n * easily test different decimals scenarios.\n */\ncontract GenericERC20 is ERC20, ERC20Burnable {\n uint8 private _decimals;\n\n constructor(string memory name, string memory symbol, uint8 decimals_) ERC20(name, symbol) {\n _decimals = decimals_;\n }\n\n function mint(uint256 amount) public {\n _mint(msg.sender, amount);\n }\n\n function decimals() public view virtual override returns (uint8) {\n return _decimals;\n }\n\n /**\n * Used in tests to test different decimals scenarios.\n */\n function setDecimals(uint8 decimals_) public {\n _decimals = decimals_;\n }\n}\n" - }, - "contracts/src/GlobalBlacklist.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./abstracts/GlobalOwnableUpgradeable.sol\";\n\n/**\n * @title GlobalBlacklist\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Holds a global mapping of blacklisted accounts shared by all contracts of the\n * Ledgity Yield codebase.\n *\n * @dev Specifically, some contracts within the codebase inherit from the\n * GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers\n * and getter functions to easily check against this global blacklist.\n *\n * @dev For further details, see \"GlobalBlacklist\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\ncontract GlobalBlacklist is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\n /**\n * @notice Mapping of accounts to their blacklist status.\n * @dev This mapping is made private and isBlacklisted() should be used instead.This\n * helps saving gas in some scenario. See isBlacklisted() documentation for more details.\n */\n mapping(address => bool) private _list;\n\n /// @dev Emitted when `account` is blacklisted.\n event Blacklisted(address account);\n\n /// @dev Emitted when `account` is unblacklisted.\n event Unblacklisted(address account);\n\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n */\n function initialize(address globalOwner_) public initializer {\n __GlobalOwnable_init(globalOwner_);\n __UUPSUpgradeable_init();\n }\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n\n /**\n * @notice Adds a given account to the blacklist.\n * @param account The account's address to be blacklisted.\n */\n function blacklist(address account) external onlyOwner {\n require(account != address(0), \"L20\");\n _list[account] = true;\n emit Blacklisted(account);\n }\n\n /**\n * @notice Removes a given account from the blacklist.\n * @param account The account's address to be un-blacklisted.\n */\n function unBlacklist(address account) external onlyOwner {\n _list[account] = false;\n emit Unblacklisted(account);\n }\n\n /**\n * @notice Checks whether a given account is blacklisted.\n * @param account Address of the account to check.\n * @return 'true' if the account is blacklisted, 'false' otherwise\n */\n function isBlacklisted(address account) external view returns (bool) {\n // Gas optimization: Avoid accessing storage if account is the zero address\n // (e.g, during a mint or a burn of tokens)\n if (account == address(0)) return false;\n\n // Else, return current account's blacklist status\n return _list[account];\n }\n}\n" - }, - "contracts/src/GlobalOwner.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {Ownable2StepUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\";\n\n/**\n * @title GlobalOwner\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Holds the address of a global owner account shared by all contracts of the\n * Ledgity Yield's codebase.\n *\n * @dev Specifically, some contracts within the codebase inherit from the\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\n * owner() function that retrieves the owner's address from this contract instead.\n *\n * @dev For further details, see \"GlobalOwner\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n */\n function initialize() public initializer {\n __Ownable2Step_init();\n __UUPSUpgradeable_init();\n }\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n}\n" - }, - "contracts/src/GlobalPause.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./abstracts/GlobalOwnableUpgradeable.sol\";\n\n/**\n * @title GlobalPause\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Holds a global pause state shared by all contracts of the Ledgity Yield\n * codebase.\n *\n * @dev Specifically, some contracts within the codebase inherit from the\n * GlobalPausableUpgradeable abstract contract. This provides them with an overriden\n * paused() function that retrieves the pause state from this contract instead.\n *\n * @dev For further details, see \"GlobalPause\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\ncontract GlobalPause is\n Initializable,\n UUPSUpgradeable,\n GlobalOwnableUpgradeable,\n PausableUpgradeable\n{\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n */\n function initialize(address globalOwner_) public initializer {\n __GlobalOwnable_init(globalOwner_);\n __Pausable_init();\n __UUPSUpgradeable_init();\n }\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n\n /**\n * @dev Public implementation of PausableUpgradeable's pausing and unpausing functions\n * but restricted to contract's owner.\n */\n function pause() public onlyOwner {\n _pause();\n }\n\n function unpause() public onlyOwner {\n _unpause();\n }\n}\n" - }, - "contracts/src/interfaces/ITransfersListener.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\ninterface ITransfersListener {\n function onLTokenTransfer(address from, address to, uint256 amount) external;\n}\n" - }, - "contracts/src/LDY.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport {ERC20Burnable} from \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\";\n\n/**\n * @title LDY\n * @author Lila Rest (lila@ledgity.com)\n * @dev The $LDY is the utility and governance token of the entire Ledgity ecosystem.\n *\n * This contract has been kept as minimal as possible to enforce stakeholders safety\n * but also to pave the way for sensitive use cases like cross-chain bridging, use in\n * governance scenarios, and compatibility with 3rd party DApps.\n *\n * It is non-upgradeable, non-ownable, non-pausable, non-mintable, and non-restrictable.\n * It implements nothing more than what is provided by its OpenZepellin ancestors.\n *\n * Moreover, to eliminate the need for ownership and complex vesting functions, the\n * entire supply is minted at deployment-time. Vesting of allocated tokens is then\n * managed via Sablier streams that anyone can verify on this page:\n * https://docs.ledgity.finance/tokenomics/vesting-proofs\n *\n * Specifications:\n * - Name: Ledgity Token\n * - Symbol: LDY\n * - Decimals: 18\n * - Total supply: 75,000,000\n *\n * @custom:security-contact security@ledgity.com\n */\ncontract LDY is ERC20, ERC20Burnable {\n constructor() ERC20(\"Ledgity Token\", \"LDY\") {\n _mint(msg.sender, 75_000_000 * 10 ** decimals());\n }\n}\n" - }, - "contracts/src/LDYStaking.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {ReentrancyGuardUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport {BaseUpgradeable} from \"./abstracts/base/BaseUpgradeable.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\n\n/**\n * @title LDYStaking\n * @custom:security-contact security@ledgity.com\n *\n * @dev This contract implements tierOf() function from LDYStaking as it's the only\n * one the LToken contract relies on.\n *\n * @custom:security-contact security@ledgity.com\n */\ncontract LDYStaking is BaseUpgradeable, ReentrancyGuardUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /**\n * @notice Represents a user staking info in array.\n * @param stakedAmount Amount of the stake.\n * @param unStakeAt Unstake at.\n * @param duration Staking period in seconds.\n * @param rewardPerTokenPaid Reward per token paid.\n * @param rewards Rewards to be claimed.\n */\n struct StakingInfo {\n uint256 stakedAmount;\n uint256 unStakeAt;\n uint256 duration;\n uint256 rewardPerTokenPaid;\n uint256 rewards;\n }\n\n /// @notice Stake and Reward token.\n IERC20Upgradeable public stakeRewardToken;\n\n /// @notice Minimal stake duration for perks.\n uint256 public stakeDurationForPerks;\n\n /// @notice Minimal stake amount for perks.\n uint256 public stakeAmountForPerks;\n\n /// @notice Stake durations.\n uint256[] public stakeDurations;\n\n /// @notice Duration of the rewards (in seconds).\n uint256 public rewardsDuration;\n\n /// @notice Timestamp of when the rewards finish.\n uint256 public finishAt;\n\n /// @notice Timestamp of the reward updated.\n uint256 public lastUpdateTime;\n\n /// @notice Reward per second(total rewards / duration).\n uint256 public rewardRatePerSec;\n\n /// @notice Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\n uint256 public rewardPerTokenStored;\n\n /// @notice Total staked amounts.\n uint256 public totalStaked;\n\n /// @notice User stakingInfo map, user address => array of the staking info\n mapping(address => StakingInfo[]) public userStakingInfo;\n\n /**\n * @notice Emitted when users stake token\n * @param user User address\n * @param stakeIndex Latest index of user staking pool\n * @param amount Staked amount\n */\n event Staked(address indexed user, uint256 stakeIndex, uint256 amount);\n\n /**\n * @notice Emitted when users unstake token\n * @param user User address\n * @param stakeIndex User staking pool index\n * @param amount Staked amount\n */\n event Unstaked(address indexed user, uint256 stakeIndex, uint256 amount);\n\n /**\n * @notice Emitted when users claim rewards\n * @param user User address\n * @param stakeIndex User staking pool index\n * @param reward Reward token amount\n */\n event RewardPaid(address indexed user, uint256 stakeIndex, uint256 reward);\n\n /**\n * @notice Emitted when admin add rewards.\n * @param rewardAmount Reward amount added by admin.\n * @param rewardPerSec RewardRatePerSec updated.\n */\n event NotifiedRewardAmount(uint256 rewardAmount, uint256 rewardPerSec);\n\n /**\n * @notice Holds a mapping of addresses that default to the highest staking tier.\n * @dev This is notably used to allow PreMining contracts to benefit from 0%\n * withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\n */\n mapping(address => bool) public highTierAccounts;\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\n * @dev This function is intended for setting initial values for the contract's state variables.\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param stakeRewardToken_ The address of stake and reward token(LDY token).\n * @param stakeDurations_ Available Staking Durations.\n * @param stakeDurationForPerks_ Minimal staking duration for perks.\n * @param stakeAmountForPerks_ Minimal staking amount for perks.\n */\n function initialize(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address stakeRewardToken_,\n uint256[] memory stakeDurations_,\n uint256 stakeDurationForPerks_,\n uint256 stakeAmountForPerks_\n ) public initializer {\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\n stakeRewardToken = IERC20Upgradeable(stakeRewardToken_);\n stakeDurations = stakeDurations_;\n stakeDurationForPerks = stakeDurationForPerks_;\n stakeAmountForPerks = stakeAmountForPerks_;\n }\n\n // --------------------\n // MUTATIVE FUNCTIONS\n // --------------------\n\n /**\n * @notice Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\n * @dev Emits a `Staked` event upon successful staking.\n * @param amount The amount of tokens to stake.\n * @param stakeDurationIndex The Index of stakeDurations array.\n */\n function stake(\n uint256 amount,\n uint8 stakeDurationIndex\n ) external nonReentrant whenNotPaused notBlacklisted(_msgSender()) {\n require(amount > 0, \"amount = 0\");\n require(stakeDurationIndex <= stakeDurations.length - 1, \"invalid staking period\");\n\n _updateReward(address(0), 0);\n uint256 stakeDuration = stakeDurations[stakeDurationIndex];\n StakingInfo memory stakingInfo = StakingInfo({\n stakedAmount: amount,\n unStakeAt: block.timestamp + stakeDuration,\n duration: stakeDuration,\n rewardPerTokenPaid: rewardPerTokenStored,\n rewards: 0\n });\n\n // check whether account is eligible for benefit from the protocol\n if (stakeDuration >= stakeDurationForPerks && amount >= stakeAmountForPerks) {\n highTierAccounts[_msgSender()] = true;\n }\n\n userStakingInfo[_msgSender()].push(stakingInfo);\n\n uint256 stakeIndex = userStakingInfo[_msgSender()].length - 1;\n totalStaked += amount;\n\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\n\n emit Staked(_msgSender(), stakeIndex, amount);\n }\n\n /**\n * @notice Withdraw staked tokens after stakeDuration has passed.\n * @dev Emits a `Unstaked` event upon successful withdrawal.\n * On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\n * @param amount The amount of tokens to withdraw.\n * @param stakeIndex The index of user staking pool\n */\n function unstake(\n uint256 amount,\n uint256 stakeIndex\n ) external nonReentrant notBlacklisted(_msgSender()) {\n require(amount > 0, \"amount = 0\");\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \"invalid stakeIndex\");\n require(\n block.timestamp >= userStakingInfo[_msgSender()][stakeIndex].unStakeAt,\n \"not allowed unstaking in the staking period\"\n );\n require(\n amount <= userStakingInfo[_msgSender()][stakeIndex].stakedAmount,\n \"insufficient amount\"\n );\n\n _updateReward(_msgSender(), stakeIndex);\n totalStaked -= amount;\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount -= amount;\n\n // check whether account is eligible for benefit from the protocol\n if (\n userStakingInfo[_msgSender()][stakeIndex].duration >= stakeDurationForPerks &&\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount < stakeAmountForPerks\n ) {\n highTierAccounts[_msgSender()] = false;\n }\n\n // remove staking info from array on full withdrawal\n if (userStakingInfo[_msgSender()][stakeIndex].stakedAmount == 0) {\n _claimReward(_msgSender(), stakeIndex);\n\n userStakingInfo[_msgSender()][stakeIndex] = userStakingInfo[_msgSender()][\n userStakingInfo[_msgSender()].length - 1\n ];\n userStakingInfo[_msgSender()].pop();\n }\n stakeRewardToken.safeTransfer(_msgSender(), amount);\n\n emit Unstaked(_msgSender(), stakeIndex, amount);\n }\n\n /**\n * @notice Claim pending rewards.\n * @dev Emits a `RewardPaid` event upon successful reward claim.\n * @param stakeIndex The index of user staking pool.\n */\n function getReward(uint256 stakeIndex) external nonReentrant notBlacklisted(_msgSender()) {\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \"invalid stakeIndex\");\n _updateReward(_msgSender(), stakeIndex);\n _claimReward(_msgSender(), stakeIndex);\n }\n\n // --------------------\n // ADMIN CONFIGURATION\n // --------------------\n\n /**\n * @notice Update Rewards Duration.\n * @dev Only callable by owner, and setting available only after rewards period.\n * @param duration The nmew rewards duration in seconds.\n */\n function setRewardsDuration(uint256 duration) external onlyOwner {\n require(finishAt < block.timestamp, \"reward duration is not finished\");\n rewardsDuration = duration;\n }\n\n /**\n * @notice Notify the contract about the amount of rewards to be distributed and update reward parameters.\n * @dev Only callable by owner.\n * @param amount The amount of reward to be distributed.\n */\n function notifyRewardAmount(uint256 amount) external onlyOwner {\n require(rewardsDuration > 0, \"rewards duration is not set\");\n require(amount > 0, \"amount = 0\");\n\n _updateReward(address(0), 0);\n\n if (block.timestamp >= finishAt) {\n rewardRatePerSec = amount / rewardsDuration;\n } else {\n uint256 remainingRewards = (finishAt - block.timestamp) * rewardRatePerSec;\n rewardRatePerSec = (amount + remainingRewards) / rewardsDuration;\n }\n\n require(rewardRatePerSec > 0, \"reward rate = 0\");\n require(\n rewardRatePerSec <=\n (stakeRewardToken.balanceOf(address(this)) + amount - totalStaked) /\n rewardsDuration,\n \"reward amount > balance\"\n );\n\n finishAt = block.timestamp + rewardsDuration;\n lastUpdateTime = block.timestamp;\n\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\n\n emit NotifiedRewardAmount(amount, rewardRatePerSec);\n }\n\n // --------------------\n // VIEW FUNCTIONS\n // --------------------\n\n /**\n * @notice Get the last time when rewards were applicable for the specified reward token.\n * @return Timestamp of the most recent rewards calculation.\n */\n function lastTimeRewardApplicable() public view returns (uint256) {\n return _min(finishAt, block.timestamp);\n }\n\n /**\n * @notice Calculate the reward per token for a given reward token.\n * @return Current reward per token.\n */\n function rewardPerToken() public view returns (uint256) {\n if (totalStaked == 0) {\n return rewardPerTokenStored;\n }\n\n return\n rewardPerTokenStored +\n (rewardRatePerSec * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) /\n totalStaked;\n }\n\n /**\n * @notice Calculate the total earned rewards for a user.\n * @param account Address of the user.\n * @param stakeIndex User's locked token balance.\n * @return Total earned rewards for the user.\n */\n function earned(address account, uint256 stakeIndex) public view returns (uint256) {\n StakingInfo memory userInfo = userStakingInfo[account][stakeIndex];\n uint256 rewardsSinceLastUpdate = ((userInfo.stakedAmount *\n (rewardPerToken() - userInfo.rewardPerTokenPaid)) / 1e18);\n return rewardsSinceLastUpdate + userInfo.rewards;\n }\n\n /**\n * @dev tierOf() function that always return that the given account is not\n * elligible to any LDY staking tier, except if the account is in the\n * highTierAccounts mapping.\n * @param account The account to check the tier of.\n */\n function tierOf(address account) public view returns (uint256 tier) {\n if (highTierAccounts[account]) return 3;\n return 0;\n }\n\n /**\n * @notice Get User Stake Data.\n * @param account The address of user.\n * @return StakingInfo array.\n */\n function getUserStakes(address account) external view returns (StakingInfo[] memory) {\n return userStakingInfo[account];\n }\n\n /**\n * @notice Send rewards to user.\n * @dev This is private function, called by getReward function.\n * @param account The address of user.\n * @param stakeIndex The index of user staking pool.\n */\n function _claimReward(address account, uint256 stakeIndex) private {\n uint256 reward = userStakingInfo[account][stakeIndex].rewards;\n\n if (reward > 0) {\n userStakingInfo[account][stakeIndex].rewards = 0;\n stakeRewardToken.safeTransfer(account, reward);\n emit RewardPaid(account, stakeIndex, reward);\n }\n }\n\n /**\n * @notice Calculate and update user rewards per stakeIndex.\n * @dev this is private function, called by stake, unstake, getRewards, and notifyRewardAmount functions.\n * @param account The address of user.\n * @param stakeIndex The index of user staking pool.\n */\n function _updateReward(address account, uint256 stakeIndex) private {\n rewardPerTokenStored = rewardPerToken();\n lastUpdateTime = lastTimeRewardApplicable();\n\n if (account != address(0)) {\n userStakingInfo[account][stakeIndex].rewards = earned(account, stakeIndex);\n userStakingInfo[account][stakeIndex].rewardPerTokenPaid = rewardPerTokenStored;\n }\n }\n\n /**\n * @notice Take minimum value between x and y.\n */\n function _min(uint256 x, uint256 y) private pure returns (uint256) {\n return x <= y ? x : y;\n }\n}\n" - }, - "contracts/src/libs/APRHistory.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n/**\n * @title APRHistory\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice This library offers utilities to efficiently maintain the history of an\n * on-chain APR (Annual Percentage Rate) state. Each entry in this history is called\n * a \"checkpoint\".\n *\n * @dev Intuition:\n * Each checkpoint in an APR history consists of two data:\n * - the creation timestamp\n * - the APR at that time\n *\n * Given that reading and writing to storage slots are among the most costly operations\n * in Solidity, this library provides a way to store those data in a way that minimizes\n * the number of used storage slots.\n *\n * Instead of storing each checkpoint in a separate storage slot, this library\n * facilitates the packing of up to 4 checkpoints in a single storage slot.\n *\n * @dev Definitions:\n * - Checkpoint: A record of an APR change\n * - Pack: A collection of 4 checkpoints stored in a single storage slot\n * - History: A dynamic array of packs\n * - Reference: A storage pointer to a checkpoint in the APR history\n * - CheckpointData: An in-memory representation of a checkpoint data\n *\n * @dev Value limitation:\n * This library can accommodate APRs only up to 65.536%. This is however sufficient for\n * APR in LToken contract, which is expected to remain below 10%.\n *\n * @dev For further details, see \"APRHistory\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nlibrary APRHistory {\n /**\n * @notice Represents data of a checkpoint extracted from the on-chain history.\n * For on-chain representation see \"Pack\" struct.\n * @param aprUD7x3 APR in UD7x3 format (e.g., 12345 = 12.345%).\n * @param timestamp Timestamp of the checkpoint's creation.\n */\n struct CheckpointData {\n uint16 aprUD7x3; // Allows up to 65.536%\n uint40 timestamp; // Supports dates up to 20/02/36812\n }\n\n /**\n * @notice Represents how APR checkpoints are stored on chain. Each pack can contain\n * the data 4 checkpoints. Packs are then stored in a dynamic array (the history).\n * @param aprsUD7x3 Array of checkpoints' APRs.\n * @param timestamps Array of checkpoints' timestamps.\n * @param cursor Index of the next checkpoint to be written.\n */\n struct Pack {\n uint16[4] aprsUD7x3;\n uint40[4] timestamps;\n uint32 cursor;\n }\n\n /**\n * @notice Represents a storage pointer to a specific checkpoint in the history.\n * @param packIndex Index of the pack the checkpoint belongs to.\n * @param cursorIndex Index of the checkpoint in this pack (between 0 and 3).\n */\n struct Reference {\n uint256 packIndex;\n uint32 cursorIndex;\n }\n\n /**\n * @notice Compares two checkpoints references.\n * @param ref1 The first reference to compare.\n * @param ref2 The second reference to compare.\n * @return Whether the two references points to the same checkpoint.\n */\n function eq(Reference memory ref1, Reference memory ref2) external pure returns (bool) {\n return ref1.packIndex == ref2.packIndex && ref1.cursorIndex == ref2.cursorIndex;\n }\n\n /**\n * @notice Returns the reference of the checkpoint that should come right after the\n * referenced checkpoint in the APR history.\n * @param ref The reference to be incremented.\n * @return The incremented reference.\n */\n function incrementReference(Reference memory ref) public pure returns (Reference memory) {\n // Ensure cursor index of the given ref is within valid range [0, 3]\n require(ref.cursorIndex <= 3, \"L1\");\n\n // If the given ref is the last slot in its pack, return ref of next pack's first slot\n if (ref.cursorIndex == 3) return Reference(ref.packIndex + 1, 0);\n //\n // Else, return ref of next slot in current pack\n else return Reference(ref.packIndex, ref.cursorIndex + 1);\n }\n\n /**\n * @notice Extracts checkpoint data from a given reference and in APR history.\n * @param self The APR history to extract the checkpoint from.\n * @param ref The reference of the checkpoint data to extract.\n * @return The extracted checkpoint's data.\n */\n function getDataFromReference(\n Pack[] storage self,\n Reference memory ref\n ) public view returns (CheckpointData memory) {\n // Ensure cursor index of the given ref is within valid range [0, 3]\n require(ref.cursorIndex <= 3, \"L2\");\n\n // Ensure pack index of the given ref exists in history\n require(ref.packIndex < self.length, \"L3\");\n\n // Retrieve pack data from history\n Pack memory pack = self[ref.packIndex];\n\n // Ensure cursor index of the given ref has been written\n require(ref.cursorIndex < pack.cursor, \"L4\");\n\n // Build and return the checkpoint data\n return\n CheckpointData({\n aprUD7x3: pack.aprsUD7x3[ref.cursorIndex],\n timestamp: pack.timestamps[ref.cursorIndex]\n });\n }\n\n /**\n * @notice Retrieves the reference to the most recently added checkpoint in the APR history.\n * @param self The history to extract the reference from.\n * @return The reference of the latest checkpoint.\n */\n function getLatestReference(Pack[] storage self) public view returns (Reference memory) {\n // Ensure the given history is not empty\n require(self.length != 0, \"L5\");\n\n // Retrieve latest pack's index and cursor\n uint256 packIndex = self.length - 1;\n uint32 packCursor = self[packIndex].cursor;\n\n // If this is the first pack ever, ensure it is not empty\n if (packIndex == 0) require(packCursor != 0, \"L6\");\n\n // If the pack is empty, return ref of previous pack's latest slot\n if (packCursor == 0) return Reference(packIndex - 1, 3);\n //\n // Else, return ref of previous slot in current pack\n else return Reference(packIndex, packCursor - 1);\n }\n\n /**\n * @notice Appends a new empty pack to the end of the given APR history array.\n * @param self The APR history to append an empty to.\n */\n function newBlankPack(Pack[] storage self) internal {\n // If history is not empty, ensure the latest pack is full\n require(self.length == 0 || getLatestReference(self).cursorIndex == 3, \"L7\");\n\n // Push a new blank pack to the history array\n self.push(\n Pack({\n aprsUD7x3: [uint16(0), uint16(0), uint16(0), uint16(0)],\n timestamps: [uint40(0), uint40(0), uint40(0), uint40(0)],\n cursor: 0\n })\n );\n }\n\n /**\n * @notice Write a new APR checkpoint at the end of the given history array.\n * @param self The array of packs to write the new checkpoint to.\n * @param aprUD7x3 The new APR in UD7x3 format.\n */\n function setAPR(Pack[] storage self, uint16 aprUD7x3) external {\n // Determine the reference where the new checkpoint should be written\n Reference memory newRef = self.length == 0\n ? Reference(0, 0)\n : incrementReference(getLatestReference(self));\n\n // If pack to be written doesn't exist yet, push a new blank pack in history\n if (newRef.packIndex >= self.length) newBlankPack(self);\n\n // Retrieve the pack where the new checkpoint will be stored\n Pack memory pack = self[newRef.packIndex];\n\n // Add new checkpoint's data to the pack\n pack.aprsUD7x3[newRef.cursorIndex] = aprUD7x3;\n pack.timestamps[newRef.cursorIndex] = uint40(block.timestamp);\n\n // Increment the pack's cursor\n pack.cursor++;\n\n // Write the updated pack in storage\n self[newRef.packIndex] = pack;\n }\n\n /**\n * @notice Retrieves the APR of the latest checkpoint written in the APR history.\n * @param self The history array to read APR from.\n * @return The latest checkpoint's APR.\n */\n function getAPR(Pack[] storage self) public view returns (uint16) {\n // Retrieve the latest checkpoint data\n Reference memory ref = getLatestReference(self);\n CheckpointData memory data = getDataFromReference(self, ref);\n\n // Return the latest checkpoint's APR\n return data.aprUD7x3;\n }\n}\n" - }, - "contracts/src/libs/SUD.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\n\n/**\n * @title SUD\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice SUD serves as an intermediary number format for calculations within this\n * codebase. It ensures consistency and reduces precision losses. This library\n * facilitates conversions between various number formats and the SUD format.\n *\n * @dev Intuition:\n * This codebase employs the UD (unsigned decimal fixed-point numbers) format to\n * represent both percentage rates and tokens amounts.\n *\n * Rates are expressed in UD7x3 format, whereas the format for tokens amounts depends on\n * the decimals() value of the involved tokens.\n *\n * Three challenges arise from this:\n * 1) To compute values together, it's essential that they are in the same format\n * 2) Calculations involving consecutive divisions on UD numbers lead to accumulated\n * precision loss (because division shrinks). A common approach is to scale up and\n * down values by a few decimals before and after performing calculations.\n * 3) Given that rates use the UD7x3 format, if we decided to scale them to and from\n * the number of decimals of the involved token, 1 to 3 of the rates' decimals would\n * be shrunk in case token's decimals number is in [0, 2].\n *\n * To address these challenges, this library provides the SUD format, which acts as a\n * consistent and scaled intermediate format to perform calculations.\n *\n * SUD is an acronym for either \"Scaled UD\" or \"Safe UD\".\n *\n * @dev Definitions:\n * - Integer: A number without fractional part, e.g., block.timestamp\n * - UD: A decimal unsigned fixed-point number. The \"UD\" notation is inspired from\n * libraries like [prb-math](https://github.com/PaulRBerg/prb-math/)\n * - Amount: A token amount. A UD with an unknown repartition of digits between integral\n * and fractional parts (as token amounts have variable decimal numbers)\n * - Rate: A percentage rate. An UD with 7 integral digits and 3 fractional ones (= UD7x3)\n * - SUD: An intermediate format to perform calculations involving Rates and Amounts. A UD\n * with 3 more decimals than the involved UD with the highest decimals number. As\n * rates are represented by UD7x3, a SUD number has at least 6 decimals (3+3) and\n * so ranges from UD71x6 to UD0x77 formats.\n *\n * @dev A conversion library:\n * This library provides utilities to perform the following conversions:\n * - Amount <--> SUD\n * - Rate (UD7x3) <--> SUD\n * - Integer <--> SUD\n *\n * @dev Why scaling by 3 decimals?\n * - It provides an adequate degree of precision for this codebase,\n * - It enables the conversion of a UD7x3 rate to SUD format by merely scaling it up by\n * the involved token's decimal number, so is gas efficient.\n *\n * @dev Why internal functions?\n * The functions of this library are not set to external because incorporating them\n * directly into contracts is more gas-efficient. Given their minimal size and frequent\n * usage in the InvestUpgradeable, LDYStaking, and LToken contracts, any bytecode savings\n * from making them external are negated by the additional bytecode required for external\n * calls to this library. This can be observed by comparing the output of `bun cc:size`\n * when those functions's visibility is set to external or internal.\n *\n * @dev Precision warning:\n * While this library mitigates precision loss during calculations on UD numbers, it's\n * important to note that tokens with lower decimal counts and supply inherently suffer\n * more from precision loss. Conversely, tokens with higher decimal counts and supply\n * will experience less precision loss.\n *\n * @dev For further details, see \"SUD\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nlibrary SUD {\n /**\n * @notice Retrieves decimals number of the given ERC20 contract address.\n * @param tokenAddress The address to retrieve decimals number from.\n * @return decimals The decimals number of the given ERC20 contract address.\n */\n function decimalsOf(address tokenAddress) internal view returns (uint256 decimals) {\n return IERC20MetadataUpgradeable(tokenAddress).decimals();\n }\n\n /**\n * @notice Convert a given token amount into SUD format.\n * @param nAmount The token amount to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The amount in SUD format\n */\n function fromAmount(uint256 nAmount, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return nAmount * 10 ** (6 - decimals);\n\n // Else return a number with decimals+3 fractional digits\n return nAmount * 10 ** 3;\n }\n\n /**\n * @notice Convert a given SUD number into token amount format.\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nAmount The number in amount format\n */\n function toAmount(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nAmount) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** (6 - decimals);\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** 3;\n }\n\n /**\n * @notice Converts a given UD7x3 rate into SUD format.\n * @param nUD7x3 The UD7x3 rate to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The rate in SUD format.\n */\n function fromRate(uint256 nUD7x3, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return nUD7x3 * 10 ** 3;\n\n // Else, return a number with decimals+3 fractional digits\n return nUD7x3 * 10 ** decimals;\n }\n\n /**\n * @notice Converts a given SUD number into a UD7x3 rate.\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nUD7x3 The number in UD7x3 rate format.\n */\n function toRate(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nUD7x3) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** 3;\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** decimals;\n }\n\n /**\n * @notice Converts a given integer into SUD format.\n * @param n The integer to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The integer in SUD format.\n */\n function fromInt(uint256 n, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return n * 10 ** 6;\n\n // Else, return a number with decimals+3 fractional digits\n return n * 10 ** (decimals + 3);\n }\n\n /**\n * @notice Converts a given SUD number as an integer (all decimals shrinked).\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return n The SUD number as an integer.\n */\n function toInt(uint256 nSUD, uint256 decimals) internal pure returns (uint256 n) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** 6;\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** (decimals + 3);\n }\n}\n" - }, - "contracts/src/LToken.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {ERC20WrapperUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol\";\nimport \"./abstracts/base/ERC20BaseUpgradeable.sol\";\nimport {InvestUpgradeable} from \"./abstracts/InvestUpgradeable.sol\";\nimport {LDYStaking} from \"./LDYStaking.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\nimport {SUD} from \"./libs/SUD.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\nimport {ITransfersListener} from \"./interfaces/ITransfersListener.sol\";\n\n/**\n * @title LToken\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Main contract of the Ledgity Yield protocol. It powers every L-Token (i.e.,\n * investment pools backed by RWA). An L-Token is an ERC20 wrapper around a stablecoin.\n * As soon as a wallet holds some L-Tokens, it starts receiving rewards in\n * the form of additional L-Tokens, which are auto-compounded over time.\n *\n * @dev Definitions:\n * - Deposit: Swap of underlying tokens for L-Tokens (1:1 ratio).\n * - Withdrawal: Swap of L-Tokens for underlying tokens (1:1 ratio, minus applicable fees).\n * - Instant: Processed immediately.\n * - Request: Queued for later processing.\n * - Big Request: A requested withdrawal exceeding half of the retention rate.\n * - (Withdrawal) queue: A list of all requested withdrawals sorted by priority.\n * - Request ID: The index of a withdrawal request in the queue array.\n * - Retention rate: Maximum fraction of underlying tokens TVL the contract can retain.\n * - Fees Rate: Percentage of fees applied to successful withdrawals.\n * - Usable underlyings: Amount of underlying tokens that have been deposited through\n * expected ways and are so considered safe to use by the contract.\n * - Transfers listeners: External contracts listening on L-Tokens transfers.\n * - Fund wallet: Wallet managed by the Ledgity's financial team.\n * - Withdrawer wallet: Managed by an off-chain server to automate withdrawal request\n * processing.\n *\n * Note that words between parenthesis are sometimes omitted for brevity.\n *\n * @dev Deployment notice:\n * This contract can safely receive funds immediately after initialization. (i.e., there\n * is no way for funds to be sent to non-owned addresses). It is, however, recommended to\n * replace ASAP owner and fund wallets with multi-sig wallets.\n *\n * @dev For further details, see \"LToken\" section of whitepaper.\n * @custom:oz-upgrades-unsafe-allow external-library-linking\n * @custom:security-contact security@ledgity.com\n */\ncontract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /// @dev Represents type of actions triggering ActivityEvent events.\n enum Action {\n Deposit,\n Withdraw\n }\n\n /// @dev Represents different status of actions triggering ActivityEvent events.\n enum Status {\n Queued,\n Cancelled,\n Success,\n Moved\n }\n\n /**\n * @notice Represents a withdrawal request in the queue.\n * @dev A request fits in a single storage slot (32 bytes).\n * @param account The account that initiated the request.\n * @param amount The amount of underlying tokens requested.\n */\n struct WithdrawalRequest {\n address account; // 20 bytes\n uint96 amount; // 12 bytes\n }\n\n /// @notice Upper limit of retention rate.\n uint32 private constant MAX_RETENTION_RATE_UD7x3 = 10 * 10 ** 3; // 10%\n\n /// @notice Upper limit of fees rate.\n uint32 private constant MAX_FEES_RATE_UD7x3 = 20 * 10 ** 3; // 20%\n\n /// @notice Used in activity events to represent the absence of request ID.\n int256 private constant NO_ID = -1;\n\n /// @notice Holds a reference to the LDYStaking contract.\n LDYStaking public ldyStaking;\n\n /// @notice Holds address of withdrawer wallet (managed by withdrawal server).\n address payable public withdrawer;\n\n /// @notice Holds address of fund wallet (managed by Ledgity financial team).\n address public fund;\n\n /// @notice Holds the withdrawal fees rate in UD7x3 format (e.g., 350 = 0.350%).\n uint32 public feesRateUD7x3;\n\n /// @notice Holds the retention rate in UD7x3 format.\n uint32 public retentionRateUD7x3;\n\n /// @notice Holds the amount of withdrawal fees not yet claimed by contract's owner.\n uint256 public unclaimedFees;\n\n /// @notice Holds the amount of L-Tokens currently in the withdrawal queue.\n uint256 public totalQueued;\n\n /**\n * @notice Holds the amount of underlying tokens considered as usable by the contract.\n * @dev Are usable, only underlying tokens deposit through deposit() or fund() functions.\n */\n uint256 public usableUnderlyings;\n\n /// @notice Holds an ordered list of active withdrawal requests.\n WithdrawalRequest[] public withdrawalQueue;\n\n /// @notice Holds the index of the next withdrawal request to process in the queue.\n uint256 public withdrawalQueueCursor;\n\n /**\n * @notice Holds a list of all currently frozen withdrawal requests.\n * @dev If a request emitter as been blacklisted, its request is moved here to prevent\n * it from blocking the queue.\n */\n WithdrawalRequest[] public frozenRequests;\n\n /**\n * @notice Holds a list of contracts' references that are listening to L-Tokens transfers.\n * @dev onLTokenTransfer() functions of those contracts will be called on each transfer.\n */\n ITransfersListener[] public transfersListeners;\n\n /**\n * @notice Emitted to inform listeners about a change in the contract's TVL.\n * @dev TVL = realTotalSupply()\n * @param newTVL The new TVL of the contract.\n */\n event TVLChangeEvent(uint256 newTVL);\n\n /**\n * @notice Emitted to inform listerners about an activity related to deposits and withdrawals.\n * @param id ID of the involved withdrawal request or NO_ID (-1) if not applicable.\n * @param account The account involved in the activity.\n * @param action The type of activity.\n * @param amount The amount of underlying tokens involved in the activity.\n * @param newStatus The new status of the activity.\n * @param newId The new ID of the request if it has been moved in the queue.\n */\n event ActivityEvent(\n int256 indexed id,\n address indexed account,\n Action indexed action,\n uint256 amount,\n uint256 amountAfterFees,\n Status newStatus,\n int256 newId\n );\n\n /**\n * @notice Emitted to inform listeners that some rewards have been minted.\n * @param account The account that received the rewards.\n * @param balanceBefore The balance of the account before the minting.\n * @param rewards The amount of minted rewards.\n */\n event MintedRewardsEvent(address indexed account, uint256 balanceBefore, uint256 rewards);\n\n /// @notice Reverts if the function caller is not the withdrawer wallet.\n modifier onlyWithdrawer() {\n require(_msgSender() == withdrawer, \"L39\");\n _;\n }\n\n /// @notice Reverts if the function caller is not the fund wallet.\n modifier onlyFund() {\n require(_msgSender() == fund, \"L40\");\n _;\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param underlyingToken The address of the underlying stablecoin ERC20 token.\n */\n function initialize(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address ldyStaking_,\n address underlyingToken\n ) public initializer {\n // Initialize ERC20 base.\n string memory underlyingSymbol = IERC20MetadataUpgradeable(underlyingToken).symbol();\n __ERC20Base_init(\n globalOwner_,\n globalPause_,\n globalBlacklist_,\n string(abi.encodePacked(\"Ledgity \", underlyingSymbol)),\n string(abi.encodePacked(\"L\", underlyingSymbol))\n );\n\n // IMPORTANT: Below calls must not be restricted to owner at any point.\n // This is because the GlobalOwner contract may not be a fresh one, and so\n // the contract deployer may not be the owner anymore after ERC20Base init.\n\n // Initialize other parents contracts.\n __ERC20Wrapper_init(IERC20Upgradeable(underlyingToken));\n __Invest_init_unchained(address(this));\n\n // Set LDYStaking contract\n ldyStaking = LDYStaking(ldyStaking_);\n\n // Set initial withdrawal fees rate to 0.3%\n feesRateUD7x3 = 300;\n\n // Set initial retention rate to 10%\n retentionRateUD7x3 = 10_000;\n\n // Default withdrawer and fund wallet to contract owner address. This prevents\n // any loss of funds if a deposit/withdrawal is made before those are manually set.\n withdrawer = payable(owner());\n fund = payable(owner());\n }\n\n /**\n * @notice Required override of decimals() which is implemented by both\n * ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts.\n * @dev The ERC20WrapperUpgradeable version is preferred because it mirrors the\n * decimals amount of the underlying stablecoin token.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function decimals()\n public\n view\n override(ERC20Upgradeable, ERC20WrapperUpgradeable)\n returns (uint8)\n {\n return ERC20WrapperUpgradeable.decimals();\n }\n\n /**\n * @notice Required override of paused() which is implemented by both\n * GlobalPausableUpgradeable and ERC20BaseUpgradeable parent contracts.\n * @dev Both version are the same as ERC20BaseUpgradeable.paused() mirrors\n * GlobalPausableUpgradeable.paused(), so a random one is chosen.\n * @inheritdoc GlobalPausableUpgradeable\n */\n function paused()\n public\n view\n virtual\n override(GlobalPausableUpgradeable, ERC20BaseUpgradeable)\n returns (bool)\n {\n return GlobalPausableUpgradeable.paused();\n }\n\n /**\n * @notice Updates the current withdrawal fee rate.\n * @param feesRateUD7x3_ The new withdrawal fee rate in UD7x3 format.\n */\n function setFeesRate(uint32 feesRateUD7x3_) public onlyOwner {\n require(feesRateUD7x3_ <= MAX_FEES_RATE_UD7x3, \"L88\");\n feesRateUD7x3 = feesRateUD7x3_;\n }\n\n /**\n * @notice Updates the current underlying token retention rate.\n * @dev The retention rate is capped at 10%, which ensures that no more than 10% of\n * deposited assets will ever be exposed in this contract (reduces attack surface).\n * @param retentionRateUD7x3_ The new retention rate in UD7x3 format.\n */\n function setRetentionRate(uint32 retentionRateUD7x3_) public onlyOwner {\n require(retentionRateUD7x3_ <= MAX_RETENTION_RATE_UD7x3, \"L41\");\n retentionRateUD7x3 = retentionRateUD7x3_;\n }\n\n /**\n * @notice Updates the address of LDYStaking contract.\n * @param ldyStakingAddress The address of the new LDYStaking contract.\n */\n function setLDYStaking(address ldyStakingAddress) public onlyOwner {\n ldyStaking = LDYStaking(ldyStakingAddress);\n }\n\n /**\n * @notice Updates the address of the withdrawer wallet.\n * @param withdrawer_ The address of the new withdrawer wallet.\n */\n function setWithdrawer(address payable withdrawer_) public onlyOwner {\n // Ensure address is not the zero address (pre-processing fees would be lost else)\n require(withdrawer_ != address(0), \"L63\");\n\n // Set new withdrawer wallet's address\n withdrawer = withdrawer_;\n }\n\n /**\n * @notice Updates the address of the fund wallet.\n * @param fund_ The address of the new fund wallet.\n */\n function setFund(address payable fund_) public onlyOwner {\n // Ensure address is not the zero address (deposited tokens would be lost else)\n require(fund_ != address(0), \"L64\");\n\n // Set new fund wallet's address\n fund = fund_;\n }\n\n /**\n * @notice Adds a new contract to the L-Token transfers list.\n * @dev Each time a transfer occurs, the onLTokenTransfer() function of the\n * specified contract will be called.\n * @dev IMPORTANT SECURITY NOTE: This method is not intended to be used with\n * contracts that are not owned by the Ledgity team.\n * @param listenerContract The address of the new transfers listener contract.\n */\n function listenToTransfers(address listenerContract) public onlyOwner {\n transfersListeners.push(ITransfersListener(listenerContract));\n }\n\n /**\n * @notice Removes a contract from the L-Token transfers list.\n * @dev The onLTokenTransfer() function of the specified contract will not be called\n * anymore each time a L-Token transfer occurs.\n * @param listenerContract The address of the listener contract.\n */\n function unlistenToTransfers(address listenerContract) public onlyOwner {\n // Find index of listener contract in transferListeners array\n int256 index = -1;\n uint256 transfersListenersLength = transfersListeners.length;\n for (uint256 i = 0; i < transfersListenersLength; i++) {\n if (address(transfersListeners[i]) == listenerContract) {\n index = int256(i);\n break;\n }\n }\n\n // Revert if given contract wasn't listening to transfers\n require(index > -1, \"L42\");\n\n // Else, remove transfers listener contract from listeners array\n transfersListeners[uint256(index)] = transfersListeners[transfersListenersLength - 1];\n transfersListeners.pop();\n }\n\n /**\n * @notice Retrieves the amount of given account's not yet minted rewards.\n * @dev This is a public implementation of InvestUpgradeable_rewardsOf(). In the\n * context of LToken, this function returns the amount of rewards that have not been\n * distributed/minted yet to the specified account.\n * @dev This is particularly useful for off-chain services to display charts and\n * statistics, as seen in the Ledgity Yield's frontend.\n * @param account The account to check the unminted rewards of.\n * @return The amount of account's unminted rewards.\n */\n function unmintedRewardsOf(address account) public view returns (uint256) {\n return _rewardsOf(account, true);\n }\n\n /**\n * @notice Retrieves the \"real\" balance of an account, i.e., excluding its not yet\n * minted/distributed rewards.\n * @param account The account to check the real balance of.\n * @return The real balance of the account.\n */\n function realBalanceOf(address account) public view returns (uint256) {\n return super.balanceOf(account);\n }\n\n /**\n * @notice Retrieves the total balance of L-Tokens that belong to the account.\n * @dev This is an oOverride of ERC20Upgradeable.balanceOf() that rewards that have\n * not been yet minted to the specified account.\n * @param account The account to check the total balance of.\n * @return The total balance of the account.\n */\n function balanceOf(address account) public view override returns (uint256) {\n return realBalanceOf(account) + unmintedRewardsOf(account);\n }\n\n /**\n * @notice Returns the \"real\" amount of existing L-Tokens, i.e., excluding not yet\n * minted withdrawal fees and L-Tokens currently in the withdrawal queue.\n * @return The real total supply of L-Tokens.\n */\n function realTotalSupply() public view returns (uint256) {\n return super.totalSupply();\n }\n\n /**\n * @notice Retrives the total supply of L-Tokens, including not yet minted withdrawal\n * fees and L-Tokens currently in the withdrawal queue.\n * @return The total supply of L-Tokens.\n */\n function totalSupply() public view override returns (uint256) {\n return realTotalSupply() + totalQueued + unclaimedFees;\n }\n\n /**\n * @notice Recovers a specified amount of a given token address.\n * @dev This override of RecoverableUpgradeable.recoverERC20() prevents the recovered\n * token from being the underlying token.\n * @inheritdoc RecoverableUpgradeable\n */\n function recoverERC20(address tokenAddress, uint256 amount) public override onlyOwner {\n // Ensure the token is not the underlying token\n require(tokenAddress != address(underlying()), \"L43\");\n\n // Proceed to recovery\n super.recoverERC20(tokenAddress, amount);\n }\n\n /**\n * @notice Recovers underlying tokens accidentally sent to the contract.\n * @dev To prevent owner from being able to drain the contract, this function only\n * allows recovering \"unusable\" underlying tokens, i.e., tokens that have not been\n * sent through fund() or deposit() functions.\n */\n function recoverUnderlying() external onlyOwner {\n // Compute the recoverable amount by taking the difference between the contract's\n // balance and the amount of usable underlying tokens\n uint256 recoverableAmount = underlying().balanceOf(address(this)) - usableUnderlyings;\n\n // Revert if there is nothing to recover\n require(recoverableAmount > 0, \"L44\");\n\n // Else, proceed to underlying tokens recovery\n super.recoverERC20(address(underlying()), recoverableAmount);\n }\n\n /**\n * @notice Retrieves the amount of underlying tokens invested by the given account.\n * @dev Implementing this function is required by the InvestUpgradeable contract. In\n * LToken contract, the investment of an account is equal to its real balance.\n * @inheritdoc InvestUpgradeable\n */\n function _investmentOf(address account) internal view override returns (uint256) {\n return realBalanceOf(account);\n }\n\n /**\n * @notice Distributes a specified amount of rewards (in L-Tokens) to a given account.\n * @dev Implementing this function is required by the InvestUpgradeable contract so\n * it can distribute rewards to accounts before each period reset.\n * @dev InvestUpgradeable contract already ensure that amount > 0.\n * @inheritdoc InvestUpgradeable\n */\n function _distributeRewards(address account, uint256 amount) internal override returns (bool) {\n // Inform listeners of the rewards minting\n emit MintedRewardsEvent(account, realBalanceOf(account), amount);\n\n // Mint L-Tokens rewards to account\n _mint(account, amount);\n\n // Return true indicating to InvestUpgradeable that the rewards have been distributed\n return true;\n }\n\n /**\n * @notice Override of ERC20._beforeTokenTransfer() to integrate with InvestUpgradeable.\n * @dev This overriden version ensure that _beforeInvestmentChange() hook is properly\n * called each time an account's balance is going to change.\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\n * already included in ERC20BaseUpgradeable._beforeTokenTransfer().\n * @inheritdoc ERC20BaseUpgradeable\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal override(ERC20Upgradeable, ERC20BaseUpgradeable) {\n ERC20BaseUpgradeable._beforeTokenTransfer(from, to, amount);\n\n // Invoke _beforeInvestmentChange() hook for non-zero accounts\n if (from != address(0)) _beforeInvestmentChange(from, true);\n if (to != address(0)) _beforeInvestmentChange(to, true);\n }\n\n /**\n * @notice Override of ERC20._afterTokenTransfer() to notify all transfers listeners.\n * @dev This overriden version will trigger onLTokenTransfer() functions of all\n * transfers listeners.\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\n * already checked in _beforeTokenTransfer().\n * @inheritdoc ERC20Upgradeable\n */\n function _afterTokenTransfer(address from, address to, uint256 amount) internal override {\n super._afterTokenTransfer(from, to, amount);\n\n // If some L-Token have been burned/minted, inform listeners of a TVL change\n if (from == address(0) || to == address(0)) emit TVLChangeEvent(totalSupply());\n\n // Trigger onLTokenTransfer() functions of all the transfers listeners\n for (uint256 i = 0; i < transfersListeners.length; i++) {\n transfersListeners[i].onLTokenTransfer(from, to, amount);\n }\n }\n\n /**\n * @notice Computes the maximum amount of underlying tokens that should be retained\n * by the contract (based on retention rate).\n * @return amount The expected amount of retained underlying tokens.\n */\n function getExpectedRetained() public view returns (uint256 amount) {\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Convert totalSupply and retentionRate to SUD\n uint256 totalSupplySUD = SUD.fromAmount(totalSupply(), d);\n uint256 retentionRateSUD = SUD.fromRate(retentionRateUD7x3, d);\n\n // Compute and return expected retained amount\n uint256 expectedRetainedSUD = (totalSupplySUD * retentionRateSUD) / SUD.fromInt(100, d);\n return SUD.toAmount(expectedRetainedSUD, d);\n }\n\n /// @notice Transfers underlying tokens exceeding the retention rate to the fund wallet.\n function _transferExceedingToFund() internal {\n // Retrieve the expected amount retained\n uint256 expectedRetained = getExpectedRetained();\n\n // If usable underlyings are less than or equal to expected retained, return\n if (usableUnderlyings <= expectedRetained) return;\n\n // Else, exceeding amount is equal to difference between those values\n uint256 exceedingAmount = usableUnderlyings - expectedRetained;\n\n // Decrease usable underlyings amount accordingly\n usableUnderlyings -= exceedingAmount;\n\n // Transfer the exceeding amount to the fund wallet\n underlying().safeTransfer(fund, exceedingAmount);\n }\n\n /**\n * @notice Override of ERC20WrapperUpgradeable.withdrawTo() that reverts.\n * Use instantWithdrawal() or requestWithdrawal() functions instead.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function withdrawTo(address account, uint256 amount) public pure override returns (bool) {\n account; // Silence unused variable compiler warning\n amount;\n revert(\"L45\");\n }\n\n /**\n * @notice Override of ERC20WrapperUpgradeable.depositFor() that reverts.\n * Use deposit() function instead.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function depositFor(address account, uint256 amount) public pure override returns (bool) {\n account; // Silence unused variable compiler warning\n amount;\n revert(\"L46\");\n }\n\n /**\n * @notice Allows exchanging some underlying tokens for the same amount of L-Tokens.\n * @param amount The amount of underlying tokens to deposit.\n */\n function deposit(uint256 amount) public whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough underlying tokens to deposit\n require(underlying().balanceOf(_msgSender()) >= amount, \"L47\");\n\n // Update usable underlyings balance accordingly\n usableUnderlyings += amount;\n\n // Inform listeners of the deposit activity event\n emit ActivityEvent(\n NO_ID,\n _msgSender(),\n Action.Deposit,\n amount,\n amount,\n Status.Success,\n NO_ID\n );\n\n // Receive underlying tokens and mint L-Tokens to the account in a 1:1 ratio\n super.depositFor(_msgSender(), amount);\n\n // Transfer exceeding underlying tokens to the fund wallet\n _transferExceedingToFund();\n }\n\n /**\n * @notice Computes fees and net withdrawn amount for a given account withdrawing a\n * given amount.\n * @param account The account initiating the withdrawal.\n * @param amount The amount of the withdrawal.\n */\n function getWithdrawnAmountAndFees(\n address account,\n uint256 amount\n ) public view returns (uint256 withdrawnAmount, uint256 fees) {\n // If the account is eligible to staking tier 2, no fees are applied\n if (ldyStaking.tierOf(account) >= 2) return (amount, 0);\n\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Convert amount and fees rate to SUD\n uint256 amountSUD = SUD.fromAmount(amount, d);\n uint256 feesRateSUD = SUD.fromRate(feesRateUD7x3, d);\n\n // Compute fees and withdrawn amount (initial amount minus fees)\n uint256 feesSUD = (amountSUD * feesRateSUD) / SUD.fromInt(100, d);\n fees = SUD.toAmount(feesSUD, d);\n withdrawnAmount = amount - fees;\n }\n\n /**\n * @notice Allows instaneously exchanging a given amount of L-Tokens for the same\n * amount of underlying tokens. It will fail if the contract currently doesn't hold\n * enough underlying tokens to cover the withdrawal.\n * @dev In order to save some gas and time to users, frontends should propose this\n * function to users only when it has been verified that it will not revert. They\n * should propose the requestWithdrawal() function otherwise.\n * @param amount The amount L-Tokens to withdraw.\n */\n function instantWithdrawal(uint256 amount) external whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough L-Tokens to withdraw\n require(amount <= balanceOf(_msgSender()), \"L48\");\n\n // Can the contract cover this withdrawal plus all already queued requests?\n bool cond1 = totalQueued + amount <= usableUnderlyings;\n\n // Is caller eligible to staking tier 2 and the contract can cover this withdrawal?\n bool cond2 = ldyStaking.tierOf(_msgSender()) >= 2 && amount <= usableUnderlyings;\n\n // Revert if conditions are not met for the withdrawal to be processed instantaneously\n if (!(cond1 || cond2)) revert(\"L49\");\n\n // Else, retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(_msgSender(), amount);\n\n // Increase unclaimed fees amount accordingly\n unclaimedFees += fees;\n\n // Decrease usable underlyings balance accordingly\n usableUnderlyings -= withdrawnAmount;\n\n // Inform listeners of this instant withdrawal activity event\n emit ActivityEvent(\n NO_ID,\n _msgSender(),\n Action.Withdraw,\n amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Burn withdrawal fees from the account\n _burn(_msgSender(), fees);\n\n // Burn account's withdrawn L-Tokens and transfer to it underlying tokens in a 1:1 ratio\n super.withdrawTo(_msgSender(), withdrawnAmount);\n }\n\n /**\n * @notice Allows requesting the exchange of a given amount of L-Tokens for the same\n * amount of underlying tokens. The request will be automatically processed later.\n * @dev The sender must attach 0.003 ETH to pre-pay the future processing gas fees\n * paid by the withdrawer wallet.\n * @param amount The amount L-Tokens to withdraw.\n */\n function requestWithdrawal(\n uint256 amount\n ) public payable whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough L-Tokens to withdraw\n require(amount <= balanceOf(_msgSender()), \"L53\");\n\n // Ensure the requested amount doesn't overflow uint96\n require(amount <= type(uint96).max, \"L54\");\n\n // Ensure the sender attached the pre-paid processing gas fees\n require(msg.value == 0.003 * 10 ** 18, \"L55\");\n\n // Create withdrawal request data\n WithdrawalRequest memory request = WithdrawalRequest({\n account: _msgSender(),\n amount: uint96(amount)\n });\n\n // Will hold the request ID\n uint256 requestId;\n\n // Append request to the withdrawal queue:\n // - At the beginning, if account is eligible to staking tier 2 and cursor is not 0\n if (ldyStaking.tierOf(_msgSender()) >= 2 && withdrawalQueueCursor > 0) {\n withdrawalQueueCursor--;\n requestId = withdrawalQueueCursor;\n withdrawalQueue[requestId] = request;\n }\n // - At the end else\n else {\n withdrawalQueue.push(request);\n requestId = withdrawalQueue.length - 1;\n }\n\n // Increase total amount queued accordingly\n totalQueued += amount;\n\n // Inform listeners of this new queued withdrawal activity event\n emit ActivityEvent(\n int256(requestId),\n _msgSender(),\n Action.Withdraw,\n amount,\n amount,\n Status.Queued,\n NO_ID\n );\n\n // Burn withdrawal L-Tokens amount from account's balance\n _burn(_msgSender(), amount);\n\n // Forward pre-paid processing gas fees to the withdrawer wallet\n (bool sent, ) = withdrawer.call{value: msg.value}(\"\");\n require(sent, \"L56\");\n }\n\n /**\n * @notice Processes queued withdrawal requests until there is else no more requests,\n * else not enough underlying tokens to continue.\n * @dev For further details, see \"LToken > Withdrawals\" section of whitepaper.\n */\n function processQueuedRequests() external onlyWithdrawer whenNotPaused {\n // Accumulators variables, will be written on-chain after the loop\n uint256 cumulatedFees = 0;\n uint256 cumulatedWithdrawnAmount = 0;\n uint256 nextRequestId = withdrawalQueueCursor;\n\n // Cache queue length to avoid multiple SLOADs and avoid infinite loop as big\n // requests are increasing the queue length when moved at the end of the queue.\n uint256 queueLength = withdrawalQueue.length;\n\n // Iterate over requests to be processed\n while (nextRequestId < queueLength) {\n // Stop processing requests if there is not enough gas left to continue the\n // loop and properly end the function call. This prevents an attacker from\n // blocking the withdrawal processing by creating a ton of tiny requests so\n // this function call cannot fit anymore in block gas limit.\n if (gasleft() < 45000) break;\n\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[nextRequestId];\n\n // Skip empty request (processed big requests or cancelled requests)\n if (request.account == address(0)) {}\n //\n // If account has been blacklisted since request emission\n else if (isBlacklisted(request.account)) {\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Append request in the frozen requests list\n frozenRequests.push(request);\n }\n //\n // Or if request is a big request, move it at the end of the queue for now.\n // This request will be processed manually later using processBigQueuedRequest()\n else if (request.amount > getExpectedRetained() / 2) {\n // Inform listeners of this queued request being moved at the end of the queue\n emit ActivityEvent(\n int256(nextRequestId),\n _msgSender(),\n Action.Withdraw,\n request.amount,\n request.amount,\n Status.Moved,\n int256(withdrawalQueue.length)\n );\n\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Append request at the end of the queue\n withdrawalQueue.push(request);\n }\n //\n // Else, continue request processing\n else {\n // Retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\n request.account,\n request.amount\n );\n\n // Break if the contract doesn't hold enough funds to cover the request\n if (withdrawnAmount > usableUnderlyings - cumulatedWithdrawnAmount) break;\n\n // Accumulate fees and withdrawn amount\n cumulatedFees += fees;\n cumulatedWithdrawnAmount += withdrawnAmount;\n\n // Inform listeners of this queued withdrawal processing activity event\n emit ActivityEvent(\n int256(nextRequestId),\n request.account,\n Action.Withdraw,\n request.amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Transfer underlying tokens to account. Burning L-Tokens is not required\n // as equestWithdrawal() already did it.\n // Security note: Re-entrancy warning are disabled as the request has\n // just been deleted from the queue, it will so be skipped if trying to\n // process it again.\n // slither-disable-next-line reentrancy-no-eth\n underlying().safeTransfer(request.account, withdrawnAmount);\n }\n\n // Increment next request ID\n nextRequestId++;\n }\n\n // Increase unclaimed fees by the amount of cumulated fees\n unclaimedFees += cumulatedFees;\n\n // Decrease usable underlyings by the cumulated amount of withdrawn underlyings\n usableUnderlyings -= cumulatedWithdrawnAmount;\n\n // Decrease total amount queued by the cumulated amount requested\n totalQueued -= cumulatedWithdrawnAmount + cumulatedFees;\n\n // Update new queue cursor\n withdrawalQueueCursor = nextRequestId;\n\n // Retention rate cannot exceeds as the withdrawal decreases both usable\n // underlyings and expected retained amounts by the same number and as the\n // expected retained amount is a subset of usable underlyings amount.\n }\n\n /**\n * @notice Processes a given queued big withdrawal request (one that exceeds half of\n * the retention rate).\n * @dev In contrast to non-big requests processing, this function will uses to fund\n * wallet's balance to fill the request. This allows processing requests that are\n * greater than retention rate without having to exceed this rate on the contract.\n * @param requestId The ID of the big request to process.\n */\n function processBigQueuedRequest(uint256 requestId) external onlyFund whenNotPaused {\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[requestId];\n\n // Ensure the request is active\n require(request.account != address(0), \"L66\");\n\n // Ensure the request emitter has not been blacklisted since request emission\n require(!isBlacklisted(request.account), \"L50\");\n\n // Ensure this is indeed a big request\n require(request.amount > getExpectedRetained() / 2, \"L51\");\n\n // Retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\n request.account,\n request.amount\n );\n\n // Ensure withdrawn amount can be covered by contract + fund wallet balances\n uint256 fundBalance = underlying().balanceOf(fund);\n require(withdrawnAmount <= usableUnderlyings + fundBalance, \"L52\");\n\n // Increase amount of unclaimed fees accordingly\n unclaimedFees += fees;\n\n // Decrease total queued amount by request amount\n totalQueued -= request.amount;\n\n // Increment queue cursor if request was the next request to be processed\n if (requestId == withdrawalQueueCursor) withdrawalQueueCursor++;\n\n // Inform listeners of this queued withdrawal processing activity event\n emit ActivityEvent(\n int256(requestId),\n request.account,\n Action.Withdraw,\n request.amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Remove request from queue\n delete withdrawalQueue[requestId];\n\n // If fund wallet's balance can cover request, rely on it only\n if (withdrawnAmount <= fundBalance) {\n underlying().safeTransferFrom(_msgSender(), request.account, withdrawnAmount);\n }\n // Else, cover request from both fund wallet and contract balances\n else {\n // Compute amount missing from fund wallet to cover request\n uint256 missingAmount = withdrawnAmount - fundBalance;\n\n // Decrease usable amount of underlying tokens accordingly\n usableUnderlyings -= missingAmount;\n\n // Transfer entire fund balance to request's emitter\n underlying().safeTransferFrom(_msgSender(), request.account, fundBalance);\n\n // Transfer missing amount from contract balance to request emitter\n underlying().safeTransfer(request.account, missingAmount);\n }\n\n // Transfer exceeding underlying tokens to the fund wallet\n _transferExceedingToFund();\n }\n\n /**\n * @notice Cancels a given withdrawal request. The request emitter receive back its\n * L-Tokens and no fees will be charged.\n * @param requestId The ID of the withdrawal request to cancel.\n */\n function cancelWithdrawalRequest(\n uint256 requestId\n ) public whenNotPaused notBlacklisted(_msgSender()) {\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[requestId];\n\n // Ensure request belongs to caller\n require(_msgSender() == request.account, \"L57\");\n\n // Decrease total amount queued accordingly\n totalQueued -= request.amount;\n\n // Delete the withdrawal request from queue\n delete withdrawalQueue[requestId];\n\n // Inform listeners of this cancelled withdrawal request activity event\n emit ActivityEvent(\n int256(requestId),\n request.account,\n Action.Withdraw,\n request.amount,\n request.amount,\n Status.Cancelled,\n NO_ID\n );\n\n // Mint back L-Tokens to account\n _mint(request.account, uint256(request.amount));\n }\n\n /**\n * @notice Used by the fund wallet to repatriate underlying tokens on the contract\n * whenever those are required to fulfill some withdrawal requests.\n * @dev The function will revert if repatriated amount makes the contract exceeding\n * the retention rate.\n * @param amount The amount of underlying tokens to repatriate.\n */\n function repatriate(uint256 amount) external onlyFund whenNotPaused {\n // Ensure the fund wallet has enough funds to repatriate\n require(amount <= underlying().balanceOf(fund), \"L58\");\n\n // Calculate new contract usable balance\n uint256 newBalance = usableUnderlyings + amount;\n\n // Ensure the new balance doesn't exceed the retention rate\n require(newBalance <= getExpectedRetained(), \"L59\");\n\n // Increase usable underlyings amount by repatriated amount\n usableUnderlyings += amount;\n\n // Transfer amount from fund wallet to contract\n underlying().safeTransferFrom(_msgSender(), address(this), amount);\n }\n\n /// @notice Used by owner to claim fees generated from successful withdrawals.\n function claimFees() external onlyOwner {\n // Ensure there are some fees to claim\n require(unclaimedFees > 0, \"L60\");\n\n // Ensure the contract holds enough underlying tokens to cover fees\n require(usableUnderlyings >= unclaimedFees, \"L61\");\n\n // Decrease usable underlyings amount accordingly\n usableUnderlyings -= unclaimedFees;\n\n // Store fees amount in memory and reset unclaimed fees amount\n uint256 fees = unclaimedFees;\n unclaimedFees = 0;\n\n // Transfer unclaimed fees to owner\n underlying().safeTransfer(owner(), fees);\n }\n}\n" - }, - "contracts/src/LTokenSignaler.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./abstracts/GlobalOwnableUpgradeable.sol\";\n\n/**\n * @title LTokenSignaler\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Used to inform subgraph from the existence of a new L-Token contract. Once\n * signaled, a L-Token will start being indexed.\n *\n * @dev Signal are ignored by the subgraph if the L-Token is already known by it.\n *\n * @custom:security-contact security@ledgity.com\n */\ncontract LTokenSignaler is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\n /**\n * @notice Emitted to inform subgraph of the existence of a new L-Token contract.\n * @param lTokenAddress The address of the L-Token contract to signal.\n */\n event LTokenSignalEvent(address indexed lTokenAddress);\n\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n */\n function initialize(address globalOwner_) public initializer {\n __GlobalOwnable_init(globalOwner_);\n __UUPSUpgradeable_init();\n }\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n\n /**\n * @notice Signals a LToken contract to the TheGraph subgraph of the current chain.\n * @param lTokenAddress The address of the LToken contract to signal.\n */\n function signalLToken(address lTokenAddress) external onlyOwner {\n // Signal the LToken contract\n emit LTokenSignalEvent(lTokenAddress);\n }\n}\n" - }, - "contracts/src/PreMining.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {LToken} from \"./LToken.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {Pausable} from \"@openzeppelin/contracts/security/Pausable.sol\";\n\n/**\n * @title PreMining\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n\n * @notice PreMining pool contract, allowing accounts to lock underlying tokens in a \n * pre-defined L-Token contract, over a given duration (in months), in exchange of \n * vested LDY rewards.\n * \n * @dev Intuition\n * \n * Lifecycle of a lockdrop pool is composed by 3 main phases:\n * 1) Deposit: During this phase, users can lock their underlying tokens.\n * 2) Claim: During this phase, users can claim their LDY rewards.\n * 3) Recovery: During this phase, owner can recover remaining ERC20 on the contract.\n * \n * Transitioning between two phases is manually triggered by contract's owner.\n * To ensure fair usage of this power and prevent potential misuse:\n * - the Recovery phase cannot start before 3 months after the end of rewards vesting,\n * - the Recovery phase cannot start before 3 months after the maximum lock end.\n * \n * Finally, note that this contract proxies main L-Token contract's functions:\n * - lock() --> deposit()\n * - instantUnlock() --> instantWithdrawal()\n * - requestUnlock() --> requestWithdrawal()\n * This design enables users to interact with the PreMining contract in a similar fashion\n * to the L-Token contract.\n * \n * @dev Definitions:\n * - Locker: An account that has locked underlying tokens in the pool.\n * \n * @custom:security-contact security@ledgity.com\n */\ncontract PreMining is Ownable2Step, Pausable {\n using SafeERC20 for IERC20;\n\n /**\n * @notice Represents the lock information of an account.\n * @param amount Amount of underlying tokens locked.\n * @param duration Duration of the lock (in months).\n * @param hasUnlocked Whether the account has unlocked its locked tokens.\n * @param claimedRewards Amount of LDY rewards already claimed.\n * @param lockEndTimestamp Timestamp at which the account's lock ends.\n */\n struct AccountLock {\n uint240 amount;\n uint8 duration;\n bool hasUnlocked;\n uint216 claimedRewards;\n uint40 lockEndTimestamp;\n }\n\n /// @notice Holds the amount of LDY to be distributed to lockers.\n uint256 public immutable maxDistributedLDY;\n\n /// @notice Holds the maximum total amount of L-Tokens that can be locked.\n uint256 public immutable lockedHardCap;\n\n /// @notice Holds the minimum possible lock duration (in months).\n uint8 public immutable minLockDuration;\n\n /// @notice Holds the maximum possible lock duration (in months).\n uint8 public immutable maxLockDuration;\n\n /// @notice Holds the duration of LDY rewards vesting (in months).\n uint8 public immutable vestingDuration;\n\n /// @notice Holds a reference to the locked L-Token contract.\n LToken public immutable lToken;\n\n /// @notice Holds a reference to the L-Token underlying stablecoin.\n IERC20 public immutable underlyingToken;\n\n /// @notice Holds the max pool weight.\n uint256 public immutable maxWeight;\n\n /// @notice Holds a reference to the LDY token contract.\n IERC20 public ldyToken;\n\n /// @notice Holds lockers' participations informations.\n mapping(address => AccountLock) public accountsLocks;\n\n /// @notice Holds the total amount of locked underlying tokens.\n uint256 public totalLocked;\n\n /// @notice Holds whether the Deposit phase has ended.\n bool public hasDepositPhaseEnded;\n\n /// @notice Holds whether the Claim phase has started.\n bool public hasClaimPhaseStarted;\n\n /// @notice Holds whether the Recovery phase has started.\n bool public hasRecoveryPhaseStarted;\n\n /// @notice Holds the timestamp at which the Claim phase started.\n uint256 public claimPhaseStartTimestamp;\n\n /// @notice Holds an ordered queue of accounts that requested to unlock their tokens.\n address[] public unlockRequests;\n\n /// @notice Holds the index of the first request in the queue (a.k.a, next one to be processed).\n uint256 public unlockRequestsCursor;\n\n /// @notice Emitted to inform about a new lock/deposit.\n event Lock(address indexed account, uint256 amount, uint8 duration);\n\n /// @notice Top-level checks and code shared by both unlock functions.\n modifier safeUnlock() {\n // Ensure that the account's lock has ended\n require(accountsLocks[msg.sender].lockEndTimestamp <= block.timestamp, \"L68\");\n\n // Ensure the account hasn't already unlocked its tokens\n require(!accountsLocks[msg.sender].hasUnlocked, \"L69\");\n\n // Ensure the account has something to unlock\n require(accountsLocks[msg.sender].amount > 0, \"L70\");\n\n // Indicate that account has unlocked its tokens\n accountsLocks[msg.sender].hasUnlocked = true;\n _;\n }\n\n /**\n * @notice This constructor function etches the lockdrop terms in immutable states.\n * Ensuring that those terms cannot be modified after deployment.\n * @param lTokenAddress_ Address of the L-Token contract to use.\n * @param maxDistributedLDY_ Amount of LDY to be distributed to lockers.\n * @param lockedHardCap_ Maximum total amount of L-Tokens that can be locked.\n * @param minLockDuration_ Minimum possible lock duration (in months).\n * @param maxLockDuration_ Maximum possible lock duration (in months).\n * @param vestingDuration_ Duration of LDY rewards vesting (in months).\n */\n constructor(\n address lTokenAddress_,\n uint256 maxDistributedLDY_,\n uint256 lockedHardCap_,\n uint8 minLockDuration_,\n uint8 maxLockDuration_,\n uint8 vestingDuration_\n ) {\n // Ensure minLockDuration is at least 1 month\n require(minLockDuration_ >= 1, \"L72\");\n\n // Ensure minLockDuration is not greater than maxLockDuration\n require(minLockDuration_ <= maxLockDuration_, \"L73\");\n\n // Set immutable states\n lToken = LToken(lTokenAddress_);\n underlyingToken = IERC20(address(lToken.underlying()));\n lockedHardCap = lockedHardCap_;\n maxDistributedLDY = maxDistributedLDY_;\n minLockDuration = minLockDuration_;\n maxLockDuration = maxLockDuration_;\n vestingDuration = vestingDuration_;\n maxWeight = lockedHardCap * uint256(maxLockDuration);\n }\n\n /**\n * @notice Public implementation of Pausable's pausing and unpausing functions, but\n * restricted to contract's owner.\n */\n function pause() public onlyOwner {\n _pause();\n }\n\n function unpause() public onlyOwner {\n _unpause();\n }\n\n /**\n * @notice Updates the LDY token contract address.\n * @dev As the first Ledgity Yield lockdrop campaigns will start before the LDY TGE,\n * this function allows the contract's owner to set the LDY token address once it\n * becomes available.\n * @param ldyTokenAddress Address of the LDY token contract.\n */\n function setLDYToken(address ldyTokenAddress) external onlyOwner {\n // Prevent owner from changing the LDY address after Claim phase has started\n require(!hasClaimPhaseStarted, \"L74\");\n\n // Set LDY token address\n ldyToken = IERC20(ldyTokenAddress);\n }\n\n /**\n * @notice Closes the Deposit phase. After calling this function, account won't be\n * able to lock additional underlying tokens anymore.\n */\n function endDepositPhase() external onlyOwner {\n hasDepositPhaseEnded = true;\n }\n\n /**\n * @notice Opens the Claim phase. After calling this function, lockers will be able\n * to start claiming their LDY rewards.\n */\n function startClaimPhase() external onlyOwner {\n // Ensure Claim phase has not already started\n require(!hasClaimPhaseStarted, \"L76\");\n\n // Ensure that LDY token address is available\n require(address(ldyToken) != address(0), \"L77\");\n\n // Set Claim phase as started and store the start timestamp\n hasClaimPhaseStarted = true;\n claimPhaseStartTimestamp = block.timestamp;\n }\n\n /**\n * @notice Opens the Recovery phase. After calling this function, the contract owner\n * will be able to recover remaining ERC20 tokens on the contract.\n * Note that this won't close the Claim phase and lockers will still be able to claim\n * their LDY rewards.\n */\n function startRecoveryPhase() external onlyOwner {\n // Ensure Claim phase has started\n require(hasClaimPhaseStarted, \"L79\");\n\n // Compute some durations in seconds\n uint256 threeMonthsInSecond = 3 * 30 days;\n uint256 vestingInSecond = uint256(vestingDuration) * 30 days;\n uint256 maxLockInSecond = uint256(maxLockDuration) * 30 days;\n\n // Compute timestamp of vesting end + 3 months\n uint256 afterVestingTimestamp = claimPhaseStartTimestamp +\n vestingInSecond +\n threeMonthsInSecond;\n\n // Ensure we are at least 3 months after the end of reward vesting\n // This prevents owner from recovering LDY before lockers can claim their rewards\n require(block.timestamp >= afterVestingTimestamp, \"L80\");\n\n // Compute end of maximum lock + 3 months\n // Note that claimPhaseStartTimestamp is used for simplicity even if it can exist a time\n // span between Deposit and Claim phases.\n uint256 afterMaxLockTimestamp = claimPhaseStartTimestamp +\n maxLockInSecond +\n threeMonthsInSecond;\n\n // Ensure we are at least 3 months after the maximum lock end\n // This prevents owner from recovering underlying tokens before lockers can unlock those\n require(block.timestamp >= afterMaxLockTimestamp, \"L81\");\n\n // Set recovery phase as started\n hasRecoveryPhaseStarted = true;\n }\n\n /**\n * @notice Recovers a specified amount of a given token address. Will revert if\n * recovery phase has not started yet or if the contract doesn't hold enough tokens.\n * @param tokenAddress The address of the token to recover.\n * @param amount The amount of token to recover.\n */\n function recoverERC20(address tokenAddress, uint256 amount) external onlyOwner {\n // Ensure recovery phase has started\n require(hasRecoveryPhaseStarted, \"L82\");\n\n // Create a reference to token's contract\n IERC20 tokenContract = IERC20(tokenAddress);\n\n // Ensure there is enough tokens to recover\n require(tokenContract.balanceOf(address(this)) >= amount, \"L83\");\n\n // Transfer the recovered token amount to the sender (owner)\n tokenContract.safeTransfer(msg.sender, amount);\n }\n\n /**\n * @notice Compute the total amount of LDY rewards that a given account is eligible to.\n * @dev Note: This function neither considers vesting nor already claimed rewards.\n * @param account The account to compute the eligible rewards of.\n * @return The total amount of LDY rewards that the account is eligible to.\n */\n function eligibleRewardsOf(address account) public view returns (uint256) {\n // Compute account's lock weight\n uint256 lockerWeight = accountsLocks[account].amount * accountsLocks[account].duration;\n\n // Compute amount of LDY that this locker is eligible to\n if (maxWeight == 0) return 0;\n else return (maxDistributedLDY * lockerWeight) / maxWeight;\n }\n\n /**\n * @notice Allows locking a specified amount of underlying tokens for a given duration.\n * By locking, an account became eligible to a portion of the distributed LDY rewards.\n * @dev This function proxies LToken.deposit()\n * @dev Lockers can extend their lock duration by calling this function again with a\n * greater duration and 0 as amount.\n * @param amount Amount of underlying tokens to lock.\n * @param duration Duration of the lock (in months).\n */\n function lock(uint256 amount, uint8 duration) external whenNotPaused {\n // Ensure Deposit phase has not ended yet\n require(!hasDepositPhaseEnded, \"L84\");\n\n // Ensure account hasn't already unlocked a past lock\n require(!accountsLocks[msg.sender].hasUnlocked, \"L71\");\n\n // Ensure lock duration is in valid range\n require(duration >= minLockDuration && duration <= maxLockDuration, \"L85\");\n\n // Ensure it won't exceed the hardcap\n require(totalLocked + amount <= uint256(lockedHardCap), \"L86\");\n\n // Increase account's locked amount\n accountsLocks[msg.sender].amount += uint240(amount);\n\n // Increase total locked amount accordingly\n totalLocked += amount;\n\n // Use existing lock duration if greater than the new one\n uint8 existingDuration = accountsLocks[msg.sender].duration;\n uint8 appliedDuration = existingDuration > duration ? existingDuration : duration;\n\n // Update account's lock duration\n accountsLocks[msg.sender].duration = appliedDuration;\n\n // Update account's lock end timestamp\n accountsLocks[msg.sender].lockEndTimestamp = uint40(\n block.timestamp + uint40(appliedDuration) * 30 days\n );\n\n // Emit a Lock event\n emit Lock(msg.sender, amount, appliedDuration);\n\n // If amount is 0, skip deposit\n if (amount == 0) return;\n\n // Transfer underlyingToken from account to contract\n underlyingToken.safeTransferFrom(msg.sender, address(this), amount);\n\n // Deposit USDC in the L-Token contract\n underlyingToken.safeApprove(address(lToken), amount);\n lToken.deposit(amount);\n }\n\n /**\n * @notice Allows the caller to instaneously unlock its locked amount of underlying\n * tokens.\n * @dev In order to save some gas and time to users, frontends should propose this\n * function to users only when it has been verified that it will not revert. They\n * should propose the requestUnlock() function otherwise.\n */\n function instantUnlock() external whenNotPaused safeUnlock {\n // Retrieve underlying tokens from the L-Token contract\n uint256 unlockedAmount = accountsLocks[msg.sender].amount;\n lToken.instantWithdrawal(unlockedAmount);\n\n // Transfer underlying tokens back to caller\n underlyingToken.safeTransfer(msg.sender, unlockedAmount);\n }\n\n /**\n * @notice Allows the call to request for the unlocking of its locked amount of\n * underlying tokens. The request will be automatically processed later.\n * @dev The sender must attach 0.003 ETH to pre-pay the future processing gas fees\n * paid by the withdrawer wallet.\n */\n function requestUnlock() external payable whenNotPaused safeUnlock {\n // Put account in the unlock requests queue\n unlockRequests.push(msg.sender);\n\n // Request underlying tokens to the L-Token contract\n uint256 unlockedAmount = accountsLocks[msg.sender].amount;\n lToken.requestWithdrawal{value: msg.value}(unlockedAmount);\n }\n\n /**\n * @notice Processes queued unlock requests until there is else no more requests,\n * else not enough underlying tokens to continue.\n */\n function processUnlockRequests() external onlyOwner {\n // Store the current request ID to process\n uint256 processedId = unlockRequestsCursor;\n\n // Loop over remaining requests\n while (processedId < unlockRequests.length) {\n // Prevent OOG by stopping request processing if there is not enough gas left\n // to continue the loop and properly end the function call.\n if (gasleft() < 45000) break;\n\n // Retrieve the request account\n address unlockAccount = unlockRequests[processedId];\n\n // Retrieve the unlocked amount\n uint256 unlockAmount = accountsLocks[unlockAccount].amount;\n\n // If the request has already been processed, skip it\n if (unlockAccount != address(0)) {\n // If the contract doesn't hold enough underlying tokens to process the request, stop here\n if (underlyingToken.balanceOf(address(this)) < unlockAmount) break;\n\n // Delete the request\n delete unlockRequests[processedId];\n\n // Transfer underlying back to account\n underlyingToken.safeTransfer(unlockAccount, unlockAmount);\n }\n\n // Increment processed request ID\n processedId++;\n }\n\n // Write back the cursor in storage\n unlockRequestsCursor = processedId;\n }\n\n /**\n * @notice Computes the amount of LDY rewards available to claim for a given account.\n * @dev This function considers vesting and already claimed rewards.\n * @param account The account to compute the available rewards of.\n * @return The amount of LDY rewards available to claim.\n */\n function availableToClaim(address account) public view returns (uint256) {\n // Compute total amount of rewards allocated to this locker\n uint256 totalEligibleRewards = eligibleRewardsOf(account);\n\n // Compute vesting duration in seconds\n uint256 vestingInSeconds = uint256(vestingDuration) * 30 days;\n\n // Compute elapsed months since claim phase started, and cap it to vesting duration\n uint256 elapsedTime = block.timestamp - claimPhaseStartTimestamp;\n if (elapsedTime > vestingInSeconds) elapsedTime = vestingInSeconds;\n\n // Compute total available to claim (proportionally to elapsed time)\n uint256 totalAvailableToClaim = (totalEligibleRewards * elapsedTime) / vestingInSeconds;\n\n // Else return net claimable (available minus already claimed)\n return totalAvailableToClaim - accountsLocks[account].claimedRewards;\n }\n\n /// @notice Allows the caller to claim its available LDY rewards.\n function claimRewards() external whenNotPaused {\n // Ensure Claim phase has started\n require(hasClaimPhaseStarted, \"L87\");\n\n // Compute claimable LDY rewards\n uint256 claimableLDY = availableToClaim(msg.sender);\n\n // Increase account claimed amount accordingly\n accountsLocks[msg.sender].claimedRewards += uint216(claimableLDY);\n\n // Transfer rewards to account\n ldyToken.safeTransfer(msg.sender, claimableLDY);\n }\n}\n" - } - }, - "settings": { - "evmVersion": "london", - "optimizer": { - "enabled": true, - "runs": 200 - }, - "outputSelection": { - "*": { - "*": [ - "abi", - "evm.bytecode", - "evm.deployedBytecode", - "evm.methodIdentifiers", - "metadata", - "devdoc", - "userdoc", - "storageLayout", - "evm.gasEstimates" - ], - "": [ - "ast" - ] - } - }, - "metadata": { - "useLiteralContent": true - } - } -} \ No newline at end of file diff --git a/contracts/hardhat/deployments/baseSepolia/solcInputs/77252ae545c4d734665a9c3f89121ce4.json b/contracts/hardhat/deployments/baseSepolia/solcInputs/1d9f98e9f73009a42653e1abaf15e178.json similarity index 79% rename from contracts/hardhat/deployments/baseSepolia/solcInputs/77252ae545c4d734665a9c3f89121ce4.json rename to contracts/hardhat/deployments/baseSepolia/solcInputs/1d9f98e9f73009a42653e1abaf15e178.json index 09b1a750..69b2d07c 100644 --- a/contracts/hardhat/deployments/baseSepolia/solcInputs/77252ae545c4d734665a9c3f89121ce4.json +++ b/contracts/hardhat/deployments/baseSepolia/solcInputs/1d9f98e9f73009a42653e1abaf15e178.json @@ -134,7 +134,7 @@ "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport {ERC20Burnable} from \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\";\n\n/**\n * @title LDY\n * @author Lila Rest (lila@ledgity.com)\n * @dev The $LDY is the utility and governance token of the entire Ledgity ecosystem.\n *\n * This contract has been kept as minimal as possible to enforce stakeholders safety\n * but also to pave the way for sensitive use cases like cross-chain bridging, use in\n * governance scenarios, and compatibility with 3rd party DApps.\n *\n * It is non-upgradeable, non-ownable, non-pausable, non-mintable, and non-restrictable.\n * It implements nothing more than what is provided by its OpenZepellin ancestors.\n *\n * Moreover, to eliminate the need for ownership and complex vesting functions, the\n * entire supply is minted at deployment-time. Vesting of allocated tokens is then\n * managed via Sablier streams that anyone can verify on this page:\n * https://docs.ledgity.finance/tokenomics/vesting-proofs\n *\n * Specifications:\n * - Name: Ledgity Token\n * - Symbol: LDY\n * - Decimals: 18\n * - Total supply: 75,000,000\n *\n * @custom:security-contact security@ledgity.com\n */\ncontract LDY is ERC20, ERC20Burnable {\n constructor() ERC20(\"Ledgity Token\", \"LDY\") {\n _mint(msg.sender, 75_000_000 * 10 ** decimals());\n }\n}\n" }, "contracts/src/LDYStaking.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {ReentrancyGuardUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport {BaseUpgradeable} from \"./abstracts/base/BaseUpgradeable.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\n\n/**\n * @title LDYStaking\n * @custom:security-contact security@ledgity.com\n *\n * @dev This contract implements tierOf() function from LDYStaking as it's the only\n * one the LToken contract relies on.\n *\n * @custom:security-contact security@ledgity.com\n */\ncontract LDYStaking is BaseUpgradeable, ReentrancyGuardUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /**\n * @notice Represents a user staking info in array.\n * @param stakedAmount Amount of the stake.\n * @param unStakeAt Unstake at.\n * @param duration Staking period in seconds.\n * @param rewardPerTokenPaid Reward per token paid.\n * @param rewards Rewards to be claimed.\n */\n struct StakingInfo {\n uint256 stakedAmount;\n uint256 unStakeAt;\n uint256 duration;\n uint256 rewardPerTokenPaid;\n uint256 rewards;\n }\n\n /**\n * @notice Represent duration and multiplier per each stake option.\n * @param duration Staking period in seconds.\n * @param multiplier Token weight\n */\n struct StakeDurationInfo {\n uint256 duration;\n uint256 multiplier;\n }\n\n /// @notice Decimals of multiplier\n uint256 public constant MULTIPLIER_BASIS = 1e4;\n\n /// @notice Stake and Reward token.\n IERC20Upgradeable public stakeRewardToken;\n\n /// @notice Minimal stake duration for perks.\n uint256 public stakeDurationForPerks;\n\n /// @notice Minimal stake amount for perks.\n uint256 public stakeAmountForPerks;\n\n /// @notice Stake durations info array.\n StakeDurationInfo[] public stakeDurationInfos;\n\n /// @notice Duration of the rewards (in seconds).\n uint256 public rewardsDuration;\n\n /// @notice Timestamp of when the rewards finish.\n uint256 public finishAt;\n\n /// @notice Timestamp of the reward updated.\n uint256 public lastUpdateTime;\n\n /// @notice Reward per second(total rewards / duration).\n uint256 public rewardRatePerSec;\n\n /// @notice Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\n uint256 public rewardPerTokenStored;\n\n /// @notice Total staked amounts.\n uint256 public totalStaked;\n\n // Total staked amounts with multiplier applied\n uint256 public totalWeightedStake;\n\n /// @notice User stakingInfo map, user address => array of the staking info\n mapping(address => StakingInfo[]) public userStakingInfo;\n\n /**\n * @notice Emitted when users stake token\n * @param user User address\n * @param stakeIndex Latest index of user staking pool\n * @param amount Staked amount\n */\n event Staked(address indexed user, uint256 stakeIndex, uint256 amount);\n\n /**\n * @notice Emitted when users unstake token\n * @param user User address\n * @param stakeIndex User staking pool index\n * @param amount Staked amount\n */\n event Unstaked(address indexed user, uint256 stakeIndex, uint256 amount);\n\n /**\n * @notice Emitted when users claim rewards\n * @param user User address\n * @param stakeIndex User staking pool index\n * @param reward Reward token amount\n */\n event RewardPaid(address indexed user, uint256 stakeIndex, uint256 reward);\n\n /**\n * @notice Emitted when admin add rewards.\n * @param rewardAmount Reward amount added by admin.\n * @param rewardPerSec RewardRatePerSec updated.\n */\n event NotifiedRewardAmount(uint256 rewardAmount, uint256 rewardPerSec);\n\n /**\n * @notice Holds a mapping of addresses that default to the highest staking tier.\n * @dev This is notably used to allow PreMining contracts to benefit from 0%\n * withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\n */\n mapping(address => bool) public highTierAccounts;\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\n * @dev This function is intended for setting initial values for the contract's state variables.\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param stakeRewardToken_ The address of stake and reward token(LDY token).\n * @param stakeDurationInfos_ Available Staking Durations.\n * @param stakeDurationForPerks_ Minimal staking duration for perks.\n * @param stakeAmountForPerks_ Minimal staking amount for perks.\n */\n function initialize(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address stakeRewardToken_,\n StakeDurationInfo[] memory stakeDurationInfos_,\n uint256 stakeDurationForPerks_,\n uint256 stakeAmountForPerks_\n ) public initializer {\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\n stakeRewardToken = IERC20Upgradeable(stakeRewardToken_);\n uint stakeDurationInfosLength = stakeDurationInfos_.length;\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\n stakeDurationInfos.push(stakeDurationInfos_[i]);\n }\n stakeDurationForPerks = stakeDurationForPerks_;\n stakeAmountForPerks = stakeAmountForPerks_;\n }\n\n // --------------------\n // MUTATIVE FUNCTIONS\n // --------------------\n\n /**\n * @notice Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\n * @dev Emits a `Staked` event upon successful staking.\n * @param amount The amount of tokens to stake.\n * @param stakeDurationIndex The Index of stakeDurationInfos array.\n */\n function stake(\n uint256 amount,\n uint8 stakeDurationIndex\n ) external nonReentrant whenNotPaused notBlacklisted(_msgSender()) {\n require(amount > 0, \"amount = 0\");\n require(stakeDurationIndex <= stakeDurationInfos.length - 1, \"Invalid staking period\");\n\n _updateReward(address(0), 0);\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[stakeDurationIndex];\n StakingInfo memory stakingInfo = StakingInfo({\n stakedAmount: amount,\n unStakeAt: block.timestamp + stakeDurationInfo.duration,\n duration: stakeDurationInfo.duration,\n rewardPerTokenPaid: rewardPerTokenStored,\n rewards: 0\n });\n\n // check whether account is eligible for benefit from the protocol\n if (stakeDurationInfo.duration >= stakeDurationForPerks && amount >= stakeAmountForPerks) {\n highTierAccounts[_msgSender()] = true;\n }\n\n userStakingInfo[_msgSender()].push(stakingInfo);\n\n uint256 stakeIndex = userStakingInfo[_msgSender()].length - 1;\n uint256 weightedStake = (amount * stakeDurationInfo.multiplier) / MULTIPLIER_BASIS;\n totalWeightedStake += weightedStake;\n totalStaked += amount;\n\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\n\n emit Staked(_msgSender(), stakeIndex, amount);\n }\n\n /**\n * @notice Withdraw staked tokens after stakeDuration has passed.\n * @dev Emits a `Unstaked` event upon successful withdrawal.\n * On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\n * @param amount The amount of tokens to withdraw.\n * @param stakeIndex The index of user staking pool\n */\n function unstake(\n uint256 amount,\n uint256 stakeIndex\n ) external nonReentrant notBlacklisted(_msgSender()) {\n require(amount > 0, \"amount = 0\");\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \"Invalid stakeIndex\");\n require(\n block.timestamp >= userStakingInfo[_msgSender()][stakeIndex].unStakeAt,\n \"Cannot unstake during staking period\"\n );\n require(\n amount <= userStakingInfo[_msgSender()][stakeIndex].stakedAmount,\n \"Insufficient unstake amount\"\n );\n\n _updateReward(_msgSender(), stakeIndex);\n\n uint256 multiplier = _getMultiplier(userStakingInfo[_msgSender()][stakeIndex].duration);\n\n uint256 currentWeightedStake = (amount * multiplier) / MULTIPLIER_BASIS;\n totalWeightedStake -= currentWeightedStake;\n\n totalStaked -= amount;\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount -= amount;\n\n // check whether account is eligible for benefit from the protocol\n if (\n userStakingInfo[_msgSender()][stakeIndex].duration >= stakeDurationForPerks &&\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount < stakeAmountForPerks\n ) {\n highTierAccounts[_msgSender()] = false;\n }\n\n // remove staking info from array on full withdrawal\n if (userStakingInfo[_msgSender()][stakeIndex].stakedAmount == 0) {\n _claimReward(_msgSender(), stakeIndex);\n\n userStakingInfo[_msgSender()][stakeIndex] = userStakingInfo[_msgSender()][\n userStakingInfo[_msgSender()].length - 1\n ];\n userStakingInfo[_msgSender()].pop();\n }\n stakeRewardToken.safeTransfer(_msgSender(), amount);\n\n emit Unstaked(_msgSender(), stakeIndex, amount);\n }\n\n /**\n * @notice Claim pending rewards.\n * @dev Emits a `RewardPaid` event upon successful reward claim.\n * @param stakeIndex The index of user staking pool.\n */\n function getReward(uint256 stakeIndex) external nonReentrant notBlacklisted(_msgSender()) {\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \"Invalid stakeIndex\");\n _updateReward(_msgSender(), stakeIndex);\n _claimReward(_msgSender(), stakeIndex);\n }\n\n // --------------------\n // ADMIN CONFIGURATION\n // --------------------\n\n /**\n * @notice Update Rewards Duration.\n * @dev Only callable by owner, and setting available only after rewards period.\n * @param duration The nmew rewards duration in seconds.\n */\n function setRewardsDuration(uint256 duration) external onlyOwner {\n require(finishAt < block.timestamp, \"reward duration is not finished\");\n rewardsDuration = duration;\n }\n\n /**\n * @notice Notify the contract about the amount of rewards to be distributed and update reward parameters.\n * @dev Only callable by owner.\n * @param amount The amount of reward to be distributed.\n */\n function notifyRewardAmount(uint256 amount) external onlyOwner {\n require(rewardsDuration > 0, \"rewards duration is not set\");\n require(amount > 0, \"amount = 0\");\n\n _updateReward(address(0), 0);\n\n if (block.timestamp >= finishAt) {\n rewardRatePerSec = amount / rewardsDuration;\n } else {\n uint256 remainingRewards = (finishAt - block.timestamp) * rewardRatePerSec;\n rewardRatePerSec = (amount + remainingRewards) / rewardsDuration;\n }\n\n require(rewardRatePerSec > 0, \"reward rate = 0\");\n require(\n rewardRatePerSec <=\n (stakeRewardToken.balanceOf(address(this)) + amount - totalStaked) /\n rewardsDuration,\n \"reward amount > balance\"\n );\n\n finishAt = block.timestamp + rewardsDuration;\n lastUpdateTime = block.timestamp;\n\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\n\n emit NotifiedRewardAmount(amount, rewardRatePerSec);\n }\n\n // --------------------\n // VIEW FUNCTIONS\n // --------------------\n\n /**\n * @notice Get the last time when rewards were applicable for the specified reward token.\n * @return Timestamp of the most recent rewards calculation.\n */\n function lastTimeRewardApplicable() public view returns (uint256) {\n return _min(finishAt, block.timestamp);\n }\n\n /**\n * @notice Calculate the reward per token for a given reward token.\n * @return Current reward per token.\n */\n function rewardPerToken() public view returns (uint256) {\n if (totalStaked == 0) {\n return rewardPerTokenStored;\n }\n\n return\n rewardPerTokenStored +\n ((rewardRatePerSec * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) /\n totalWeightedStake);\n }\n\n /**\n * @notice Calculate the user's stake pool earnings\n * @param account Address of the user.\n * @param stakeIndex Index of the stakePool\n * @return Return earned amounts\n */\n function earned(address account, uint256 stakeIndex) public view returns (uint256) {\n StakingInfo memory userInfo = userStakingInfo[account][stakeIndex];\n uint256 multiplier = _getMultiplier(userInfo.duration);\n uint256 weightedAmount = (userInfo.stakedAmount * multiplier) / MULTIPLIER_BASIS;\n uint256 rewardsSinceLastUpdate = ((weightedAmount *\n (rewardPerToken() - userInfo.rewardPerTokenPaid)) / 1e18);\n return rewardsSinceLastUpdate + userInfo.rewards;\n }\n\n /**\n * @notice Get the earned rewards array for a user.\n * @param account Address of the user.\n * @return Return earned rewards array for a user.\n */\n function getEarnedUser(address account) public view returns (uint256[] memory) {\n uint256 numberOfPools = userStakingInfo[account].length;\n uint256[] memory earnedArray = new uint256[](numberOfPools);\n for (uint256 index; index < numberOfPools; index++) {\n earnedArray[index] = earned(account, index);\n }\n return earnedArray;\n }\n\n /**\n * @dev tierOf() function that always return that the given account is not\n * elligible to any LDY staking tier, except if the account is in the\n * highTierAccounts mapping.\n * @param account The account to check the tier of.\n */\n function tierOf(address account) public view returns (uint256 tier) {\n if (highTierAccounts[account]) return 3;\n return 0;\n }\n\n /**\n * @notice Get User Stake Data.\n * @param account The address of user.\n * @return StakingInfo array.\n */\n function getUserStakes(address account) external view returns (StakingInfo[] memory) {\n return userStakingInfo[account];\n }\n\n /**\n * @notice Send rewards to user.\n * @dev This is private function, called by getReward function.\n * @param account The address of user.\n * @param stakeIndex The index of user staking pool.\n */\n function _claimReward(address account, uint256 stakeIndex) private {\n uint256 reward = userStakingInfo[account][stakeIndex].rewards;\n\n if (reward > 0) {\n userStakingInfo[account][stakeIndex].rewards = 0;\n stakeRewardToken.safeTransfer(account, reward);\n emit RewardPaid(account, stakeIndex, reward);\n }\n }\n\n /**\n * @notice Calculate and update user rewards per stakeIndex.\n * @dev this is private function, called by stake, unstake, getRewards, and notifyRewardAmount functions.\n * @param account The address of user.\n * @param stakeIndex The index of user staking pool.\n */\n function _updateReward(address account, uint256 stakeIndex) private {\n rewardPerTokenStored = rewardPerToken();\n lastUpdateTime = lastTimeRewardApplicable();\n\n if (account != address(0)) {\n userStakingInfo[account][stakeIndex].rewards = earned(account, stakeIndex);\n userStakingInfo[account][stakeIndex].rewardPerTokenPaid = rewardPerTokenStored;\n }\n }\n\n /**\n * @notice Get multiplier from stakeDurationInfo based on duration\n * @param duration Stake Duration\n */\n function _getMultiplier(uint256 duration) private view returns (uint256) {\n uint256 stakeDurationInfosLength = stakeDurationInfos.length;\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[i];\n if (duration == stakeDurationInfo.duration) {\n return stakeDurationInfo.multiplier;\n }\n }\n return 0;\n }\n\n /**\n * @notice Take minimum value between x and y.\n */\n function _min(uint256 x, uint256 y) private pure returns (uint256) {\n return x <= y ? x : y;\n }\n}\n" + "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {ReentrancyGuardUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport {BaseUpgradeable} from \"./abstracts/base/BaseUpgradeable.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\n\n/**\n * @title LDYStaking\n * @custom:security-contact security@ledgity.com\n *\n * @dev This contract implements tierOf() function from LDYStaking as it's the only\n * one the LToken contract relies on.\n *\n * @custom:security-contact security@ledgity.com\n */\ncontract LDYStaking is BaseUpgradeable, ReentrancyGuardUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /**\n * @notice Represents a user staking info in array.\n * @param stakedAmount Amount of the stake.\n * @param unStakeAt Unstake at.\n * @param duration Staking period in seconds.\n * @param rewardPerTokenPaid Reward per token paid.\n * @param rewards Rewards to be claimed.\n */\n struct StakingInfo {\n uint256 stakedAmount;\n uint256 unStakeAt;\n uint256 duration;\n uint256 rewardPerTokenPaid;\n uint256 rewards;\n }\n\n /**\n * @notice Represent duration and multiplier per each stake option.\n * @param duration Staking period in seconds.\n * @param multiplier Token weight\n */\n struct StakeDurationInfo {\n uint256 duration;\n uint256 multiplier;\n }\n\n /// @notice Decimals of multiplier\n uint256 public constant MULTIPLIER_BASIS = 1e4;\n\n /// @notice Stake and Reward token.\n IERC20Upgradeable public stakeRewardToken;\n\n /// @notice Minimal stake duration for perks.\n uint256 public stakeDurationForPerks;\n\n /// @notice Minimal stake amount for perks.\n uint256 public stakeAmountForPerks;\n\n /// @notice Stake durations info array.\n StakeDurationInfo[] public stakeDurationInfos;\n\n /// @notice Duration of the rewards (in seconds).\n uint256 public rewardsDuration;\n\n /// @notice Timestamp of when the rewards finish.\n uint256 public finishAt;\n\n /// @notice Timestamp of the reward updated.\n uint256 public lastUpdateTime;\n\n /// @notice Reward per second(total rewards / duration).\n uint256 public rewardRatePerSec;\n\n /// @notice Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\n uint256 public rewardPerTokenStored;\n\n /// @notice Total staked amounts.\n uint256 public totalStaked;\n\n // Total staked amounts with multiplier applied\n uint256 public totalWeightedStake;\n\n /// @notice User stakingInfo map, user address => array of the staking info\n mapping(address => StakingInfo[]) public userStakingInfo;\n\n /// @notice Total rewards amount.\n uint256 public totalRewards;\n\n /**\n * @notice Emitted when users stake token\n * @param user User address\n * @param stakeIndex Latest index of user staking pool\n * @param amount Staked amount\n */\n event Staked(address indexed user, uint256 stakeIndex, uint256 amount);\n\n /**\n * @notice Emitted when users unstake token\n * @param user User address\n * @param stakeIndex User staking pool index\n * @param amount Staked amount\n */\n event Unstaked(address indexed user, uint256 stakeIndex, uint256 amount);\n\n /**\n * @notice Emitted when users claim rewards\n * @param user User address\n * @param stakeIndex User staking pool index\n * @param reward Reward token amount\n */\n event RewardPaid(address indexed user, uint256 stakeIndex, uint256 reward);\n\n /**\n * @notice Emitted when admin add rewards.\n * @param rewardAmount Reward amount added by admin.\n * @param rewardPerSec RewardRatePerSec updated.\n */\n event NotifiedRewardAmount(uint256 rewardAmount, uint256 rewardPerSec);\n\n /**\n * @notice Holds a mapping of addresses that default to the highest staking tier.\n * @dev This is notably used to allow PreMining contracts to benefit from 0%\n * withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\n */\n mapping(address => bool) public highTierAccounts;\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\n * @dev This function is intended for setting initial values for the contract's state variables.\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param stakeRewardToken_ The address of stake and reward token(LDY token).\n * @param stakeDurationInfos_ Available Staking Durations.\n * @param stakeDurationForPerks_ Minimal staking duration for perks.\n * @param stakeAmountForPerks_ Minimal staking amount for perks.\n */\n function initialize(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address stakeRewardToken_,\n StakeDurationInfo[] memory stakeDurationInfos_,\n uint256 stakeDurationForPerks_,\n uint256 stakeAmountForPerks_\n ) public initializer {\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\n stakeRewardToken = IERC20Upgradeable(stakeRewardToken_);\n uint stakeDurationInfosLength = stakeDurationInfos_.length;\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\n stakeDurationInfos.push(stakeDurationInfos_[i]);\n }\n stakeDurationForPerks = stakeDurationForPerks_;\n stakeAmountForPerks = stakeAmountForPerks_;\n }\n\n // --------------------\n // MUTATIVE FUNCTIONS\n // --------------------\n\n /**\n * @notice Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\n * @dev Emits a `Staked` event upon successful staking.\n * @param amount The amount of tokens to stake.\n * @param stakeDurationIndex The Index of stakeDurationInfos array.\n */\n function stake(\n uint256 amount,\n uint8 stakeDurationIndex\n ) external nonReentrant whenNotPaused notBlacklisted(_msgSender()) {\n require(amount > 0, \"amount = 0\");\n require(stakeDurationIndex <= stakeDurationInfos.length - 1, \"Invalid staking period\");\n\n _updateReward(address(0), 0);\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[stakeDurationIndex];\n StakingInfo memory stakingInfo = StakingInfo({\n stakedAmount: amount,\n unStakeAt: block.timestamp + stakeDurationInfo.duration,\n duration: stakeDurationInfo.duration,\n rewardPerTokenPaid: rewardPerTokenStored,\n rewards: 0\n });\n\n // check whether account is eligible for benefit from the protocol\n if (stakeDurationInfo.duration >= stakeDurationForPerks && amount >= stakeAmountForPerks) {\n highTierAccounts[_msgSender()] = true;\n }\n\n userStakingInfo[_msgSender()].push(stakingInfo);\n\n uint256 stakeIndex = userStakingInfo[_msgSender()].length - 1;\n uint256 weightedStake = (amount * stakeDurationInfo.multiplier) / MULTIPLIER_BASIS;\n totalWeightedStake += weightedStake;\n totalStaked += amount;\n\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\n\n emit Staked(_msgSender(), stakeIndex, amount);\n }\n\n /**\n * @notice Withdraw staked tokens after stakeDuration has passed.\n * @dev Emits a `Unstaked` event upon successful withdrawal.\n * On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\n * @param amount The amount of tokens to withdraw.\n * @param stakeIndex The index of user staking pool\n */\n function unstake(\n uint256 amount,\n uint256 stakeIndex\n ) external nonReentrant notBlacklisted(_msgSender()) {\n require(amount > 0, \"amount = 0\");\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \"Invalid stakeIndex\");\n require(\n block.timestamp >= userStakingInfo[_msgSender()][stakeIndex].unStakeAt,\n \"Cannot unstake during staking period\"\n );\n require(\n amount <= userStakingInfo[_msgSender()][stakeIndex].stakedAmount,\n \"Insufficient unstake amount\"\n );\n\n _updateReward(_msgSender(), stakeIndex);\n\n uint256 multiplier = _getMultiplier(userStakingInfo[_msgSender()][stakeIndex].duration);\n\n uint256 currentWeightedStake = (amount * multiplier) / MULTIPLIER_BASIS;\n totalWeightedStake -= currentWeightedStake;\n\n totalStaked -= amount;\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount -= amount;\n\n // check whether account is eligible for benefit from the protocol\n if (\n userStakingInfo[_msgSender()][stakeIndex].duration >= stakeDurationForPerks &&\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount < stakeAmountForPerks\n ) {\n highTierAccounts[_msgSender()] = false;\n }\n\n // remove staking info from array on full withdrawal\n if (userStakingInfo[_msgSender()][stakeIndex].stakedAmount == 0) {\n _claimReward(_msgSender(), stakeIndex);\n\n userStakingInfo[_msgSender()][stakeIndex] = userStakingInfo[_msgSender()][\n userStakingInfo[_msgSender()].length - 1\n ];\n userStakingInfo[_msgSender()].pop();\n }\n stakeRewardToken.safeTransfer(_msgSender(), amount);\n\n emit Unstaked(_msgSender(), stakeIndex, amount);\n }\n\n /**\n * @notice Claim pending rewards.\n * @dev Emits a `RewardPaid` event upon successful reward claim.\n * @param stakeIndex The index of user staking pool.\n */\n function getReward(uint256 stakeIndex) external nonReentrant notBlacklisted(_msgSender()) {\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \"Invalid stakeIndex\");\n _updateReward(_msgSender(), stakeIndex);\n _claimReward(_msgSender(), stakeIndex);\n }\n\n // --------------------\n // ADMIN CONFIGURATION\n // --------------------\n\n /**\n * @notice Update Rewards Duration.\n * @dev Only callable by owner, and setting available only after rewards period.\n * @param duration New reward duration in seconds.\n */\n function setRewardsDuration(uint256 duration) external onlyOwner {\n require(finishAt < block.timestamp, \"reward duration is not finished\");\n rewardsDuration = duration;\n }\n\n /**\n * @notice Update stakeDurationForPerks\n * @dev Only callable by owner.\n * @param stakeDurationForPerks_ New stakeDurationForPerks.\n */\n function setStakeDurationForPerks(uint256 stakeDurationForPerks_) external onlyOwner {\n stakeDurationForPerks = stakeDurationForPerks_;\n }\n\n /**\n * @notice Update stakeAmountForPerks\n * @dev Only callable by owner.\n * @param stakeAmountForPerks_ New stakeDurationForPerks.\n */\n function setStakeAmountForPerks(uint256 stakeAmountForPerks_) external onlyOwner {\n stakeAmountForPerks = stakeAmountForPerks_;\n }\n\n /**\n * @notice Push stakeDurationInfo\n * @dev Only callable by owner.\n */\n function pushStakeDurationInfo(StakeDurationInfo memory durationInfo) external onlyOwner {\n stakeDurationInfos.push(durationInfo);\n }\n\n /**\n * @notice Notify the contract about the amount of rewards to be distributed and update reward parameters.\n * @dev Only callable by owner.\n * @param amount The amount of reward to be distributed.\n */\n function notifyRewardAmount(uint256 amount) external onlyOwner {\n require(rewardsDuration > 0, \"rewards duration is not set\");\n require(amount > 0, \"amount = 0\");\n\n _updateReward(address(0), 0);\n\n if (block.timestamp >= finishAt) {\n rewardRatePerSec = amount / rewardsDuration;\n } else {\n uint256 remainingRewards = (finishAt - block.timestamp) * rewardRatePerSec;\n rewardRatePerSec = (amount + remainingRewards) / rewardsDuration;\n }\n\n require(rewardRatePerSec > 0, \"reward rate = 0\");\n require(\n rewardRatePerSec <=\n (stakeRewardToken.balanceOf(address(this)) + amount - totalStaked) /\n rewardsDuration,\n \"reward amount > balance\"\n );\n\n finishAt = block.timestamp + rewardsDuration;\n lastUpdateTime = block.timestamp;\n\n totalRewards += amount;\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\n\n emit NotifiedRewardAmount(amount, rewardRatePerSec);\n }\n\n // --------------------\n // VIEW FUNCTIONS\n // --------------------\n\n /**\n * @notice Get the last time when rewards were applicable for the specified reward token.\n * @return Timestamp of the most recent rewards calculation.\n */\n function lastTimeRewardApplicable() public view returns (uint256) {\n return _min(finishAt, block.timestamp);\n }\n\n /**\n * @notice Calculate the reward per token for a given reward token.\n * @return Current reward per token.\n */\n function rewardPerToken() public view returns (uint256) {\n if (totalStaked == 0) {\n return rewardPerTokenStored;\n }\n\n return\n rewardPerTokenStored +\n ((rewardRatePerSec * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) /\n totalWeightedStake);\n }\n\n /**\n * @notice Calculate the user's stake pool earnings\n * @param account Address of the user.\n * @param stakeIndex Index of the stakePool\n * @return Return earned amounts\n */\n function earned(address account, uint256 stakeIndex) public view returns (uint256) {\n StakingInfo memory userInfo = userStakingInfo[account][stakeIndex];\n uint256 multiplier = _getMultiplier(userInfo.duration);\n uint256 weightedAmount = (userInfo.stakedAmount * multiplier) / MULTIPLIER_BASIS;\n uint256 rewardsSinceLastUpdate = ((weightedAmount *\n (rewardPerToken() - userInfo.rewardPerTokenPaid)) / 1e18);\n return rewardsSinceLastUpdate + userInfo.rewards;\n }\n\n /**\n * @notice Get the earned rewards array for a user.\n * @param account Address of the user.\n * @return Return earned rewards array for a user.\n */\n function getEarnedUser(address account) public view returns (uint256[] memory) {\n uint256 numberOfPools = userStakingInfo[account].length;\n uint256[] memory earnedArray = new uint256[](numberOfPools);\n for (uint256 index; index < numberOfPools; index++) {\n earnedArray[index] = earned(account, index);\n }\n return earnedArray;\n }\n\n /**\n * @dev tierOf() function that always return that the given account is not\n * elligible to any LDY staking tier, except if the account is in the\n * highTierAccounts mapping.\n * @param account The account to check the tier of.\n */\n function tierOf(address account) public view returns (uint256 tier) {\n if (highTierAccounts[account]) return 3;\n return 0;\n }\n\n /**\n * @notice Get User Stake Data.\n * @param account The address of user.\n * @return StakingInfo array.\n */\n function getUserStakes(address account) external view returns (StakingInfo[] memory) {\n return userStakingInfo[account];\n }\n\n /**\n * @notice Get StakeDurationInfo.\n * @param index Index of StakeDurationInfos.\n * @return StakeDurationInfo.\n */\n function getStakeDurationInfo(uint256 index) external view returns (StakeDurationInfo memory) {\n require(stakeDurationInfos.length - 1 >= index, \"wrong index\");\n return stakeDurationInfos[index];\n }\n\n /**\n * @notice Send rewards to user.\n * @dev This is private function, called by getReward function.\n * @param account The address of user.\n * @param stakeIndex The index of user staking pool.\n */\n function _claimReward(address account, uint256 stakeIndex) private {\n uint256 reward = userStakingInfo[account][stakeIndex].rewards;\n\n if (reward > 0) {\n userStakingInfo[account][stakeIndex].rewards = 0;\n totalRewards -= reward;\n stakeRewardToken.safeTransfer(account, reward);\n emit RewardPaid(account, stakeIndex, reward);\n }\n }\n\n /**\n * @notice Calculate and update user rewards per stakeIndex.\n * @dev this is private function, called by stake, unstake, getRewards, and notifyRewardAmount functions.\n * @param account The address of user.\n * @param stakeIndex The index of user staking pool.\n */\n function _updateReward(address account, uint256 stakeIndex) private {\n rewardPerTokenStored = rewardPerToken();\n lastUpdateTime = lastTimeRewardApplicable();\n\n if (account != address(0)) {\n userStakingInfo[account][stakeIndex].rewards = earned(account, stakeIndex);\n userStakingInfo[account][stakeIndex].rewardPerTokenPaid = rewardPerTokenStored;\n }\n }\n\n /**\n * @notice Get multiplier from stakeDurationInfo based on duration\n * @param duration Stake Duration\n */\n function _getMultiplier(uint256 duration) private view returns (uint256) {\n uint256 stakeDurationInfosLength = stakeDurationInfos.length;\n for (uint256 i = 0; i < stakeDurationInfosLength; i++) {\n StakeDurationInfo memory stakeDurationInfo = stakeDurationInfos[i];\n if (duration == stakeDurationInfo.duration) {\n return stakeDurationInfo.multiplier;\n }\n }\n return 0;\n }\n\n /**\n * @notice Take minimum value between x and y.\n */\n function _min(uint256 x, uint256 y) private pure returns (uint256) {\n return x <= y ? x : y;\n }\n}\n" }, "contracts/src/libs/APRHistory.sol": { "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n/**\n * @title APRHistory\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice This library offers utilities to efficiently maintain the history of an\n * on-chain APR (Annual Percentage Rate) state. Each entry in this history is called\n * a \"checkpoint\".\n *\n * @dev Intuition:\n * Each checkpoint in an APR history consists of two data:\n * - the creation timestamp\n * - the APR at that time\n *\n * Given that reading and writing to storage slots are among the most costly operations\n * in Solidity, this library provides a way to store those data in a way that minimizes\n * the number of used storage slots.\n *\n * Instead of storing each checkpoint in a separate storage slot, this library\n * facilitates the packing of up to 4 checkpoints in a single storage slot.\n *\n * @dev Definitions:\n * - Checkpoint: A record of an APR change\n * - Pack: A collection of 4 checkpoints stored in a single storage slot\n * - History: A dynamic array of packs\n * - Reference: A storage pointer to a checkpoint in the APR history\n * - CheckpointData: An in-memory representation of a checkpoint data\n *\n * @dev Value limitation:\n * This library can accommodate APRs only up to 65.536%. This is however sufficient for\n * APR in LToken contract, which is expected to remain below 10%.\n *\n * @dev For further details, see \"APRHistory\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nlibrary APRHistory {\n /**\n * @notice Represents data of a checkpoint extracted from the on-chain history.\n * For on-chain representation see \"Pack\" struct.\n * @param aprUD7x3 APR in UD7x3 format (e.g., 12345 = 12.345%).\n * @param timestamp Timestamp of the checkpoint's creation.\n */\n struct CheckpointData {\n uint16 aprUD7x3; // Allows up to 65.536%\n uint40 timestamp; // Supports dates up to 20/02/36812\n }\n\n /**\n * @notice Represents how APR checkpoints are stored on chain. Each pack can contain\n * the data 4 checkpoints. Packs are then stored in a dynamic array (the history).\n * @param aprsUD7x3 Array of checkpoints' APRs.\n * @param timestamps Array of checkpoints' timestamps.\n * @param cursor Index of the next checkpoint to be written.\n */\n struct Pack {\n uint16[4] aprsUD7x3;\n uint40[4] timestamps;\n uint32 cursor;\n }\n\n /**\n * @notice Represents a storage pointer to a specific checkpoint in the history.\n * @param packIndex Index of the pack the checkpoint belongs to.\n * @param cursorIndex Index of the checkpoint in this pack (between 0 and 3).\n */\n struct Reference {\n uint256 packIndex;\n uint32 cursorIndex;\n }\n\n /**\n * @notice Compares two checkpoints references.\n * @param ref1 The first reference to compare.\n * @param ref2 The second reference to compare.\n * @return Whether the two references points to the same checkpoint.\n */\n function eq(Reference memory ref1, Reference memory ref2) external pure returns (bool) {\n return ref1.packIndex == ref2.packIndex && ref1.cursorIndex == ref2.cursorIndex;\n }\n\n /**\n * @notice Returns the reference of the checkpoint that should come right after the\n * referenced checkpoint in the APR history.\n * @param ref The reference to be incremented.\n * @return The incremented reference.\n */\n function incrementReference(Reference memory ref) public pure returns (Reference memory) {\n // Ensure cursor index of the given ref is within valid range [0, 3]\n require(ref.cursorIndex <= 3, \"L1\");\n\n // If the given ref is the last slot in its pack, return ref of next pack's first slot\n if (ref.cursorIndex == 3) return Reference(ref.packIndex + 1, 0);\n //\n // Else, return ref of next slot in current pack\n else return Reference(ref.packIndex, ref.cursorIndex + 1);\n }\n\n /**\n * @notice Extracts checkpoint data from a given reference and in APR history.\n * @param self The APR history to extract the checkpoint from.\n * @param ref The reference of the checkpoint data to extract.\n * @return The extracted checkpoint's data.\n */\n function getDataFromReference(\n Pack[] storage self,\n Reference memory ref\n ) public view returns (CheckpointData memory) {\n // Ensure cursor index of the given ref is within valid range [0, 3]\n require(ref.cursorIndex <= 3, \"L2\");\n\n // Ensure pack index of the given ref exists in history\n require(ref.packIndex < self.length, \"L3\");\n\n // Retrieve pack data from history\n Pack memory pack = self[ref.packIndex];\n\n // Ensure cursor index of the given ref has been written\n require(ref.cursorIndex < pack.cursor, \"L4\");\n\n // Build and return the checkpoint data\n return\n CheckpointData({\n aprUD7x3: pack.aprsUD7x3[ref.cursorIndex],\n timestamp: pack.timestamps[ref.cursorIndex]\n });\n }\n\n /**\n * @notice Retrieves the reference to the most recently added checkpoint in the APR history.\n * @param self The history to extract the reference from.\n * @return The reference of the latest checkpoint.\n */\n function getLatestReference(Pack[] storage self) public view returns (Reference memory) {\n // Ensure the given history is not empty\n require(self.length != 0, \"L5\");\n\n // Retrieve latest pack's index and cursor\n uint256 packIndex = self.length - 1;\n uint32 packCursor = self[packIndex].cursor;\n\n // If this is the first pack ever, ensure it is not empty\n if (packIndex == 0) require(packCursor != 0, \"L6\");\n\n // If the pack is empty, return ref of previous pack's latest slot\n if (packCursor == 0) return Reference(packIndex - 1, 3);\n //\n // Else, return ref of previous slot in current pack\n else return Reference(packIndex, packCursor - 1);\n }\n\n /**\n * @notice Appends a new empty pack to the end of the given APR history array.\n * @param self The APR history to append an empty to.\n */\n function newBlankPack(Pack[] storage self) internal {\n // If history is not empty, ensure the latest pack is full\n require(self.length == 0 || getLatestReference(self).cursorIndex == 3, \"L7\");\n\n // Push a new blank pack to the history array\n self.push(\n Pack({\n aprsUD7x3: [uint16(0), uint16(0), uint16(0), uint16(0)],\n timestamps: [uint40(0), uint40(0), uint40(0), uint40(0)],\n cursor: 0\n })\n );\n }\n\n /**\n * @notice Write a new APR checkpoint at the end of the given history array.\n * @param self The array of packs to write the new checkpoint to.\n * @param aprUD7x3 The new APR in UD7x3 format.\n */\n function setAPR(Pack[] storage self, uint16 aprUD7x3) external {\n // Determine the reference where the new checkpoint should be written\n Reference memory newRef = self.length == 0\n ? Reference(0, 0)\n : incrementReference(getLatestReference(self));\n\n // If pack to be written doesn't exist yet, push a new blank pack in history\n if (newRef.packIndex >= self.length) newBlankPack(self);\n\n // Retrieve the pack where the new checkpoint will be stored\n Pack memory pack = self[newRef.packIndex];\n\n // Add new checkpoint's data to the pack\n pack.aprsUD7x3[newRef.cursorIndex] = aprUD7x3;\n pack.timestamps[newRef.cursorIndex] = uint40(block.timestamp);\n\n // Increment the pack's cursor\n pack.cursor++;\n\n // Write the updated pack in storage\n self[newRef.packIndex] = pack;\n }\n\n /**\n * @notice Retrieves the APR of the latest checkpoint written in the APR history.\n * @param self The history array to read APR from.\n * @return The latest checkpoint's APR.\n */\n function getAPR(Pack[] storage self) public view returns (uint16) {\n // Retrieve the latest checkpoint data\n Reference memory ref = getLatestReference(self);\n CheckpointData memory data = getDataFromReference(self, ref);\n\n // Return the latest checkpoint's APR\n return data.aprUD7x3;\n }\n}\n" @@ -143,20 +143,20 @@ "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\n\n/**\n * @title SUD\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice SUD serves as an intermediary number format for calculations within this\n * codebase. It ensures consistency and reduces precision losses. This library\n * facilitates conversions between various number formats and the SUD format.\n *\n * @dev Intuition:\n * This codebase employs the UD (unsigned decimal fixed-point numbers) format to\n * represent both percentage rates and tokens amounts.\n *\n * Rates are expressed in UD7x3 format, whereas the format for tokens amounts depends on\n * the decimals() value of the involved tokens.\n *\n * Three challenges arise from this:\n * 1) To compute values together, it's essential that they are in the same format\n * 2) Calculations involving consecutive divisions on UD numbers lead to accumulated\n * precision loss (because division shrinks). A common approach is to scale up and\n * down values by a few decimals before and after performing calculations.\n * 3) Given that rates use the UD7x3 format, if we decided to scale them to and from\n * the number of decimals of the involved token, 1 to 3 of the rates' decimals would\n * be shrunk in case token's decimals number is in [0, 2].\n *\n * To address these challenges, this library provides the SUD format, which acts as a\n * consistent and scaled intermediate format to perform calculations.\n *\n * SUD is an acronym for either \"Scaled UD\" or \"Safe UD\".\n *\n * @dev Definitions:\n * - Integer: A number without fractional part, e.g., block.timestamp\n * - UD: A decimal unsigned fixed-point number. The \"UD\" notation is inspired from\n * libraries like [prb-math](https://github.com/PaulRBerg/prb-math/)\n * - Amount: A token amount. A UD with an unknown repartition of digits between integral\n * and fractional parts (as token amounts have variable decimal numbers)\n * - Rate: A percentage rate. An UD with 7 integral digits and 3 fractional ones (= UD7x3)\n * - SUD: An intermediate format to perform calculations involving Rates and Amounts. A UD\n * with 3 more decimals than the involved UD with the highest decimals number. As\n * rates are represented by UD7x3, a SUD number has at least 6 decimals (3+3) and\n * so ranges from UD71x6 to UD0x77 formats.\n *\n * @dev A conversion library:\n * This library provides utilities to perform the following conversions:\n * - Amount <--> SUD\n * - Rate (UD7x3) <--> SUD\n * - Integer <--> SUD\n *\n * @dev Why scaling by 3 decimals?\n * - It provides an adequate degree of precision for this codebase,\n * - It enables the conversion of a UD7x3 rate to SUD format by merely scaling it up by\n * the involved token's decimal number, so is gas efficient.\n *\n * @dev Why internal functions?\n * The functions of this library are not set to external because incorporating them\n * directly into contracts is more gas-efficient. Given their minimal size and frequent\n * usage in the InvestUpgradeable, LDYStaking, and LToken contracts, any bytecode savings\n * from making them external are negated by the additional bytecode required for external\n * calls to this library. This can be observed by comparing the output of `bun cc:size`\n * when those functions's visibility is set to external or internal.\n *\n * @dev Precision warning:\n * While this library mitigates precision loss during calculations on UD numbers, it's\n * important to note that tokens with lower decimal counts and supply inherently suffer\n * more from precision loss. Conversely, tokens with higher decimal counts and supply\n * will experience less precision loss.\n *\n * @dev For further details, see \"SUD\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nlibrary SUD {\n /**\n * @notice Retrieves decimals number of the given ERC20 contract address.\n * @param tokenAddress The address to retrieve decimals number from.\n * @return decimals The decimals number of the given ERC20 contract address.\n */\n function decimalsOf(address tokenAddress) internal view returns (uint256 decimals) {\n return IERC20MetadataUpgradeable(tokenAddress).decimals();\n }\n\n /**\n * @notice Convert a given token amount into SUD format.\n * @param nAmount The token amount to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The amount in SUD format\n */\n function fromAmount(uint256 nAmount, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return nAmount * 10 ** (6 - decimals);\n\n // Else return a number with decimals+3 fractional digits\n return nAmount * 10 ** 3;\n }\n\n /**\n * @notice Convert a given SUD number into token amount format.\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nAmount The number in amount format\n */\n function toAmount(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nAmount) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** (6 - decimals);\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** 3;\n }\n\n /**\n * @notice Converts a given UD7x3 rate into SUD format.\n * @param nUD7x3 The UD7x3 rate to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The rate in SUD format.\n */\n function fromRate(uint256 nUD7x3, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return nUD7x3 * 10 ** 3;\n\n // Else, return a number with decimals+3 fractional digits\n return nUD7x3 * 10 ** decimals;\n }\n\n /**\n * @notice Converts a given SUD number into a UD7x3 rate.\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nUD7x3 The number in UD7x3 rate format.\n */\n function toRate(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nUD7x3) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** 3;\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** decimals;\n }\n\n /**\n * @notice Converts a given integer into SUD format.\n * @param n The integer to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The integer in SUD format.\n */\n function fromInt(uint256 n, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return n * 10 ** 6;\n\n // Else, return a number with decimals+3 fractional digits\n return n * 10 ** (decimals + 3);\n }\n\n /**\n * @notice Converts a given SUD number as an integer (all decimals shrinked).\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return n The SUD number as an integer.\n */\n function toInt(uint256 nSUD, uint256 decimals) internal pure returns (uint256 n) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** 6;\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** (decimals + 3);\n }\n}\n" }, "contracts/src/LToken.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {ERC20WrapperUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol\";\nimport \"./abstracts/base/ERC20BaseUpgradeable.sol\";\nimport {InvestUpgradeable} from \"./abstracts/InvestUpgradeable.sol\";\nimport {LDYStaking} from \"./LDYStaking.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\nimport {SUD} from \"./libs/SUD.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\nimport {ITransfersListener} from \"./interfaces/ITransfersListener.sol\";\n\n/**\n * @title LToken\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Main contract of the Ledgity Yield protocol. It powers every L-Token (i.e.,\n * investment pools backed by RWA). An L-Token is an ERC20 wrapper around a stablecoin.\n * As soon as a wallet holds some L-Tokens, it starts receiving rewards in\n * the form of additional L-Tokens, which are auto-compounded over time.\n *\n * @dev Definitions:\n * - Deposit: Swap of underlying tokens for L-Tokens (1:1 ratio).\n * - Withdrawal: Swap of L-Tokens for underlying tokens (1:1 ratio, minus applicable fees).\n * - Instant: Processed immediately.\n * - Request: Queued for later processing.\n * - Big Request: A requested withdrawal exceeding half of the retention rate.\n * - (Withdrawal) queue: A list of all requested withdrawals sorted by priority.\n * - Request ID: The index of a withdrawal request in the queue array.\n * - Retention rate: Maximum fraction of underlying tokens TVL the contract can retain.\n * - Fees Rate: Percentage of fees applied to successful withdrawals.\n * - Usable underlyings: Amount of underlying tokens that have been deposited through\n * expected ways and are so considered safe to use by the contract.\n * - Transfers listeners: External contracts listening on L-Tokens transfers.\n * - Fund wallet: Wallet managed by the Ledgity's financial team.\n * - Withdrawer wallet: Managed by an off-chain server to automate withdrawal request\n * processing.\n *\n * Note that words between parenthesis are sometimes omitted for brevity.\n *\n * @dev Deployment notice:\n * This contract can safely receive funds immediately after initialization. (i.e., there\n * is no way for funds to be sent to non-owned addresses). It is, however, recommended to\n * replace ASAP owner and fund wallets with multi-sig wallets.\n *\n * @dev For further details, see \"LToken\" section of whitepaper.\n * @custom:oz-upgrades-unsafe-allow external-library-linking\n * @custom:security-contact security@ledgity.com\n */\ncontract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /// @dev Represents type of actions triggering ActivityEvent events.\n enum Action {\n Deposit,\n Withdraw\n }\n\n /// @dev Represents different status of actions triggering ActivityEvent events.\n enum Status {\n Queued,\n Cancelled,\n Success,\n Moved\n }\n\n /**\n * @notice Represents a withdrawal request in the queue.\n * @dev A request fits in a single storage slot (32 bytes).\n * @param account The account that initiated the request.\n * @param amount The amount of underlying tokens requested.\n */\n struct WithdrawalRequest {\n address account; // 20 bytes\n uint96 amount; // 12 bytes\n }\n\n /// @notice Upper limit of retention rate.\n uint32 private constant MAX_RETENTION_RATE_UD7x3 = 10 * 10 ** 3; // 10%\n\n /// @notice Upper limit of fees rate.\n uint32 private constant MAX_FEES_RATE_UD7x3 = 20 * 10 ** 3; // 20%\n\n /// @notice Used in activity events to represent the absence of request ID.\n int256 private constant NO_ID = -1;\n\n /// @notice Holds a reference to the LDYStaking contract.\n LDYStaking public ldyStaking;\n\n /// @notice Holds address of withdrawer wallet (managed by withdrawal server).\n address payable public withdrawer;\n\n /// @notice Holds address of fund wallet (managed by Ledgity financial team).\n address public fund;\n\n /// @notice Holds the withdrawal fees rate in UD7x3 format (e.g., 350 = 0.350%).\n uint32 public feesRateUD7x3;\n\n /// @notice Holds the retention rate in UD7x3 format.\n uint32 public retentionRateUD7x3;\n\n /// @notice Holds the amount of withdrawal fees not yet claimed by contract's owner.\n uint256 public unclaimedFees;\n\n /// @notice Holds the amount of L-Tokens currently in the withdrawal queue.\n uint256 public totalQueued;\n\n /**\n * @notice Holds the amount of underlying tokens considered as usable by the contract.\n * @dev Are usable, only underlying tokens deposit through deposit() or fund() functions.\n */\n uint256 public usableUnderlyings;\n\n /// @notice Holds an ordered list of active withdrawal requests.\n WithdrawalRequest[] public withdrawalQueue;\n\n /// @notice Holds the index of the next withdrawal request to process in the queue.\n uint256 public withdrawalQueueCursor;\n\n /**\n * @notice Holds a list of all currently frozen withdrawal requests.\n * @dev If a request emitter as been blacklisted, its request is moved here to prevent\n * it from blocking the queue.\n */\n WithdrawalRequest[] public frozenRequests;\n\n /**\n * @notice Holds a list of contracts' references that are listening to L-Tokens transfers.\n * @dev onLTokenTransfer() functions of those contracts will be called on each transfer.\n */\n ITransfersListener[] public transfersListeners;\n\n /**\n * @notice Emitted to inform listeners about a change in the contract's TVL.\n * @dev TVL = realTotalSupply()\n * @param newTVL The new TVL of the contract.\n */\n event TVLChangeEvent(uint256 newTVL);\n\n /**\n * @notice Emitted to inform listerners about an activity related to deposits and withdrawals.\n * @param id ID of the involved withdrawal request or NO_ID (-1) if not applicable.\n * @param account The account involved in the activity.\n * @param action The type of activity.\n * @param amount The amount of underlying tokens involved in the activity.\n * @param newStatus The new status of the activity.\n * @param newId The new ID of the request if it has been moved in the queue.\n */\n event ActivityEvent(\n int256 indexed id,\n address indexed account,\n Action indexed action,\n uint256 amount,\n uint256 amountAfterFees,\n Status newStatus,\n int256 newId\n );\n\n /**\n * @notice Emitted to inform listeners that some rewards have been minted.\n * @param account The account that received the rewards.\n * @param balanceBefore The balance of the account before the minting.\n * @param rewards The amount of minted rewards.\n */\n event MintedRewardsEvent(address indexed account, uint256 balanceBefore, uint256 rewards);\n\n /// @notice Reverts if the function caller is not the withdrawer wallet.\n modifier onlyWithdrawer() {\n require(_msgSender() == withdrawer, \"L39\");\n _;\n }\n\n /// @notice Reverts if the function caller is not the fund wallet.\n modifier onlyFund() {\n require(_msgSender() == fund, \"L40\");\n _;\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param underlyingToken The address of the underlying stablecoin ERC20 token.\n */\n function initialize(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address ldyStaking_,\n address underlyingToken\n ) public initializer {\n // Initialize ERC20 base.\n string memory underlyingSymbol = IERC20MetadataUpgradeable(underlyingToken).symbol();\n __ERC20Base_init(\n globalOwner_,\n globalPause_,\n globalBlacklist_,\n string(abi.encodePacked(\"Ledgity \", underlyingSymbol)),\n string(abi.encodePacked(\"L\", underlyingSymbol))\n );\n\n // IMPORTANT: Below calls must not be restricted to owner at any point.\n // This is because the GlobalOwner contract may not be a fresh one, and so\n // the contract deployer may not be the owner anymore after ERC20Base init.\n\n // Initialize other parents contracts.\n __ERC20Wrapper_init(IERC20Upgradeable(underlyingToken));\n __Invest_init_unchained(address(this));\n\n // Set LDYStaking contract\n ldyStaking = LDYStaking(ldyStaking_);\n\n // Set initial withdrawal fees rate to 0.3%\n feesRateUD7x3 = 300;\n\n // Set initial retention rate to 10%\n retentionRateUD7x3 = 10_000;\n\n // Default withdrawer and fund wallet to contract owner address. This prevents\n // any loss of funds if a deposit/withdrawal is made before those are manually set.\n withdrawer = payable(owner());\n fund = payable(owner());\n }\n\n /**\n * @notice Required override of decimals() which is implemented by both\n * ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts.\n * @dev The ERC20WrapperUpgradeable version is preferred because it mirrors the\n * decimals amount of the underlying stablecoin token.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function decimals()\n public\n view\n override(ERC20Upgradeable, ERC20WrapperUpgradeable)\n returns (uint8)\n {\n return ERC20WrapperUpgradeable.decimals();\n }\n\n /**\n * @notice Required override of paused() which is implemented by both\n * GlobalPausableUpgradeable and ERC20BaseUpgradeable parent contracts.\n * @dev Both version are the same as ERC20BaseUpgradeable.paused() mirrors\n * GlobalPausableUpgradeable.paused(), so a random one is chosen.\n * @inheritdoc GlobalPausableUpgradeable\n */\n function paused()\n public\n view\n virtual\n override(GlobalPausableUpgradeable, ERC20BaseUpgradeable)\n returns (bool)\n {\n return GlobalPausableUpgradeable.paused();\n }\n\n /**\n * @notice Updates the current withdrawal fee rate.\n * @param feesRateUD7x3_ The new withdrawal fee rate in UD7x3 format.\n */\n function setFeesRate(uint32 feesRateUD7x3_) public onlyOwner {\n require(feesRateUD7x3_ <= MAX_FEES_RATE_UD7x3, \"L88\");\n feesRateUD7x3 = feesRateUD7x3_;\n }\n\n /**\n * @notice Updates the current underlying token retention rate.\n * @dev The retention rate is capped at 10%, which ensures that no more than 10% of\n * deposited assets will ever be exposed in this contract (reduces attack surface).\n * @param retentionRateUD7x3_ The new retention rate in UD7x3 format.\n */\n function setRetentionRate(uint32 retentionRateUD7x3_) public onlyOwner {\n require(retentionRateUD7x3_ <= MAX_RETENTION_RATE_UD7x3, \"L41\");\n retentionRateUD7x3 = retentionRateUD7x3_;\n }\n\n /**\n * @notice Updates the address of LDYStaking contract.\n * @param ldyStakingAddress The address of the new LDYStaking contract.\n */\n function setLDYStaking(address ldyStakingAddress) public onlyOwner {\n ldyStaking = LDYStaking(ldyStakingAddress);\n }\n\n /**\n * @notice Updates the address of the withdrawer wallet.\n * @param withdrawer_ The address of the new withdrawer wallet.\n */\n function setWithdrawer(address payable withdrawer_) public onlyOwner {\n // Ensure address is not the zero address (pre-processing fees would be lost else)\n require(withdrawer_ != address(0), \"L63\");\n\n // Set new withdrawer wallet's address\n withdrawer = withdrawer_;\n }\n\n /**\n * @notice Updates the address of the fund wallet.\n * @param fund_ The address of the new fund wallet.\n */\n function setFund(address payable fund_) public onlyOwner {\n // Ensure address is not the zero address (deposited tokens would be lost else)\n require(fund_ != address(0), \"L64\");\n\n // Set new fund wallet's address\n fund = fund_;\n }\n\n /**\n * @notice Adds a new contract to the L-Token transfers list.\n * @dev Each time a transfer occurs, the onLTokenTransfer() function of the\n * specified contract will be called.\n * @dev IMPORTANT SECURITY NOTE: This method is not intended to be used with\n * contracts that are not owned by the Ledgity team.\n * @param listenerContract The address of the new transfers listener contract.\n */\n function listenToTransfers(address listenerContract) public onlyOwner {\n transfersListeners.push(ITransfersListener(listenerContract));\n }\n\n /**\n * @notice Removes a contract from the L-Token transfers list.\n * @dev The onLTokenTransfer() function of the specified contract will not be called\n * anymore each time a L-Token transfer occurs.\n * @param listenerContract The address of the listener contract.\n */\n function unlistenToTransfers(address listenerContract) public onlyOwner {\n // Find index of listener contract in transferListeners array\n int256 index = -1;\n uint256 transfersListenersLength = transfersListeners.length;\n for (uint256 i = 0; i < transfersListenersLength; i++) {\n if (address(transfersListeners[i]) == listenerContract) {\n index = int256(i);\n break;\n }\n }\n\n // Revert if given contract wasn't listening to transfers\n require(index > -1, \"L42\");\n\n // Else, remove transfers listener contract from listeners array\n transfersListeners[uint256(index)] = transfersListeners[transfersListenersLength - 1];\n transfersListeners.pop();\n }\n\n /**\n * @notice Retrieves the amount of given account's not yet minted rewards.\n * @dev This is a public implementation of InvestUpgradeable_rewardsOf(). In the\n * context of LToken, this function returns the amount of rewards that have not been\n * distributed/minted yet to the specified account.\n * @dev This is particularly useful for off-chain services to display charts and\n * statistics, as seen in the Ledgity Yield's frontend.\n * @param account The account to check the unminted rewards of.\n * @return The amount of account's unminted rewards.\n */\n function unmintedRewardsOf(address account) public view returns (uint256) {\n return _rewardsOf(account, true);\n }\n\n /**\n * @notice Retrieves the \"real\" balance of an account, i.e., excluding its not yet\n * minted/distributed rewards.\n * @param account The account to check the real balance of.\n * @return The real balance of the account.\n */\n function realBalanceOf(address account) public view returns (uint256) {\n return super.balanceOf(account);\n }\n\n /**\n * @notice Retrieves the total balance of L-Tokens that belong to the account.\n * @dev This is an oOverride of ERC20Upgradeable.balanceOf() that rewards that have\n * not been yet minted to the specified account.\n * @param account The account to check the total balance of.\n * @return The total balance of the account.\n */\n function balanceOf(address account) public view override returns (uint256) {\n return realBalanceOf(account) + unmintedRewardsOf(account);\n }\n\n /**\n * @notice Returns the \"real\" amount of existing L-Tokens, i.e., excluding not yet\n * minted withdrawal fees and L-Tokens currently in the withdrawal queue.\n * @return The real total supply of L-Tokens.\n */\n function realTotalSupply() public view returns (uint256) {\n return super.totalSupply();\n }\n\n /**\n * @notice Retrives the total supply of L-Tokens, including not yet minted withdrawal\n * fees and L-Tokens currently in the withdrawal queue.\n * @return The total supply of L-Tokens.\n */\n function totalSupply() public view override returns (uint256) {\n return realTotalSupply() + totalQueued + unclaimedFees;\n }\n\n /**\n * @notice Recovers a specified amount of a given token address.\n * @dev This override of RecoverableUpgradeable.recoverERC20() prevents the recovered\n * token from being the underlying token.\n * @inheritdoc RecoverableUpgradeable\n */\n function recoverERC20(address tokenAddress, uint256 amount) public override onlyOwner {\n // Ensure the token is not the underlying token\n require(tokenAddress != address(underlying()), \"L43\");\n\n // Proceed to recovery\n super.recoverERC20(tokenAddress, amount);\n }\n\n /**\n * @notice Recovers underlying tokens accidentally sent to the contract.\n * @dev To prevent owner from being able to drain the contract, this function only\n * allows recovering \"unusable\" underlying tokens, i.e., tokens that have not been\n * sent through fund() or deposit() functions.\n */\n function recoverUnderlying() external onlyOwner {\n // Compute the recoverable amount by taking the difference between the contract's\n // balance and the amount of usable underlying tokens\n uint256 recoverableAmount = underlying().balanceOf(address(this)) - usableUnderlyings;\n\n // Revert if there is nothing to recover\n require(recoverableAmount > 0, \"L44\");\n\n // Else, proceed to underlying tokens recovery\n super.recoverERC20(address(underlying()), recoverableAmount);\n }\n\n /**\n * @notice Retrieves the amount of underlying tokens invested by the given account.\n * @dev Implementing this function is required by the InvestUpgradeable contract. In\n * LToken contract, the investment of an account is equal to its real balance.\n * @inheritdoc InvestUpgradeable\n */\n function _investmentOf(address account) internal view override returns (uint256) {\n return realBalanceOf(account);\n }\n\n /**\n * @notice Distributes a specified amount of rewards (in L-Tokens) to a given account.\n * @dev Implementing this function is required by the InvestUpgradeable contract so\n * it can distribute rewards to accounts before each period reset.\n * @dev InvestUpgradeable contract already ensure that amount > 0.\n * @inheritdoc InvestUpgradeable\n */\n function _distributeRewards(address account, uint256 amount) internal override returns (bool) {\n // Inform listeners of the rewards minting\n emit MintedRewardsEvent(account, realBalanceOf(account), amount);\n\n // Mint L-Tokens rewards to account\n _mint(account, amount);\n\n // Return true indicating to InvestUpgradeable that the rewards have been distributed\n return true;\n }\n\n /**\n * @notice Override of ERC20._beforeTokenTransfer() to integrate with InvestUpgradeable.\n * @dev This overriden version ensure that _beforeInvestmentChange() hook is properly\n * called each time an account's balance is going to change.\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\n * already included in ERC20BaseUpgradeable._beforeTokenTransfer().\n * @inheritdoc ERC20BaseUpgradeable\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal override(ERC20Upgradeable, ERC20BaseUpgradeable) {\n ERC20BaseUpgradeable._beforeTokenTransfer(from, to, amount);\n\n // Invoke _beforeInvestmentChange() hook for non-zero accounts\n if (from != address(0)) _beforeInvestmentChange(from, true);\n if (to != address(0)) _beforeInvestmentChange(to, true);\n }\n\n /**\n * @notice Override of ERC20._afterTokenTransfer() to notify all transfers listeners.\n * @dev This overriden version will trigger onLTokenTransfer() functions of all\n * transfers listeners.\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\n * already checked in _beforeTokenTransfer().\n * @inheritdoc ERC20Upgradeable\n */\n function _afterTokenTransfer(address from, address to, uint256 amount) internal override {\n super._afterTokenTransfer(from, to, amount);\n\n // If some L-Token have been burned/minted, inform listeners of a TVL change\n if (from == address(0) || to == address(0)) emit TVLChangeEvent(totalSupply());\n\n // Trigger onLTokenTransfer() functions of all the transfers listeners\n for (uint256 i = 0; i < transfersListeners.length; i++) {\n transfersListeners[i].onLTokenTransfer(from, to, amount);\n }\n }\n\n /**\n * @notice Computes the maximum amount of underlying tokens that should be retained\n * by the contract (based on retention rate).\n * @return amount The expected amount of retained underlying tokens.\n */\n function getExpectedRetained() public view returns (uint256 amount) {\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Convert totalSupply and retentionRate to SUD\n uint256 totalSupplySUD = SUD.fromAmount(totalSupply(), d);\n uint256 retentionRateSUD = SUD.fromRate(retentionRateUD7x3, d);\n\n // Compute and return expected retained amount\n uint256 expectedRetainedSUD = (totalSupplySUD * retentionRateSUD) / SUD.fromInt(100, d);\n return SUD.toAmount(expectedRetainedSUD, d);\n }\n\n /// @notice Transfers underlying tokens exceeding the retention rate to the fund wallet.\n function _transferExceedingToFund() internal {\n // Retrieve the expected amount retained\n uint256 expectedRetained = getExpectedRetained();\n\n // If usable underlyings are less than or equal to expected retained, return\n if (usableUnderlyings <= expectedRetained) return;\n\n // Else, exceeding amount is equal to difference between those values\n uint256 exceedingAmount = usableUnderlyings - expectedRetained;\n\n // Decrease usable underlyings amount accordingly\n usableUnderlyings -= exceedingAmount;\n\n // Transfer the exceeding amount to the fund wallet\n underlying().safeTransfer(fund, exceedingAmount);\n }\n\n /**\n * @notice Override of ERC20WrapperUpgradeable.withdrawTo() that reverts.\n * Use instantWithdrawal() or requestWithdrawal() functions instead.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function withdrawTo(address account, uint256 amount) public pure override returns (bool) {\n account; // Silence unused variable compiler warning\n amount;\n revert(\"L45\");\n }\n\n /**\n * @notice Override of ERC20WrapperUpgradeable.depositFor() that reverts.\n * Use deposit() function instead.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function depositFor(address account, uint256 amount) public pure override returns (bool) {\n account; // Silence unused variable compiler warning\n amount;\n revert(\"L46\");\n }\n\n /**\n * @notice Allows exchanging some underlying tokens for the same amount of L-Tokens.\n * @param amount The amount of underlying tokens to deposit.\n */\n function deposit(uint256 amount) public whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough underlying tokens to deposit\n require(underlying().balanceOf(_msgSender()) >= amount, \"L47\");\n\n // Update usable underlyings balance accordingly\n usableUnderlyings += amount;\n\n // Inform listeners of the deposit activity event\n emit ActivityEvent(\n NO_ID,\n _msgSender(),\n Action.Deposit,\n amount,\n amount,\n Status.Success,\n NO_ID\n );\n\n // Receive underlying tokens and mint L-Tokens to the account in a 1:1 ratio\n super.depositFor(_msgSender(), amount);\n\n // Transfer exceeding underlying tokens to the fund wallet\n _transferExceedingToFund();\n }\n\n /**\n * @notice Computes fees and net withdrawn amount for a given account withdrawing a\n * given amount.\n * @param account The account initiating the withdrawal.\n * @param amount The amount of the withdrawal.\n */\n function getWithdrawnAmountAndFees(\n address account,\n uint256 amount\n ) public view returns (uint256 withdrawnAmount, uint256 fees) {\n // If the account is eligible to staking tier 2, no fees are applied\n if (ldyStaking.tierOf(account) >= 2) return (amount, 0);\n\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Convert amount and fees rate to SUD\n uint256 amountSUD = SUD.fromAmount(amount, d);\n uint256 feesRateSUD = SUD.fromRate(feesRateUD7x3, d);\n\n // Compute fees and withdrawn amount (initial amount minus fees)\n uint256 feesSUD = (amountSUD * feesRateSUD) / SUD.fromInt(100, d);\n fees = SUD.toAmount(feesSUD, d);\n withdrawnAmount = amount - fees;\n }\n\n /**\n * @notice Allows instaneously exchanging a given amount of L-Tokens for the same\n * amount of underlying tokens. It will fail if the contract currently doesn't hold\n * enough underlying tokens to cover the withdrawal.\n * @dev In order to save some gas and time to users, frontends should propose this\n * function to users only when it has been verified that it will not revert. They\n * should propose the requestWithdrawal() function otherwise.\n * @param amount The amount L-Tokens to withdraw.\n */\n function instantWithdrawal(uint256 amount) external whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough L-Tokens to withdraw\n require(amount <= balanceOf(_msgSender()), \"L48\");\n\n // Can the contract cover this withdrawal plus all already queued requests?\n bool cond1 = totalQueued + amount <= usableUnderlyings;\n\n // Is caller eligible to staking tier 2 and the contract can cover this withdrawal?\n bool cond2 = ldyStaking.tierOf(_msgSender()) >= 2 && amount <= usableUnderlyings;\n\n // Revert if conditions are not met for the withdrawal to be processed instantaneously\n if (!(cond1 || cond2)) revert(\"L49\");\n\n // Else, retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(_msgSender(), amount);\n\n // Increase unclaimed fees amount accordingly\n unclaimedFees += fees;\n\n // Decrease usable underlyings balance accordingly\n usableUnderlyings -= withdrawnAmount;\n\n // Inform listeners of this instant withdrawal activity event\n emit ActivityEvent(\n NO_ID,\n _msgSender(),\n Action.Withdraw,\n amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Burn withdrawal fees from the account\n _burn(_msgSender(), fees);\n\n // Burn account's withdrawn L-Tokens and transfer to it underlying tokens in a 1:1 ratio\n super.withdrawTo(_msgSender(), withdrawnAmount);\n }\n\n /**\n * @notice Allows requesting the exchange of a given amount of L-Tokens for the same\n * amount of underlying tokens. The request will be automatically processed later.\n * @dev The sender must attach 0.003 ETH to pre-pay the future processing gas fees\n * paid by the withdrawer wallet.\n * @param amount The amount L-Tokens to withdraw.\n */\n function requestWithdrawal(\n uint256 amount\n ) public payable whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough L-Tokens to withdraw\n require(amount <= balanceOf(_msgSender()), \"L53\");\n\n // Ensure the requested amount doesn't overflow uint96\n require(amount <= type(uint96).max, \"L54\");\n\n // Ensure the sender attached the pre-paid processing gas fees\n require(msg.value == 0.003 * 10 ** 18, \"L55\");\n\n // Create withdrawal request data\n WithdrawalRequest memory request = WithdrawalRequest({\n account: _msgSender(),\n amount: uint96(amount)\n });\n\n // Will hold the request ID\n uint256 requestId;\n\n // Append request to the withdrawal queue:\n // - At the beginning, if account is eligible to staking tier 2 and cursor is not 0\n if (ldyStaking.tierOf(_msgSender()) >= 2 && withdrawalQueueCursor > 0) {\n withdrawalQueueCursor--;\n requestId = withdrawalQueueCursor;\n withdrawalQueue[requestId] = request;\n }\n // - At the end else\n else {\n withdrawalQueue.push(request);\n requestId = withdrawalQueue.length - 1;\n }\n\n // Increase total amount queued accordingly\n totalQueued += amount;\n\n // Inform listeners of this new queued withdrawal activity event\n emit ActivityEvent(\n int256(requestId),\n _msgSender(),\n Action.Withdraw,\n amount,\n amount,\n Status.Queued,\n NO_ID\n );\n\n // Burn withdrawal L-Tokens amount from account's balance\n _burn(_msgSender(), amount);\n\n // Forward pre-paid processing gas fees to the withdrawer wallet\n (bool sent, ) = withdrawer.call{value: msg.value}(\"\");\n require(sent, \"L56\");\n }\n\n /**\n * @notice Processes queued withdrawal requests until there is else no more requests,\n * else not enough underlying tokens to continue.\n * @dev For further details, see \"LToken > Withdrawals\" section of whitepaper.\n */\n function processQueuedRequests() external onlyWithdrawer whenNotPaused {\n // Accumulators variables, will be written on-chain after the loop\n uint256 cumulatedFees = 0;\n uint256 cumulatedWithdrawnAmount = 0;\n uint256 nextRequestId = withdrawalQueueCursor;\n\n // Cache queue length to avoid multiple SLOADs and avoid infinite loop as big\n // requests are increasing the queue length when moved at the end of the queue.\n uint256 queueLength = withdrawalQueue.length;\n\n // Iterate over requests to be processed\n while (nextRequestId < queueLength) {\n // Stop processing requests if there is not enough gas left to continue the\n // loop and properly end the function call. This prevents an attacker from\n // blocking the withdrawal processing by creating a ton of tiny requests so\n // this function call cannot fit anymore in block gas limit.\n if (gasleft() < 45000) break;\n\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[nextRequestId];\n\n // Skip empty request (processed big requests or cancelled requests)\n if (request.account == address(0)) {}\n //\n // If account has been blacklisted since request emission\n else if (isBlacklisted(request.account)) {\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Append request in the frozen requests list\n frozenRequests.push(request);\n }\n //\n // Or if request is a big request, move it at the end of the queue for now.\n // This request will be processed manually later using processBigQueuedRequest()\n else if (request.amount > getExpectedRetained() / 2) {\n // Inform listeners of this queued request being moved at the end of the queue\n emit ActivityEvent(\n int256(nextRequestId),\n _msgSender(),\n Action.Withdraw,\n request.amount,\n request.amount,\n Status.Moved,\n int256(withdrawalQueue.length)\n );\n\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Append request at the end of the queue\n withdrawalQueue.push(request);\n }\n //\n // Else, continue request processing\n else {\n // Retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\n request.account,\n request.amount\n );\n\n // Break if the contract doesn't hold enough funds to cover the request\n if (withdrawnAmount > usableUnderlyings - cumulatedWithdrawnAmount) break;\n\n // Accumulate fees and withdrawn amount\n cumulatedFees += fees;\n cumulatedWithdrawnAmount += withdrawnAmount;\n\n // Inform listeners of this queued withdrawal processing activity event\n emit ActivityEvent(\n int256(nextRequestId),\n request.account,\n Action.Withdraw,\n request.amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Transfer underlying tokens to account. Burning L-Tokens is not required\n // as equestWithdrawal() already did it.\n // Security note: Re-entrancy warning are disabled as the request has\n // just been deleted from the queue, it will so be skipped if trying to\n // process it again.\n // slither-disable-next-line reentrancy-no-eth\n underlying().safeTransfer(request.account, withdrawnAmount);\n }\n\n // Increment next request ID\n nextRequestId++;\n }\n\n // Increase unclaimed fees by the amount of cumulated fees\n unclaimedFees += cumulatedFees;\n\n // Decrease usable underlyings by the cumulated amount of withdrawn underlyings\n usableUnderlyings -= cumulatedWithdrawnAmount;\n\n // Decrease total amount queued by the cumulated amount requested\n totalQueued -= cumulatedWithdrawnAmount + cumulatedFees;\n\n // Update new queue cursor\n withdrawalQueueCursor = nextRequestId;\n\n // Retention rate cannot exceeds as the withdrawal decreases both usable\n // underlyings and expected retained amounts by the same number and as the\n // expected retained amount is a subset of usable underlyings amount.\n }\n\n /**\n * @notice Processes a given queued big withdrawal request (one that exceeds half of\n * the retention rate).\n * @dev In contrast to non-big requests processing, this function will uses to fund\n * wallet's balance to fill the request. This allows processing requests that are\n * greater than retention rate without having to exceed this rate on the contract.\n * @param requestId The ID of the big request to process.\n */\n function processBigQueuedRequest(uint256 requestId) external onlyFund whenNotPaused {\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[requestId];\n\n // Ensure the request is active\n require(request.account != address(0), \"L66\");\n\n // Ensure the request emitter has not been blacklisted since request emission\n require(!isBlacklisted(request.account), \"L50\");\n\n // Ensure this is indeed a big request\n require(request.amount > getExpectedRetained() / 2, \"L51\");\n\n // Retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\n request.account,\n request.amount\n );\n\n // Ensure withdrawn amount can be covered by contract + fund wallet balances\n uint256 fundBalance = underlying().balanceOf(fund);\n require(withdrawnAmount <= usableUnderlyings + fundBalance, \"L52\");\n\n // Increase amount of unclaimed fees accordingly\n unclaimedFees += fees;\n\n // Decrease total queued amount by request amount\n totalQueued -= request.amount;\n\n // Increment queue cursor if request was the next request to be processed\n if (requestId == withdrawalQueueCursor) withdrawalQueueCursor++;\n\n // Inform listeners of this queued withdrawal processing activity event\n emit ActivityEvent(\n int256(requestId),\n request.account,\n Action.Withdraw,\n request.amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Remove request from queue\n delete withdrawalQueue[requestId];\n\n // If fund wallet's balance can cover request, rely on it only\n if (withdrawnAmount <= fundBalance) {\n underlying().safeTransferFrom(_msgSender(), request.account, withdrawnAmount);\n }\n // Else, cover request from both fund wallet and contract balances\n else {\n // Compute amount missing from fund wallet to cover request\n uint256 missingAmount = withdrawnAmount - fundBalance;\n\n // Decrease usable amount of underlying tokens accordingly\n usableUnderlyings -= missingAmount;\n\n // Transfer entire fund balance to request's emitter\n underlying().safeTransferFrom(_msgSender(), request.account, fundBalance);\n\n // Transfer missing amount from contract balance to request emitter\n underlying().safeTransfer(request.account, missingAmount);\n }\n\n // Transfer exceeding underlying tokens to the fund wallet\n _transferExceedingToFund();\n }\n\n /**\n * @notice Cancels a given withdrawal request. The request emitter receive back its\n * L-Tokens and no fees will be charged.\n * @param requestId The ID of the withdrawal request to cancel.\n */\n function cancelWithdrawalRequest(\n uint256 requestId\n ) public whenNotPaused notBlacklisted(_msgSender()) {\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[requestId];\n\n // Ensure request belongs to caller\n require(_msgSender() == request.account, \"L57\");\n\n // Decrease total amount queued accordingly\n totalQueued -= request.amount;\n\n // Delete the withdrawal request from queue\n delete withdrawalQueue[requestId];\n\n // Inform listeners of this cancelled withdrawal request activity event\n emit ActivityEvent(\n int256(requestId),\n request.account,\n Action.Withdraw,\n request.amount,\n request.amount,\n Status.Cancelled,\n NO_ID\n );\n\n // Mint back L-Tokens to account\n _mint(request.account, uint256(request.amount));\n }\n\n /**\n * @notice Used by the fund wallet to repatriate underlying tokens on the contract\n * whenever those are required to fulfill some withdrawal requests.\n * @dev The function will revert if repatriated amount makes the contract exceeding\n * the retention rate.\n * @param amount The amount of underlying tokens to repatriate.\n */\n function repatriate(uint256 amount) external onlyFund whenNotPaused {\n // Ensure the fund wallet has enough funds to repatriate\n require(amount <= underlying().balanceOf(fund), \"L58\");\n\n // Calculate new contract usable balance\n uint256 newBalance = usableUnderlyings + amount;\n\n // Ensure the new balance doesn't exceed the retention rate\n require(newBalance <= getExpectedRetained(), \"L59\");\n\n // Increase usable underlyings amount by repatriated amount\n usableUnderlyings += amount;\n\n // Transfer amount from fund wallet to contract\n underlying().safeTransferFrom(_msgSender(), address(this), amount);\n }\n\n /// @notice Used by owner to claim fees generated from successful withdrawals.\n function claimFees() external onlyOwner {\n // Ensure there are some fees to claim\n require(unclaimedFees > 0, \"L60\");\n\n // Ensure the contract holds enough underlying tokens to cover fees\n require(usableUnderlyings >= unclaimedFees, \"L61\");\n\n // Decrease usable underlyings amount accordingly\n usableUnderlyings -= unclaimedFees;\n\n // Store fees amount in memory and reset unclaimed fees amount\n uint256 fees = unclaimedFees;\n unclaimedFees = 0;\n\n // Transfer unclaimed fees to owner\n underlying().safeTransfer(owner(), fees);\n }\n}\n" + "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {ERC20WrapperUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol\";\nimport \"./abstracts/base/ERC20BaseUpgradeable.sol\";\nimport {InvestUpgradeable} from \"./abstracts/InvestUpgradeable.sol\";\nimport {LDYStaking} from \"./LDYStaking.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\nimport {SUD} from \"./libs/SUD.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\nimport {ITransfersListener} from \"./interfaces/ITransfersListener.sol\";\n\n/**\n * @title LToken\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Main contract of the Ledgity Yield protocol. It powers every L-Token (i.e.,\n * investment pools backed by RWA). An L-Token is an ERC20 wrapper around a stablecoin.\n * As soon as a wallet holds some L-Tokens, it starts receiving rewards in\n * the form of additional L-Tokens, which are auto-compounded over time.\n *\n * @dev Definitions:\n * - Deposit: Swap of underlying tokens for L-Tokens (1:1 ratio).\n * - Withdrawal: Swap of L-Tokens for underlying tokens (1:1 ratio, minus applicable fees).\n * - Instant: Processed immediately.\n * - Request: Queued for later processing.\n * - Big Request: A requested withdrawal exceeding half of the retention rate.\n * - (Withdrawal) queue: A list of all requested withdrawals sorted by priority.\n * - Request ID: The index of a withdrawal request in the queue array.\n * - Retention rate: Maximum fraction of underlying tokens TVL the contract can retain.\n * - Fees Rate: Percentage of fees applied to successful withdrawals.\n * - Usable underlyings: Amount of underlying tokens that have been deposited through\n * expected ways and are so considered safe to use by the contract.\n * - Transfers listeners: External contracts listening on L-Tokens transfers.\n * - Fund wallet: Wallet managed by the Ledgity's financial team.\n * - Withdrawer wallet: Managed by an off-chain server to automate withdrawal request\n * processing.\n *\n * Note that words between parenthesis are sometimes omitted for brevity.\n *\n * @dev Deployment notice:\n * This contract can safely receive funds immediately after initialization. (i.e., there\n * is no way for funds to be sent to non-owned addresses). It is, however, recommended to\n * replace ASAP owner and fund wallets with multi-sig wallets.\n *\n * @dev For further details, see \"LToken\" section of whitepaper.\n * @custom:oz-upgrades-unsafe-allow external-library-linking\n * @custom:security-contact security@ledgity.com\n */\ncontract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /// @dev Represents type of actions triggering ActivityEvent events.\n enum Action {\n Deposit,\n Withdraw\n }\n\n /// @dev Represents different status of actions triggering ActivityEvent events.\n enum Status {\n Queued,\n Cancelled,\n Success,\n Moved\n }\n\n /**\n * @notice Represents a withdrawal request in the queue.\n * @dev A request fits in a single storage slot (32 bytes).\n * @param account The account that initiated the request.\n * @param amount The amount of underlying tokens requested.\n */\n struct WithdrawalRequest {\n address account; // 20 bytes\n uint96 amount; // 12 bytes\n }\n\n /// @notice Upper limit of retention rate.\n uint32 private constant MAX_RETENTION_RATE_UD7x3 = 10 * 10 ** 3; // 10%\n\n /// @notice Upper limit of fees rate.\n uint32 private constant MAX_FEES_RATE_UD7x3 = 20 * 10 ** 3; // 20%\n\n /// @notice Used in activity events to represent the absence of request ID.\n int256 private constant NO_ID = -1;\n\n /// @notice Holds a reference to the LDYStaking contract.\n LDYStaking public ldyStaking;\n\n /// @notice Holds address of withdrawer wallet (managed by withdrawal server).\n address payable public withdrawer;\n\n /// @notice Holds address of fund wallet (managed by Ledgity financial team).\n address public fund;\n\n /// @notice Holds the withdrawal fees rate in UD7x3 format (e.g., 350 = 0.350%).\n uint32 public feesRateUD7x3;\n\n /// @notice Holds the retention rate in UD7x3 format.\n uint32 public retentionRateUD7x3;\n\n /// @notice Holds the amount of withdrawal fees not yet claimed by contract's owner.\n uint256 public unclaimedFees;\n\n /// @notice Holds the amount of L-Tokens currently in the withdrawal queue.\n uint256 public totalQueued;\n\n /**\n * @notice Holds the amount of underlying tokens considered as usable by the contract.\n * @dev Are usable, only underlying tokens deposit through deposit() or fund() functions.\n */\n uint256 public usableUnderlyings;\n\n /// @notice Holds an ordered list of active withdrawal requests.\n WithdrawalRequest[] public withdrawalQueue;\n\n /// @notice Holds the index of the next withdrawal request to process in the queue.\n uint256 public withdrawalQueueCursor;\n\n /**\n * @notice Holds a list of all currently frozen withdrawal requests.\n * @dev If a request emitter as been blacklisted, its request is moved here to prevent\n * it from blocking the queue.\n */\n WithdrawalRequest[] public frozenRequests;\n\n /**\n * @notice Holds a list of contracts' references that are listening to L-Tokens transfers.\n * @dev onLTokenTransfer() functions of those contracts will be called on each transfer.\n */\n ITransfersListener[] public transfersListeners;\n\n /**\n * @notice Holds the withdrawalFee amount in ETH that will be sent to withdrawer wallet.\n */\n uint256 public withdrawalFeeInEth;\n\n /**\n * @notice Emitted to inform listeners about a change in the contract's TVL.\n * @dev TVL = realTotalSupply()\n * @param newTVL The new TVL of the contract.\n */\n event TVLChangeEvent(uint256 newTVL);\n\n /**\n * @notice Emitted to inform listerners about an activity related to deposits and withdrawals.\n * @param id ID of the involved withdrawal request or NO_ID (-1) if not applicable.\n * @param account The account involved in the activity.\n * @param action The type of activity.\n * @param amount The amount of underlying tokens involved in the activity.\n * @param newStatus The new status of the activity.\n * @param newId The new ID of the request if it has been moved in the queue.\n */\n event ActivityEvent(\n int256 indexed id,\n address indexed account,\n Action indexed action,\n uint256 amount,\n uint256 amountAfterFees,\n Status newStatus,\n int256 newId,\n string referralCode\n );\n\n /**\n * @notice Emitted to inform listeners that some rewards have been minted.\n * @param account The account that received the rewards.\n * @param balanceBefore The balance of the account before the minting.\n * @param rewards The amount of minted rewards.\n */\n event MintedRewardsEvent(address indexed account, uint256 balanceBefore, uint256 rewards);\n\n /// @notice Reverts if the function caller is not the withdrawer wallet.\n modifier onlyWithdrawer() {\n require(_msgSender() == withdrawer, \"L39\");\n _;\n }\n\n /// @notice Reverts if the function caller is not the fund wallet.\n modifier onlyFund() {\n require(_msgSender() == fund, \"L40\");\n _;\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param underlyingToken The address of the underlying stablecoin ERC20 token.\n */\n function initialize(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address ldyStaking_,\n address underlyingToken\n ) public initializer {\n // Initialize ERC20 base.\n string memory underlyingSymbol = IERC20MetadataUpgradeable(underlyingToken).symbol();\n __ERC20Base_init(\n globalOwner_,\n globalPause_,\n globalBlacklist_,\n string(abi.encodePacked(\"Ledgity \", underlyingSymbol)),\n string(abi.encodePacked(\"L\", underlyingSymbol))\n );\n\n // IMPORTANT: Below calls must not be restricted to owner at any point.\n // This is because the GlobalOwner contract may not be a fresh one, and so\n // the contract deployer may not be the owner anymore after ERC20Base init.\n\n // Initialize other parents contracts.\n __ERC20Wrapper_init(IERC20Upgradeable(underlyingToken));\n __Invest_init_unchained(address(this));\n\n // Set LDYStaking contract\n ldyStaking = LDYStaking(ldyStaking_);\n\n // Set initial withdrawal fees rate to 0.3%\n feesRateUD7x3 = 300;\n\n // Set initial retention rate to 10%\n retentionRateUD7x3 = 10_000;\n\n // Default withdrawer and fund wallet to contract owner address. This prevents\n // any loss of funds if a deposit/withdrawal is made before those are manually set.\n withdrawer = payable(owner());\n fund = payable(owner());\n\n // Set initial withdrawalFeeInEth\n withdrawalFeeInEth = 0.00075 * 1e18;\n }\n\n /**\n * @notice Required override of decimals() which is implemented by both\n * ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts.\n * @dev The ERC20WrapperUpgradeable version is preferred because it mirrors the\n * decimals amount of the underlying stablecoin token.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function decimals()\n public\n view\n override(ERC20Upgradeable, ERC20WrapperUpgradeable)\n returns (uint8)\n {\n return ERC20WrapperUpgradeable.decimals();\n }\n\n /**\n * @notice Required override of paused() which is implemented by both\n * GlobalPausableUpgradeable and ERC20BaseUpgradeable parent contracts.\n * @dev Both version are the same as ERC20BaseUpgradeable.paused() mirrors\n * GlobalPausableUpgradeable.paused(), so a random one is chosen.\n * @inheritdoc GlobalPausableUpgradeable\n */\n function paused()\n public\n view\n virtual\n override(GlobalPausableUpgradeable, ERC20BaseUpgradeable)\n returns (bool)\n {\n return GlobalPausableUpgradeable.paused();\n }\n\n /**\n * @notice Updates the current withdrawal fee rate.\n * @param feesRateUD7x3_ The new withdrawal fee rate in UD7x3 format.\n */\n function setFeesRate(uint32 feesRateUD7x3_) public onlyOwner {\n require(feesRateUD7x3_ <= MAX_FEES_RATE_UD7x3, \"L88\");\n feesRateUD7x3 = feesRateUD7x3_;\n }\n\n /**\n * @notice Updates the current withdrawalFeeInETH.\n * @param withdrawalFeeInEth_ The new withdrawalFee in ETH.\n */\n function setWithdrawalFeeInEth(uint256 withdrawalFeeInEth_) public onlyOwner {\n withdrawalFeeInEth = withdrawalFeeInEth_;\n }\n\n /**\n * @notice Updates the current underlying token retention rate.\n * @dev The retention rate is capped at 10%, which ensures that no more than 10% of\n * deposited assets will ever be exposed in this contract (reduces attack surface).\n * @param retentionRateUD7x3_ The new retention rate in UD7x3 format.\n */\n function setRetentionRate(uint32 retentionRateUD7x3_) public onlyOwner {\n require(retentionRateUD7x3_ <= MAX_RETENTION_RATE_UD7x3, \"L41\");\n retentionRateUD7x3 = retentionRateUD7x3_;\n }\n\n /**\n * @notice Updates the address of LDYStaking contract.\n * @param ldyStakingAddress The address of the new LDYStaking contract.\n */\n function setLDYStaking(address ldyStakingAddress) public onlyOwner {\n ldyStaking = LDYStaking(ldyStakingAddress);\n }\n\n /**\n * @notice Updates the address of the withdrawer wallet.\n * @param withdrawer_ The address of the new withdrawer wallet.\n */\n function setWithdrawer(address payable withdrawer_) public onlyOwner {\n // Ensure address is not the zero address (pre-processing fees would be lost else)\n require(withdrawer_ != address(0), \"L63\");\n\n // Set new withdrawer wallet's address\n withdrawer = withdrawer_;\n }\n\n /**\n * @notice Updates the address of the fund wallet.\n * @param fund_ The address of the new fund wallet.\n */\n function setFund(address payable fund_) public onlyOwner {\n // Ensure address is not the zero address (deposited tokens would be lost else)\n require(fund_ != address(0), \"L64\");\n\n // Set new fund wallet's address\n fund = fund_;\n }\n\n /**\n * @notice Adds a new contract to the L-Token transfers list.\n * @dev Each time a transfer occurs, the onLTokenTransfer() function of the\n * specified contract will be called.\n * @dev IMPORTANT SECURITY NOTE: This method is not intended to be used with\n * contracts that are not owned by the Ledgity team.\n * @param listenerContract The address of the new transfers listener contract.\n */\n function listenToTransfers(address listenerContract) public onlyOwner {\n transfersListeners.push(ITransfersListener(listenerContract));\n }\n\n /**\n * @notice Removes a contract from the L-Token transfers list.\n * @dev The onLTokenTransfer() function of the specified contract will not be called\n * anymore each time a L-Token transfer occurs.\n * @param listenerContract The address of the listener contract.\n */\n function unlistenToTransfers(address listenerContract) public onlyOwner {\n // Find index of listener contract in transferListeners array\n int256 index = -1;\n uint256 transfersListenersLength = transfersListeners.length;\n for (uint256 i = 0; i < transfersListenersLength; i++) {\n if (address(transfersListeners[i]) == listenerContract) {\n index = int256(i);\n break;\n }\n }\n\n // Revert if given contract wasn't listening to transfers\n require(index > -1, \"L42\");\n\n // Else, remove transfers listener contract from listeners array\n transfersListeners[uint256(index)] = transfersListeners[transfersListenersLength - 1];\n transfersListeners.pop();\n }\n\n /**\n * @notice Retrieves the amount of given account's not yet minted rewards.\n * @dev This is a public implementation of InvestUpgradeable_rewardsOf(). In the\n * context of LToken, this function returns the amount of rewards that have not been\n * distributed/minted yet to the specified account.\n * @dev This is particularly useful for off-chain services to display charts and\n * statistics, as seen in the Ledgity Yield's frontend.\n * @param account The account to check the unminted rewards of.\n * @return The amount of account's unminted rewards.\n */\n function unmintedRewardsOf(address account) public view returns (uint256) {\n return _rewardsOf(account, true);\n }\n\n /**\n * @notice Retrieves the \"real\" balance of an account, i.e., excluding its not yet\n * minted/distributed rewards.\n * @param account The account to check the real balance of.\n * @return The real balance of the account.\n */\n function realBalanceOf(address account) public view returns (uint256) {\n return super.balanceOf(account);\n }\n\n /**\n * @notice Retrieves the total balance of L-Tokens that belong to the account.\n * @dev This is an oOverride of ERC20Upgradeable.balanceOf() that rewards that have\n * not been yet minted to the specified account.\n * @param account The account to check the total balance of.\n * @return The total balance of the account.\n */\n function balanceOf(address account) public view override returns (uint256) {\n return realBalanceOf(account) + unmintedRewardsOf(account);\n }\n\n /**\n * @notice Returns the \"real\" amount of existing L-Tokens, i.e., excluding not yet\n * minted withdrawal fees and L-Tokens currently in the withdrawal queue.\n * @return The real total supply of L-Tokens.\n */\n function realTotalSupply() public view returns (uint256) {\n return super.totalSupply();\n }\n\n /**\n * @notice Retrives the total supply of L-Tokens, including not yet minted withdrawal\n * fees and L-Tokens currently in the withdrawal queue.\n * @return The total supply of L-Tokens.\n */\n function totalSupply() public view override returns (uint256) {\n return realTotalSupply() + totalQueued + unclaimedFees;\n }\n\n /**\n * @notice Recovers a specified amount of a given token address.\n * @dev This override of RecoverableUpgradeable.recoverERC20() prevents the recovered\n * token from being the underlying token.\n * @inheritdoc RecoverableUpgradeable\n */\n function recoverERC20(address tokenAddress, uint256 amount) public override onlyOwner {\n // Ensure the token is not the underlying token\n require(tokenAddress != address(underlying()), \"L43\");\n\n // Proceed to recovery\n super.recoverERC20(tokenAddress, amount);\n }\n\n /**\n * @notice Recovers underlying tokens accidentally sent to the contract.\n * @dev To prevent owner from being able to drain the contract, this function only\n * allows recovering \"unusable\" underlying tokens, i.e., tokens that have not been\n * sent through fund() or deposit() functions.\n */\n function recoverUnderlying() external onlyOwner {\n // Compute the recoverable amount by taking the difference between the contract's\n // balance and the amount of usable underlying tokens\n uint256 recoverableAmount = underlying().balanceOf(address(this)) - usableUnderlyings;\n\n // Revert if there is nothing to recover\n require(recoverableAmount > 0, \"L44\");\n\n // Else, proceed to underlying tokens recovery\n super.recoverERC20(address(underlying()), recoverableAmount);\n }\n\n /**\n * @notice Retrieves the amount of underlying tokens invested by the given account.\n * @dev Implementing this function is required by the InvestUpgradeable contract. In\n * LToken contract, the investment of an account is equal to its real balance.\n * @inheritdoc InvestUpgradeable\n */\n function _investmentOf(address account) internal view override returns (uint256) {\n return realBalanceOf(account);\n }\n\n /**\n * @notice Distributes a specified amount of rewards (in L-Tokens) to a given account.\n * @dev Implementing this function is required by the InvestUpgradeable contract so\n * it can distribute rewards to accounts before each period reset.\n * @dev InvestUpgradeable contract already ensure that amount > 0.\n * @inheritdoc InvestUpgradeable\n */\n function _distributeRewards(address account, uint256 amount) internal override returns (bool) {\n // Inform listeners of the rewards minting\n emit MintedRewardsEvent(account, realBalanceOf(account), amount);\n\n // Mint L-Tokens rewards to account\n _mint(account, amount);\n\n // Return true indicating to InvestUpgradeable that the rewards have been distributed\n return true;\n }\n\n /**\n * @notice Override of ERC20._beforeTokenTransfer() to integrate with InvestUpgradeable.\n * @dev This overriden version ensure that _beforeInvestmentChange() hook is properly\n * called each time an account's balance is going to change.\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\n * already included in ERC20BaseUpgradeable._beforeTokenTransfer().\n * @inheritdoc ERC20BaseUpgradeable\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal override(ERC20Upgradeable, ERC20BaseUpgradeable) {\n ERC20BaseUpgradeable._beforeTokenTransfer(from, to, amount);\n\n // Invoke _beforeInvestmentChange() hook for non-zero accounts\n if (from != address(0)) _beforeInvestmentChange(from, true);\n if (to != address(0)) _beforeInvestmentChange(to, true);\n }\n\n /**\n * @notice Override of ERC20._afterTokenTransfer() to notify all transfers listeners.\n * @dev This overriden version will trigger onLTokenTransfer() functions of all\n * transfers listeners.\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\n * already checked in _beforeTokenTransfer().\n * @inheritdoc ERC20Upgradeable\n */\n function _afterTokenTransfer(address from, address to, uint256 amount) internal override {\n super._afterTokenTransfer(from, to, amount);\n\n // If some L-Token have been burned/minted, inform listeners of a TVL change\n if (from == address(0) || to == address(0)) emit TVLChangeEvent(totalSupply());\n\n // Trigger onLTokenTransfer() functions of all the transfers listeners\n for (uint256 i = 0; i < transfersListeners.length; i++) {\n transfersListeners[i].onLTokenTransfer(from, to, amount);\n }\n }\n\n /**\n * @notice Computes the maximum amount of underlying tokens that should be retained\n * by the contract (based on retention rate).\n * @return amount The expected amount of retained underlying tokens.\n */\n function getExpectedRetained() public view returns (uint256 amount) {\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Convert totalSupply and retentionRate to SUD\n uint256 totalSupplySUD = SUD.fromAmount(totalSupply(), d);\n uint256 retentionRateSUD = SUD.fromRate(retentionRateUD7x3, d);\n\n // Compute and return expected retained amount\n uint256 expectedRetainedSUD = (totalSupplySUD * retentionRateSUD) / SUD.fromInt(100, d);\n return SUD.toAmount(expectedRetainedSUD, d);\n }\n\n /// @notice Transfers underlying tokens exceeding the retention rate to the fund wallet.\n function _transferExceedingToFund() internal {\n // Retrieve the expected amount retained\n uint256 expectedRetained = getExpectedRetained();\n\n // If usable underlyings are less than or equal to expected retained, return\n if (usableUnderlyings <= expectedRetained) return;\n\n // Else, exceeding amount is equal to difference between those values\n uint256 exceedingAmount = usableUnderlyings - expectedRetained;\n\n // Decrease usable underlyings amount accordingly\n usableUnderlyings -= exceedingAmount;\n\n // Transfer the exceeding amount to the fund wallet\n underlying().safeTransfer(fund, exceedingAmount);\n }\n\n /**\n * @notice Override of ERC20WrapperUpgradeable.withdrawTo() that reverts.\n * Use instantWithdrawal() or requestWithdrawal() functions instead.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function withdrawTo(address account, uint256 amount) public pure override returns (bool) {\n account; // Silence unused variable compiler warning\n amount;\n revert(\"L45\");\n }\n\n /**\n * @notice Override of ERC20WrapperUpgradeable.depositFor() that reverts.\n * Use deposit() function instead.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function depositFor(address account, uint256 amount) public pure override returns (bool) {\n account; // Silence unused variable compiler warning\n amount;\n revert(\"L46\");\n }\n\n /**\n * @notice Allows exchanging some underlying tokens for the same amount of L-Tokens.\n * @param amount The amount of underlying tokens to deposit.\n * @param refCode The Referral code\n */\n function deposit(\n uint256 amount,\n string memory refCode\n ) public whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough underlying tokens to deposit\n require(underlying().balanceOf(_msgSender()) >= amount, \"L47\");\n\n // Update usable underlyings balance accordingly\n usableUnderlyings += amount;\n\n // Inform listeners of the deposit activity event\n emit ActivityEvent(\n NO_ID,\n _msgSender(),\n Action.Deposit,\n amount,\n amount,\n Status.Success,\n NO_ID,\n refCode\n );\n\n // Receive underlying tokens and mint L-Tokens to the account in a 1:1 ratio\n super.depositFor(_msgSender(), amount);\n\n // Transfer exceeding underlying tokens to the fund wallet\n _transferExceedingToFund();\n }\n\n /**\n * @notice Computes fees and net withdrawn amount for a given account withdrawing a\n * given amount.\n * @param account The account initiating the withdrawal.\n * @param amount The amount of the withdrawal.\n */\n function getWithdrawnAmountAndFees(\n address account,\n uint256 amount\n ) public view returns (uint256 withdrawnAmount, uint256 fees) {\n // If the account is eligible to staking tier 2, no fees are applied\n if (ldyStaking.tierOf(account) >= 2) return (amount, 0);\n\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Convert amount and fees rate to SUD\n uint256 amountSUD = SUD.fromAmount(amount, d);\n uint256 feesRateSUD = SUD.fromRate(feesRateUD7x3, d);\n\n // Compute fees and withdrawn amount (initial amount minus fees)\n uint256 feesSUD = (amountSUD * feesRateSUD) / SUD.fromInt(100, d);\n fees = SUD.toAmount(feesSUD, d);\n withdrawnAmount = amount - fees;\n }\n\n /**\n * @notice Allows instaneously exchanging a given amount of L-Tokens for the same\n * amount of underlying tokens. It will fail if the contract currently doesn't hold\n * enough underlying tokens to cover the withdrawal.\n * @dev In order to save some gas and time to users, frontends should propose this\n * function to users only when it has been verified that it will not revert. They\n * should propose the requestWithdrawal() function otherwise.\n * @param amount The amount L-Tokens to withdraw.\n */\n function instantWithdrawal(uint256 amount) external whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough L-Tokens to withdraw\n require(amount <= balanceOf(_msgSender()), \"L48\");\n\n // Can the contract cover this withdrawal plus all already queued requests?\n bool cond1 = totalQueued + amount <= usableUnderlyings;\n\n // Is caller eligible to staking tier 2 and the contract can cover this withdrawal?\n bool cond2 = ldyStaking.tierOf(_msgSender()) >= 2 && amount <= usableUnderlyings;\n\n // Revert if conditions are not met for the withdrawal to be processed instantaneously\n if (!(cond1 || cond2)) revert(\"L49\");\n\n // Else, retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(_msgSender(), amount);\n\n // Increase unclaimed fees amount accordingly\n unclaimedFees += fees;\n\n // Decrease usable underlyings balance accordingly\n usableUnderlyings -= withdrawnAmount;\n\n // Inform listeners of this instant withdrawal activity event\n emit ActivityEvent(\n NO_ID,\n _msgSender(),\n Action.Withdraw,\n amount,\n withdrawnAmount,\n Status.Success,\n NO_ID,\n \"\"\n );\n\n // Burn withdrawal fees from the account\n _burn(_msgSender(), fees);\n\n // Burn account's withdrawn L-Tokens and transfer to it underlying tokens in a 1:1 ratio\n super.withdrawTo(_msgSender(), withdrawnAmount);\n }\n\n /**\n * @notice Allows requesting the exchange of a given amount of L-Tokens for the same\n * amount of underlying tokens. The request will be automatically processed later.\n * @dev The sender must attach withdrawalFeeInETH to pre-pay the future processing gas fees\n * paid by the withdrawer wallet.\n * @param amount The amount L-Tokens to withdraw.\n */\n function requestWithdrawal(\n uint256 amount\n ) public payable whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough L-Tokens to withdraw\n require(amount <= balanceOf(_msgSender()), \"L53\");\n\n // Ensure the requested amount doesn't overflow uint96\n require(amount <= type(uint96).max, \"L54\");\n\n // Ensure the sender attached the pre-paid processing gas fees\n require(msg.value == withdrawalFeeInEth, \"L55\");\n\n // Create withdrawal request data\n WithdrawalRequest memory request = WithdrawalRequest({\n account: _msgSender(),\n amount: uint96(amount)\n });\n\n // Will hold the request ID\n uint256 requestId;\n\n // Append request to the withdrawal queue:\n // - At the beginning, if account is eligible to staking tier 2 and cursor is not 0\n if (ldyStaking.tierOf(_msgSender()) >= 2 && withdrawalQueueCursor > 0) {\n withdrawalQueueCursor--;\n requestId = withdrawalQueueCursor;\n withdrawalQueue[requestId] = request;\n }\n // - At the end else\n else {\n withdrawalQueue.push(request);\n requestId = withdrawalQueue.length - 1;\n }\n\n // Increase total amount queued accordingly\n totalQueued += amount;\n\n // Inform listeners of this new queued withdrawal activity event\n emit ActivityEvent(\n int256(requestId),\n _msgSender(),\n Action.Withdraw,\n amount,\n amount,\n Status.Queued,\n NO_ID,\n \"\"\n );\n\n // Burn withdrawal L-Tokens amount from account's balance\n _burn(_msgSender(), amount);\n\n // Forward pre-paid processing gas fees to the withdrawer wallet\n (bool sent, ) = withdrawer.call{value: msg.value}(\"\");\n require(sent, \"L56\");\n }\n\n /**\n * @notice Processes queued withdrawal requests until there is else no more requests,\n * else not enough underlying tokens to continue.\n * @dev For further details, see \"LToken > Withdrawals\" section of whitepaper.\n */\n function processQueuedRequests() external onlyWithdrawer whenNotPaused {\n // Accumulators variables, will be written on-chain after the loop\n uint256 cumulatedFees = 0;\n uint256 cumulatedWithdrawnAmount = 0;\n uint256 nextRequestId = withdrawalQueueCursor;\n\n // Cache queue length to avoid multiple SLOADs and avoid infinite loop as big\n // requests are increasing the queue length when moved at the end of the queue.\n uint256 queueLength = withdrawalQueue.length;\n\n // Iterate over requests to be processed\n while (nextRequestId < queueLength) {\n // Stop processing requests if there is not enough gas left to continue the\n // loop and properly end the function call. This prevents an attacker from\n // blocking the withdrawal processing by creating a ton of tiny requests so\n // this function call cannot fit anymore in block gas limit.\n if (gasleft() < 45000) break;\n\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[nextRequestId];\n\n // Skip empty request (processed big requests or cancelled requests)\n if (request.account == address(0)) {}\n //\n // If account has been blacklisted since request emission\n else if (isBlacklisted(request.account)) {\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Append request in the frozen requests list\n frozenRequests.push(request);\n }\n //\n // Or if request is a big request, move it at the end of the queue for now.\n // This request will be processed manually later using processBigQueuedRequest()\n else if (request.amount > getExpectedRetained() / 2) {\n // Inform listeners of this queued request being moved at the end of the queue\n emit ActivityEvent(\n int256(nextRequestId),\n _msgSender(),\n Action.Withdraw,\n request.amount,\n request.amount,\n Status.Moved,\n int256(withdrawalQueue.length),\n \"\"\n );\n\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Append request at the end of the queue\n withdrawalQueue.push(request);\n }\n //\n // Else, continue request processing\n else {\n // Retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\n request.account,\n request.amount\n );\n\n // Break if the contract doesn't hold enough funds to cover the request\n if (withdrawnAmount > usableUnderlyings - cumulatedWithdrawnAmount) break;\n\n // Accumulate fees and withdrawn amount\n cumulatedFees += fees;\n cumulatedWithdrawnAmount += withdrawnAmount;\n\n // Inform listeners of this queued withdrawal processing activity event\n emit ActivityEvent(\n int256(nextRequestId),\n request.account,\n Action.Withdraw,\n request.amount,\n withdrawnAmount,\n Status.Success,\n NO_ID,\n \"\"\n );\n\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Transfer underlying tokens to account. Burning L-Tokens is not required\n // as equestWithdrawal() already did it.\n // Security note: Re-entrancy warning are disabled as the request has\n // just been deleted from the queue, it will so be skipped if trying to\n // process it again.\n // slither-disable-next-line reentrancy-no-eth\n underlying().safeTransfer(request.account, withdrawnAmount);\n }\n\n // Increment next request ID\n nextRequestId++;\n }\n\n // Increase unclaimed fees by the amount of cumulated fees\n unclaimedFees += cumulatedFees;\n\n // Decrease usable underlyings by the cumulated amount of withdrawn underlyings\n usableUnderlyings -= cumulatedWithdrawnAmount;\n\n // Decrease total amount queued by the cumulated amount requested\n totalQueued -= cumulatedWithdrawnAmount + cumulatedFees;\n\n // Update new queue cursor\n withdrawalQueueCursor = nextRequestId;\n\n // Retention rate cannot exceeds as the withdrawal decreases both usable\n // underlyings and expected retained amounts by the same number and as the\n // expected retained amount is a subset of usable underlyings amount.\n }\n\n /**\n * @notice Processes a given queued big withdrawal request (one that exceeds half of\n * the retention rate).\n * @dev In contrast to non-big requests processing, this function will uses to fund\n * wallet's balance to fill the request. This allows processing requests that are\n * greater than retention rate without having to exceed this rate on the contract.\n * @param requestId The ID of the big request to process.\n */\n function processBigQueuedRequest(uint256 requestId) external onlyFund whenNotPaused {\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[requestId];\n\n // Ensure the request is active\n require(request.account != address(0), \"L66\");\n\n // Ensure the request emitter has not been blacklisted since request emission\n require(!isBlacklisted(request.account), \"L50\");\n\n // Ensure this is indeed a big request\n require(request.amount > getExpectedRetained() / 2, \"L51\");\n\n // Retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\n request.account,\n request.amount\n );\n\n // Ensure withdrawn amount can be covered by contract + fund wallet balances\n uint256 fundBalance = underlying().balanceOf(fund);\n require(withdrawnAmount <= usableUnderlyings + fundBalance, \"L52\");\n\n // Increase amount of unclaimed fees accordingly\n unclaimedFees += fees;\n\n // Decrease total queued amount by request amount\n totalQueued -= request.amount;\n\n // Increment queue cursor if request was the next request to be processed\n if (requestId == withdrawalQueueCursor) withdrawalQueueCursor++;\n\n // Inform listeners of this queued withdrawal processing activity event\n emit ActivityEvent(\n int256(requestId),\n request.account,\n Action.Withdraw,\n request.amount,\n withdrawnAmount,\n Status.Success,\n NO_ID,\n \"\"\n );\n\n // Remove request from queue\n delete withdrawalQueue[requestId];\n\n // If fund wallet's balance can cover request, rely on it only\n if (withdrawnAmount <= fundBalance) {\n underlying().safeTransferFrom(_msgSender(), request.account, withdrawnAmount);\n }\n // Else, cover request from both fund wallet and contract balances\n else {\n // Compute amount missing from fund wallet to cover request\n uint256 missingAmount = withdrawnAmount - fundBalance;\n\n // Decrease usable amount of underlying tokens accordingly\n usableUnderlyings -= missingAmount;\n\n // Transfer entire fund balance to request's emitter\n underlying().safeTransferFrom(_msgSender(), request.account, fundBalance);\n\n // Transfer missing amount from contract balance to request emitter\n underlying().safeTransfer(request.account, missingAmount);\n }\n\n // Transfer exceeding underlying tokens to the fund wallet\n _transferExceedingToFund();\n }\n\n /**\n * @notice Cancels a given withdrawal request. The request emitter receive back its\n * L-Tokens and no fees will be charged.\n * @param requestId The ID of the withdrawal request to cancel.\n */\n function cancelWithdrawalRequest(\n uint256 requestId\n ) public whenNotPaused notBlacklisted(_msgSender()) {\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[requestId];\n\n // Ensure request belongs to caller\n require(_msgSender() == request.account, \"L57\");\n\n // Decrease total amount queued accordingly\n totalQueued -= request.amount;\n\n // Delete the withdrawal request from queue\n delete withdrawalQueue[requestId];\n\n // Inform listeners of this cancelled withdrawal request activity event\n emit ActivityEvent(\n int256(requestId),\n request.account,\n Action.Withdraw,\n request.amount,\n request.amount,\n Status.Cancelled,\n NO_ID,\n \"\"\n );\n\n // Mint back L-Tokens to account\n _mint(request.account, uint256(request.amount));\n }\n\n /**\n * @notice Used by the fund wallet to repatriate underlying tokens on the contract\n * whenever those are required to fulfill some withdrawal requests.\n * @dev The function will revert if repatriated amount makes the contract exceeding\n * the retention rate.\n * @param amount The amount of underlying tokens to repatriate.\n */\n function repatriate(uint256 amount) external onlyFund whenNotPaused {\n // Ensure the fund wallet has enough funds to repatriate\n require(amount <= underlying().balanceOf(fund), \"L58\");\n\n // Calculate new contract usable balance\n uint256 newBalance = usableUnderlyings + amount;\n\n // Ensure the new balance doesn't exceed the retention rate\n require(newBalance <= getExpectedRetained(), \"L59\");\n\n // Increase usable underlyings amount by repatriated amount\n usableUnderlyings += amount;\n\n // Transfer amount from fund wallet to contract\n underlying().safeTransferFrom(_msgSender(), address(this), amount);\n }\n\n /// @notice Used by owner to claim fees generated from successful withdrawals.\n function claimFees() external onlyOwner {\n // Ensure there are some fees to claim\n require(unclaimedFees > 0, \"L60\");\n\n // Ensure the contract holds enough underlying tokens to cover fees\n require(usableUnderlyings >= unclaimedFees, \"L61\");\n\n // Decrease usable underlyings amount accordingly\n usableUnderlyings -= unclaimedFees;\n\n // Store fees amount in memory and reset unclaimed fees amount\n uint256 fees = unclaimedFees;\n unclaimedFees = 0;\n\n // Transfer unclaimed fees to owner\n underlying().safeTransfer(owner(), fees);\n }\n}\n" }, "contracts/src/LTokenSignaler.sol": { "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./abstracts/GlobalOwnableUpgradeable.sol\";\n\n/**\n * @title LTokenSignaler\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Used to inform subgraph from the existence of a new L-Token contract. Once\n * signaled, a L-Token will start being indexed.\n *\n * @dev Signal are ignored by the subgraph if the L-Token is already known by it.\n *\n * @custom:security-contact security@ledgity.com\n */\ncontract LTokenSignaler is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\n /**\n * @notice Emitted to inform subgraph of the existence of a new L-Token contract.\n * @param lTokenAddress The address of the L-Token contract to signal.\n */\n event LTokenSignalEvent(address indexed lTokenAddress);\n\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n */\n function initialize(address globalOwner_) public initializer {\n __GlobalOwnable_init(globalOwner_);\n __UUPSUpgradeable_init();\n }\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n\n /**\n * @notice Signals a LToken contract to the TheGraph subgraph of the current chain.\n * @param lTokenAddress The address of the LToken contract to signal.\n */\n function signalLToken(address lTokenAddress) external onlyOwner {\n // Signal the LToken contract\n emit LTokenSignalEvent(lTokenAddress);\n }\n}\n" }, "contracts/src/PreMining.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {LToken} from \"./LToken.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {Pausable} from \"@openzeppelin/contracts/security/Pausable.sol\";\n\n/**\n * @title PreMining\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n\n * @notice PreMining pool contract, allowing accounts to lock underlying tokens in a \n * pre-defined L-Token contract, over a given duration (in months), in exchange of \n * vested LDY rewards.\n * \n * @dev Intuition\n * \n * Lifecycle of a lockdrop pool is composed by 3 main phases:\n * 1) Deposit: During this phase, users can lock their underlying tokens.\n * 2) Claim: During this phase, users can claim their LDY rewards.\n * 3) Recovery: During this phase, owner can recover remaining ERC20 on the contract.\n * \n * Transitioning between two phases is manually triggered by contract's owner.\n * To ensure fair usage of this power and prevent potential misuse:\n * - the Recovery phase cannot start before 3 months after the end of rewards vesting,\n * - the Recovery phase cannot start before 3 months after the maximum lock end.\n * \n * Finally, note that this contract proxies main L-Token contract's functions:\n * - lock() --> deposit()\n * - instantUnlock() --> instantWithdrawal()\n * - requestUnlock() --> requestWithdrawal()\n * This design enables users to interact with the PreMining contract in a similar fashion\n * to the L-Token contract.\n * \n * @dev Definitions:\n * - Locker: An account that has locked underlying tokens in the pool.\n * \n * @custom:security-contact security@ledgity.com\n */\ncontract PreMining is Ownable2Step, Pausable {\n using SafeERC20 for IERC20;\n\n /**\n * @notice Represents the lock information of an account.\n * @param amount Amount of underlying tokens locked.\n * @param duration Duration of the lock (in months).\n * @param hasUnlocked Whether the account has unlocked its locked tokens.\n * @param claimedRewards Amount of LDY rewards already claimed.\n * @param lockEndTimestamp Timestamp at which the account's lock ends.\n */\n struct AccountLock {\n uint240 amount;\n uint8 duration;\n bool hasUnlocked;\n uint216 claimedRewards;\n uint40 lockEndTimestamp;\n }\n\n /// @notice Holds the amount of LDY to be distributed to lockers.\n uint256 public immutable maxDistributedLDY;\n\n /// @notice Holds the maximum total amount of L-Tokens that can be locked.\n uint256 public immutable lockedHardCap;\n\n /// @notice Holds the minimum possible lock duration (in months).\n uint8 public immutable minLockDuration;\n\n /// @notice Holds the maximum possible lock duration (in months).\n uint8 public immutable maxLockDuration;\n\n /// @notice Holds the duration of LDY rewards vesting (in months).\n uint8 public immutable vestingDuration;\n\n /// @notice Holds a reference to the locked L-Token contract.\n LToken public immutable lToken;\n\n /// @notice Holds a reference to the L-Token underlying stablecoin.\n IERC20 public immutable underlyingToken;\n\n /// @notice Holds the max pool weight.\n uint256 public immutable maxWeight;\n\n /// @notice Holds a reference to the LDY token contract.\n IERC20 public ldyToken;\n\n /// @notice Holds lockers' participations informations.\n mapping(address => AccountLock) public accountsLocks;\n\n /// @notice Holds the total amount of locked underlying tokens.\n uint256 public totalLocked;\n\n /// @notice Holds whether the Deposit phase has ended.\n bool public hasDepositPhaseEnded;\n\n /// @notice Holds whether the Claim phase has started.\n bool public hasClaimPhaseStarted;\n\n /// @notice Holds whether the Recovery phase has started.\n bool public hasRecoveryPhaseStarted;\n\n /// @notice Holds the timestamp at which the Claim phase started.\n uint256 public claimPhaseStartTimestamp;\n\n /// @notice Holds an ordered queue of accounts that requested to unlock their tokens.\n address[] public unlockRequests;\n\n /// @notice Holds the index of the first request in the queue (a.k.a, next one to be processed).\n uint256 public unlockRequestsCursor;\n\n /// @notice Emitted to inform about a new lock/deposit.\n event Lock(address indexed account, uint256 amount, uint8 duration);\n\n /// @notice Top-level checks and code shared by both unlock functions.\n modifier safeUnlock() {\n // Ensure that the account's lock has ended\n require(accountsLocks[msg.sender].lockEndTimestamp <= block.timestamp, \"L68\");\n\n // Ensure the account hasn't already unlocked its tokens\n require(!accountsLocks[msg.sender].hasUnlocked, \"L69\");\n\n // Ensure the account has something to unlock\n require(accountsLocks[msg.sender].amount > 0, \"L70\");\n\n // Indicate that account has unlocked its tokens\n accountsLocks[msg.sender].hasUnlocked = true;\n _;\n }\n\n /**\n * @notice This constructor function etches the lockdrop terms in immutable states.\n * Ensuring that those terms cannot be modified after deployment.\n * @param lTokenAddress_ Address of the L-Token contract to use.\n * @param maxDistributedLDY_ Amount of LDY to be distributed to lockers.\n * @param lockedHardCap_ Maximum total amount of L-Tokens that can be locked.\n * @param minLockDuration_ Minimum possible lock duration (in months).\n * @param maxLockDuration_ Maximum possible lock duration (in months).\n * @param vestingDuration_ Duration of LDY rewards vesting (in months).\n */\n constructor(\n address lTokenAddress_,\n uint256 maxDistributedLDY_,\n uint256 lockedHardCap_,\n uint8 minLockDuration_,\n uint8 maxLockDuration_,\n uint8 vestingDuration_\n ) {\n // Ensure minLockDuration is at least 1 month\n require(minLockDuration_ >= 1, \"L72\");\n\n // Ensure minLockDuration is not greater than maxLockDuration\n require(minLockDuration_ <= maxLockDuration_, \"L73\");\n\n // Set immutable states\n lToken = LToken(lTokenAddress_);\n underlyingToken = IERC20(address(lToken.underlying()));\n lockedHardCap = lockedHardCap_;\n maxDistributedLDY = maxDistributedLDY_;\n minLockDuration = minLockDuration_;\n maxLockDuration = maxLockDuration_;\n vestingDuration = vestingDuration_;\n maxWeight = lockedHardCap * uint256(maxLockDuration);\n }\n\n /**\n * @notice Public implementation of Pausable's pausing and unpausing functions, but\n * restricted to contract's owner.\n */\n function pause() public onlyOwner {\n _pause();\n }\n\n function unpause() public onlyOwner {\n _unpause();\n }\n\n /**\n * @notice Updates the LDY token contract address.\n * @dev As the first Ledgity Yield lockdrop campaigns will start before the LDY TGE,\n * this function allows the contract's owner to set the LDY token address once it\n * becomes available.\n * @param ldyTokenAddress Address of the LDY token contract.\n */\n function setLDYToken(address ldyTokenAddress) external onlyOwner {\n // Prevent owner from changing the LDY address after Claim phase has started\n require(!hasClaimPhaseStarted, \"L74\");\n\n // Set LDY token address\n ldyToken = IERC20(ldyTokenAddress);\n }\n\n /**\n * @notice Closes the Deposit phase. After calling this function, account won't be\n * able to lock additional underlying tokens anymore.\n */\n function endDepositPhase() external onlyOwner {\n hasDepositPhaseEnded = true;\n }\n\n /**\n * @notice Opens the Claim phase. After calling this function, lockers will be able\n * to start claiming their LDY rewards.\n */\n function startClaimPhase() external onlyOwner {\n // Ensure Claim phase has not already started\n require(!hasClaimPhaseStarted, \"L76\");\n\n // Ensure that LDY token address is available\n require(address(ldyToken) != address(0), \"L77\");\n\n // Set Claim phase as started and store the start timestamp\n hasClaimPhaseStarted = true;\n claimPhaseStartTimestamp = block.timestamp;\n }\n\n /**\n * @notice Opens the Recovery phase. After calling this function, the contract owner\n * will be able to recover remaining ERC20 tokens on the contract.\n * Note that this won't close the Claim phase and lockers will still be able to claim\n * their LDY rewards.\n */\n function startRecoveryPhase() external onlyOwner {\n // Ensure Claim phase has started\n require(hasClaimPhaseStarted, \"L79\");\n\n // Compute some durations in seconds\n uint256 threeMonthsInSecond = 3 * 30 days;\n uint256 vestingInSecond = uint256(vestingDuration) * 30 days;\n uint256 maxLockInSecond = uint256(maxLockDuration) * 30 days;\n\n // Compute timestamp of vesting end + 3 months\n uint256 afterVestingTimestamp = claimPhaseStartTimestamp +\n vestingInSecond +\n threeMonthsInSecond;\n\n // Ensure we are at least 3 months after the end of reward vesting\n // This prevents owner from recovering LDY before lockers can claim their rewards\n require(block.timestamp >= afterVestingTimestamp, \"L80\");\n\n // Compute end of maximum lock + 3 months\n // Note that claimPhaseStartTimestamp is used for simplicity even if it can exist a time\n // span between Deposit and Claim phases.\n uint256 afterMaxLockTimestamp = claimPhaseStartTimestamp +\n maxLockInSecond +\n threeMonthsInSecond;\n\n // Ensure we are at least 3 months after the maximum lock end\n // This prevents owner from recovering underlying tokens before lockers can unlock those\n require(block.timestamp >= afterMaxLockTimestamp, \"L81\");\n\n // Set recovery phase as started\n hasRecoveryPhaseStarted = true;\n }\n\n /**\n * @notice Recovers a specified amount of a given token address. Will revert if\n * recovery phase has not started yet or if the contract doesn't hold enough tokens.\n * @param tokenAddress The address of the token to recover.\n * @param amount The amount of token to recover.\n */\n function recoverERC20(address tokenAddress, uint256 amount) external onlyOwner {\n // Ensure recovery phase has started\n require(hasRecoveryPhaseStarted, \"L82\");\n\n // Create a reference to token's contract\n IERC20 tokenContract = IERC20(tokenAddress);\n\n // Ensure there is enough tokens to recover\n require(tokenContract.balanceOf(address(this)) >= amount, \"L83\");\n\n // Transfer the recovered token amount to the sender (owner)\n tokenContract.safeTransfer(msg.sender, amount);\n }\n\n /**\n * @notice Compute the total amount of LDY rewards that a given account is eligible to.\n * @dev Note: This function neither considers vesting nor already claimed rewards.\n * @param account The account to compute the eligible rewards of.\n * @return The total amount of LDY rewards that the account is eligible to.\n */\n function eligibleRewardsOf(address account) public view returns (uint256) {\n // Compute account's lock weight\n uint256 lockerWeight = accountsLocks[account].amount * accountsLocks[account].duration;\n\n // Compute amount of LDY that this locker is eligible to\n if (maxWeight == 0) return 0;\n else return (maxDistributedLDY * lockerWeight) / maxWeight;\n }\n\n /**\n * @notice Allows locking a specified amount of underlying tokens for a given duration.\n * By locking, an account became eligible to a portion of the distributed LDY rewards.\n * @dev This function proxies LToken.deposit()\n * @dev Lockers can extend their lock duration by calling this function again with a\n * greater duration and 0 as amount.\n * @param amount Amount of underlying tokens to lock.\n * @param duration Duration of the lock (in months).\n */\n function lock(uint256 amount, uint8 duration) external whenNotPaused {\n // Ensure Deposit phase has not ended yet\n require(!hasDepositPhaseEnded, \"L84\");\n\n // Ensure account hasn't already unlocked a past lock\n require(!accountsLocks[msg.sender].hasUnlocked, \"L71\");\n\n // Ensure lock duration is in valid range\n require(duration >= minLockDuration && duration <= maxLockDuration, \"L85\");\n\n // Ensure it won't exceed the hardcap\n require(totalLocked + amount <= uint256(lockedHardCap), \"L86\");\n\n // Increase account's locked amount\n accountsLocks[msg.sender].amount += uint240(amount);\n\n // Increase total locked amount accordingly\n totalLocked += amount;\n\n // Use existing lock duration if greater than the new one\n uint8 existingDuration = accountsLocks[msg.sender].duration;\n uint8 appliedDuration = existingDuration > duration ? existingDuration : duration;\n\n // Update account's lock duration\n accountsLocks[msg.sender].duration = appliedDuration;\n\n // Update account's lock end timestamp\n accountsLocks[msg.sender].lockEndTimestamp = uint40(\n block.timestamp + uint40(appliedDuration) * 30 days\n );\n\n // Emit a Lock event\n emit Lock(msg.sender, amount, appliedDuration);\n\n // If amount is 0, skip deposit\n if (amount == 0) return;\n\n // Transfer underlyingToken from account to contract\n underlyingToken.safeTransferFrom(msg.sender, address(this), amount);\n\n // Deposit USDC in the L-Token contract\n underlyingToken.safeApprove(address(lToken), amount);\n lToken.deposit(amount);\n }\n\n /**\n * @notice Allows the caller to instaneously unlock its locked amount of underlying\n * tokens.\n * @dev In order to save some gas and time to users, frontends should propose this\n * function to users only when it has been verified that it will not revert. They\n * should propose the requestUnlock() function otherwise.\n */\n function instantUnlock() external whenNotPaused safeUnlock {\n // Retrieve underlying tokens from the L-Token contract\n uint256 unlockedAmount = accountsLocks[msg.sender].amount;\n lToken.instantWithdrawal(unlockedAmount);\n\n // Transfer underlying tokens back to caller\n underlyingToken.safeTransfer(msg.sender, unlockedAmount);\n }\n\n /**\n * @notice Allows the call to request for the unlocking of its locked amount of\n * underlying tokens. The request will be automatically processed later.\n * @dev The sender must attach 0.003 ETH to pre-pay the future processing gas fees\n * paid by the withdrawer wallet.\n */\n function requestUnlock() external payable whenNotPaused safeUnlock {\n // Put account in the unlock requests queue\n unlockRequests.push(msg.sender);\n\n // Request underlying tokens to the L-Token contract\n uint256 unlockedAmount = accountsLocks[msg.sender].amount;\n lToken.requestWithdrawal{value: msg.value}(unlockedAmount);\n }\n\n /**\n * @notice Processes queued unlock requests until there is else no more requests,\n * else not enough underlying tokens to continue.\n */\n function processUnlockRequests() external onlyOwner {\n // Store the current request ID to process\n uint256 processedId = unlockRequestsCursor;\n\n // Loop over remaining requests\n while (processedId < unlockRequests.length) {\n // Prevent OOG by stopping request processing if there is not enough gas left\n // to continue the loop and properly end the function call.\n if (gasleft() < 45000) break;\n\n // Retrieve the request account\n address unlockAccount = unlockRequests[processedId];\n\n // Retrieve the unlocked amount\n uint256 unlockAmount = accountsLocks[unlockAccount].amount;\n\n // If the request has already been processed, skip it\n if (unlockAccount != address(0)) {\n // If the contract doesn't hold enough underlying tokens to process the request, stop here\n if (underlyingToken.balanceOf(address(this)) < unlockAmount) break;\n\n // Delete the request\n delete unlockRequests[processedId];\n\n // Transfer underlying back to account\n underlyingToken.safeTransfer(unlockAccount, unlockAmount);\n }\n\n // Increment processed request ID\n processedId++;\n }\n\n // Write back the cursor in storage\n unlockRequestsCursor = processedId;\n }\n\n /**\n * @notice Computes the amount of LDY rewards available to claim for a given account.\n * @dev This function considers vesting and already claimed rewards.\n * @param account The account to compute the available rewards of.\n * @return The amount of LDY rewards available to claim.\n */\n function availableToClaim(address account) public view returns (uint256) {\n // Compute total amount of rewards allocated to this locker\n uint256 totalEligibleRewards = eligibleRewardsOf(account);\n\n // Compute vesting duration in seconds\n uint256 vestingInSeconds = uint256(vestingDuration) * 30 days;\n\n // Compute elapsed months since claim phase started, and cap it to vesting duration\n uint256 elapsedTime = block.timestamp - claimPhaseStartTimestamp;\n if (elapsedTime > vestingInSeconds) elapsedTime = vestingInSeconds;\n\n // Compute total available to claim (proportionally to elapsed time)\n uint256 totalAvailableToClaim = (totalEligibleRewards * elapsedTime) / vestingInSeconds;\n\n // Else return net claimable (available minus already claimed)\n return totalAvailableToClaim - accountsLocks[account].claimedRewards;\n }\n\n /// @notice Allows the caller to claim its available LDY rewards.\n function claimRewards() external whenNotPaused {\n // Ensure Claim phase has started\n require(hasClaimPhaseStarted, \"L87\");\n\n // Compute claimable LDY rewards\n uint256 claimableLDY = availableToClaim(msg.sender);\n\n // Increase account claimed amount accordingly\n accountsLocks[msg.sender].claimedRewards += uint216(claimableLDY);\n\n // Transfer rewards to account\n ldyToken.safeTransfer(msg.sender, claimableLDY);\n }\n}\n" + "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {LToken} from \"./LToken.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {Pausable} from \"@openzeppelin/contracts/security/Pausable.sol\";\n\n/**\n * @title PreMining\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n\n * @notice PreMining pool contract, allowing accounts to lock underlying tokens in a \n * pre-defined L-Token contract, over a given duration (in months), in exchange of \n * vested LDY rewards.\n * \n * @dev Intuition\n * \n * Lifecycle of a lockdrop pool is composed by 3 main phases:\n * 1) Deposit: During this phase, users can lock their underlying tokens.\n * 2) Claim: During this phase, users can claim their LDY rewards.\n * 3) Recovery: During this phase, owner can recover remaining ERC20 on the contract.\n * \n * Transitioning between two phases is manually triggered by contract's owner.\n * To ensure fair usage of this power and prevent potential misuse:\n * - the Recovery phase cannot start before 3 months after the end of rewards vesting,\n * - the Recovery phase cannot start before 3 months after the maximum lock end.\n * \n * Finally, note that this contract proxies main L-Token contract's functions:\n * - lock() --> deposit()\n * - instantUnlock() --> instantWithdrawal()\n * - requestUnlock() --> requestWithdrawal()\n * This design enables users to interact with the PreMining contract in a similar fashion\n * to the L-Token contract.\n * \n * @dev Definitions:\n * - Locker: An account that has locked underlying tokens in the pool.\n * \n * @custom:security-contact security@ledgity.com\n */\ncontract PreMining is Ownable2Step, Pausable {\n using SafeERC20 for IERC20;\n\n /**\n * @notice Represents the lock information of an account.\n * @param amount Amount of underlying tokens locked.\n * @param duration Duration of the lock (in months).\n * @param hasUnlocked Whether the account has unlocked its locked tokens.\n * @param claimedRewards Amount of LDY rewards already claimed.\n * @param lockEndTimestamp Timestamp at which the account's lock ends.\n */\n struct AccountLock {\n uint240 amount;\n uint8 duration;\n bool hasUnlocked;\n uint216 claimedRewards;\n uint40 lockEndTimestamp;\n }\n\n /// @notice Holds the amount of LDY to be distributed to lockers.\n uint256 public immutable maxDistributedLDY;\n\n /// @notice Holds the maximum total amount of L-Tokens that can be locked.\n uint256 public immutable lockedHardCap;\n\n /// @notice Holds the minimum possible lock duration (in months).\n uint8 public immutable minLockDuration;\n\n /// @notice Holds the maximum possible lock duration (in months).\n uint8 public immutable maxLockDuration;\n\n /// @notice Holds the duration of LDY rewards vesting (in months).\n uint8 public immutable vestingDuration;\n\n /// @notice Holds a reference to the locked L-Token contract.\n LToken public immutable lToken;\n\n /// @notice Holds a reference to the L-Token underlying stablecoin.\n IERC20 public immutable underlyingToken;\n\n /// @notice Holds the max pool weight.\n uint256 public immutable maxWeight;\n\n /// @notice Holds a reference to the LDY token contract.\n IERC20 public ldyToken;\n\n /// @notice Holds lockers' participations informations.\n mapping(address => AccountLock) public accountsLocks;\n\n /// @notice Holds the total amount of locked underlying tokens.\n uint256 public totalLocked;\n\n /// @notice Holds whether the Deposit phase has ended.\n bool public hasDepositPhaseEnded;\n\n /// @notice Holds whether the Claim phase has started.\n bool public hasClaimPhaseStarted;\n\n /// @notice Holds whether the Recovery phase has started.\n bool public hasRecoveryPhaseStarted;\n\n /// @notice Holds the timestamp at which the Claim phase started.\n uint256 public claimPhaseStartTimestamp;\n\n /// @notice Holds an ordered queue of accounts that requested to unlock their tokens.\n address[] public unlockRequests;\n\n /// @notice Holds the index of the first request in the queue (a.k.a, next one to be processed).\n uint256 public unlockRequestsCursor;\n\n /// @notice Emitted to inform about a new lock/deposit.\n event Lock(address indexed account, uint256 amount, uint8 duration);\n\n /// @notice Top-level checks and code shared by both unlock functions.\n modifier safeUnlock() {\n // Ensure that the account's lock has ended\n require(accountsLocks[msg.sender].lockEndTimestamp <= block.timestamp, \"L68\");\n\n // Ensure the account hasn't already unlocked its tokens\n require(!accountsLocks[msg.sender].hasUnlocked, \"L69\");\n\n // Ensure the account has something to unlock\n require(accountsLocks[msg.sender].amount > 0, \"L70\");\n\n // Indicate that account has unlocked its tokens\n accountsLocks[msg.sender].hasUnlocked = true;\n _;\n }\n\n /**\n * @notice This constructor function etches the lockdrop terms in immutable states.\n * Ensuring that those terms cannot be modified after deployment.\n * @param lTokenAddress_ Address of the L-Token contract to use.\n * @param maxDistributedLDY_ Amount of LDY to be distributed to lockers.\n * @param lockedHardCap_ Maximum total amount of L-Tokens that can be locked.\n * @param minLockDuration_ Minimum possible lock duration (in months).\n * @param maxLockDuration_ Maximum possible lock duration (in months).\n * @param vestingDuration_ Duration of LDY rewards vesting (in months).\n */\n constructor(\n address lTokenAddress_,\n uint256 maxDistributedLDY_,\n uint256 lockedHardCap_,\n uint8 minLockDuration_,\n uint8 maxLockDuration_,\n uint8 vestingDuration_\n ) {\n // Ensure minLockDuration is at least 1 month\n require(minLockDuration_ >= 1, \"L72\");\n\n // Ensure minLockDuration is not greater than maxLockDuration\n require(minLockDuration_ <= maxLockDuration_, \"L73\");\n\n // Set immutable states\n lToken = LToken(lTokenAddress_);\n underlyingToken = IERC20(address(lToken.underlying()));\n lockedHardCap = lockedHardCap_;\n maxDistributedLDY = maxDistributedLDY_;\n minLockDuration = minLockDuration_;\n maxLockDuration = maxLockDuration_;\n vestingDuration = vestingDuration_;\n maxWeight = lockedHardCap * uint256(maxLockDuration);\n }\n\n /**\n * @notice Public implementation of Pausable's pausing and unpausing functions, but\n * restricted to contract's owner.\n */\n function pause() public onlyOwner {\n _pause();\n }\n\n function unpause() public onlyOwner {\n _unpause();\n }\n\n /**\n * @notice Updates the LDY token contract address.\n * @dev As the first Ledgity Yield lockdrop campaigns will start before the LDY TGE,\n * this function allows the contract's owner to set the LDY token address once it\n * becomes available.\n * @param ldyTokenAddress Address of the LDY token contract.\n */\n function setLDYToken(address ldyTokenAddress) external onlyOwner {\n // Prevent owner from changing the LDY address after Claim phase has started\n require(!hasClaimPhaseStarted, \"L74\");\n\n // Set LDY token address\n ldyToken = IERC20(ldyTokenAddress);\n }\n\n /**\n * @notice Closes the Deposit phase. After calling this function, account won't be\n * able to lock additional underlying tokens anymore.\n */\n function endDepositPhase() external onlyOwner {\n hasDepositPhaseEnded = true;\n }\n\n /**\n * @notice Opens the Claim phase. After calling this function, lockers will be able\n * to start claiming their LDY rewards.\n */\n function startClaimPhase() external onlyOwner {\n // Ensure Claim phase has not already started\n require(!hasClaimPhaseStarted, \"L76\");\n\n // Ensure that LDY token address is available\n require(address(ldyToken) != address(0), \"L77\");\n\n // Set Claim phase as started and store the start timestamp\n hasClaimPhaseStarted = true;\n claimPhaseStartTimestamp = block.timestamp;\n }\n\n /**\n * @notice Opens the Recovery phase. After calling this function, the contract owner\n * will be able to recover remaining ERC20 tokens on the contract.\n * Note that this won't close the Claim phase and lockers will still be able to claim\n * their LDY rewards.\n */\n function startRecoveryPhase() external onlyOwner {\n // Ensure Claim phase has started\n require(hasClaimPhaseStarted, \"L79\");\n\n // Compute some durations in seconds\n uint256 threeMonthsInSecond = 3 * 30 days;\n uint256 vestingInSecond = uint256(vestingDuration) * 30 days;\n uint256 maxLockInSecond = uint256(maxLockDuration) * 30 days;\n\n // Compute timestamp of vesting end + 3 months\n uint256 afterVestingTimestamp = claimPhaseStartTimestamp +\n vestingInSecond +\n threeMonthsInSecond;\n\n // Ensure we are at least 3 months after the end of reward vesting\n // This prevents owner from recovering LDY before lockers can claim their rewards\n require(block.timestamp >= afterVestingTimestamp, \"L80\");\n\n // Compute end of maximum lock + 3 months\n // Note that claimPhaseStartTimestamp is used for simplicity even if it can exist a time\n // span between Deposit and Claim phases.\n uint256 afterMaxLockTimestamp = claimPhaseStartTimestamp +\n maxLockInSecond +\n threeMonthsInSecond;\n\n // Ensure we are at least 3 months after the maximum lock end\n // This prevents owner from recovering underlying tokens before lockers can unlock those\n require(block.timestamp >= afterMaxLockTimestamp, \"L81\");\n\n // Set recovery phase as started\n hasRecoveryPhaseStarted = true;\n }\n\n /**\n * @notice Recovers a specified amount of a given token address. Will revert if\n * recovery phase has not started yet or if the contract doesn't hold enough tokens.\n * @param tokenAddress The address of the token to recover.\n * @param amount The amount of token to recover.\n */\n function recoverERC20(address tokenAddress, uint256 amount) external onlyOwner {\n // Ensure recovery phase has started\n require(hasRecoveryPhaseStarted, \"L82\");\n\n // Create a reference to token's contract\n IERC20 tokenContract = IERC20(tokenAddress);\n\n // Ensure there is enough tokens to recover\n require(tokenContract.balanceOf(address(this)) >= amount, \"L83\");\n\n // Transfer the recovered token amount to the sender (owner)\n tokenContract.safeTransfer(msg.sender, amount);\n }\n\n /**\n * @notice Compute the total amount of LDY rewards that a given account is eligible to.\n * @dev Note: This function neither considers vesting nor already claimed rewards.\n * @param account The account to compute the eligible rewards of.\n * @return The total amount of LDY rewards that the account is eligible to.\n */\n function eligibleRewardsOf(address account) public view returns (uint256) {\n // Compute account's lock weight\n uint256 lockerWeight = accountsLocks[account].amount * accountsLocks[account].duration;\n\n // Compute amount of LDY that this locker is eligible to\n if (maxWeight == 0) return 0;\n else return (maxDistributedLDY * lockerWeight) / maxWeight;\n }\n\n /**\n * @notice Allows locking a specified amount of underlying tokens for a given duration.\n * By locking, an account became eligible to a portion of the distributed LDY rewards.\n * @dev This function proxies LToken.deposit()\n * @dev Lockers can extend their lock duration by calling this function again with a\n * greater duration and 0 as amount.\n * @param amount Amount of underlying tokens to lock.\n * @param duration Duration of the lock (in months).\n */\n function lock(uint256 amount, uint8 duration) external whenNotPaused {\n // Ensure Deposit phase has not ended yet\n require(!hasDepositPhaseEnded, \"L84\");\n\n // Ensure account hasn't already unlocked a past lock\n require(!accountsLocks[msg.sender].hasUnlocked, \"L71\");\n\n // Ensure lock duration is in valid range\n require(duration >= minLockDuration && duration <= maxLockDuration, \"L85\");\n\n // Ensure it won't exceed the hardcap\n require(totalLocked + amount <= uint256(lockedHardCap), \"L86\");\n\n // Increase account's locked amount\n accountsLocks[msg.sender].amount += uint240(amount);\n\n // Increase total locked amount accordingly\n totalLocked += amount;\n\n // Use existing lock duration if greater than the new one\n uint8 existingDuration = accountsLocks[msg.sender].duration;\n uint8 appliedDuration = existingDuration > duration ? existingDuration : duration;\n\n // Update account's lock duration\n accountsLocks[msg.sender].duration = appliedDuration;\n\n // Update account's lock end timestamp\n accountsLocks[msg.sender].lockEndTimestamp = uint40(\n block.timestamp + uint40(appliedDuration) * 30 days\n );\n\n // Emit a Lock event\n emit Lock(msg.sender, amount, appliedDuration);\n\n // If amount is 0, skip deposit\n if (amount == 0) return;\n\n // Transfer underlyingToken from account to contract\n underlyingToken.safeTransferFrom(msg.sender, address(this), amount);\n\n // Deposit USDC in the L-Token contract\n underlyingToken.safeApprove(address(lToken), amount);\n lToken.deposit(amount, \"\");\n }\n\n /**\n * @notice Allows the caller to instaneously unlock its locked amount of underlying\n * tokens.\n * @dev In order to save some gas and time to users, frontends should propose this\n * function to users only when it has been verified that it will not revert. They\n * should propose the requestUnlock() function otherwise.\n */\n function instantUnlock() external whenNotPaused safeUnlock {\n // Retrieve underlying tokens from the L-Token contract\n uint256 unlockedAmount = accountsLocks[msg.sender].amount;\n lToken.instantWithdrawal(unlockedAmount);\n\n // Transfer underlying tokens back to caller\n underlyingToken.safeTransfer(msg.sender, unlockedAmount);\n }\n\n /**\n * @notice Allows the call to request for the unlocking of its locked amount of\n * underlying tokens. The request will be automatically processed later.\n * @dev The sender must attach 0.003 ETH to pre-pay the future processing gas fees\n * paid by the withdrawer wallet.\n */\n function requestUnlock() external payable whenNotPaused safeUnlock {\n // Put account in the unlock requests queue\n unlockRequests.push(msg.sender);\n\n // Request underlying tokens to the L-Token contract\n uint256 unlockedAmount = accountsLocks[msg.sender].amount;\n lToken.requestWithdrawal{value: msg.value}(unlockedAmount);\n }\n\n /**\n * @notice Processes queued unlock requests until there is else no more requests,\n * else not enough underlying tokens to continue.\n */\n function processUnlockRequests() external onlyOwner {\n // Store the current request ID to process\n uint256 processedId = unlockRequestsCursor;\n\n // Loop over remaining requests\n while (processedId < unlockRequests.length) {\n // Prevent OOG by stopping request processing if there is not enough gas left\n // to continue the loop and properly end the function call.\n if (gasleft() < 45000) break;\n\n // Retrieve the request account\n address unlockAccount = unlockRequests[processedId];\n\n // Retrieve the unlocked amount\n uint256 unlockAmount = accountsLocks[unlockAccount].amount;\n\n // If the request has already been processed, skip it\n if (unlockAccount != address(0)) {\n // If the contract doesn't hold enough underlying tokens to process the request, stop here\n if (underlyingToken.balanceOf(address(this)) < unlockAmount) break;\n\n // Delete the request\n delete unlockRequests[processedId];\n\n // Transfer underlying back to account\n underlyingToken.safeTransfer(unlockAccount, unlockAmount);\n }\n\n // Increment processed request ID\n processedId++;\n }\n\n // Write back the cursor in storage\n unlockRequestsCursor = processedId;\n }\n\n /**\n * @notice Computes the amount of LDY rewards available to claim for a given account.\n * @dev This function considers vesting and already claimed rewards.\n * @param account The account to compute the available rewards of.\n * @return The amount of LDY rewards available to claim.\n */\n function availableToClaim(address account) public view returns (uint256) {\n // Compute total amount of rewards allocated to this locker\n uint256 totalEligibleRewards = eligibleRewardsOf(account);\n\n // Compute vesting duration in seconds\n uint256 vestingInSeconds = uint256(vestingDuration) * 30 days;\n\n // Compute elapsed months since claim phase started, and cap it to vesting duration\n uint256 elapsedTime = block.timestamp - claimPhaseStartTimestamp;\n if (elapsedTime > vestingInSeconds) elapsedTime = vestingInSeconds;\n\n // Compute total available to claim (proportionally to elapsed time)\n uint256 totalAvailableToClaim = (totalEligibleRewards * elapsedTime) / vestingInSeconds;\n\n // Else return net claimable (available minus already claimed)\n return totalAvailableToClaim - accountsLocks[account].claimedRewards;\n }\n\n /// @notice Allows the caller to claim its available LDY rewards.\n function claimRewards() external whenNotPaused {\n // Ensure Claim phase has started\n require(hasClaimPhaseStarted, \"L87\");\n\n // Compute claimable LDY rewards\n uint256 claimableLDY = availableToClaim(msg.sender);\n\n // Increase account claimed amount accordingly\n accountsLocks[msg.sender].claimedRewards += uint216(claimableLDY);\n\n // Transfer rewards to account\n ldyToken.safeTransfer(msg.sender, claimableLDY);\n }\n}\n" } }, "settings": { "evmVersion": "london", "optimizer": { "enabled": true, - "runs": 200 + "runs": 100 }, "outputSelection": { "*": { diff --git a/contracts/hardhat/deployments/baseSepolia/solcInputs/c8300f1cd6a8c81a83ee050186e6d667.json b/contracts/hardhat/deployments/baseSepolia/solcInputs/c8300f1cd6a8c81a83ee050186e6d667.json deleted file mode 100644 index 0b50d0de..00000000 --- a/contracts/hardhat/deployments/baseSepolia/solcInputs/c8300f1cd6a8c81a83ee050186e6d667.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "language": "Solidity", - "sources": { - "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./OwnableUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\n function __Ownable2Step_init() internal onlyInitializing {\n __Ownable_init_unchained();\n }\n\n function __Ownable2Step_init_unchained() internal onlyInitializing {\n }\n address private _pendingOwner;\n\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Returns the address of the pending owner.\n */\n function pendingOwner() public view virtual returns (address) {\n return _pendingOwner;\n }\n\n /**\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual override onlyOwner {\n _pendingOwner = newOwner;\n emit OwnershipTransferStarted(owner(), newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual override {\n delete _pendingOwner;\n super._transferOwnership(newOwner);\n }\n\n /**\n * @dev The new owner accepts the ownership transfer.\n */\n function acceptOwnership() public virtual {\n address sender = _msgSender();\n require(pendingOwner() == sender, \"Ownable2Step: caller is not the new owner\");\n _transferOwnership(sender);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n function __Ownable_init() internal onlyInitializing {\n __Ownable_init_unchained();\n }\n\n function __Ownable_init_unchained() internal onlyInitializing {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822ProxiableUpgradeable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n *\n * _Available since v4.8.3._\n */\ninterface IERC1967Upgradeable {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\n */\ninterface IBeaconUpgradeable {\n /**\n * @dev Must return an address that can be used as a delegate call target.\n *\n * {BeaconProxy} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../beacon/IBeaconUpgradeable.sol\";\nimport \"../../interfaces/IERC1967Upgradeable.sol\";\nimport \"../../interfaces/draft-IERC1822Upgradeable.sol\";\nimport \"../../utils/AddressUpgradeable.sol\";\nimport \"../../utils/StorageSlotUpgradeable.sol\";\nimport \"../utils/Initializable.sol\";\n\n/**\n * @dev This abstract contract provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\n *\n * _Available since v4.1._\n */\nabstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {\n function __ERC1967Upgrade_init() internal onlyInitializing {\n }\n\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\n }\n // This is the keccak-256 hash of \"eip1967.proxy.rollback\" subtracted by 1\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\n\n /**\n * @dev Storage slot with the address of the current implementation.\n * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is\n * validated in the constructor.\n */\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev Returns the current implementation address.\n */\n function _getImplementation() internal view returns (address) {\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n }\n\n /**\n * @dev Stores a new address in the EIP1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n require(AddressUpgradeable.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Perform implementation upgrade\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeTo(address newImplementation) internal {\n _setImplementation(newImplementation);\n emit Upgraded(newImplementation);\n }\n\n /**\n * @dev Perform implementation upgrade with additional setup call.\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\n _upgradeTo(newImplementation);\n if (data.length > 0 || forceCall) {\n AddressUpgradeable.functionDelegateCall(newImplementation, data);\n }\n }\n\n /**\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {\n // Upgrades from old implementations will perform a rollback test. This test requires the new\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\n // this special case will break upgrade paths from old UUPS implementation to new ones.\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\n _setImplementation(newImplementation);\n } else {\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n require(slot == _IMPLEMENTATION_SLOT, \"ERC1967Upgrade: unsupported proxiableUUID\");\n } catch {\n revert(\"ERC1967Upgrade: new implementation is not UUPS\");\n }\n _upgradeToAndCall(newImplementation, data, forceCall);\n }\n }\n\n /**\n * @dev Storage slot with the admin of the contract.\n * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1, and is\n * validated in the constructor.\n */\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n */\n function _getAdmin() internal view returns (address) {\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\n }\n\n /**\n * @dev Stores a new address in the EIP1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n require(newAdmin != address(0), \"ERC1967: new admin is the zero address\");\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {AdminChanged} event.\n */\n function _changeAdmin(address newAdmin) internal {\n emit AdminChanged(_getAdmin(), newAdmin);\n _setAdmin(newAdmin);\n }\n\n /**\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\n */\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\n\n /**\n * @dev Returns the current beacon.\n */\n function _getBeacon() internal view returns (address) {\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\n }\n\n /**\n * @dev Stores a new beacon in the EIP1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n require(AddressUpgradeable.isContract(newBeacon), \"ERC1967: new beacon is not a contract\");\n require(\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\n \"ERC1967: beacon implementation is not a contract\"\n );\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\n }\n\n /**\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\n *\n * Emits a {BeaconUpgraded} event.\n */\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\n _setBeacon(newBeacon);\n emit BeaconUpgraded(newBeacon);\n if (data.length > 0 || forceCall) {\n AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\n }\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n * @custom:oz-retyped-from bool\n */\n uint8 private _initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private _initializing;\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint8 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n * constructor.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n require(\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n _initialized = 1;\n if (isTopLevelCall) {\n _initializing = true;\n }\n _;\n if (isTopLevelCall) {\n _initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: setting the version to 255 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint8 version) {\n require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n _initialized = version;\n _initializing = true;\n _;\n _initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n _;\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n if (_initialized != type(uint8).max) {\n _initialized = type(uint8).max;\n emit Initialized(type(uint8).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}\n" - }, - "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../interfaces/draft-IERC1822Upgradeable.sol\";\nimport \"../ERC1967/ERC1967UpgradeUpgradeable.sol\";\nimport \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n *\n * _Available since v4.1._\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\n address private immutable __self = address(this);\n\n /**\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n require(address(this) != __self, \"Function must be called through delegatecall\");\n require(_getImplementation() == __self, \"Function must be called through active proxy\");\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n require(address(this) == __self, \"UUPSUpgradeable: must not be called through delegatecall\");\n _;\n }\n\n /**\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\n return _IMPLEMENTATION_SLOT;\n }\n\n /**\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\n *\n * Calls {_authorizeUpgrade}.\n *\n * Emits an {Upgraded} event.\n *\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeTo(address newImplementation) public virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\n }\n\n /**\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\n * encoded in `data`.\n *\n * Calls {_authorizeUpgrade}.\n *\n * Emits an {Upgraded} event.\n *\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data, true);\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {upgradeTo} and {upgradeToAndCall}.\n *\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\n *\n * ```solidity\n * function _authorizeUpgrade(address) internal override onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/ContextUpgradeable.sol\";\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n function __Pausable_init() internal onlyInitializing {\n __Pausable_init_unchained();\n }\n\n function __Pausable_init_unchained() internal onlyInitializing {\n _paused = false;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view virtual {\n require(!paused(), \"Pausable: paused\");\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view virtual {\n require(paused(), \"Pausable: not paused\");\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n // Booleans are more expensive than uint256 or any type that takes up a full\n // word because each write operation emits an extra SLOAD to first read the\n // slot's contents, replace the bits taken up by the boolean, and then write\n // back. This is the compiler's defense against contract upgrades and\n // pointer aliasing, and it cannot be disabled.\n\n // The values being non-zero value makes deployment a bit more expensive,\n // but in exchange the refund on every call to nonReentrant will be lower in\n // amount. Since refunds are capped to a percentage of the total\n // transaction's gas, it is best to keep them low in cases like this one, to\n // increase the likelihood of the full refund coming into effect.\n uint256 private constant _NOT_ENTERED = 1;\n uint256 private constant _ENTERED = 2;\n\n uint256 private _status;\n\n function __ReentrancyGuard_init() internal onlyInitializing {\n __ReentrancyGuard_init_unchained();\n }\n\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Prevents a contract from calling itself, directly or indirectly.\n * Calling a `nonReentrant` function from another `nonReentrant`\n * function is not supported. It is possible to prevent this from happening\n * by making the `nonReentrant` function external, and making it call a\n * `private` function that does the actual work.\n */\n modifier nonReentrant() {\n _nonReentrantBefore();\n _;\n _nonReentrantAfter();\n }\n\n function _nonReentrantBefore() private {\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\n require(_status != _ENTERED, \"ReentrancyGuard: reentrant call\");\n\n // Any calls to nonReentrant after this point will fail\n _status = _ENTERED;\n }\n\n function _nonReentrantAfter() private {\n // By storing the original value once again, a refund is triggered (see\n // https://eips.ethereum.org/EIPS/eip-2200)\n _status = _NOT_ENTERED;\n }\n\n /**\n * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n * `nonReentrant` function in the call stack.\n */\n function _reentrancyGuardEntered() internal view returns (bool) {\n return _status == _ENTERED;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[49] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20Upgradeable.sol\";\nimport \"./extensions/IERC20MetadataUpgradeable.sol\";\nimport \"../../utils/ContextUpgradeable.sol\";\nimport \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n /**\n * @dev Sets the values for {name} and {symbol}.\n *\n * All two of these values are immutable: they can only be set once during\n * construction.\n */\n function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {\n __ERC20_init_unchained(name_, symbol_);\n }\n\n function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\n _name = name_;\n _symbol = symbol_;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev Returns the symbol of the token, usually a shorter version of the\n * name.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev Returns the number of decimals used to get its user representation.\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n *\n * Tokens usually opt for a value of 18, imitating the relationship between\n * Ether and Wei. This is the default value returned by this function, unless\n * it's overridden.\n *\n * NOTE: This information is only used for _display_ purposes: it in\n * no way affects any of the arithmetic of the contract, including\n * {IERC20-balanceOf} and {IERC20-transfer}.\n */\n function decimals() public view virtual override returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-allowance}.\n */\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n * `transferFrom`. This is semantically equivalent to an infinite approval.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Emits an {Approval} event indicating the updated allowance. This is not\n * required by the EIP. See the note at the beginning of {ERC20}.\n *\n * NOTE: Does not update the allowance if the current allowance\n * is the maximum `uint256`.\n *\n * Requirements:\n *\n * - `from` and `to` cannot be the zero address.\n * - `from` must have a balance of at least `amount`.\n * - the caller must have allowance for ``from``'s tokens of at least\n * `amount`.\n */\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n /**\n * @dev Atomically increases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n /**\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `spender` must have allowance for the caller of at least\n * `subtractedValue`.\n */\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = allowance(owner, spender);\n require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n /**\n * @dev Moves `amount` of tokens from `from` to `to`.\n *\n * This internal function is equivalent to {transfer}, and can be used to\n * e.g. implement automatic token fees, slashing mechanisms, etc.\n *\n * Emits a {Transfer} event.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `from` must have a balance of at least `amount`.\n */\n function _transfer(address from, address to, uint256 amount) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n unchecked {\n _balances[from] = fromBalance - amount;\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n // decrementing then incrementing.\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * Emits a {Transfer} event with `from` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _beforeTokenTransfer(address(0), account, amount);\n\n _totalSupply += amount;\n unchecked {\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n _balances[account] += amount;\n }\n emit Transfer(address(0), account, amount);\n\n _afterTokenTransfer(address(0), account, amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the\n * total supply.\n *\n * Emits a {Transfer} event with `to` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n */\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n unchecked {\n _balances[account] = accountBalance - amount;\n // Overflow not possible: amount <= accountBalance <= totalSupply.\n _totalSupply -= amount;\n }\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n *\n * This internal function is equivalent to `approve`, and can be used to\n * e.g. set automatic allowances for certain subsystems, etc.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `owner` cannot be the zero address.\n * - `spender` cannot be the zero address.\n */\n function _approve(address owner, address spender, uint256 amount) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n /**\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n *\n * Does not update the allowance amount in case of infinite allowance.\n * Revert if not enough allowance is available.\n *\n * Might emit an {Approval} event.\n */\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n /**\n * @dev Hook that is called before any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * will be transferred to `to`.\n * - when `from` is zero, `amount` tokens will be minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n /**\n * @dev Hook that is called after any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * has been transferred to `to`.\n * - when `from` is zero, `amount` tokens have been minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[45] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20Upgradeable.sol\";\nimport \"../../../security/PausableUpgradeable.sol\";\nimport \"../../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev ERC20 token with pausable token transfers, minting and burning.\n *\n * Useful for scenarios such as preventing trades until the end of an evaluation\n * period, or having an emergency switch for freezing all token transfers in the\n * event of a large bug.\n *\n * IMPORTANT: This contract does not include public pause and unpause functions. In\n * addition to inheriting this contract, you must define both functions, invoking the\n * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate\n * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will\n * make the contract unpausable.\n */\nabstract contract ERC20PausableUpgradeable is Initializable, ERC20Upgradeable, PausableUpgradeable {\n function __ERC20Pausable_init() internal onlyInitializing {\n __Pausable_init_unchained();\n }\n\n function __ERC20Pausable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n require(!paused(), \"ERC20Pausable: token transfer while paused\");\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Wrapper.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../ERC20Upgradeable.sol\";\nimport \"../utils/SafeERC20Upgradeable.sol\";\nimport \"../../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Extension of the ERC20 token contract to support token wrapping.\n *\n * Users can deposit and withdraw \"underlying tokens\" and receive a matching number of \"wrapped tokens\". This is useful\n * in conjunction with other modules. For example, combining this wrapping mechanism with {ERC20Votes} will allow the\n * wrapping of an existing \"basic\" ERC20 into a governance token.\n *\n * _Available since v4.2._\n *\n * @custom:storage-size 51\n */\nabstract contract ERC20WrapperUpgradeable is Initializable, ERC20Upgradeable {\n IERC20Upgradeable private _underlying;\n\n function __ERC20Wrapper_init(IERC20Upgradeable underlyingToken) internal onlyInitializing {\n __ERC20Wrapper_init_unchained(underlyingToken);\n }\n\n function __ERC20Wrapper_init_unchained(IERC20Upgradeable underlyingToken) internal onlyInitializing {\n require(underlyingToken != this, \"ERC20Wrapper: cannot self wrap\");\n _underlying = underlyingToken;\n }\n\n /**\n * @dev See {ERC20-decimals}.\n */\n function decimals() public view virtual override returns (uint8) {\n try IERC20MetadataUpgradeable(address(_underlying)).decimals() returns (uint8 value) {\n return value;\n } catch {\n return super.decimals();\n }\n }\n\n /**\n * @dev Returns the address of the underlying ERC-20 token that is being wrapped.\n */\n function underlying() public view returns (IERC20Upgradeable) {\n return _underlying;\n }\n\n /**\n * @dev Allow a user to deposit underlying tokens and mint the corresponding number of wrapped tokens.\n */\n function depositFor(address account, uint256 amount) public virtual returns (bool) {\n address sender = _msgSender();\n require(sender != address(this), \"ERC20Wrapper: wrapper can't deposit\");\n SafeERC20Upgradeable.safeTransferFrom(_underlying, sender, address(this), amount);\n _mint(account, amount);\n return true;\n }\n\n /**\n * @dev Allow a user to burn a number of wrapped tokens and withdraw the corresponding number of underlying tokens.\n */\n function withdrawTo(address account, uint256 amount) public virtual returns (bool) {\n _burn(_msgSender(), amount);\n SafeERC20Upgradeable.safeTransfer(_underlying, account, amount);\n return true;\n }\n\n /**\n * @dev Mint wrapped token to cover any underlyingTokens that would have been transferred by mistake. Internal\n * function that can be exposed with access control if desired.\n */\n function _recover(address account) internal virtual returns (uint256) {\n uint256 value = _underlying.balanceOf(address(this)) - totalSupply();\n _mint(account, value);\n return value;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20Upgradeable.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\n /**\n * @dev Returns the name of the token.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the symbol of the token.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the decimals places of the token.\n */\n function decimals() external view returns (uint8);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20PermitUpgradeable {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20Upgradeable {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n" - }, - "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20Upgradeable.sol\";\nimport \"../extensions/IERC20PermitUpgradeable.sol\";\nimport \"../../../utils/AddressUpgradeable.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20Upgradeable {\n using AddressUpgradeable for address;\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to\n * 0 before setting it to a non-zero value.\n */\n function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n * Revert on invalid signature.\n */\n function safePermit(\n IERC20PermitUpgradeable token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n *\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n // and not revert is the subcall reverts.\n\n (bool success, bytes memory returndata) = address(token).call(data);\n return\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));\n }\n}\n" - }, - "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n *\n * Furthermore, `isContract` will also return true if the target contract within\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n * which only has an effect at the end of a transaction.\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" - }, - "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\nimport \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add new\n * variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n * function _getImplementation() internal view returns (address) {\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n * }\n *\n * function _setImplementation(address newImplementation) internal {\n * require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\n * _Available since v4.9 for `string`, `bytes`._\n */\nlibrary StorageSlotUpgradeable {\n struct AddressSlot {\n address value;\n }\n\n struct BooleanSlot {\n bool value;\n }\n\n struct Bytes32Slot {\n bytes32 value;\n }\n\n struct Uint256Slot {\n uint256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes value;\n }\n\n /**\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n */\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n /// @solidity memory-safe-assembly\n assembly {\n r.slot := store.slot\n }\n }\n}\n" - }, - "@openzeppelin/contracts/access/Ownable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n" - }, - "@openzeppelin/contracts/access/Ownable2Step.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./Ownable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2Step is Ownable {\n address private _pendingOwner;\n\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Returns the address of the pending owner.\n */\n function pendingOwner() public view virtual returns (address) {\n return _pendingOwner;\n }\n\n /**\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual override onlyOwner {\n _pendingOwner = newOwner;\n emit OwnershipTransferStarted(owner(), newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual override {\n delete _pendingOwner;\n super._transferOwnership(newOwner);\n }\n\n /**\n * @dev The new owner accepts the ownership transfer.\n */\n function acceptOwnership() public virtual {\n address sender = _msgSender();\n require(pendingOwner() == sender, \"Ownable2Step: caller is not the new owner\");\n _transferOwnership(sender);\n }\n}\n" - }, - "@openzeppelin/contracts/security/Pausable.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract Pausable is Context {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n constructor() {\n _paused = false;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n _requireNotPaused();\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n _requirePaused();\n _;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Throws if the contract is paused.\n */\n function _requireNotPaused() internal view virtual {\n require(!paused(), \"Pausable: paused\");\n }\n\n /**\n * @dev Throws if the contract is not paused.\n */\n function _requirePaused() internal view virtual {\n require(paused(), \"Pausable: not paused\");\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/IERC20.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n" - }, - "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n using Address for address;\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n }\n\n /**\n * @dev Deprecated. This function has issues similar to the ones found in\n * {IERC20-approve}, and its usage is discouraged.\n *\n * Whenever possible, use {safeIncreaseAllowance} and\n * {safeDecreaseAllowance} instead.\n */\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\n // safeApprove should only be called when setting an initial allowance,\n // or when resetting it to zero. To increase and decrease it, use\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to\n * 0 before setting it to a non-zero value.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n * Revert on invalid signature.\n */\n function safePermit(\n IERC20Permit token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n // the target address contains contract code and also asserts for success in the low-level call.\n\n bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n }\n\n /**\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n * on the return value: the return value is optional (but if data is returned, it must not be false).\n * @param token The token targeted by the call.\n * @param data The call data (encoded using abi.encode or one of its variants).\n *\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n // and not revert is the subcall reverts.\n\n (bool success, bytes memory returndata) = address(token).call(data);\n return\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\n }\n}\n" - }, - "@openzeppelin/contracts/utils/Address.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n *\n * Furthermore, `isContract` will also return true if the target contract within\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n * which only has an effect at the end of a transaction.\n * ====\n *\n * [IMPORTANT]\n * ====\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\n *\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n * constructor.\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize/address.code.length, which returns 0\n // for contracts in construction, since the code is only stored at the end\n // of the constructor execution.\n\n return account.code.length > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n (bool success, ) = recipient.call{value: amount}(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain `call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(\n address target,\n bytes memory data,\n uint256 value,\n string memory errorMessage\n ) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(\n address target,\n bytes memory data,\n string memory errorMessage\n ) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n *\n * _Available since v4.8._\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal view returns (bytes memory) {\n if (success) {\n if (returndata.length == 0) {\n // only check isContract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n require(isContract(target), \"Address: call to non-contract\");\n }\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n * revert reason or using the provided one.\n *\n * _Available since v4.3._\n */\n function verifyCallResult(\n bool success,\n bytes memory returndata,\n string memory errorMessage\n ) internal pure returns (bytes memory) {\n if (success) {\n return returndata;\n } else {\n _revert(returndata, errorMessage);\n }\n }\n\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n /// @solidity memory-safe-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n}\n" - }, - "@openzeppelin/contracts/utils/Context.sol": { - "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" - }, - "contracts/src/abstracts/base/BaseUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {GlobalPausableUpgradeable} from \"../GlobalPausableUpgradeable.sol\";\nimport {GlobalOwnableUpgradeable} from \"../GlobalOwnableUpgradeable.sol\";\nimport {GlobalRestrictableUpgradeable} from \"../GlobalRestrictableUpgradeable.sol\";\nimport {RecoverableUpgradeable} from \"../RecoverableUpgradeable.sol\";\n\n/**\n * @title BaseUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice This abstract contract acts as a base for numerous contracts in this codebase,\n * minimizing code repetition and enhancing readability and maintainability.\n *\n * @dev For further details, see \"Base\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract BaseUpgradeable is\n Initializable,\n UUPSUpgradeable,\n GlobalOwnableUpgradeable,\n GlobalPausableUpgradeable,\n GlobalRestrictableUpgradeable,\n RecoverableUpgradeable\n{\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n */\n function __Base_init(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_\n ) internal onlyInitializing {\n __UUPSUpgradeable_init();\n __GlobalOwnable_init(globalOwner_);\n __Pausable_init();\n __GlobalPausable_init_unchained(globalPause_);\n __GlobalRestrictable_init_unchained(globalBlacklist_);\n __Recoverable_init_unchained();\n }\n\n function __Base_init_unchained() internal onlyInitializing {}\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/base/ERC20BaseUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {ERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol\";\nimport {ERC20PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol\";\nimport {PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport \"./BaseUpgradeable.sol\";\nimport {GlobalPausableUpgradeable} from \"../GlobalPausableUpgradeable.sol\";\n\n/**\n * @title ERC20BaseUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice This abstract contract is an extension of BaseUpgradeable intended to be used\n * as a base for ERC20 tokens contracts.\n *\n * @dev For further details, see \"ERC20BaseUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract ERC20BaseUpgradeable is\n ERC20Upgradeable,\n BaseUpgradeable,\n ERC20PausableUpgradeable\n{\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param name_ The display name of the token.\n * @param symbol_ The symbol of the token.\n */\n function __ERC20Base_init(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n string memory name_,\n string memory symbol_\n ) internal onlyInitializing {\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\n __ERC20_init(name_, symbol_);\n __ERC20Pausable_init_unchained();\n }\n\n function __ERC20Base_init_unchained() internal onlyInitializing {}\n\n /**\n * @notice Required override of paused() which is implemented by both\n * GlobalPausableUpgradeable and PausableUpgradeable parent contracts.\n * The GlobalPausableUpgradeable version is preferred because it checks the pause\n * state from the GlobalPause contract.\n * @inheritdoc GlobalPausableUpgradeable\n */\n function paused()\n public\n view\n virtual\n override(GlobalPausableUpgradeable, PausableUpgradeable)\n returns (bool)\n {\n return GlobalPausableUpgradeable.paused();\n }\n\n /**\n * @dev Required override of _beforeTokenTransfer() which is implemented by both\n * ERC20PausableUpgradeable and ERC20Upgradeable parent contracts.\n * The ERC20PausableUpgradeable version is preferred because it also checks that\n * the contract is not paused before allowing the transfer.\n * @inheritdoc ERC20PausableUpgradeable\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n )\n internal\n virtual\n override(ERC20PausableUpgradeable, ERC20Upgradeable)\n whenNotPaused\n notBlacklisted(from)\n notBlacklisted(to)\n {\n ERC20PausableUpgradeable._beforeTokenTransfer(from, to, amount);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/GlobalOwnableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {GlobalOwner} from \"../GlobalOwner.sol\";\n\n/**\n * @title GlobalOwnableUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts will inherit ownership from the specified GlobalOwner\n * contract (see GlobalOwner.sol). This design facilitates centralized management\n * of ownership for all the Ledgity Yield contracts.\n *\n * @dev Security measure:\n * The _globalOwner state must be set at initialization time and, for evident security\n * reasons, cannot be changed afterward.\n *\n * @dev For further details, see \"GlobalOwnableUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract GlobalOwnableUpgradeable is Initializable, OwnableUpgradeable {\n /**\n * @notice The GlobalOwner contract the ownership will be inherited from.\n * @dev This state is private so derived contracts cannot change its value.\n */\n GlobalOwner private _globalOwner;\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n */\n function __GlobalOwnable_init(address globalOwner_) internal onlyInitializing {\n __GlobalOwnable_init_unchained(globalOwner_);\n // Note: __Ownable_init() doesn't have to be called as the overriden owner()\n // function no longer rely on the _owner state. Since __Ownable_init() only sets\n // the initial _owner value, calling it would have no effect.\n }\n\n function __GlobalOwnable_init_unchained(address globalOwner_) internal onlyInitializing {\n _globalOwner = GlobalOwner(globalOwner_);\n }\n\n /**\n * @notice Retrieves the address of GlobalOwner contract.\n * @return The address of the GlobalOwner contract.\n */\n function globalOwner() public view returns (address) {\n return address(_globalOwner);\n }\n\n /**\n * @notice Override of OwnableUpgradeable.owner() that retrieves the owner's address\n * from the GlobalOwner contract instead.\n * @return The address of the owner\n */\n function owner() public view override returns (address) {\n return _globalOwner.owner();\n }\n\n /**\n * @notice Override of OwnableUpgradeable.transferOwnership() that always reverts.\n * Ownership is managed by the GlobalOwner contract and must be modified there.\n */\n function transferOwnership(address newOwner) public view override onlyOwner {\n newOwner; // Silence unused variable compiler warning\n revert(\"L8\");\n }\n\n /**\n * @notice Override of OwnableUpgradeable.renounceOwnership() that always reverts.\n * Ownership is managed by the GlobalOwner contract and must be modified there.\n */\n function renounceOwnership() public view override onlyOwner {\n revert(\"L65\");\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/GlobalPausableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport {GlobalPause} from \"../GlobalPause.sol\";\n\n/**\n * @title GlobalPausableUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts will inherit a pause state from the specified GlobalPause\n * contract (see GlobalPause.sol). This design facilitates centralized management of\n * pause state for all the Ledgity Yield contracts.\n *\n * @dev Security measure\n * The _globalPause state must be set at initialization time and, for evident security\n * reasons, cannot be changed afterward.\n *\n * @dev For further details, see \"GlobalPausableUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract GlobalPausableUpgradeable is Initializable, PausableUpgradeable {\n /**\n * @notice The GlobalPause contract the pause state will be inherited from.\n * @dev This state is private so derived contracts cannot change its value.\n */\n GlobalPause private _globalPause;\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalPause_ The address of the GlobalPause contract.\n */\n function __GlobalPausable_init(address globalPause_) internal onlyInitializing {\n __Pausable_init();\n __GlobalPausable_init_unchained(globalPause_);\n }\n\n function __GlobalPausable_init_unchained(address globalPause_) internal onlyInitializing {\n _globalPause = GlobalPause(globalPause_);\n }\n\n /**\n * @notice Retrieves the address of GlobalPause contract.\n * @return The address of the GlobalPause contract.\n */\n function globalPause() public view returns (address) {\n return address(_globalPause);\n }\n\n /**\n * @notice Override of PausableUpgradeable.pause() that retrieves the pause state\n * from the GlobalPause contract instead.\n * @return Whether the contract is paused or not.\n */\n function paused() public view virtual override returns (bool) {\n return _globalPause.paused();\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/GlobalRestrictableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {GlobalBlacklist} from \"../GlobalBlacklist.sol\";\n\n/**\n * @title GlobalRestrictableUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts will inherit a blacklist state from the specified\n * GlobalBlacklist contract (see GlobalBlacklist.sol). This design facilitates\n * centralized management of a blacklist for all the Ledgity Yield contracts.\n *\n * @dev Security measure:\n * The _globalBlacklist state must be set at initialization time and, for evident\n * security reasons, cannot be changed afterward.\n *\n * @dev For further details, see \"GlobalRestrictableUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract GlobalRestrictableUpgradeable is Initializable {\n /**\n * @notice The GlobalBlacklist contract the blacklist state will be inherited from.\n * @dev This state is private so derived contracts cannot change its value.\n */\n GlobalBlacklist private _globalBlacklist;\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n */\n function __GlobalRestrictable_init(address globalBlacklist_) internal onlyInitializing {\n __GlobalRestrictable_init_unchained(globalBlacklist_);\n }\n\n function __GlobalRestrictable_init_unchained(\n address globalBlacklist_\n ) internal onlyInitializing {\n _globalBlacklist = GlobalBlacklist(globalBlacklist_);\n }\n\n /**\n * @notice Retrieves the address of GlobalBlacklist contract.\n * @return The address of the GlobalBlacklist contract.\n */\n function globalBlacklist() public view returns (address) {\n return address(_globalBlacklist);\n }\n\n /**\n * @notice Reverts if the given account is blacklisted by the GlobalBlacklist contract.\n * @param account Address to verify.\n */\n modifier notBlacklisted(address account) {\n require(isBlacklisted(account) == false, \"L9\");\n _;\n }\n\n /**\n * @notice Checks if the given account is blacklisted by the GlobalBlacklist contract.\n * @param account Address to verify.\n * @return Whether the account is blacklisted.\n */\n function isBlacklisted(address account) internal view returns (bool) {\n return _globalBlacklist.isBlacklisted(account);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/InvestUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./GlobalOwnableUpgradeable.sol\";\nimport {GlobalPausableUpgradeable} from \"./GlobalPausableUpgradeable.sol\";\nimport {GlobalRestrictableUpgradeable} from \"./GlobalRestrictableUpgradeable.sol\";\nimport \"./base/BaseUpgradeable.sol\";\nimport {RecoverableUpgradeable} from \"../abstracts/RecoverableUpgradeable.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\nimport {APRHistory as APRH} from \"../libs/APRHistory.sol\";\nimport {SUD} from \"../libs/SUD.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\n\n/**\n * @title InvestUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts are provided with utilities to manage an invested token,\n * users' investment periods, rewards calculations, virtual balances, and auto-compounding.\n *\n * @dev Intuition:\n * This contract primarily exists for code splitting and reusability. It unburdens the\n * LToken contract code, making it easier to understand and maintain.\n *\n * This contract is generic because it may be used in the LDYStaking contract in the future.\n *\n * @dev Definitions:\n * - Investment: The act of depositing or investing tokens into the contract.\n * - Investment period: Time between the last invested amount change and the present.\n * - Virtual balance: Temporary storage for account rewards, used when those can't be\n * distributed between investment periods.\n * - Rewards redirection: Mechanism allowing an account to redirect its rewards to another.\n *\n * @dev Derived contract must:\n * - Set invested token during initialization\n * - Implement _investmentOf() function\n * - (optionally) Implement _distributeRewards() function\n *\n * @dev For further details, see \"InvestmentUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract InvestUpgradeable is BaseUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n using APRH for APRH.Pack[];\n\n /**\n * @notice Represents an account's investment period.\n * @param timestamp The timestamp of the most recent rewards distribution.\n * @param ref The reference of the last APR checkpoint at that timestamp.\n */\n struct InvestmentPeriod {\n uint40 timestamp; // Supports dates up to 20/02/36812\n APRH.Reference ref;\n }\n\n /**\n * @notice Represents the investment details of an account.\n * @param period The current investment period of the account.\n * @param virtualBalance May hold a part of account rewards until they are claimed.\n */\n struct AccountDetails {\n InvestmentPeriod period;\n uint256 virtualBalance;\n }\n\n /// @notice Holds a reference to the invested token's contract.\n IERC20Upgradeable private _invested;\n\n /// @notice Holds investment details of each account.\n mapping(address => AccountDetails) internal accountsDetails;\n\n /// @notice Holds an history of the APR value over time (see APRHistory.sol).\n APRH.Pack[] private _aprHistory;\n\n /// @notice Holds active rewards redirections in both from->to and to->from[] ways.\n mapping(address => address) public rewardsRedirectsFromTo;\n mapping(address => address[]) public rewardsRedirectsToFrom;\n\n /// @notice Is used to prevent infinite loop in _beforeInvestmentChange().\n bool private _isClaiming;\n\n /**\n * @notice Emitted to inform listeners about a change in the APR's value.\n * @param newAPRUD7x3 The new APR in UD7x3 format.\n */\n event APRChangeEvent(uint16 newAPRUD7x3);\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param invested_ The address of the invested token contract.\n */\n function __Invest_init(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address invested_\n ) internal onlyInitializing {\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\n __Invest_init_unchained(invested_);\n }\n\n function __Invest_init_unchained(address invested_) internal onlyInitializing {\n // Set invested token\n _invested = IERC20Upgradeable(invested_);\n\n // Define initial APR to 0%. This would prevent getAPR() from reverting because\n // of an empty APR history\n _aprHistory.setAPR(0);\n }\n\n /**\n * @notice Retrieves the reference to the invested token contract.\n * @return The reference to the invested token contract.\n */\n function invested() public view returns (IERC20Upgradeable) {\n return _invested;\n }\n\n /**\n * @notice Updates the investment APR. Restricted to owner.\n * @param aprUD7x3 The new APR in UD7x3 format.\n */\n function setAPR(uint16 aprUD7x3) public onlyOwner {\n _aprHistory.setAPR(aprUD7x3);\n emit APRChangeEvent(aprUD7x3);\n }\n\n /**\n * @notice Retrieves the most recently set APR.\n * @return The current APR in UD7x3 format.\n */\n function getAPR() public view returns (uint16) {\n return _aprHistory.getAPR();\n }\n\n /**\n * @notice Enables redirection of rewards from one account to another.\n * @param from The address of the account to redirect rewards from.\n * @param to The address of the account to redirect rewards to.\n */\n function startRewardsRedirection(\n address from,\n address to\n ) public whenNotPaused notBlacklisted(from) notBlacklisted(to) {\n // Ensure the address is not already redirecting rewards\n require(rewardsRedirectsFromTo[from] == address(0), \"L62\");\n\n // Ensure neither 'from' nor 'to' are the zero address\n require(from != address(0), \"L12\");\n require(to != address(0), \"L13\");\n\n // Ensure 'from' and 'to' addresses are distinct\n require(from != to, \"L14\");\n\n // Ensure function caller is either the owner or the 'from' address\n require(_msgSender() == owner() || _msgSender() == from, \"L15\");\n\n // Distribute current rewards and reset investment periods of both accounts\n _beforeInvestmentChange(from, true);\n _beforeInvestmentChange(to, true);\n\n // Activate rewards redirection\n rewardsRedirectsFromTo[from] = to;\n rewardsRedirectsToFrom[to].push(from);\n }\n\n /**\n * @notice Disable an active rewards redirection.\n * @param from The address of the account to stop redirecting rewards from.\n * @param to The address of the account to stop redirecting rewards to.\n */\n function stopRewardsRedirection(\n address from,\n address to\n ) public whenNotPaused notBlacklisted(from) notBlacklisted(to) {\n // Ensure neither 'from' nor 'to' are the zero address\n require(from != address(0), \"L16\");\n require(to != address(0), \"L17\");\n\n // Ensure function caller is either the owner or the 'from' address\n require(_msgSender() == owner() || _msgSender() == from, \"L18\");\n\n // Ensure a rewards redirection was active\n require(rewardsRedirectsFromTo[from] == to, \"L19\");\n\n // Distribute current rewards and reset investment periods of both accounts\n _beforeInvestmentChange(from, true);\n _beforeInvestmentChange(to, true);\n\n // Retrieve 'from' index in the redirection array of 'to'\n int256 fromIndex = -1;\n for (uint256 i = 0; i < rewardsRedirectsToFrom[to].length; i++) {\n if (rewardsRedirectsToFrom[to][i] == from) {\n fromIndex = int256(i);\n break;\n }\n }\n\n // fromIndex should never be -1 at this point\n assert(fromIndex >= 0);\n\n // Deactivate rewards redirection\n rewardsRedirectsFromTo[from] = address(0);\n rewardsRedirectsToFrom[to][uint256(fromIndex)] = rewardsRedirectsToFrom[to][\n rewardsRedirectsToFrom[to].length - 1\n ];\n rewardsRedirectsToFrom[to].pop();\n }\n\n /**\n * @notice Retrieves the total amount of tokens invested by the given account.\n * @dev Derived contracts must implement this function.\n * @param account The account to get the investment of.\n * @return The total amount of tokens invested by the given account.\n */\n function _investmentOf(address account) internal view virtual returns (uint256);\n\n /**\n * @notice Distributes a specified amount of rewards to a given account.\n * @dev Derived contracts may optionally implement this function.\n * @dev Implementations must return true to indicate a successful distribution, and\n * false otherwise. If it returns false, the rewards will be added to the account's\n * virtual balance, in order to be claimed later.\n * @param account The account to claim the rewards of.\n * @param amount The amount of rewards to claim.\n * @return Whether the rewards distribution was successfull.\n */\n function _distributeRewards(address account, uint256 amount) internal virtual returns (bool) {\n account; // Silence unused variables warning\n amount;\n return false;\n }\n\n /**\n * @notice Computes the rewards accrued over a specified period of time, based on a\n * given APR and amount of invested tokens.\n * @dev For further details, see \"InvestUpgradeable > Rewards calculation\" section of\n * the whitepaper.\n * @param beginTimestamp The moment the period commenced.\n * @param endTimestamp The moment the period concluded.\n * @param aprUD7x3 The APR during this period, in UD7x3 format.\n * @param investedAmount The amount of tokens deposited/invested during the period.\n * @return The amount of rewards generated during the period.\n */\n function _calculatePeriodRewards(\n uint40 beginTimestamp,\n uint40 endTimestamp,\n uint16 aprUD7x3,\n uint256 investedAmount\n ) internal view returns (uint256) {\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Compute the number of elapsed years\n uint256 elapsedTimeSUD = SUD.fromInt(endTimestamp - beginTimestamp, d);\n uint256 elapsedYearsSUD = (elapsedTimeSUD * SUD.fromInt(1, d)) / SUD.fromInt(365 days, d);\n\n // Compute the growth in invested amount (thanks to rewards)\n uint256 aprSUD = SUD.fromRate(aprUD7x3, d);\n uint256 growthSUD = (elapsedYearsSUD * aprSUD) / SUD.fromInt(1, d);\n\n // Compute and return the rewards\n uint256 investedAmountSUD = SUD.fromAmount(investedAmount, d);\n uint256 rewardsSUD = (investedAmountSUD * growthSUD) / SUD.fromInt(100, d);\n return SUD.toAmount(rewardsSUD, d);\n }\n\n /**\n * @notice Computes the sum of given account's invested amount, plus invested amount\n * of all accounts that recursively redirect rewards to this account.\n * @param account The account to calculate the deep investment of.\n * @return deepInvestedAmount The deep invested amount.\n */\n function _deepInvestmentOf(address account) internal view returns (uint256 deepInvestedAmount) {\n // Consider account's direct investment\n deepInvestedAmount += _investmentOf(account);\n\n // But also the deep investments of all accounts redirecting rewards to this account\n for (uint256 i = 0; i < rewardsRedirectsToFrom[account].length; i++) {\n deepInvestedAmount += _deepInvestmentOf(rewardsRedirectsToFrom[account][i]);\n }\n }\n\n /**\n * @notice Computes the amount of unclaimed/undistributed rewards of a given account.\n * @dev For further details, see \"InvestUpgradeable > Rewards calculation\" section of\n * the whitepaper.\n * @param account The account to calculate the unclaimed rewards of.\n * @param autocompound Whether to autocompound the rewards between APR checkpoints.\n * @return rewards The amount of unclaimed/undistributed rewards of the given account.\n */\n function _rewardsOf(\n address account,\n bool autocompound\n ) internal view returns (uint256 rewards) {\n // Retrieve account's investment details\n AccountDetails memory details = accountsDetails[account];\n\n // Retrieve account's deep invested amount\n uint256 investedAmount = _deepInvestmentOf(account);\n\n // Return 0 if the account has never invested or has no invested amount\n if (details.period.timestamp == 0 || investedAmount == 0) return 0;\n\n // Retrieve reference and data of APR checkpoint at which started investment period\n APRH.Reference memory currRef = details.period.ref;\n APRH.CheckpointData memory currCheckpoint = _aprHistory.getDataFromReference(currRef);\n\n // Retrieve reference of latest APR checkpoint\n APRH.Reference memory latestRef = _aprHistory.getLatestReference();\n\n // 1) Fill rewards with virtual balance (rewards not claimed/distributed yet)\n // See \"InvestUpgradeable > Yield calculation > 1)\" section of the whitepaper\n rewards = details.virtualBalance;\n\n // If start checkpoint is not the latest one\n if (!APRH.eq(currRef, latestRef)) {\n // Retrieve reference and data of APR checkpoint that comes after start checkpoint\n APRH.Reference memory nextRef = APRH.incrementReference(currRef);\n APRH.CheckpointData memory nextCheckpoint = _aprHistory.getDataFromReference(nextRef);\n\n // 2) Calculate rewards from investment period start to next checkpoint\n // See \"InvestUpgradeable > Yield calculation > 2)\" section of the whitepaper\n rewards += _calculatePeriodRewards(\n details.period.timestamp,\n nextCheckpoint.timestamp,\n currCheckpoint.aprUD7x3,\n investedAmount + (autocompound ? rewards : 0)\n );\n\n // 3) Calculate rewards for each crossed pair of checkpoints\n // See \"InvestUpgradeable > Yield calculation > 3)\" section of the whitepaper\n while (true) {\n // Set next checkpoint as the current one\n currRef = nextRef;\n currCheckpoint = nextCheckpoint;\n\n // Break if current checkpoint is the latest one\n if (APRH.eq(currRef, latestRef)) break;\n\n // Else, retrieve the new next checkpoint\n nextRef = APRH.incrementReference(currRef);\n nextCheckpoint = _aprHistory.getDataFromReference(nextRef);\n\n // Calculate rewards between the current pair of checkpoints\n rewards += _calculatePeriodRewards(\n currCheckpoint.timestamp,\n nextCheckpoint.timestamp,\n currCheckpoint.aprUD7x3,\n investedAmount + (autocompound ? rewards : 0)\n );\n }\n\n // 4) Calculate rewards from the latest checkpoint to now\n // See \"InvestUpgradeable > Yield calculation > 4)\" section of the whitepaper\n rewards += _calculatePeriodRewards(\n currCheckpoint.timestamp,\n uint40(block.timestamp),\n currCheckpoint.aprUD7x3,\n investedAmount + (autocompound ? rewards : 0)\n );\n } else {\n // 2.bis) Calculate rewards from investment period start to now\n // See \"InvestUpgradeable > Yield calculation > 2.bis)\" section of the whitepaper\n rewards += _calculatePeriodRewards(\n details.period.timestamp,\n uint40(block.timestamp),\n currCheckpoint.aprUD7x3,\n investedAmount + (autocompound ? rewards : 0)\n );\n }\n }\n\n /**\n * @notice Recursively resets the investment period of the specified account and of\n * all accounts that directly or indirectly redirect rewards to this account.\n * @param account The account to deeply reset the investment period of.\n */\n function _deepResetInvestmentPeriodOf(address account) internal {\n // Reset account investment period timestamp and APR checkpoint to latest ones\n accountsDetails[account].period.timestamp = uint40(block.timestamp);\n accountsDetails[account].period.ref = _aprHistory.getLatestReference();\n\n // Also reset the ones of all accounts that recursively redirect rewards to this account\n for (uint256 i = 0; i < rewardsRedirectsToFrom[account].length; i++) {\n _deepResetInvestmentPeriodOf(rewardsRedirectsToFrom[account][i]);\n }\n }\n\n /**\n * @notice Hook to be invoked before the invested amount of an account changes. It\n * ensures that rewards are distributed and that account's investment period is reset.\n * @param account The account whose invested amount is going to change.\n * @param autocompound Whether to autocompound the rewards between APR checkpoints.\n */\n function _beforeInvestmentChange(address account, bool autocompound) internal {\n // This hook is called inside LToken._beforeTokenTransfer() and as new tokens are\n // minted in LToken._distributeRewards(), this guards against infinite loop.\n if (_isClaiming) return;\n\n // LToken._beforeTokenTransfer() calls this hook for both involved addresses.\n // As first call will treat both addresses, the second call would be redundant.\n // Therefore, we skip accounts already processed in this block to save up some gas.\n if (accountsDetails[account].period.timestamp == uint40(block.timestamp)) return;\n\n // If account redirects its rewards\n address redirectRewardsTo = rewardsRedirectsFromTo[account];\n if (redirectRewardsTo != address(0)) {\n // Call hook on redirection target (this will indirectly reset the investment\n // of this source account) and return\n _beforeInvestmentChange(redirectRewardsTo, autocompound);\n return;\n }\n\n // Else, compute account's undistributed/unclaimed rewards\n uint256 rewards = _rewardsOf(account, autocompound);\n\n // If there are some rewards\n if (rewards > 0) {\n // Try to distribute rewards to account\n _isClaiming = true;\n bool distributed = _distributeRewards(account, rewards);\n _isClaiming = false;\n\n // If rewards have not been distributed, accumulate them in account's virtual balance\n if (!distributed) accountsDetails[account].virtualBalance = rewards;\n }\n\n // Finally, deeply reset investment period of the account\n _deepResetInvestmentPeriodOf(account);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/abstracts/RecoverableUpgradeable.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Conracts\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./GlobalOwnableUpgradeable.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\n\n/**\n * @title RecoverableUpgradeable\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Derived contracts are provided with helper functions allowing the recovery of\n * assets accidentally sent to them.\n *\n * @dev Where are utilities Ether, ERC721, etc.?\n * This abstract contract currently supports only ERC20 tokens. Derived contracts\n * in this codebase currently do not implement the necessary functions to receive Ether\n * or ERC721/ERC1155 tokens, so no recovery functions are provided for these assets.\n *\n * @dev For further details, see \"RecoverableUpgradeable\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nabstract contract RecoverableUpgradeable is Initializable, GlobalOwnableUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /**\n * @notice Initializer functions of the contract. They replace the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n */\n function __Recoverable_init(address globalOwner_) internal onlyInitializing {\n __GlobalOwnable_init(globalOwner_);\n __Recoverable_init_unchained();\n }\n\n function __Recoverable_init_unchained() internal onlyInitializing {}\n\n /**\n * @notice Recovers a specified amount of a given token address. Will fail if the\n * contract doesn't hold enough tokens.\n * @param tokenAddress The address of the token to recover.\n * @param amount The amount of token to recover.\n */\n function recoverERC20(address tokenAddress, uint256 amount) public virtual onlyOwner {\n // Ensure the specified amount is not zero\n require(amount > 0, \"L10\");\n\n // Create a reference to token's contract\n IERC20Upgradeable tokenContract = IERC20Upgradeable(tokenAddress);\n\n // Ensure there is enough token to recover\n require(tokenContract.balanceOf(address(this)) >= amount, \"L11\");\n\n // Transfer the recovered token amount to the sender\n tokenContract.safeTransfer(_msgSender(), amount);\n }\n\n /**\n * @dev This empty reserved space is put in place to allow future versions to add\n * new variables without shifting down storage in the inheritance chain.\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\n */\n uint256[50] private __gap;\n}\n" - }, - "contracts/src/GlobalBlacklist.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./abstracts/GlobalOwnableUpgradeable.sol\";\n\n/**\n * @title GlobalBlacklist\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Holds a global mapping of blacklisted accounts shared by all contracts of the\n * Ledgity Yield codebase.\n *\n * @dev Specifically, some contracts within the codebase inherit from the\n * GlobalRestrictableUpgradeable abstract contract. This provides them with modifiers\n * and getter functions to easily check against this global blacklist.\n *\n * @dev For further details, see \"GlobalBlacklist\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\ncontract GlobalBlacklist is Initializable, UUPSUpgradeable, GlobalOwnableUpgradeable {\n /**\n * @notice Mapping of accounts to their blacklist status.\n * @dev This mapping is made private and isBlacklisted() should be used instead.This\n * helps saving gas in some scenario. See isBlacklisted() documentation for more details.\n */\n mapping(address => bool) private _list;\n\n /// @dev Emitted when `account` is blacklisted.\n event Blacklisted(address account);\n\n /// @dev Emitted when `account` is unblacklisted.\n event Unblacklisted(address account);\n\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n */\n function initialize(address globalOwner_) public initializer {\n __GlobalOwnable_init(globalOwner_);\n __UUPSUpgradeable_init();\n }\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n\n /**\n * @notice Adds a given account to the blacklist.\n * @param account The account's address to be blacklisted.\n */\n function blacklist(address account) external onlyOwner {\n require(account != address(0), \"L20\");\n _list[account] = true;\n emit Blacklisted(account);\n }\n\n /**\n * @notice Removes a given account from the blacklist.\n * @param account The account's address to be un-blacklisted.\n */\n function unBlacklist(address account) external onlyOwner {\n _list[account] = false;\n emit Unblacklisted(account);\n }\n\n /**\n * @notice Checks whether a given account is blacklisted.\n * @param account Address of the account to check.\n * @return 'true' if the account is blacklisted, 'false' otherwise\n */\n function isBlacklisted(address account) external view returns (bool) {\n // Gas optimization: Avoid accessing storage if account is the zero address\n // (e.g, during a mint or a burn of tokens)\n if (account == address(0)) return false;\n\n // Else, return current account's blacklist status\n return _list[account];\n }\n}\n" - }, - "contracts/src/GlobalOwner.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {Ownable2StepUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\";\n\n/**\n * @title GlobalOwner\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Holds the address of a global owner account shared by all contracts of the\n * Ledgity Yield's codebase.\n *\n * @dev Specifically, some contracts within the codebase inherit from the\n * GlobalOwnableUpgradeable abstract contract. This provides them with an overriden\n * owner() function that retrieves the owner's address from this contract instead.\n *\n * @dev For further details, see \"GlobalOwner\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\ncontract GlobalOwner is Initializable, UUPSUpgradeable, Ownable2StepUpgradeable {\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n */\n function initialize() public initializer {\n __Ownable2Step_init();\n __UUPSUpgradeable_init();\n }\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n}\n" - }, - "contracts/src/GlobalPause.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\";\nimport {GlobalOwnableUpgradeable} from \"./abstracts/GlobalOwnableUpgradeable.sol\";\n\n/**\n * @title GlobalPause\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Holds a global pause state shared by all contracts of the Ledgity Yield\n * codebase.\n *\n * @dev Specifically, some contracts within the codebase inherit from the\n * GlobalPausableUpgradeable abstract contract. This provides them with an overriden\n * paused() function that retrieves the pause state from this contract instead.\n *\n * @dev For further details, see \"GlobalPause\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\ncontract GlobalPause is\n Initializable,\n UUPSUpgradeable,\n GlobalOwnableUpgradeable,\n PausableUpgradeable\n{\n /**\n * @notice Prevents implementation contract from being initialized as recommended by\n * OpenZeppelin.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/api/proxy#Initializable-_disableInitializers--\n * @custom:oz-upgrades-unsafe-allow constructor\n */\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n */\n function initialize(address globalOwner_) public initializer {\n __GlobalOwnable_init(globalOwner_);\n __Pausable_init();\n __UUPSUpgradeable_init();\n }\n\n /**\n * @notice Override of UUPSUpgradeable._authorizeUpgrade() function restricted to\n * global owner. It is called by the proxy contract during an upgrade.\n * @param newImplementation The address of the new implementation contract.\n */\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\n\n /**\n * @dev Public implementation of PausableUpgradeable's pausing and unpausing functions\n * but restricted to contract's owner.\n */\n function pause() public onlyOwner {\n _pause();\n }\n\n function unpause() public onlyOwner {\n _unpause();\n }\n}\n" - }, - "contracts/src/interfaces/ITransfersListener.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\ninterface ITransfersListener {\n function onLTokenTransfer(address from, address to, uint256 amount) external;\n}\n" - }, - "contracts/src/LDYStaking.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {ReentrancyGuardUpgradeable} from \"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\";\nimport {BaseUpgradeable} from \"./abstracts/base/BaseUpgradeable.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\n\n/**\n * @title LDYStaking\n * @custom:security-contact security@ledgity.com\n *\n * @dev This contract implements tierOf() function from LDYStaking as it's the only\n * one the LToken contract relies on.\n *\n * @custom:security-contact security@ledgity.com\n */\ncontract LDYStaking is BaseUpgradeable, ReentrancyGuardUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /**\n * @notice Represents a user staking info in array.\n * @param stakedAmount Amount of the stake.\n * @param unStakeAt Unstake at.\n * @param duration Staking period in seconds.\n * @param rewardPerTokenPaid Reward per token paid.\n * @param rewards Rewards to be claimed.\n */\n struct StakingInfo {\n uint256 stakedAmount;\n uint256 unStakeAt;\n uint256 duration;\n uint256 rewardPerTokenPaid;\n uint256 rewards;\n }\n\n /// @notice Stake and Reward token.\n IERC20Upgradeable public stakeRewardToken;\n\n /// @notice Minimal stake duration for perks.\n uint256 public stakeDurationForPerks;\n\n /// @notice Minimal stake amount for perks.\n uint256 public stakeAmountForPerks;\n\n /// @notice Stake durations.\n uint256[] public stakeDurations;\n\n /// @notice Duration of the rewards (in seconds).\n uint256 public rewardsDuration;\n\n /// @notice Timestamp of when the rewards finish.\n uint256 public finishAt;\n\n /// @notice Timestamp of the reward updated.\n uint256 public lastUpdateTime;\n\n /// @notice Reward per second(total rewards / duration).\n uint256 public rewardRatePerSec;\n\n /// @notice Reward per token stored, sum of (reward rate * dt * 1e18 / total supply).\n uint256 public rewardPerTokenStored;\n\n /// @notice Total staked amounts.\n uint256 public totalStaked;\n\n /// @notice User stakingInfo map, user address => array of the staking info\n mapping(address => StakingInfo[]) public userStakingInfo;\n\n /**\n * @notice Emitted when users stake token\n * @param user User address\n * @param stakeIndex Latest index of user staking pool\n * @param amount Staked amount\n */\n event Staked(address indexed user, uint256 stakeIndex, uint256 amount);\n\n /**\n * @notice Emitted when users unstake token\n * @param user User address\n * @param stakeIndex User staking pool index\n * @param amount Staked amount\n */\n event Unstaked(address indexed user, uint256 stakeIndex, uint256 amount);\n\n /**\n * @notice Emitted when users claim rewards\n * @param user User address\n * @param stakeIndex User staking pool index\n * @param reward Reward token amount\n */\n event RewardPaid(address indexed user, uint256 stakeIndex, uint256 reward);\n\n /**\n * @notice Emitted when admin add rewards.\n * @param rewardAmount Reward amount added by admin.\n * @param rewardPerSec RewardRatePerSec updated.\n */\n event NotifiedRewardAmount(uint256 rewardAmount, uint256 rewardPerSec);\n\n /**\n * @notice Holds a mapping of addresses that default to the highest staking tier.\n * @dev This is notably used to allow PreMining contracts to benefit from 0%\n * withdrawal fees in L-Tokens contracts, when accounts unlock their funds.\n */\n mapping(address => bool) public highTierAccounts;\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @notice Initializes the contract and sets the initial state variables. This is called by the proxy and should only be called once.\n * @dev This function is intended for setting initial values for the contract's state variables.\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param stakeRewardToken_ The address of stake and reward token(LDY token).\n * @param stakeDurations_ Available Staking Durations.\n * @param stakeDurationForPerks_ Minimal staking duration for perks.\n * @param stakeAmountForPerks_ Minimal staking amount for perks.\n */\n function initialize(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address stakeRewardToken_,\n uint256[] memory stakeDurations_,\n uint256 stakeDurationForPerks_,\n uint256 stakeAmountForPerks_\n ) public initializer {\n __Base_init(globalOwner_, globalPause_, globalBlacklist_);\n stakeRewardToken = IERC20Upgradeable(stakeRewardToken_);\n stakeDurations = stakeDurations_;\n stakeDurationForPerks = stakeDurationForPerks_;\n stakeAmountForPerks = stakeAmountForPerks_;\n }\n\n // --------------------\n // MUTATIVE FUNCTIONS\n // --------------------\n\n /**\n * @notice Staked tokens cannot be withdrawn during the stakeDuration period and are eligible to claim rewards.\n * @dev Emits a `Staked` event upon successful staking.\n * @param amount The amount of tokens to stake.\n * @param stakeDurationIndex The Index of stakeDurations array.\n */\n function stake(\n uint256 amount,\n uint8 stakeDurationIndex\n ) external nonReentrant whenNotPaused notBlacklisted(_msgSender()) {\n require(amount > 0, \"amount = 0\");\n require(stakeDurationIndex <= stakeDurations.length - 1, \"invalid staking period\");\n\n _updateReward(address(0), 0);\n uint256 stakeDuration = stakeDurations[stakeDurationIndex];\n StakingInfo memory stakingInfo = StakingInfo({\n stakedAmount: amount,\n unStakeAt: block.timestamp + stakeDuration,\n duration: stakeDuration,\n rewardPerTokenPaid: rewardPerTokenStored,\n rewards: 0\n });\n\n // check whether account is eligible for benefit from the protocol\n if (stakeDuration >= stakeDurationForPerks && amount >= stakeAmountForPerks) {\n highTierAccounts[_msgSender()] = true;\n }\n\n userStakingInfo[_msgSender()].push(stakingInfo);\n\n uint256 stakeIndex = userStakingInfo[_msgSender()].length - 1;\n totalStaked += amount;\n\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\n\n emit Staked(_msgSender(), stakeIndex, amount);\n }\n\n /**\n * @notice Withdraw staked tokens after stakeDuration has passed.\n * @dev Emits a `Unstaked` event upon successful withdrawal.\n * On full withdrawal, userStakingInfo removes stake pool for stakeIndex.\n * @param amount The amount of tokens to withdraw.\n * @param stakeIndex The index of user staking pool\n */\n function unstake(\n uint256 amount,\n uint256 stakeIndex\n ) external nonReentrant notBlacklisted(_msgSender()) {\n require(amount > 0, \"amount = 0\");\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \"invalid stakeIndex\");\n require(\n block.timestamp >= userStakingInfo[_msgSender()][stakeIndex].unStakeAt,\n \"not allowed unstaking in the staking period\"\n );\n require(\n amount <= userStakingInfo[_msgSender()][stakeIndex].stakedAmount,\n \"insufficient amount\"\n );\n\n _updateReward(_msgSender(), stakeIndex);\n totalStaked -= amount;\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount -= amount;\n\n // check whether account is eligible for benefit from the protocol\n if (\n userStakingInfo[_msgSender()][stakeIndex].duration >= stakeDurationForPerks &&\n userStakingInfo[_msgSender()][stakeIndex].stakedAmount < stakeAmountForPerks\n ) {\n highTierAccounts[_msgSender()] = false;\n }\n\n // remove staking info from array on full withdrawal\n if (userStakingInfo[_msgSender()][stakeIndex].stakedAmount == 0) {\n _claimReward(_msgSender(), stakeIndex);\n\n userStakingInfo[_msgSender()][stakeIndex] = userStakingInfo[_msgSender()][\n userStakingInfo[_msgSender()].length - 1\n ];\n userStakingInfo[_msgSender()].pop();\n }\n stakeRewardToken.safeTransfer(_msgSender(), amount);\n\n emit Unstaked(_msgSender(), stakeIndex, amount);\n }\n\n /**\n * @notice Claim pending rewards.\n * @dev Emits a `RewardPaid` event upon successful reward claim.\n * @param stakeIndex The index of user staking pool.\n */\n function getReward(uint256 stakeIndex) external nonReentrant notBlacklisted(_msgSender()) {\n require(userStakingInfo[_msgSender()].length >= stakeIndex + 1, \"invalid stakeIndex\");\n _updateReward(_msgSender(), stakeIndex);\n _claimReward(_msgSender(), stakeIndex);\n }\n\n // --------------------\n // ADMIN CONFIGURATION\n // --------------------\n\n /**\n * @notice Update Rewards Duration.\n * @dev Only callable by owner, and setting available only after rewards period.\n * @param duration The nmew rewards duration in seconds.\n */\n function setRewardsDuration(uint256 duration) external onlyOwner {\n require(finishAt < block.timestamp, \"reward duration is not finished\");\n rewardsDuration = duration;\n }\n\n /**\n * @notice Notify the contract about the amount of rewards to be distributed and update reward parameters.\n * @dev Only callable by owner.\n * @param amount The amount of reward to be distributed.\n */\n function notifyRewardAmount(uint256 amount) external onlyOwner {\n require(rewardsDuration > 0, \"rewards duration is not set\");\n require(amount > 0, \"amount = 0\");\n\n _updateReward(address(0), 0);\n\n if (block.timestamp >= finishAt) {\n rewardRatePerSec = amount / rewardsDuration;\n } else {\n uint256 remainingRewards = (finishAt - block.timestamp) * rewardRatePerSec;\n rewardRatePerSec = (amount + remainingRewards) / rewardsDuration;\n }\n\n require(rewardRatePerSec > 0, \"reward rate = 0\");\n require(\n rewardRatePerSec <=\n (stakeRewardToken.balanceOf(address(this)) + amount - totalStaked) /\n rewardsDuration,\n \"reward amount > balance\"\n );\n\n finishAt = block.timestamp + rewardsDuration;\n lastUpdateTime = block.timestamp;\n\n stakeRewardToken.safeTransferFrom(_msgSender(), address(this), amount);\n\n emit NotifiedRewardAmount(amount, rewardRatePerSec);\n }\n\n // --------------------\n // VIEW FUNCTIONS\n // --------------------\n\n /**\n * @notice Get the last time when rewards were applicable for the specified reward token.\n * @return Timestamp of the most recent rewards calculation.\n */\n function lastTimeRewardApplicable() public view returns (uint256) {\n return _min(finishAt, block.timestamp);\n }\n\n /**\n * @notice Calculate the reward per token for a given reward token.\n * @return Current reward per token.\n */\n function rewardPerToken() public view returns (uint256) {\n if (totalStaked == 0) {\n return rewardPerTokenStored;\n }\n\n return\n rewardPerTokenStored +\n (rewardRatePerSec * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) /\n totalStaked;\n }\n\n /**\n * @notice Calculate the user's stake pool earnings\n * @param account Address of the user.\n * @param stakeIndex Index of the stakePool\n * @return Return earned amounts\n */\n function earned(address account, uint256 stakeIndex) public view returns (uint256) {\n StakingInfo memory userInfo = userStakingInfo[account][stakeIndex];\n uint256 rewardsSinceLastUpdate = ((userInfo.stakedAmount *\n (rewardPerToken() - userInfo.rewardPerTokenPaid)) / 1e18);\n return rewardsSinceLastUpdate + userInfo.rewards;\n }\n\n /**\n * @notice Get the earned rewards array for a user.\n * @param account Address of the user.\n * @return Return earned rewards array for a user.\n */\n function getEarnedUser(address account) public view returns (uint256[] memory) {\n uint256 numberOfPools = userStakingInfo[account].length;\n uint256[] memory earnedArray = new uint256[](numberOfPools);\n for (uint256 index; index < numberOfPools; index++) {\n earnedArray[index] = earned(account, index);\n }\n return earnedArray;\n }\n\n /**\n * @dev tierOf() function that always return that the given account is not\n * elligible to any LDY staking tier, except if the account is in the\n * highTierAccounts mapping.\n * @param account The account to check the tier of.\n */\n function tierOf(address account) public view returns (uint256 tier) {\n if (highTierAccounts[account]) return 3;\n return 0;\n }\n\n /**\n * @notice Get User Stake Data.\n * @param account The address of user.\n * @return StakingInfo array.\n */\n function getUserStakes(address account) external view returns (StakingInfo[] memory) {\n return userStakingInfo[account];\n }\n\n /**\n * @notice Send rewards to user.\n * @dev This is private function, called by getReward function.\n * @param account The address of user.\n * @param stakeIndex The index of user staking pool.\n */\n function _claimReward(address account, uint256 stakeIndex) private {\n uint256 reward = userStakingInfo[account][stakeIndex].rewards;\n\n if (reward > 0) {\n userStakingInfo[account][stakeIndex].rewards = 0;\n stakeRewardToken.safeTransfer(account, reward);\n emit RewardPaid(account, stakeIndex, reward);\n }\n }\n\n /**\n * @notice Calculate and update user rewards per stakeIndex.\n * @dev this is private function, called by stake, unstake, getRewards, and notifyRewardAmount functions.\n * @param account The address of user.\n * @param stakeIndex The index of user staking pool.\n */\n function _updateReward(address account, uint256 stakeIndex) private {\n rewardPerTokenStored = rewardPerToken();\n lastUpdateTime = lastTimeRewardApplicable();\n\n if (account != address(0)) {\n userStakingInfo[account][stakeIndex].rewards = earned(account, stakeIndex);\n userStakingInfo[account][stakeIndex].rewardPerTokenPaid = rewardPerTokenStored;\n }\n }\n\n /**\n * @notice Take minimum value between x and y.\n */\n function _min(uint256 x, uint256 y) private pure returns (uint256) {\n return x <= y ? x : y;\n }\n}\n" - }, - "contracts/src/libs/APRHistory.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n/**\n * @title APRHistory\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice This library offers utilities to efficiently maintain the history of an\n * on-chain APR (Annual Percentage Rate) state. Each entry in this history is called\n * a \"checkpoint\".\n *\n * @dev Intuition:\n * Each checkpoint in an APR history consists of two data:\n * - the creation timestamp\n * - the APR at that time\n *\n * Given that reading and writing to storage slots are among the most costly operations\n * in Solidity, this library provides a way to store those data in a way that minimizes\n * the number of used storage slots.\n *\n * Instead of storing each checkpoint in a separate storage slot, this library\n * facilitates the packing of up to 4 checkpoints in a single storage slot.\n *\n * @dev Definitions:\n * - Checkpoint: A record of an APR change\n * - Pack: A collection of 4 checkpoints stored in a single storage slot\n * - History: A dynamic array of packs\n * - Reference: A storage pointer to a checkpoint in the APR history\n * - CheckpointData: An in-memory representation of a checkpoint data\n *\n * @dev Value limitation:\n * This library can accommodate APRs only up to 65.536%. This is however sufficient for\n * APR in LToken contract, which is expected to remain below 10%.\n *\n * @dev For further details, see \"APRHistory\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nlibrary APRHistory {\n /**\n * @notice Represents data of a checkpoint extracted from the on-chain history.\n * For on-chain representation see \"Pack\" struct.\n * @param aprUD7x3 APR in UD7x3 format (e.g., 12345 = 12.345%).\n * @param timestamp Timestamp of the checkpoint's creation.\n */\n struct CheckpointData {\n uint16 aprUD7x3; // Allows up to 65.536%\n uint40 timestamp; // Supports dates up to 20/02/36812\n }\n\n /**\n * @notice Represents how APR checkpoints are stored on chain. Each pack can contain\n * the data 4 checkpoints. Packs are then stored in a dynamic array (the history).\n * @param aprsUD7x3 Array of checkpoints' APRs.\n * @param timestamps Array of checkpoints' timestamps.\n * @param cursor Index of the next checkpoint to be written.\n */\n struct Pack {\n uint16[4] aprsUD7x3;\n uint40[4] timestamps;\n uint32 cursor;\n }\n\n /**\n * @notice Represents a storage pointer to a specific checkpoint in the history.\n * @param packIndex Index of the pack the checkpoint belongs to.\n * @param cursorIndex Index of the checkpoint in this pack (between 0 and 3).\n */\n struct Reference {\n uint256 packIndex;\n uint32 cursorIndex;\n }\n\n /**\n * @notice Compares two checkpoints references.\n * @param ref1 The first reference to compare.\n * @param ref2 The second reference to compare.\n * @return Whether the two references points to the same checkpoint.\n */\n function eq(Reference memory ref1, Reference memory ref2) external pure returns (bool) {\n return ref1.packIndex == ref2.packIndex && ref1.cursorIndex == ref2.cursorIndex;\n }\n\n /**\n * @notice Returns the reference of the checkpoint that should come right after the\n * referenced checkpoint in the APR history.\n * @param ref The reference to be incremented.\n * @return The incremented reference.\n */\n function incrementReference(Reference memory ref) public pure returns (Reference memory) {\n // Ensure cursor index of the given ref is within valid range [0, 3]\n require(ref.cursorIndex <= 3, \"L1\");\n\n // If the given ref is the last slot in its pack, return ref of next pack's first slot\n if (ref.cursorIndex == 3) return Reference(ref.packIndex + 1, 0);\n //\n // Else, return ref of next slot in current pack\n else return Reference(ref.packIndex, ref.cursorIndex + 1);\n }\n\n /**\n * @notice Extracts checkpoint data from a given reference and in APR history.\n * @param self The APR history to extract the checkpoint from.\n * @param ref The reference of the checkpoint data to extract.\n * @return The extracted checkpoint's data.\n */\n function getDataFromReference(\n Pack[] storage self,\n Reference memory ref\n ) public view returns (CheckpointData memory) {\n // Ensure cursor index of the given ref is within valid range [0, 3]\n require(ref.cursorIndex <= 3, \"L2\");\n\n // Ensure pack index of the given ref exists in history\n require(ref.packIndex < self.length, \"L3\");\n\n // Retrieve pack data from history\n Pack memory pack = self[ref.packIndex];\n\n // Ensure cursor index of the given ref has been written\n require(ref.cursorIndex < pack.cursor, \"L4\");\n\n // Build and return the checkpoint data\n return\n CheckpointData({\n aprUD7x3: pack.aprsUD7x3[ref.cursorIndex],\n timestamp: pack.timestamps[ref.cursorIndex]\n });\n }\n\n /**\n * @notice Retrieves the reference to the most recently added checkpoint in the APR history.\n * @param self The history to extract the reference from.\n * @return The reference of the latest checkpoint.\n */\n function getLatestReference(Pack[] storage self) public view returns (Reference memory) {\n // Ensure the given history is not empty\n require(self.length != 0, \"L5\");\n\n // Retrieve latest pack's index and cursor\n uint256 packIndex = self.length - 1;\n uint32 packCursor = self[packIndex].cursor;\n\n // If this is the first pack ever, ensure it is not empty\n if (packIndex == 0) require(packCursor != 0, \"L6\");\n\n // If the pack is empty, return ref of previous pack's latest slot\n if (packCursor == 0) return Reference(packIndex - 1, 3);\n //\n // Else, return ref of previous slot in current pack\n else return Reference(packIndex, packCursor - 1);\n }\n\n /**\n * @notice Appends a new empty pack to the end of the given APR history array.\n * @param self The APR history to append an empty to.\n */\n function newBlankPack(Pack[] storage self) internal {\n // If history is not empty, ensure the latest pack is full\n require(self.length == 0 || getLatestReference(self).cursorIndex == 3, \"L7\");\n\n // Push a new blank pack to the history array\n self.push(\n Pack({\n aprsUD7x3: [uint16(0), uint16(0), uint16(0), uint16(0)],\n timestamps: [uint40(0), uint40(0), uint40(0), uint40(0)],\n cursor: 0\n })\n );\n }\n\n /**\n * @notice Write a new APR checkpoint at the end of the given history array.\n * @param self The array of packs to write the new checkpoint to.\n * @param aprUD7x3 The new APR in UD7x3 format.\n */\n function setAPR(Pack[] storage self, uint16 aprUD7x3) external {\n // Determine the reference where the new checkpoint should be written\n Reference memory newRef = self.length == 0\n ? Reference(0, 0)\n : incrementReference(getLatestReference(self));\n\n // If pack to be written doesn't exist yet, push a new blank pack in history\n if (newRef.packIndex >= self.length) newBlankPack(self);\n\n // Retrieve the pack where the new checkpoint will be stored\n Pack memory pack = self[newRef.packIndex];\n\n // Add new checkpoint's data to the pack\n pack.aprsUD7x3[newRef.cursorIndex] = aprUD7x3;\n pack.timestamps[newRef.cursorIndex] = uint40(block.timestamp);\n\n // Increment the pack's cursor\n pack.cursor++;\n\n // Write the updated pack in storage\n self[newRef.packIndex] = pack;\n }\n\n /**\n * @notice Retrieves the APR of the latest checkpoint written in the APR history.\n * @param self The history array to read APR from.\n * @return The latest checkpoint's APR.\n */\n function getAPR(Pack[] storage self) public view returns (uint16) {\n // Retrieve the latest checkpoint data\n Reference memory ref = getLatestReference(self);\n CheckpointData memory data = getDataFromReference(self, ref);\n\n // Return the latest checkpoint's APR\n return data.aprUD7x3;\n }\n}\n" - }, - "contracts/src/libs/SUD.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\n\n/**\n * @title SUD\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice SUD serves as an intermediary number format for calculations within this\n * codebase. It ensures consistency and reduces precision losses. This library\n * facilitates conversions between various number formats and the SUD format.\n *\n * @dev Intuition:\n * This codebase employs the UD (unsigned decimal fixed-point numbers) format to\n * represent both percentage rates and tokens amounts.\n *\n * Rates are expressed in UD7x3 format, whereas the format for tokens amounts depends on\n * the decimals() value of the involved tokens.\n *\n * Three challenges arise from this:\n * 1) To compute values together, it's essential that they are in the same format\n * 2) Calculations involving consecutive divisions on UD numbers lead to accumulated\n * precision loss (because division shrinks). A common approach is to scale up and\n * down values by a few decimals before and after performing calculations.\n * 3) Given that rates use the UD7x3 format, if we decided to scale them to and from\n * the number of decimals of the involved token, 1 to 3 of the rates' decimals would\n * be shrunk in case token's decimals number is in [0, 2].\n *\n * To address these challenges, this library provides the SUD format, which acts as a\n * consistent and scaled intermediate format to perform calculations.\n *\n * SUD is an acronym for either \"Scaled UD\" or \"Safe UD\".\n *\n * @dev Definitions:\n * - Integer: A number without fractional part, e.g., block.timestamp\n * - UD: A decimal unsigned fixed-point number. The \"UD\" notation is inspired from\n * libraries like [prb-math](https://github.com/PaulRBerg/prb-math/)\n * - Amount: A token amount. A UD with an unknown repartition of digits between integral\n * and fractional parts (as token amounts have variable decimal numbers)\n * - Rate: A percentage rate. An UD with 7 integral digits and 3 fractional ones (= UD7x3)\n * - SUD: An intermediate format to perform calculations involving Rates and Amounts. A UD\n * with 3 more decimals than the involved UD with the highest decimals number. As\n * rates are represented by UD7x3, a SUD number has at least 6 decimals (3+3) and\n * so ranges from UD71x6 to UD0x77 formats.\n *\n * @dev A conversion library:\n * This library provides utilities to perform the following conversions:\n * - Amount <--> SUD\n * - Rate (UD7x3) <--> SUD\n * - Integer <--> SUD\n *\n * @dev Why scaling by 3 decimals?\n * - It provides an adequate degree of precision for this codebase,\n * - It enables the conversion of a UD7x3 rate to SUD format by merely scaling it up by\n * the involved token's decimal number, so is gas efficient.\n *\n * @dev Why internal functions?\n * The functions of this library are not set to external because incorporating them\n * directly into contracts is more gas-efficient. Given their minimal size and frequent\n * usage in the InvestUpgradeable, LDYStaking, and LToken contracts, any bytecode savings\n * from making them external are negated by the additional bytecode required for external\n * calls to this library. This can be observed by comparing the output of `bun cc:size`\n * when those functions's visibility is set to external or internal.\n *\n * @dev Precision warning:\n * While this library mitigates precision loss during calculations on UD numbers, it's\n * important to note that tokens with lower decimal counts and supply inherently suffer\n * more from precision loss. Conversely, tokens with higher decimal counts and supply\n * will experience less precision loss.\n *\n * @dev For further details, see \"SUD\" section of whitepaper.\n * @custom:security-contact security@ledgity.com\n */\nlibrary SUD {\n /**\n * @notice Retrieves decimals number of the given ERC20 contract address.\n * @param tokenAddress The address to retrieve decimals number from.\n * @return decimals The decimals number of the given ERC20 contract address.\n */\n function decimalsOf(address tokenAddress) internal view returns (uint256 decimals) {\n return IERC20MetadataUpgradeable(tokenAddress).decimals();\n }\n\n /**\n * @notice Convert a given token amount into SUD format.\n * @param nAmount The token amount to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The amount in SUD format\n */\n function fromAmount(uint256 nAmount, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return nAmount * 10 ** (6 - decimals);\n\n // Else return a number with decimals+3 fractional digits\n return nAmount * 10 ** 3;\n }\n\n /**\n * @notice Convert a given SUD number into token amount format.\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nAmount The number in amount format\n */\n function toAmount(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nAmount) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** (6 - decimals);\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** 3;\n }\n\n /**\n * @notice Converts a given UD7x3 rate into SUD format.\n * @param nUD7x3 The UD7x3 rate to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The rate in SUD format.\n */\n function fromRate(uint256 nUD7x3, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return nUD7x3 * 10 ** 3;\n\n // Else, return a number with decimals+3 fractional digits\n return nUD7x3 * 10 ** decimals;\n }\n\n /**\n * @notice Converts a given SUD number into a UD7x3 rate.\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nUD7x3 The number in UD7x3 rate format.\n */\n function toRate(uint256 nSUD, uint256 decimals) internal pure returns (uint256 nUD7x3) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** 3;\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** decimals;\n }\n\n /**\n * @notice Converts a given integer into SUD format.\n * @param n The integer to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return nSUD The integer in SUD format.\n */\n function fromInt(uint256 n, uint256 decimals) internal pure returns (uint256 nSUD) {\n // If token decimals < 3, return a UD71x6 number\n if (decimals < 3) return n * 10 ** 6;\n\n // Else, return a number with decimals+3 fractional digits\n return n * 10 ** (decimals + 3);\n }\n\n /**\n * @notice Converts a given SUD number as an integer (all decimals shrinked).\n * @param nSUD The SUD number to convert.\n * @param decimals The decimals number of the involved ERC20 token.\n * @return n The SUD number as an integer.\n */\n function toInt(uint256 nSUD, uint256 decimals) internal pure returns (uint256 n) {\n // If token decimals < 3, convert from a UD71x6 number\n if (decimals < 3) return nSUD / 10 ** 6;\n\n // Else, convert from a number with decimals+3 fractional digits\n return nSUD / 10 ** (decimals + 3);\n }\n}\n" - }, - "contracts/src/LToken.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\n// Contracts\nimport {ERC20WrapperUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20WrapperUpgradeable.sol\";\nimport \"./abstracts/base/ERC20BaseUpgradeable.sol\";\nimport {InvestUpgradeable} from \"./abstracts/InvestUpgradeable.sol\";\nimport {LDYStaking} from \"./LDYStaking.sol\";\n\n// Libraries\nimport {SafeERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\";\nimport {SUD} from \"./libs/SUD.sol\";\n\n// Interfaces\nimport {IERC20Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\";\nimport {IERC20MetadataUpgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol\";\nimport {ITransfersListener} from \"./interfaces/ITransfersListener.sol\";\n\n/**\n * @title LToken\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n *\n * @notice Main contract of the Ledgity Yield protocol. It powers every L-Token (i.e.,\n * investment pools backed by RWA). An L-Token is an ERC20 wrapper around a stablecoin.\n * As soon as a wallet holds some L-Tokens, it starts receiving rewards in\n * the form of additional L-Tokens, which are auto-compounded over time.\n *\n * @dev Definitions:\n * - Deposit: Swap of underlying tokens for L-Tokens (1:1 ratio).\n * - Withdrawal: Swap of L-Tokens for underlying tokens (1:1 ratio, minus applicable fees).\n * - Instant: Processed immediately.\n * - Request: Queued for later processing.\n * - Big Request: A requested withdrawal exceeding half of the retention rate.\n * - (Withdrawal) queue: A list of all requested withdrawals sorted by priority.\n * - Request ID: The index of a withdrawal request in the queue array.\n * - Retention rate: Maximum fraction of underlying tokens TVL the contract can retain.\n * - Fees Rate: Percentage of fees applied to successful withdrawals.\n * - Usable underlyings: Amount of underlying tokens that have been deposited through\n * expected ways and are so considered safe to use by the contract.\n * - Transfers listeners: External contracts listening on L-Tokens transfers.\n * - Fund wallet: Wallet managed by the Ledgity's financial team.\n * - Withdrawer wallet: Managed by an off-chain server to automate withdrawal request\n * processing.\n *\n * Note that words between parenthesis are sometimes omitted for brevity.\n *\n * @dev Deployment notice:\n * This contract can safely receive funds immediately after initialization. (i.e., there\n * is no way for funds to be sent to non-owned addresses). It is, however, recommended to\n * replace ASAP owner and fund wallets with multi-sig wallets.\n *\n * @dev For further details, see \"LToken\" section of whitepaper.\n * @custom:oz-upgrades-unsafe-allow external-library-linking\n * @custom:security-contact security@ledgity.com\n */\ncontract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradeable {\n using SafeERC20Upgradeable for IERC20Upgradeable;\n\n /// @dev Represents type of actions triggering ActivityEvent events.\n enum Action {\n Deposit,\n Withdraw\n }\n\n /// @dev Represents different status of actions triggering ActivityEvent events.\n enum Status {\n Queued,\n Cancelled,\n Success,\n Moved\n }\n\n /**\n * @notice Represents a withdrawal request in the queue.\n * @dev A request fits in a single storage slot (32 bytes).\n * @param account The account that initiated the request.\n * @param amount The amount of underlying tokens requested.\n */\n struct WithdrawalRequest {\n address account; // 20 bytes\n uint96 amount; // 12 bytes\n }\n\n /// @notice Upper limit of retention rate.\n uint32 private constant MAX_RETENTION_RATE_UD7x3 = 10 * 10 ** 3; // 10%\n\n /// @notice Upper limit of fees rate.\n uint32 private constant MAX_FEES_RATE_UD7x3 = 20 * 10 ** 3; // 20%\n\n /// @notice Used in activity events to represent the absence of request ID.\n int256 private constant NO_ID = -1;\n\n /// @notice Holds a reference to the LDYStaking contract.\n LDYStaking public ldyStaking;\n\n /// @notice Holds address of withdrawer wallet (managed by withdrawal server).\n address payable public withdrawer;\n\n /// @notice Holds address of fund wallet (managed by Ledgity financial team).\n address public fund;\n\n /// @notice Holds the withdrawal fees rate in UD7x3 format (e.g., 350 = 0.350%).\n uint32 public feesRateUD7x3;\n\n /// @notice Holds the retention rate in UD7x3 format.\n uint32 public retentionRateUD7x3;\n\n /// @notice Holds the amount of withdrawal fees not yet claimed by contract's owner.\n uint256 public unclaimedFees;\n\n /// @notice Holds the amount of L-Tokens currently in the withdrawal queue.\n uint256 public totalQueued;\n\n /**\n * @notice Holds the amount of underlying tokens considered as usable by the contract.\n * @dev Are usable, only underlying tokens deposit through deposit() or fund() functions.\n */\n uint256 public usableUnderlyings;\n\n /// @notice Holds an ordered list of active withdrawal requests.\n WithdrawalRequest[] public withdrawalQueue;\n\n /// @notice Holds the index of the next withdrawal request to process in the queue.\n uint256 public withdrawalQueueCursor;\n\n /**\n * @notice Holds a list of all currently frozen withdrawal requests.\n * @dev If a request emitter as been blacklisted, its request is moved here to prevent\n * it from blocking the queue.\n */\n WithdrawalRequest[] public frozenRequests;\n\n /**\n * @notice Holds a list of contracts' references that are listening to L-Tokens transfers.\n * @dev onLTokenTransfer() functions of those contracts will be called on each transfer.\n */\n ITransfersListener[] public transfersListeners;\n\n /**\n * @notice Emitted to inform listeners about a change in the contract's TVL.\n * @dev TVL = realTotalSupply()\n * @param newTVL The new TVL of the contract.\n */\n event TVLChangeEvent(uint256 newTVL);\n\n /**\n * @notice Emitted to inform listerners about an activity related to deposits and withdrawals.\n * @param id ID of the involved withdrawal request or NO_ID (-1) if not applicable.\n * @param account The account involved in the activity.\n * @param action The type of activity.\n * @param amount The amount of underlying tokens involved in the activity.\n * @param newStatus The new status of the activity.\n * @param newId The new ID of the request if it has been moved in the queue.\n */\n event ActivityEvent(\n int256 indexed id,\n address indexed account,\n Action indexed action,\n uint256 amount,\n uint256 amountAfterFees,\n Status newStatus,\n int256 newId\n );\n\n /**\n * @notice Emitted to inform listeners that some rewards have been minted.\n * @param account The account that received the rewards.\n * @param balanceBefore The balance of the account before the minting.\n * @param rewards The amount of minted rewards.\n */\n event MintedRewardsEvent(address indexed account, uint256 balanceBefore, uint256 rewards);\n\n /// @notice Reverts if the function caller is not the withdrawer wallet.\n modifier onlyWithdrawer() {\n require(_msgSender() == withdrawer, \"L39\");\n _;\n }\n\n /// @notice Reverts if the function caller is not the fund wallet.\n modifier onlyFund() {\n require(_msgSender() == fund, \"L40\");\n _;\n }\n\n /**\n * @notice Initializer function of the contract. It replaces the constructor()\n * function in the context of upgradeable contracts.\n * @dev See: https://docs.openzeppelin.com/contracts/4.x/upgradeable\n * @param globalOwner_ The address of the GlobalOwner contract.\n * @param globalPause_ The address of the GlobalPause contract.\n * @param globalBlacklist_ The address of the GlobalBlacklist contract.\n * @param underlyingToken The address of the underlying stablecoin ERC20 token.\n */\n function initialize(\n address globalOwner_,\n address globalPause_,\n address globalBlacklist_,\n address ldyStaking_,\n address underlyingToken\n ) public initializer {\n // Initialize ERC20 base.\n string memory underlyingSymbol = IERC20MetadataUpgradeable(underlyingToken).symbol();\n __ERC20Base_init(\n globalOwner_,\n globalPause_,\n globalBlacklist_,\n string(abi.encodePacked(\"Ledgity \", underlyingSymbol)),\n string(abi.encodePacked(\"L\", underlyingSymbol))\n );\n\n // IMPORTANT: Below calls must not be restricted to owner at any point.\n // This is because the GlobalOwner contract may not be a fresh one, and so\n // the contract deployer may not be the owner anymore after ERC20Base init.\n\n // Initialize other parents contracts.\n __ERC20Wrapper_init(IERC20Upgradeable(underlyingToken));\n __Invest_init_unchained(address(this));\n\n // Set LDYStaking contract\n ldyStaking = LDYStaking(ldyStaking_);\n\n // Set initial withdrawal fees rate to 0.3%\n feesRateUD7x3 = 300;\n\n // Set initial retention rate to 10%\n retentionRateUD7x3 = 10_000;\n\n // Default withdrawer and fund wallet to contract owner address. This prevents\n // any loss of funds if a deposit/withdrawal is made before those are manually set.\n withdrawer = payable(owner());\n fund = payable(owner());\n }\n\n /**\n * @notice Required override of decimals() which is implemented by both\n * ERC20Upgradeable and ERC20WrapperUpgradeable parent contracts.\n * @dev The ERC20WrapperUpgradeable version is preferred because it mirrors the\n * decimals amount of the underlying stablecoin token.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function decimals()\n public\n view\n override(ERC20Upgradeable, ERC20WrapperUpgradeable)\n returns (uint8)\n {\n return ERC20WrapperUpgradeable.decimals();\n }\n\n /**\n * @notice Required override of paused() which is implemented by both\n * GlobalPausableUpgradeable and ERC20BaseUpgradeable parent contracts.\n * @dev Both version are the same as ERC20BaseUpgradeable.paused() mirrors\n * GlobalPausableUpgradeable.paused(), so a random one is chosen.\n * @inheritdoc GlobalPausableUpgradeable\n */\n function paused()\n public\n view\n virtual\n override(GlobalPausableUpgradeable, ERC20BaseUpgradeable)\n returns (bool)\n {\n return GlobalPausableUpgradeable.paused();\n }\n\n /**\n * @notice Updates the current withdrawal fee rate.\n * @param feesRateUD7x3_ The new withdrawal fee rate in UD7x3 format.\n */\n function setFeesRate(uint32 feesRateUD7x3_) public onlyOwner {\n require(feesRateUD7x3_ <= MAX_FEES_RATE_UD7x3, \"L88\");\n feesRateUD7x3 = feesRateUD7x3_;\n }\n\n /**\n * @notice Updates the current underlying token retention rate.\n * @dev The retention rate is capped at 10%, which ensures that no more than 10% of\n * deposited assets will ever be exposed in this contract (reduces attack surface).\n * @param retentionRateUD7x3_ The new retention rate in UD7x3 format.\n */\n function setRetentionRate(uint32 retentionRateUD7x3_) public onlyOwner {\n require(retentionRateUD7x3_ <= MAX_RETENTION_RATE_UD7x3, \"L41\");\n retentionRateUD7x3 = retentionRateUD7x3_;\n }\n\n /**\n * @notice Updates the address of LDYStaking contract.\n * @param ldyStakingAddress The address of the new LDYStaking contract.\n */\n function setLDYStaking(address ldyStakingAddress) public onlyOwner {\n ldyStaking = LDYStaking(ldyStakingAddress);\n }\n\n /**\n * @notice Updates the address of the withdrawer wallet.\n * @param withdrawer_ The address of the new withdrawer wallet.\n */\n function setWithdrawer(address payable withdrawer_) public onlyOwner {\n // Ensure address is not the zero address (pre-processing fees would be lost else)\n require(withdrawer_ != address(0), \"L63\");\n\n // Set new withdrawer wallet's address\n withdrawer = withdrawer_;\n }\n\n /**\n * @notice Updates the address of the fund wallet.\n * @param fund_ The address of the new fund wallet.\n */\n function setFund(address payable fund_) public onlyOwner {\n // Ensure address is not the zero address (deposited tokens would be lost else)\n require(fund_ != address(0), \"L64\");\n\n // Set new fund wallet's address\n fund = fund_;\n }\n\n /**\n * @notice Adds a new contract to the L-Token transfers list.\n * @dev Each time a transfer occurs, the onLTokenTransfer() function of the\n * specified contract will be called.\n * @dev IMPORTANT SECURITY NOTE: This method is not intended to be used with\n * contracts that are not owned by the Ledgity team.\n * @param listenerContract The address of the new transfers listener contract.\n */\n function listenToTransfers(address listenerContract) public onlyOwner {\n transfersListeners.push(ITransfersListener(listenerContract));\n }\n\n /**\n * @notice Removes a contract from the L-Token transfers list.\n * @dev The onLTokenTransfer() function of the specified contract will not be called\n * anymore each time a L-Token transfer occurs.\n * @param listenerContract The address of the listener contract.\n */\n function unlistenToTransfers(address listenerContract) public onlyOwner {\n // Find index of listener contract in transferListeners array\n int256 index = -1;\n uint256 transfersListenersLength = transfersListeners.length;\n for (uint256 i = 0; i < transfersListenersLength; i++) {\n if (address(transfersListeners[i]) == listenerContract) {\n index = int256(i);\n break;\n }\n }\n\n // Revert if given contract wasn't listening to transfers\n require(index > -1, \"L42\");\n\n // Else, remove transfers listener contract from listeners array\n transfersListeners[uint256(index)] = transfersListeners[transfersListenersLength - 1];\n transfersListeners.pop();\n }\n\n /**\n * @notice Retrieves the amount of given account's not yet minted rewards.\n * @dev This is a public implementation of InvestUpgradeable_rewardsOf(). In the\n * context of LToken, this function returns the amount of rewards that have not been\n * distributed/minted yet to the specified account.\n * @dev This is particularly useful for off-chain services to display charts and\n * statistics, as seen in the Ledgity Yield's frontend.\n * @param account The account to check the unminted rewards of.\n * @return The amount of account's unminted rewards.\n */\n function unmintedRewardsOf(address account) public view returns (uint256) {\n return _rewardsOf(account, true);\n }\n\n /**\n * @notice Retrieves the \"real\" balance of an account, i.e., excluding its not yet\n * minted/distributed rewards.\n * @param account The account to check the real balance of.\n * @return The real balance of the account.\n */\n function realBalanceOf(address account) public view returns (uint256) {\n return super.balanceOf(account);\n }\n\n /**\n * @notice Retrieves the total balance of L-Tokens that belong to the account.\n * @dev This is an oOverride of ERC20Upgradeable.balanceOf() that rewards that have\n * not been yet minted to the specified account.\n * @param account The account to check the total balance of.\n * @return The total balance of the account.\n */\n function balanceOf(address account) public view override returns (uint256) {\n return realBalanceOf(account) + unmintedRewardsOf(account);\n }\n\n /**\n * @notice Returns the \"real\" amount of existing L-Tokens, i.e., excluding not yet\n * minted withdrawal fees and L-Tokens currently in the withdrawal queue.\n * @return The real total supply of L-Tokens.\n */\n function realTotalSupply() public view returns (uint256) {\n return super.totalSupply();\n }\n\n /**\n * @notice Retrives the total supply of L-Tokens, including not yet minted withdrawal\n * fees and L-Tokens currently in the withdrawal queue.\n * @return The total supply of L-Tokens.\n */\n function totalSupply() public view override returns (uint256) {\n return realTotalSupply() + totalQueued + unclaimedFees;\n }\n\n /**\n * @notice Recovers a specified amount of a given token address.\n * @dev This override of RecoverableUpgradeable.recoverERC20() prevents the recovered\n * token from being the underlying token.\n * @inheritdoc RecoverableUpgradeable\n */\n function recoverERC20(address tokenAddress, uint256 amount) public override onlyOwner {\n // Ensure the token is not the underlying token\n require(tokenAddress != address(underlying()), \"L43\");\n\n // Proceed to recovery\n super.recoverERC20(tokenAddress, amount);\n }\n\n /**\n * @notice Recovers underlying tokens accidentally sent to the contract.\n * @dev To prevent owner from being able to drain the contract, this function only\n * allows recovering \"unusable\" underlying tokens, i.e., tokens that have not been\n * sent through fund() or deposit() functions.\n */\n function recoverUnderlying() external onlyOwner {\n // Compute the recoverable amount by taking the difference between the contract's\n // balance and the amount of usable underlying tokens\n uint256 recoverableAmount = underlying().balanceOf(address(this)) - usableUnderlyings;\n\n // Revert if there is nothing to recover\n require(recoverableAmount > 0, \"L44\");\n\n // Else, proceed to underlying tokens recovery\n super.recoverERC20(address(underlying()), recoverableAmount);\n }\n\n /**\n * @notice Retrieves the amount of underlying tokens invested by the given account.\n * @dev Implementing this function is required by the InvestUpgradeable contract. In\n * LToken contract, the investment of an account is equal to its real balance.\n * @inheritdoc InvestUpgradeable\n */\n function _investmentOf(address account) internal view override returns (uint256) {\n return realBalanceOf(account);\n }\n\n /**\n * @notice Distributes a specified amount of rewards (in L-Tokens) to a given account.\n * @dev Implementing this function is required by the InvestUpgradeable contract so\n * it can distribute rewards to accounts before each period reset.\n * @dev InvestUpgradeable contract already ensure that amount > 0.\n * @inheritdoc InvestUpgradeable\n */\n function _distributeRewards(address account, uint256 amount) internal override returns (bool) {\n // Inform listeners of the rewards minting\n emit MintedRewardsEvent(account, realBalanceOf(account), amount);\n\n // Mint L-Tokens rewards to account\n _mint(account, amount);\n\n // Return true indicating to InvestUpgradeable that the rewards have been distributed\n return true;\n }\n\n /**\n * @notice Override of ERC20._beforeTokenTransfer() to integrate with InvestUpgradeable.\n * @dev This overriden version ensure that _beforeInvestmentChange() hook is properly\n * called each time an account's balance is going to change.\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\n * already included in ERC20BaseUpgradeable._beforeTokenTransfer().\n * @inheritdoc ERC20BaseUpgradeable\n */\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal override(ERC20Upgradeable, ERC20BaseUpgradeable) {\n ERC20BaseUpgradeable._beforeTokenTransfer(from, to, amount);\n\n // Invoke _beforeInvestmentChange() hook for non-zero accounts\n if (from != address(0)) _beforeInvestmentChange(from, true);\n if (to != address(0)) _beforeInvestmentChange(to, true);\n }\n\n /**\n * @notice Override of ERC20._afterTokenTransfer() to notify all transfers listeners.\n * @dev This overriden version will trigger onLTokenTransfer() functions of all\n * transfers listeners.\n * @dev Note: whenNotPaused and notBlacklisted modifiers are not set as they are\n * already checked in _beforeTokenTransfer().\n * @inheritdoc ERC20Upgradeable\n */\n function _afterTokenTransfer(address from, address to, uint256 amount) internal override {\n super._afterTokenTransfer(from, to, amount);\n\n // If some L-Token have been burned/minted, inform listeners of a TVL change\n if (from == address(0) || to == address(0)) emit TVLChangeEvent(totalSupply());\n\n // Trigger onLTokenTransfer() functions of all the transfers listeners\n for (uint256 i = 0; i < transfersListeners.length; i++) {\n transfersListeners[i].onLTokenTransfer(from, to, amount);\n }\n }\n\n /**\n * @notice Computes the maximum amount of underlying tokens that should be retained\n * by the contract (based on retention rate).\n * @return amount The expected amount of retained underlying tokens.\n */\n function getExpectedRetained() public view returns (uint256 amount) {\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Convert totalSupply and retentionRate to SUD\n uint256 totalSupplySUD = SUD.fromAmount(totalSupply(), d);\n uint256 retentionRateSUD = SUD.fromRate(retentionRateUD7x3, d);\n\n // Compute and return expected retained amount\n uint256 expectedRetainedSUD = (totalSupplySUD * retentionRateSUD) / SUD.fromInt(100, d);\n return SUD.toAmount(expectedRetainedSUD, d);\n }\n\n /// @notice Transfers underlying tokens exceeding the retention rate to the fund wallet.\n function _transferExceedingToFund() internal {\n // Retrieve the expected amount retained\n uint256 expectedRetained = getExpectedRetained();\n\n // If usable underlyings are less than or equal to expected retained, return\n if (usableUnderlyings <= expectedRetained) return;\n\n // Else, exceeding amount is equal to difference between those values\n uint256 exceedingAmount = usableUnderlyings - expectedRetained;\n\n // Decrease usable underlyings amount accordingly\n usableUnderlyings -= exceedingAmount;\n\n // Transfer the exceeding amount to the fund wallet\n underlying().safeTransfer(fund, exceedingAmount);\n }\n\n /**\n * @notice Override of ERC20WrapperUpgradeable.withdrawTo() that reverts.\n * Use instantWithdrawal() or requestWithdrawal() functions instead.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function withdrawTo(address account, uint256 amount) public pure override returns (bool) {\n account; // Silence unused variable compiler warning\n amount;\n revert(\"L45\");\n }\n\n /**\n * @notice Override of ERC20WrapperUpgradeable.depositFor() that reverts.\n * Use deposit() function instead.\n * @inheritdoc ERC20WrapperUpgradeable\n */\n function depositFor(address account, uint256 amount) public pure override returns (bool) {\n account; // Silence unused variable compiler warning\n amount;\n revert(\"L46\");\n }\n\n /**\n * @notice Allows exchanging some underlying tokens for the same amount of L-Tokens.\n * @param amount The amount of underlying tokens to deposit.\n */\n function deposit(uint256 amount) public whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough underlying tokens to deposit\n require(underlying().balanceOf(_msgSender()) >= amount, \"L47\");\n\n // Update usable underlyings balance accordingly\n usableUnderlyings += amount;\n\n // Inform listeners of the deposit activity event\n emit ActivityEvent(\n NO_ID,\n _msgSender(),\n Action.Deposit,\n amount,\n amount,\n Status.Success,\n NO_ID\n );\n\n // Receive underlying tokens and mint L-Tokens to the account in a 1:1 ratio\n super.depositFor(_msgSender(), amount);\n\n // Transfer exceeding underlying tokens to the fund wallet\n _transferExceedingToFund();\n }\n\n /**\n * @notice Computes fees and net withdrawn amount for a given account withdrawing a\n * given amount.\n * @param account The account initiating the withdrawal.\n * @param amount The amount of the withdrawal.\n */\n function getWithdrawnAmountAndFees(\n address account,\n uint256 amount\n ) public view returns (uint256 withdrawnAmount, uint256 fees) {\n // If the account is eligible to staking tier 2, no fees are applied\n if (ldyStaking.tierOf(account) >= 2) return (amount, 0);\n\n // Cache invested token's decimals number\n uint256 d = SUD.decimalsOf(address(invested()));\n\n // Convert amount and fees rate to SUD\n uint256 amountSUD = SUD.fromAmount(amount, d);\n uint256 feesRateSUD = SUD.fromRate(feesRateUD7x3, d);\n\n // Compute fees and withdrawn amount (initial amount minus fees)\n uint256 feesSUD = (amountSUD * feesRateSUD) / SUD.fromInt(100, d);\n fees = SUD.toAmount(feesSUD, d);\n withdrawnAmount = amount - fees;\n }\n\n /**\n * @notice Allows instaneously exchanging a given amount of L-Tokens for the same\n * amount of underlying tokens. It will fail if the contract currently doesn't hold\n * enough underlying tokens to cover the withdrawal.\n * @dev In order to save some gas and time to users, frontends should propose this\n * function to users only when it has been verified that it will not revert. They\n * should propose the requestWithdrawal() function otherwise.\n * @param amount The amount L-Tokens to withdraw.\n */\n function instantWithdrawal(uint256 amount) external whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough L-Tokens to withdraw\n require(amount <= balanceOf(_msgSender()), \"L48\");\n\n // Can the contract cover this withdrawal plus all already queued requests?\n bool cond1 = totalQueued + amount <= usableUnderlyings;\n\n // Is caller eligible to staking tier 2 and the contract can cover this withdrawal?\n bool cond2 = ldyStaking.tierOf(_msgSender()) >= 2 && amount <= usableUnderlyings;\n\n // Revert if conditions are not met for the withdrawal to be processed instantaneously\n if (!(cond1 || cond2)) revert(\"L49\");\n\n // Else, retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(_msgSender(), amount);\n\n // Increase unclaimed fees amount accordingly\n unclaimedFees += fees;\n\n // Decrease usable underlyings balance accordingly\n usableUnderlyings -= withdrawnAmount;\n\n // Inform listeners of this instant withdrawal activity event\n emit ActivityEvent(\n NO_ID,\n _msgSender(),\n Action.Withdraw,\n amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Burn withdrawal fees from the account\n _burn(_msgSender(), fees);\n\n // Burn account's withdrawn L-Tokens and transfer to it underlying tokens in a 1:1 ratio\n super.withdrawTo(_msgSender(), withdrawnAmount);\n }\n\n /**\n * @notice Allows requesting the exchange of a given amount of L-Tokens for the same\n * amount of underlying tokens. The request will be automatically processed later.\n * @dev The sender must attach 0.003 ETH to pre-pay the future processing gas fees\n * paid by the withdrawer wallet.\n * @param amount The amount L-Tokens to withdraw.\n */\n function requestWithdrawal(\n uint256 amount\n ) public payable whenNotPaused notBlacklisted(_msgSender()) {\n // Ensure the account has enough L-Tokens to withdraw\n require(amount <= balanceOf(_msgSender()), \"L53\");\n\n // Ensure the requested amount doesn't overflow uint96\n require(amount <= type(uint96).max, \"L54\");\n\n // Ensure the sender attached the pre-paid processing gas fees\n require(msg.value == 0.003 * 10 ** 18, \"L55\");\n\n // Create withdrawal request data\n WithdrawalRequest memory request = WithdrawalRequest({\n account: _msgSender(),\n amount: uint96(amount)\n });\n\n // Will hold the request ID\n uint256 requestId;\n\n // Append request to the withdrawal queue:\n // - At the beginning, if account is eligible to staking tier 2 and cursor is not 0\n if (ldyStaking.tierOf(_msgSender()) >= 2 && withdrawalQueueCursor > 0) {\n withdrawalQueueCursor--;\n requestId = withdrawalQueueCursor;\n withdrawalQueue[requestId] = request;\n }\n // - At the end else\n else {\n withdrawalQueue.push(request);\n requestId = withdrawalQueue.length - 1;\n }\n\n // Increase total amount queued accordingly\n totalQueued += amount;\n\n // Inform listeners of this new queued withdrawal activity event\n emit ActivityEvent(\n int256(requestId),\n _msgSender(),\n Action.Withdraw,\n amount,\n amount,\n Status.Queued,\n NO_ID\n );\n\n // Burn withdrawal L-Tokens amount from account's balance\n _burn(_msgSender(), amount);\n\n // Forward pre-paid processing gas fees to the withdrawer wallet\n (bool sent, ) = withdrawer.call{value: msg.value}(\"\");\n require(sent, \"L56\");\n }\n\n /**\n * @notice Processes queued withdrawal requests until there is else no more requests,\n * else not enough underlying tokens to continue.\n * @dev For further details, see \"LToken > Withdrawals\" section of whitepaper.\n */\n function processQueuedRequests() external onlyWithdrawer whenNotPaused {\n // Accumulators variables, will be written on-chain after the loop\n uint256 cumulatedFees = 0;\n uint256 cumulatedWithdrawnAmount = 0;\n uint256 nextRequestId = withdrawalQueueCursor;\n\n // Cache queue length to avoid multiple SLOADs and avoid infinite loop as big\n // requests are increasing the queue length when moved at the end of the queue.\n uint256 queueLength = withdrawalQueue.length;\n\n // Iterate over requests to be processed\n while (nextRequestId < queueLength) {\n // Stop processing requests if there is not enough gas left to continue the\n // loop and properly end the function call. This prevents an attacker from\n // blocking the withdrawal processing by creating a ton of tiny requests so\n // this function call cannot fit anymore in block gas limit.\n if (gasleft() < 45000) break;\n\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[nextRequestId];\n\n // Skip empty request (processed big requests or cancelled requests)\n if (request.account == address(0)) {}\n //\n // If account has been blacklisted since request emission\n else if (isBlacklisted(request.account)) {\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Append request in the frozen requests list\n frozenRequests.push(request);\n }\n //\n // Or if request is a big request, move it at the end of the queue for now.\n // This request will be processed manually later using processBigQueuedRequest()\n else if (request.amount > getExpectedRetained() / 2) {\n // Inform listeners of this queued request being moved at the end of the queue\n emit ActivityEvent(\n int256(nextRequestId),\n _msgSender(),\n Action.Withdraw,\n request.amount,\n request.amount,\n Status.Moved,\n int256(withdrawalQueue.length)\n );\n\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Append request at the end of the queue\n withdrawalQueue.push(request);\n }\n //\n // Else, continue request processing\n else {\n // Retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\n request.account,\n request.amount\n );\n\n // Break if the contract doesn't hold enough funds to cover the request\n if (withdrawnAmount > usableUnderlyings - cumulatedWithdrawnAmount) break;\n\n // Accumulate fees and withdrawn amount\n cumulatedFees += fees;\n cumulatedWithdrawnAmount += withdrawnAmount;\n\n // Inform listeners of this queued withdrawal processing activity event\n emit ActivityEvent(\n int256(nextRequestId),\n request.account,\n Action.Withdraw,\n request.amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Remove request from queue\n delete withdrawalQueue[nextRequestId];\n\n // Transfer underlying tokens to account. Burning L-Tokens is not required\n // as equestWithdrawal() already did it.\n // Security note: Re-entrancy warning are disabled as the request has\n // just been deleted from the queue, it will so be skipped if trying to\n // process it again.\n // slither-disable-next-line reentrancy-no-eth\n underlying().safeTransfer(request.account, withdrawnAmount);\n }\n\n // Increment next request ID\n nextRequestId++;\n }\n\n // Increase unclaimed fees by the amount of cumulated fees\n unclaimedFees += cumulatedFees;\n\n // Decrease usable underlyings by the cumulated amount of withdrawn underlyings\n usableUnderlyings -= cumulatedWithdrawnAmount;\n\n // Decrease total amount queued by the cumulated amount requested\n totalQueued -= cumulatedWithdrawnAmount + cumulatedFees;\n\n // Update new queue cursor\n withdrawalQueueCursor = nextRequestId;\n\n // Retention rate cannot exceeds as the withdrawal decreases both usable\n // underlyings and expected retained amounts by the same number and as the\n // expected retained amount is a subset of usable underlyings amount.\n }\n\n /**\n * @notice Processes a given queued big withdrawal request (one that exceeds half of\n * the retention rate).\n * @dev In contrast to non-big requests processing, this function will uses to fund\n * wallet's balance to fill the request. This allows processing requests that are\n * greater than retention rate without having to exceed this rate on the contract.\n * @param requestId The ID of the big request to process.\n */\n function processBigQueuedRequest(uint256 requestId) external onlyFund whenNotPaused {\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[requestId];\n\n // Ensure the request is active\n require(request.account != address(0), \"L66\");\n\n // Ensure the request emitter has not been blacklisted since request emission\n require(!isBlacklisted(request.account), \"L50\");\n\n // Ensure this is indeed a big request\n require(request.amount > getExpectedRetained() / 2, \"L51\");\n\n // Retrieve withdrawal fees and net withdrawn amount\n (uint256 withdrawnAmount, uint256 fees) = getWithdrawnAmountAndFees(\n request.account,\n request.amount\n );\n\n // Ensure withdrawn amount can be covered by contract + fund wallet balances\n uint256 fundBalance = underlying().balanceOf(fund);\n require(withdrawnAmount <= usableUnderlyings + fundBalance, \"L52\");\n\n // Increase amount of unclaimed fees accordingly\n unclaimedFees += fees;\n\n // Decrease total queued amount by request amount\n totalQueued -= request.amount;\n\n // Increment queue cursor if request was the next request to be processed\n if (requestId == withdrawalQueueCursor) withdrawalQueueCursor++;\n\n // Inform listeners of this queued withdrawal processing activity event\n emit ActivityEvent(\n int256(requestId),\n request.account,\n Action.Withdraw,\n request.amount,\n withdrawnAmount,\n Status.Success,\n NO_ID\n );\n\n // Remove request from queue\n delete withdrawalQueue[requestId];\n\n // If fund wallet's balance can cover request, rely on it only\n if (withdrawnAmount <= fundBalance) {\n underlying().safeTransferFrom(_msgSender(), request.account, withdrawnAmount);\n }\n // Else, cover request from both fund wallet and contract balances\n else {\n // Compute amount missing from fund wallet to cover request\n uint256 missingAmount = withdrawnAmount - fundBalance;\n\n // Decrease usable amount of underlying tokens accordingly\n usableUnderlyings -= missingAmount;\n\n // Transfer entire fund balance to request's emitter\n underlying().safeTransferFrom(_msgSender(), request.account, fundBalance);\n\n // Transfer missing amount from contract balance to request emitter\n underlying().safeTransfer(request.account, missingAmount);\n }\n\n // Transfer exceeding underlying tokens to the fund wallet\n _transferExceedingToFund();\n }\n\n /**\n * @notice Cancels a given withdrawal request. The request emitter receive back its\n * L-Tokens and no fees will be charged.\n * @param requestId The ID of the withdrawal request to cancel.\n */\n function cancelWithdrawalRequest(\n uint256 requestId\n ) public whenNotPaused notBlacklisted(_msgSender()) {\n // Retrieve request data\n WithdrawalRequest memory request = withdrawalQueue[requestId];\n\n // Ensure request belongs to caller\n require(_msgSender() == request.account, \"L57\");\n\n // Decrease total amount queued accordingly\n totalQueued -= request.amount;\n\n // Delete the withdrawal request from queue\n delete withdrawalQueue[requestId];\n\n // Inform listeners of this cancelled withdrawal request activity event\n emit ActivityEvent(\n int256(requestId),\n request.account,\n Action.Withdraw,\n request.amount,\n request.amount,\n Status.Cancelled,\n NO_ID\n );\n\n // Mint back L-Tokens to account\n _mint(request.account, uint256(request.amount));\n }\n\n /**\n * @notice Used by the fund wallet to repatriate underlying tokens on the contract\n * whenever those are required to fulfill some withdrawal requests.\n * @dev The function will revert if repatriated amount makes the contract exceeding\n * the retention rate.\n * @param amount The amount of underlying tokens to repatriate.\n */\n function repatriate(uint256 amount) external onlyFund whenNotPaused {\n // Ensure the fund wallet has enough funds to repatriate\n require(amount <= underlying().balanceOf(fund), \"L58\");\n\n // Calculate new contract usable balance\n uint256 newBalance = usableUnderlyings + amount;\n\n // Ensure the new balance doesn't exceed the retention rate\n require(newBalance <= getExpectedRetained(), \"L59\");\n\n // Increase usable underlyings amount by repatriated amount\n usableUnderlyings += amount;\n\n // Transfer amount from fund wallet to contract\n underlying().safeTransferFrom(_msgSender(), address(this), amount);\n }\n\n /// @notice Used by owner to claim fees generated from successful withdrawals.\n function claimFees() external onlyOwner {\n // Ensure there are some fees to claim\n require(unclaimedFees > 0, \"L60\");\n\n // Ensure the contract holds enough underlying tokens to cover fees\n require(usableUnderlyings >= unclaimedFees, \"L61\");\n\n // Decrease usable underlyings amount accordingly\n usableUnderlyings -= unclaimedFees;\n\n // Store fees amount in memory and reset unclaimed fees amount\n uint256 fees = unclaimedFees;\n unclaimedFees = 0;\n\n // Transfer unclaimed fees to owner\n underlying().safeTransfer(owner(), fees);\n }\n}\n" - }, - "contracts/src/PreMining.sol": { - "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.18;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {LToken} from \"./LToken.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {Ownable2Step} from \"@openzeppelin/contracts/access/Ownable2Step.sol\";\nimport {Pausable} from \"@openzeppelin/contracts/security/Pausable.sol\";\n\n/**\n * @title PreMining\n * @author Lila Rest (https://lila.rest)\n * @custom:security-contact security@ledgity.com\n\n * @notice PreMining pool contract, allowing accounts to lock underlying tokens in a \n * pre-defined L-Token contract, over a given duration (in months), in exchange of \n * vested LDY rewards.\n * \n * @dev Intuition\n * \n * Lifecycle of a lockdrop pool is composed by 3 main phases:\n * 1) Deposit: During this phase, users can lock their underlying tokens.\n * 2) Claim: During this phase, users can claim their LDY rewards.\n * 3) Recovery: During this phase, owner can recover remaining ERC20 on the contract.\n * \n * Transitioning between two phases is manually triggered by contract's owner.\n * To ensure fair usage of this power and prevent potential misuse:\n * - the Recovery phase cannot start before 3 months after the end of rewards vesting,\n * - the Recovery phase cannot start before 3 months after the maximum lock end.\n * \n * Finally, note that this contract proxies main L-Token contract's functions:\n * - lock() --> deposit()\n * - instantUnlock() --> instantWithdrawal()\n * - requestUnlock() --> requestWithdrawal()\n * This design enables users to interact with the PreMining contract in a similar fashion\n * to the L-Token contract.\n * \n * @dev Definitions:\n * - Locker: An account that has locked underlying tokens in the pool.\n * \n * @custom:security-contact security@ledgity.com\n */\ncontract PreMining is Ownable2Step, Pausable {\n using SafeERC20 for IERC20;\n\n /**\n * @notice Represents the lock information of an account.\n * @param amount Amount of underlying tokens locked.\n * @param duration Duration of the lock (in months).\n * @param hasUnlocked Whether the account has unlocked its locked tokens.\n * @param claimedRewards Amount of LDY rewards already claimed.\n * @param lockEndTimestamp Timestamp at which the account's lock ends.\n */\n struct AccountLock {\n uint240 amount;\n uint8 duration;\n bool hasUnlocked;\n uint216 claimedRewards;\n uint40 lockEndTimestamp;\n }\n\n /// @notice Holds the amount of LDY to be distributed to lockers.\n uint256 public immutable maxDistributedLDY;\n\n /// @notice Holds the maximum total amount of L-Tokens that can be locked.\n uint256 public immutable lockedHardCap;\n\n /// @notice Holds the minimum possible lock duration (in months).\n uint8 public immutable minLockDuration;\n\n /// @notice Holds the maximum possible lock duration (in months).\n uint8 public immutable maxLockDuration;\n\n /// @notice Holds the duration of LDY rewards vesting (in months).\n uint8 public immutable vestingDuration;\n\n /// @notice Holds a reference to the locked L-Token contract.\n LToken public immutable lToken;\n\n /// @notice Holds a reference to the L-Token underlying stablecoin.\n IERC20 public immutable underlyingToken;\n\n /// @notice Holds the max pool weight.\n uint256 public immutable maxWeight;\n\n /// @notice Holds a reference to the LDY token contract.\n IERC20 public ldyToken;\n\n /// @notice Holds lockers' participations informations.\n mapping(address => AccountLock) public accountsLocks;\n\n /// @notice Holds the total amount of locked underlying tokens.\n uint256 public totalLocked;\n\n /// @notice Holds whether the Deposit phase has ended.\n bool public hasDepositPhaseEnded;\n\n /// @notice Holds whether the Claim phase has started.\n bool public hasClaimPhaseStarted;\n\n /// @notice Holds whether the Recovery phase has started.\n bool public hasRecoveryPhaseStarted;\n\n /// @notice Holds the timestamp at which the Claim phase started.\n uint256 public claimPhaseStartTimestamp;\n\n /// @notice Holds an ordered queue of accounts that requested to unlock their tokens.\n address[] public unlockRequests;\n\n /// @notice Holds the index of the first request in the queue (a.k.a, next one to be processed).\n uint256 public unlockRequestsCursor;\n\n /// @notice Emitted to inform about a new lock/deposit.\n event Lock(address indexed account, uint256 amount, uint8 duration);\n\n /// @notice Top-level checks and code shared by both unlock functions.\n modifier safeUnlock() {\n // Ensure that the account's lock has ended\n require(accountsLocks[msg.sender].lockEndTimestamp <= block.timestamp, \"L68\");\n\n // Ensure the account hasn't already unlocked its tokens\n require(!accountsLocks[msg.sender].hasUnlocked, \"L69\");\n\n // Ensure the account has something to unlock\n require(accountsLocks[msg.sender].amount > 0, \"L70\");\n\n // Indicate that account has unlocked its tokens\n accountsLocks[msg.sender].hasUnlocked = true;\n _;\n }\n\n /**\n * @notice This constructor function etches the lockdrop terms in immutable states.\n * Ensuring that those terms cannot be modified after deployment.\n * @param lTokenAddress_ Address of the L-Token contract to use.\n * @param maxDistributedLDY_ Amount of LDY to be distributed to lockers.\n * @param lockedHardCap_ Maximum total amount of L-Tokens that can be locked.\n * @param minLockDuration_ Minimum possible lock duration (in months).\n * @param maxLockDuration_ Maximum possible lock duration (in months).\n * @param vestingDuration_ Duration of LDY rewards vesting (in months).\n */\n constructor(\n address lTokenAddress_,\n uint256 maxDistributedLDY_,\n uint256 lockedHardCap_,\n uint8 minLockDuration_,\n uint8 maxLockDuration_,\n uint8 vestingDuration_\n ) {\n // Ensure minLockDuration is at least 1 month\n require(minLockDuration_ >= 1, \"L72\");\n\n // Ensure minLockDuration is not greater than maxLockDuration\n require(minLockDuration_ <= maxLockDuration_, \"L73\");\n\n // Set immutable states\n lToken = LToken(lTokenAddress_);\n underlyingToken = IERC20(address(lToken.underlying()));\n lockedHardCap = lockedHardCap_;\n maxDistributedLDY = maxDistributedLDY_;\n minLockDuration = minLockDuration_;\n maxLockDuration = maxLockDuration_;\n vestingDuration = vestingDuration_;\n maxWeight = lockedHardCap * uint256(maxLockDuration);\n }\n\n /**\n * @notice Public implementation of Pausable's pausing and unpausing functions, but\n * restricted to contract's owner.\n */\n function pause() public onlyOwner {\n _pause();\n }\n\n function unpause() public onlyOwner {\n _unpause();\n }\n\n /**\n * @notice Updates the LDY token contract address.\n * @dev As the first Ledgity Yield lockdrop campaigns will start before the LDY TGE,\n * this function allows the contract's owner to set the LDY token address once it\n * becomes available.\n * @param ldyTokenAddress Address of the LDY token contract.\n */\n function setLDYToken(address ldyTokenAddress) external onlyOwner {\n // Prevent owner from changing the LDY address after Claim phase has started\n require(!hasClaimPhaseStarted, \"L74\");\n\n // Set LDY token address\n ldyToken = IERC20(ldyTokenAddress);\n }\n\n /**\n * @notice Closes the Deposit phase. After calling this function, account won't be\n * able to lock additional underlying tokens anymore.\n */\n function endDepositPhase() external onlyOwner {\n hasDepositPhaseEnded = true;\n }\n\n /**\n * @notice Opens the Claim phase. After calling this function, lockers will be able\n * to start claiming their LDY rewards.\n */\n function startClaimPhase() external onlyOwner {\n // Ensure Claim phase has not already started\n require(!hasClaimPhaseStarted, \"L76\");\n\n // Ensure that LDY token address is available\n require(address(ldyToken) != address(0), \"L77\");\n\n // Set Claim phase as started and store the start timestamp\n hasClaimPhaseStarted = true;\n claimPhaseStartTimestamp = block.timestamp;\n }\n\n /**\n * @notice Opens the Recovery phase. After calling this function, the contract owner\n * will be able to recover remaining ERC20 tokens on the contract.\n * Note that this won't close the Claim phase and lockers will still be able to claim\n * their LDY rewards.\n */\n function startRecoveryPhase() external onlyOwner {\n // Ensure Claim phase has started\n require(hasClaimPhaseStarted, \"L79\");\n\n // Compute some durations in seconds\n uint256 threeMonthsInSecond = 3 * 30 days;\n uint256 vestingInSecond = uint256(vestingDuration) * 30 days;\n uint256 maxLockInSecond = uint256(maxLockDuration) * 30 days;\n\n // Compute timestamp of vesting end + 3 months\n uint256 afterVestingTimestamp = claimPhaseStartTimestamp +\n vestingInSecond +\n threeMonthsInSecond;\n\n // Ensure we are at least 3 months after the end of reward vesting\n // This prevents owner from recovering LDY before lockers can claim their rewards\n require(block.timestamp >= afterVestingTimestamp, \"L80\");\n\n // Compute end of maximum lock + 3 months\n // Note that claimPhaseStartTimestamp is used for simplicity even if it can exist a time\n // span between Deposit and Claim phases.\n uint256 afterMaxLockTimestamp = claimPhaseStartTimestamp +\n maxLockInSecond +\n threeMonthsInSecond;\n\n // Ensure we are at least 3 months after the maximum lock end\n // This prevents owner from recovering underlying tokens before lockers can unlock those\n require(block.timestamp >= afterMaxLockTimestamp, \"L81\");\n\n // Set recovery phase as started\n hasRecoveryPhaseStarted = true;\n }\n\n /**\n * @notice Recovers a specified amount of a given token address. Will revert if\n * recovery phase has not started yet or if the contract doesn't hold enough tokens.\n * @param tokenAddress The address of the token to recover.\n * @param amount The amount of token to recover.\n */\n function recoverERC20(address tokenAddress, uint256 amount) external onlyOwner {\n // Ensure recovery phase has started\n require(hasRecoveryPhaseStarted, \"L82\");\n\n // Create a reference to token's contract\n IERC20 tokenContract = IERC20(tokenAddress);\n\n // Ensure there is enough tokens to recover\n require(tokenContract.balanceOf(address(this)) >= amount, \"L83\");\n\n // Transfer the recovered token amount to the sender (owner)\n tokenContract.safeTransfer(msg.sender, amount);\n }\n\n /**\n * @notice Compute the total amount of LDY rewards that a given account is eligible to.\n * @dev Note: This function neither considers vesting nor already claimed rewards.\n * @param account The account to compute the eligible rewards of.\n * @return The total amount of LDY rewards that the account is eligible to.\n */\n function eligibleRewardsOf(address account) public view returns (uint256) {\n // Compute account's lock weight\n uint256 lockerWeight = accountsLocks[account].amount * accountsLocks[account].duration;\n\n // Compute amount of LDY that this locker is eligible to\n if (maxWeight == 0) return 0;\n else return (maxDistributedLDY * lockerWeight) / maxWeight;\n }\n\n /**\n * @notice Allows locking a specified amount of underlying tokens for a given duration.\n * By locking, an account became eligible to a portion of the distributed LDY rewards.\n * @dev This function proxies LToken.deposit()\n * @dev Lockers can extend their lock duration by calling this function again with a\n * greater duration and 0 as amount.\n * @param amount Amount of underlying tokens to lock.\n * @param duration Duration of the lock (in months).\n */\n function lock(uint256 amount, uint8 duration) external whenNotPaused {\n // Ensure Deposit phase has not ended yet\n require(!hasDepositPhaseEnded, \"L84\");\n\n // Ensure account hasn't already unlocked a past lock\n require(!accountsLocks[msg.sender].hasUnlocked, \"L71\");\n\n // Ensure lock duration is in valid range\n require(duration >= minLockDuration && duration <= maxLockDuration, \"L85\");\n\n // Ensure it won't exceed the hardcap\n require(totalLocked + amount <= uint256(lockedHardCap), \"L86\");\n\n // Increase account's locked amount\n accountsLocks[msg.sender].amount += uint240(amount);\n\n // Increase total locked amount accordingly\n totalLocked += amount;\n\n // Use existing lock duration if greater than the new one\n uint8 existingDuration = accountsLocks[msg.sender].duration;\n uint8 appliedDuration = existingDuration > duration ? existingDuration : duration;\n\n // Update account's lock duration\n accountsLocks[msg.sender].duration = appliedDuration;\n\n // Update account's lock end timestamp\n accountsLocks[msg.sender].lockEndTimestamp = uint40(\n block.timestamp + uint40(appliedDuration) * 30 days\n );\n\n // Emit a Lock event\n emit Lock(msg.sender, amount, appliedDuration);\n\n // If amount is 0, skip deposit\n if (amount == 0) return;\n\n // Transfer underlyingToken from account to contract\n underlyingToken.safeTransferFrom(msg.sender, address(this), amount);\n\n // Deposit USDC in the L-Token contract\n underlyingToken.safeApprove(address(lToken), amount);\n lToken.deposit(amount);\n }\n\n /**\n * @notice Allows the caller to instaneously unlock its locked amount of underlying\n * tokens.\n * @dev In order to save some gas and time to users, frontends should propose this\n * function to users only when it has been verified that it will not revert. They\n * should propose the requestUnlock() function otherwise.\n */\n function instantUnlock() external whenNotPaused safeUnlock {\n // Retrieve underlying tokens from the L-Token contract\n uint256 unlockedAmount = accountsLocks[msg.sender].amount;\n lToken.instantWithdrawal(unlockedAmount);\n\n // Transfer underlying tokens back to caller\n underlyingToken.safeTransfer(msg.sender, unlockedAmount);\n }\n\n /**\n * @notice Allows the call to request for the unlocking of its locked amount of\n * underlying tokens. The request will be automatically processed later.\n * @dev The sender must attach 0.003 ETH to pre-pay the future processing gas fees\n * paid by the withdrawer wallet.\n */\n function requestUnlock() external payable whenNotPaused safeUnlock {\n // Put account in the unlock requests queue\n unlockRequests.push(msg.sender);\n\n // Request underlying tokens to the L-Token contract\n uint256 unlockedAmount = accountsLocks[msg.sender].amount;\n lToken.requestWithdrawal{value: msg.value}(unlockedAmount);\n }\n\n /**\n * @notice Processes queued unlock requests until there is else no more requests,\n * else not enough underlying tokens to continue.\n */\n function processUnlockRequests() external onlyOwner {\n // Store the current request ID to process\n uint256 processedId = unlockRequestsCursor;\n\n // Loop over remaining requests\n while (processedId < unlockRequests.length) {\n // Prevent OOG by stopping request processing if there is not enough gas left\n // to continue the loop and properly end the function call.\n if (gasleft() < 45000) break;\n\n // Retrieve the request account\n address unlockAccount = unlockRequests[processedId];\n\n // Retrieve the unlocked amount\n uint256 unlockAmount = accountsLocks[unlockAccount].amount;\n\n // If the request has already been processed, skip it\n if (unlockAccount != address(0)) {\n // If the contract doesn't hold enough underlying tokens to process the request, stop here\n if (underlyingToken.balanceOf(address(this)) < unlockAmount) break;\n\n // Delete the request\n delete unlockRequests[processedId];\n\n // Transfer underlying back to account\n underlyingToken.safeTransfer(unlockAccount, unlockAmount);\n }\n\n // Increment processed request ID\n processedId++;\n }\n\n // Write back the cursor in storage\n unlockRequestsCursor = processedId;\n }\n\n /**\n * @notice Computes the amount of LDY rewards available to claim for a given account.\n * @dev This function considers vesting and already claimed rewards.\n * @param account The account to compute the available rewards of.\n * @return The amount of LDY rewards available to claim.\n */\n function availableToClaim(address account) public view returns (uint256) {\n // Compute total amount of rewards allocated to this locker\n uint256 totalEligibleRewards = eligibleRewardsOf(account);\n\n // Compute vesting duration in seconds\n uint256 vestingInSeconds = uint256(vestingDuration) * 30 days;\n\n // Compute elapsed months since claim phase started, and cap it to vesting duration\n uint256 elapsedTime = block.timestamp - claimPhaseStartTimestamp;\n if (elapsedTime > vestingInSeconds) elapsedTime = vestingInSeconds;\n\n // Compute total available to claim (proportionally to elapsed time)\n uint256 totalAvailableToClaim = (totalEligibleRewards * elapsedTime) / vestingInSeconds;\n\n // Else return net claimable (available minus already claimed)\n return totalAvailableToClaim - accountsLocks[account].claimedRewards;\n }\n\n /// @notice Allows the caller to claim its available LDY rewards.\n function claimRewards() external whenNotPaused {\n // Ensure Claim phase has started\n require(hasClaimPhaseStarted, \"L87\");\n\n // Compute claimable LDY rewards\n uint256 claimableLDY = availableToClaim(msg.sender);\n\n // Increase account claimed amount accordingly\n accountsLocks[msg.sender].claimedRewards += uint216(claimableLDY);\n\n // Transfer rewards to account\n ldyToken.safeTransfer(msg.sender, claimableLDY);\n }\n}\n" - } - }, - "settings": { - "evmVersion": "london", - "optimizer": { - "enabled": true, - "runs": 200 - }, - "outputSelection": { - "*": { - "*": [ - "abi", - "evm.bytecode", - "evm.deployedBytecode", - "evm.methodIdentifiers", - "metadata", - "devdoc", - "userdoc", - "storageLayout", - "evm.gasEstimates" - ], - "": [ - "ast" - ] - } - }, - "metadata": { - "useLiteralContent": true - } - } -} \ No newline at end of file diff --git a/contracts/hardhat/sepolia-deploy/07-LUSDC.cts b/contracts/hardhat/sepolia-deploy/07-LUSDC.cts new file mode 100644 index 00000000..3b7d3e8e --- /dev/null +++ b/contracts/hardhat/sepolia-deploy/07-LUSDC.cts @@ -0,0 +1,3 @@ +import { deployLToken } from "../lib/deployLToken.cts"; + +module.exports = deployLToken("LUSDC", "USDC"); diff --git a/contracts/src/LToken.sol b/contracts/src/LToken.sol index cb5e8154..efb118f0 100644 --- a/contracts/src/LToken.sol +++ b/contracts/src/LToken.sol @@ -138,9 +138,9 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea ITransfersListener[] public transfersListeners; /** - * @notice Holds the withdrwalFee amount in ETH that will be sent to withdrawer wallet. + * @notice Holds the withdrawalFee amount in ETH that will be sent to withdrawer wallet. */ - uint256 public withdrwalFeeInEth; + uint256 public withdrawalFeeInEth; /** * @notice Emitted to inform listeners about a change in the contract's TVL. @@ -165,7 +165,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea uint256 amount, uint256 amountAfterFees, Status newStatus, - int256 newId + int256 newId, + string referralCode ); /** @@ -236,8 +237,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea withdrawer = payable(owner()); fund = payable(owner()); - // Set initial withdrwalFeeInEth - withdrwalFeeInEth = 0.00075 * 1e18; + // Set initial withdrawalFeeInEth + withdrawalFeeInEth = 0.00075 * 1e18; } /** @@ -284,11 +285,10 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea /** * @notice Updates the current withdrawalFeeInETH. - * @param withdrwalFeeInEth_ The new withdrawalFee in ETH. + * @param withdrawalFeeInEth_ The new withdrawalFee in ETH. */ - function setWithdrwalFeeInEth(uint256 withdrwalFeeInEth_) public onlyOwner { - require(withdrwalFeeInEth <= MAX_FEES_RATE_UD7x3, "L88"); - withdrwalFeeInEth = withdrwalFeeInEth_; + function setWithdrawalFeeInEth(uint256 withdrawalFeeInEth_) public onlyOwner { + withdrawalFeeInEth = withdrawalFeeInEth_; } /** @@ -585,8 +585,12 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea /** * @notice Allows exchanging some underlying tokens for the same amount of L-Tokens. * @param amount The amount of underlying tokens to deposit. + * @param refCode The Referral code */ - function deposit(uint256 amount) public whenNotPaused notBlacklisted(_msgSender()) { + function deposit( + uint256 amount, + string memory refCode + ) public whenNotPaused notBlacklisted(_msgSender()) { // Ensure the account has enough underlying tokens to deposit require(underlying().balanceOf(_msgSender()) >= amount, "L47"); @@ -601,7 +605,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea amount, amount, Status.Success, - NO_ID + NO_ID, + refCode ); // Receive underlying tokens and mint L-Tokens to the account in a 1:1 ratio @@ -676,7 +681,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea amount, withdrawnAmount, Status.Success, - NO_ID + NO_ID, + "" ); // Burn withdrawal fees from the account @@ -689,7 +695,7 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea /** * @notice Allows requesting the exchange of a given amount of L-Tokens for the same * amount of underlying tokens. The request will be automatically processed later. - * @dev The sender must attach withdrwalFeeInETH to pre-pay the future processing gas fees + * @dev The sender must attach withdrawalFeeInETH to pre-pay the future processing gas fees * paid by the withdrawer wallet. * @param amount The amount L-Tokens to withdraw. */ @@ -703,7 +709,7 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea require(amount <= type(uint96).max, "L54"); // Ensure the sender attached the pre-paid processing gas fees - require(msg.value == withdrwalFeeInEth, "L55"); + require(msg.value == withdrawalFeeInEth, "L55"); // Create withdrawal request data WithdrawalRequest memory request = WithdrawalRequest({ @@ -738,7 +744,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea amount, amount, Status.Queued, - NO_ID + NO_ID, + "" ); // Burn withdrawal L-Tokens amount from account's balance @@ -798,7 +805,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea request.amount, request.amount, Status.Moved, - int256(withdrawalQueue.length) + int256(withdrawalQueue.length), + "" ); // Remove request from queue @@ -831,7 +839,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea request.amount, withdrawnAmount, Status.Success, - NO_ID + NO_ID, + "" ); // Remove request from queue @@ -915,7 +924,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea request.amount, withdrawnAmount, Status.Success, - NO_ID + NO_ID, + "" ); // Remove request from queue @@ -972,7 +982,8 @@ contract LToken is ERC20BaseUpgradeable, InvestUpgradeable, ERC20WrapperUpgradea request.amount, request.amount, Status.Cancelled, - NO_ID + NO_ID, + "" ); // Mint back L-Tokens to account diff --git a/contracts/src/PreMining.sol b/contracts/src/PreMining.sol index 3d662656..4c18dcf8 100644 --- a/contracts/src/PreMining.sol +++ b/contracts/src/PreMining.sol @@ -340,7 +340,7 @@ contract PreMining is Ownable2Step, Pausable { // Deposit USDC in the L-Token contract underlyingToken.safeApprove(address(lToken), amount); - lToken.deposit(amount); + lToken.deposit(amount, ""); } /** diff --git a/env.mjs b/env.mjs index c3b7741c..7c231e71 100644 --- a/env.mjs +++ b/env.mjs @@ -5,9 +5,9 @@ export const env = createEnv({ server: { TWITTER_CLIENT_ID: z.string().optional(), TWITTER_CLIENT_SECRET: z.string().optional(), - IPINFO_TOKEN: z.string(), - SCORECHAIN_API_KEY: z.string(), - AML_ALERT_WEBHOOK: z.string().url(), + IPINFO_TOKEN: z.string().optional(), + SCORECHAIN_API_KEY: z.string().optional(), + AML_ALERT_WEBHOOK: z.string().url().optional(), }, client: { NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: z.string(), diff --git a/package.json b/package.json index 0c59a0a4..3c8aa3b1 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,6 @@ "graph:arbitrum-gen": "cd subgraph && graph codegen ./arbitrum-subgraph.yaml && graph build ./arbitrum-subgraph.yaml", "graph:arbitrum-deploy": "graph deploy --studio ledgity-yield-arbitrum ./subgraph/arbitrum-subgraph.yaml", "graph:OKX_X1_Testnet-remove": "graph remove --node https://www.okx.com/api/v1/x1-testnet/index/subgraphs/name/LedgityLabs/LedgityYield/", - "graph:base-sepolia-gen": "cd subgraph && graph codegen ./base-sepolia_subgraph.yaml && graph build ./base-sepolia_subgraph.yaml", - "graph:base-sepolia-deploy": "cd subgraph && graph deploy --node https://api.studio.thegraph.com/deploy/ ldystaking-subgraph ./base-sepolia_subgraph.yaml", "graph:generate": "cd subgraph && graph codegen ./subgraph.yaml && graph build ./subgraph.yaml", "graph:prepare-eth-sepolia": "cd subgraph && mustache ./config/ethereum-sepolia.json ./subgraph.template.yaml > ./subgraph.yaml", "graph:deploy-eth-sepolia": "cd subgraph && graph deploy --node https://api.studio.thegraph.com/deploy/ ledgity-sepolia ./subgraph.yaml", @@ -40,7 +38,9 @@ "graph:prepare-eth-mainnet": "cd subgraph && mustache ./config/ethereum-mainnet.json ./subgraph.template.yaml > ./subgraph.yaml", "graph:deploy-eth-mainnet": "cd subgraph && graph deploy --node https://api.studio.thegraph.com/deploy/ ledgity-eth-mainnet ./subgraph.yaml", "graph:prepare-arbi-mainnet": "cd subgraph && mustache ./config/arbitrum-mainnet.json ./subgraph.template.yaml > ./subgraph.yaml", - "graph:deploy-arbi-mainnet": "cd subgraph && graph deploy --node https://api.studio.thegraph.com/deploy/ ledgity-arbi-main ./subgraph.yaml" + "graph:deploy-arbi-mainnet": "cd subgraph && graph deploy --node https://api.studio.thegraph.com/deploy/ ledgity-arbi-main ./subgraph.yaml", + "graph:prepare-base-sepolia": "cd subgraph && mustache ./config/base-sepolia.json ./subgraph.template.yaml > ./subgraph.yaml", + "graph:deploy-base-sepolia": "cd subgraph && graph deploy --node https://api.studio.thegraph.com/deploy/ ldystaking-subgraph ./subgraph.yaml" }, "dependencies": { "@auth/prisma-adapter": "^1.0.11", diff --git a/src/app/(site)/page.tsx b/src/app/(site)/page.tsx index 44cb3b0e..8583b9d5 100644 --- a/src/app/(site)/page.tsx +++ b/src/app/(site)/page.tsx @@ -1,16 +1,22 @@ +"use client"; import { type NextPage } from "next"; import HomeHero from "@/components/site/home/HomeHero"; import HomePartners from "@/components/site/home/HomePartners"; import HomeHowItWorks from "@/components/site/home/HomeHowItWorks"; import HomeFeatures from "@/components/site/home/HomeFeatures"; import Footer from "@/components/Footer"; - -export const metadata = { - title: "Stable Yield For Stablecoins", -}; +import { useMainContext } from "@/hooks/useMainContext"; +import { useSearchParams } from "next/navigation"; // const Page: NextPage = () => { + const searchParams = useSearchParams(); + const { changeReferalCode } = useMainContext(); + if (searchParams.has("referral")) { + const referralCode = searchParams.get("referral"); + changeReferalCode(referralCode); + } + return ( <> diff --git a/src/components/DApp.tsx b/src/components/DApp.tsx index 2ed53b25..dab752ac 100644 --- a/src/components/DApp.tsx +++ b/src/components/DApp.tsx @@ -6,6 +6,7 @@ import { WagmiProvider } from "wagmi"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { config } from "../lib/dapp/config"; import RainbowKitProvider from "./RainbowKitProvider"; +import { MainContextProvider } from "@/contexts"; const queryClient = new QueryClient(); @@ -15,11 +16,13 @@ interface Props { const DApp: FC = ({ children }) => { return ( - - - {children} - - + + + + {children} + + + ); }; diff --git a/src/contexts/index.ts b/src/contexts/index.ts index 925de5f4..cedc77c6 100644 --- a/src/contexts/index.ts +++ b/src/contexts/index.ts @@ -1 +1,2 @@ export * from "./SwitchAppTabContext"; +export * from "./MainContext"; diff --git a/src/generated.ts b/src/generated.ts index 319c7274..47b027dc 100644 --- a/src/generated.ts +++ b/src/generated.ts @@ -206,7 +206,7 @@ export const genericErc20Abi = [ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -403,7 +403,7 @@ export const globalBlacklistAbi = [ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -415,7 +415,7 @@ export const globalBlacklistAddress = { 42161: '0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350', 59140: '0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf', 59144: '0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350', - 84532: '0x546b48297Ce50FA31a383aFe7Df48297337c12B5', + 84532: '0x98002b5c06b44c8769dA3DAe97CA498aB6F97137', 421613: '0x1549647606A71B2a79b85AEb54631b8eA2a1939a', 11155111: '0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1', } as const @@ -427,7 +427,7 @@ export const globalBlacklistAddress = { * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -447,7 +447,7 @@ export const globalBlacklistConfig = { * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -621,7 +621,7 @@ export const globalOwnerAbi = [ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -633,7 +633,7 @@ export const globalOwnerAddress = { 42161: '0xe4Af4573bFc5F04D8b84c61744de8A94059f2462', 59140: '0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6', 59144: '0xe4Af4573bFc5F04D8b84c61744de8A94059f2462', - 84532: '0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2', + 84532: '0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53', 421613: '0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350', 11155111: '0x91849bAe327965a5Cc7BA970233dBee10C610105', } as const @@ -645,7 +645,7 @@ export const globalOwnerAddress = { * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -665,7 +665,7 @@ export const globalOwnerConfig = { * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -862,7 +862,7 @@ export const globalPauseAbi = [ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -874,7 +874,7 @@ export const globalPauseAddress = { 42161: '0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB', 59140: '0x4fB551213757619558A93a599a08524e9Dd59C67', 59144: '0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB', - 84532: '0x9992CC9176f2b86c56FDA697D814C1a054C2035e', + 84532: '0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5', 421613: '0x06f54B7f27eEC56616b951598BaA3B84D7660AB4', 11155111: '0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322', } as const @@ -886,7 +886,7 @@ export const globalPauseAddress = { * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -919,7 +919,7 @@ export const iTransfersListenerAbi = [ /** * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const ldyAbi = [ @@ -1081,19 +1081,19 @@ export const ldyAbi = [ /** * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const ldyAddress = { 195: '0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b', 196: '0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b', - 84532: '0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E', + 84532: '0x8584BCd220A048104e654F842C56E33d37d6aEe3', 11155111: '0xD57baAf94696F178804fBFB2345c977C40F20266', } as const /** * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const ldyConfig = { address: ldyAddress, abi: ldyAbi } as const @@ -1109,7 +1109,7 @@ export const ldyConfig = { address: ldyAddress, abi: ldyAbi } as const * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -1699,7 +1699,7 @@ export const ldyStakingAbi = [ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -1711,7 +1711,7 @@ export const ldyStakingAddress = { 42161: '0x98002b5c06b44c8769dA3DAe97CA498aB6F97137', 59140: '0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6', 59144: '0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1', - 84532: '0xA798B51F15B0024880f835723C681cB730835628', + 84532: '0xB5C69197e5D6A52c776384479B529D2d76f9e2De', 421613: '0x5BFFC5303719f0dC6050a2D8042936714109985f', 11155111: '0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e', } as const @@ -1723,7 +1723,7 @@ export const ldyStakingAddress = { * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -1786,6 +1786,12 @@ export const lTokenAbi = [ indexed: false, }, { name: 'newId', internalType: 'int256', type: 'int256', indexed: false }, + { + name: 'referralCode', + internalType: 'string', + type: 'string', + indexed: false, + }, ], name: 'ActivityEvent', }, @@ -2026,7 +2032,10 @@ export const lTokenAbi = [ { stateMutability: 'nonpayable', type: 'function', - inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }], + inputs: [ + { name: 'amount', internalType: 'uint256', type: 'uint256' }, + { name: 'refCode', internalType: 'string', type: 'string' }, + ], name: 'deposit', outputs: [], }, @@ -2334,18 +2343,18 @@ export const lTokenAbi = [ stateMutability: 'nonpayable', type: 'function', inputs: [ - { name: 'withdrawer_', internalType: 'address payable', type: 'address' }, + { name: 'withdrawalFeeInEth_', internalType: 'uint256', type: 'uint256' }, ], - name: 'setWithdrawer', + name: 'setWithdrawalFeeInEth', outputs: [], }, { stateMutability: 'nonpayable', type: 'function', inputs: [ - { name: 'withdrwalFeeInEth_', internalType: 'uint256', type: 'uint256' }, + { name: 'withdrawer_', internalType: 'address payable', type: 'address' }, ], - name: 'setWithdrwalFeeInEth', + name: 'setWithdrawer', outputs: [], }, { @@ -2498,6 +2507,13 @@ export const lTokenAbi = [ name: 'withdrawTo', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], }, + { + stateMutability: 'view', + type: 'function', + inputs: [], + name: 'withdrawalFeeInEth', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + }, { stateMutability: 'view', type: 'function', @@ -2522,13 +2538,6 @@ export const lTokenAbi = [ name: 'withdrawer', outputs: [{ name: '', internalType: 'address payable', type: 'address' }], }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'withdrwalFeeInEth', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -2541,7 +2550,7 @@ export const lTokenAbi = [ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -2712,7 +2721,7 @@ export const lTokenSignalerAbi = [ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -2723,7 +2732,7 @@ export const lTokenSignalerAddress = { 42161: '0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1', 59140: '0x04a678103bE57c3d81100fe08e43C94e50adC37B', 59144: '0xBA427517505b14C560854aED003304Fc69cbadfb', - 84532: '0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B', + 84532: '0x7A02c93681450241e97C87a2Decb511b42BB16f5', 421613: '0x1dA817E33C0dB209C7b508B79F9dac4480f94522', 11155111: '0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3', } as const @@ -2734,7 +2743,7 @@ export const lTokenSignalerAddress = { * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -3409,7 +3418,7 @@ export const useWatchGenericErc20TransferEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3427,7 +3436,7 @@ export const useReadGlobalBlacklist = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3447,7 +3456,7 @@ export const useReadGlobalBlacklistGlobalOwner = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3467,7 +3476,7 @@ export const useReadGlobalBlacklistIsBlacklisted = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3486,7 +3495,7 @@ export const useReadGlobalBlacklistOwner = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3506,7 +3515,7 @@ export const useReadGlobalBlacklistProxiableUuid = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3526,7 +3535,7 @@ export const useReadGlobalBlacklistRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3546,7 +3555,7 @@ export const useReadGlobalBlacklistTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3564,7 +3573,7 @@ export const useWriteGlobalBlacklist = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3584,7 +3593,7 @@ export const useWriteGlobalBlacklistBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3604,7 +3613,7 @@ export const useWriteGlobalBlacklistInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3624,7 +3633,7 @@ export const useWriteGlobalBlacklistUnBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3644,7 +3653,7 @@ export const useWriteGlobalBlacklistUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3664,7 +3673,7 @@ export const useWriteGlobalBlacklistUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3683,7 +3692,7 @@ export const useSimulateGlobalBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3703,7 +3712,7 @@ export const useSimulateGlobalBlacklistBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3723,7 +3732,7 @@ export const useSimulateGlobalBlacklistInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3743,7 +3752,7 @@ export const useSimulateGlobalBlacklistUnBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3763,7 +3772,7 @@ export const useSimulateGlobalBlacklistUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3783,7 +3792,7 @@ export const useSimulateGlobalBlacklistUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3802,7 +3811,7 @@ export const useWatchGlobalBlacklistEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3822,7 +3831,7 @@ export const useWatchGlobalBlacklistAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3842,7 +3851,7 @@ export const useWatchGlobalBlacklistBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3862,7 +3871,7 @@ export const useWatchGlobalBlacklistBlacklistedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3882,7 +3891,7 @@ export const useWatchGlobalBlacklistInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3902,7 +3911,7 @@ export const useWatchGlobalBlacklistOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3922,7 +3931,7 @@ export const useWatchGlobalBlacklistUnblacklistedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -3942,7 +3951,7 @@ export const useWatchGlobalBlacklistUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -3960,7 +3969,7 @@ export const useReadGlobalOwner = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -3979,7 +3988,7 @@ export const useReadGlobalOwnerOwner = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -3999,7 +4008,7 @@ export const useReadGlobalOwnerPendingOwner = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4019,7 +4028,7 @@ export const useReadGlobalOwnerProxiableUuid = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4037,7 +4046,7 @@ export const useWriteGlobalOwner = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4057,7 +4066,7 @@ export const useWriteGlobalOwnerAcceptOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4077,7 +4086,7 @@ export const useWriteGlobalOwnerInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4097,7 +4106,7 @@ export const useWriteGlobalOwnerRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4117,7 +4126,7 @@ export const useWriteGlobalOwnerTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4137,7 +4146,7 @@ export const useWriteGlobalOwnerUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4157,7 +4166,7 @@ export const useWriteGlobalOwnerUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4175,7 +4184,7 @@ export const useSimulateGlobalOwner = /*#__PURE__*/ createUseSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4195,7 +4204,7 @@ export const useSimulateGlobalOwnerAcceptOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4215,7 +4224,7 @@ export const useSimulateGlobalOwnerInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4235,7 +4244,7 @@ export const useSimulateGlobalOwnerRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4255,7 +4264,7 @@ export const useSimulateGlobalOwnerTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4275,7 +4284,7 @@ export const useSimulateGlobalOwnerUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4295,7 +4304,7 @@ export const useSimulateGlobalOwnerUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4314,7 +4323,7 @@ export const useWatchGlobalOwnerEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4334,7 +4343,7 @@ export const useWatchGlobalOwnerAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4354,7 +4363,7 @@ export const useWatchGlobalOwnerBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4374,7 +4383,7 @@ export const useWatchGlobalOwnerInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4394,7 +4403,7 @@ export const useWatchGlobalOwnerOwnershipTransferStartedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4414,7 +4423,7 @@ export const useWatchGlobalOwnerOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -4434,7 +4443,7 @@ export const useWatchGlobalOwnerUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4452,7 +4461,7 @@ export const useReadGlobalPause = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4472,7 +4481,7 @@ export const useReadGlobalPauseGlobalOwner = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4491,7 +4500,7 @@ export const useReadGlobalPauseOwner = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4510,7 +4519,7 @@ export const useReadGlobalPausePaused = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4530,7 +4539,7 @@ export const useReadGlobalPauseProxiableUuid = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4550,7 +4559,7 @@ export const useReadGlobalPauseRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4570,7 +4579,7 @@ export const useReadGlobalPauseTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4588,7 +4597,7 @@ export const useWriteGlobalPause = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4608,7 +4617,7 @@ export const useWriteGlobalPauseInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4627,7 +4636,7 @@ export const useWriteGlobalPausePause = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4646,7 +4655,7 @@ export const useWriteGlobalPauseUnpause = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4666,7 +4675,7 @@ export const useWriteGlobalPauseUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4686,7 +4695,7 @@ export const useWriteGlobalPauseUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4704,7 +4713,7 @@ export const useSimulateGlobalPause = /*#__PURE__*/ createUseSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4724,7 +4733,7 @@ export const useSimulateGlobalPauseInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4744,7 +4753,7 @@ export const useSimulateGlobalPausePause = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4764,7 +4773,7 @@ export const useSimulateGlobalPauseUnpause = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4784,7 +4793,7 @@ export const useSimulateGlobalPauseUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4804,7 +4813,7 @@ export const useSimulateGlobalPauseUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4823,7 +4832,7 @@ export const useWatchGlobalPauseEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4843,7 +4852,7 @@ export const useWatchGlobalPauseAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4863,7 +4872,7 @@ export const useWatchGlobalPauseBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4883,7 +4892,7 @@ export const useWatchGlobalPauseInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4903,7 +4912,7 @@ export const useWatchGlobalPauseOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4923,7 +4932,7 @@ export const useWatchGlobalPausePausedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4943,7 +4952,7 @@ export const useWatchGlobalPauseUnpausedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -4989,7 +4998,7 @@ export const useSimulateITransfersListenerOnLTokenTransfer = * Wraps __{@link useReadContract}__ with `abi` set to __{@link ldyAbi}__ * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useReadLdy = /*#__PURE__*/ createUseReadContract({ @@ -5001,7 +5010,7 @@ export const useReadLdy = /*#__PURE__*/ createUseReadContract({ * Wraps __{@link useReadContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"allowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useReadLdyAllowance = /*#__PURE__*/ createUseReadContract({ @@ -5014,7 +5023,7 @@ export const useReadLdyAllowance = /*#__PURE__*/ createUseReadContract({ * Wraps __{@link useReadContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"balanceOf"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useReadLdyBalanceOf = /*#__PURE__*/ createUseReadContract({ @@ -5027,7 +5036,7 @@ export const useReadLdyBalanceOf = /*#__PURE__*/ createUseReadContract({ * Wraps __{@link useReadContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"decimals"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useReadLdyDecimals = /*#__PURE__*/ createUseReadContract({ @@ -5040,7 +5049,7 @@ export const useReadLdyDecimals = /*#__PURE__*/ createUseReadContract({ * Wraps __{@link useReadContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"name"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useReadLdyName = /*#__PURE__*/ createUseReadContract({ @@ -5053,7 +5062,7 @@ export const useReadLdyName = /*#__PURE__*/ createUseReadContract({ * Wraps __{@link useReadContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"symbol"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useReadLdySymbol = /*#__PURE__*/ createUseReadContract({ @@ -5066,7 +5075,7 @@ export const useReadLdySymbol = /*#__PURE__*/ createUseReadContract({ * Wraps __{@link useReadContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"totalSupply"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useReadLdyTotalSupply = /*#__PURE__*/ createUseReadContract({ @@ -5079,7 +5088,7 @@ export const useReadLdyTotalSupply = /*#__PURE__*/ createUseReadContract({ * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ldyAbi}__ * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWriteLdy = /*#__PURE__*/ createUseWriteContract({ @@ -5091,7 +5100,7 @@ export const useWriteLdy = /*#__PURE__*/ createUseWriteContract({ * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"approve"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWriteLdyApprove = /*#__PURE__*/ createUseWriteContract({ @@ -5104,7 +5113,7 @@ export const useWriteLdyApprove = /*#__PURE__*/ createUseWriteContract({ * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"burn"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWriteLdyBurn = /*#__PURE__*/ createUseWriteContract({ @@ -5117,7 +5126,7 @@ export const useWriteLdyBurn = /*#__PURE__*/ createUseWriteContract({ * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"burnFrom"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWriteLdyBurnFrom = /*#__PURE__*/ createUseWriteContract({ @@ -5130,7 +5139,7 @@ export const useWriteLdyBurnFrom = /*#__PURE__*/ createUseWriteContract({ * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"decreaseAllowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWriteLdyDecreaseAllowance = @@ -5144,7 +5153,7 @@ export const useWriteLdyDecreaseAllowance = * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"increaseAllowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWriteLdyIncreaseAllowance = @@ -5158,7 +5167,7 @@ export const useWriteLdyIncreaseAllowance = * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"transfer"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWriteLdyTransfer = /*#__PURE__*/ createUseWriteContract({ @@ -5171,7 +5180,7 @@ export const useWriteLdyTransfer = /*#__PURE__*/ createUseWriteContract({ * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"transferFrom"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWriteLdyTransferFrom = /*#__PURE__*/ createUseWriteContract({ @@ -5184,7 +5193,7 @@ export const useWriteLdyTransferFrom = /*#__PURE__*/ createUseWriteContract({ * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ldyAbi}__ * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useSimulateLdy = /*#__PURE__*/ createUseSimulateContract({ @@ -5196,7 +5205,7 @@ export const useSimulateLdy = /*#__PURE__*/ createUseSimulateContract({ * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"approve"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useSimulateLdyApprove = /*#__PURE__*/ createUseSimulateContract({ @@ -5209,7 +5218,7 @@ export const useSimulateLdyApprove = /*#__PURE__*/ createUseSimulateContract({ * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"burn"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useSimulateLdyBurn = /*#__PURE__*/ createUseSimulateContract({ @@ -5222,7 +5231,7 @@ export const useSimulateLdyBurn = /*#__PURE__*/ createUseSimulateContract({ * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"burnFrom"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useSimulateLdyBurnFrom = /*#__PURE__*/ createUseSimulateContract({ @@ -5235,7 +5244,7 @@ export const useSimulateLdyBurnFrom = /*#__PURE__*/ createUseSimulateContract({ * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"decreaseAllowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useSimulateLdyDecreaseAllowance = @@ -5249,7 +5258,7 @@ export const useSimulateLdyDecreaseAllowance = * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"increaseAllowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useSimulateLdyIncreaseAllowance = @@ -5263,7 +5272,7 @@ export const useSimulateLdyIncreaseAllowance = * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"transfer"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useSimulateLdyTransfer = /*#__PURE__*/ createUseSimulateContract({ @@ -5276,7 +5285,7 @@ export const useSimulateLdyTransfer = /*#__PURE__*/ createUseSimulateContract({ * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"transferFrom"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useSimulateLdyTransferFrom = @@ -5290,7 +5299,7 @@ export const useSimulateLdyTransferFrom = * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ldyAbi}__ * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWatchLdyEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -5302,7 +5311,7 @@ export const useWatchLdyEvent = /*#__PURE__*/ createUseWatchContractEvent({ * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ldyAbi}__ and `eventName` set to `"Approval"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWatchLdyApprovalEvent = @@ -5316,7 +5325,7 @@ export const useWatchLdyApprovalEvent = * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ldyAbi}__ and `eventName` set to `"Transfer"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const useWatchLdyTransferEvent = @@ -5335,7 +5344,7 @@ export const useWatchLdyTransferEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5353,7 +5362,7 @@ export const useReadLdyStaking = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5373,7 +5382,7 @@ export const useReadLdyStakingMultiplierBasis = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5392,7 +5401,7 @@ export const useReadLdyStakingEarned = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5411,7 +5420,7 @@ export const useReadLdyStakingFinishAt = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5431,7 +5440,7 @@ export const useReadLdyStakingGetEarnedUser = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5451,7 +5460,7 @@ export const useReadLdyStakingGetStakeDurationInfo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5471,7 +5480,7 @@ export const useReadLdyStakingGetUserStakes = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5491,7 +5500,7 @@ export const useReadLdyStakingGlobalBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5512,7 +5521,7 @@ export const useReadLdyStakingGlobalOwner = /*#__PURE__*/ createUseReadContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5533,7 +5542,7 @@ export const useReadLdyStakingGlobalPause = /*#__PURE__*/ createUseReadContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5553,7 +5562,7 @@ export const useReadLdyStakingHighTierAccounts = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5573,7 +5582,7 @@ export const useReadLdyStakingLastTimeRewardApplicable = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5593,7 +5602,7 @@ export const useReadLdyStakingLastUpdateTime = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5612,7 +5621,7 @@ export const useReadLdyStakingOwner = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5631,7 +5640,7 @@ export const useReadLdyStakingPaused = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5651,7 +5660,7 @@ export const useReadLdyStakingProxiableUuid = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5671,7 +5680,7 @@ export const useReadLdyStakingRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5691,7 +5700,7 @@ export const useReadLdyStakingRewardPerToken = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5711,7 +5720,7 @@ export const useReadLdyStakingRewardPerTokenStored = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5731,7 +5740,7 @@ export const useReadLdyStakingRewardRatePerSec = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5751,7 +5760,7 @@ export const useReadLdyStakingRewardsDuration = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5771,7 +5780,7 @@ export const useReadLdyStakingStakeAmountForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5791,7 +5800,7 @@ export const useReadLdyStakingStakeDurationForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5811,7 +5820,7 @@ export const useReadLdyStakingStakeDurationInfos = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5831,7 +5840,7 @@ export const useReadLdyStakingStakeRewardToken = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5850,7 +5859,7 @@ export const useReadLdyStakingTierOf = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5870,7 +5879,7 @@ export const useReadLdyStakingTotalRewards = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5891,7 +5900,7 @@ export const useReadLdyStakingTotalStaked = /*#__PURE__*/ createUseReadContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5911,7 +5920,7 @@ export const useReadLdyStakingTotalWeightedStake = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5931,7 +5940,7 @@ export const useReadLdyStakingTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5951,7 +5960,7 @@ export const useReadLdyStakingUserStakingInfo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5969,7 +5978,7 @@ export const useWriteLdyStaking = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -5986,7 +5995,7 @@ export const useWriteLdyStakingGetReward = /*#__PURE__*/ createUseWriteContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6006,7 +6015,7 @@ export const useWriteLdyStakingInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6026,7 +6035,7 @@ export const useWriteLdyStakingNotifyRewardAmount = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6046,7 +6055,7 @@ export const useWriteLdyStakingPushStakeDurationInfo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6066,7 +6075,7 @@ export const useWriteLdyStakingRecoverErc20 = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6086,7 +6095,7 @@ export const useWriteLdyStakingSetRewardsDuration = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6106,7 +6115,7 @@ export const useWriteLdyStakingSetStakeAmountForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6126,7 +6135,7 @@ export const useWriteLdyStakingSetStakeDurationForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6145,7 +6154,7 @@ export const useWriteLdyStakingStake = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6164,7 +6173,7 @@ export const useWriteLdyStakingUnstake = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6181,7 +6190,7 @@ export const useWriteLdyStakingUpgradeTo = /*#__PURE__*/ createUseWriteContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6201,7 +6210,7 @@ export const useWriteLdyStakingUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6219,7 +6228,7 @@ export const useSimulateLdyStaking = /*#__PURE__*/ createUseSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6239,7 +6248,7 @@ export const useSimulateLdyStakingGetReward = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6259,7 +6268,7 @@ export const useSimulateLdyStakingInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6279,7 +6288,7 @@ export const useSimulateLdyStakingNotifyRewardAmount = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6299,7 +6308,7 @@ export const useSimulateLdyStakingPushStakeDurationInfo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6319,7 +6328,7 @@ export const useSimulateLdyStakingRecoverErc20 = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6339,7 +6348,7 @@ export const useSimulateLdyStakingSetRewardsDuration = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6359,7 +6368,7 @@ export const useSimulateLdyStakingSetStakeAmountForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6379,7 +6388,7 @@ export const useSimulateLdyStakingSetStakeDurationForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6399,7 +6408,7 @@ export const useSimulateLdyStakingStake = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6419,7 +6428,7 @@ export const useSimulateLdyStakingUnstake = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6439,7 +6448,7 @@ export const useSimulateLdyStakingUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6459,7 +6468,7 @@ export const useSimulateLdyStakingUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6478,7 +6487,7 @@ export const useWatchLdyStakingEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6498,7 +6507,7 @@ export const useWatchLdyStakingAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6518,7 +6527,7 @@ export const useWatchLdyStakingBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6538,7 +6547,7 @@ export const useWatchLdyStakingInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6558,7 +6567,7 @@ export const useWatchLdyStakingNotifiedRewardAmountEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6578,7 +6587,7 @@ export const useWatchLdyStakingOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6598,7 +6607,7 @@ export const useWatchLdyStakingPausedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6618,7 +6627,7 @@ export const useWatchLdyStakingRewardPaidEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6638,7 +6647,7 @@ export const useWatchLdyStakingStakedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6658,7 +6667,7 @@ export const useWatchLdyStakingUnpausedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6678,7 +6687,7 @@ export const useWatchLdyStakingUnstakedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -6984,6 +6993,15 @@ export const useReadLTokenWithdrawTo = /*#__PURE__*/ createUseReadContract({ functionName: 'withdrawTo', }) +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"withdrawalFeeInEth"` + */ +export const useReadLTokenWithdrawalFeeInEth = + /*#__PURE__*/ createUseReadContract({ + abi: lTokenAbi, + functionName: 'withdrawalFeeInEth', + }) + /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"withdrawalQueue"` */ @@ -7008,15 +7026,6 @@ export const useReadLTokenWithdrawer = /*#__PURE__*/ createUseReadContract({ functionName: 'withdrawer', }) -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"withdrwalFeeInEth"` - */ -export const useReadLTokenWithdrwalFeeInEth = - /*#__PURE__*/ createUseReadContract({ - abi: lTokenAbi, - functionName: 'withdrwalFeeInEth', - }) - /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link lTokenAbi}__ */ @@ -7193,6 +7202,15 @@ export const useWriteLTokenSetRetentionRate = functionName: 'setRetentionRate', }) +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawalFeeInEth"` + */ +export const useWriteLTokenSetWithdrawalFeeInEth = + /*#__PURE__*/ createUseWriteContract({ + abi: lTokenAbi, + functionName: 'setWithdrawalFeeInEth', + }) + /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawer"` */ @@ -7200,15 +7218,6 @@ export const useWriteLTokenSetWithdrawer = /*#__PURE__*/ createUseWriteContract( { abi: lTokenAbi, functionName: 'setWithdrawer' }, ) -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrwalFeeInEth"` - */ -export const useWriteLTokenSetWithdrwalFeeInEth = - /*#__PURE__*/ createUseWriteContract({ - abi: lTokenAbi, - functionName: 'setWithdrwalFeeInEth', - }) - /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"startRewardsRedirection"` */ @@ -7450,21 +7459,21 @@ export const useSimulateLTokenSetRetentionRate = }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawer"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawalFeeInEth"` */ -export const useSimulateLTokenSetWithdrawer = +export const useSimulateLTokenSetWithdrawalFeeInEth = /*#__PURE__*/ createUseSimulateContract({ abi: lTokenAbi, - functionName: 'setWithdrawer', + functionName: 'setWithdrawalFeeInEth', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrwalFeeInEth"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawer"` */ -export const useSimulateLTokenSetWithdrwalFeeInEth = +export const useSimulateLTokenSetWithdrawer = /*#__PURE__*/ createUseSimulateContract({ abi: lTokenAbi, - functionName: 'setWithdrwalFeeInEth', + functionName: 'setWithdrawer', }) /** @@ -7662,7 +7671,7 @@ export const useWatchLTokenUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7679,7 +7688,7 @@ export const useReadLTokenSignaler = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7698,7 +7707,7 @@ export const useReadLTokenSignalerGlobalOwner = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7716,7 +7725,7 @@ export const useReadLTokenSignalerOwner = /*#__PURE__*/ createUseReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7735,7 +7744,7 @@ export const useReadLTokenSignalerProxiableUuid = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7754,7 +7763,7 @@ export const useReadLTokenSignalerRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7773,7 +7782,7 @@ export const useReadLTokenSignalerTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7790,7 +7799,7 @@ export const useWriteLTokenSignaler = /*#__PURE__*/ createUseWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7809,7 +7818,7 @@ export const useWriteLTokenSignalerInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7828,7 +7837,7 @@ export const useWriteLTokenSignalerSignalLToken = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7847,7 +7856,7 @@ export const useWriteLTokenSignalerUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7866,7 +7875,7 @@ export const useWriteLTokenSignalerUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7884,7 +7893,7 @@ export const useSimulateLTokenSignaler = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7903,7 +7912,7 @@ export const useSimulateLTokenSignalerInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7922,7 +7931,7 @@ export const useSimulateLTokenSignalerSignalLToken = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7941,7 +7950,7 @@ export const useSimulateLTokenSignalerUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7960,7 +7969,7 @@ export const useSimulateLTokenSignalerUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7978,7 +7987,7 @@ export const useWatchLTokenSignalerEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -7997,7 +8006,7 @@ export const useWatchLTokenSignalerAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -8016,7 +8025,7 @@ export const useWatchLTokenSignalerBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -8035,7 +8044,7 @@ export const useWatchLTokenSignalerInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -8054,7 +8063,7 @@ export const useWatchLTokenSignalerLTokenSignalEventEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -8073,7 +8082,7 @@ export const useWatchLTokenSignalerOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -9115,7 +9124,7 @@ export const watchGenericErc20TransferEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9133,7 +9142,7 @@ export const readGlobalBlacklist = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9152,7 +9161,7 @@ export const readGlobalBlacklistGlobalOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9172,7 +9181,7 @@ export const readGlobalBlacklistIsBlacklisted = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9191,7 +9200,7 @@ export const readGlobalBlacklistOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9211,7 +9220,7 @@ export const readGlobalBlacklistProxiableUuid = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9231,7 +9240,7 @@ export const readGlobalBlacklistRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9251,7 +9260,7 @@ export const readGlobalBlacklistTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9269,7 +9278,7 @@ export const writeGlobalBlacklist = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9288,7 +9297,7 @@ export const writeGlobalBlacklistBlacklist = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9309,7 +9318,7 @@ export const writeGlobalBlacklistInitialize = /*#__PURE__*/ createWriteContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9329,7 +9338,7 @@ export const writeGlobalBlacklistUnBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9348,7 +9357,7 @@ export const writeGlobalBlacklistUpgradeTo = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9368,7 +9377,7 @@ export const writeGlobalBlacklistUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9386,7 +9395,7 @@ export const simulateGlobalBlacklist = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9406,7 +9415,7 @@ export const simulateGlobalBlacklistBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9426,7 +9435,7 @@ export const simulateGlobalBlacklistInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9446,7 +9455,7 @@ export const simulateGlobalBlacklistUnBlacklist = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9466,7 +9475,7 @@ export const simulateGlobalBlacklistUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9486,7 +9495,7 @@ export const simulateGlobalBlacklistUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9503,7 +9512,7 @@ export const watchGlobalBlacklistEvent = /*#__PURE__*/ createWatchContractEvent( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9523,7 +9532,7 @@ export const watchGlobalBlacklistAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9543,7 +9552,7 @@ export const watchGlobalBlacklistBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9563,7 +9572,7 @@ export const watchGlobalBlacklistBlacklistedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9583,7 +9592,7 @@ export const watchGlobalBlacklistInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9603,7 +9612,7 @@ export const watchGlobalBlacklistOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9623,7 +9632,7 @@ export const watchGlobalBlacklistUnblacklistedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7fbE57dD4Ba76CACBFfBA821EE0B7faa240a11bf) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x546b48297Ce50FA31a383aFe7Df48297337c12B5) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1549647606A71B2a79b85AEb54631b8eA2a1939a) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf7d04d50F3EC180173CEFc73EB5427aeFC9f5fF1) */ @@ -9643,7 +9652,7 @@ export const watchGlobalBlacklistUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9661,7 +9670,7 @@ export const readGlobalOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9680,7 +9689,7 @@ export const readGlobalOwnerOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9699,7 +9708,7 @@ export const readGlobalOwnerPendingOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9718,7 +9727,7 @@ export const readGlobalOwnerProxiableUuid = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9736,7 +9745,7 @@ export const writeGlobalOwner = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9756,7 +9765,7 @@ export const writeGlobalOwnerAcceptOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9775,7 +9784,7 @@ export const writeGlobalOwnerInitialize = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9795,7 +9804,7 @@ export const writeGlobalOwnerRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9815,7 +9824,7 @@ export const writeGlobalOwnerTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9834,7 +9843,7 @@ export const writeGlobalOwnerUpgradeTo = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9854,7 +9863,7 @@ export const writeGlobalOwnerUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9872,7 +9881,7 @@ export const simulateGlobalOwner = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9892,7 +9901,7 @@ export const simulateGlobalOwnerAcceptOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9912,7 +9921,7 @@ export const simulateGlobalOwnerInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9932,7 +9941,7 @@ export const simulateGlobalOwnerRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9952,7 +9961,7 @@ export const simulateGlobalOwnerTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9972,7 +9981,7 @@ export const simulateGlobalOwnerUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -9992,7 +10001,7 @@ export const simulateGlobalOwnerUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -10010,7 +10019,7 @@ export const watchGlobalOwnerEvent = /*#__PURE__*/ createWatchContractEvent({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -10030,7 +10039,7 @@ export const watchGlobalOwnerAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -10050,7 +10059,7 @@ export const watchGlobalOwnerBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -10070,7 +10079,7 @@ export const watchGlobalOwnerInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -10090,7 +10099,7 @@ export const watchGlobalOwnerOwnershipTransferStartedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -10110,7 +10119,7 @@ export const watchGlobalOwnerOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0xDbac01A784fB7E5F1Ae9c8d61f776A2d9d59faB6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xe4Af4573bFc5F04D8b84c61744de8A94059f2462) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x01413E00B19Dde5A37a4Ef46eABa394535FdB1B2) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xd42B1065Ac03F3965b11ef19ee98b0165A2C4E53) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0xcA55A2394876e7Cf52e99Ab36Fc9151a7d9CF350) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x91849bAe327965a5Cc7BA970233dBee10C610105) */ @@ -10130,7 +10139,7 @@ export const watchGlobalOwnerUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10148,7 +10157,7 @@ export const readGlobalPause = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10167,7 +10176,7 @@ export const readGlobalPauseGlobalOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10186,7 +10195,7 @@ export const readGlobalPauseOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10205,7 +10214,7 @@ export const readGlobalPausePaused = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10224,7 +10233,7 @@ export const readGlobalPauseProxiableUuid = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10244,7 +10253,7 @@ export const readGlobalPauseRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10264,7 +10273,7 @@ export const readGlobalPauseTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10282,7 +10291,7 @@ export const writeGlobalPause = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10301,7 +10310,7 @@ export const writeGlobalPauseInitialize = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10320,7 +10329,7 @@ export const writeGlobalPausePause = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10339,7 +10348,7 @@ export const writeGlobalPauseUnpause = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10358,7 +10367,7 @@ export const writeGlobalPauseUpgradeTo = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10378,7 +10387,7 @@ export const writeGlobalPauseUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10396,7 +10405,7 @@ export const simulateGlobalPause = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10416,7 +10425,7 @@ export const simulateGlobalPauseInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10435,7 +10444,7 @@ export const simulateGlobalPausePause = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10454,7 +10463,7 @@ export const simulateGlobalPauseUnpause = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10474,7 +10483,7 @@ export const simulateGlobalPauseUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10494,7 +10503,7 @@ export const simulateGlobalPauseUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10512,7 +10521,7 @@ export const watchGlobalPauseEvent = /*#__PURE__*/ createWatchContractEvent({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10532,7 +10541,7 @@ export const watchGlobalPauseAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10552,7 +10561,7 @@ export const watchGlobalPauseBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10572,7 +10581,7 @@ export const watchGlobalPauseInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10592,7 +10601,7 @@ export const watchGlobalPauseOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10612,7 +10621,7 @@ export const watchGlobalPausePausedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10632,7 +10641,7 @@ export const watchGlobalPauseUnpausedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x4fB551213757619558A93a599a08524e9Dd59C67) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xd4D4c68CE70fa88B9E527DD3A4a6d19c5cbdd4dB) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x9992CC9176f2b86c56FDA697D814C1a054C2035e) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x061b0B71B87Bd4Ff6086011a17589ea08DaA49A5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x06f54B7f27eEC56616b951598BaA3B84D7660AB4) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x5Be502B3F0aC0AECC9175C2d9E0BbFb619f48322) */ @@ -10679,7 +10688,7 @@ export const simulateITransfersListenerOnLTokenTransfer = * Wraps __{@link readContract}__ with `abi` set to __{@link ldyAbi}__ * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const readLdy = /*#__PURE__*/ createReadContract({ @@ -10691,7 +10700,7 @@ export const readLdy = /*#__PURE__*/ createReadContract({ * Wraps __{@link readContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"allowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const readLdyAllowance = /*#__PURE__*/ createReadContract({ @@ -10704,7 +10713,7 @@ export const readLdyAllowance = /*#__PURE__*/ createReadContract({ * Wraps __{@link readContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"balanceOf"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const readLdyBalanceOf = /*#__PURE__*/ createReadContract({ @@ -10717,7 +10726,7 @@ export const readLdyBalanceOf = /*#__PURE__*/ createReadContract({ * Wraps __{@link readContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"decimals"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const readLdyDecimals = /*#__PURE__*/ createReadContract({ @@ -10730,7 +10739,7 @@ export const readLdyDecimals = /*#__PURE__*/ createReadContract({ * Wraps __{@link readContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"name"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const readLdyName = /*#__PURE__*/ createReadContract({ @@ -10743,7 +10752,7 @@ export const readLdyName = /*#__PURE__*/ createReadContract({ * Wraps __{@link readContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"symbol"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const readLdySymbol = /*#__PURE__*/ createReadContract({ @@ -10756,7 +10765,7 @@ export const readLdySymbol = /*#__PURE__*/ createReadContract({ * Wraps __{@link readContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"totalSupply"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const readLdyTotalSupply = /*#__PURE__*/ createReadContract({ @@ -10769,7 +10778,7 @@ export const readLdyTotalSupply = /*#__PURE__*/ createReadContract({ * Wraps __{@link writeContract}__ with `abi` set to __{@link ldyAbi}__ * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const writeLdy = /*#__PURE__*/ createWriteContract({ @@ -10781,7 +10790,7 @@ export const writeLdy = /*#__PURE__*/ createWriteContract({ * Wraps __{@link writeContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"approve"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const writeLdyApprove = /*#__PURE__*/ createWriteContract({ @@ -10794,7 +10803,7 @@ export const writeLdyApprove = /*#__PURE__*/ createWriteContract({ * Wraps __{@link writeContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"burn"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const writeLdyBurn = /*#__PURE__*/ createWriteContract({ @@ -10807,7 +10816,7 @@ export const writeLdyBurn = /*#__PURE__*/ createWriteContract({ * Wraps __{@link writeContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"burnFrom"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const writeLdyBurnFrom = /*#__PURE__*/ createWriteContract({ @@ -10820,7 +10829,7 @@ export const writeLdyBurnFrom = /*#__PURE__*/ createWriteContract({ * Wraps __{@link writeContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"decreaseAllowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const writeLdyDecreaseAllowance = /*#__PURE__*/ createWriteContract({ @@ -10833,7 +10842,7 @@ export const writeLdyDecreaseAllowance = /*#__PURE__*/ createWriteContract({ * Wraps __{@link writeContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"increaseAllowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const writeLdyIncreaseAllowance = /*#__PURE__*/ createWriteContract({ @@ -10846,7 +10855,7 @@ export const writeLdyIncreaseAllowance = /*#__PURE__*/ createWriteContract({ * Wraps __{@link writeContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"transfer"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const writeLdyTransfer = /*#__PURE__*/ createWriteContract({ @@ -10859,7 +10868,7 @@ export const writeLdyTransfer = /*#__PURE__*/ createWriteContract({ * Wraps __{@link writeContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"transferFrom"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const writeLdyTransferFrom = /*#__PURE__*/ createWriteContract({ @@ -10872,7 +10881,7 @@ export const writeLdyTransferFrom = /*#__PURE__*/ createWriteContract({ * Wraps __{@link simulateContract}__ with `abi` set to __{@link ldyAbi}__ * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const simulateLdy = /*#__PURE__*/ createSimulateContract({ @@ -10884,7 +10893,7 @@ export const simulateLdy = /*#__PURE__*/ createSimulateContract({ * Wraps __{@link simulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"approve"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const simulateLdyApprove = /*#__PURE__*/ createSimulateContract({ @@ -10897,7 +10906,7 @@ export const simulateLdyApprove = /*#__PURE__*/ createSimulateContract({ * Wraps __{@link simulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"burn"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const simulateLdyBurn = /*#__PURE__*/ createSimulateContract({ @@ -10910,7 +10919,7 @@ export const simulateLdyBurn = /*#__PURE__*/ createSimulateContract({ * Wraps __{@link simulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"burnFrom"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const simulateLdyBurnFrom = /*#__PURE__*/ createSimulateContract({ @@ -10923,7 +10932,7 @@ export const simulateLdyBurnFrom = /*#__PURE__*/ createSimulateContract({ * Wraps __{@link simulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"decreaseAllowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const simulateLdyDecreaseAllowance = @@ -10937,7 +10946,7 @@ export const simulateLdyDecreaseAllowance = * Wraps __{@link simulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"increaseAllowance"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const simulateLdyIncreaseAllowance = @@ -10951,7 +10960,7 @@ export const simulateLdyIncreaseAllowance = * Wraps __{@link simulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"transfer"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const simulateLdyTransfer = /*#__PURE__*/ createSimulateContract({ @@ -10964,7 +10973,7 @@ export const simulateLdyTransfer = /*#__PURE__*/ createSimulateContract({ * Wraps __{@link simulateContract}__ with `abi` set to __{@link ldyAbi}__ and `functionName` set to `"transferFrom"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const simulateLdyTransferFrom = /*#__PURE__*/ createSimulateContract({ @@ -10977,7 +10986,7 @@ export const simulateLdyTransferFrom = /*#__PURE__*/ createSimulateContract({ * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link ldyAbi}__ * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const watchLdyEvent = /*#__PURE__*/ createWatchContractEvent({ @@ -10989,7 +10998,7 @@ export const watchLdyEvent = /*#__PURE__*/ createWatchContractEvent({ * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link ldyAbi}__ and `eventName` set to `"Approval"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const watchLdyApprovalEvent = /*#__PURE__*/ createWatchContractEvent({ @@ -11002,7 +11011,7 @@ export const watchLdyApprovalEvent = /*#__PURE__*/ createWatchContractEvent({ * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link ldyAbi}__ and `eventName` set to `"Transfer"` * * - [__View Contract on X1 Testnet Ok Link__](https://www.oklink.com/x1-test/address/0x39c54346eFA8e38FBC7B4daB3dc9B61D76e80e3b) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE376Bd13399F1f86ad659145A2BED2cDC24a7E5E) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x8584BCd220A048104e654F842C56E33d37d6aEe3) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xD57baAf94696F178804fBFB2345c977C40F20266) */ export const watchLdyTransferEvent = /*#__PURE__*/ createWatchContractEvent({ @@ -11020,7 +11029,7 @@ export const watchLdyTransferEvent = /*#__PURE__*/ createWatchContractEvent({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11038,7 +11047,7 @@ export const readLdyStaking = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11057,7 +11066,7 @@ export const readLdyStakingMultiplierBasis = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11076,7 +11085,7 @@ export const readLdyStakingEarned = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11095,7 +11104,7 @@ export const readLdyStakingFinishAt = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11114,7 +11123,7 @@ export const readLdyStakingGetEarnedUser = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11134,7 +11143,7 @@ export const readLdyStakingGetStakeDurationInfo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11153,7 +11162,7 @@ export const readLdyStakingGetUserStakes = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11172,7 +11181,7 @@ export const readLdyStakingGlobalBlacklist = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11191,7 +11200,7 @@ export const readLdyStakingGlobalOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11210,7 +11219,7 @@ export const readLdyStakingGlobalPause = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11229,7 +11238,7 @@ export const readLdyStakingHighTierAccounts = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11249,7 +11258,7 @@ export const readLdyStakingLastTimeRewardApplicable = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11268,7 +11277,7 @@ export const readLdyStakingLastUpdateTime = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11287,7 +11296,7 @@ export const readLdyStakingOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11306,7 +11315,7 @@ export const readLdyStakingPaused = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11325,7 +11334,7 @@ export const readLdyStakingProxiableUuid = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11346,7 +11355,7 @@ export const readLdyStakingRenounceOwnership = /*#__PURE__*/ createReadContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11365,7 +11374,7 @@ export const readLdyStakingRewardPerToken = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11385,7 +11394,7 @@ export const readLdyStakingRewardPerTokenStored = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11404,7 +11413,7 @@ export const readLdyStakingRewardRatePerSec = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11423,7 +11432,7 @@ export const readLdyStakingRewardsDuration = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11443,7 +11452,7 @@ export const readLdyStakingStakeAmountForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11463,7 +11472,7 @@ export const readLdyStakingStakeDurationForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11483,7 +11492,7 @@ export const readLdyStakingStakeDurationInfos = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11502,7 +11511,7 @@ export const readLdyStakingStakeRewardToken = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11521,7 +11530,7 @@ export const readLdyStakingTierOf = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11540,7 +11549,7 @@ export const readLdyStakingTotalRewards = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11559,7 +11568,7 @@ export const readLdyStakingTotalStaked = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11579,7 +11588,7 @@ export const readLdyStakingTotalWeightedStake = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11600,7 +11609,7 @@ export const readLdyStakingTransferOwnership = /*#__PURE__*/ createReadContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11619,7 +11628,7 @@ export const readLdyStakingUserStakingInfo = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11637,7 +11646,7 @@ export const writeLdyStaking = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11656,7 +11665,7 @@ export const writeLdyStakingGetReward = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11675,7 +11684,7 @@ export const writeLdyStakingInitialize = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11695,7 +11704,7 @@ export const writeLdyStakingNotifyRewardAmount = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11715,7 +11724,7 @@ export const writeLdyStakingPushStakeDurationInfo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11734,7 +11743,7 @@ export const writeLdyStakingRecoverErc20 = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11754,7 +11763,7 @@ export const writeLdyStakingSetRewardsDuration = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11774,7 +11783,7 @@ export const writeLdyStakingSetStakeAmountForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11794,7 +11803,7 @@ export const writeLdyStakingSetStakeDurationForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11813,7 +11822,7 @@ export const writeLdyStakingStake = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11832,7 +11841,7 @@ export const writeLdyStakingUnstake = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11851,7 +11860,7 @@ export const writeLdyStakingUpgradeTo = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11871,7 +11880,7 @@ export const writeLdyStakingUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11889,7 +11898,7 @@ export const simulateLdyStaking = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11906,7 +11915,7 @@ export const simulateLdyStakingGetReward = /*#__PURE__*/ createSimulateContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11926,7 +11935,7 @@ export const simulateLdyStakingInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11946,7 +11955,7 @@ export const simulateLdyStakingNotifyRewardAmount = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11966,7 +11975,7 @@ export const simulateLdyStakingPushStakeDurationInfo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -11986,7 +11995,7 @@ export const simulateLdyStakingRecoverErc20 = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12006,7 +12015,7 @@ export const simulateLdyStakingSetRewardsDuration = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12026,7 +12035,7 @@ export const simulateLdyStakingSetStakeAmountForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12046,7 +12055,7 @@ export const simulateLdyStakingSetStakeDurationForPerks = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12065,7 +12074,7 @@ export const simulateLdyStakingStake = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12084,7 +12093,7 @@ export const simulateLdyStakingUnstake = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12101,7 +12110,7 @@ export const simulateLdyStakingUpgradeTo = /*#__PURE__*/ createSimulateContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12121,7 +12130,7 @@ export const simulateLdyStakingUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12139,7 +12148,7 @@ export const watchLdyStakingEvent = /*#__PURE__*/ createWatchContractEvent({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12159,7 +12168,7 @@ export const watchLdyStakingAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12179,7 +12188,7 @@ export const watchLdyStakingBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12199,7 +12208,7 @@ export const watchLdyStakingInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12219,7 +12228,7 @@ export const watchLdyStakingNotifiedRewardAmountEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12239,7 +12248,7 @@ export const watchLdyStakingOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12259,7 +12268,7 @@ export const watchLdyStakingPausedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12279,7 +12288,7 @@ export const watchLdyStakingRewardPaidEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12299,7 +12308,7 @@ export const watchLdyStakingStakedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12319,7 +12328,7 @@ export const watchLdyStakingUnpausedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12339,7 +12348,7 @@ export const watchLdyStakingUnstakedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x98002b5c06b44c8769dA3DAe97CA498aB6F97137) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x7A78A93dad6A64d0A92C913C008dC79dBf919Fa6) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xA798B51F15B0024880f835723C681cB730835628) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xB5C69197e5D6A52c776384479B529D2d76f9e2De) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x5BFFC5303719f0dC6050a2D8042936714109985f) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x6f5B9DB5b87a9Ecf1a9E23e812799988A4b5B79e) */ @@ -12638,6 +12647,14 @@ export const readLTokenWithdrawTo = /*#__PURE__*/ createReadContract({ functionName: 'withdrawTo', }) +/** + * Wraps __{@link readContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"withdrawalFeeInEth"` + */ +export const readLTokenWithdrawalFeeInEth = /*#__PURE__*/ createReadContract({ + abi: lTokenAbi, + functionName: 'withdrawalFeeInEth', +}) + /** * Wraps __{@link readContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"withdrawalQueue"` */ @@ -12661,14 +12678,6 @@ export const readLTokenWithdrawer = /*#__PURE__*/ createReadContract({ functionName: 'withdrawer', }) -/** - * Wraps __{@link readContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"withdrwalFeeInEth"` - */ -export const readLTokenWithdrwalFeeInEth = /*#__PURE__*/ createReadContract({ - abi: lTokenAbi, - functionName: 'withdrwalFeeInEth', -}) - /** * Wraps __{@link writeContract}__ with `abi` set to __{@link lTokenAbi}__ */ @@ -12837,6 +12846,15 @@ export const writeLTokenSetRetentionRate = /*#__PURE__*/ createWriteContract({ functionName: 'setRetentionRate', }) +/** + * Wraps __{@link writeContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawalFeeInEth"` + */ +export const writeLTokenSetWithdrawalFeeInEth = + /*#__PURE__*/ createWriteContract({ + abi: lTokenAbi, + functionName: 'setWithdrawalFeeInEth', + }) + /** * Wraps __{@link writeContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawer"` */ @@ -12845,15 +12863,6 @@ export const writeLTokenSetWithdrawer = /*#__PURE__*/ createWriteContract({ functionName: 'setWithdrawer', }) -/** - * Wraps __{@link writeContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrwalFeeInEth"` - */ -export const writeLTokenSetWithdrwalFeeInEth = - /*#__PURE__*/ createWriteContract({ - abi: lTokenAbi, - functionName: 'setWithdrwalFeeInEth', - }) - /** * Wraps __{@link writeContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"startRewardsRedirection"` */ @@ -13087,6 +13096,15 @@ export const simulateLTokenSetRetentionRate = functionName: 'setRetentionRate', }) +/** + * Wraps __{@link simulateContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawalFeeInEth"` + */ +export const simulateLTokenSetWithdrawalFeeInEth = + /*#__PURE__*/ createSimulateContract({ + abi: lTokenAbi, + functionName: 'setWithdrawalFeeInEth', + }) + /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrawer"` */ @@ -13094,15 +13112,6 @@ export const simulateLTokenSetWithdrawer = /*#__PURE__*/ createSimulateContract( { abi: lTokenAbi, functionName: 'setWithdrawer' }, ) -/** - * Wraps __{@link simulateContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"setWithdrwalFeeInEth"` - */ -export const simulateLTokenSetWithdrwalFeeInEth = - /*#__PURE__*/ createSimulateContract({ - abi: lTokenAbi, - functionName: 'setWithdrwalFeeInEth', - }) - /** * Wraps __{@link simulateContract}__ with `abi` set to __{@link lTokenAbi}__ and `functionName` set to `"startRewardsRedirection"` */ @@ -13290,7 +13299,7 @@ export const watchLTokenUpgradedEvent = /*#__PURE__*/ createWatchContractEvent({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13307,7 +13316,7 @@ export const readLTokenSignaler = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13325,7 +13334,7 @@ export const readLTokenSignalerGlobalOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13343,7 +13352,7 @@ export const readLTokenSignalerOwner = /*#__PURE__*/ createReadContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13363,7 +13372,7 @@ export const readLTokenSignalerProxiableUuid = /*#__PURE__*/ createReadContract( * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13382,7 +13391,7 @@ export const readLTokenSignalerRenounceOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13401,7 +13410,7 @@ export const readLTokenSignalerTransferOwnership = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13418,7 +13427,7 @@ export const writeLTokenSignaler = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13436,7 +13445,7 @@ export const writeLTokenSignalerInitialize = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13455,7 +13464,7 @@ export const writeLTokenSignalerSignalLToken = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13473,7 +13482,7 @@ export const writeLTokenSignalerUpgradeTo = /*#__PURE__*/ createWriteContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13492,7 +13501,7 @@ export const writeLTokenSignalerUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13509,7 +13518,7 @@ export const simulateLTokenSignaler = /*#__PURE__*/ createSimulateContract({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13528,7 +13537,7 @@ export const simulateLTokenSignalerInitialize = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13547,7 +13556,7 @@ export const simulateLTokenSignalerSignalLToken = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13566,7 +13575,7 @@ export const simulateLTokenSignalerUpgradeTo = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13585,7 +13594,7 @@ export const simulateLTokenSignalerUpgradeToAndCall = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13602,7 +13611,7 @@ export const watchLTokenSignalerEvent = /*#__PURE__*/ createWatchContractEvent({ * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13621,7 +13630,7 @@ export const watchLTokenSignalerAdminChangedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13640,7 +13649,7 @@ export const watchLTokenSignalerBeaconUpgradedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13659,7 +13668,7 @@ export const watchLTokenSignalerInitializedEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13678,7 +13687,7 @@ export const watchLTokenSignalerLTokenSignalEventEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ @@ -13697,7 +13706,7 @@ export const watchLTokenSignalerOwnershipTransferredEvent = * - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x627Ff3485a2e34916a6E1c0D0b350A422F5d89D1) * - [__View Contract on Linea Goerli Testnet Etherscan__](https://goerli.lineascan.build/address/0x04a678103bE57c3d81100fe08e43C94e50adC37B) * - [__View Contract on Linea Mainnet Etherscan__](https://lineascan.build/address/0xBA427517505b14C560854aED003304Fc69cbadfb) - * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B) + * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x7A02c93681450241e97C87a2Decb511b42BB16f5) * - [__View Contract on Arbitrum Goerli Arbiscan__](https://goerli.arbiscan.io/address/0x1dA817E33C0dB209C7b508B79F9dac4480f94522) * - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xd4e65C7DC2c3b837ca8c91dc8541dE314b9188c3) */ diff --git a/src/lib/dapp/chains.ts b/src/lib/dapp/chains.ts index 20d449b3..007d3eb7 100644 --- a/src/lib/dapp/chains.ts +++ b/src/lib/dapp/chains.ts @@ -72,7 +72,7 @@ if (process.env.NODE_ENV !== "production") chainsEnv = "dev"; // Build chain lists for each environment, and export chains for the current one const prodChains: readonly [Chain, ...Chain[]] = [mainnet, arbitrum, linea, xlayerMainnet]; const devChains: readonly [Chain, ...Chain[]] = [ - // ...prodChains, + ...prodChains, mainnet, sepolia, hardhat, diff --git a/subgraph/config/base-sepolia.json b/subgraph/config/base-sepolia.json index b9e11991..8a1fd5ce 100644 --- a/subgraph/config/base-sepolia.json +++ b/subgraph/config/base-sepolia.json @@ -1,7 +1,7 @@ { "Network": "base-sepolia", - "LTokenSignaler_Address": "0x51890D5AF72Cd619f8bF1535e655b1A73a7b399B", - "LTokenSignaler_StartBlock": "9269469", - "LDYStaking_Address": "0x5F1E968d9103ddDc896ff44B4Aac9972A422b4c1", - "LDYStaking_StartBlock": "9269451" + "LTokenSignaler_Address": "0x7A02c93681450241e97C87a2Decb511b42BB16f5", + "LTokenSignaler_StartBlock": "12320814", + "LDYStaking_Address": "0xB5C69197e5D6A52c776384479B529D2d76f9e2De", + "LDYStaking_StartBlock": "12320814" } diff --git a/subgraph/subgraph.template.yaml b/subgraph/subgraph.template.yaml index 3236d587..e597bd57 100644 --- a/subgraph/subgraph.template.yaml +++ b/subgraph/subgraph.template.yaml @@ -80,7 +80,7 @@ templates: handler: handleTVLChangeEvent - event: APRChangeEvent(uint16) handler: handleAPRChangeEvent - - event: ActivityEvent(indexed int256,indexed address,indexed uint8,uint256,uint256,uint8,int256) + - event: ActivityEvent(indexed int256,indexed address,indexed uint8,uint256,uint256,uint8,int256,string) handler: handleActivityEvent - event: MintedRewardsEvent(indexed address,uint256,uint256) handler: handleMintedRewardsEvent