rainlanguage / arb-bot

NodeJS app that finds arbitrage trades for Rain orderbook orders against major DeFi platforms liquidity
8 stars 4 forks source link

KPI for arb efficiency #213

Open hardyjosh opened 1 month ago

hardyjosh commented 1 month ago

Per an idea by @thedavidmeister, we believe a decent proxy to track how efficient the bot is by looking at the bounty relative to the size of the trade.

Smaller bounties should mean more efficient.

Edit:

effecieny dashboard has been created on hyperdx: https://www.hyperdx.io/dashboards/66eef48472f83c063402ee21 where it shows % of tx gas cost/total bounty, the charts can show any selected timeframe/granularity

thedavidmeister commented 1 month ago

specifically we should be able to calculate the breakeven for the gas for any arb by looking at the transactions after the fact, and compare it to how much revenue the bot made from that arb

if the revenue is much larger than the breakeven on the arb then it's a good chance that the arb was simply inefficient somehow and the bot could have cleared it more efficiently