🔗 Source: Libevm - How a below average programmer found his way into searching
TLDR:
- pick you poison
- short-tail: frequent, low margin, very competitive
- long-tail: infrequent, higher margin, less competitive
| # How to install and run WebDollar on Android Linux console | |
| # Requires Android 9 | |
| # Install termux from | |
| # https://play.google.com/store/apps/details?id=com.termux&hl=en_US | |
| # Install AnLinux | |
| # https://play.google.com/store/apps/details?id=exa.lnx.a | |
| # Follow the instructions from AnLinux for Ubuntu installation from AnLinux |
| // SPDX-License-Identifier: MIT | |
| pragma solidity =0.7.6; | |
| pragma abicoder v2; | |
| import "https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/interfaces/ISwapRouter.sol"; | |
| import "https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/interfaces/IQuoter.sol"; | |
| import {IERC20, SafeERC20} from "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/token/ERC20/SafeERC20.sol"; | |
| interface IUniswapRouter is ISwapRouter { |
🔗 Source: Libevm - How a below average programmer found his way into searching
TLDR:
| import numpy as np | |
| import cvxpy as cp | |
| import itertools | |
| # Problem data | |
| global_indices = list(range(4)) | |
| # 0 = TOKEN-0 | |
| # 1 = TOKEN-1 | |
| # 2 = TOKEN-2 |
| // 1. Import everything | |
| import { Wallet, BigNumber, ethers, providers } from 'ethers' | |
| const { FlashbotsBundleProvider, FlashbotsBundleResolution } = require('@flashbots/ethers-provider-bundle') | |
| /* | |
| Mainnet | |
| const provider = new providers.JsonRpcProvider('https://eth-mainnet.g.alchemy.com/v2/cmHEQqWnoliAP0lgTieeUtwHi0KxEOlh') | |
| const wsProvider = new providers.WebSocketProvider('wss://eth-mainnet.g.alchemy.com/v2/cmHEQqWnoliAP0lgTieeUtwHi0KxEOlh') | |
| */ |