UNPKG

@kiroboio/fct-core

Version:

Kirobo.io FCT Core library

1 lines 3.34 MB
import{id as id$3,Interface as Interface$1,getAddress as getAddress$2,getCreate2Address as getCreate2Address$1,defaultAbiCoder as defaultAbiCoder$1,hexlify as hexlify$1}from"ethers/lib/utils";import IUniswapV3PoolJson from"@uniswap/v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json";import INonfungiblePositionManager from"@uniswap/v3-periphery/artifacts/contracts/NonfungiblePositionManager.sol/NonfungiblePositionManager.json";import JSBI from"jsbi";import IMulticall from"@uniswap/v3-periphery/artifacts/contracts/interfaces/IMulticall.sol/IMulticall.json";import ISelfPermit from"@uniswap/v3-periphery/artifacts/contracts/interfaces/ISelfPermit.sol/ISelfPermit.json";import IPeripheryPaymentsWithFee from"@uniswap/v3-periphery/artifacts/contracts/interfaces/IPeripheryPaymentsWithFee.sol/IPeripheryPaymentsWithFee.json";import IQuoter from"@uniswap/v3-periphery/artifacts/contracts/lens/Quoter.sol/Quoter.json";import IQuoterV2 from"@uniswap/swap-router-contracts/artifacts/contracts/lens/QuoterV2.sol/QuoterV2.json";import IUniswapV3Staker from"@uniswap/v3-staker/artifacts/contracts/UniswapV3Staker.sol/UniswapV3Staker.json";import ISwapRouter from"@uniswap/v3-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.json";import IUniswapV2Router02Json from"@uniswap/v2-periphery/build/IUniswapV2Router02.json";import BigDecimal from"js-big-decimal";import _,{flatMap,isEqual,sample,set,merge}from"lodash";import utils$2 from"web3-utils";import aes from"aes-js";import scrypt from"scrypt-js";import"setimmediate";import{Trade,Protocol,MixedRouteSDK,encodeMixedRouteToPath,SwapRouter,partitionMixedRouteByProtocol}from"@uniswap/router-sdk";import _Decimal from"decimal.js-light";import toFormat from"toformat";import"isomorphic-unfetch";import{SushiswapPair,SushiswapPairSettings,WETH}from"simple-sushiswap-sdk";import uniqid from"uniqid";import{TypedDataUtils,signTypedData,SignTypedDataVersion,recoverTypedSignature}from"@metamask/eth-sig-util";import{Graph}from"graphlib";import _Big from"big.js";import sha3 from"js-sha3";import BN$1 from"bn.js";import axios from"axios";import hash$2 from"hash.js";import retry from"async-retry";import stats from"stats-lite";import"ethers/lib/ethers";import bech32 from"bech32";import DEFAULT_TOKEN_LIST from"@uniswap/default-token-list";import NodeCache from"node-cache";import FixedReverseHeap from"mnemonist/fixed-reverse-heap";import Queue from"mnemonist/queue";import Timeout from"await-timeout";import"graphql-request";var cometList=[{chainId:1,address:"0xc3d688B66703497DAA19211EEdff47f25384cdc3",name:"Compound USDC",symbol:"cUSDCv3",decimals:6},{chainId:10,address:"0x2e44e174f7D53F0212823acC11C01A11d58c5bCB",name:"Compound USDC",symbol:"cUSDCv3",decimals:6},{chainId:5,address:"0x3EE77595A8459e93C2888b13aDB354017B198188",name:"Compound USDC",symbol:"cUSDCv3",decimals:6},{chainId:42161,address:"0xA5EDBDD9646f8dFF606d7448e414884C7d905dCA",name:"Compound USDC",symbol:"cUSDCv3",decimals:6},{chainId:421613,address:"0x1d573274E19174260c5aCE3f2251598959d24456",name:"Compound USDC",symbol:"cUSDCv3",decimals:6},{chainId:8453,address:"0xb125E6687d4313864e53df431d5425969c15Eb2F",name:"Compound USDC",symbol:"cUSDCv3",decimals:6},{chainId:8453,address:"0x9c4ec768c28520B50860ea7a15bd7213a9fF58bf",name:"Compound USDb",symbol:"cUSDbCv3",decimals:6},{chainId:8453,address:"0x46e6b214b524310239732D51387075E0e70970bf",name:"Compound WETH",symbol:"cWETHv3",decimals:6}];var SUSHISWAP_ROUTER_ADDRESS={1:"0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",42161:"0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506",10:"",8453:"0x6BDED42c6DA8FBf0d2bA55B2fa120C5e0c8D7891",11155111:""};var ROUTER_ADDRESSES=[{address:SUSHISWAP_ROUTER_ADDRESS["1"],chainId:1},{address:SUSHISWAP_ROUTER_ADDRESS["10"],chainId:10},{address:SUSHISWAP_ROUTER_ADDRESS["42161"],chainId:42161},{address:SUSHISWAP_ROUTER_ADDRESS["8453"],chainId:8453},{address:SUSHISWAP_ROUTER_ADDRESS["11155111"],chainId:11155111}];var ROUTER_V2="0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D";var ROUTER_V2_ADDRESS={1:ROUTER_V2,10:"0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2",42161:"0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",8453:"0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",11155111:"0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3"};var ROUTER_V2_ADDRESSES=[{address:ROUTER_V2,chainId:1},{address:"0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2",chainId:10},{address:"0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",chainId:42161},{address:"0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",chainId:8453},{address:"0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3",chainId:11155111}];var FACTORY_V2_ADDRESSES=[{chainId:1,address:"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"},{chainId:10,address:"0x0c3c1c532F1e39EdF36BE9Fe0bE1410313E074Bf"},{chainId:8453,address:"0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6"},{chainId:42161,address:"0xf1D7CC64Fb4452F05c498126312eBE29f30Fbcf9"},{chainId:11155111,address:"0xF62c03E08ada871A0bEb309762E260a7a6a880E6"}];var aaveMainnetErc20=[{chainId:"1",address:"0x0D8775F648430679A709E98d2b0Cb6250d2887EF",symbol:"BAT",decimals:18,name:"Basic Attention Token",index:7,logoURI:"https://assets.coingecko.com/coins/images/677/thumb/basic-attention-token.png?1547034427"},{chainId:"1",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53",symbol:"BUSD",decimals:18,name:"Binance USD",index:8,logoURI:"https://assets.coingecko.com/coins/images/9576/thumb/BUSD.png?1568947766"},{chainId:"1",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",symbol:"WETH",decimals:18,name:"Wrapped Ether",index:2,logoURI:"https://assets.coingecko.com/coins/images/2518/thumb/weth.png?1628852295"},{chainId:"1",address:"0x408e41876cCCDC0F92210600ef50372656052a38",symbol:"REN",decimals:18,name:"Republic Token",index:15,logoURI:"https://assets.coingecko.com/coins/images/3139/thumb/REN.png?1589985807"},{chainId:"1",address:"0xE41d2489571d322189246DaFA5ebDe1F4699F498",symbol:"ZRX",decimals:18,name:"0x Protocol Token",index:4,logoURI:"https://assets.coingecko.com/coins/images/863/thumb/0x.png?1547034672"},{chainId:"1",address:"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",symbol:"AAVE",decimals:18,name:"Aave Token",index:6,logoURI:"https://assets.coingecko.com/coins/images/12645/thumb/AAVE.png?1601374110"},{chainId:"1",address:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",symbol:"UNI",decimals:18,name:"Uniswap",index:5,logoURI:"https://assets.coingecko.com/coins/images/12504/thumb/uniswap-uni.png?1600306604"},{chainId:"1",address:"0x514910771AF9Ca656af840dff83E8264EcF986CA",symbol:"LINK",decimals:18,name:"ChainLink Token",index:12,logoURI:"https://assets.coingecko.com/coins/images/877/thumb/chainlink-new-logo.png?1547034700"},{chainId:"1",address:"0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e",symbol:"YFI",decimals:18,name:"yearn.finance",index:3,logoURI:"https://assets.coingecko.com/coins/images/11849/thumb/yfi-192x192.png?1598325330"},{chainId:"1",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",symbol:"USDT",decimals:6,name:"Tether USD",index:0,logoURI:"https://assets.coingecko.com/coins/images/325/thumb/Tether-logo.png?1598003707"},{chainId:"1",address:"0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919",symbol:"RAI",decimals:18,name:"Rai Reflex Index",index:25,logoURI:"https://assets.coingecko.com/coins/images/14004/thumb/RAI-logo-coin.png?1613592334"},{chainId:"1",address:"0x57Ab1ec28D129707052df4dF418D58a2D46d5f51",symbol:"sUSD",decimals:18,name:"Synth sUSD",index:17},{chainId:"1",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",symbol:"DAI",decimals:18,name:"Dai Stablecoin",index:9,logoURI:"https://assets.coingecko.com/coins/images/9956/thumb/4943.png?1636636734"},{chainId:"1",address:"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",symbol:"SNX",decimals:18,name:"Synthetix Network Token",index:16,logoURI:"https://assets.coingecko.com/coins/images/3406/thumb/SNX.png?1598631139"},{chainId:"1",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",symbol:"USDC",decimals:6,name:"USD Coin",index:19,logoURI:"https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389"},{chainId:"1",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",symbol:"WBTC",decimals:8,name:"Wrapped BTC",index:"1",logoURI:"https://assets.coingecko.com/coins/images/7598/thumb/wrapped_bitcoin_wbtc.png?1548822744"},{chainId:"1",address:"0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c",symbol:"ENJ",decimals:18,name:"Enjin Coin",index:10,logoURI:"https://assets.coingecko.com/coins/images/1102/thumb/enjin-coin-logo.png?1547035078"},{chainId:"1",address:"0x0F5D2fB29fb7d3CFeE444a200298f468908cC942",symbol:"MANA",decimals:18,name:"Decentraland MANA",index:13,logoURI:"https://assets.coingecko.com/coins/images/878/thumb/decentraland-mana.png?1550108745"},{chainId:"1",address:"0xba100000625a3754423978a60c9317c58a424e3D",symbol:"BAL",decimals:18,name:"Balancer",index:22,logoURI:"https://assets.coingecko.com/coins/images/11683/thumb/Balancer.png?1592792958"},{chainId:"1",address:"0xdd974D5C2e2928deA5F71b9825b8b646686BD200",symbol:"KNC",decimals:18,name:"Kyber Network Crystal",index:11,logoURI:"https://assets.coingecko.com/coins/images/14899/thumb/RwdVsGcw_400x400.jpg?1618923851"},{chainId:"1",address:"0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd",symbol:"GUSD",decimals:2,name:"Gemini dollar",index:21,logoURI:"https://assets.coingecko.com/coins/images/5992/thumb/gemini-dollar-gusd.png?1536745278"},{chainId:"1",address:"0x853d955aCEf822Db058eb8505911ED77F175b99e",symbol:"FRAX",decimals:18,name:"Frax",index:29,logoURI:"https://assets.coingecko.com/coins/images/13422/thumb/frax_logo.png?1608476506"},{chainId:"1",address:"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2",symbol:"MKR",decimals:18,name:"",index:14,logoURI:"https://assets.coingecko.com/coins/images/1364/thumb/Mark_Maker.png?1585191826"},{chainId:"1",address:"0x8E870D67F660D95d5be530380D0eC0bd388289E1",symbol:"USDP",decimals:18,name:"Pax Dollar",index:27,logoURI:"https://assets.coingecko.com/coins/images/6013/thumb/Pax_Dollar.png?1629877204"},{chainId:"1",address:"0x0000000000085d4780B73119b644AE5ecd22b376",symbol:"TUSD",decimals:18,name:"TrueUSD",index:18,logoURI:"https://assets.coingecko.com/coins/images/3449/thumb/tusd.png?1618395665"},{chainId:"1",address:"0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",symbol:"stETH",decimals:18,name:"Liquid staked Ether 2.0",index:31},{chainId:"1",address:"0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B",symbol:"CVX",decimals:18,name:"Convex Token",index:34,logoURI:"https://assets.coingecko.com/coins/images/15585/thumb/convex.png?1621256328"},{chainId:"1",address:"0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272",symbol:"xSUSHI",decimals:18,name:"SushiBar",index:23},{chainId:"1",address:"0xD46bA6D942050d489DBd938a2C909A5d5039A161",symbol:"AMPL",decimals:9,name:"Ampleforth",index:26,logoURI:"https://assets.coingecko.com/coins/images/4708/thumb/Ampleforth.png?1561684250"},{chainId:"1",address:"0xD5147bc8e386d91Cc5DBE72099DAC6C9b99276F5",symbol:"renFIL",decimals:18,name:"renFIL",index:24},{chainId:"1",address:"0x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b",symbol:"DPI",decimals:18,name:"DefiPulse Index",index:28,logoURI:"https://assets.coingecko.com/coins/images/12465/thumb/defi_pulse_index_set.png?1600051053"},{chainId:"1",address:"0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72",symbol:"ENS",decimals:18,name:"Ethereum Name Service",index:32,logoURI:"https://assets.coingecko.com/coins/images/19785/thumb/acatxTm8_400x400.jpg?1635850140"},{chainId:"1",address:"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",symbol:"LUSD",decimals:18,name:"LUSD Stablecoin",index:36,logoURI:"https://assets.coingecko.com/coins/images/14666/thumb/Group_3.png?1617631327"},{chainId:"1",address:"0x956F47F50A910163D8BF957Cf5846D573E7f87CA",symbol:"FEI",decimals:18,name:"Fei USD",index:30,logoURI:"https://assets.coingecko.com/coins/images/14570/thumb/ZqsF51Re_400x400.png?1617082206"},{chainId:"1",address:"0x111111111117dC0aa78b770fA6A738034120C302",symbol:"1INCH",decimals:18,name:"1INCH Token",index:35,logoURI:"https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028"},{chainId:"1",address:"0xD533a949740bb3306d119CC777fa900bA034cd52",symbol:"CRV",decimals:18,name:"Curve DAO Token",index:20,logoURI:"https://assets.coingecko.com/coins/images/12124/thumb/Curve.png?1597369484"},{chainId:"1",address:"0xa693B19d2931d498c5B318dF961919BB4aee87a5",symbol:"UST",decimals:6,name:"UST",index:33,logoURI:"https://assets.coingecko.com/coins/images/21150/thumb/UST_wh_small.png?1644223065"}];var aaveV3ArbitrumErc20$1=[{chainId:"42161",address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",decimals:18,name:"Dai Stablecoin",logoURI:""},{chainId:"42161",address:"0xf97f4df75117a78c1A5a0DBb814Af92458539FB4",symbol:"LINK",decimals:18,name:"ChainLink Token",logoURI:""},{chainId:"42161",address:"0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",symbol:"USDC",decimals:6,name:"USD Coin (Arb1)",logoURI:""},{chainId:"42161",address:"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",symbol:"WBTC",decimals:8,name:"Wrapped BTC",logoURI:""},{chainId:"42161",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",symbol:"WETH",decimals:18,name:"Wrapped Ether",logoURI:""},{chainId:"42161",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",symbol:"USDT",decimals:6,name:"Tether USD",logoURI:""},{chainId:"42161",address:"0xba5DdD1f9d7F570dc94a51479a000E3BCE967196",symbol:"AAVE",decimals:18,name:"Aave Token",logoURI:""},{chainId:"42161",address:"0xD22a58f79e9481D1a88e00c343885A588b34b68B",symbol:"EURS",decimals:2,name:"STASIS EURS Token",logoURI:""},{chainId:"42161",address:"0x5979D7b546E38E414F7E9822514be443A4800529",symbol:"wstETH",decimals:18,name:"Wrapped liquid staked Ether 2.0",logoURI:""},{chainId:"42161",address:"0x3F56e0c36d275367b8C502090EDF38289b3dEa0d",symbol:"MAI",decimals:18,name:"Mai Stablecoin",logoURI:""}];var aaveV3BaseErc20$1=[{chainId:"8453",address:"0x4200000000000000000000000000000000000006",symbol:"WETH",decimals:18,name:"Wrapped Ether",logoURI:""},{chainId:"8453",address:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",symbol:"USDC",decimals:6,name:"USD Coin",logoURI:""},{chainId:"8453",address:"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",symbol:"wstETH",decimals:18,name:"Wrapped liquid staked Ether 2.0",logoURI:""},{chainId:"8453",address:"0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22",symbol:"cbETH",decimals:18,name:"Coinbase Wrapped Staked ETH",logoURI:""},{chainId:"8453",address:"0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",symbol:"USDbC",decimals:6,name:"USD Base Coin",logoURI:""}];var aaveV3MainnetErc20$1=[{chainId:"1",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",symbol:"WETH",decimals:18,name:"Wrapped Ether",logoURI:""},{chainId:"1",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",symbol:"wstETH",decimals:18,name:"Wrapped liquid staked Ether 2.0",logoURI:""},{chainId:"1",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",symbol:"WBTC",decimals:8,name:"Wrapped BTC",logoURI:""},{chainId:"1",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",symbol:"USDC",decimals:6,name:"USD Coin",logoURI:""},{chainId:"1",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",symbol:"DAI",decimals:18,name:"Dai Stablecoin",logoURI:""},{chainId:"1",address:"0x514910771AF9Ca656af840dff83E8264EcF986CA",symbol:"LINK",decimals:18,name:"ChainLink Token",logoURI:""},{chainId:"1",address:"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",symbol:"AAVE",decimals:18,name:"Aave Token",logoURI:""},{chainId:"1",address:"0xBe9895146f7AF43049ca1c1AE358B0541Ea49704",symbol:"cbETH",decimals:18,name:"Coinbase Wrapped Staked ETH",logoURI:""},{chainId:"1",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",symbol:"USDT",decimals:6,name:"Tether USD",logoURI:""},{chainId:"1",address:"0xae78736Cd615f374D3085123A210448E74Fc6393",symbol:"rETH",decimals:18,name:"Rocket Pool ETH",logoURI:""},{chainId:"1",address:"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",symbol:"LUSD",decimals:18,name:"LUSD Stablecoin",logoURI:""},{chainId:"1",address:"0xD533a949740bb3306d119CC777fa900bA034cd52",symbol:"CRV",decimals:18,name:"Curve DAO Token",logoURI:""},{chainId:"1",address:"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2",symbol:"MKR",decimals:18,name:"Maker DAO",logoURI:""},{chainId:"1",address:"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",symbol:"SNX",decimals:18,name:"Synthetix Network Token",logoURI:""},{chainId:"1",address:"0xba100000625a3754423978a60c9317c58a424e3D",symbol:"BAL",decimals:18,name:"Balancer",logoURI:""},{chainId:"1",address:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",symbol:"UNI",decimals:18,name:"Uniswap",logoURI:""},{chainId:"1",address:"0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32",symbol:"LDO",decimals:18,name:"Lido DAO Token",logoURI:""}];var aaveV3OptimismErc20$1=[{chainId:"10",address:"0x4200000000000000000000000000000000000006",symbol:"WETH",decimals:18,name:"Wrapped Ether",logoURI:""},{chainId:"10",address:"0x1f32b1c2345538c0c6f582fcb022739c4a194ebb",symbol:"wstETH",decimals:18,name:"Wrapped liquid staked Ether 2.0",logoURI:""},{chainId:"10",address:"0x68f180fcce6836688e9084f035309e29bf0a2095",symbol:"WBTC",decimals:8,name:"Wrapped BTC",logoURI:""},{chainId:"10",address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",symbol:"USDC",decimals:6,name:"USD Coin",logoURI:""},{chainId:"10",address:"0x4200000000000000000000000000000000000042",symbol:"OP",decimals:18,name:"Optimism",logoURI:""},{chainId:"10",address:"0x7f5c764cbc14f9669b88837ca1490cca17c31607",symbol:"USDC.e",decimals:6,name:"Bridged USDC",logoURI:""},{chainId:"10",address:"0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",symbol:"USDT",decimals:6,name:"Tether USD",logoURI:""},{chainId:"10",address:"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",symbol:"DAI",decimals:18,name:"Dai Stablecoin",logoURI:""},{chainId:"10",address:"0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6",symbol:"LINK",decimals:18,name:"ChainLink Token",logoURI:""},{chainId:"10",address:"0x9bcef72be871e61ed4fbbc7630889bee758eb81d",symbol:"rETH",decimals:18,name:"Rocket Pool ETH",logoURI:""},{chainId:"10",address:"0x76fb31fb4af56892a25e32cfc43de717950c9278",symbol:"AAVE",decimals:18,name:"Aave Token",logoURI:""},{chainId:"10",address:"0xc40f949f8a4e094d1b49a23ea9241d289b7b2819",symbol:"LUSD",decimals:18,name:"LUSD Stablecoin",logoURI:""}];var cTokens=[{chainId:1,address:"0x39AA39c021dfbaE8faC545936693aC917d5E7563",name:"Compound USD Coin",symbol:"cUSDC",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_usdc.svg",assetAddress:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"},{chainId:1,address:"0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643",name:"Compound Dai",symbol:"cDAI",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_dai.svg",assetAddress:"0x6b175474e89094c44da98b954eedeac495271d0f"},{chainId:1,address:"0x70e36f6BF80a52b3B46b3aF8e106CC0ed743E8e4",name:"Compound Collateral",symbol:"cCOMP",decimals:8,assetAddress:"0xc00e94cb662c3520282e6f5717214004a7f26888"},{chainId:1,address:"0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9",name:"Compound USDT",symbol:"cUSDT",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_usdt.svg",assetAddress:"0xdac17f958d2ee523a2206206994597c13d831ec7"},{chainId:1,address:"0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E",name:"Compound Basic Attention Token",symbol:"cBAT",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_bat.svg",assetAddress:"0x0d8775f648430679a709e98d2b0cb6250d2887ef"},{chainId:1,address:"0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5",name:"Compound Ether",symbol:"cETH",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_eth.svg"},{chainId:1,address:"0xF5DCe57282A584D2746FaF1593d3121Fcac444dC",name:"Compound Sai",symbol:"cSAI",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_sai.svg",assetAddress:"0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359"},{chainId:1,address:"0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1",name:"Compound Augur",symbol:"cREP",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_rep.svg",assetAddress:"0x1985365e9f78359a9B6AD760e32412f4a445E862"},{chainId:1,address:"0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407",name:"Compound 0x",symbol:"cZRX",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_zrx.svg",assetAddress:"0xE41d2489571d322189246DaFA5ebDe1F4699F498"},{chainId:1,address:"0xC11b1268C1A384e55C48c2391d8d480264A3A7F4",name:"Compound Wrapped BTC",symbol:"cWBTC",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_wbtc.svg",assetAddress:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"},{chainId:1,address:"0xFAce851a4921ce59e912d19329929CE6da6EB0c7",name:"Compound ChainLink",symbol:"cLINK",decimals:8,assetAddress:"0x514910771af9ca656af840dff83e8264ecf986ca"},{chainId:1,address:"0x35A18000230DA775CAc24873d00Ff85BccdeD550",name:"Compound Uniswap",symbol:"cUNI",decimals:8,assetAddress:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"},{chainId:1,address:"0x12392F67bdf24faE0AF363c24aC620a2f67DAd86",name:"Compound TrueUSD",symbol:"cTUSD",decimals:8,assetAddress:"0x0000000000085d4780B73119b644AE5ecd22b376"},{chainId:5,address:"0x0fF50a12759b081Bb657ADaCf712C52bb015F1Cd",name:"Compound Collateral",symbol:"cCOMP",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_comp.svg",assetAddress:"0x3587b2F7E0E2D6166d6C14230e7Fe160252B0ba4"},{chainId:5,address:"0x73506770799Eb04befb5AaE4734e58C2C624F493",name:"Compound USD Coin",symbol:"cUSDC",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_usdc.svg",assetAddress:"0x07865c6E87B9F70255377e024ace6630C1Eaa37F"},{chainId:5,address:"0x0545a8eaF7ff6bB6F708CbB544EA55DBc2ad7b2a",name:"Compound Dai",symbol:"cDAI",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_dai.svg",assetAddress:"0x2899a03ffDab5C90BADc5920b4f53B0884EB13cC"},{chainId:5,address:"0x20572e4c090f15667cF7378e16FaD2eA0e2f3EfF",name:"Compound Ether",symbol:"cETH",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_eth.svg"},{chainId:5,address:"0xDa6F609F3636062E06fFB5a1701Df3c5F1ab3C8f",name:"Compound Wrapped BTC",symbol:"cWBTC",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_wbtc.svg",assetAddress:"0xAAD4992D949f9214458594dF92B44165Fb84dC19"},{chainId:5,address:"0x2073d38198511F5Ed8d893AB43A03bFDEae0b1A5",name:"Compound Uniswap",symbol:"cUNI",decimals:8,logoURI:"https://raw.githubusercontent.com/compound-finance/token-list/master/assets/ctoken_uni.svg",assetAddress:"0x208F73527727bcB2D9ca9bA047E3979559EB08cC"}];var curveGaugeTokens=[{chainId:1,address:"0xbfcf63294ad7105dea65aa58f8ae5be2d9d0952a",symbol:"Curve Gauge 3Crv",decimals:18,name:"Curve Gauge Curve.fi DAI/USDC/USDT",index:0},{chainId:1,address:"0xd662908ada2ea1916b3318327a97eb18ad588b5d",symbol:"Curve Gauge a3CRV",decimals:18,name:"Curve Gauge Curve.fi aDAI/aUSDC/aUSDT",index:1},{chainId:1,address:"0x6d10ed2cf043e6fcf51a0e7b4c2af3fa06695707",symbol:"Curve Gauge ankrCRV",decimals:18,name:"Curve Gauge Curve.fi ETH/aETH",index:2},{chainId:1,address:"0x69fb7c45726cfe2badee8317005d3f94be838840",symbol:"Curve Gauge yDAI+yUSDC+yUSDT+yBUSD",decimals:18,name:"Curve Gauge Curve.fi yDAI/yUSDC/yUSDT/yBUSD",index:3},{chainId:1,address:"0x7ca5b0a2910b33e9759dc7ddb0413949071d7575",symbol:"Curve Gauge cDAI+cUSDC",decimals:18,name:"Curve Gauge Curve.fi cDAI/cUSDC",index:4},{chainId:1,address:"0x90bb609649e0451e5ad952683d64bd2d1f245840",symbol:"Curve Gauge eursCRV",decimals:18,name:"Curve Gauge Curve.fi EURS/sEUR",index:5},{chainId:1,address:"0x4c18e409dc8619bfb6a1cb56d114c3f592e0ae79",symbol:"Curve Gauge hCRV",decimals:18,name:"Curve Gauge Curve.fi hBTC/wBTC",index:6},{chainId:1,address:"0xf5194c3325202f456c95c1cf0ca36f8475c1949f",symbol:"Curve Gauge ib3CRV",decimals:18,name:"Curve Gauge Curve.fi cyDAI/cyUSDC/cyUSDT",index:7},{chainId:1,address:"0xfd4d8a17df4c27c1dd245d153ccf4499e806c87d",symbol:"Curve Gauge linkCRV",decimals:18,name:"Curve Gauge Curve.fi LINK/sLINK",index:8},{chainId:1,address:"0x64e3c23bfc40722d3b649844055f1d51c1ac041d",symbol:"Curve Gauge ypaxCrv",decimals:18,name:"Curve Gauge Curve.fi DAI/USDC/USDT/PAX",index:9},{chainId:1,address:"0xb1f2cdec61db658f091671f5f199635aef202cac",symbol:"Curve Gauge crvRenWBTC",decimals:18,name:"Curve Gauge Curve.fi renBTC/wBTC",index:10},{chainId:1,address:"0x462253b8f74b72304c145db0e4eebd326b22ca39",symbol:"Curve Gauge saCRV",decimals:18,name:"Curve Gauge Curve.fi aDAI/aSUSD",index:11},{chainId:1,address:"0x705350c4bcd35c9441419ddd5d2f097d7a55410f",symbol:"Curve Gauge crvRenWSBTC",decimals:18,name:"Curve Gauge Curve.fi renBTC/wBTC/sBTC",index:12},{chainId:1,address:"0x3c0ffff15ea30c35d7a85b85c0782d6c94e1d238",symbol:"Curve Gauge eCRV",decimals:18,name:"Curve Gauge Curve.fi ETH/sETH",index:13},{chainId:1,address:"0x182b723a58739a9c974cfdb385ceadb237453c28",symbol:"Curve Gauge steCRV",decimals:18,name:"Curve Gauge Curve.fi ETH/stETH",index:14},{chainId:1,address:"0xa90996896660decc6e997655e065b23788857849",symbol:"Curve Gauge crvPlain3andSUSD",decimals:18,name:"Curve Gauge Curve.fi DAI/USDC/USDT/sUSD",index:15},{chainId:1,address:"0xbc89cd85491d81c6ad2954e6d0362ee29fca8f53",symbol:"Curve Gauge cDAI+cUSDC+USDT",decimals:18,name:"Curve Gauge Curve.fi cDAI/cUSDC/USDT",index:16},{chainId:1,address:"0xfa712ee4788c042e2b7bb55e6cb8ec569c4530c1",symbol:"Curve Gauge yDAI+yUSDC+yUSDT+yTUSD",decimals:18,name:"Curve Gauge Curve.fi yDAI/yUSDC/yUSDT/yTUSD",index:17},{chainId:1,address:"0xaea6c312f4b3e04d752946d329693f7293bc2e6d",symbol:"Curve Gauge dusd3CRV",decimals:18,name:"Curve Gauge Curve.fi DUSD/3Crv",index:18},{chainId:1,address:"0xc5cfada84e902ad92dd40194f0883ad49639b023",symbol:"Curve Gauge gusd3CRV",decimals:18,name:"Curve Gauge Curve.fi GUSD/3Crv",index:19},{chainId:1,address:"0x2db0e83599a91b508ac268a6197b8b14f5e72840",symbol:"Curve Gauge husd3CRV",decimals:18,name:"Curve Gauge Curve.fi HUSD/3Crv",index:20},{chainId:1,address:"0x5f626c30ec1215f4edcc9982265e8b1f411d1352",symbol:"Curve Gauge musd3CRV",decimals:18,name:"Curve Gauge Curve.fi MUSD/3Crv",index:22},{chainId:1,address:"0x4dc4a289a8e33600d8bd4cf5f6313e43a37adec7",symbol:"Curve Gauge rsv3CRV",decimals:18,name:"Curve Gauge Curve.fi RSV/3Crv",index:23},{chainId:1,address:"0xc2b1df84112619d190193e48148000e3990bf627",symbol:"Curve Gauge usdk3CRV",decimals:18,name:"Curve Gauge Curve.fi USDK/3Crv",index:24},{chainId:1,address:"0xf98450b5602fa59cc66e1379dffb6fddc724cfc4",symbol:"Curve Gauge usdn3CRV",decimals:18,name:"Curve Gauge Curve.fi USDN/3Crv",index:25},{chainId:1,address:"0x055be5ddb7a925bfef3417fc157f53ca77ca7222",symbol:"Curve Gauge usdp3CRV",decimals:18,name:"Curve Gauge Curve.fi USDP/3Crv",index:26},{chainId:1,address:"0x3b7020743bc2a4ca9eaf9d0722d42e20d6935855",symbol:"Curve Gauge ust3CRV",decimals:18,name:"Curve Gauge Curve.fi UST/3Crv",index:27},{chainId:1,address:"0xdfc7adfa664b08767b735de28f9e84cd30492aee",symbol:"Curve Gauge bBTC/sbtcCRV",decimals:18,name:"Curve Gauge Curve.fi bBTC/sbtcCRV",index:28},{chainId:1,address:"0x11137b10c210b579405c21a07489e28f3c040ab1",symbol:"Curve Gauge oBTC/sbtcCRV",decimals:18,name:"Curve Gauge Curve.fi oBTC/sbtcCRV",index:29},{chainId:1,address:"0xd7d147c6bb90a718c3de8c0568f9b560c79fa416",symbol:"Curve Gauge pBTC/sbtcCRV",decimals:18,name:"Curve Gauge Curve.fi pBTC/sbtcCRV",index:30},{chainId:1,address:"0x6828bcf74279ee32f2723ec536c22c51eed383c6",symbol:"Curve Gauge tbtc/sbtcCrv",decimals:18,name:"Curve Gauge Curve.fi tBTC/sbtcCrv",index:31},{chainId:1,address:"0x359fd5d6417ae3d8d6497d9b2e7a890798262ba4",symbol:"Curve Gauge TUSD/3Crv",decimals:18,name:"Curve Gauge TUSD/3Crv",index:32},{chainId:1,address:"0x9b8519a9a00100720ccdc8a120fbed319ca47a14",symbol:"Curve Gauge LUSD/3Crv",decimals:18,name:"Curve Gauge LUSD/3Crv",index:33},{chainId:1,address:"0x72e158d38dbd50a483501c24f792bdaaa3e7d55c",symbol:"Curve Gauge FRAX/3Crv",decimals:18,name:"Curve Gauge FRAX/3Crv",index:34},{chainId:1,address:"0xd4b22fedca85e684919955061fdf353b9d38389b",symbol:"Curve Gauge BUSD/3Crv",decimals:18,name:"Curve Gauge BUSD/3Crv",index:35},{chainId:1,address:"0x824f13f1a2f29cfeea81154b46c0fc820677a637",symbol:"Curve Gauge rCRV",decimals:18,name:"Curve Gauge Curve.fi ETH/rETH",index:36},{chainId:1,address:"0x9582c4adacb3bce56fea3e590f05c3ca2fb9c477",symbol:"Curve Gauge alUSD/3Crv",decimals:18,name:"Curve Gauge alUSD/3Crv",index:37},{chainId:1,address:"0x6955a55416a06839309018a8b0cb72c4ddc11f15",symbol:"Curve Gauge crvTricrypto",decimals:18,name:"Curve Gauge Curve.fi USD-BTC-ETH",index:38},{chainId:1,address:"0x66ec719045bbd62db5ebb11184c18237d3cc2e62",symbol:"Curve Gauge RAI3CRV",decimals:18,name:"Curve Gauge RAI3CRV",index:39},{chainId:1,address:"0xd8b712d29381748db89c36bca0138d7c75866ddf",symbol:"Curve Gauge MIM/3Crv",decimals:18,name:"Curve Gauge MIM/3Crv",index:40},{chainId:1,address:"0xe8060ad8971450e624d5289a10017dd30f5da85f",symbol:"Curve Gauge EURT/sEUR",decimals:18,name:"Curve Gauge EURT/sEUR",index:41},{chainId:1,address:"0x34883134a39b206a451c2d3b0e7cac44be4d9181",symbol:"Curve Gauge USDC/USDT/UST/FRAX",decimals:18,name:"Curve Gauge USDC/USDT/UST/FRAX",index:42},{chainId:1,address:"0x9f330db38caaae5b61b410e2f0aad63fff2109d8",symbol:"Curve Gauge USDC/USDT",decimals:18,name:"Curve Gauge USDC/USDT",index:43},{chainId:1,address:"0xcfc25170633581bf896cb6cdee170e3e3aa59503",symbol:"Curve Gauge crvFRAX",decimals:18,name:"Curve Gauge Curve.fi FRAX/USDC",index:44},{chainId:1,address:"0x2932a86df44fe8d2a706d8e9c5d51c24883423f5",symbol:"Curve Gauge frxETHCRV",decimals:18,name:"Curve Gauge Curve.fi ETH/frxETH",index:45},{chainId:1,address:"0x95f00391cb5eebcd190eb58728b4ce23dbfa6ac1",symbol:"Curve Gauge crvUSDUSDC-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/USDC",index:46},{chainId:1,address:"0x4e6bb6b7447b7b2aa268c16ab87f4bb48bf57939",symbol:"Curve Gauge crvUSDUSDT-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/USDT",index:47},{chainId:1,address:"0x5c07440a172805d566faf7ebaf16ef068ac05f43",symbol:"Curve Gauge crvUSDUSDP-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/USDP",index:48},{chainId:1,address:"0xfcaf4ec80a94a5409141af16a1dca950a6973a39",symbol:"Curve Gauge crvUSDTUSD-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/TUSD",index:49},{chainId:1,address:"0x96424e6b5eaafe0c3b36ca82068d574d44be4e3c",symbol:"Curve Gauge crvUSDFRAX-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/Frax",index:50},{chainId:1,address:"0x42144499fd4d017723b3a723953b229e64eb1ffd",symbol:"Curve Gauge crvUSDDAI-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/DAI",index:51},{chainId:1,address:"0x533b5aee744647c20e33653f03676c471bb8e67b",symbol:"Curve Gauge crvUSDMIM-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/MIM",index:52},{chainId:1,address:"0x512a68dd5433563bad526c8c2838c39debc9a756",symbol:"Curve Gauge crvUSDSUSD-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/SUSD",index:53},{chainId:1,address:"0xfc58c946a2d541cfa29ad8c16fc2994323e34458",symbol:"Curve Gauge crvUSDGHO-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/GHO",index:54},{chainId:1,address:"0x71873000399db5fddcd8d953e0e6570a0cb4c50c",symbol:"Curve Gauge crvUSDMAI-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/MAI",index:55},{chainId:1,address:"0x9dc22ca10bb8210c8788827204da091eb6ca04a5",symbol:"Curve Gauge crvUSDXAI-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/XAI",index:56},{chainId:1,address:"0xe39c817fe25ac1a8bd343a74037e3c90b09beeef",symbol:"Curve Gauge crvUSDUZD-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/UZD",index:57},{chainId:1,address:"0xecad6745058377744c09747b2715c0170b5699e5",symbol:"Curve Gauge crvUSDDOLA-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/DOLA",index:58},{chainId:1,address:"0xde14d2b848a7a1373e155cc4db9b649f4be24296",symbol:"Curve Gauge crvUSDGUSD-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD/GUSD",index:59},{chainId:1,address:"0x4e21418095d32d15c6e2b96a9910772613a50d50",symbol:"Curve Gauge frxeth-ng-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: frxETH/WETH",index:61},{chainId:1,address:"0x5010263ac1978297f56048c7d2b02316a3435404",symbol:"Curve Gauge 2BTC-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: tBTC/WBTC",index:62},{chainId:1,address:"0x0e5bdb5afe132d1c6a6c67f6d8eb6133dd607e36",symbol:"Curve Gauge mkcrvUSD-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: mkUSD/crvUSD",index:63},{chainId:1,address:"0x731d19d122d6187cd64c44708dd8665fe8126fa8",symbol:"Curve Gauge crvsDAI-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD-sDAI",index:66},{chainId:1,address:"0x188a85362cc5e245a377294aa270c7758a203918",symbol:"Curve Gauge crvstUSDT-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD-stUSDT",index:67},{chainId:1,address:"0xd32f4be8f777ac27c6aad544457de6d4f17a1bfa",symbol:"Curve Gauge crvSTBT-f",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: crvUSD-STBT",index:68},{chainId:1,address:"0x85d44861d024cb7603ba906f2dc9569fc02083f6",symbol:"Curve Gauge crvUSDCWBTCWETH",decimals:18,name:"Curve Gauge TricryptoUSDC",index:69},{chainId:1,address:"0xf29fff074f5cf755b55fbb3eb10a29203ac91ea2",symbol:"Curve Gauge crvUSDTWBTCWETH",decimals:18,name:"Curve Gauge TricryptoUSDT",index:70},{chainId:1,address:"0x60d3d7ebbc44dc810a743703184f062d00e6db7e",symbol:"Curve Gauge crvCRVUSDTBTCWSTETH",decimals:18,name:"Curve Gauge TricryptoLLAMA",index:71},{chainId:1,address:"0x4fc86cd0f9b650280fa783e3116258e0e0496a2c",symbol:"Curve Gauge crvUSDCWETHINV",decimals:18,name:"Curve Gauge TricryptoINV",index:72},{chainId:1,address:"0x8d867bef70c6733ff25cc0d1caa8aa6c38b24817",symbol:"Curve Gauge crvUSDETHCRV",decimals:18,name:"Curve Gauge TriCRV",index:73},{chainId:1,address:"0x5832c01c465e7c51b22ecb4f02d63081dbed2b28",symbol:"Curve Gauge 3SPool",decimals:18,name:"Curve Gauge sUSD/snxUSD/wUSDA",index:74},{chainId:1,address:"0xfb3fd2825fe128c3aa7576a2b87be19880015cae",symbol:"Curve Gauge AMPHDUP",decimals:18,name:"Curve Gauge WETH/AMPH/wUSDA",index:75},{chainId:1,address:"0xfbb82a8df175ab3ee94eae2fec1c43467d6cf222",symbol:"Curve Gauge AMPHDUP",decimals:18,name:"Curve Gauge AMPH/WETH/wUSDA",index:76},{chainId:1,address:"0x23376482abc1403e24306d6d09da10df7f9c570f",symbol:"Curve Gauge AMPHDUP",decimals:18,name:"Curve Gauge AMPH/wUSDA/WETH",index:77},{chainId:1,address:"0xa6aae326b8901a610db0d25e863b2a1b2f10cd4e",symbol:"Curve Gauge AMPHDUP",decimals:18,name:"Curve Gauge AMPH/wUSDA/WETH",index:78},{chainId:1,address:"0xbb091d9a2ea48f35360420e5bee935663042bbc3",symbol:"Curve Gauge AMPHDUP",decimals:18,name:"Curve Gauge AMPH/wUSDA/WETH",index:79},{chainId:1,address:"0xb901a92f2c385afa0a019e8a307a59a570239ca4",symbol:"Curve Gauge crvUSDETHSILO",decimals:18,name:"Curve Gauge TriSILO",index:80},{chainId:1,address:"0x2b7822e663c856153ea1a36acead03dd3b7c6561",symbol:"Curve Gauge 3AMPH",decimals:18,name:"Curve Gauge 3AMPH",index:81},{chainId:1,address:"0x8c94e9a3b68316fba06ba6666acdfc2dc7b7f623",symbol:"Curve Gauge OSAKETHcrvUSD",decimals:18,name:"Curve Gauge TriOSAK",index:82},{chainId:1,address:"0xea012f5b25fa0d8e46123b85f585d0a5075e96b5",symbol:"Curve Gauge TryLSD",decimals:18,name:"Curve Gauge TryLSD",index:83},{chainId:1,address:"0x33dc66f2808d8df2798e9e02ce15f8658ac6d0f8",symbol:"Curve Gauge triSDT",decimals:18,name:"Curve Gauge triSDT",index:84},{chainId:1,address:"0x2dd2b7e07dd433b758b98a3889a63cbf48ef0d99",symbol:"Curve Gauge triSDT",decimals:18,name:"Curve Gauge triSDT",index:85},{chainId:1,address:"0x5ccde4bec0f4006c3826b51edf0d227d12ea33fa",symbol:"Curve Gauge crvDBRINV",decimals:18,name:"Curve Gauge TriDBR",index:87},{chainId:1,address:"0xab79226e4fbd6d299316c0964be9f417c8f920c9",symbol:"Curve Gauge crvUSDETHLDO",decimals:18,name:"Curve Gauge TriLDO",index:88}];var curveGaugeTokensArbitrum=[{chainId:42161,address:"0xce5f24b7a95e9cba7df4b54e911b4a3dc8cdaf6f",symbol:"Curve Gauge USDC.e/USDT",decimals:18,name:"Curve Gauge Curve.fi USDC/USDT",index:0},{chainId:42161,address:"0xc2b1df84112619d190193e48148000e3990bf627",symbol:"Curve Gauge WBTC/renBTC",decimals:18,name:"Curve Gauge Curve.fi WBTC/renBTC",index:1},{chainId:42161,address:"0x555766f3da968ecbefa690ffd49a2ac02f47aa5f",symbol:"Curve Gauge crv3crypto",decimals:18,name:"Curve Gauge Curve.fi USD-BTC-ETH",index:2},{chainId:42161,address:"0x95285ea6ff14f80a2fd3989a6bab993bd6b5fa13",symbol:"Curve Gauge FRAX/USDC.e",decimals:18,name:"Curve Gauge Curve.fi Factory Plain Pool: FRAXBP",index:4},{chainId:42161,address:"0x098ef55011b6b8c99845128114a9d9159777d697",symbol:"Curve Gauge wstETHCRV",decimals:18,name:"Curve Gauge Curve.fi ETH/wstETH",index:5},{chainId:42161,address:"0x555766f3da968ecbefa690ffd49a2ac02f47aa5f",symbol:"Curve Gauge crv3crypto",decimals:18,name:"Curve Gauge Curve.fi USD-BTC-ETH",index:6},{chainId:42161,address:"0x6339ef8df0c2d3d3e7ee697e241666a916b81587",symbol:"Curve Gauge crvEURSUSD",decimals:18,name:"Curve Gauge Curve EURS-2Crv",index:7}];var curveLPTokens=[{chainId:1,address:"0x6c3f90f043a72fa612cbac8115ee7e52bde6e490",symbol:"Curve LP 3Crv",decimals:18,name:"Curve LP Curve.fi DAI/USDC/USDT",index:0},{chainId:1,address:"0xFd2a8fA60Abd58Efe3EeE34dd494cD491dC14900",symbol:"Curve LP a3CRV",decimals:18,name:"Curve LP Curve.fi aDAI/aUSDC/aUSDT",index:1},{chainId:1,address:"0xaA17A236F2bAdc98DDc0Cf999AbB47D47Fc0A6Cf",symbol:"Curve LP ankrCRV",decimals:18,name:"Curve LP Curve.fi ETH/aETH",index:2},{chainId:1,address:"0x3b3ac5386837dc563660fb6a0937dfaa5924333b",symbol:"Curve LP yDAI+yUSDC+yUSDT+yBUSD",decimals:18,name:"Curve LP Curve.fi yDAI/yUSDC/yUSDT/yBUSD",index:3},{chainId:1,address:"0x845838df265dcd2c412a1dc9e959c7d08537f8a2",symbol:"Curve LP cDAI+cUSDC",decimals:18,name:"Curve LP Curve.fi cDAI/cUSDC",index:4},{chainId:1,address:"0x194eBd173F6cDacE046C53eACcE9B953F28411d1",symbol:"Curve LP eursCRV",decimals:18,name:"Curve LP Curve.fi EURS/sEUR",index:5},{chainId:1,address:"0xb19059ebb43466c323583928285a49f558e572fd",symbol:"Curve LP hCRV",decimals:18,name:"Curve LP Curve.fi hBTC/wBTC",index:6},{chainId:1,address:"0x5282a4eF67D9C33135340fB3289cc1711c13638C",symbol:"Curve LP ib3CRV",decimals:18,name:"Curve LP Curve.fi cyDAI/cyUSDC/cyUSDT",index:7},{chainId:1,address:"0xcee60cFa923170e4f8204AE08B4fA6A3F5656F3a",symbol:"Curve LP linkCRV",decimals:18,name:"Curve LP Curve.fi LINK/sLINK",index:8},{chainId:1,address:"0xd905e2eaebe188fc92179b6350807d8bd91db0d8",symbol:"Curve LP ypaxCrv",decimals:18,name:"Curve LP Curve.fi DAI/USDC/USDT/PAX",index:9},{chainId:1,address:"0x49849c98ae39fff122806c06791fa73784fb3675",symbol:"Curve LP crvRenWBTC",decimals:18,name:"Curve LP Curve.fi renBTC/wBTC",index:10},{chainId:1,address:"0x02d341CcB60fAaf662bC0554d13778015d1b285C",symbol:"Curve LP saCRV",decimals:18,name:"Curve LP Curve.fi aDAI/aSUSD",index:11},{chainId:1,address:"0x075b1bb99792c9e1041ba13afef80c91a1e70fb3",symbol:"Curve LP crvRenWSBTC",decimals:18,name:"Curve LP Curve.fi renBTC/wBTC/sBTC",index:12},{chainId:1,address:"0xa3d87fffce63b53e0d54faa1cc983b7eb0b74a9c",symbol:"Curve LP eCRV",decimals:18,name:"Curve LP Curve.fi ETH/sETH",index:13},{chainId:1,address:"0x06325440D014e39736583c165C2963BA99fAf14E",symbol:"Curve LP steCRV",decimals:18,name:"Curve LP Curve.fi ETH/stETH",index:14},{chainId:1,address:"0xc25a3a3b969415c80451098fa907ec722572917f",symbol:"Curve LP crvPlain3andSUSD",decimals:18,name:"Curve LP Curve.fi DAI/USDC/USDT/sUSD",index:15},{chainId:1,address:"0x9fc689ccada600b6df723d9e47d84d76664a1f23",symbol:"Curve LP cDAI+cUSDC+USDT",decimals:18,name:"Curve LP Curve.fi cDAI/cUSDC/USDT",index:16},{chainId:1,address:"0xdf5e0e81dff6faf3a7e52ba697820c5e32d806a8",symbol:"Curve LP yDAI+yUSDC+yUSDT+yTUSD",decimals:18,name:"Curve LP Curve.fi yDAI/yUSDC/yUSDT/yTUSD",index:17},{chainId:1,address:"0x3a664ab939fd8482048609f652f9a0b0677337b9",symbol:"Curve LP dusd3CRV",decimals:18,name:"Curve LP Curve.fi DUSD/3Crv",index:18},{chainId:1,address:"0xd2967f45c4f384deea880f807be904762a3dea07",symbol:"Curve LP gusd3CRV",decimals:18,name:"Curve LP Curve.fi GUSD/3Crv",index:19},{chainId:1,address:"0x5B5CFE992AdAC0C9D48E05854B2d91C73a003858",symbol:"Curve LP husd3CRV",decimals:18,name:"Curve LP Curve.fi HUSD/3Crv",index:20},{chainId:1,address:"0x6d65b498cb23deaba52db31c93da9bffb340fb8f",symbol:"Curve LP LinkUSD3CRV",decimals:18,name:"Curve LP Curve.fi LinkUSD/3Crv",index:21},{chainId:1,address:"0x1aef73d49dedc4b1778d0706583995958dc862e6",symbol:"Curve LP musd3CRV",decimals:18,name:"Curve LP Curve.fi MUSD/3Crv",index:22},{chainId:1,address:"0xc2ee6b0334c261ed60c72f6054450b61b8f18e35",symbol:"Curve LP rsv3CRV",decimals:18,name:"Curve LP Curve.fi RSV/3Crv",index:23},{chainId:1,address:"0x97e2768e8e73511ca874545dc5ff8067eb19b787",symbol:"Curve LP usdk3CRV",decimals:18,name:"Curve LP Curve.fi USDK/3Crv",index:24},{chainId:1,address:"0x4f3e8f405cf5afc05d68142f3783bdfe13811522",symbol:"Curve LP usdn3CRV",decimals:18,name:"Curve LP Curve.fi USDN/3Crv",index:25},{chainId:1,address:"0x7Eb40E450b9655f4B3cC4259BCC731c63ff55ae6",symbol:"Curve LP usdp3CRV",decimals:18,name:"Curve LP Curve.fi USDP/3Crv",index:26},{chainId:1,address:"0x94e131324b6054c0D789b190b2dAC504e4361b53",symbol:"Curve LP ust3CRV",decimals:18,name:"Curve LP Curve.fi UST/3Crv",index:27},{chainId:1,address:"0x410e3E86ef427e30B9235497143881f717d93c2A",symbol:"Curve LP bBTC/sbtcCRV",decimals:18,name:"Curve LP Curve.fi bBTC/sbtcCRV",index:28},{chainId:1,address:"0x2fE94ea3d5d4a175184081439753DE15AeF9d614",symbol:"Curve LP oBTC/sbtcCRV",decimals:18,name:"Curve LP Curve.fi oBTC/sbtcCRV",index:29},{chainId:1,address:"0xDE5331AC4B3630f94853Ff322B66407e0D6331E8",symbol:"Curve LP pBTC/sbtcCRV",decimals:18,name:"Curve LP Curve.fi pBTC/sbtcCRV",index:30},{chainId:1,address:"0x64eda51d3Ad40D56b9dFc5554E06F94e1Dd786Fd",symbol:"Curve LP tbtc/sbtcCrv",decimals:18,name:"Curve LP Curve.fi tBTC/sbtcCrv",index:31},{chainId:1,address:"0x53a901d48795C58f485cBB38df08FA96a24669D5",symbol:"Curve LP rCRV",decimals:18,name:"Curve LP Curve.fi ETH/rETH",index:36},{chainId:1,address:"0xcA3d75aC011BF5aD07a98d02f18225F9bD9A6BDF",symbol:"Curve LP crvTricrypto",decimals:18,name:"Curve LP Curve.fi USD-BTC-ETH",index:38},{chainId:1,address:"0x6BA5b4e438FA0aAf7C1bD179285aF65d13bD3D90",symbol:"Curve LP RAI3CRV",decimals:18,name:"Curve LP RAI3CRV",index:39},{chainId:1,address:"0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC",symbol:"Curve LP crvFRAX",decimals:18,name:"Curve LP Curve.fi FRAX/USDC",index:44},{chainId:1,address:"0xf43211935C781D5ca1a41d2041F397B8A7366C7A",symbol:"Curve LP frxETHCRV",decimals:18,name:"Curve LP Curve.fi ETH/frxETH",index:45},{chainId:1,address:"0x4DEcE678ceceb27446b35C672dC7d61F30bAD69E",symbol:"Curve LP crvUSDUSDC-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/USDC",index:46},{chainId:1,address:"0x390f3595bCa2Df7d23783dFd126427CCeb997BF4",symbol:"Curve LP crvUSDUSDT-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/USDT",index:47},{chainId:1,address:"0xCa978A0528116DDA3cbA9ACD3e68bc6191CA53D0",symbol:"Curve LP crvUSDUSDP-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/USDP",index:48},{chainId:1,address:"0x34D655069F4cAc1547E4C8cA284FfFF5ad4A8db0",symbol:"Curve LP crvUSDTUSD-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/TUSD",index:49},{chainId:1,address:"0x0CD6f267b2086bea681E922E19D40512511BE538",symbol:"Curve LP crvUSDFRAX-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/Frax",index:50},{chainId:1,address:"0x58B94400bdAd7b9ac8d5335E12eF96E8B4966b4a",symbol:"Curve LP crvUSDDAI-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/DAI",index:51},{chainId:1,address:"0xBe426b0f37c112dd20d5866769c8034171567b31",symbol:"Curve LP crvUSDMIM-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/MIM",index:52},{chainId:1,address:"0x94cC50e4521bD271C1a997a3A4Dc815C2F920b41",symbol:"Curve LP crvUSDSUSD-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/SUSD",index:53},{chainId:1,address:"0x86152dF0a0E321Afb3B0B9C4deb813184F365ADa",symbol:"Curve LP crvUSDGHO-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/GHO",index:54},{chainId:1,address:"0x1982Fe483f4bff067A2183c98fA231423d41E92B",symbol:"Curve LP crvUSDMAI-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/MAI",index:55},{chainId:1,address:"0xA8a02c7D9ada50444F8c658F43Dc440675B21797",symbol:"Curve LP crvUSDXAI-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/XAI",index:56},{chainId:1,address:"0xfC636D819d1a98433402eC9dEC633d864014F28C",symbol:"Curve LP crvUSDUZD-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/UZD",index:57},{chainId:1,address:"0x8272E1A3dBef607C04AA6e5BD3a1A134c8ac063B",symbol:"Curve LP crvUSDDOLA-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/DOLA",index:58},{chainId:1,address:"0xeCDd0cE505da71cd9dE855CD6804BA1e8C7bdB07",symbol:"Curve LP crvUSDGUSD-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/GUSD",index:59},{chainId:1,address:"0xAe9e8c9A548505c9ad22a412354186151363c09e",symbol:"Curve LP crvUSDeUSD-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD/eUSD",index:60},{chainId:1,address:"0x9c3B46C0Ceb5B9e304FCd6D88Fc50f7DD24B31Bc",symbol:"Curve LP frxeth-ng-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: frxETH/WETH",index:61},{chainId:1,address:"0xB7ECB2AA52AA64a717180E030241bC75Cd946726",symbol:"Curve LP 2BTC-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: tBTC/WBTC",index:62},{chainId:1,address:"0x3de254A0f838a844F727fee81040e0FA7884B935",symbol:"Curve LP mkcrvUSD-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: mkUSD/crvUSD",index:63},{chainId:1,address:"0x143B33AF57172E2FBF67F30B3A4d49e7f0199EeC",symbol:"Curve LP crvsDAI-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD<>sDAI",index:64},{chainId:1,address:"0xb7be2211430D8b59BFCBcA029c2f3a2577369A19",symbol:"Curve LP crvstUSDT-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD<>stUSDT",index:65},{chainId:1,address:"0xAcfFeB3DD13Ca770976deB3deaD62D4Eb5cf0ac4",symbol:"Curve LP crvsDAI-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD-sDAI",index:66},{chainId:1,address:"0xB9eC78Bd89d3Ef17537f130CC72750FD4DE85f82",symbol:"Curve LP crvstUSDT-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD-stUSDT",index:67},{chainId:1,address:"0x707EAe1CcFee0B8fef07D3F18EAFD1246762d587",symbol:"Curve LP crvSTBT-f",decimals:18,name:"Curve LP Curve.fi Factory Plain Pool: crvUSD-STBT",index:68},{chainId:1,address:"0x7F86Bf177Dd4F3494b841a37e810A34dD56c829B",symbol:"Curve LP crvUSDCWBTCWETH",decimals:18,name:"Curve LP TricryptoUSDC",index:69},{chainId:1,address:"0xf5f5B97624542D72A9E06f04804Bf81baA15e2B4",symbol:"Curve LP crvUSDTWBTCWETH",decimals:18,name:"Curve LP TricryptoUSDT",index:70},{chainId:1,address:"0x2889302a794dA87fBF1D6Db415C1492194663D13",symbol:"Curve LP crvCRVUSDTBTCWSTETH",decimals:18,name:"Curve LP TricryptoLLAMA",index:71},{chainId:1,address:"0x5426178799ee0a0181A89b4f57eFddfAb49941Ec",symbol:"Curve LP crvUSDCWETHINV",decimals:18,name:"Curve LP TricryptoINV",index:72},{chainId:1,address:"0x4eBdF703948ddCEA3B11f675B4D1Fba9d2414A14",symbol:"Curve LP crvUSDETHCRV",decimals:18,name:"Curve LP TriCRV",index:73},{chainId:1,address:"0x9847a74fB7C3c4362220f616E15b83A58527F7E4",symbol:"Curve LP 3SPool",decimals:18,name:"Curve LP sUSD/snxUSD/wUSDA",index:74},{chainId:1,address:"0xdcafD1914afDBC5788B701F47283CaeEAa5FBAed",symbol:"Curve LP AMPHDUP",decimals:18,name:"Curve LP WETH/AMPH/wUSDA",index:75},{chainId:1,address:"0x05CA1ff6fF45e55906c86Ad0d3FB2EbFaE9E0891",symbol:"Curve LP AMPHDUP",decimals:18,name:"Curve LP AMPH/WETH/wUSDA",index:76},{chainId:1,address:"0x037164C912f9733A0973B18EE339FBeF66cfd2C2",symbol:"Curve LP AMPHDUP",decimals:18,name:"Curve LP AMPH/wUSDA/WETH",index:77},{chainId:1,address:"0x3921e2cb3Ac3bC009Fa4ec5Ea1ee0bc7FA4Be4C1",symbol:"Curve LP AMPHDUP",decimals:18,name:"Curve LP AMPH/wUSDA/WETH",index:78},{chainId:1,address:"0x38AB39c82BE45f660AFa4A74E85dAd4b4aDd0492",symbol:"Curve LP AMPHDUP",decimals:18,name:"Curve LP AMPH/wUSDA/WETH",index:79},{chainId:1,address:"0x86bF09aCB47AB31686bE413d614E9ded3666a1d3",symbol:"Curve LP crvUSDETHSILO",decimals:18,name:"Curve LP TriSILO",index:80},{chainId:1,address:"0x50120e3348287C6d001E455f5b00FeA07A875541",symbol:"Curve LP 3AMPH",decimals:18,name:"Curve LP 3AMPH",index:81},{chainId:1,address:"0x6A62EE3e5c4b412Cd9167D3aFd5E481e1E30715a",symbol:"Curve LP OSAKETHcrvUSD",decimals:18,name:"Curve LP TriOSAK",index:82},{chainId:1,address:"0x2570f1bD5D2735314FC102eb12Fc1aFe9e6E7193",symbol:"Curve LP TryLSD",decimals:18,name:"Curve LP TryLSD",index:83},{chainId:1,address:"0x56aEFfd9935ACabF21543701212d67aD529F7f2e",symbol:"Curve LP triSDT",decimals:18,name:"Curve LP triSDT",index:84},{chainId:1,address:"0x954313005C56b555bdC41B84D6c63B69049d7847",symbol:"Curve LP triSDT",decimals:18,name:"Curve LP triSDT",index:85},{chainId:1,address:"0x1Ac76b6e2926ff475969d22a2258449a4600E006",symbol:"Curve LP AMPHDUP",decimals:18,name:"Curve LP AMPH/WETH/wUSDA",index:86},{chainId:1,address:"0xC7DE47b9Ca2Fc753D6a2F167D8b3e19c6D18b19a",symbol:"Curve LP crvDBRINV",decimals:18,name:"Curve LP TriDBR",index:87},{chainId:1,address:"0x5b3BA844b3859f56524e99Ae54857b36c8Ae3eFE",symbol:"Curve LP crvUSDETHLDO",decimals:18,name:"Curve LP TriLDO",index:88},{chainId:1,address:"0x8e2b641271544300e59d14E27520DEA204056D66",symbol:"Curve LP crvRSReUSD",decimals:18,name:"Curve LP TriRSR",index:89},