Skip to content

Instantly share code, notes, and snippets.

@skellet0r
Created June 7, 2021 08:42
Show Gist options
  • Save skellet0r/73cf1f1747e889f2e69c642098ec8428 to your computer and use it in GitHub Desktop.
Save skellet0r/73cf1f1747e889f2e69c642098ec8428 to your computer and use it in GitHub Desktop.

Addresses:

  • Wallet: 0x745748bcfd8f9c2de519a71d789be8a63dd7d66c
  • ArbieV3 Contract: 0x5CfB168f03f8185BD21a3d75f6887c6DCD2B1312
  • TriCryptoSwap: 0x80466c64868E1ab14a1Ddf27A676C3fcBE638Fe5
  • Aave Collector Contract: 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c

Aave Docs - Mainnet Deployment Addrs

Preliminary Steps:

  1. ArbieV3 contract is deployed
  2. Script is set to run pointing at the ArbieV3 address

Execution Steps:

  1. Flash loan of USDT is pushed into ArbieV3
  2. USDT is pulled into TriCryptoSwap
  3. WETH is pushed out into ArbieV3
  4. WETH is pulled out of ArbieV3 into USDT/WETH sushiswap pair
  5. USDT is pushed into ArbieV3 from USDT/WETH sushiswap pair
  6. USDT is pushed into Wallet from Arbie (Profit of 80 USDT)
  7. aUSDT is minted into Aave Collector address
  8. Flash loan amount + premium is pulled out of ArbieV3 back into Aave USDT lending pool

Tx Hash: 0x0795e8785dcc4371865d3bd4cf337a2c054b505c5e81b1d07ac7f7106e1864c5

Profit = 80.937832 USDT

Tx Fee = 0.012488049 Ether @ (Ether price: $2,634.23 / ETH)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment