{"version":3,"sources":["logic/web3.js","logic/wnat.js","logic/ftsorewardmanager.js","logic/ftsomanager.js","logic/pricesubmitter.js","AppState.js","assets/FlareLogo.png","assets/SGBLogo.png","components/welcome/Welcome.jsx","assets/logout.svg","components/navbar/Navbar.jsx","loader1.svg","logo.svg","assets/WSGB.png","assets/SGB.png","assets/wFlareLogo.png","pages/Wrap.jsx","pages/Unwrap.jsx","components/delegation/Delegation.jsx","pages/Delegations.jsx","pages/Delegate.jsx","components/terms_main/TermsMain.jsx","pages/terms.jsx","App.js","reportWebVitals.js","index.js"],"names":["provider","signer","currentNetwork","getWNatContract","address","ethers","Contract","getFtsoRewardManagerContract","getFtsoManagerContract","getPriceSubmitterContract","getProvider","getSigner","setProvider","p","setSigner","s","setNetwork","n","getNetwork","networks","chainId","chainName","nativeCurrency","decimals","symbol","rpcUrls","blockExplorerUrls","knownFTSO","setupNetwork","network","window","ethereum","request","method","params","code","console","error","providers","Web3Provider","wrap","amount","priceSubmitterContract","getFtsoManager","ftsoManagerContract","rewardManager","ftsoRewardManagerContract","wNat","wNatContract","nat","utils","parseUnits","deposit","value","tx","wait","result","unwrap","withdraw","delay","ms","Promise","res","setTimeout","getWnatBalance","balanceOf","getAddress","balance","formatUnits","getDelegations","delegatesOf","delegations","forEach","e","i","push","toNumber","getAvailableDelegations","lenaAddress","available","getLenaDelegations","delegate","undelegate","from","getClaimable","rewardsContract","getEpochsWithUnclaimedRewards","epochs","claimableEpochs","rewardsAmount","BigNumber","length","getStateOfRewards","reward","_claimable","j","_dataProviders","_claimed","add","_rewardAmounts","formatEther","getUnclaimable","getCurrentRewardEpoch","currentRewardEpoch","pendingReward","pendingRewardsAmount","claim","rewardAddress","map","claimReward","slice","AppState","React","createContext","AppStateProvider","state","connected","Balance","wrappedbBalance","claimable","unclaimable","connect","checkNetwork","checkAccount","undefined","parseFloat","getBalance","setState","on","location","reload","handleChainChanged","isMetaMask","accounts","handleAccountsChanged","logout","checkWeb3","getWBalance","b","getRewards","Math","catch","floor","reset","SwitchNetwork","net","claimTx","this","Provider","props","children","Component","Welcome","context","useContext","useState","pop","setpop","his","useHistory","handlePop","className","style","margin","display","marginTop","href","onClick","src","FLR","width","alt","fontSize","color","SGB","Navbar","isOpen","setIsOpen","marginRight","title","cursor","fontFamily","fontWeight","LogoutButton","Wrap","loading","appState","setAppState","setbalance","useEffect","WrapTx","wrap_amount","document","getElementById","rewardadd","setRewardadd","SimpleAddress","substring","text","marginLeft","target","to","pathname","FLRICON","SGBICON","Number","toFixed","WFLRICON","WSGBICON","type","placeholder","onChange","loader","Logo","id","min","max","height","background","borderRadius","alignItems","justifyContent","Unwrap","setBalance","UnwrapTx","unwrap_amount","Delegation","delegation","toLowerCase","Delegations","LenaDelegated","setdelegations","getInfo","UpdateAppState","UndelegateTx","undelegateAll","filter","del","d","all","pro","newDel","cellSpacing","cellPadding","index","Delegate","delegated","setdelegation","getInfos","DelegateTx","UndelegateAll","name","step","defaultValue","TermsMain","textAlign","Terms","App","path","component","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","theme","createTheme","typography","h1","h2","h3","padding","h4","subtitle1","body1","button","poster","toplink","number","linklight","ReactDOM","render","ThemeProvider"],"mappings":"qXAMIA,EACAC,EACAC,E,qGCNG,SAASC,EAAgBH,EAAUI,GAaxC,OAAO,IAAIC,IAAOC,SAASF,EAZf,CACV,oCACA,6CACA,oEACA,yDACA,gEACA,oKACA,yEACA,kDACA,sDAGuCJ,GCbpC,SAASO,EAA6BP,EAAUI,GAGrD,OAAO,IAAIC,IAAOC,SAASF,EAFd,CAAC,CAAC,KAAO,cAAc,gBAAkB,aAAa,OAAS,CAAC,CAAC,KAAO,UAAU,KAAO,cAAc,aAAe,WAAW,CAAC,KAAO,UAAU,KAAO,6BAA6B,aAAe,WAAW,CAAC,KAAO,UAAU,KAAO,wBAAwB,aAAe,aAAa,CAAC,KAAO,QAAQ,KAAO,8BAA8B,OAAS,CAAC,CAAC,KAAO,UAAU,KAAO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ACZC,WAAY,IACZyE,UAAW,UAEbmB,GAAI,CACFtG,SAAU,GACVS,WAAY,SACZC,WAAY,IACZ6F,QAAS,GACTpB,UAAW,UAEbqB,GAAI,CACFxG,SAAU,GACVS,WAAY,SACZC,WAAY,IACZ6F,QAAS,GACTpB,UAAW,UAEbsB,UAAW,CACTzG,SAAU,IAEZ0G,MAAO,CACLhG,WAAY,KAEdiG,OAAQ,CACNlG,WAAY,QAEdmG,OAAQ,CACN3G,MAAO,OAET4G,QAAS,CACP5G,MAAO,SAET6G,OAAQ,CACN9G,SAAU,IACVS,WAAY,OACZR,MAAO,UACPsG,QAAS,IAEXQ,UAAW,CACT/G,SAAU,GACVS,WAAY,SACZC,WAAY,IACZT,MAAO,cAKb+G,IAASC,OACP,eAACC,EAAA,EAAD,CAAejB,MAAOA,GAAtB,SACE,eAAC,GAAD,UACE,eAAC,GAAD,QAGJ7E,SAASC,eAAe,SAM1BmE,M","file":"static/js/main.895a591a.chunk.js","sourcesContent":["import { ethers } from \"ethers\";\nimport { getWNatContract } from \"./wnat.js\";\nimport { getFtsoRewardManagerContract } from \"./ftsorewardmanager\";\nimport { getFtsoManagerContract } from \"./ftsomanager\";\nimport { getPriceSubmitterContract } from \"./pricesubmitter\";\n\nlet provider;\nlet signer;\nlet currentNetwork;\n\nexport const getProvider = () => provider;\nexport const getSigner = () => signer;\n\nexport const setProvider = (p) => {\n provider = p;\n};\nexport const setSigner = (s) => {\n signer = s;\n};\nexport const setNetwork = (n) => {\n currentNetwork = n;\n};\n\nexport const getNetwork = () => currentNetwork;\n\nexport const networks = {\n \"0x13\": {\n chainId: \"0x13\",\n chainName: \"Songbird\",\n nativeCurrency: { decimals: 18, symbol: \"SGB\" },\n rpcUrls: [\"https://songbird.towolabs.com/rpc\"],\n blockExplorerUrls: [\"https://songbird-explorer.flare.network/\"],\n },\n \"0xe\": {\n chainId: \"0xe\",\n chainName: \"Flare\",\n nativeCurrency: { decimals: 18, symbol: \"FLR\" },\n rpcUrls: [\"https://flare-api.flare.network/ext/C/rpc\"],\n blockExplorerUrls: [\"https://flare-explorer.flare.network/\"],\n },\n};\n\nexport const defaultNetwork = \"0x13\";\n\nexport const knownFTSO = {\n \"0x021305bb75b9d7f720fd328d137114c930917b62\": \"Flare Trusted #1\",\n \"0x651ccebfa2c5aa1e6d9c6180d91079f120314080\": \"Flare Trusted #2\",\n \"0x96b83d3f73e44c9a96388cf1d116595551daeb5a\": \"Flare Trusted #3\",\n \"0x69141e890f3a79cd2cff552c0b71508be23712dc\": \"Bifrost Oracle\",\n \"0x9a46864a3b0a7805b266c445289c3fad1e48f18e\": \"Bifrost Oracle\",\n \"0x4ed9e5b82ce66311ac2230d2fccc5202d7b8c083\": \"ScandiNodes FTSO\",\n \"0xB6d771E1892EB2c04b136C13Abe23390022e8206\": \"ScandiNodes FTSO\",\n \"0x6d323e71e141ce2d7b752313c8a654a9c9d1b377\": \"Aureus Ox\",\n \"0x9269fb79b098ab314de8a1e2afb8705678520443\": \"Aureus Ox\",\n \"0xbf61db1cdb43d196309824473fa82e5b17581159\": \"AlphaOracle\",\n \"0x47b6effe71abd4e8cdcc56f2341beb404f804b87\": \"AlphaOracle\",\n \"0x010a16c53f33e4d93892f00897965578b55a8cfc\": \"FTSO EU\",\n \"0xb0421af2cffb21d8a0be4087448146e4f9cbd306\": \"FTSO EU\",\n \"0xb9b7355f5b71cee345311921d247b1d2ba5cfe90\": \"FTSO UK\",\n \"0x5f911c2c681f678e5a3a8d54f950d6b192cc16e3\": \"FTSO UK\",\n \"0x499017adb21d6f70480e4e6224cf4144071c1461\": \"FTSO AU\",\n \"0x4990320858AE3528B645C60059281a66C3488888\": \"FTSO AU\",\n \"0x53caedda4339ed74272ecfef85b657def18fa2e4\": \"Use Your Spark\",\n \"0xa288054b230dcbb8689ac229d6dbd7df39203181\": \"Use Your Spark\",\n \"0x7394923453fc2f606cfb4d0ea1a5438bb8260d08\": \"Sun-Dara\",\n \"0x1e8f916ce03f4ce86186531a8994d366581ed4be\": \"Sun-Dara\",\n //\"0x62d6116d6a139f2d402e8d8e30baaf5790542801\": \"Interoracle\",\n \"0xc9ac8f034d295962a6a975b717b691437605bbb6\": \"Lena Instruments\",\n \"0xdde9BcB57cbA00A9718b67b4074ec6B62C542957\": \"Lena Instruments \",\n \"0x2d7bf53ed6117ad1dcd6416d460481522a16afdf\": \"A-FTSO\",\n \"0xAF7504242064532CbD3370aD7591452B1D09BBdc\": \"A-FTSO\",\n \"0x939789ed3d07a80da886a3e3017d665cbb5591dc\": \"Best FTSO\",\n \"0xCa60cd408A5E447897258cDB1F699478c71Cc55E\": \"Defi Oracles\",\n \"0x3fE77e9be1ECcDe815311f9bcc40814F4eC6AE09\": \"Defi Oracles\",\n \"0xb53D69B2519aC9F6D65cff8e7824Bf09F7064D61\": \"uGaenn\",\n \"0xe3a76233885E355cFaF141D7dd3D92705C9db4D5\": \"uGaenn\",\n //\"0xDDEF7e54a9f72D9Fc0a281b42F15A22B30681da5\": \"Optakt\",\n \"0x9565d813a3a0cea62b3bdb9a4e236dcb5910c4f0\": \"AFOracle\",\n \"0xAf05Ac13F4a4e754a496B46bbd611F5FFDb42606\": \"AFOracle\",\n \"0x33DDAe234e403789954CD792e1feBdBE2466ADC2\": \"FTSOExpress\",\n \"0xc0452CEcee694Ab416d19E95a0907f022DEC5664\": \"FTSOExpress\",\n \"0x819eaB111BD9A6E595187A914240529D2EFfF21f\": \"HEWG\",\n \"0xB6d68Ea6C4dE734Ec481F92AFD1C35F712441b73\": \"HEWG\",\n \"0x0FA72D3912d1C530AB1f6a8A9fB61C672947E964\": \"FTSO Plus\",\n \"0x3D2c08eD9B2333cbce2b8A219e02F4Aa31ebcCd3\": \"FTSO Plus\",\n \"0x1B00870092a929D160492daf8E734b4bCA033266\": \"Flare Oracle\",\n \"0xF0F095bbd5e2E33e9c1703cdEDd0015280406E90\": \"Flare Oracle\",\n \"0xa467ACeE8127C55Fb1f4d3b863EA5b0C4F599b9b\": \"HONO-TSO\",\n \"0xf455C12ed41edcD4c2FcC8a73F420e5833348A02\": \"HONO-TSO\",\n \"0xE70d5351a842131c66AAeBC4bD604912BF3cBa72\": \"Scintilla\",\n \"0xeFb939Ebe430efD987c2650367a1b2c9f070d3f1\": \"Scintilla\",\n \"0xfB9197720329a80191BA140844E96DCcAD149014\": \"LightFTSO\",\n \"0xA9C69eb9De79188A9ABa46c5336607F88A80eC89\": \"LightFTSO\",\n \"0x92D6c2E99d5959F2e9c0a7aba5149D8A5ef22f23\": \"Oracle Daemon\",\n \"0xfe532cB6Fb3C47940aeA7BeAd4d61C5e041D950e\": \"Oracle Daemon\",\n //\"0xE76Bc13136338f27363425FcbCB36967B0540176\": \"Flare Kollektiv\",\n \"0x285430390a72Ce038f6e54BF10f24B94A550474f\": \"Dione\",\n \"0x4F7f5F8eF4a3CC11f94e875393Ee909Eb5f824ea\": \"FlareFTSO\",\n \"0x58048528D3d3aea14Ec95eb5e98b18dE51780e27\": \"FlareFTSO\",\n \"0xaF31CA175bbE0C6dD667c8403B65a33b28238afa\": \"African Proofs\",\n \"0x7808b9E0F7c488172B54B30f98C2FcF36D903B2c\": \"African Proofs\",\n \"0x5f3C5991De3F0713715a733eE125785D516cEb16\": \"FlareFi\",\n \"0x184DbC7F2D96aBDfDe5CDa8c56F3F13DbF138cdF\": \"FlareFi\",\n \"0xD9200CC419BDe28B169AD8c904d2687a15A4Bf9F\": \"WitterFTSO\",\n \"0x4A74e79738009711a6ddB6653614d43ba9F431b9\": \"WitterFTSO\",\n \"0x8888888830A0fddAaa09CCD891fF5D35fb45D2A6\": \"BeamFTSO\",\n \"0x35D73107A089Ac2b3b14a6681D8c408Aab9568D3\": \"4DadsFTSO\",\n \"0xC522E6A633545872f1afc0cdD7b2D96d97E3dE67\": \"4DadsFTSO\",\n //\"0xF8b92bE7ffB021B074F8621765D72dA4C8862749\": \"Dank FTSO\",\n \"0x2De2C741658f0Ae7b2DdD8EAdD179911564af119\": \"Aternety\",\n \"0xD3956F862a4960bB4937e596a2BaeCFfCbb4b3e0\": \"Aternety\",\n \"0xeceFe81ff88E5609704697De20Cc36990b76d633\": \"1FTSO\",\n //\"0x6fF5947eF89754682aD765b79C11f33452756D0B\": \"FTSO.IT\",\n //\"0x111246F191a2A20012723369d3CEc77777E774E9\": \"Flare.Space\",\n //\"0xCcd522393233052Dd0DfeAadc124a0a9bB87FD08\": \"Flare.Space\",\n //\"0x0438173837B6e4Ae11C724Ae06A128c4B9f0EdF2\": \"Dragon Oracle\",\n \"0x821BDE578955B35F9F2C9022268E5BC748994f71\": \"Comfy Nodes\",\n //\"0x6D457FbA88729c683015a308232b805C857e0EAe\": \"Mayanodes\",\n \"0x1184F1dF8EE3AcdFb917a5816013d3673f586cC1\": \"Topbird\",\n \"0xf45e6102E702A95f633D1D914f6FB5f0cA344E80\": \"Topbird\",\n \"0x32fE8AC862453DC1B8a390CD3AF821b4FA6fF39D\": \"FTSO GG\",\n \"0x2d3bdE536ad297f2EA74965f02C9E42f4780fB6A\": \"Xdrops Oracle\",\n \"0x112B1130BD78B5A520adeace6130151E07a270a7\": \"Xdrops Oracle\",\n \"0x664e070592063bFE5072F0aC25C6C11e5ccF9928\": \"InGen.FTSO\",\n \"0x4c97f55d2Ed9C84ECc4Db836d5Fc4F191deA30aE\": \"Bitrue\",\n \"0x2c8c4cA06D4dC335b37034a0315a00c04b409781\": \"Bitrue\",\n \"0xEF4ef2f3B8C69282846a98341095baa018247553\": \"PRICEKRAKEN\",\n \"0xB95f930711DA83226416FFaAB084249B2e01e1F2\": \"PRICEKRAKEN\",\n \"0x74664cA92690C1EaD5382808dE0de4B04a2E57Ae\": \"Viridissima.es\",\n \"0xbADF00D6387958a3E7747C0A0CF5E5a06dcc90c0\": \"Viridissima.es\",\n //\"0xbADF00D6387958a3E7747C0A0CF5E5a06dcc90c0\": \"SGBFTSO.com\",\n \"0x3012c799565010C3b090D252839a3D24f3b766bE\": \"Sparkles FTSO\",\n \"0x3D985CFF3C4680428d5ce093dBc4919a57F6E2f6\": \"Sparkles FTSO\",\n \"0x0708a4C813594b7E0218CB4A5D8b75c76AbFc859\": \"FTSO London\",\n \"0x4429306b301a0EB573Fa5758BB40AA581255c624\": \"FTSO London\",\n //\"0xe11984cAc4518eBC18c428b86884b5b1cc1F7be0\": \"sigma7\",\n \"0xF1Bd86b547a25921F800AdBb3F35f6E88D336c72\": \"FTSORK\",\n \"0x22a95C2DB77742FFb127f6b084BEdEE4d182e1ba\": \"FTSORK\",\n \"0x3ed7b2cCC4BA420CdcE2BA232d3efdc13075F16D\": \"Oracle Beast FTSO\",\n \"0x5E2aFfA528DB55feE8cf8cCC41d0A5bb8BaCedC3\": \"Oracle Beast FTSO\",\n \"0x833DDe54A28a3070A086Cc8919BeAa7a0134DE46\": \"Flaris\",\n \"0xf8B1Dcf2594AfD082aae088661bF574CB9BbDC61\": \"Flaris\",\n \"0x263fEca2d46754Aa71BC4Cfc460e8E3055699324\": \"SignalChamp\",\n \"0xB0EBac02775B5fD157659c3483AC3a205786c2E7\": \"SignalChamp\",\n \"0x04Bd6870d801D68CD58163900B8EED6BDDdA29cB\": \"Tailwind FTSO\",\n \"0xC8c1F188a891b8627e2cBcdc8a67A2Ed01aB8f10\": \"Tailwind FTSO\",\n \"0xDe4051b333b3063fd28267Cd4412DD25233D0Ae1\": \"Flare Dienst\",\n \"0xDe40311b4b538392e0e7dCC134426C397c956cA9\": \"Flare Dienst\",\n \"0x86eC5c8Ce7a4DD7762Cff205d64Bfc0C272feB6d\": \"ACDTftso\",\n \"0xAc2884A4479Bf7c21AA0462d52bc9c76c3a9A3dD\": \"ACDTftso\",\n \"0xb9dBa66d8e88c6D620F11Ce32553E0CfBC776926\": \"FTSO Brasil\",\n \"0x0DDD059Bf29DE115b48B2844E112eA9A2fcCfC2b\": \"FTSO Brasil\",\n \"0x0f80AF5b905a9A34f69E74412c4A00B231D26dAa\": \"EvolveFTSO\",\n \"0x9b5F4A2177135A2A6DC83893D5d58e684419aB24\": \"EvolveFTSO\",\n \"0x4619Ae2f09cF5e6da873C501a12D86AaCbD7962B\": \"Knot Nodes\",\n \"0xF33A0Ac50f2E85737af577ea68583f264C7A1f78\": \"Knot Nodes\",\n \"0x9225db8B30A59D8Dd15448E2E5918BD160262b5D\": \"Flare Portal\",\n //\"0xc3c4C0A44ef34cf60d9076F66C8411793375a4Ff\": \"Nerdherd.ai\",\n //\"0xE899f8Cca524E9d7681548709e7A87c41adB0c53\": \"Nerdherd.ai\",\n \"0xDD27994108c788613800A8356253Aad99A5DAeD5\": \"FTSO Wales\",\n \"0x04a8b3171fBbfe4554B55190B43E709c4b672030\": \"NORTSO\",\n \"0x00c0fFEf480E392f5Fe7af592214855Ff872fa80\": \"NORTSO\",\n \"0x0d3852Ad415477fFC39ce9351bD4dEdbbd585833\": \"BushiFinance\",\n \"0xC7cF3238D2ca63d01Ad4d42B4cCB9dB8b0adE702\": \"BushiFinance\",\n \"0x729589694a78FF2D8BACf75b7AC4389bd53ee533\": \"sToadz FTSO\",\n \"0x6Bf25C0256CBE8969424F6994e19Cf5e0A3C23Bb\": \"sToadz FTSO\",\n \"0x15bC48091332808391ac700A980B12dD4FC266Fb\": \"SSDS\",\n \"0x6c6b3560704Da8A2c33B1BB00E88bA343807E565\": \"Solarius\",\n \"0x8863eAD675DfF5Cf260D5FdC079d50996D1F3cd4\": \"Solarius\",\n \"0x35149714467F2FE71b46eEb4d11689ED8728Bd25\": \"Ugly Kitty\",\n \"0x3774c4Fdd0a52B202d7583Fa938A77ac252d770f\": \"ApeFTSO\",\n \"0x622f389d96D3E6BaE90bAd965Fd51d5a04f85922\": \"ApeFTSO\",\n \"0x78A99Aa32cDe18B33B150941fBF718715d15Af6a\": \"Wonderftso\",\n \"0x4c1F288cAFECbbDac653C2170337c38e62c400E9\": \"Wonderftso\",\n //\"0x6dB5149c022D17f0ec1dd18e01ddb890509E08F3\": \"Nomikai FTSO\",\n \"0xAe45A3c0aD97504814752ea74820Ac14991E030c\": \"Singularity Finance\",\n \"0x88d7767a64ED01300C616d3432ea5ca307ec2192\": \"Singularity Finance\",\n \"0x7C255e428e95bEbc76e944D49D4F460C84b3A3c3\": \"FTSOCAN\",\n \"0x9e55a49D251324B1623dc2A81894D1AfBfB8bbdC\": \"FTSOCAN\",\n \"0x1a696Acb220a4f76153c779f828d0Ba99028770a\": \"SAKURA\",\n \"0x7081a25589875F5d9D91d9f58bcf466706D8f997\": \"SAKURA\",\n \"0x229458A754CD1aeBa8A0c87f59E22777D593B85a\": \"O1 FTSO\",\n \"0xBE304C28F3a050486b9733AE56cB5541B16c007B\": \"O1 FTSO\",\n //\"0x3cA9aA64A040644c00302b2287447bC97597B1dd\": \"Maple\",\n //\"0xA815c4ab86a2bc36D1447Dc9344C6D0ed8251e36\": \"Maple\",\n \"0x01793Cac76c24f3b739128372D4A25B49eC4f963\": \"WEBB FTSO\",\n \"0x633CE03ea66d910c15869e1552fDccC2bf9aAD87\": \"Flare Beacon\",\n \"0xdd33Ba13F32C90D678422251B52B005335fB7A4c\": \"Flare Beacon\",\n \"0x4E6c61d1DC945EeBd3Fc9A6251BD8B8b5EbD5637\": \"OracleSwap FTSO\",\n \"0xEdFac79f110b0d792941508867f84552E6f3AA75\": \"OracleSwap FTSO\",\n \"0x1C602a30335187A97D8061Ffffd4522796DE82bF\": \"EDPFTSO\",\n \"0xad918962795547a8c997F96f7BAbB822612a5FfE\": \"EDPFTSO\",\n \"0xA174D46EF49D7d4a0328f9910222689E9eAb2f45\": \"Ivy Oracle\",\n \"0x64D998BC81424131E5aF05071263fDeBD1a82986\": \"Ivy Oracle\",\n \"0x0937E91c116767ffD2256ABc15B67561BaD5d1C2\": \"FTSO4ALL\",\n \"0xA99C45A2D3dF0547CD43190cB388EfC8bCdd75Ec\": \"FTSO4ALL\",\n \"0x769530a9F2e4624aE2D6869869d510D4cd55b545\": \"SolidiFi FTSO\",\n \"0x4CfB79399cd840414a2BeF2c7C7A0cE3b9b0F89d\": \"SolidiFi FTSO\",\n //\"0x7B6DA41157852a86142bc4c62A73f969AC15a869\": \"Ad. Owl\",\n //\"0xad6f97449d5D7C6c191B58792137E6204bD0538F\": \"Ad. Owl\",\n \"0x58Cd43E9FcdBd4D0F507aB4f6029dB8032746da8\": \"Envision\",\n \"0x9b42B895D2A10D048eaf4996fDf93aEBf59167BF\": \"Envision\",\n \"0x2C293599ca61bb53e8fF82c8a19c2A8B883ea23f\": \"TheGrungies\",\n \"0x085841B253590281cc5c5222b09D4e59a605E774\": \"TheGrungies\",\n \"0xA9a143FEe74E12E97DC794fD1340f851813BDA92\": \"Starlink Oracle\",\n \"0xEb190a42eff3bCCAf65A432F2B7D2b1CaBE30c25\": \"Starlink Oracle\",\n \"0x0501B6306b03A9EEDe8165d4B9abCB4915937b89\": \"Aimlezz\",\n \"0xD1eDC6Dd3Ba8b0881A44002Ac501a69E924b8F00\": \"Aimlezz\",\n \"0xC84d776Ddf92dA03C37d77BC65519AF696cDfe8b\": \"NewWave\",\n \"0xF1f2a4859EA38A0c2CEb2eAF4c591a8257F2BB34\": \"NewWave\",\n \"0x399A2dE69e38D93bc397Eb2b1f5487bD25a71C00\": \"MyFTSO\",\n \"0x6da8b10612c2C5a5A62642d4a666bC830E74FC40\": \"MyFTSO\",\n \"0xB5ECB64526F777Eb6f02D4A83AbAB1FAD26b1C00\": \"Atlas TSO\",\n \"0x07702A7494F760B0b3642463BdD2B7A13cFDDbb2\": \"Atlas TSO\",\n \"0x190C6f470A866Db58A6c17631e24b07BE257eAf5\": \"XAWC FTSO\",\n \"0x07aDBa9ecB8de51AeC39d8FF90cD8e49DBcFfd02\": \"XAWC FTSO\",\n \"0x8FdBcb218561776759702b175084dBa856282a88\": \"Odin\",\n \"0x0701ab70BB0deb504e2daD44ffe2f8E0f7399a1D\": \"Odin\",\n \"0xb6deD9D9CA19af10C67f9A8be8ca75e38E166faA\": \"True FTSO\",\n \"0xE304AF184b9ca77E3576Aef834A4dc1A43EBfA70\": \"Mickey B Fresh\",\n \"0x4E94Dbff86b7f1F5ac9FD849E8101A4d52E947eC\": \"Mickey B Fresh\",\n \"0xa41d19F4258a388c639B7CcD938FCE3fb7D05e86\": \"FTSchizO\",\n \"0x889FD8C79FCC81E619b720BD589154C2c9fD74e9\": \"CFN\",\n \"0xf12f09E8Ee7E0C0D0b3279120325A97dc821E971\": \"CFN\",\n \"0x4eb408FA585a5C66E523a4aE5f5706374Ec9E8c7\": \"TempestFTSO\",\n \"0x96616c93747baBE136bB56310bE2AE665b18dA63\": \"TempestFTSO\",\n \"0x15942e7dE003424A3e11C213Cd05e4fE9B8A9D7a\": \"Nikola\",\n \"0xb76865823f68b48b02Bb9604A2CD886eB49A9f3D\": \"Canary FTSO\",\n \"0x7776fC062AE648466958a28b3001f6a4517a147c\": \"The Fat Cats FTSO\",\n \"0x961ECd8906B7CEd689c45b7EDB5b1e355CbEED45\": \"The Fat Cats FTSO\",\n \"0x6c6F1d0FBF5E21C3f8B2aE6ef3E2EF479f95F438\": \"HXK Oracle\",\n \"0x3805762710f1aeb3b62d3Cd36820eA19eb88a8D0\": \"HXK Oracle\",\n \"0xB8de9A52E1Dca1Df3DEc5baa919985d00D2739db\": \"Super Bad Series FTSO\",\n \"0xefc66E65c64B000778F487A0262664b802bA773c\": \"Super Bad Series FTSO\",\n \"0x14d699c1d61d54a0390671B07B2b6f8C0Bf36275\": \"HT Markets FTSO\",\n \"0xC77c8e1202c1A8264b37264EB6c08cb86a718d1a\": \"HT Markets FTSO\",\n};\n\nexport async function setupNetwork(network) {\n try {\n await window.ethereum.request({\n method: \"wallet_switchEthereumChain\",\n params: [{ chainId: networks[network].chainId }],\n });\n } catch (switchError) {\n if (switchError.code === 4902) {\n try {\n await window.ethereum.request({\n method: \"wallet_addEthereumChain\",\n params: [networks[network]],\n });\n } catch (addError) {\n if (addError.code === 4001) {\n console.error(\"Please approve Songbird network.\");\n } else {\n console.error(addError);\n }\n }\n } else {\n console.error(switchError);\n }\n }\n provider = new ethers.providers.Web3Provider(window.ethereum);\n signer = provider.getSigner();\n}\n\nexport async function wrap(amount) {\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const ftsoRewardManagerContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const wNatContract = getWNatContract(\n signer,\n await ftsoRewardManagerContract.wNat()\n );\n const nat = ethers.utils.parseUnits(amount, 18);\n const tx = await wNatContract.deposit({ value: nat });\n const result = await tx.wait();\n return result;\n}\n\nexport async function unwrap(amount) {\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const ftsoRewardManagerContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const wNatContract = getWNatContract(\n signer,\n await ftsoRewardManagerContract.wNat()\n );\n const nat = ethers.utils.parseUnits(amount, 18);\n const tx = await wNatContract.withdraw(nat);\n const result = await tx.wait();\n return result;\n}\n\nconst delay = (ms) => new Promise((res) => setTimeout(res, ms));\n\nexport async function getWnatBalance() {\n while (typeof signer === \"undefined\" || typeof currentNetwork === \"undefined\")\n await delay(300);\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const ftsoRewardManagerContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const wNatContract = getWNatContract(\n signer,\n await ftsoRewardManagerContract.wNat()\n );\n const balance = await wNatContract.balanceOf(signer.getAddress());\n return ethers.utils.formatUnits(balance, 18);\n}\n\nexport async function getDelegations() {\n while (typeof signer === \"undefined\" || typeof currentNetwork === \"undefined\")\n await delay(300);\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const ftsoRewardManagerContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const wNatContract = getWNatContract(\n signer,\n await ftsoRewardManagerContract.wNat()\n );\n const result = await wNatContract.delegatesOf(signer.getAddress());\n const delegations = [];\n result[0].forEach((e, i) =>\n delegations.push({ address: e, amount: result[1][i].toNumber() })\n );\n return delegations;\n}\n\nexport async function getAvailableDelegations(lenaAddress) {\n const delegations = await getDelegations();\n let available = 10000;\n delegations.forEach((e) => {\n if (e.address !== lenaAddress) available -= e.amount;\n });\n return available / 100;\n}\n\nexport async function getLenaDelegations(lenaAddress) {\n const delegations = await getDelegations();\n let result = 0;\n delegations.forEach((e) => {\n if (e.address === lenaAddress) result += e.amount;\n });\n return result / 100;\n}\n\nexport async function getDelegationType() {\n while (typeof signer === \"undefined\" || typeof currentNetwork === \"undefined\")\n await delay(300);\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const ftsoRewardManagerContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const wNatContract = getWNatContract(\n signer,\n await ftsoRewardManagerContract.wNat()\n );\n const delegationType = await wNatContract.delegationModeOf(\n signer.getAddress()\n );\n return delegationType;\n}\n\nexport async function delegate(amount, lenaAddress) {\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const ftsoRewardManagerContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const wNatContract = getWNatContract(\n signer,\n await ftsoRewardManagerContract.wNat()\n );\n const tx = await wNatContract.delegate(lenaAddress, \"\" + amount * 100);\n return await tx.wait();\n}\n\nexport async function undelegate(from) {\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const ftsoRewardManagerContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const wNatContract = getWNatContract(\n signer,\n await ftsoRewardManagerContract.wNat()\n );\n const tx = await wNatContract.delegate(from, \"0\");\n return await tx.wait();\n}\n\nexport async function getClaimable() {\n while (typeof signer === \"undefined\" || typeof currentNetwork === \"undefined\")\n await delay(300);\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const rewardsContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const epochs = await rewardsContract.getEpochsWithUnclaimedRewards(\n signer.getAddress()\n );\n const claimableEpochs = [];\n let rewardsAmount = ethers.BigNumber.from(0);\n for (let i = 0; i < epochs.length; i++) {\n const reward = await rewardsContract.getStateOfRewards(\n signer.getAddress(),\n epochs[i]\n );\n if (reward._claimable) {\n claimableEpochs.push(epochs[i]);\n for (let j = 0; j < reward._dataProviders.length; j++) {\n if (!reward._claimed[j]) {\n rewardsAmount = rewardsAmount.add(reward._rewardAmounts[j]);\n }\n }\n }\n }\n return ethers.utils.formatEther(rewardsAmount);\n}\n\nexport async function getUnclaimable() {\n while (typeof signer === \"undefined\" || typeof currentNetwork === \"undefined\")\n await delay(300);\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const rewardsContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const currentRewardEpoch = await ftsoManagerContract.getCurrentRewardEpoch();\n const pendingReward = await rewardsContract.getStateOfRewards(\n signer.getAddress(),\n currentRewardEpoch\n );\n let pendingRewardsAmount = ethers.BigNumber.from(0);\n for (let j = 0; j < pendingReward._dataProviders.length; j++) {\n const amount = pendingReward._rewardAmounts[j];\n pendingRewardsAmount = pendingRewardsAmount.add(amount);\n }\n return ethers.utils.formatEther(pendingRewardsAmount);\n}\n\nexport async function claim(rewardAddress) {\n const priceSubmitterContract = getPriceSubmitterContract(provider);\n const ftsoManagerContract = getFtsoManagerContract(\n provider,\n await priceSubmitterContract.getFtsoManager()\n );\n const rewardsContract = getFtsoRewardManagerContract(\n signer,\n await ftsoManagerContract.rewardManager()\n );\n const epochs = await rewardsContract.getEpochsWithUnclaimedRewards(\n signer.getAddress()\n );\n const claimableEpochs = await epochs.map(async (e) => {\n const reward = await rewardsContract.getStateOfRewards(\n signer.getAddress(),\n e\n );\n if (reward._claimable) return e;\n });\n const tx = await rewardsContract.claimReward(\n rewardAddress,\n claimableEpochs.slice(0, 20)\n );\n return await tx.wait();\n}\n","import { ethers } from \"ethers\";\n\nexport function getWNatContract(provider, address) {\n const abi = [\n \"function deposit() public payable\",\n \"function withdraw(uint256 amount) external\",\n \"function balanceOf(address account) public view returns (uint256)\",\n \"function delegate(address _to, uint256 _bips) external\",\n \"function delegateExplicit(address _to, uint _amount) external\",\n \"function delegatesOf(address _owner) external view returns (address[] memory _delegateAddresses, uint256[] memory _bips, uint256 _count, uint256 _delegationMode)\",\n \"function delegationModeOf(address _who) external view returns(uint256)\",\n \"event Deposit(address indexed dst, uint amount)\",\n \"event Withdrawal(address indexed src, uint amount)\",\n ];\n\n return new ethers.Contract(address, abi, provider);\n}\n","import { ethers } from \"ethers\";\n\nexport function getFtsoRewardManagerContract(provider, address) {\n const abi = [{\"type\":\"constructor\",\"stateMutability\":\"nonpayable\",\"inputs\":[{\"type\":\"address\",\"name\":\"_governance\",\"internalType\":\"address\"},{\"type\":\"uint256\",\"name\":\"_feePercentageUpdateOffset\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_defaultFeePercentage\",\"internalType\":\"uint256\"}]},{\"type\":\"event\",\"name\":\"DailyAuthorizedInflationSet\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"authorizedAmountWei\",\"internalType\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"FeePercentageChanged\",\"inputs\":[{\"type\":\"address\",\"name\":\"dataProvider\",\"internalType\":\"address\",\"indexed\":true},{\"type\":\"uint256\",\"name\":\"value\",\"internalType\":\"uint256\",\"indexed\":false},{\"type\":\"uint256\",\"name\":\"validFromEpoch\",\"internalType\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"GovernanceProposed\",\"inputs\":[{\"type\":\"address\",\"name\":\"proposedGovernance\",\"internalType\":\"address\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"GovernanceUpdated\",\"inputs\":[{\"type\":\"address\",\"name\":\"oldGovernance\",\"internalType\":\"address\",\"indexed\":false},{\"type\":\"address\",\"name\":\"newGoveranance\",\"internalType\":\"address\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"InflationReceived\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"amountReceivedWei\",\"internalType\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RewardClaimed\",\"inputs\":[{\"type\":\"address\",\"name\":\"dataProvider\",\"internalType\":\"address\",\"indexed\":true},{\"type\":\"address\",\"name\":\"whoClaimed\",\"internalType\":\"address\",\"indexed\":true},{\"type\":\"address\",\"name\":\"sentTo\",\"internalType\":\"address\",\"indexed\":true},{\"type\":\"uint256\",\"name\":\"rewardEpoch\",\"internalType\":\"uint256\",\"indexed\":false},{\"type\":\"uint256\",\"name\":\"amount\",\"internalType\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RewardClaimsExpired\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"rewardEpochId\",\"internalType\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RewardsDistributed\",\"inputs\":[{\"type\":\"address\",\"name\":\"ftso\",\"internalType\":\"address\",\"indexed\":true},{\"type\":\"uint256\",\"name\":\"epochId\",\"internalType\":\"uint256\",\"indexed\":false},{\"type\":\"address[]\",\"name\":\"addresses\",\"internalType\":\"address[]\",\"indexed\":false},{\"type\":\"uint256[]\",\"name\":\"rewards\",\"internalType\":\"uint256[]\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"activate\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"bool\",\"name\":\"\",\"internalType\":\"bool\"}],\"name\":\"active\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"claimGovernance\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"_rewardAmount\",\"internalType\":\"uint256\"}],\"name\":\"claimReward\",\"inputs\":[{\"type\":\"address\",\"name\":\"_recipient\",\"internalType\":\"address payable\"},{\"type\":\"uint256[]\",\"name\":\"_rewardEpochs\",\"internalType\":\"uint256[]\"}]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"_rewardAmount\",\"internalType\":\"uint256\"}],\"name\":\"claimRewardFromDataProviders\",\"inputs\":[{\"type\":\"address\",\"name\":\"_recipient\",\"internalType\":\"address payable\"},{\"type\":\"uint256[]\",\"name\":\"_rewardEpochs\",\"internalType\":\"uint256[]\"},{\"type\":\"address[]\",\"name\":\"_dataProviders\",\"internalType\":\"address[]\"}]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"closeExpiredRewardEpoch\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"_rewardEpoch\",\"internalType\":\"uint256\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"dailyAuthorizedInflation\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"deactivate\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"defaultFeePercentage\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"distributeRewards\",\"inputs\":[{\"type\":\"address[]\",\"name\":\"_addresses\",\"internalType\":\"address[]\"},{\"type\":\"uint256[]\",\"name\":\"_weights\",\"internalType\":\"uint256[]\"},{\"type\":\"uint256\",\"name\":\"_totalWeight\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_epochId\",\"internalType\":\"uint256\"},{\"type\":\"address\",\"name\":\"_ftso\",\"internalType\":\"address\"},{\"type\":\"uint256\",\"name\":\"_priceEpochDurationSeconds\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_currentRewardEpoch\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_priceEpochEndTime\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_votePowerBlock\",\"internalType\":\"uint256\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"feePercentageUpdateOffset\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"contract IIFtsoManager\"}],\"name\":\"ftsoManager\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"bool\",\"name\":\"_claimed\",\"internalType\":\"bool\"},{\"type\":\"uint256\",\"name\":\"_amount\",\"internalType\":\"uint256\"}],\"name\":\"getClaimedReward\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"_rewardEpoch\",\"internalType\":\"uint256\"},{\"type\":\"address\",\"name\":\"_dataProvider\",\"internalType\":\"address\"},{\"type\":\"address\",\"name\":\"_claimer\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"getDataProviderCurrentFeePercentage\",\"inputs\":[{\"type\":\"address\",\"name\":\"_dataProvider\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256[]\",\"name\":\"_feePercentageBIPS\",\"internalType\":\"uint256[]\"},{\"type\":\"uint256[]\",\"name\":\"_validFromEpoch\",\"internalType\":\"uint256[]\"},{\"type\":\"bool[]\",\"name\":\"_fixed\",\"internalType\":\"bool[]\"}],\"name\":\"getDataProviderScheduledFeePercentageChanges\",\"inputs\":[{\"type\":\"address\",\"name\":\"_dataProvider\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"_totalReward\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_claimedReward\",\"internalType\":\"uint256\"}],\"name\":\"getEpochReward\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"_rewardEpoch\",\"internalType\":\"uint256\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"_startEpochId\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_endEpochId\",\"internalType\":\"uint256\"}],\"name\":\"getEpochsWithClaimableRewards\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256[]\",\"name\":\"_epochIds\",\"internalType\":\"uint256[]\"}],\"name\":\"getEpochsWithUnclaimedRewards\",\"inputs\":[{\"type\":\"address\",\"name\":\"_beneficiary\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}],\"name\":\"getInflationAddress\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"getRewardEpochToExpireNext\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address[]\",\"name\":\"_dataProviders\",\"internalType\":\"address[]\"},{\"type\":\"uint256[]\",\"name\":\"_rewardAmounts\",\"internalType\":\"uint256[]\"},{\"type\":\"bool[]\",\"name\":\"_claimed\",\"internalType\":\"bool[]\"},{\"type\":\"bool\",\"name\":\"_claimable\",\"internalType\":\"bool\"}],\"name\":\"getStateOfRewards\",\"inputs\":[{\"type\":\"address\",\"name\":\"_beneficiary\",\"internalType\":\"address\"},{\"type\":\"uint256\",\"name\":\"_rewardEpoch\",\"internalType\":\"uint256\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256[]\",\"name\":\"_rewardAmounts\",\"internalType\":\"uint256[]\"},{\"type\":\"bool[]\",\"name\":\"_claimed\",\"internalType\":\"bool[]\"},{\"type\":\"bool\",\"name\":\"_claimable\",\"internalType\":\"bool\"}],\"name\":\"getStateOfRewardsFromDataProviders\",\"inputs\":[{\"type\":\"address\",\"name\":\"_beneficiary\",\"internalType\":\"address\"},{\"type\":\"uint256\",\"name\":\"_rewardEpoch\",\"internalType\":\"uint256\"},{\"type\":\"address[]\",\"name\":\"_dataProviders\",\"internalType\":\"address[]\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"_foundationAllocatedFundsWei\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_totalInflationAuthorizedWei\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_totalClaimedWei\",\"internalType\":\"uint256\"}],\"name\":\"getTokenPoolSupplyData\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"_amount\",\"internalType\":\"uint256\"},{\"type\":\"uint256\",\"name\":\"_weight\",\"internalType\":\"uint256\"}],\"name\":\"getUnclaimedReward\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"_rewardEpoch\",\"internalType\":\"uint256\"},{\"type\":\"address\",\"name\":\"_dataProvider\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}],\"name\":\"governance\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"initialise\",\"inputs\":[{\"type\":\"address\",\"name\":\"_governance\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"lastInflationAuthorizationReceivedTs\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"proposeGovernance\",\"inputs\":[{\"type\":\"address\",\"name\":\"_governance\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"address\"}],\"name\":\"proposedGovernance\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"payable\",\"outputs\":[],\"name\":\"receiveInflation\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"setContractAddresses\",\"inputs\":[{\"type\":\"address\",\"name\":\"_inflation\",\"internalType\":\"address\"},{\"type\":\"address\",\"name\":\"_ftsoManager\",\"internalType\":\"contract IIFtsoManager\"},{\"type\":\"address\",\"name\":\"_wNat\",\"internalType\":\"contract WNat\"}]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"setDailyAuthorizedInflation\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"_toAuthorizeWei\",\"internalType\":\"uint256\"}]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"setDataProviderFeePercentage\",\"inputs\":[{\"type\":\"uint256\",\"name\":\"_feePercentageBIPS\",\"internalType\":\"uint256\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"totalAwardedWei\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"totalClaimedWei\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"totalExpiredWei\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"totalInflationAuthorizedWei\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"totalInflationReceivedWei\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint256\",\"name\":\"\",\"internalType\":\"uint256\"}],\"name\":\"totalSelfDestructReceivedWei\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"nonpayable\",\"outputs\":[],\"name\":\"transferGovernance\",\"inputs\":[{\"type\":\"address\",\"name\":\"_governance\",\"internalType\":\"address\"}]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"address\",\"name\":\"\",\"internalType\":\"contract WNat\"}],\"name\":\"wNat\",\"inputs\":[]}]\n \n return new ethers.Contract(address, abi, provider);\n}\n\n","import { ethers } from 'ethers'\n\nexport function getFtsoManagerContract(provider, address) {\n const abi = [\n \"function rewardManager() public view returns (address)\",\n \"function getCurrentRewardEpoch() public view returns (uint256)\",\n \"function rewardEpochDurationSeconds() public view returns (uint256)\",\n \"function rewardEpochsStartTs() public view returns (uint256)\",\n \"function rewardEpochs(uint256 epoch) public view returns (uint256 votepowerBlock, uint256 startBlock, uint256 startTimestamp)\",\n ];\n return new ethers.Contract(address, abi, provider);\n}\n","import { ethers } from \"ethers\";\n\nexport function getPriceSubmitterContract(provider) {\n const abi = [\n \"function getFtsoManager() external view returns (address)\",\n \"function getVoterWhitelister() external view returns (address)\",\n ];\n return new ethers.Contract(\n \"0x1000000000000000000000000000000000000003\",\n abi,\n provider\n );\n}\n","import React, { Component } from \"react\";\nimport { ethers } from \"ethers\";\nimport {\n networks,\n setupNetwork,\n setProvider,\n getProvider,\n setSigner,\n getSigner,\n getNetwork,\n setNetwork,\n getWnatBalance,\n getClaimable,\n claim,\n getUnclaimable,\n} from \"./logic/web3\";\n\nconst AppState = React.createContext({});\n\nclass AppStateProvider extends Component {\n state = {\n connected: false,\n address: \"\",\n Balance: 0,\n wrappedbBalance: 0,\n claimable: 0,\n unclaimable: 0,\n network: \"\",\n };\n\n connect = async (network) => {\n try {\n await window.ethereum.request({ method: \"eth_requestAccounts\" });\n await this.checkNetwork(network);\n await this.checkAccount();\n if (getNetwork() !== undefined) {\n const address = await getSigner().getAddress();\n const balance = parseFloat(\n ethers.utils.formatUnits(await getSigner().getBalance(), 18)\n );\n await this.setState({\n connected: true,\n address: address,\n Balance: balance,\n network: network,\n });\n }\n } catch (err) {\n console.error(err);\n if (err.code === 4001) console.error(\"PLease connect to MM\");\n else {\n console.error(err);\n await this.setState({\n connected: false,\n network: \"\",\n });\n }\n }\n };\n\n checkNetwork = async (network) => {\n window.ethereum.on(\"chainChanged\", () => window.location.reload());\n let chainId = await window.ethereum.request({ method: \"eth_chainId\" });\n\n if (network === undefined) {\n if (networks[chainId] !== undefined) {\n await this.handleChainChanged(chainId);\n } else if (window.ethereum.isMetaMask) {\n await this.setState({\n connected: false,\n network: \"\",\n });\n } else {\n await this.setState({\n connected: false,\n network: \"\",\n });\n }\n } else {\n if (networks[chainId] !== undefined && chainId === network) {\n setNetwork(networks[chainId]);\n await this.handleChainChanged(chainId);\n } else if (window.ethereum.isMetaMask) {\n await setupNetwork(network);\n if (\n chainId === (await window.ethereum.request({ method: \"eth_chainId\" }))\n )\n await this.setState({\n connected: false,\n network: \"\",\n });\n } else {\n await this.setState({\n connected: false,\n network: \"\",\n });\n }\n }\n };\n\n handleChainChanged = async (chainId) => {\n setNetwork(networks[chainId]);\n setProvider(new ethers.providers.Web3Provider(window.ethereum));\n setSigner(getProvider().getSigner());\n\n if (getNetwork() !== undefined) {\n const address = await getSigner().getAddress();\n const balance = parseFloat(\n ethers.utils.formatUnits(await getSigner().getBalance(), 18)\n );\n await this.setState({\n connected: true,\n address: address,\n Balance: balance,\n network: chainId,\n });\n } else {\n await this.setState({\n connected: false,\n network: \"\",\n });\n }\n };\n\n checkAccount = async () => {\n let accounts = await window.ethereum.request({ method: \"eth_accounts\" });\n window.ethereum.on(\"accountsChanged\", () => window.location.reload());\n await this.handleAccountsChanged(accounts);\n };\n\n logout = async () => {\n await this.setState({\n connected: false,\n address: \"\",\n Balance: 0,\n wrappedbBalance: 0,\n claimable: 0,\n unclaimable: 0,\n network: \"\",\n });\n };\n\n handleAccountsChanged = async (accounts) => {\n if (accounts.length === 0) {\n await this.setState({\n connected: false,\n network: \"\",\n });\n } else {\n if (getNetwork() !== undefined) {\n const network = await window.ethereum.request({\n method: \"eth_chainId\",\n });\n const address = await getSigner().getAddress();\n const balance = parseFloat(\n ethers.utils.formatUnits(await getSigner().getBalance(), 18)\n );\n await this.setState({\n connected: true,\n address: address,\n Balance: balance,\n network: network,\n });\n }\n }\n };\n\n checkWeb3 = async () => {\n if (typeof window.ethereum !== \"undefined\") {\n setProvider(new ethers.providers.Web3Provider(window.ethereum));\n setSigner(getProvider().getSigner());\n try {\n await getSigner().getAddress();\n await this.checkNetwork();\n await this.checkAccount();\n if (getNetwork() !== undefined) {\n const address = await getSigner().getAddress();\n const balance = parseFloat(\n ethers.utils.formatUnits(await getSigner().getBalance(), 18)\n );\n const network = await window.ethereum.request({\n method: \"eth_chainId\",\n });\n await this.setState({\n connected: true,\n address: address,\n Balance: balance,\n network: network,\n });\n }\n } catch (err) {\n await this.setState({\n connected: false,\n network: \"\",\n });\n }\n } else {\n console.error(\"Please install MM!\");\n await this.setState({\n connected: false,\n network: \"\",\n });\n }\n };\n\n getWBalance = async () => {\n const b = await getWnatBalance();\n await this.setState({ wrappedbBalance: b });\n };\n\n getRewards = async () => {\n const claimable =\n Math.floor(\n (await getClaimable().catch((e) => {\n return 0;\n })) * 100\n ) / 100;\n const unclaimable =\n Math.floor(\n (await getUnclaimable().catch((e) => {\n return 0;\n })) * 100\n ) / 100;\n await this.setState({\n claimable: claimable,\n unclaimable: unclaimable,\n });\n };\n\n componentDidMount() {\n this.checkWeb3();\n this.getWBalance();\n this.getRewards();\n }\n\n reset = async () => {\n this.checkWeb3();\n this.getWBalance();\n this.getRewards();\n };\n\n SwitchNetwork = async () => {\n let net = this.state.network === \"0xe\" ? \"0x13\" : \"0xe\";\n await setupNetwork(net);\n await this.reset();\n };\n\n claimTx = async (rewardAddress) => {\n await claim(rewardAddress).catch((e) => {\n return e;\n });\n this.reset();\n };\n\n render() {\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nexport default AppState;\n\nexport { AppStateProvider };\n","export default __webpack_public_path__ + \"static/media/FlareLogo.1136db00.png\";","export default __webpack_public_path__ + \"static/media/SGBLogo.246cc5d9.png\";","import React, { useState } from \"react\";\nimport AppState from \"../../AppState\";\nimport \"./welcome.css\";\nimport FLR from \"../../assets/FlareLogo.png\";\nimport SGB from \"../../assets/SGBLogo.png\";\nimport { useHistory } from \"react-router-dom\";\n\nconst Welcome = () => {\n const context = React.useContext(AppState);\n const connect = context.connect;\n const [pop, setpop] = useState(false);\n const his = useHistory(\"\");\n\n const handlePop = () => {\n setpop(!pop);\n };\n\n return (\n <>\n
\n
\n
\n
\n

Lena Instruments

\n

Flare Network Delegation Service.

\n
\n
\n

\n By clicking \"Connect Metamask\" you acknowledge that you have\n read , understand and completely agree to these
\n \n Terms of Services.\n \n

\n
\n \n
\n
\n
\n
\n
\n {pop ? (\n <>\n
\n \n
\n {\n await connect(\"0xe\");\n if (connect) {\n his.push(\"/wrap\");\n context.reset();\n }\n }}\n >\n \"FLR\n

FLR

\n \n

/

\n {\n await connect(\"0x13\");\n if (connect) {\n his.push(\"/wrap\");\n context.reset();\n }\n }}\n >\n \"SGB\n

SGB

\n \n
\n
\n

Select your network

\n
\n
\n \n ) : (\n \"\"\n )}\n \n );\n};\n\nexport default Welcome;\n","export default __webpack_public_path__ + \"static/media/logout.b60962fd.svg\";","import \"./navbar.css\";\nimport React, { useContext, useState } from \"react\";\nimport AppState from \"../../AppState\";\nimport LogoutButton from \"../../assets/logout.svg\";\n\nconst Navbar = () => {\n const context = useContext(AppState);\n const network = context.network;\n const [isOpen, setIsOpen] = useState(false);\n const handleClick = () => {\n setIsOpen(!isOpen);\n };\n\n return (\n \n );\n};\n\nexport default Navbar;\n","export default __webpack_public_path__ + \"static/media/loader1.1d1c3b68.svg\";","export default __webpack_public_path__ + \"static/media/logo.8c3ad8fc.svg\";","export default __webpack_public_path__ + \"static/media/WSGB.4416a54e.png\";","export default __webpack_public_path__ + \"static/media/SGB.82252cb6.png\";","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAACAASURBVHic7Z17jCVXfee/9a66t+6zu++0Z4aZ2AMGywo2IQsJgd1sQrJk8yRSSCQCQRFoQxAixoDNa42T2NgxMHaygqyyDxG00aKQTcJmgwOKBCsMG1iIgCyP9djueXXPdPft+6p7611n/zj3/G7VjD0weGn3Nb+PNLKr63Wq7vmd83ud+gEMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzDMQeb+371fXO05J++4X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b25FZmZlY3RcIjowLFwibVJvdGF0ZUVmZmVjdFwiOjAsXCJtSEZsaXBFZmZlY3RcIjowLFwibVZGbGlwRWZmZWN0XCI6MH0iLCJ0b25lVmFsdWUiOiJ7XCJicmlnaHRuZXNzXCI6MTE3LFwiZXhwb3N1cmVcIjowLFwiY29udHJhc3RcIjoyMDAsXCJzYXR1cmF0aW9uXCI6MCxcImh1ZVwiOjEwMCxcIndiTW9kZVwiOi0xLFwid2JUZW1wZXJhdHVyZVwiOjEwOSxcInRpbnRcIjoyMDAsXCJzaGFkb3dcIjowLFwiaGlnaGxpZ2h0XCI6MH0iLCJlZmZlY3RWYWx1ZSI6IntcImZpbHRlckluZGljYXRpb25cIjo0MDk3LFwiZmlsdGVyVHlwZVwiOjAsXCJhbHBoYVZhbHVlXCI6MTAwfSIsImlzQmxlbmRpbmciOmZhbHNlLCJpc05vdFJlRWRpdCI6ZmFsc2UsInNlcFZlcnNpb24iOiIxMjAxMDAiLCJyZVNpemUiOjQsInJvdGF0aW9uIjoxLCJhZGp1c3RtZW50VmFsdWUiOiJ7XCJtQ3JvcFN0YXRlXCI6MTMxMDc2fSIsImlzQXBwbHlTaGFwZUNvcnJlY3Rpb24iOmZhbHNlfQAAoQsWAAAAT3JpZ2luYWxfUGF0aF9IYXNoX0tleTYxNDJhYjg4Y2JmZDQ0MDE4MjA3NzI5M2U3YTUzMjhiNjRjNmFiMjViNTk4ZWU2OTk5MDg4ZmZlMTM1ZGQ3YzcvMTE5MTFTRUZIagAAAAIAAAAAAKELWAMAAPQCAAAAAKELZAAAAGQAAAAkAAAAU0VGVA==\"","import React, { useContext, useEffect, useState } from \"react\";\nimport { ethers } from \"ethers\";\nimport Navbar from \"../components/navbar/Navbar\";\nimport { getSigner, wrap, claim } from \"./../logic/web3\";\nimport AppState from \"./../AppState\";\nimport loader from \"./../loader1.svg\";\nimport Logo from \"./../logo.svg\";\nimport { Link, NavLink } from \"react-router-dom\";\nimport WSGBICON from \"./../assets/WSGB.png\";\nimport SGBICON from \"./../assets/SGB.png\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport WFLRICON from \"./../assets/wFlareLogo.png\";\nimport FLRICON from \"./../assets/FlareLogo.png\";\nimport \"../components/wrap_main/wrap_main.css\";\nimport \"../components/sidebar/sidebar.css\";\nimport ExploreIcon from \"@mui/icons-material/ExploreOutlined\";\nimport CopyIcon from \"@mui/icons-material/ContentCopyOutlined\";\n\nconst Wrap = () => {\n const context = useContext(AppState);\n const [appState, setAppState] = useState({ loading: false });\n const [balance, setbalance] = useState(0);\n const { network } = context;\n useEffect(() => {\n const getBalance = async () => {\n setAppState({ loading: true });\n const balance = parseFloat(\n ethers.utils.formatUnits(await getSigner().getBalance(), 18)\n );\n setbalance(balance);\n setAppState({ loading: false });\n };\n getBalance();\n }, []);\n\n const WrapTx = async () => {\n const wrap_amount = document.getElementById(\"wrap_amount\").value;\n if (!wrap_amount || parseFloat(wrap_amount) <= 0) return;\n setAppState({ loading: true });\n const result = await wrap(wrap_amount).catch((e) => {\n return e;\n });\n context.reset();\n setAppState({ loading: false, result });\n };\n\n const setMax = () => {\n if (balance <= 0.25) return;\n document.getElementById(\"wrap_amount\").value =\n document.getElementById(\"wrap_amount\").max;\n };\n\n const address = context.address;\n const Balance = context.Balance;\n const wrappedbBalance = context.wrappedbBalance;\n const claimable = context.claimable;\n const unclaimable = context.unclaimable;\n const [rewardadd, setRewardadd] = useState(address);\n const SimpleAddress = address.substring(0, 8) + \"...\" + address.substring(34);\n\n const claimReward = async () => {\n if (claimable > 0) {\n if (rewardadd.length === 42) {\n setAppState({ loading: true });\n try {\n await claim(rewardadd);\n setAppState({\n loading: false,\n result: { claim: \"You successfully claimed your rewards.\" },\n });\n context.reset();\n } catch (e) {\n setAppState({\n loading: false,\n result: { claim: \"Something went wrong. Please try again\" },\n });\n }\n } else {\n setAppState({ loading: true });\n setAppState({\n loading: false,\n result: { claim: \"Please check your reward address.\" },\n });\n }\n } else {\n setAppState({ loading: true });\n setAppState({\n loading: false,\n result: { claim: \"You have nothing to claim.\" },\n });\n }\n };\n\n return (\n <>\n \n
\n
\n
\n

My wallet

\n
\n
\n ADDRESS\n
\n

{SimpleAddress}

\n
\n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n

ASSETS

\n
\n \"logo\"\n \n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n \n {Number.parseFloat(Balance).toFixed(2)}\n \n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\n
\n \n \n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n \n {Number.parseFloat(wrappedbBalance).toFixed(2)}\n \n \n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n
\n
\n
\n

REWARDS

\n
\n

\n Claim my rewards to the below address:\n

\n setRewardadd(e.target.value)}\n />\n
\n
\n

Unclaimed rewards

\n

from previous epochs

\n
\n

\n {\" \"}\n {Number.parseFloat(claimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n

\n
\n
\n
\n

Pending rewards

\n

from current epoch

\n
\n

\n {\" \"}\n {Number.parseFloat(unclaimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n

\n
\n
\n
\n \n
\n
\n
\n
\n {appState.loading ? (\n
\n \"loading\"\n \"logo\"\n
\n ) : !appState.result ? (\n <>\n

Wrap

\n
\n \n
\n 0.25 ? \"max\" : \"none\"}\n onClick={setMax}\n >\n Max\n \n \n
\n
\n \n \n ) : appState.result.claim ? (\n
\n

\n {appState.result.claim ===\n \"You successfully claimed your rewards.\"\n ? \"Well done!\"\n : \"Error\"}\n

\n

{appState.result.claim}

\n setAppState({ loading: false })}\n >\n Home page\n \n
\n ) : appState.result.code ? (\n
\n

Error

\n

Something went wrong. Please try again.

\n setAppState({ loading: false })}\n >\n Try again\n \n
\n ) : (\n
\n

Well done!

\n

You successfully wrapped your tokens.

\n \n Delegate\n \n
\n )}\n
\n
\n
\n \n );\n};\n\nexport default Wrap;\n","import React, { useContext, useEffect, useState } from \"react\";\nimport Navbar from \"../components/navbar/Navbar\";\nimport \"../components/unwrap_main/unwrap_main.css\";\nimport AppState from \"./../AppState\";\nimport { getWnatBalance, unwrap, claim } from \"./../logic/web3\";\nimport loader from \"./../loader1.svg\";\nimport Logo from \"./../logo.svg\";\nimport { Link, NavLink } from \"react-router-dom\";\nimport WSGBICON from \"./../assets/WSGB.png\";\nimport SGBICON from \"./../assets/SGB.png\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport WFLRICON from \"./../assets/wFlareLogo.png\";\nimport FLRICON from \"./../assets/FlareLogo.png\";\nimport \"../components/sidebar/sidebar.css\";\nimport ExploreIcon from \"@mui/icons-material/ExploreOutlined\";\nimport CopyIcon from \"@mui/icons-material/ContentCopyOutlined\";\n\nconst Unwrap = () => {\n const context = useContext(AppState);\n const [balance, setBalance] = useState(0);\n const [appState, setAppState] = useState({ loading: false });\n const { network } = context;\n\n useEffect(() => {\n const getBalance = async () => {\n setAppState({ loading: true });\n const balance = await getWnatBalance();\n setBalance(balance);\n setAppState({ loading: false });\n };\n getBalance();\n }, []);\n\n const UnwrapTx = async () => {\n const unwrap_amount = document.getElementById(\"unwrap_amount\").value;\n if (!unwrap_amount) return;\n setAppState({ loading: true });\n const result = await unwrap(unwrap_amount).catch((e) => {\n return e;\n });\n const balance = await getWnatBalance();\n setBalance(balance);\n context.reset();\n setAppState({ loading: false, result });\n };\n\n const setMax = () => {\n if (balance <= 0) return;\n document.getElementById(\"unwrap_amount\").value =\n document.getElementById(\"unwrap_amount\").max;\n };\n\n const address = context.address;\n const Balance = context.Balance;\n const wrappedbBalance = context.wrappedbBalance;\n const claimable = context.claimable;\n const unclaimable = context.unclaimable;\n const [rewardadd, setRewardadd] = useState(address);\n const SimpleAddress = address.substring(0, 8) + \"...\" + address.substring(34);\n\n const claimReward = async () => {\n if (claimable > 0) {\n if (rewardadd.length === 42) {\n setAppState({ loading: true });\n try {\n await claim(rewardadd);\n setAppState({\n loading: false,\n result: { claim: \"You successfully claimed your rewards.\" },\n });\n context.reset();\n } catch (e) {\n setAppState({\n loading: false,\n result: { claim: \"Something went wrong. Please try again\" },\n });\n }\n } else {\n setAppState({ loading: true });\n setAppState({\n loading: false,\n result: { claim: \"Please check your reward address.\" },\n });\n }\n } else {\n setAppState({ loading: true });\n setAppState({\n loading: false,\n result: { claim: \"You have nothing to claim.\" },\n });\n }\n };\n\n return (\n <>\n \n
\n
\n
\n

My wallet

\n
\n
\n ADDRESS\n
\n

{SimpleAddress}

\n
\n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n

ASSETS

\n
\n \"logo\"\n \n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n \n {Number.parseFloat(Balance).toFixed(2)}\n \n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\n
\n \n \n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n \n {Number.parseFloat(wrappedbBalance).toFixed(2)}\n \n \n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n
\n
\n
\n

REWARDS

\n
\n

\n Claim my rewards to the below address:\n

\n setRewardadd(e.target.value)}\n />\n
\n
\n

Unclaimed rewards

\n

from previous epochs

\n
\n

\n {\" \"}\n {Number.parseFloat(claimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n

\n
\n
\n
\n

Pending rewards

\n

from current epoch

\n
\n

\n {\" \"}\n {Number.parseFloat(unclaimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n

\n
\n
\n
\n \n
\n
\n
\n
\n {appState.loading ? (\n
\n \"loading\"\n \"logo\"\n
\n ) : !appState.result ? (\n <>\n

Unwrap

\n
\n \n 0 ? \"\" : \"none\"}\n onClick={setMax}\n >\n Max\n \n
\n \n \n ) : appState.result.claim ? (\n
\n

\n {appState.result.claim ===\n \"You successfully claimed your rewards.\"\n ? \"Well done!\"\n : \"Error\"}\n

\n

{appState.result.claim}

\n setAppState({ loading: false })}\n >\n Home page\n \n
\n ) : appState.result.code ? (\n
\n

Error

\n

Something went wrong. Please try again.

\n setAppState({ loading: false })}\n >\n Try again\n \n
\n ) : (\n
\n

Well done!

\n

You successfully unwrapped your tokens.

\n \n Go back to wrapping\n \n
\n )}\n
\n
\n
\n \n );\n};\n\nexport default Unwrap;\n","import React from \"react\";\nimport \"./delegation.css\";\nimport { knownFTSO } from \"../../logic/web3\";\nimport AppState from \"../../AppState\";\nimport { NavLink } from \"react-router-dom\";\n\nconst Delegation = (props) => {\n const { network } = React.useContext(AppState);\n\n const lenaAddress =\n network === \"0xe\"\n ? \"0xdde9BcB57cbA00A9718b67b4074ec6B62C542957\"\n : \"0xc9AC8F034d295962A6a975b717B691437605Bbb6\";\n\n return (\n \n \n {knownFTSO[props.delegation.address.toLowerCase()] ||\n knownFTSO[props.delegation.address] ||\n props.delegation.address.substring(0, 6) +\n \"...\" +\n props.delegation.address.substring(36)}\n \n \n {Number.parseFloat(props.balance).toFixed(3) +\n ` W${network === \"0xe\" ? \"FLR\" : \"SGB\"}`}\n \n\n \n {(props.balance * (props.delegation.amount / 10_000)).toFixed(3) +\n ` W${network === \"0xe\" ? \"FLR\" : \"SGB\"}`}\n \n {props.delegation.amount / 100 + \"%\"}\n {props.delegation.address === lenaAddress &&\n props.delegation.amount !== 10000 && (\n \n \n \n )}\n {props.delegation.address !== lenaAddress && (\n \n {\n props.undelegate(props.delegation.address);\n }}\n >\n \n \n \n )}\n \n );\n};\n\nexport default Delegation;\n","import React, { useEffect, useState } from \"react\";\nimport Navbar from \"../components/navbar/Navbar\";\nimport \"../components/delegation_main/delegation_main.css\";\nimport {\n getWnatBalance,\n getDelegations,\n undelegate,\n getLenaDelegations,\n getAvailableDelegations,\n claim,\n} from \"./../logic/web3\";\nimport loader from \"./../loader1.svg\";\nimport Logo from \"./../logo.svg\";\nimport { NavLink, Link } from \"react-router-dom\";\nimport Delegation from \"../components/delegation/Delegation.jsx\";\nimport AppState from \"./../AppState\";\nimport WSGBICON from \"./../assets/WSGB.png\";\nimport SGBICON from \"./../assets/SGB.png\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport WFLRICON from \"./../assets/wFlareLogo.png\";\nimport FLRICON from \"./../assets/FlareLogo.png\";\nimport \"../components/sidebar/sidebar.css\";\nimport ExploreIcon from \"@mui/icons-material/ExploreOutlined\";\nimport CopyIcon from \"@mui/icons-material/ContentCopyOutlined\";\n\nconst Delegations = () => {\n const [appState, setAppState] = useState({ loading: true, delegations: [] });\n const [balance, setBalance] = useState(0);\n const { network } = React.useContext(AppState);\n const [delegations, setdelegations] = useState({\n available: 0,\n LenaDelegated: 0,\n });\n const lenaAddress =\n network === \"0xe\"\n ? \"0xdde9BcB57cbA00A9718b67b4074ec6B62C542957\"\n : \"0xc9AC8F034d295962A6a975b717B691437605Bbb6\";\n\n const context = React.useContext(AppState);\n const address = context.address;\n const Balance = context.Balance;\n const wrappedbBalance = context.wrappedbBalance;\n const claimable = context.claimable;\n const unclaimable = context.unclaimable;\n const [rewardadd, setRewardadd] = useState(address);\n const SimpleAddress = address.substring(0, 8) + \"...\" + address.substring(34);\n\n useEffect(() => {\n const getInfo = async () => {\n const delegations = await getDelegations();\n const balance = await getWnatBalance();\n const LenaDelegated = await getLenaDelegations(lenaAddress);\n const available = await getAvailableDelegations(lenaAddress);\n setBalance(balance);\n setAppState({ loading: false, delegations });\n setdelegations({\n available: available,\n LenaDelegated: LenaDelegated,\n });\n };\n getInfo();\n }, [lenaAddress]);\n\n const UpdateAppState = async () => {\n setAppState({ loading: true, delegations: [] });\n const delegations = await getDelegations();\n setAppState({ loading: false, delegations });\n };\n\n const UndelegateTx = async (from) => {\n setAppState({ loading: true, delegations: [] });\n const result = await undelegate(from).catch((e) => {\n console.error(e);\n return e;\n });\n setAppState({ loading: false, delegations: [], result });\n };\n\n const undelegateAll = async () => {\n setAppState({ loading: true, delegations: [] });\n const delegations = await getDelegations();\n const d = await delegations.filter((del) => del.address !== lenaAddress);\n var res = true;\n await Promise.all(\n d.map(async (pro) => {\n await undelegate(pro.address).catch(() => {\n res = false;\n });\n })\n );\n const newDel = await getDelegations();\n setAppState({ loading: false, delegations: newDel, result: { del: res } });\n };\n\n const claimReward = async () => {\n const newDel = await getDelegations();\n if (claimable > 0) {\n if (rewardadd.length === 42) {\n setAppState({ loading: true, delegations: newDel });\n try {\n await claim(rewardadd);\n setAppState({\n loading: false,\n delegations: newDel,\n result: { claim: \"You successfully claimed your rewards.\" },\n });\n context.reset();\n } catch (e) {\n setAppState({\n loading: false,\n delegations: newDel,\n result: { claim: \"Something went wrong. Please try again\" },\n });\n }\n } else {\n setAppState({ loading: true, delegations: newDel });\n setAppState({\n loading: false,\n delegations: newDel,\n result: { claim: \"Please check your reward address.\" },\n });\n }\n } else {\n setAppState({ loading: true, delegations: newDel });\n setAppState({\n loading: false,\n delegations: newDel,\n result: { claim: \"You have nothing to claim.\" },\n });\n }\n };\n\n return (\n <>\n \n
\n
\n
\n

My wallet

\n
\n
\n ADDRESS\n
\n

{SimpleAddress}

\n
\n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n

ASSETS

\n
\n \"logo\"\n \n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n \n {Number.parseFloat(Balance).toFixed(2)}\n \n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\n
\n \n \n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n \n {Number.parseFloat(wrappedbBalance).toFixed(2)}\n \n \n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n
\n
\n
\n

REWARDS

\n
\n

\n Claim my rewards to the below address:\n

\n setRewardadd(e.target.value)}\n />\n
\n
\n

Unclaimed rewards

\n

from previous epochs

\n
\n

\n {\" \"}\n {Number.parseFloat(claimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n

\n
\n
\n
\n

Pending rewards

\n

from current epoch

\n
\n

\n {\" \"}\n {Number.parseFloat(unclaimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n

\n
\n
\n
\n \n
\n
\n
\n 0 && !appState.loading\n ? \"delegation_section list\"\n : \"delegation_section\"\n }\n >\n {appState.loading ? (\n
\n \"loading\"\n \"logo\"\n
\n ) : !appState.result ? (\n <>\n

My Delegations

\n {appState.delegations.length > 0 ? (\n <>\n \n \n \n \n \n \n \n {!(\n appState.delegations.length === 1 &&\n appState.delegations[0].address === lenaAddress &&\n appState.delegations[0].amount === 10000\n ) && }\n \n \n \n {appState.delegations.map((delegation, index) => {\n return (\n \n );\n })}\n \n
Provider's nameWSGB balance\n W{network === \"0xe\" ? \"FLR\" : \"SGB\"} delegated\n amount\n PercentageActions
\n\n
\n {delegations.available !== 100 && (\n \n Undelegate from another {\"FTSO(s)\"}\n \n )}\n\n {delegations.available !== delegations.LenaDelegated &&\n delegations.LenaDelegated !== 0 && (\n \n )}\n {delegations.LenaDelegated === delegations.available &&\n delegations.LenaDelegated === 100 && (\n \n )}\n {delegations.LenaDelegated === 0 &&\n delegations.available !== 0 && (\n \n )}\n
\n \n ) : (\n <>\n

You aren't delegating your votes.

\n \n \n )}\n \n ) : appState.result.claim ? (\n
\n

\n {appState.result.claim ===\n \"You successfully claimed your rewards.\"\n ? \"Well done!\"\n : \"Error\"}\n

\n

{appState.result.claim}

\n window.location.reload(false)}\n >\n Home page\n \n
\n ) : appState.result.code || appState.result.del === false ? (\n
\n

Error

\n

Something went wrong. Please try again.

\n \n
\n ) : (\n
\n

Well done!

\n

You successfully undelegated your tokens.

\n \n
\n )}\n
\n
\n \n \n );\n};\n\nexport default Delegations;\n","import Navbar from \"../components/navbar/Navbar\";\nimport React, { useEffect, useState } from \"react\";\nimport { NavLink, Link } from \"react-router-dom\";\nimport {\n delegate,\n claim,\n getAvailableDelegations,\n getLenaDelegations,\n getWnatBalance,\n getDelegations,\n undelegate,\n} from \"./../logic/web3\";\nimport \"../components/delegate_main/delegate_main.css\";\nimport loader from \"./../loader1.svg\";\nimport Logo from \"./../logo.svg\";\nimport AppState from \"./../AppState\";\nimport WSGBICON from \"./../assets/WSGB.png\";\nimport SGBICON from \"./../assets/SGB.png\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport WFLRICON from \"./../assets/wFlareLogo.png\";\nimport FLRICON from \"./../assets/FlareLogo.png\";\nimport \"../components/sidebar/sidebar.css\";\nimport ExploreIcon from \"@mui/icons-material/ExploreOutlined\";\nimport CopyIcon from \"@mui/icons-material/ContentCopyOutlined\";\n\nconst Delegate = () => {\n const [appState, setAppState] = useState({ loading: true, amount: 100 });\n const { network } = React.useContext(AppState);\n const lenaAddress =\n network === \"0xe\"\n ? \"0xdde9BcB57cbA00A9718b67b4074ec6B62C542957\"\n : \"0xc9AC8F034d295962A6a975b717B691437605Bbb6\";\n const [delegation, setdelegation] = useState({\n balance: 0,\n available: 100,\n delegated: 0,\n });\n\n useEffect(() => {\n const getInfos = async () => {\n const balance = await getWnatBalance();\n const available = await getAvailableDelegations(lenaAddress);\n const delegated = await getLenaDelegations(lenaAddress);\n setdelegation({ balance, available, delegated });\n setAppState({ loading: false, amount: available });\n };\n getInfos();\n }, [lenaAddress]);\n\n const DelegateTx = async () => {\n setAppState({ loading: true });\n const result = await delegate(appState.amount, lenaAddress).catch((e) => {\n console.error(e);\n return e;\n });\n const delegated = await getLenaDelegations(lenaAddress);\n setAppState({ loading: false, result, amount: delegated });\n };\n\n const UndelegateAll = async () => {\n setAppState({ loading: true });\n\n const delegations = await getDelegations();\n const d = await delegations.filter((del) => del.address !== lenaAddress);\n let res = true;\n\n await Promise.all(\n d.map(async (pro) => {\n await undelegate(pro.address).catch(() => {\n res = false;\n });\n })\n );\n setAppState({ loading: false, result: { del: res } });\n };\n\n const context = React.useContext(AppState);\n const address = context.address;\n const Balance = context.Balance;\n const wrappedbBalance = context.wrappedbBalance;\n const claimable = context.claimable;\n const unclaimable = context.unclaimable;\n const [rewardadd, setRewardadd] = useState(address);\n const SimpleAddress = address.substring(0, 8) + \"...\" + address.substring(34);\n\n const claimReward = async () => {\n if (claimable > 0) {\n if (rewardadd.length === 42) {\n setAppState({ loading: true });\n try {\n await claim(rewardadd);\n setAppState({\n loading: false,\n result: { claim: \"You successfully claimed your rewards.\" },\n });\n context.reset();\n } catch (e) {\n setAppState({\n loading: false,\n result: { claim: \"Something went wrong. Please try again.\" },\n });\n }\n } else {\n setAppState({ loading: true });\n setAppState({\n loading: false,\n result: { claim: \"Please check your reward address.\" },\n });\n }\n } else {\n setAppState({ loading: true });\n setAppState({\n loading: false,\n result: { claim: \"You have nothing to claim.\" },\n });\n }\n };\n\n return (\n <>\n \n
\n
\n
\n

My wallet

\n
\n
\n ADDRESS\n
\n

{SimpleAddress}

\n
\n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n

ASSETS

\n
\n \"logo\"\n \n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n \n {Number.parseFloat(Balance).toFixed(2)}\n \n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\n
\n \n \n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n \n {Number.parseFloat(wrappedbBalance).toFixed(2)}\n \n \n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}\n \n
\n
\n
\n

REWARDS

\n
\n

\n Claim my rewards to the below address:\n

\n setRewardadd(e.target.value)}\n />\n
\n
\n

Unclaimed rewards

\n

from previous epochs

\n
\n

\n {\" \"}\n {Number.parseFloat(claimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n

\n
\n
\n
\n

Pending rewards

\n

from current epoch

\n
\n

\n {\" \"}\n {Number.parseFloat(unclaimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n

\n
\n
\n
\n \n
\n
\n
\n
\n {appState.loading ? (\n
\n \"loading\"\n \"logo\"\n
\n ) : !appState.result ? (\n <>\n

Delegate

\n {delegation.balance > 0 ? (\n <>\n {delegation.available !== delegation.delegated && (\n <>\n

{appState.amount} %

\n {\n setAppState({\n loading: false,\n amount: document.getElementById(\"delegate\").value,\n });\n }}\n />\n \n )}\n\n {delegation.available === 100 &&\n delegation.delegated !== 0 && (\n <>\n

\n You are already delegating{\" \"}\n {delegation.delegated}% \n to Lena Instruments\n

\n \n )}\n {delegation.available < 100 ? (\n <>\n

\n You are currently delegating{\" \"}\n {100 - delegation.available}% of your\n wrapped {network === \"0xe\" ? \"FLR\" : \"SGB\"} to other\n FTSOs and can only delegate the remaining\n {delegation.available}% to Lena\n Instruments\n

\n
\n \n Undelegate from another FTSO\n \n \n
\n \n ) : (\n \n )}\n \n ) : (\n <>\n

\n You don't have enough{\" \"}\n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}.\n

\n \n \n )}\n \n ) : appState.result.claim ? (\n
\n

\n {appState.result.claim ===\n \"You successfully claimed your rewards.\"\n ? \"Well done!\"\n : \"Error\"}\n

\n

{appState.result.claim}

\n setAppState({ loading: false })}\n >\n Home page\n \n
\n ) : appState.result.code ? (\n
\n

Error

\n

Something went wrong. Please try again.

\n \n setAppState({\n loading: false,\n amount: delegation.available,\n })\n }\n >\n Try again\n \n
\n ) : appState.result.del === false ? (\n
\n

Error:

\n

Something went wrong. Please try again.

\n window.location.reload(false)}\n >\n Try again\n \n
\n ) : appState.result.del === true ? (\n
\n

Well done!

\n

You successfully undelegated your tokens.

\n window.location.reload(false)}\n >\n Delegate Now\n \n
\n ) : (\n
\n

Well done!

\n

You successfully delegated your tokens.

\n
\n {delegation.available !== appState.amount && (\n window.location.reload(false)}\n className=\"delegate_btn\"\n >\n Delegate More\n \n )}\n \n
\n
\n )}\n
\n
\n
\n \n );\n};\n\nexport default Delegate;\n","import React, { useState } from \"react\";\nimport \"./terms_main.css\";\nimport { useHistory } from \"react-router-dom\";\nimport AppState from \"../../AppState\";\nimport FLR from \"../../assets/FlareLogo.png\";\nimport SGB from \"../../assets/SGBLogo.png\";\n\nconst TermsMain = () => {\n const context = React.useContext(AppState);\n const connect = context.connect;\n const [pop, setpop] = useState(false);\n const his = useHistory(\"\");\n\n const handlePop = () => {\n setpop(!pop);\n };\n\n return (\n
\n
\n
\n \n

Lena Instruments

\n
\n
\n
\n

Terms of Services

\n

\n IMPORTANT: By wrapping and/or delegating or simply accessing or\n interacting with any of the services and products (the{\" \"}\n “Services”) and/or Flare and/or\n SongBird Smart Contracts (the{\" \"}\n “Smart Contracts” accessible via{\" \"}\n https://delegation.lena.tech), you\n acknowledge that you have read, understood, and completely agree to\n the Terms of Services hereunder, as updated and amended from time to\n time. If you do not agree to be bound by these Terms of Services or\n with any subsequent amendments, changes or updates, you should not\n access or use any of the Services or Smart Contracts accessible via{\" \"}\n https://delegation.lena.tech , and if\n you do access or use any of the Services or Smart Contracts, you\n will be bound by these Terms of Services, as updated and amended\n from time to time; your only recourse in the case of your\n unwillingness to be bound by the Terms of Services is to stop using\n all of the Services and Smart Contracts accessible via{\" \"}\n https://delegation.lena.tech. These\n Terms of Services were last updated on{\" \"}\n October 24th, 2022.\n

\n

\n You acknowledge that trading, wrapping and delegating Digital Tokens\n (including but not limited to SongBird and Flare Digital Tokens,\n known as SGB and FLR) involves significant risks of financial loss.\n You should not commit to using{\" \"}\n https://delegation.lena.tech related\n products if you are not prepared to lose entirely. Market prices for\n Digital Tokens products can be volatile and highly unpredictable.\n Losses on a position of a Digital Token product can occur quickly\n and be total and immediate. Whether the future market price of a\n Digital Token will move up or down is speculative and unknown.\n

\n

\n You should not engage in wrapping and/or delegating any Digital\n Token on https://delegation.lena.tech{\" \"}\n unless you understand the products you are about to use and their\n risk. You agree that if you interact with the Smart Contracts or\n Services available on{\" \"}\n https://delegation.lena.tech , you are\n doing so at your own risk and that you irrevocably agree and\n acknowledge that Lena Instruments and its Associate will not assume\n any liability or responsibility, and no Associate nor Lena\n Instruments shall have any liability or responsibility for any\n Losses directly or indirectly arising out of or related to utilising\n the Smart Contracts or the Services or the Digital Tokens (including\n but not limited to SGB and FLR) related to{\" \"}\n https://delegation.lena.tech\n

\n

\n You also irrevocably agree and acknowledge that Lena Instruments and\n its Associate will not assume any liability or responsibility for\n any losses directly or indirectly arising out of or related to\n entering the wrong URL, hence accessing the wrong website. The one\n and only URL, the one and only website offering the above-mentioned\n Services and Smart Contracts is the following:{\" \"}\n https://delegation.lena.tech\n

\n

\n You acknowledge that the funds you use to interact with{\" \"}\n https://delegation.lena.tech Smart\n Contracts are free and have never been tied to any criminal\n activity, for example, involvement in money laundering or terrorism\n funding schemes. You acknowledge that you are the holder of the\n necessary licences to utilise the funds interacting with{\" \"}\n https://delegation.lena.tech\n

\n

\n You understand that{\" \"}\n https://delegation.lena.tech offers\n you technology services, the Services, as well as interactions with\n smart contracts, the Smart Contracts but is not the custodian of\n your tokens, nor offer you asset management services nor hold your\n tokens nor keeps them for you/from you in any way. You are\n responsible for managing your private keys and{\" \"}\n https://delegation.lena.tech will\n never ask you for your private keys.\n

\n

\n You acknowledge that you are the holder of the necessary licences to\n utilise the funds interacting with{\" \"}\n https://delegation.lena.tech if for\n the example you are not the ultimate beneficial owner of the said\n funds.\n

\n
\n
\n {pop ? (\n <>\n
\n \n
\n {\n await connect(\"0xe\");\n if (connect) {\n his.push(\"/wrap\");\n context.reset();\n }\n }}\n >\n \"FLR\n

FLR

\n \n

/

\n {\n await connect(\"0x13\");\n if (connect) {\n his.push(\"/wrap\");\n context.reset();\n }\n }}\n >\n \"SGB\n

SGB

\n \n
\n
\n

Select your network

\n
\n
\n \n ) : (\n
\n \n By clicking \"Connect Metamask\" you acknowledge that you have read ,\n understand and completely agree to these
\n \n \n Terms of Services\n \n \n

\n \n
\n )}\n
\n );\n};\n\nexport default TermsMain;\n","import React from \"react\";\nimport TermsMain from \"../components/terms_main/TermsMain\";\n\nconst Terms = () => {\n return ;\n};\n\nexport default Terms;\n","import React from \"react\";\nimport {\n Switch,\n Route,\n Redirect,\n BrowserRouter as Router,\n} from \"react-router-dom\";\nimport AppState from \"./AppState\";\nimport Welcome from \"./components/welcome/Welcome\";\nimport Wrap from \"./pages/Wrap\";\nimport Unwrap from \"./pages/Unwrap\";\nimport Delegations from \"./pages/Delegations\";\nimport Delegate from \"./pages/Delegate\";\nimport Terms from \"./pages/terms\";\nimport \"./App.css\";\n\nfunction App() {\n const { connected } = React.useContext(AppState);\n\n return (\n
\n \n {connected ? (\n \n \n \n \n \n \n \n \n \n \n \n ) : (\n <>\n \n \n \n \n \n \n \n \n )}\n \n
\n );\n}\n\nexport default App;\n","const reportWebVitals = (onPerfEntry) => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import(\"web-vitals\").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from \"react\";\nimport ReactDOM from \"react-dom\";\n// import 'bootstrap/dist/css/bootstrap.css'\nimport { createTheme, ThemeProvider } from \"@mui/material/styles\";\nimport { AppStateProvider } from \"./AppState\";\nimport \"./fonts.css\";\nimport \"./index.css\";\nimport App from \"./App\";\nimport reportWebVitals from \"./reportWebVitals\";\n\nconst theme = createTheme({\n typography: {\n h1: {\n fontFamily: \"Lena\",\n },\n h2: {\n fontSize: \"calc((2.8 - 1) * 1.2vw + 1rem)\",\n fontFamily: \"Lena\",\n fontWeight: 400,\n textAlign: \"center\",\n },\n h3: {\n fontSize: 30,\n fontFamily: \"Roboto\",\n fontWeight: 200,\n padding: 25,\n textAlign: \"center\",\n },\n h4: {\n fontSize: 23,\n fontFamily: \"Roboto\",\n fontWeight: 400,\n padding: 10,\n textAlign: \"center\",\n },\n subtitle1: {\n fontSize: 12,\n },\n body1: {\n fontWeight: 500,\n },\n button: {\n fontFamily: \"Lena\",\n },\n poster: {\n color: \"red\",\n },\n toplink: {\n color: \"green\",\n },\n number: {\n fontSize: 100,\n fontFamily: \"Mono\",\n color: \"#000000\",\n padding: 25,\n },\n linklight: {\n fontSize: 16,\n fontFamily: \"Roboto\",\n fontWeight: 400,\n color: \"#32D74B\",\n },\n },\n});\n\nReactDOM.render(\n \n \n \n \n ,\n document.getElementById(\"root\")\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}