arbiter
arbiter copied to clipboard
Create SimpleArbitrageur for LiquidExchange <> Portfolio
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.
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
We should just note here too btw, this issue is required to complete task 3 in issue #231