{"repo":"haydenshively/New-Bedford","free":true,"listed":false,"github":"https://github.com/haydenshively/New-Bedford","clone":"git clone https://github.com/haydenshively/New-Bedford.git","description":"Flash swap liquidation bot for compound.finance + flashbots","language":"TypeScript","stars":243,"topics":["web3js","smart-contract","liquidation","ethereum"],"license":null,"category":"blockchain-web3","readme_excerpt":"New Bedford New Bedford is a (massively) upgraded version of Nantucket that some of you are probably familiar with. I'm releasing this now because I don't feel like making upgrades for the new Chainlink oracle setup (and I don't want to pay for bloXroute to backrun the price updates). Despite this lack of compatibility, I hope something in here is useful to someone. Features Solidity - 🦄 Liquidate via Uniswap (v2) flash swaps - Intelligently select between 1 hop vs 2 hop paths based on expected slippage - 🔢 Liquidate multiple accounts at once - 🧮 Compute repay amounts atomically on-chain - ⛽️ Burn CHI to reduce gas costs or use custom CHI-like implementation to avoid extraneous transfer s and emit s - https://github.com/matnad/liquid-gas-token - 🏷 Atomically post prices to Compound's Open Price Feed - This won't work anymore because of Chainlink 😞 - ⛏ Updateable MinerPayer in case Flashbots makes searchers pay a contract - 📦 Adjust % paid to miner at bundle creation time - 🥸 Incognito mode for PGAs - rotate to & from addresses after each successful transaction NOTE: These features are spread across the ethereum-pga and ethereum-flashbots directories. ethereum-flashbots is generally better. TypeScript - Fetch accounts from Compound's API on startup - Subscribe to Compound contract events to stay up-to-date after that - Poll Coinbase Pro API and see if new prices make any account liquidatable - This won't work anymore because of Chainlink 😞 - Keep track of min & max pri","default_branch":null,"files":null,"tree":[],"storefront":"/r/haydenshively","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/haydenshively/New-Bedford/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}