Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@Destiner Destiner released this 25 Aug 17:21

Features

  • Store transaction sender in events

API Refactoring

  • Breaking: use Erc20Asset interface for swaps, arbitrages, liquidations, sandwiches, JIT sandwiches, and liquidity deposits/withdrawals. To keep the old behavior, use address field (e.g. arbitrage.swap[0].assetIn -> arbitrage.swap[0].assetIn.address, liquidation.collateral -> liquidation.collateral.address, etc).
  • Breaking: split searcher into sender (transaction sender, EOA) and beneficiary (usually, a transaction target, smart contract). This affects Arbitrage.arbitrager, Liquidation.liquidator, Sandwich.sandwicher, JitSandwich.sandwicher, and NftArbitrage.arbitrager. To keep the old behavior, use beneficiary (e.g. arbitrage.arbitrager -> arbitrage.arbitrager.beneficiary).