arbiter icon indicating copy to clipboard operation
arbiter copied to clipboard

Create SimpleArbitrageur for LiquidExchange <> Portfolio

Open Autoparallel opened this issue 3 years ago • 2 comments

In the portfolio_sim.rs we need an arbitrageur that is going to properly arb the pools with the correct arb amounts.

  • [ ] Given a target price and the current pool price, compute the arbitrage amount.
  • [ ] Use the auto-deployed math scripts for this.

Autoparallel avatar May 06 '23 23:05 Autoparallel

We can use this repo as a reference. Specifically arbAmount method in each CFMM class is what we need to compute the swap amount, and referenceArbitrage class in Arbitrage.py is the loop that runs each sim step testing and executing arbitrage

FiberedSkies avatar May 09 '23 07:05 FiberedSkies

We should just note here too btw, this issue is required to complete task 3 in issue #231

FiberedSkies avatar May 09 '23 07:05 FiberedSkies