GithubHelp home page GithubHelp logo

yebin-xu / goblinmode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anish-agnihotri/goblinmode

0.0 0.0 0.0 18 KB

Long-tail NFT MEV via NFTX flashloans (McGoblinBurger NFTs)

Solidity 100.00%

goblinmode's Introduction

goblinmode

goblinmode provides a GoblinMode.sol contract to flashloan goblintown NFTs from NFTX to claim a McGoblinBurger NFT.

Each claimed McGoblinBurger NFT costs [0.06 * cost(goblintown)] + gas, which is fairly cost effective given historic distributions between tokens like BAYC & MAYC.

This mint presents a unique opportunity, where:

  • There is significant NFTX liquidity for the flashloaned NFT (61+ NFTs at time of writing)
  • There is reasonably deep vToken liquidity in the SushiSwap pool
  • There are low flash loan fees (6%/NFT) (not hiked up like usually done before popular derivative mints)
  • There are enough NFTs in the NFTX pool to make it difficult to claim all derivative NFTs in one block
  • The mint contracts are not known ahead of time (unknown function selector), significantly removing Flashbots pressure + levelling playing field

Test

Tests use Foundry: Forge.

Install Foundry using the installation steps in the README of the linked repo.

# Get dependencies
forge update

# Run tests against mainnet fork
forge test --fork-url=YOUR_MAINNET_RPC_URL -vvvv

Disclaimer

These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. Anish Agnihotri is not liable for any of the foregoing. Users should proceed with caution and use at their own risk.

goblinmode's People

Contributors

anish-agnihotri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.