Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChainSwapGroupsMap = swapGroupsMap{ chainid.Ethereum: makeEthSwapGroupsSlice( swaptype.HIGH, swaptype.DOG, swaptype.FRAX, swaptype.OHM, ), chainid.Optimism: { swaptype.ETH, swaptype.SYN, }, chainid.BSC: makeBaseSwapGroupsSlice( swaptype.HIGH, swaptype.DOG, swaptype.JUMP, swaptype.NFD, ), chainid.Polygon: makeBaseSwapGroupsSlice( swaptype.DOG, swaptype.NFD, swaptype.OHM, ), chainid.Fantom: makeEthSwapGroupsSlice( swaptype.JUMP, swaptype.OHM, ), chainid.Boba: makeEthSwapGroupsSlice(), chainid.Moonbeam: { swaptype.SYN, swaptype.OHM, swaptype.SOLAR, swaptype.MOVR, swaptype.AVAX, swaptype.FRAX, }, chainid.Moonriver: { swaptype.SYN, swaptype.FRAX, swaptype.OHM, swaptype.MOVR, swaptype.SOLAR, }, chainid.Arbitrum: makeEthSwapGroupsSlice( swaptype.OHM, swaptype.GMX, ), chainid.Avalanche: makeEthSwapGroupsSlice( swaptype.NFD, swaptype.OHM, swaptype.AVAX, swaptype.GMX, ), chainid.Aurora: makeBaseSwapGroupsSlice(), chainid.Harmony: makeEthSwapGroupsSlice( swaptype.FRAX, ), }
View Source
var SwappableTokensByType = chainSwapGroupTokensMap{ chainid.Ethereum: makeSwapGroupTokensMap( &swappools.EthereumPoolSwapToken, nil, swaptype.SYN, swaptype.HIGH, swaptype.DOG, swaptype.FRAX, swaptype.OHM, ), chainid.Optimism: makeSwapGroupTokensMap( nil, &swappools.OptimismETHSwapToken, swaptype.SYN, ), chainid.BSC: makeSwapGroupTokensMap( &swappools.BSCPoolSwapToken, nil, swaptype.SYN, swaptype.HIGH, swaptype.DOG, swaptype.JUMP, swaptype.NFD, ), chainid.Polygon: makeSwapGroupTokensMap( &swappools.PolygonPoolSwapToken, nil, swaptype.SYN, swaptype.DOG, swaptype.NFD, swaptype.OHM, ), chainid.Fantom: makeSwapGroupTokensMap( &swappools.FantomPoolSwapToken, &swappools.FantomETHSwapToken, swaptype.SYN, swaptype.JUMP, swaptype.OHM, ), chainid.Boba: makeSwapGroupTokensMap( &swappools.BobaPoolSwapToken, &swappools.BobaETHSwapToken, swaptype.SYN, ), chainid.Moonbeam: makeSwapGroupTokensMap( nil, nil, swaptype.SYN, swaptype.SOLAR, swaptype.OHM, wMOVR, wAVAX, ), chainid.Moonriver: makeSwapGroupTokensMap( nil, nil, swaptype.FRAX, swaptype.OHM, swaptype.SOLAR, rawMovr, ), chainid.Arbitrum: makeSwapGroupTokensMap( &swappools.ArbitrumPoolSwapToken, &swappools.ArbitrumETHSwapToken, swaptype.SYN, swaptype.OHM, swaptype.GMX, ), chainid.Avalanche: makeSwapGroupTokensMap( &swappools.AvalanchePoolSwapToken, &swappools.AvalancheETHSwapToken, swaptype.SYN, swaptype.NFD, swaptype.OHM, swaptype.GMX, rawAvax, ), chainid.Aurora: makeSwapGroupTokensMap( &swappools.AuroraPoolSwapToken, nil, swaptype.SYN, ), chainid.Harmony: makeSwapGroupTokensMap( &swappools.HarmonyPoolSwapToken, &swappools.HarmonyONEETHSwapToken, swaptype.SYN, swaptype.FRAX, ), }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.