Reading from NEAR testnet…
Reading from NEAR testnet…
2HZGgL71cCpbtYrScfuREEthnD4EJLEpVN1vWQgAE6Qt
dokxo.testnet to v1.social08.testnet
set()
{
"data": {
"dokxo.testnet": {
"widget": {
"CreateNewPool": {
"": "const routerAbi = fetch(\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/maverick-router.txt\"\n);\nif (!routerAbi.ok) {\n return \"Loading\";\n}\nconst tokensForNEtwork = fetch(\"https://api.mav.xyz/api/v3/allTokens/5\").body\n .tokens;\n/*const POOLS = [\n {\n name: \"ETH-USDC\",\n address: \"0x41c8cf74c27554a8972d3bf3d2bd4a14d8b604ab\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/eth.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/usdc.svg\",\n },\n {\n name: \"ETH-CBUSD\",\n address: \"0x3Ae63FB198652E294B8DE4C2EF659D95D5ff28BE\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/eth.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/busd.png\",\n },\n {\n name: \"ETH-MAV\",\n address: \"0x4D47167e66e86d1a1083f52136832d4f1eF5809A\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/eth.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/mav.png\",\n },\n {\n name: \"ETH-LUSD\",\n address: \"0xB1338207DE233aE6a9A6D63309221b577F8Cd6E8\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/eth.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/lusd.svg\",\n },\n {\n name: \"ETH-RETH\",\n address: \"0x07e1F845819D7CABc03684fdb4Bf99D5cd2B2964\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/eth.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/reth.png\",\n },\n {\n name: \"ETH-CBETH\",\n address: \"0x23e8d6269717C567e4A2E9680491C8c65B67Ad0d\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/eth.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/cbeth.png\",\n },\n {\n name: \"ETH-USD+\",\n address: \"0x15461e7D0d6061e082b2c9B641634BB096527679\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/eth.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/usd+.png\",\n },\n {\n name: \"USDC-CBUSD\",\n address: \"0x88D29317A355d8586bd0D98E8745ec3171d68F56\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/usdc.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/busd.png\",\n },\n {\n name: \"USDC-MAV\",\n address: \"0xbf90be5bbc07fbf548d3bceed34f1d471c018f34\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/usdc.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/mav.png\",\n },\n {\n name: \"USDC-LUSD\",\n address: \"0x6A9143A5f9BaF73841992DCB737844e5ad16A283\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/usdc.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/lusd.svg\",\n },\n {\n name: \"USDC-USD+\",\n address: \"0xaCA5d8805D6f160Eb46E273e28169DDBF703eCdc\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/usdc.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/usd+.png\",\n },\n {\n name: \"USDC-FRAX\",\n address: \"0x4e1852cf46b24940412e13C358B4f19eC92b9eaE\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/usdc.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/frax.png\",\n },\n {\n name: \"CBUSD-MAV\",\n address: \"0x9f4A993b3120e52044810F1c91088a5630a8bF63\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/busd.png\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/mav.png\",\n },\n {\n name: \"LUSD-GRAI\",\n address: \"0x28f57e5c2823183280CC9B3B45d746A2943111C3\",\n tokenAIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/lusd.svg\",\n tokenBIcon:\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/grai.png\",\n },\n];*/\n\nconst POOLSOPTIONS = [\n {\n id: 1,\n Fee: 0.00002,\n Width: 0.0001,\n TVL: 1694019.302570403,\n Volume24: 24001404.351417527,\n Fees24: 480.02808702835057,\n },\n {\n id: 2,\n Fee: 0.0001,\n Width: 0.0001,\n TVL: 377664019.302570403,\n Volume24: 41081404.351417527,\n Fees24: 4.11808702835057,\n },\n];\n\nconst POOLSMODE = [\n {\n name: \"Mode Static\",\n description:\n \"This mode features static bins that you can use to define your own custom liquidity strategy.\",\n img: \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/ModeStatic.gif\",\n },\n {\n name: \"Mode Right\",\n description:\n \"This mode functions like a dynamic range order that follows the price of USDC up.\",\n img: \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/ModeRight.gif\",\n },\n {\n name: \"Mode Left\",\n description:\n \"This mode functions like a dynamic range order that follows the price of cBUSD up.\",\n img: \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/ModeLeft.gif\",\n },\n {\n name: \"Mode Both\",\n description:\n \"This mode functions like a dynamic range order that follows the pool price right and left, keeping liquidity as active as possible.\",\n img: \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/ModeBoth.gif\",\n },\n];\n\nconst DISTRIBUTIONMODE = [\n {\n name: \"Exponential\",\n description:\n \"This distribution starts with a high concentration of liquidity around the current pool price and adds exponentially decreasing amounts across the bins to the left and right.\",\n },\n {\n name: \"Flat\",\n description:\n \"This will distribute your liquidity evenly across bins, centered around the current pool price.\",\n },\n {\n name: \"Single Bin\",\n description: \"This will distribute your liquidity only in the active bin\",\n },\n];\n\nState.init({\n isZkSync: false,\n routerContract: \"0x39E098A153Ad69834a9Dac32f0FCa92066aD03f4\",\n step: 1,\n step1TokenAAmount: 0,\n refStep1Amount: null,\n newTokenASelected: \"\",\n newTokenBSelected: \"\",\n tokenOptionsA: tokensForNEtwork.filter(\n (option) => option.name != tokensForNEtwork[1].name\n ),\n tokenOptionsB: tokensForNEtwork.filter(\n (option) => option.name != tokensForNEtwork[0].name\n ),\n tokensForNetwork: tokensForNEtwork,\n poolSelected: POOLS[0],\n poolModeSelected: POOLSMODE[0],\n poolDistributionSelected: DISTRIBUTIONMODE[0],\n amountInputTokenA: null,\n inputBalanceTokenA: null,\n amountInputTokenB: null,\n inputBalanceTokenB: null,\n fee: 0.1,\n width: 0.5,\n showSelectOptionsModal: false,\n show: false,\n});\n\n/*const handlePoolSelect = (data) => {\n const pool = POOLS.find((p) => p.name === data.target.value);\n State.update({ poolSelected: pool });\n};*/\nconst handleTokenSelect = (token, _sel) => {\n const _tokenin = tokensForNEtwork.find((p) => p.name === token.target.value);\n _sel === \"A\"\n ? State.update({ newTokenASelected: _tokenin })\n : State.update({ newTokenBSelected: _tokenin });\n\n const filteredOptions = tokensForNEtwork.filter(\n (option) => option.name !== token.target.value\n );\n _sel === \"A\"\n ? State.update({ tokenOptionsB: filteredOptions })\n : State.update({ tokenOptionsA: filteredOptions });\n};\n/*const handlePoolOptionsSelect = (data) => {\n const poolOptions = POOLSOPTIONS.find(\n (po) => po.id === parseInt(data.target.value)\n );\n State.update({ poolOptionsSelected: poolOptions });\n};*/\n\nconst handlePoolModeSelect = (data) => {\n const mode = POOLSMODE.find((m) => m.name === data.target.value);\n State.update({ poolModeSelected: mode });\n};\n\nconst handlePoolDistributionSelect = (data) => {\n const mode = DISTRIBUTIONMODE.find((m) => m.name === data.target.value);\n State.update({ poolDistributionSelected: mode });\n};\n\nconst getNetwork = () => {\n let chainId = 5;\n Ethers.provider()\n .getNetwork()\n .then((res) => {\n if (res.chainId == chainId) {\n State.update({ isZkSync: true });\n } else {\n switchNetwork(5);\n }\n });\n};\n\nconst switchNetwork = (chainId) => {\n Ethers.provider().send(\"wallet_switchEthereumChain\", [\n { chainId: `0x${chainId.toString(16)}` },\n ]);\n};\n\nif (state.sender === undefined) {\n const accounts = Ethers.send(\"eth_requestAccounts\", []);\n if (accounts.length) {\n State.update({ sender: accounts[0] });\n getNetwork();\n }\n}\n\n/*const getRecipient = () => {\n return (\n state.sender.substring(0, 5) +\n \"...\" +\n state.sender.substring(state.sender.length - 4, state.sender.length)\n ).toUpperCase();\n};*/\n\nconst next = () => {\n if (state.step === 1 && state.step1TokenAAmount <= 0) {\n return;\n } else {\n State.update({ step: state.step + 1 });\n }\n};\n\nconst back = () => {\n State.update({ step: state.step - 1 });\n};\n\nconst formatNumber = (n) => {\n if (n >= 1000000) {\n return \"$\" + (n / 1000000).toFixed(2) + \"m\";\n } else if (n >= 1000) {\n return \"$\" + (n / 1000).toFixed(2) + \"k\";\n } else {\n return \"$\" + n.toFixed(2);\n }\n};\n\nconst getErc20Balance = () => {};\n\nconst setMaxBalanceTokenA = () => {};\n\nconst setMaxBalanceTokenB = () => {};\n\nconst validateAllowanceTokenA = (input, allowanceAmount) => {};\n\nconst validateAllowanceTokenB = (input, allowanceAmount) => {};\n\nconst confirm = () => {};\n// modal\n\nconst formatNumberFee = (n) => {\n if (n > 0.01) {\n return n.toFixed(2) + \" %\";\n }\n return n.toFixed(3) + \" %\";\n};\n\nconst formatNumberWidth = (n) => {\n if (n < 0.1) {\n return n.toFixed(2) + \" %\";\n }\n if (n < 1) {\n return n.toFixed(1) + \" %\";\n }\n return n + \" %\";\n};\n\nconst showPoolOptionsModal = () => {\n State.update({ showSelectOptionsModal: true });\n};\n\nconst closeModal = () => {\n State.update({ showSelectOptionsModal: false });\n};\n\nconst setFeeWidth = (fee, width) => {\n State.update({\n fee: fee,\n width: width,\n showSelectOptionsModal: false,\n });\n};\n\nconst css = fetch(\n \"https://raw.githubusercontent.com/yaairnaavaa/Maverick/main/widget.css\"\n).body;\n\nif (!css) return \"\";\n\nif (!state.theme) {\n State.update({\n theme: styled.div`\n ${css}\n`,\n });\n}\n\nconst MainContainer = styled.div`\n width: 490px;\n height: 500px;\n display: inline-flex;\n padding: 8px 8px 16px 8px;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n border-radius: 14px;\n background: #151718;\n @media only screen and (max-width: 385px) {\n width: 350px\n}\n@media only screen and (max-width: 415px) {\n width: 380px\n}\n`;\nconst SendContainer = styled.div`\n display: flex;\n width: 350px;\n padding: 16px;\n justify-content: space-between;\n align-items: center;\n border-radius: 8px 8px 8px 8px;\n background: rgba(255, 255, 255, 0.10);\n\n @media only screen and (max-width: 385px) {\n width: 330px\n }\n @media only screen and (max-width: 415px) {\n width: 340px\n }\n`;\n\nconst Theme = state.theme;\nreturn (\n <Theme>\n <div class=\"text-center mt-1\">\n <MainContainer>\n <div class=\"ProtocolContainer\">\n <div class=\"ProtocolNetworkContainet\">\n <div class=\"ProtocolNetworkTextSection\">\n <div class=\"ProtocolText\">PROTOCOL</div>\n </div>\n <div class=\"ProtocolNetworkSection\">\n <div class=\"ProtocolNetworkContainer\">\n <img\n class=\"ProtocolImg\"\n src=\"https://etherscan.io/token/images/maverick_32.png\"\n />\n <div class=\"NetworkText\">Maverick</div>\n </div>\n </div>\n </div>\n </div>\n {state.isZkSync ? (\n <>\n <div class=\"row\" style={{ color: \"white\", width: \"100%\" }}>\n <div\n class=\"col-4\"\n style={{\n display: \"flex\",\n justifyContent: \"end\",\n }}\n >\n <div\n style={{\n background: \"#6400FF\",\n display: \"flex\",\n width: \"30px\",\n height: \"30px\",\n justifyContent: \"center\",\n alignItems: \"center\",\n borderRadius: \"999px\",\n }}\n >\n {state.step <= 1 ? (\n 1\n ) : (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M1.25 9.375L7.875 16L18.125 4.5\"\n stroke=\"#FFFFFF\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n )}\n </div>\n </div>\n <div class=\"col-1\">-</div>\n <div\n class=\"col-2\"\n style={{\n display: \"flex\",\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n background:\n state.step >= 2 ? \"#6400FF\" : \"rgba(255, 255, 255, 0.1)\",\n display: \"flex\",\n width: \"30px\",\n height: \"30px\",\n justifyContent: \"center\",\n alignItems: \"center\",\n borderRadius: \"999px\",\n }}\n >\n {state.step <= 2 ? (\n 2\n ) : (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M1.25 9.375L7.875 16L18.125 4.5\"\n stroke=\"#FFFFFF\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n )}\n </div>\n </div>\n <div class=\"col-1\">-</div>\n <div\n class=\"col-4\"\n style={{\n display: \"flex\",\n justifyContent: \"start\",\n }}\n >\n <div\n style={{\n background:\n state.step >= 3 ? \"#6400FF\" : \"rgba(255, 255, 255, 0.1)\",\n display: \"flex\",\n width: \"30px\",\n height: \"30px\",\n justifyContent: \"center\",\n alignItems: \"center\",\n borderRadius: \"999px\",\n }}\n >\n {state.step <= 3 ? (\n 3\n ) : (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M1.25 9.375L7.875 16L18.125 4.5\"\n stroke=\"#FFFFFF\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n )}\n </div>\n </div>\n </div>\n {state.step == 1 && (\n <div\n style={{\n width: \"350px\",\n }}\n >\n <div class=\"titleSwap text-start\">Select Token Pair</div>\n <div>\n <SendContainer\n style={{\n height: \"50px\",\n \"margin-bottom\": \"3px\",\n }}\n >\n <div class=\"TokenSection\">\n {\n <img\n style={{ width: \"30px\", height: \"30px\" }}\n src={\n state.newTokenASelected\n ? state.newTokenASelected.logoURI\n : tokensForNEtwork[0].logoURI\n }\n alt=\"icon not found\"\n />\n }\n\n <div class=\"TokenNameSection\">\n <select\n class=\"TokenNameSelect\"\n value={\n state.newTokenASelected\n ? state.newTokenASelected.name\n : \"default\"\n }\n onChange={(e) => {\n handleTokenSelect(e, \"A\");\n }}\n >\n {/* <option value={state.tokensForNetwork[0].name}>\n {state.tokensForNetwork[0].name}\n </option>*/}\n {state.tokenOptionsA.map((p) => {\n return <option value={p.name}>{p.name}</option>;\n })}\n </select>\n </div>\n </div>\n </SendContainer>\n\n <SendContainer style={{ height: \"50px\", width: \"350px\" }}>\n <div class=\"TokenSection\">\n <img\n style={{ width: \"30px\", height: \"30px\" }}\n src={\n state.newTokenBSelected\n ? state.newTokenBSelected.logoURI\n : tokensForNEtwork[1].logoURI\n }\n alt=\"icon not found\"\n />{\" \"}\n <div class=\"TokenNameSection\">\n <select\n class=\"TokenNameSelect\"\n value={\n state.newTokenBSelected\n ? state.newTokenBSelected.name\n : \"default\"\n }\n onChange={(e) => {\n handleTokenSelect(e, \"B\");\n }}\n >\n {/* <option\n value={state.tokensForNetwork[1].name}\n disabled={state.newTokenBSelected}\n >\n {state.tokensForNetwork[1].name}\n </option>*/}\n {state.tokenOptionsB.map((p) => {\n return <option value={p.name}>{p.name}</option>;\n })}\n </select>\n </div>\n </div>\n </SendContainer>\n </div>\n\n <>\n <div class=\"titleSwap\">Select Pool Options</div>\n <br />\n <SendContainer\n class=\"\"\n style={{\n margin: \"auto\",\n height: \"55px\",\n border: \"1px solid #8D8DFD\",\n justifyContent: \"center\",\n }}\n >\n <div class=\"row\" style={{ width: \"100%\" }}>\n <div class=\"col-12\">\n <div class=\"TokenNameSection\">\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n gap: \"8px\",\n borderRadius: \"4px\",\n height: \"40px\",\n\n padding: \"5px\",\n }}\n >\n <div\n style={{\n width: \"70%\",\n display: \"flex\",\n justifyContent: \"start\",\n }}\n >\n {state.fee && (\n <span\n style={{\n color: \"white\",\n display: \"inline\",\n marginRight: \"5px\",\n fontSize: \"0.75rem\",\n border: \"1px solid rgb(97, 97, 97)\",\n borderRadius: \"5px\",\n padding: \"3px\",\n backgroundColor:\n \"rgba(255, 255, 255, 0.15)\",\n }}\n >\n {formatNumberFee(state.fee) + \" Fee\"}\n </span>\n )}\n {state.width && (\n <span\n style={{\n color: \"white\",\n display: \"inline\",\n marginRight: \"5px\",\n fontSize: \"0.75rem\",\n border: \"1px solid rgb(97, 97, 97)\",\n borderRadius: \"5px\",\n padding: \"3px\",\n backgroundColor:\n \"rgba(255, 255, 255, 0.15)\",\n }}\n >\n {formatNumberWidth(state.width) + \" Width\"}\n </span>\n )}\n </div>\n <div\n style={{\n width: \"30%\",\n display: \"flex\",\n justifyContent: \"end\",\n }}\n >\n <span\n style={{\n color: \"white\",\n display: \"inline\",\n marginRight: \"5px\",\n fontSize: \"0.75rem\",\n border: \"1px solid rgb(97, 97, 97)\",\n borderRadius: \"5px\",\n padding: \"3px\",\n cursor: \"pointer\",\n backgroundColor: \"rgba(255, 255, 255, 0.15)\",\n }}\n onClick={() => showPoolOptionsModal()}\n >\n Edit Options\n </span>\n {state.showSelectOptionsModal && (\n <Widget\n props={{\n setFeeWidth,\n fee: state.fee,\n width: state.width,\n poolName1: \"LINK-ETH\", //Cambia la cadena \"LINK-ETH\" y formadla con los valores del state de los 2 tokens que seleccionaste\n poolName2: \"ETH-LINK\", //Cambia la cadena \"ETH-LINK\" y formadla con los valores del state de los 2 tokens que seleccionaste\n closeModal,\n }}\n src={\n \"yairnava.testnet/widget/SelectOptionsNewPool\"\n }\n />\n )}\n </div>\n </div>\n </div>\n </div>\n {/**\n <div class=\"col-12 mt-2\">\n <div class=\"TokenNameSection\">\n Input del Token A Aqui\n </div>\n </div>\n */}\n </div>\n </SendContainer>\n </>\n {/**\n <button\n class=\"SendContainer \"\n style={{\n margin: \"auto\",\n height: \"50px\",\n width: \"350px\",\n color: \"white\",\n fontSize: \"20px\",\n }}\n >\n 0.002%\n </button>\n */}\n <br />\n <SendContainer\n style={{\n margin: \"auto\",\n height: \"60px\",\n color: \"white\",\n fontSize: \"20px\",\n }}\n >\n <div class=\"\">\n <img\n style={{ width: \"30px\", height: \"30px\" }}\n src={\n state.newTokenASelected\n ? state.newTokenASelected.logoURI\n : tokensForNEtwork[0].logoURI\n }\n alt=\"icon not found\"\n />{\" \"}\n {state.newTokenASelected\n ? state.newTokenASelected.name.substring(0, 10) +\n (state.newTokenASelected.name.length > 10 ? \"...\" : \"\")\n : tokensForNEtwork[0].name}\n </div>\n <div class=\" \">\n <div class=\" text-end \" style={{ \"font-size\": \"14px\" }}>\n <input\n class=\"TokenAmountInput\"\n type=\"text\"\n placeholder=\"0\"\n inputmode=\"decimal\"\n min=\"0\"\n pattern=\"^[0-9]*[.]?[0-9]*$\"\n value={state.amountInputTokenB}\n onChange={(e) => {\n State.update({ step1TokenAAmount: e.target.value });\n validateAllowanceTokenB(e.target.value);\n }}\n />\n </div>\n <div class=\" text-end\" style={{ \"font-size\": \"12px\" }}>\n <span class=\"UserBalance\">\n <span\n class=\"text-white\"\n onClick={async () => {\n setMaxBalanceTokenB();\n }}\n >\n per 1{\" \"}\n {state.newTokenBSelected\n ? state.newTokenBSelected.name\n : tokensForNEtwork[1].name}\n </span>\n </span>\n </div>\n </div>\n </SendContainer>\n </div>\n )}\n\n {state.step == 2 && (\n <div>\n <div class=\"titleSwap\">Select Mode</div>\n <br />\n <div style={{ margin: \"auto\", width: \"460px\" }}>\n <div\n class=\"row\"\n style={{\n width: \"100%\",\n height: \"100px\",\n display: \"flex\",\n margin: \"0\",\n }}\n >\n <div class=\"col-6\">\n <p\n style={{\n textAlign: \"justify\",\n color: \"white\",\n fontSize: \"13px\",\n }}\n >\n {state.poolModeSelected.description}\n </p>\n </div>\n <div class=\"col-6\">\n <SendContainer style={{ width: \"220px\", height: \"70px\" }}>\n <div class=\"TokenSection\">\n <div class=\"TokenNameSection\">\n <div class=\"TokenAction\">Pool Mode {\"->\"}</div>\n <select\n class=\"TokenNameSelect\"\n value={\n state.poolModeSelected\n ? state.poolModeSelected.name\n : \"default\"\n }\n onChange={handlePoolModeSelect}\n >\n <option\n value=\"default\"\n disabled={state.poolModeSelected}\n >\n Select Mode\n </option>\n {POOLSMODE.map((m) => {\n return <option>{m.name}</option>;\n })}\n </select>\n </div>\n </div>\n </SendContainer>\n </div>\n </div>\n </div>\n <div style={{ overflow: \"hidden\" }}>\n {state.poolModeSelected && (\n <img\n src={state.poolModeSelected.img}\n style={{ height: \"166px\", transform: \"scale(1.3)\" }}\n ></img>\n )}\n </div>\n </div>\n )}\n {state.step == 3 && (\n <div style={{ height: \"314px\" }}>\n {state.poolModeSelected.name == \"Mode Static\" && (\n <>\n <div class=\"titleSwap\">Select Distribution</div>\n <br />\n <div style={{ margin: \"auto\", width: \"350px\" }}>\n <div\n class=\"row\"\n style={{\n width: \"100%\",\n height: \"60px\",\n display: \"flex\",\n }}\n >\n <div class=\"col-6\">\n <SendContainer style={{ height: \"50px\" }}>\n <div class=\"TokenSection\">\n <div class=\"TokenNameSection\">\n <div class=\"TokenAction\">\n Distribution mode {\"->\"}\n </div>\n <select\n class=\"TokenNameSelect\"\n value={\n state.poolDistributionSelected\n ? state.poolDistributionSelected.name\n : \"default\"\n }\n onChange={handlePoolDistributionSelect}\n >\n <option\n value=\"default\"\n disabled={state.poolModeSelected}\n >\n Select Distribution\n </option>\n {DISTRIBUTIONMODE.map((m) => {\n return <option>{m.name}</option>;\n })}\n </select>\n </div>\n </div>\n </SendContainer>\n </div>\n </div>\n </div>\n </>\n )}\n <div class=\"titleSwap\">Required Assets</div>\n <br />\n <SendContainer\n style={{\n margin: \"auto\",\n\n filter:\n state.poolModeSelected.name == \"Mode Left\"\n ? \"blur(3px)\"\n : \"\",\n }}\n >\n <div class=\"TokenSection\">\n {state.poolSelected ? (\n <img\n class=\"TokenImg\"\n src={state.poolSelected.tokenAIcon}\n />\n ) : null}\n <div class=\"TokenNameSection\" style={{ color: \"white\" }}>\n <div class=\"TokenAction\">Token A {\"->\"}</div>\n Token A\n </div>\n </div>\n {state.poolModeSelected.name != \"Mode Left\" && (\n <div class=\"TokenAmountSection\">\n <input\n class=\"TokenAmountInput\"\n type=\"text\"\n placeholder=\"0\"\n inputmode=\"decimal\"\n min=\"0\"\n pattern=\"^[0-9]*[.]?[0-9]*$\"\n value={state.amountInputTokenA}\n onChange={(e) =>\n validateAllowanceTokenA(e.target.value)\n }\n />\n <div class=\"TokenAmountPreview\">\n {state.inputBalanceTokenA != null ? (\n state.inputBalanceTokenA &&\n state.inputBalanceTokenA > 0 ? (\n <span>\n Balance: {state.inputBalanceTokenA}\n <span\n class=\"UserBalance\"\n onClick={async () => {\n setMaxBalanceTokenA();\n }}\n >\n MAX\n </span>\n </span>\n ) : (\n \"Balance: 0\"\n )\n ) : (\n \"Balance: 0\"\n )}\n </div>\n {false ? (\n <div class=\"TokenInsufficientBalance\">\n Insufficient Balance\n </div>\n ) : null}\n </div>\n )}\n </SendContainer>\n <br />\n <SendContainer\n style={{\n margin: \"auto\",\n filter:\n state.poolModeSelected.name == \"Mode Right\"\n ? \"blur(3px)\"\n : \"\",\n }}\n >\n <div class=\"TokenSection\">\n {state.poolSelected ? (\n <img\n class=\"TokenImg\"\n src={state.poolSelected.tokenBIcon}\n />\n ) : null}\n <div class=\"TokenNameSection\" style={{ color: \"white\" }}>\n <div class=\"TokenAction\">Token B {\"->\"}</div>\n Token B\n </div>\n </div>\n {state.poolModeSelected.name != \"Mode Right\" && (\n <div class=\"TokenAmountSection\">\n <input\n class=\"TokenAmountInput\"\n type=\"text\"\n placeholder=\"0\"\n inputmode=\"decimal\"\n min=\"0\"\n pattern=\"^[0-9]*[.]?[0-9]*$\"\n value={state.amountInputTokenB}\n onChange={(e) =>\n validateAllowanceTokenB(e.target.value)\n }\n />\n <div class=\"TokenAmountPreview\">\n {state.inputBalanceTokenB != null ? (\n state.inputBalanceTokenB &&\n state.inputBalanceTokenB > 0 ? (\n <span>\n Balance: {state.inputBalanceTokenB}\n <span\n class=\"UserBalance\"\n onClick={async () => {\n setMaxBalanceTokenB();\n }}\n >\n MAX\n </span>\n </span>\n ) : (\n \"Balance: 0\"\n )\n ) : (\n \"Balance: 0\"\n )}\n </div>\n {false ? (\n <div class=\"TokenInsufficientBalance\">\n Insufficient Balance\n </div>\n ) : null}\n </div>\n )}\n </SendContainer>\n </div>\n )}\n <div class=\"row\" style={{ marginInline: \"0px\", width: \"100%\" }}>\n <div\n class=\"col-6\"\n style={{ display: \"flex\", justifyContent: \"left\" }}\n >\n {state.step > 1 && (\n <div\n style={{\n width: \"110px\",\n display: \"flex\",\n cursor: \"pointer\",\n justifyContent: \"center\",\n alignItems: \"center\",\n gap: \"8px\",\n borderRadius: \"4px\",\n height: \"40px\",\n border: \"1px solid #8D8DFD\",\n }}\n onClick={back}\n >\n <div class={\"ConfirmText\"}>Back</div>\n </div>\n )}\n </div>\n <div\n class=\"col-6\"\n style={{ display: \"flex\", justifyContent: \"right\" }}\n >\n {state.step < 3 && (\n <>\n <OverlayTrigger\n key={\"top\"}\n placement={\"top\"}\n overlay={\n state.step1TokenAAmount <= 0 ? (\n <Tooltip id={`tooltip-${placement}`}>\n {\"increase the \"}\n {state.newTokenASelected.name}\n {\" token amount\"}.\n </Tooltip>\n ) : (\n <></>\n )\n }\n >\n <button\n style={{\n width: \"110px\",\n display: \"flex\",\n cursor: \"pointer\",\n justifyContent: \"center\",\n alignItems: \"center\",\n gap: \"8px\",\n borderRadius: \"4px\",\n background: \"rgb(141, 141, 253)\",\n height: \"40px\",\n }}\n onClick={next}\n >\n <div class={\"ConfirmText\"}>Next</div>\n </button>\n </OverlayTrigger>\n </>\n )}\n {state.step == 3 && (\n <div\n style={{\n width: \"110px\",\n display: \"flex\",\n cursor: \"pointer\",\n justifyContent: \"center\",\n alignItems: \"center\",\n gap: \"8px\",\n borderRadius: \"4px\",\n background: \"rgb(141, 141, 253)\",\n height: \"40px\",\n }}\n onClick={confirm}\n >\n <div class={\"ConfirmText\"}>Confirm</div>\n </div>\n )}\n </div>\n </div>\n </>\n ) : state.sender ? (\n <span class=\"text-white\">\n To proceed, please switch to the\n <br />\n <div class=\"networkNameContainer\" onClick={() => switchNetwork(5)}>\n <span class=\"networkName\">zkSync Era Network</span>\n </div>\n using your wallet.\n </span>\n ) : (\n <>\n <div>\n <Web3Connect\n className=\"ConfirmButton ConfirmText\"\n connectLabel=\"Connect Wallet\"\n />\n </div>\n </>\n )}\n </MainContainer>\n </div>\n </Theme>\n);\n",
"metadata": {
"image": {}
}
}
}
}
}
}1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"2HZGgL71cCpbtYrScfuREEthnD4EJLEpVN1vWQgAE6Qt","sender_account_id":"dokxo.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.