quickflash

Easiest, quickest option to get a flash loan up and running

  USAGE
  
$ liquid-ai quickflash -c ethereum|bsc|avalanche|solana -t
    arb|liquidate|collateral-swap|eipfl|multiasset|custom -a <value> [-m] [-r] [-v <value>]

FLAGS
  -a, --asset=<value>...                                              (required) specify asset
  -c, --chain=(ethereum|bsc|avalanche|solana)                         (required) specify which chain
  -m, --mainnet                                                       specify to run on mainnet
  -r, --redeploy                                                      force contract redeploy (on default, reusing last
                                                                      deployed contract)
  -t, --type=(arb|liquidate|collateral-swap|eipfl|multiasset|custom)  (required) Specify the type of flash loan preset
  -v, --value=<value>                                                 specify value

DESCRIPTION
  Easiest, quickest option to get a flash loan up and running

EXAMPLES
  
$ liquid-ai quickflash --chain avalanche --type arb --asset DAI --asset USDC --value 1000000000000000000
  Paste private key of wallet you want to run quickflash from: ****************************************************************
  {
    contract: {
      address: '0xDD70A6B85bbfA9b8e36e77C0ce9ddBcba2De870A',
      explore: 'https://testnet.snowtrace.io/address/0xDD70A6B85bbfA9b8e36e77C0ce9ddBcba2De870A'
    },
    setTokenAddresses: {
      transactionHash: '0x0a0fd41c649dd8581a07954a352c50eb201e8c5f7f0994a71cf81bab445c8382',
      explore: 'https://testnet.snowtrace.io/tx/0x0a0fd41c649dd8581a07954a352c50eb201e8c5f7f0994a71cf81bab445c8382'
    },
    flashloan: {
      transactionHash: '0x5b489dbda79fb1a7a5d449cf973ee62ce6e3555836a68651b9a65771735ba501',
      explore: 'https://testnet.snowtrace.io/tx/0x5b489dbda79fb1a7a5d449cf973ee62ce6e3555836a68651b9a65771735ba501'
    }
  }
  Flashloan is complete

FLAG DESCRIPTIONS
  -a, --asset=<value>...  

    specify asset

  -c, --chain=(ethereum|bsc|avalanche|solana)

        ethereum: Ethereum
        bsc: Binance Smart Chain
        avalanche: Avalanche
        solana: Solana

  -m, --mainnet  

    specify to run on mainnet

  -r, --redeploy  

    force contract redeploy (on default, reusing last deployed contract)

  -t, --type=(arb|liquidate|collateral-swap|eipfl|multiasset|custom)

        arb: Basic arbitrage flash loan layout
             This will call an iteration of flashloanSimple, which calls makeArbitrage, swapping the
             flashloaned token for another token using one swap router, and then swapping back to the original
             token using another swap router

        liquidate: Basic liquidation flash loan
                   This will call an iteration of flashloanSimple, which calls makeArbitrage, adding the
                   flashloaned tokens as well as tokens within our contract balance as liquidity on a
                   token pair (AKA liquidity pool), and then removing the same amount of liquidity

        collateral-swap: Collateral swap flash loan
        eipfl: EIP-3156 interface flash loan
        multiasset: Multi-asset flash loan
                    This will call an iteration of flashloan, which borrows more than 1 token, which can
                    then be swapped, added as liquidity, etc. as long as all borrowed token amounts are
                    paid back at the end

        custom: Custom logic

  -v, --value=<value>  

    specify value

CONFIG USAGE
  This command behavior affected by following config variables: protocol-aave, protocol-uni, privacy

  For details run
$ liquid-ai config set --help

Last updated