{"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 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 \nSelect your network
\n{SimpleAddress}
\n\n Claim my rewards to the below address:\n
\n setRewardadd(e.target.value)}\n />\nUnclaimed rewards
\nfrom previous epochs
\n\n {\" \"}\n {Number.parseFloat(claimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\nPending rewards
\nfrom current epoch
\n\n {\" \"}\n {Number.parseFloat(unclaimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\n{appState.result.claim}
\n \nSomething went wrong. Please try again.
\n \nYou successfully wrapped your tokens.
\n{SimpleAddress}
\n\n Claim my rewards to the below address:\n
\n setRewardadd(e.target.value)}\n />\nUnclaimed rewards
\nfrom previous epochs
\n\n {\" \"}\n {Number.parseFloat(claimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\nPending rewards
\nfrom current epoch
\n\n {\" \"}\n {Number.parseFloat(unclaimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\n{appState.result.claim}
\n \nSomething went wrong. Please try again.
\n \nYou successfully unwrapped your tokens.
\n{SimpleAddress}
\n\n Claim my rewards to the below address:\n
\n setRewardadd(e.target.value)}\n />\nUnclaimed rewards
\nfrom previous epochs
\n\n {\" \"}\n {Number.parseFloat(claimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\nPending rewards
\nfrom current epoch
\n\n {\" \"}\n {Number.parseFloat(unclaimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\nProvider's name | \nWSGB balance | \n\n W{network === \"0xe\" ? \"FLR\" : \"SGB\"} delegated\n amount\n | \nPercentage | \n {!(\n appState.delegations.length === 1 &&\n appState.delegations[0].address === lenaAddress &&\n appState.delegations[0].amount === 10000\n ) &&Actions | }\n
---|
You aren't delegating your votes.
\n \n >\n )}\n >\n ) : appState.result.claim ? (\n{appState.result.claim}
\n \nSomething went wrong. Please try again.
\n \nYou successfully undelegated your tokens.
\n \n{SimpleAddress}
\n\n Claim my rewards to the below address:\n
\n setRewardadd(e.target.value)}\n />\nUnclaimed rewards
\nfrom previous epochs
\n\n {\" \"}\n {Number.parseFloat(claimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\n
\nPending rewards
\nfrom current epoch
\n\n {\" \"}\n {Number.parseFloat(unclaimable).toFixed(2)}{\" \"}\n {network === \"0xe\" ? \"FLR\" : \"SGB\"}\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 You don't have enough{\" \"}\n W{network === \"0xe\" ? \"FLR\" : \"SGB\"}.\n
\n \n >\n )}\n >\n ) : appState.result.claim ? (\n{appState.result.claim}
\n \nSomething went wrong. Please try again.
\n \nSomething went wrong. Please try again.
\n \nYou successfully undelegated your tokens.
\n \nYou successfully delegated your tokens.
\nTerms 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 \nSelect your network
\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