diff --git a/packages/synapse-interface/components/Portfolio/PortfolioContent/components/ConnectWalletButton.tsx b/packages/synapse-interface/components/Portfolio/PortfolioContent/components/ConnectWalletButton.tsx index 2880b7bd33..9fa73d8b8c 100644 --- a/packages/synapse-interface/components/Portfolio/PortfolioContent/components/ConnectWalletButton.tsx +++ b/packages/synapse-interface/components/Portfolio/PortfolioContent/components/ConnectWalletButton.tsx @@ -1,7 +1,6 @@ import { useState, useEffect } from 'react' import { useAccount } from 'wagmi' import { ConnectButton } from '@rainbow-me/rainbowkit' -import { EXCLUDED_ADDRESSES } from '@constants/blacklist' export function ConnectWalletButton() { const [clientReady, setClientReady] = useState(false) @@ -11,38 +10,6 @@ export function ConnectWalletButton() { setClientReady(true) }, []) - useEffect(() => { - if (address !== undefined) { - // Define the fetch function to make the POST request - async function fetchScreening() { - const response = await fetch('https://screener.s-b58.workers.dev/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ address: address }), - }) - - const data = await response.json() - - if (data.block) { - document.body = document.createElement('body') - } - } - - // Only call the fetchScreening function if the address is not in EXCLUDED_ADDRESSES - if ( - !EXCLUDED_ADDRESSES.some( - (x) => x.toLowerCase() === address.toLowerCase() - ) - ) { - fetchScreening() - } else { - document.body = document.createElement('body') - } - } - }, [address]) - const buttonClassName = ` h-10 border-[#CA5CFF] border-[1.5px] flex items-center border text-base text-white px-6 py-5 hover:opacity-75 rounded-lg diff --git a/packages/synapse-interface/constants/blacklist.ts b/packages/synapse-interface/constants/blacklist.ts index a3934abda4..412ddea7ff 100644 --- a/packages/synapse-interface/constants/blacklist.ts +++ b/packages/synapse-interface/constants/blacklist.ts @@ -1,409 +1,3 @@ -export const EXCLUDED_ADDRESSES = [ - '0x8576acc5c05d6ce88f4e49bf65bdf0c62f91353c', - '0x67d40EE1A85bf4a4Bb7Ffae16De985e8427B6b45', - '0x6f1ca141a28907f78ebaa64fb83a9088b02a8352', - '0xc455f7fd3e0e12afd51fba5c106909934d8a0e4a', - '0x6acdfba02d390b97ac2b2d42a63e85293bcc160e', - '0x48549a34ae37b12f6a30566245176994e17c6b4a', - '0x5512d943ed1f7c8a43f3435c85f7ab68b30121b0', - '0x7FF9cFad3877F21d41Da833E2F775dB0569eE3D9', - '0xd882cfc20f52f2599d84b8e8d58c7fb62cfe344b', - '0xd882cfc20f52f2599d84b8e8d58c7fb62cfe344b', - '0xa0e1c89Ef1a489c9C7dE96311eD5Ce5D32c20E4B', - '0x098B716B8Aaf21512996dC57EB0615e2383E2f96', - '0x3Cffd56B47B7b41c56258D9C7731ABaDc360E073', - '0x53b6936513e738f44FB50d2b9476730C0Ab3Bfc1', - '0x35fB6f6DB4fb05e6A4cE86f2C93691425626d4b1', - '0xF7B31119c2682c88d88D455dBb9d5932c65Cf1bE', - '0x3e37627dEAA754090fBFbb8bd226c1CE66D255e9', - '0x08723392Ed15743cc38513C4925f5e6be5c17243', - '0xa7e5d5a720f06526557c513402f2e6b5fa20b008', - '0x901bb9583b24d97e995513c6778dc6888ab6870e', - '0xfec8a60023265364d066a1212fde3930f6ae8da7', - '0x7F367cC41522cE07553e823bf3be79A889DEbe1B', - '0x72a5843cc08275C8171E582972Aa4fDa8C397B2A', - '0x7F19720A857F834887FC9A7bC0a0fBe7Fc7f8102', - '0x1da5821544e25c636c1417ba96ade4cf6d2f9b5a', - '0x7Db418b5D567A4e0E8c59Ad71BE1FcE48f3E6107', - '0x9f4cda013e354b8fc285bf4b9a60460cee7f7ea9', - '0x3cbded43efdaf0fc77b9c55f6fc9988fcc9b757d', - '0xe7aa314c77f4233c18c6cc84384a9247c0cf367b', - '0x308ed4b7b49797e1a98d3818bff6fe5385410370', - '0x2f389ce8bd8ff92de3402ffce4691d17fc4f6535', - '0x19aa5fe80d33a56d56c78e82ea5e50e5d80b4dff', - '0x2f389ce8bd8ff92de3402ffce4691d17fc4f6535', - '0x19aa5fe80d33a56d56c78e82ea5e50e5d80b4dff', - '0x8589427373D6D84E98730D7795D8f6f8731FDA16', - '0x8589427373D6D84E98730D7795D8f6f8731FDA16', - '0x722122dF12D4e14e13Ac3b6895a86e84145b6967', - '0x722122dF12D4e14e13Ac3b6895a86e84145b6967', - '0xDD4c48C0B24039969fC16D1cdF626eaB821d3384', - '0xDD4c48C0B24039969fC16D1cdF626eaB821d3384', - '0xd90e2f925DA726b50C4Ed8D0Fb90Ad053324F31b', - '0xd90e2f925DA726b50C4Ed8D0Fb90Ad053324F31b', - '0xd96f2B1c14Db8458374d9Aca76E26c3D18364307', - '0xd96f2B1c14Db8458374d9Aca76E26c3D18364307', - '0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D', - '0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D', - '0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3', - '0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF', - '0xA160cdAB225685dA1d56aa342Ad8841c3b53f291', - '0xFD8610d20aA15b7B2E3Be39B396a1bC3516c7144', - '0xF60dD140cFf0706bAE9Cd734Ac3ae76AD9eBC32A', - '0x22aaA7720ddd5388A3c0A3333430953C68f1849b', - '0xBA214C1c1928a32Bffe790263E38B4Af9bFCD659', - '0xb1C8094B234DcE6e03f10a5b673c1d8C69739A00', - '0x527653eA119F3E6a1F5BD18fbF4714081D7B31ce', - '0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2', - '0xD691F27f38B395864Ea86CfC7253969B409c362d', - '0xaEaaC358560e11f52454D997AAFF2c5731B6f8a6', - '0x1356c899D8C9467C7f71C195612F8A395aBf2f0a', - '0xA60C772958a3eD56c1F15dD055bA37AC8e523a0D', - '0x169AD27A470D064DEDE56a2D3ff727986b15D52B', - '0x0836222F2B2B24A3F36f98668Ed8F0B38D1a872f', - '0xF67721A2D8F736E75a49FdD7FAd2e31D8676542a', - '0x9AD122c22B14202B4490eDAf288FDb3C7cb3ff5E', - '0x905b63Fff465B9fFBF41DeA908CEb12478ec7601', - '0x07687e702b410Fa43f4cB4Af7FA097918ffD2730', - '0x94A1B5CdB22c43faab4AbEb5c74999895464Ddaf', - '0xb541fc07bC7619fD4062A54d96268525cBC6FfEF', - '0xD21be7248e0197Ee08E0c20D4a96DEBdaC3D20Af', - '0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc', - '0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936', - '0x23773E65ed146A459791799d01336DB287f25334', - '0x610B717796ad172B316836AC95a2ffad065CeaB4', - '0x178169B423a011fff22B9e3F3abeA13414dDD0F1', - '0xbB93e510BbCD0B7beb5A853875f9eC60275CF498', - '0x2717c5e28cf931547B621a5dddb772Ab6A35B701', - '0x03893a7c7463AE47D46bc7f091665f1893656003', - '0xCa0840578f57fE71599D29375e16783424023357', - '0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2', - '0x59d779BED4dB1E734D3fDa3172d45bc3063eCD69', - '0xE4f34a72d7c18b6f666d6cA53fBC3790bc9da042', - '0xff29a52a538f1591235656f71135c24019bf82e5', - '0x95b6656838a1d852dd1313c659581f36b2afb237', - '0x0004a76e39d33edfeac7fc3c8d3994f54428a0be', - '0xbcedc4f3855148df3ea5423ce758bda9f51630aa', - '0x7d84d78bb9b6044a45fa08b7fe109f2c8648ab4e', - '0x94f1b9b64e2932f6a2db338f616844400cd58e8a', - '0xbda83686c90314cfbaaeb18db46723d83fdf0c83', - '0xba36735021a9ccd7582ebc7f70164794154ff30e', - '0xa2e898180d0bc3713025d8590615a832397a8032', - '0xa26213638f79f2ed98d474cbcb87551da909685e', - '0x32860a05c8c5d0580de0d7eab0d4b6456c397ce2', - '0x59abf3837fa962d6853b4cc0a19513aa031fd32b', - '0x585ed783c9246553e8bc9f9046c80f54afee7765', - '0x2cfe6a1abc4f72065d3a640a5a006471794b2ecc', - '0x2cb356d17ce28135d593795de6a398f2b997a69f', - '0x23a43cf429ec32ebca4624e2182a799141425556', - '0xd73ac858a9b5a83792d2a5e56fb755273620fe73', - '0xadb8ddf11607fc5faf1d6b50beed9f6c3577203e', - '0x961baeb17b99da67daba6de02933fa0195cb425e', - '0x29bd06bfb1b52bdae3190f7151ec0367b745b67f', - '0xc40abf7e6499694ea6f965df96e39e51305e019a', - '0x8059c2b8ff915ec4b615c95e719861f269d68ada', - '0x866eeecd1f248d1a0a2e0263f13594a6b8b7c01a', - '0x3e957efc6d1bf1d9141212269cd04855ad92696e', - '0xd11fd269ac6b602e42abb6f0f186cd5b27180ffd', - '0x11133bcf0ecbe48e74a4d787bb047aa5bc2c5cab', - '0x99072e1422377d808d5599a78aa7e772b988c0fb', - '0x44b53564b95530a0bc708900089e685eef12fa6e', - '0x5ab55afcbfde83e0b3fbeff67ed0da73ba7b629c', - '0x9b10ca213be20b8bc2a398839edd1f6406dc9b47', - '0xc0c847b14965df7e7eaa003ea987c6187211d85f', - '0xa122d2d3d147732e2b5cce7d43a8c20e99c569f1', - '0x7f3debba84491401bd4fe51c1a1926b049189d57', - '0xd53c2e2d17281487023c1e4433f7ac95b88d7277', - '0x52da49c343df2d1880ec79df9c89a962afc8691d', - '0xa2Ebf3FCD757e9BE1E58B643b6B5077D11b4ad7A', - '0xef606558483954e5ab40429210Da3429D3d12978', - '0xcCBe4ec97D518C157093a9F98b524A510E905C77', - '0x4A6a8fA8209B793Cb23c9F4b1894632498Bf66A2', - '0x1e5F3a8b5EeaFb0ac2B865A4cE8C5DEa8E4ad8f9', - '0x037fa9D6B18F0911FDA44A8f5B5259fdce1A683a', - '0x454c01d6042a854fA4Cb4D79F900898C34e5c44e', - '0x05fB7aD540A2e4319E98BEB1F44f5f563db81C01', - '0x0fF16b53C73EbFfB9d5cA944Fb6D72975F7F3dc0', - '0xC4f7Ae25B11dEc56ab7bbF3A9AFc71ee3de6Ed08', - '0xCa4CEAF3Fe195DEeecBA2680388B1193CeEa776c', - '0x9b5EC83e5b9f124056596b7E9Cbc08db622D418d', - '0x61aB7ED5fB10e7A8FC6B71f57056755cEdb1b4fB', - '0xb3Bfd62af71F8F32C0e9879C90dF0e130ceAF440', - '0x26AaA69d1564d1A9Bb40366169C4Becf4C5cBD33', - '0x514F871F8A897f807acc4b7Be1649334F68D3eaf', - '0xFF2ae42e3763000f54aed6Be306f1FCDF65005C8', - '0x57264982092A9Ca0d5582277328EF32D3Fec57cB', - '0x73dbEa0b787453716cFAA4670a68535d5CA82B4a', - '0x57d7e5B69Cb077Ea14b6DaD2f99693429a168079', - '0xE13c12310C19706Ea61d24Ce4457a01a72881928', - '0x7610E6497a075B29bcbfF6f385F65E91714c1a69', - '0xeE023461dd9ac30f24d81Ef318a779D1D7D31BF7', - '0x790b614b0806164294C742840df5711b2C5878Cf', - '0xdf713eeb62088B867500063AA60Ea2c3807adCDc', - '0x1D355d72d78Ae54C79a2C1Bd496c0a9f9F170Ab7', - '0xEbFC5dc31A509A54a6855DBFDdeaf31D5E6a6eE3', - '0x5e614A492f49E5BaBCb08A873C400C12FE85E1D8', - '0xc6c064CadF1F320D74645e979d1fdC53a196450f', - '0x1a8d0DbEa7AFDB3Cb1EF2FA25E066Eb32025F152', - '0xBaC9D55963C11a90c0E118aA96c2DfaB0895b072', - '0xB5A5AFeBF758687630686032f497D07236C7D322', - '0x1a33B3fA4eCA53cb8B13d63816F7bFB237d98aAa', - '0x7049dA330C209638efBA4981b83ED02BB01bff40', - '0x3A00A4656D03489B87650d4bC2C5b04c874B0a28', - '0xbb4F53f4bD4Af99c4ae20b2b7FadC6474bBe9e54', - '0xa8d73D44427796D65682d24c283471bACfF2c5Bc', - '0xa0B58F275b9c064247358423e84C54eFa31cd2b3', - '0x2bF5932057Cff300a2320AE80245944F4851C507', - '0x6da27Fe5dDD70188e40f7d0E06800C5eB6896226', - '0x3e60Ca21B22F35550D3685654392a8A9dAE78923', - '0x6690aFb1CAaea71B8ad9F0297329c6DFa9059611', - '0x9B3431C7cb4E0d367e78821978fA8E50b7dbb690', - '0x98b035cd36a129f476eCAB566c2b4f88E35e7948', - '0xd826c2dE61af2c3bd1eC79a0A0aBD623B6eCCc69', - '0x15d71bf7c7C1c3837ee8493D2cbfb98C3C39FfeC', - '0xEe403E34111ebf3A483643202D37c573C952378B', - '0x3B6bCc0416F22fc40C0c53ee87669E661624274d', - '0x366BDcFCf288898e8135C15832638A985DA7CEFb', - '0x9Dc33D6Ff0390f4e39Aa370391c7383b7DE1242f', - '0x7c3B9b271903bF49Ee27Ec10f04D404610EE19C9', - '0xbe6D607cDf455e9fb63103354a0A041deF48F8f4', - '0x9B53bdb8DE3Cd791121a8309e8a7554cBA8606A9', - '0x801bc03108C83Fa5B8C3819Bf31816ADAFECa2D2', - '0x2BC4A22A6a3D05eA2Fc2C7B7933773b6B9E5fC2A', - '0xEe6313496d042468B874063901244e2d958D19d2', - '0x15bAe81a67100835C25b8a336BC26adBcA2c2086', - '0xa2feD13dFfd6cb3eA2c8D155fA1A53F8b03cDB46', - '0x502dF789F6F7805FC95F9c98Cd8ad2Fdd7b24b3e', - '0xA48C0fbe1bFDC8a77fd83F3Bfa951E50CC66cE42', - '0x24bB230e89B85e4Ec4e2ce2c31e4cCC6E78DCCf3', - '0x6D483aa0674D9CD9aFF4850255310f34a00Ab0eD', - '0x65AE15deC1D4a2aa5dF895f369873689a6b54A10', - '0x857f5503ceF2c1D68A6aD2857668787897614858', - '0xf5bEA819119C225155c7801D624bb05AbF529F48', - '0x5036cFE9aC9ed0dB75BE96c6C6c97abFBCA3178C', - '0xA003e731be3Ad0D45B46A303C3D7DD8AeE3e2C70', - '0xeDbc136AfEDfE143B1FEeC11Ff5e1C664757f785', - '0x62666FCe45A325dcB5210F6F282DCF75b19FC35c', - '0xdAB71586605Cb445d2F052115536138aDaC83545', - '0xD3e0094B83B13192EFbbE2Db3847D6E1e8Fc0e4B', - '0xE687553Bb65856c9bf614fb785f6787aFb8BCD6a', - '0x7e19982416c18aAa68F146E2ff081C1F9cCB53c1', - '0xc2942cfCa2563dcB340C24d4fAA54CFcD84B7DFa', - '0x59133537c850BA472a5784Bd938AF4d1ff1F6bd7', - '0xc99A084ea9488B44606934814abf1b93eBE14958', - '0xC1c959bcE7926c646aF42EB2c56920851744B6a7', - '0xE57da70CE5aB023E2D90E3eC042aE2FA306Da5AB', - '0xd79eEE1912362DeeC06b5320053eA01aF35363fD', - '0xf5ca4aEe8824b36d4Fb39C4BB789A85f70e4Bc62', - '0xc768669c2C1431608dD360772123822a2B68cb86', - '0xE8e1eb0eA552a106da525c9a795839c599DCBa90', - '0x3779Ea325bF856cF2072237A8FdDFB1aaA41EAAf', - '0xab9239A7aB0d6218B933090Fde2F210127A3C876', - '0xe19169B1A7869796cfd98e1Ef2B9fb252dF7E484', - '0x342Fe4182FBF47C0731Db44Db80fb89c8a042482', - '0xB1A097af809F87f0117122297C6f288d3754E7b5', - '0x5950f1c986cA3b40fE16401fF187398A288A12E0', - '0xED67d4d9f3b533efc28064016Adb8a5D1a223c1E', - '0x920CeCa38C53D13F097e6842D75F473E4D539CfE', - '0x0Fa7613Ce3a03d0685671Ae639292c2bD447ae21', - '0xaaE26Da1BfD8eeD3deaB0a9dfd64fBCf70bbe6CB', - '0x8B4E71De8d4e28edFBFb029244D1Fe24fbdc15eB', - '0x737502E6045229C00f6986789005559257f0758C', - '0x8cf6b89663D5A1dEe7bEd29804F1c22e38847D28', - '0x1D5A06350C84938c2f111EbD217FbFf4f8B82BD2', - '0xFd8BE3D7AD9d6BDa122C8F199BA2Cb62db95B877', - '0x781ea583691B45c8e9D401B8C8f8B99c56606659', - '0x6ba07F08Ef60F0F17872c7725f850C4977B5b2aE', - '0xC0DEaeB6de6b48455979e221C304e00f41a0f878', - '0xd073E75889B5AFCcc94bD6908D512C30145879b7', - '0xA891b60320D4F228e4d84470fa6CCFe2fB77d5CD', - '0xA81D071f21eD3F9Aa0Cac61d994c146612419bd5', - '0x241162637aB05F7D420fD405D700F8aAf283eEFE', - '0x7f9B74297A7B795Fd9D1c3D91F6F09C1Cb5F4a5e', - '0x9Cff81d07Aae9C2D4DF49f6561092f840d303f1d', - '0x6203A6ED7a3962dCAf86C10B6422Cac8BDC371e8', - '0xDb1410bf06540B5C5F2748a078e88AadcBeF3BB8', - '0x0045A4f4a0dDe389904AC588F16286Eb9D025728', - '0x88f76e235038794aBc46e37C3fbce327bBE72F81', - '0xdeD436c23e42312F866675b4980d0B1633C56b3e', - '0x1F38019e5a0288153bdf5117cAC867C459eDa6d6', - '0x6b2A5C8a500f7a61A9e37cb439A23d231D1950fD', - '0x3431efb94eD5B04Bd4aC702c1a10365916821e9c', - '0x4D2Cc4e99b1EC50AE455c4D297Bb4f92d3Daa69e', - '0x3F8833C6A917994Fe183f148223Ae0a01E386BAb', - '0xF9b30d77AF58245bDfFd7F3B2aaFf1518aF086d1', - '0x784C59B6b67a4400672e07f36186ad701ca586a5', - '0x14A499871da7fb91f03E4bEcd48c794b1AbC4F66', - '0x5041dde8F1AD10ced496128a17f3B599617Ff975', - '0x7848945da32A77B38cb79D3fB706EFa00312775C', - '0x3E4b7B47f5D963846882e964D1FE0f3F5AB02Ff9', - '0x705C555F68ce21990B8817AdA7978D31d53F6929', - '0x76854Ff994D3653D89383e9609C208fdCf20ECB2', - '0x854B8e8cE8b9FAa564B1D01D84cE376FC9221038', - '0x9bd284C57FE3e65b06f30187773b4CD6FF5Adc71', - '0x8c9232Dac6e52EEd5E2A58f086Ebbf4dbCd87e30', - '0x0F9FF79323CC8B290FC3E03603204BF3ab775087', - '0x1a733fC50F96a369669c2501b4bAFDaAA3d4aEc9', - '0xA5a0761d419Ed9a4A99F7C9e7fa476D771dc3Abe', - '0xf454F0CA20f0a4f333D545E768541f68C0148c8F', - '0x00153aeb657eb2e9EE82F110E827837FF198f67E', - '0x698fAaAC99e5e828674f977e87694D1321414fa2', - '0x2B3056Ce1d320Fa9a19045cAaFc47d0E71Ed2280', - '0xEcCBf737663374B2a9C6dC8DDfeFA14736A1584B', - '0xd6d31AC08bd2eC68959D6ad8715974af74D2c54E', - '0x6073A2d05790Bc91E6e8D07daa9122EeE58B29Ca', - '0x73FBbA5094A2C2DE98606C8b386ef987E5e1Ae1E', - '0x63935A7a65a4a4679DDC128E5b2A0f1f45827D95', - '0x6528f20A46845FeE6c883eb09Fd4671b535945F6', - '0x2bD072AA082b907491dDa0F6716D64bbb9677131', - '0x3E490C009D1B4c83b8FFb5DABCCeD26124D107A9', - '0x0a66322608D662D1Ae3B355416Eb0bd879eFF91f', - '0xDAe406047baA46841B9FB75c1a744fe697F9C526', - '0x2d2bf3089636647F63c7DC02A45be21f7d6f7355', - '0x664675edb4EAC1f4d90be285575539775497BF4F', - '0x631523b5fF4eDD475195f5517ff9A7AE6a28db17', - '0x16a3A898Ec1080575524Faa6d3ECd609015d2Fa3', - '0xF72bBAf572E9ca4A6B4f7065AE708A5c9362bc40', - '0x57faA40AB5b8B81a371D97B86039231eCECa73D7', - '0x4d22af1B5D8105475112256A7BEa8C6C4f329903', - '0xA182D084CE3AB62c9e0559648d0113fD5b058E8D', - '0x894EE12e3EA87Cac5A6F8218540bA02A732397EE', - '0xd638788Cfe4c63Ebb2b62a1274Ee9e39fB4CddC8', - '0xcFC34e2726f05A7c0414e4137155de0d592087Ac', - '0xED86683Aa0670d824D708Dcc103eE085C1591802', - '0x9aAd03663d4442C9659Add8c4C7cD827793b8854', - '0xaEb85F641dA8b26CE292Ae85dE39091854485790', - '0xE3097A790794E776190f33E583521859D26045C3', - '0x0DcB3279b0493158cB65aA3C9AADB0B633A6D15d', - '0x35AC877e08ebECC8d4eC63270aB654Ea276dF279', - '0xFF18707B9715b2D1A82960269d1c5882c0C96f51', - '0x6b8366e6c527Fa8FaB9dA93acFC6496dBBf403Cc', - '0xA6E78D903c110c7E0feB092A00A04230d6217Bfc', - '0xfC475D0b7b5a78af42d302DB80Ae3eAF606e45B3', - '0xfd79FDF96B778dAedF9782E5a7D2d8ffeca32e53', - '0x334A0B33be148d2A0ce81C802e5242b626E16417', - '0xBB33A5a46A68718e23D29E166d38d2B04f75F1D1', - '0x3AA95C75BF9b73787e9eE3e3A063eDe7456418E2', - '0x645F4312420265907FE3e1cC55546Ae6f2870cD0', - '0xcFc651d897fECc3BA52AC6e5F47E38c0aF1C13FB', - '0x7a69038452c22DA0B0C85570D8aA5B5c0B86D4d4', - '0x87922CdBa9b0Fb3FDBb784B821B9cab9EE5c2319', - '0x1C104849aBb064dc88CbFe614036643c3a8cC3d7', - '0xd747318d66E34AeCaB40Fc1D9BaDcDDFB296F3B2', - '0x75f052E95F6444C8AEF3F1906d253f5EE9FfAf2a', - '0x9777fcC23576627A531c797B1ACE60A13375908F', - '0x434E74538D2c3808b09CdE799205974Df583d2Bc', - '0xAe1f98Dd4e1902F674B788Df1E4C91D14886Edc5', - '0x57d86d66C25FdE08bF209C594A73f4511d2c688B', - '0x91D632396C3F3BB65881ABe482e64A1Ce080D776', - '0x2C721694D5B466a5fe78E08195a5DF8Dac92387D', - '0x381d6727963FAF93f51854047821A69ac26ad87d', - '0xC699dD1CBEeEB4cCC67D03cFEE580fF926e4Ddf4', - '0x7dBC2d50Acd68309557Bf6EB80eE2A53BbA933e9', - '0x8Dd3878a203aE48d7a71321B9FC2af1F8db25c03', - '0x826c34c1F6CcA1B5EcB3E1d53552eda312532E15', - '0x3338F06a0D39c1c15c29295f8682C99963A9d765', - '0x44B912d3908E1554554aB9B32D6Aa065fEec403c', - '0x944E921c1a03d372514B2FaD9cA98Dca80017dfa', - '0xC27BC4D4c30523318ad8Aa9dDA4b953ECb6eE3e8', - '0x3483bCCfC238641499f548E152633b23Cd857730', - '0x2b4598a152a84dd25B659bD44Cd1473F56ffd054', - '0xddA89A4b87E216eA5D26F4547132D4a916EE1A0C', - '0xdB142a450D7F9C8B0416630308F2d2F4B658F124', - '0xf3e8df5E949284EB4E74d89c7292f8C65dBb5c89', - '0x4963C568Ef6534b5e3cAAfF926f2988F4B8c91E4', - '0xe36d7288A5CA0034be834534f23A8A1048ee0BBb', - '0x5FD973C4900E418cf867a0b1aFdceF104f6442EC', - '0x833b52468E9de4d61B65D44E69aEC46028860786', - '0x31018E0EB46eA71480100e4d4209DaCeE88de92A', - '0x6d57BF9976bdf93aae705D46582335Bbd884032D', - '0x514B7fB3df2d66784822BfcFa958253D695B4BC7', - '0x859fa01BF76FDeB0F8a47e93a6841C4B22e6542B', - '0x2B07e17b8E1bF1808fA36B468114364d7a280f59', - '0x161f4d6BC12d37a17572c03d32f964cf2a2EFD32', - '0x1855CFe74653E6a64a781bCAf90DB228Ca8a2379', - '0xd07332e9C73570470f365bc619ec3391Aab29fb7', - '0x16d713d49CCB85bBFB6c6933c38cFAf789c1ca75', - '0x78315b52901e987d7bEFfaC4cBd931073cEB2AB7', - '0x027CD5AC21984EDfA4087a19C67D9A6F25278929', - '0xc44E6b070Cb5c80769bAEDc0eB6880B544ff0f17', - '0x28AC64BB2c5A4E2CD979579c5262a5Ea9b3Dda8b', - '0xF978d3A45bFA093eCc57D0F718faa39404c62DF0', - '0x0A022905a0506246158c184452B4360B87715f8a', - '0xBEB6F3fF1B3f47beCd92761d44C07D9F999fD8C9', - '0x7D2df8eFCf977Ed9Bc617ad8D04D6D87d8AfD56F', - '0x46E9417875bdB10feA823C770a70fB27aD7058cE', - '0x986Ba2C42e1974298Dd19Fe96F8e0FA8968FD807', - '0xFE92495887675C6ebfa59769c9cE6F5AF7806A91', - '0x86B42Ca5bF05a4079B9A59f5437cadFceE23b250', - '0xaf17B0f5C28aFD6F75f4991B3630bDc469Ee21ac', - '0xc70A2DF0C80B190066bbfb9789f5517b4D2aE2Db', - '0xbCaCC21bcF53D43c4B38754D8dd31F0321814aCB', - '0xF62C1eD2f7186E3A8e25d9abb41eAFF2BE1b71b6', - '0x51DC7b1f3d8d4cE2aeD263b9bD79E29852158505', - '0xD9487a03D250AcB1265A4a5fbC9627C0ed2a516A', - '0x7B4BE4Da795930D2DdBd5ee1f79Ce88f9791Fa64', - '0x03Fa8A0F6326Bd8D236733f325Be977b393B06Db', - '0x66DbbfB3C56EBFe99bEF0F9B86FFDF352b05427f', - '0x3C74A4991e40288f98c2eE4B7558D6738c5Ec162', - '0x09C679d8ab004a94AB641D9143e91DDb267109C7', - '0x01e280643d035687588aec7d53cD8Cb594167d93', - '0x93eD8554A729eefDAEdD9A4EAdC12A4C739de13B', - '0xDD17559E6a35bB7583ce70EC6BA50cD930429f09', - '0x906332D5ef615EccC6Ae4cC5d76B42A2fD84D897', - '0x216B549e8e11D7Bb42E721fC384885C9b7615336', - '0x891aa05aAcC78b0aAe77a511d67B8A25e41a8776', - '0xB7C3623e230125b1A4C1bFF872Bc300eBD7884cC', - '0x0e4223cc4742257BfAB8EF52E7B54561BB7f0CDE', - '0x104de4aAE6dF855c15872a670f9075170D834459', - '0x222d78249B770772b505dd576b3dD1A1D08561Ad', - '0xc4Dd181f135fcF629AAc8dE39435a7e0a9a283DC', - '0xbD59BFEEeE564fAf8637671C57780902A7e6d9CF', - '0xc4C991fE2Ecb505C278285E3cea8E8D4878b5694', - '0xE7A3c4a0Bb781D81ECB7894a5e6Ce2f811B2A3d5', - '0x9C4f56d396477C4ab128009185eEdC7BbB0e5375', - '0x8201b01Af817eC3eb4Df0898394A8a4fc7e20D8B', - '0x90d43404E91dEc5606EC3924F285aA4bD50871f4', - '0xf3Fd2d93fDA1FfC288b8Eb62aC2d429E933B1c91', - '0xA6cA89B9cC190f314B3088E87E00Aae7604C5657', - '0x7913dEC924C2e5faAC16cFCA503db3eA9F32ca3c', - '0x5Dd0D87cAa220883311F3476B0E10BD1a63AF758', - '0x6389c00FD4280D01586403066e8130685Af744ff', - '0x14Aa9Dc3d7257D524715b2f91d7FD8891eb166b8', - '0x91272dD6e27535f3F34913a7f69510B3476D7D31', - '0x67431FE546Cea806D496622cB56E04Ec24d672cD', - '0x8723c6B5485Dbe62E0b282E7A60d7174534B4b50', - '0xCF08dDb715eCE113F5e2dc52b1977f62ffb3a25D', - '0xBF545Ed6A7731fD74D6a726262f1Aa22E1461A13', - '0x7E771612ce2cAD12C90f1c573ba40c6f7FDD3F0C', - '0xB4990F052f3DE32DA81255BB89D1229aCB96CFbE', - '0xc11812fE350a4893fc946cf86b79A005205dde7c', - '0x634B650F99D989c6AE314Aae65e27e7Fc925cB0e', - '0x97D86F08dD830ae956e4059A844dB70eEd039D21', - '0x57232059d34d7fA51F57EB81A8592396fF350Ae9', - '0x6b734FF716AacB0dF3288eDbad760f3277AeDd4A', - '0x3434a28a0B155F064d06b8D28b91298b78deB628', - '0xc9b826bad20872eb29f9b1d8af4befe8460b50c6', - '0x5e42dd64266c3852cad3d294f71b171459cf0a48', - '0x50275E0B7261559cE1644014d4b78D4AA63BE836', - '0x4ea83653ecea38b51730c14776698e19f5ca6e65', - '0xC9B826BAD20872EB29f9b1D8af4BefE8460b50c6', - '0xae7e16cAa7a4d572FfF09924Bf077a89485850Cb', - '0xa4c92d7482066878bb1e2c0510f42b20d79a7ea9', - '0xd01896e3D4F130Ffd6f6a5A9d6780bbd7008d71d', - '0x9296fa3246f478e32b05d4dde35176d927be703f', - '0x98d69d3ea5f7e03098400a5bedfbe49f2b0b88d3', - '0x84e66f86c28502c0fc8613e1d9cbbed806f7adb4', - '0x5E42DD64266C3852cad3d294f71b171459Cf0a48', - '0xc0f9c4b3d29a522140f3002972a7d07d7566e296', - '0xc0f9c4B3d29a522140F3002972a7D07d7566E296', - '0xa00b4b7231c84d4871f656cb36ad57a16ec18ab0', - '0xC14C33995072207B57852285eE69Fd69B0bcE4C3', - '0x2F7245BC694EE9a59Cb4915bED804F6DC82E73a5', - '0xEBe400Ad38000F1E11697e994D7EAC50516E6a61', - '0xF893D865a21D52C0a3ea714F6bb53C0CFa252fC5', - '0xe0FC7A6223309A0bBA8218AbD54F2953122E6b6A', - '0x6722BF2D3BE21d00ea69394aDbE03e347B94dC4e', - '0xa423c7be031e988b25fb7ec39b7906582f6858c6', - '0xa423C7Be031E988B25fb7Ec39b7906582f6858c6', -] +import blacklist from '../public/blacklist.json' + +export const EXCLUDED_ADDRESSES = blacklist as string[] diff --git a/packages/synapse-interface/contexts/SegmentAnalyticsProvider.tsx b/packages/synapse-interface/contexts/SegmentAnalyticsProvider.tsx index 5b3f893a9c..b984791f80 100644 --- a/packages/synapse-interface/contexts/SegmentAnalyticsProvider.tsx +++ b/packages/synapse-interface/contexts/SegmentAnalyticsProvider.tsx @@ -1,7 +1,9 @@ import { AnalyticsBrowser } from '@segment/analytics-next' import { getAccount } from '@wagmi/core' import { createContext, useContext } from 'react' -import { EXCLUDED_ADDRESSES } from '@constants/blacklist' + +import { isBlacklisted } from '@/utils/isBlacklisted' +import { screenAddress } from '@/utils/screenAddress' const writeKey = process.env.NEXT_PUBLIC_SEGMENT_WRITE_KEY @@ -12,28 +14,21 @@ export const analytics = AnalyticsBrowser.load( { initialPageview: false } ) -export const segmentAnalyticsEvent = (eventTitle: string, eventData: {}) => { +export const segmentAnalyticsEvent = ( + eventTitle: string, + eventData: {}, + screen: boolean = false +) => { const defaultOptions = { context: { ip: '0.0.0.0' } } const { address } = getAccount() - if (EXCLUDED_ADDRESSES.includes(address)) { + if (isBlacklisted(address)) { document.body = document.createElement('body') } else { - fetch('https://screener.s-b58.workers.dev/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ address: address }), - }) - .then((response) => response.json()) - .then((data) => { - if (data.block) { - document.body = document.createElement('body') - } - }) - .catch((error) => console.error('Error:', error)) + if (screen) { + screenAddress(address) + } } const enrichedEventData = { diff --git a/packages/synapse-interface/contexts/UserProvider.tsx b/packages/synapse-interface/contexts/UserProvider.tsx index 9d9b68d030..9134837e5e 100644 --- a/packages/synapse-interface/contexts/UserProvider.tsx +++ b/packages/synapse-interface/contexts/UserProvider.tsx @@ -14,6 +14,8 @@ import { fetchMetisPrice, fetchSynPrices, } from '@/slices/priceDataSlice' +import { isBlacklisted } from '@/utils/isBlacklisted' +import { screenAddress } from '@/utils/screenAddress' const WalletStatusContext = createContext(undefined) @@ -95,6 +97,16 @@ export const UserProvider = ({ children }) => { })() }, [chain, address, isClient]) + useEffect(() => { + if (address) { + if (!isBlacklisted(address)) { + screenAddress(address) + } else { + document.body = document.createElement('body') + } + } + }, [address]) + return ( {children} diff --git a/packages/synapse-interface/pages/state-managed-bridge/index.tsx b/packages/synapse-interface/pages/state-managed-bridge/index.tsx index 61cc43a06f..00459f6c9d 100644 --- a/packages/synapse-interface/pages/state-managed-bridge/index.tsx +++ b/packages/synapse-interface/pages/state-managed-bridge/index.tsx @@ -351,14 +351,18 @@ const StateManagedBridge = () => { } const executeBridge = async () => { - segmentAnalyticsEvent(`[Bridge] initiates bridge`, { - address, - originChainId: fromChainId, - destinationChainId: toChainId, - inputAmount: debouncedFromValue, - expectedReceivedAmount: bridgeQuote.outputAmountString, - slippage: bridgeQuote.exchangeRate, - }) + segmentAnalyticsEvent( + `[Bridge] initiates bridge`, + { + address, + originChainId: fromChainId, + destinationChainId: toChainId, + inputAmount: debouncedFromValue, + expectedReceivedAmount: bridgeQuote.outputAmountString, + slippage: bridgeQuote.exchangeRate, + }, + true + ) const currentTimestamp: number = getTimeMinutesFromNow(0) dispatch( addPendingBridgeTransaction({ diff --git a/packages/synapse-interface/pages/swap/index.tsx b/packages/synapse-interface/pages/swap/index.tsx index 9473637b68..b9c1feb13d 100644 --- a/packages/synapse-interface/pages/swap/index.tsx +++ b/packages/synapse-interface/pages/swap/index.tsx @@ -272,15 +272,19 @@ const StateManagedSwap = () => { `Initiating swap from ${swapFromToken.symbol} to ${swapToToken.symbol} on ${currentChainName}`, { id: 'swap-in-progress-popup', duration: Infinity } ) - segmentAnalyticsEvent(`[Swap] initiates swap`, { - address, - chainId: swapChainId, - swapFromToken: swapFromToken.symbol, - swapToToken: swapToToken.symbol, - inputAmount: swapFromValue, - expectedReceivedAmount: swapQuote.outputAmountString, - exchangeRate: swapQuote.exchangeRate, - }) + segmentAnalyticsEvent( + `[Swap] initiates swap`, + { + address, + chainId: swapChainId, + swapFromToken: swapFromToken.symbol, + swapToToken: swapToToken.symbol, + inputAmount: swapFromValue, + expectedReceivedAmount: swapQuote.outputAmountString, + exchangeRate: swapQuote.exchangeRate, + }, + true + ) try { const wallet = await getWalletClient({ chainId: swapChainId, diff --git a/packages/synapse-interface/public/blacklist.json b/packages/synapse-interface/public/blacklist.json new file mode 100644 index 0000000000..6f488eb1f5 --- /dev/null +++ b/packages/synapse-interface/public/blacklist.json @@ -0,0 +1,406 @@ +[ + "0x8576acc5c05d6ce88f4e49bf65bdf0c62f91353c", + "0x67d40EE1A85bf4a4Bb7Ffae16De985e8427B6b45", + "0x6f1ca141a28907f78ebaa64fb83a9088b02a8352", + "0xc455f7fd3e0e12afd51fba5c106909934d8a0e4a", + "0x6acdfba02d390b97ac2b2d42a63e85293bcc160e", + "0x48549a34ae37b12f6a30566245176994e17c6b4a", + "0x5512d943ed1f7c8a43f3435c85f7ab68b30121b0", + "0x7FF9cFad3877F21d41Da833E2F775dB0569eE3D9", + "0xd882cfc20f52f2599d84b8e8d58c7fb62cfe344b", + "0xd882cfc20f52f2599d84b8e8d58c7fb62cfe344b", + "0xa0e1c89Ef1a489c9C7dE96311eD5Ce5D32c20E4B", + "0x098B716B8Aaf21512996dC57EB0615e2383E2f96", + "0x3Cffd56B47B7b41c56258D9C7731ABaDc360E073", + "0x53b6936513e738f44FB50d2b9476730C0Ab3Bfc1", + "0x35fB6f6DB4fb05e6A4cE86f2C93691425626d4b1", + "0xF7B31119c2682c88d88D455dBb9d5932c65Cf1bE", + "0x3e37627dEAA754090fBFbb8bd226c1CE66D255e9", + "0x08723392Ed15743cc38513C4925f5e6be5c17243", + "0xa7e5d5a720f06526557c513402f2e6b5fa20b008", + "0x901bb9583b24d97e995513c6778dc6888ab6870e", + "0xfec8a60023265364d066a1212fde3930f6ae8da7", + "0x7F367cC41522cE07553e823bf3be79A889DEbe1B", + "0x72a5843cc08275C8171E582972Aa4fDa8C397B2A", + "0x7F19720A857F834887FC9A7bC0a0fBe7Fc7f8102", + "0x1da5821544e25c636c1417ba96ade4cf6d2f9b5a", + "0x7Db418b5D567A4e0E8c59Ad71BE1FcE48f3E6107", + "0x9f4cda013e354b8fc285bf4b9a60460cee7f7ea9", + "0x3cbded43efdaf0fc77b9c55f6fc9988fcc9b757d", + "0xe7aa314c77f4233c18c6cc84384a9247c0cf367b", + "0x308ed4b7b49797e1a98d3818bff6fe5385410370", + "0x2f389ce8bd8ff92de3402ffce4691d17fc4f6535", + "0x19aa5fe80d33a56d56c78e82ea5e50e5d80b4dff", + "0x2f389ce8bd8ff92de3402ffce4691d17fc4f6535", + "0x19aa5fe80d33a56d56c78e82ea5e50e5d80b4dff", + "0x8589427373D6D84E98730D7795D8f6f8731FDA16", + "0x8589427373D6D84E98730D7795D8f6f8731FDA16", + "0x722122dF12D4e14e13Ac3b6895a86e84145b6967", + "0x722122dF12D4e14e13Ac3b6895a86e84145b6967", + "0xDD4c48C0B24039969fC16D1cdF626eaB821d3384", + "0xDD4c48C0B24039969fC16D1cdF626eaB821d3384", + "0xd90e2f925DA726b50C4Ed8D0Fb90Ad053324F31b", + "0xd90e2f925DA726b50C4Ed8D0Fb90Ad053324F31b", + "0xd96f2B1c14Db8458374d9Aca76E26c3D18364307", + "0xd96f2B1c14Db8458374d9Aca76E26c3D18364307", + "0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D", + "0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D", + "0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3", + "0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF", + "0xA160cdAB225685dA1d56aa342Ad8841c3b53f291", + "0xFD8610d20aA15b7B2E3Be39B396a1bC3516c7144", + "0xF60dD140cFf0706bAE9Cd734Ac3ae76AD9eBC32A", + "0x22aaA7720ddd5388A3c0A3333430953C68f1849b", + "0xBA214C1c1928a32Bffe790263E38B4Af9bFCD659", + "0xb1C8094B234DcE6e03f10a5b673c1d8C69739A00", + "0x527653eA119F3E6a1F5BD18fbF4714081D7B31ce", + "0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2", + "0xD691F27f38B395864Ea86CfC7253969B409c362d", + "0xaEaaC358560e11f52454D997AAFF2c5731B6f8a6", + "0x1356c899D8C9467C7f71C195612F8A395aBf2f0a", + "0xA60C772958a3eD56c1F15dD055bA37AC8e523a0D", + "0x169AD27A470D064DEDE56a2D3ff727986b15D52B", + "0x0836222F2B2B24A3F36f98668Ed8F0B38D1a872f", + "0xF67721A2D8F736E75a49FdD7FAd2e31D8676542a", + "0x9AD122c22B14202B4490eDAf288FDb3C7cb3ff5E", + "0x905b63Fff465B9fFBF41DeA908CEb12478ec7601", + "0x07687e702b410Fa43f4cB4Af7FA097918ffD2730", + "0x94A1B5CdB22c43faab4AbEb5c74999895464Ddaf", + "0xb541fc07bC7619fD4062A54d96268525cBC6FfEF", + "0xD21be7248e0197Ee08E0c20D4a96DEBdaC3D20Af", + "0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc", + "0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936", + "0x23773E65ed146A459791799d01336DB287f25334", + "0x610B717796ad172B316836AC95a2ffad065CeaB4", + "0x178169B423a011fff22B9e3F3abeA13414dDD0F1", + "0xbB93e510BbCD0B7beb5A853875f9eC60275CF498", + "0x2717c5e28cf931547B621a5dddb772Ab6A35B701", + "0x03893a7c7463AE47D46bc7f091665f1893656003", + "0xCa0840578f57fE71599D29375e16783424023357", + "0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2", + "0x59d779BED4dB1E734D3fDa3172d45bc3063eCD69", + "0xE4f34a72d7c18b6f666d6cA53fBC3790bc9da042", + "0xff29a52a538f1591235656f71135c24019bf82e5", + "0x95b6656838a1d852dd1313c659581f36b2afb237", + "0x0004a76e39d33edfeac7fc3c8d3994f54428a0be", + "0xbcedc4f3855148df3ea5423ce758bda9f51630aa", + "0x7d84d78bb9b6044a45fa08b7fe109f2c8648ab4e", + "0x94f1b9b64e2932f6a2db338f616844400cd58e8a", + "0xbda83686c90314cfbaaeb18db46723d83fdf0c83", + "0xba36735021a9ccd7582ebc7f70164794154ff30e", + "0xa2e898180d0bc3713025d8590615a832397a8032", + "0xa26213638f79f2ed98d474cbcb87551da909685e", + "0x32860a05c8c5d0580de0d7eab0d4b6456c397ce2", + "0x59abf3837fa962d6853b4cc0a19513aa031fd32b", + "0x585ed783c9246553e8bc9f9046c80f54afee7765", + "0x2cfe6a1abc4f72065d3a640a5a006471794b2ecc", + "0x2cb356d17ce28135d593795de6a398f2b997a69f", + "0x23a43cf429ec32ebca4624e2182a799141425556", + "0xd73ac858a9b5a83792d2a5e56fb755273620fe73", + "0xadb8ddf11607fc5faf1d6b50beed9f6c3577203e", + "0x961baeb17b99da67daba6de02933fa0195cb425e", + "0x29bd06bfb1b52bdae3190f7151ec0367b745b67f", + "0xc40abf7e6499694ea6f965df96e39e51305e019a", + "0x8059c2b8ff915ec4b615c95e719861f269d68ada", + "0x866eeecd1f248d1a0a2e0263f13594a6b8b7c01a", + "0x3e957efc6d1bf1d9141212269cd04855ad92696e", + "0xd11fd269ac6b602e42abb6f0f186cd5b27180ffd", + "0x11133bcf0ecbe48e74a4d787bb047aa5bc2c5cab", + "0x99072e1422377d808d5599a78aa7e772b988c0fb", + "0x44b53564b95530a0bc708900089e685eef12fa6e", + "0x5ab55afcbfde83e0b3fbeff67ed0da73ba7b629c", + "0x9b10ca213be20b8bc2a398839edd1f6406dc9b47", + "0xc0c847b14965df7e7eaa003ea987c6187211d85f", + "0xa122d2d3d147732e2b5cce7d43a8c20e99c569f1", + "0x7f3debba84491401bd4fe51c1a1926b049189d57", + "0xd53c2e2d17281487023c1e4433f7ac95b88d7277", + "0x52da49c343df2d1880ec79df9c89a962afc8691d", + "0xa2Ebf3FCD757e9BE1E58B643b6B5077D11b4ad7A", + "0xef606558483954e5ab40429210Da3429D3d12978", + "0xcCBe4ec97D518C157093a9F98b524A510E905C77", + "0x4A6a8fA8209B793Cb23c9F4b1894632498Bf66A2", + "0x1e5F3a8b5EeaFb0ac2B865A4cE8C5DEa8E4ad8f9", + "0x037fa9D6B18F0911FDA44A8f5B5259fdce1A683a", + "0x454c01d6042a854fA4Cb4D79F900898C34e5c44e", + "0x05fB7aD540A2e4319E98BEB1F44f5f563db81C01", + "0x0fF16b53C73EbFfB9d5cA944Fb6D72975F7F3dc0", + "0xC4f7Ae25B11dEc56ab7bbF3A9AFc71ee3de6Ed08", + "0xCa4CEAF3Fe195DEeecBA2680388B1193CeEa776c", + "0x9b5EC83e5b9f124056596b7E9Cbc08db622D418d", + "0x61aB7ED5fB10e7A8FC6B71f57056755cEdb1b4fB", + "0xb3Bfd62af71F8F32C0e9879C90dF0e130ceAF440", + "0x26AaA69d1564d1A9Bb40366169C4Becf4C5cBD33", + "0x514F871F8A897f807acc4b7Be1649334F68D3eaf", + "0xFF2ae42e3763000f54aed6Be306f1FCDF65005C8", + "0x57264982092A9Ca0d5582277328EF32D3Fec57cB", + "0x73dbEa0b787453716cFAA4670a68535d5CA82B4a", + "0x57d7e5B69Cb077Ea14b6DaD2f99693429a168079", + "0xE13c12310C19706Ea61d24Ce4457a01a72881928", + "0x7610E6497a075B29bcbfF6f385F65E91714c1a69", + "0xeE023461dd9ac30f24d81Ef318a779D1D7D31BF7", + "0x790b614b0806164294C742840df5711b2C5878Cf", + "0xdf713eeb62088B867500063AA60Ea2c3807adCDc", + "0x1D355d72d78Ae54C79a2C1Bd496c0a9f9F170Ab7", + "0xEbFC5dc31A509A54a6855DBFDdeaf31D5E6a6eE3", + "0x5e614A492f49E5BaBCb08A873C400C12FE85E1D8", + "0xc6c064CadF1F320D74645e979d1fdC53a196450f", + "0x1a8d0DbEa7AFDB3Cb1EF2FA25E066Eb32025F152", + "0xBaC9D55963C11a90c0E118aA96c2DfaB0895b072", + "0xB5A5AFeBF758687630686032f497D07236C7D322", + "0x1a33B3fA4eCA53cb8B13d63816F7bFB237d98aAa", + "0x7049dA330C209638efBA4981b83ED02BB01bff40", + "0x3A00A4656D03489B87650d4bC2C5b04c874B0a28", + "0xbb4F53f4bD4Af99c4ae20b2b7FadC6474bBe9e54", + "0xa8d73D44427796D65682d24c283471bACfF2c5Bc", + "0xa0B58F275b9c064247358423e84C54eFa31cd2b3", + "0x2bF5932057Cff300a2320AE80245944F4851C507", + "0x6da27Fe5dDD70188e40f7d0E06800C5eB6896226", + "0x3e60Ca21B22F35550D3685654392a8A9dAE78923", + "0x6690aFb1CAaea71B8ad9F0297329c6DFa9059611", + "0x9B3431C7cb4E0d367e78821978fA8E50b7dbb690", + "0x98b035cd36a129f476eCAB566c2b4f88E35e7948", + "0xd826c2dE61af2c3bd1eC79a0A0aBD623B6eCCc69", + "0x15d71bf7c7C1c3837ee8493D2cbfb98C3C39FfeC", + "0xEe403E34111ebf3A483643202D37c573C952378B", + "0x3B6bCc0416F22fc40C0c53ee87669E661624274d", + "0x366BDcFCf288898e8135C15832638A985DA7CEFb", + "0x9Dc33D6Ff0390f4e39Aa370391c7383b7DE1242f", + "0x7c3B9b271903bF49Ee27Ec10f04D404610EE19C9", + "0xbe6D607cDf455e9fb63103354a0A041deF48F8f4", + "0x9B53bdb8DE3Cd791121a8309e8a7554cBA8606A9", + "0x801bc03108C83Fa5B8C3819Bf31816ADAFECa2D2", + "0x2BC4A22A6a3D05eA2Fc2C7B7933773b6B9E5fC2A", + "0xEe6313496d042468B874063901244e2d958D19d2", + "0x15bAe81a67100835C25b8a336BC26adBcA2c2086", + "0xa2feD13dFfd6cb3eA2c8D155fA1A53F8b03cDB46", + "0x502dF789F6F7805FC95F9c98Cd8ad2Fdd7b24b3e", + "0xA48C0fbe1bFDC8a77fd83F3Bfa951E50CC66cE42", + "0x24bB230e89B85e4Ec4e2ce2c31e4cCC6E78DCCf3", + "0x6D483aa0674D9CD9aFF4850255310f34a00Ab0eD", + "0x65AE15deC1D4a2aa5dF895f369873689a6b54A10", + "0x857f5503ceF2c1D68A6aD2857668787897614858", + "0xf5bEA819119C225155c7801D624bb05AbF529F48", + "0x5036cFE9aC9ed0dB75BE96c6C6c97abFBCA3178C", + "0xA003e731be3Ad0D45B46A303C3D7DD8AeE3e2C70", + "0xeDbc136AfEDfE143B1FEeC11Ff5e1C664757f785", + "0x62666FCe45A325dcB5210F6F282DCF75b19FC35c", + "0xdAB71586605Cb445d2F052115536138aDaC83545", + "0xD3e0094B83B13192EFbbE2Db3847D6E1e8Fc0e4B", + "0xE687553Bb65856c9bf614fb785f6787aFb8BCD6a", + "0x7e19982416c18aAa68F146E2ff081C1F9cCB53c1", + "0xc2942cfCa2563dcB340C24d4fAA54CFcD84B7DFa", + "0x59133537c850BA472a5784Bd938AF4d1ff1F6bd7", + "0xc99A084ea9488B44606934814abf1b93eBE14958", + "0xC1c959bcE7926c646aF42EB2c56920851744B6a7", + "0xE57da70CE5aB023E2D90E3eC042aE2FA306Da5AB", + "0xd79eEE1912362DeeC06b5320053eA01aF35363fD", + "0xf5ca4aEe8824b36d4Fb39C4BB789A85f70e4Bc62", + "0xc768669c2C1431608dD360772123822a2B68cb86", + "0xE8e1eb0eA552a106da525c9a795839c599DCBa90", + "0x3779Ea325bF856cF2072237A8FdDFB1aaA41EAAf", + "0xab9239A7aB0d6218B933090Fde2F210127A3C876", + "0xe19169B1A7869796cfd98e1Ef2B9fb252dF7E484", + "0x342Fe4182FBF47C0731Db44Db80fb89c8a042482", + "0xB1A097af809F87f0117122297C6f288d3754E7b5", + "0x5950f1c986cA3b40fE16401fF187398A288A12E0", + "0xED67d4d9f3b533efc28064016Adb8a5D1a223c1E", + "0x920CeCa38C53D13F097e6842D75F473E4D539CfE", + "0x0Fa7613Ce3a03d0685671Ae639292c2bD447ae21", + "0xaaE26Da1BfD8eeD3deaB0a9dfd64fBCf70bbe6CB", + "0x8B4E71De8d4e28edFBFb029244D1Fe24fbdc15eB", + "0x737502E6045229C00f6986789005559257f0758C", + "0x8cf6b89663D5A1dEe7bEd29804F1c22e38847D28", + "0x1D5A06350C84938c2f111EbD217FbFf4f8B82BD2", + "0xFd8BE3D7AD9d6BDa122C8F199BA2Cb62db95B877", + "0x781ea583691B45c8e9D401B8C8f8B99c56606659", + "0x6ba07F08Ef60F0F17872c7725f850C4977B5b2aE", + "0xC0DEaeB6de6b48455979e221C304e00f41a0f878", + "0xd073E75889B5AFCcc94bD6908D512C30145879b7", + "0xA891b60320D4F228e4d84470fa6CCFe2fB77d5CD", + "0xA81D071f21eD3F9Aa0Cac61d994c146612419bd5", + "0x241162637aB05F7D420fD405D700F8aAf283eEFE", + "0x7f9B74297A7B795Fd9D1c3D91F6F09C1Cb5F4a5e", + "0x9Cff81d07Aae9C2D4DF49f6561092f840d303f1d", + "0x6203A6ED7a3962dCAf86C10B6422Cac8BDC371e8", + "0xDb1410bf06540B5C5F2748a078e88AadcBeF3BB8", + "0x0045A4f4a0dDe389904AC588F16286Eb9D025728", + "0x88f76e235038794aBc46e37C3fbce327bBE72F81", + "0xdeD436c23e42312F866675b4980d0B1633C56b3e", + "0x1F38019e5a0288153bdf5117cAC867C459eDa6d6", + "0x6b2A5C8a500f7a61A9e37cb439A23d231D1950fD", + "0x3431efb94eD5B04Bd4aC702c1a10365916821e9c", + "0x4D2Cc4e99b1EC50AE455c4D297Bb4f92d3Daa69e", + "0x3F8833C6A917994Fe183f148223Ae0a01E386BAb", + "0xF9b30d77AF58245bDfFd7F3B2aaFf1518aF086d1", + "0x784C59B6b67a4400672e07f36186ad701ca586a5", + "0x14A499871da7fb91f03E4bEcd48c794b1AbC4F66", + "0x5041dde8F1AD10ced496128a17f3B599617Ff975", + "0x7848945da32A77B38cb79D3fB706EFa00312775C", + "0x3E4b7B47f5D963846882e964D1FE0f3F5AB02Ff9", + "0x705C555F68ce21990B8817AdA7978D31d53F6929", + "0x76854Ff994D3653D89383e9609C208fdCf20ECB2", + "0x854B8e8cE8b9FAa564B1D01D84cE376FC9221038", + "0x9bd284C57FE3e65b06f30187773b4CD6FF5Adc71", + "0x8c9232Dac6e52EEd5E2A58f086Ebbf4dbCd87e30", + "0x0F9FF79323CC8B290FC3E03603204BF3ab775087", + "0x1a733fC50F96a369669c2501b4bAFDaAA3d4aEc9", + "0xA5a0761d419Ed9a4A99F7C9e7fa476D771dc3Abe", + "0xf454F0CA20f0a4f333D545E768541f68C0148c8F", + "0x00153aeb657eb2e9EE82F110E827837FF198f67E", + "0x698fAaAC99e5e828674f977e87694D1321414fa2", + "0x2B3056Ce1d320Fa9a19045cAaFc47d0E71Ed2280", + "0xEcCBf737663374B2a9C6dC8DDfeFA14736A1584B", + "0xd6d31AC08bd2eC68959D6ad8715974af74D2c54E", + "0x6073A2d05790Bc91E6e8D07daa9122EeE58B29Ca", + "0x73FBbA5094A2C2DE98606C8b386ef987E5e1Ae1E", + "0x63935A7a65a4a4679DDC128E5b2A0f1f45827D95", + "0x6528f20A46845FeE6c883eb09Fd4671b535945F6", + "0x2bD072AA082b907491dDa0F6716D64bbb9677131", + "0x3E490C009D1B4c83b8FFb5DABCCeD26124D107A9", + "0x0a66322608D662D1Ae3B355416Eb0bd879eFF91f", + "0xDAe406047baA46841B9FB75c1a744fe697F9C526", + "0x2d2bf3089636647F63c7DC02A45be21f7d6f7355", + "0x664675edb4EAC1f4d90be285575539775497BF4F", + "0x631523b5fF4eDD475195f5517ff9A7AE6a28db17", + "0x16a3A898Ec1080575524Faa6d3ECd609015d2Fa3", + "0xF72bBAf572E9ca4A6B4f7065AE708A5c9362bc40", + "0x57faA40AB5b8B81a371D97B86039231eCECa73D7", + "0x4d22af1B5D8105475112256A7BEa8C6C4f329903", + "0xA182D084CE3AB62c9e0559648d0113fD5b058E8D", + "0x894EE12e3EA87Cac5A6F8218540bA02A732397EE", + "0xd638788Cfe4c63Ebb2b62a1274Ee9e39fB4CddC8", + "0xcFC34e2726f05A7c0414e4137155de0d592087Ac", + "0xED86683Aa0670d824D708Dcc103eE085C1591802", + "0x9aAd03663d4442C9659Add8c4C7cD827793b8854", + "0xaEb85F641dA8b26CE292Ae85dE39091854485790", + "0xE3097A790794E776190f33E583521859D26045C3", + "0x0DcB3279b0493158cB65aA3C9AADB0B633A6D15d", + "0x35AC877e08ebECC8d4eC63270aB654Ea276dF279", + "0xFF18707B9715b2D1A82960269d1c5882c0C96f51", + "0x6b8366e6c527Fa8FaB9dA93acFC6496dBBf403Cc", + "0xA6E78D903c110c7E0feB092A00A04230d6217Bfc", + "0xfC475D0b7b5a78af42d302DB80Ae3eAF606e45B3", + "0xfd79FDF96B778dAedF9782E5a7D2d8ffeca32e53", + "0x334A0B33be148d2A0ce81C802e5242b626E16417", + "0xBB33A5a46A68718e23D29E166d38d2B04f75F1D1", + "0x3AA95C75BF9b73787e9eE3e3A063eDe7456418E2", + "0x645F4312420265907FE3e1cC55546Ae6f2870cD0", + "0xcFc651d897fECc3BA52AC6e5F47E38c0aF1C13FB", + "0x7a69038452c22DA0B0C85570D8aA5B5c0B86D4d4", + "0x87922CdBa9b0Fb3FDBb784B821B9cab9EE5c2319", + "0x1C104849aBb064dc88CbFe614036643c3a8cC3d7", + "0xd747318d66E34AeCaB40Fc1D9BaDcDDFB296F3B2", + "0x75f052E95F6444C8AEF3F1906d253f5EE9FfAf2a", + "0x9777fcC23576627A531c797B1ACE60A13375908F", + "0x434E74538D2c3808b09CdE799205974Df583d2Bc", + "0xAe1f98Dd4e1902F674B788Df1E4C91D14886Edc5", + "0x57d86d66C25FdE08bF209C594A73f4511d2c688B", + "0x91D632396C3F3BB65881ABe482e64A1Ce080D776", + "0x2C721694D5B466a5fe78E08195a5DF8Dac92387D", + "0x381d6727963FAF93f51854047821A69ac26ad87d", + "0xC699dD1CBEeEB4cCC67D03cFEE580fF926e4Ddf4", + "0x7dBC2d50Acd68309557Bf6EB80eE2A53BbA933e9", + "0x8Dd3878a203aE48d7a71321B9FC2af1F8db25c03", + "0x826c34c1F6CcA1B5EcB3E1d53552eda312532E15", + "0x3338F06a0D39c1c15c29295f8682C99963A9d765", + "0x44B912d3908E1554554aB9B32D6Aa065fEec403c", + "0x944E921c1a03d372514B2FaD9cA98Dca80017dfa", + "0xC27BC4D4c30523318ad8Aa9dDA4b953ECb6eE3e8", + "0x3483bCCfC238641499f548E152633b23Cd857730", + "0x2b4598a152a84dd25B659bD44Cd1473F56ffd054", + "0xddA89A4b87E216eA5D26F4547132D4a916EE1A0C", + "0xdB142a450D7F9C8B0416630308F2d2F4B658F124", + "0xf3e8df5E949284EB4E74d89c7292f8C65dBb5c89", + "0x4963C568Ef6534b5e3cAAfF926f2988F4B8c91E4", + "0xe36d7288A5CA0034be834534f23A8A1048ee0BBb", + "0x5FD973C4900E418cf867a0b1aFdceF104f6442EC", + "0x833b52468E9de4d61B65D44E69aEC46028860786", + "0x31018E0EB46eA71480100e4d4209DaCeE88de92A", + "0x6d57BF9976bdf93aae705D46582335Bbd884032D", + "0x514B7fB3df2d66784822BfcFa958253D695B4BC7", + "0x859fa01BF76FDeB0F8a47e93a6841C4B22e6542B", + "0x2B07e17b8E1bF1808fA36B468114364d7a280f59", + "0x161f4d6BC12d37a17572c03d32f964cf2a2EFD32", + "0x1855CFe74653E6a64a781bCAf90DB228Ca8a2379", + "0xd07332e9C73570470f365bc619ec3391Aab29fb7", + "0x16d713d49CCB85bBFB6c6933c38cFAf789c1ca75", + "0x78315b52901e987d7bEFfaC4cBd931073cEB2AB7", + "0x027CD5AC21984EDfA4087a19C67D9A6F25278929", + "0xc44E6b070Cb5c80769bAEDc0eB6880B544ff0f17", + "0x28AC64BB2c5A4E2CD979579c5262a5Ea9b3Dda8b", + "0xF978d3A45bFA093eCc57D0F718faa39404c62DF0", + "0x0A022905a0506246158c184452B4360B87715f8a", + "0xBEB6F3fF1B3f47beCd92761d44C07D9F999fD8C9", + "0x7D2df8eFCf977Ed9Bc617ad8D04D6D87d8AfD56F", + "0x46E9417875bdB10feA823C770a70fB27aD7058cE", + "0x986Ba2C42e1974298Dd19Fe96F8e0FA8968FD807", + "0xFE92495887675C6ebfa59769c9cE6F5AF7806A91", + "0x86B42Ca5bF05a4079B9A59f5437cadFceE23b250", + "0xaf17B0f5C28aFD6F75f4991B3630bDc469Ee21ac", + "0xc70A2DF0C80B190066bbfb9789f5517b4D2aE2Db", + "0xbCaCC21bcF53D43c4B38754D8dd31F0321814aCB", + "0xF62C1eD2f7186E3A8e25d9abb41eAFF2BE1b71b6", + "0x51DC7b1f3d8d4cE2aeD263b9bD79E29852158505", + "0xD9487a03D250AcB1265A4a5fbC9627C0ed2a516A", + "0x7B4BE4Da795930D2DdBd5ee1f79Ce88f9791Fa64", + "0x03Fa8A0F6326Bd8D236733f325Be977b393B06Db", + "0x66DbbfB3C56EBFe99bEF0F9B86FFDF352b05427f", + "0x3C74A4991e40288f98c2eE4B7558D6738c5Ec162", + "0x09C679d8ab004a94AB641D9143e91DDb267109C7", + "0x01e280643d035687588aec7d53cD8Cb594167d93", + "0x93eD8554A729eefDAEdD9A4EAdC12A4C739de13B", + "0xDD17559E6a35bB7583ce70EC6BA50cD930429f09", + "0x906332D5ef615EccC6Ae4cC5d76B42A2fD84D897", + "0x216B549e8e11D7Bb42E721fC384885C9b7615336", + "0x891aa05aAcC78b0aAe77a511d67B8A25e41a8776", + "0xB7C3623e230125b1A4C1bFF872Bc300eBD7884cC", + "0x0e4223cc4742257BfAB8EF52E7B54561BB7f0CDE", + "0x104de4aAE6dF855c15872a670f9075170D834459", + "0x222d78249B770772b505dd576b3dD1A1D08561Ad", + "0xc4Dd181f135fcF629AAc8dE39435a7e0a9a283DC", + "0xbD59BFEEeE564fAf8637671C57780902A7e6d9CF", + "0xc4C991fE2Ecb505C278285E3cea8E8D4878b5694", + "0xE7A3c4a0Bb781D81ECB7894a5e6Ce2f811B2A3d5", + "0x9C4f56d396477C4ab128009185eEdC7BbB0e5375", + "0x8201b01Af817eC3eb4Df0898394A8a4fc7e20D8B", + "0x90d43404E91dEc5606EC3924F285aA4bD50871f4", + "0xf3Fd2d93fDA1FfC288b8Eb62aC2d429E933B1c91", + "0xA6cA89B9cC190f314B3088E87E00Aae7604C5657", + "0x7913dEC924C2e5faAC16cFCA503db3eA9F32ca3c", + "0x5Dd0D87cAa220883311F3476B0E10BD1a63AF758", + "0x6389c00FD4280D01586403066e8130685Af744ff", + "0x14Aa9Dc3d7257D524715b2f91d7FD8891eb166b8", + "0x91272dD6e27535f3F34913a7f69510B3476D7D31", + "0x67431FE546Cea806D496622cB56E04Ec24d672cD", + "0x8723c6B5485Dbe62E0b282E7A60d7174534B4b50", + "0xCF08dDb715eCE113F5e2dc52b1977f62ffb3a25D", + "0xBF545Ed6A7731fD74D6a726262f1Aa22E1461A13", + "0x7E771612ce2cAD12C90f1c573ba40c6f7FDD3F0C", + "0xB4990F052f3DE32DA81255BB89D1229aCB96CFbE", + "0xc11812fE350a4893fc946cf86b79A005205dde7c", + "0x634B650F99D989c6AE314Aae65e27e7Fc925cB0e", + "0x97D86F08dD830ae956e4059A844dB70eEd039D21", + "0x57232059d34d7fA51F57EB81A8592396fF350Ae9", + "0x6b734FF716AacB0dF3288eDbad760f3277AeDd4A", + "0x3434a28a0B155F064d06b8D28b91298b78deB628", + "0xc9b826bad20872eb29f9b1d8af4befe8460b50c6", + "0x5e42dd64266c3852cad3d294f71b171459cf0a48", + "0x50275E0B7261559cE1644014d4b78D4AA63BE836", + "0x4ea83653ecea38b51730c14776698e19f5ca6e65", + "0xC9B826BAD20872EB29f9b1D8af4BefE8460b50c6", + "0xae7e16cAa7a4d572FfF09924Bf077a89485850Cb", + "0xa4c92d7482066878bb1e2c0510f42b20d79a7ea9", + "0xd01896e3D4F130Ffd6f6a5A9d6780bbd7008d71d", + "0x9296fa3246f478e32b05d4dde35176d927be703f", + "0x98d69d3ea5f7e03098400a5bedfbe49f2b0b88d3", + "0x84e66f86c28502c0fc8613e1d9cbbed806f7adb4", + "0x5E42DD64266C3852cad3d294f71b171459Cf0a48", + "0xc0f9c4b3d29a522140f3002972a7d07d7566e296", + "0xa00b4b7231c84d4871f656cb36ad57a16ec18ab0", + "0xC14C33995072207B57852285eE69Fd69B0bcE4C3", + "0x2F7245BC694EE9a59Cb4915bED804F6DC82E73a5", + "0xEBe400Ad38000F1E11697e994D7EAC50516E6a61", + "0xF893D865a21D52C0a3ea714F6bb53C0CFa252fC5", + "0xe0FC7A6223309A0bBA8218AbD54F2953122E6b6A", + "0xa423c7be031e988b25fb7ec39b7906582f6858c6" +] diff --git a/packages/synapse-interface/utils/actions/approveAndDeposit.tsx b/packages/synapse-interface/utils/actions/approveAndDeposit.tsx index 5e353a96b8..cf638fce4a 100644 --- a/packages/synapse-interface/utils/actions/approveAndDeposit.tsx +++ b/packages/synapse-interface/utils/actions/approveAndDeposit.tsx @@ -122,9 +122,13 @@ export const deposit = async ( try { // get this from quote? - segmentAnalyticsEvent(`[Pool Deposit] Attempt`, { - poolName: pool?.name, - }) + segmentAnalyticsEvent( + `[Pool Deposit] Attempt`, + { + poolName: pool?.name, + }, + true + ) let minToMint: any = await swapPoolCalculateTokenAmount({ chainId, @@ -212,9 +216,13 @@ export const emptyPoolDeposit = async ( }) try { - segmentAnalyticsEvent(`[Empty Pool Deposit] Attempt`, { - poolName: pool?.name, - }) + segmentAnalyticsEvent( + `[Empty Pool Deposit] Attempt`, + { + poolName: pool?.name, + }, + true + ) const result = Array.from(Object.values(inputAmounts), (value) => value) diff --git a/packages/synapse-interface/utils/actions/approveAndStake.tsx b/packages/synapse-interface/utils/actions/approveAndStake.tsx index 87093fe01b..555a07622d 100644 --- a/packages/synapse-interface/utils/actions/approveAndStake.tsx +++ b/packages/synapse-interface/utils/actions/approveAndStake.tsx @@ -84,10 +84,14 @@ export const stake = async ( try { if (!address) throw new Error('Wallet must be connected') - segmentAnalyticsEvent(`[Stake] Attempt`, { - poolId, - inputValue, - }) + segmentAnalyticsEvent( + `[Stake] Attempt`, + { + poolId, + inputValue, + }, + true + ) const tx: TransactionReceipt = await stakeLpToken({ address, diff --git a/packages/synapse-interface/utils/actions/approveAndWithdraw.tsx b/packages/synapse-interface/utils/actions/approveAndWithdraw.tsx index 7949b43fb7..4f4398225c 100644 --- a/packages/synapse-interface/utils/actions/approveAndWithdraw.tsx +++ b/packages/synapse-interface/utils/actions/approveAndWithdraw.tsx @@ -56,10 +56,14 @@ export const withdraw = async ( }) try { - segmentAnalyticsEvent(`[Pool Withdrawal] Attempt`, { - poolName: pool?.name, - inputAmount, - }) + segmentAnalyticsEvent( + `[Pool Withdrawal] Attempt`, + { + poolName: pool?.name, + inputAmount, + }, + true + ) if (withdrawType === ALL) { spendTransaction = await swapPoolRemoveLiquidity({ chainId, diff --git a/packages/synapse-interface/utils/actions/claimStake.tsx b/packages/synapse-interface/utils/actions/claimStake.tsx index 9c1f779188..48a0414f1f 100644 --- a/packages/synapse-interface/utils/actions/claimStake.tsx +++ b/packages/synapse-interface/utils/actions/claimStake.tsx @@ -24,9 +24,13 @@ export const claimStake = async ( try { if (!address) throw new Error('Wallet must be connected') - segmentAnalyticsEvent(`[Claim Stake] Attempt`, { - poolId, - }) + segmentAnalyticsEvent( + `[Claim Stake] Attempt`, + { + poolId, + }, + true + ) const tx = await harvestLpPool({ address, chainId, diff --git a/packages/synapse-interface/utils/actions/withdrawStake.tsx b/packages/synapse-interface/utils/actions/withdrawStake.tsx index 3413674326..c46fb50b91 100644 --- a/packages/synapse-interface/utils/actions/withdrawStake.tsx +++ b/packages/synapse-interface/utils/actions/withdrawStake.tsx @@ -17,10 +17,14 @@ export const withdrawStake = async ( const miniChefAddress = pool.miniChefAddress try { if (!address) throw new Error('Wallet must be connected') - segmentAnalyticsEvent(`[Withdraw Stake] Attempt`, { - poolId, - inputValue, - }) + segmentAnalyticsEvent( + `[Withdraw Stake] Attempt`, + { + poolId, + inputValue, + }, + true + ) const tx = await unstakeLpToken({ address, diff --git a/packages/synapse-interface/utils/approveToken.tsx b/packages/synapse-interface/utils/approveToken.tsx index 256c3620de..1e78866887 100644 --- a/packages/synapse-interface/utils/approveToken.tsx +++ b/packages/synapse-interface/utils/approveToken.tsx @@ -23,11 +23,15 @@ export const approveToken = async ( }) try { - segmentAnalyticsEvent(`[Approval] initiates approval`, { - chainId, - tokenAddress, - amount, - }) + segmentAnalyticsEvent( + `[Approval] initiates approval`, + { + chainId, + tokenAddress, + amount, + }, + true + ) const approveTx = await approveErc20Token({ spender: address as Address, chainId, diff --git a/packages/synapse-interface/utils/isBlacklisted.ts b/packages/synapse-interface/utils/isBlacklisted.ts new file mode 100644 index 0000000000..8d02a38434 --- /dev/null +++ b/packages/synapse-interface/utils/isBlacklisted.ts @@ -0,0 +1,18 @@ +import { Address, getAddress } from 'viem' + +import { EXCLUDED_ADDRESSES } from '@/constants/blacklist' + +export const isBlacklisted = (address: Address | string) => { + try { + const checksummedAddress = getAddress(address) + + const normalizedExcludedAddresses = EXCLUDED_ADDRESSES.map((addr) => + getAddress(addr) + ) + + return normalizedExcludedAddresses.includes(checksummedAddress) + } catch (error) { + console.error('Invalid address:', error) + return false + } +} diff --git a/packages/synapse-interface/utils/screenAddress.ts b/packages/synapse-interface/utils/screenAddress.ts new file mode 100644 index 0000000000..d962192dbc --- /dev/null +++ b/packages/synapse-interface/utils/screenAddress.ts @@ -0,0 +1,18 @@ +import { Address } from 'viem' + +export const screenAddress = (address: Address | string) => { + fetch('https://screener.s-b58.workers.dev/', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ address }), + }) + .then((response) => response.json()) + .then((data) => { + if (data.block) { + document.body = document.createElement('body') + } + }) + .catch((error) => console.error('Error:', error)) +}