TokenEngineeringCommunity / BalancerPools_Model

cadCAD model to simulate Balancer AMMs
MIT License
54 stars 29 forks source link

Arbitrage Policy #82

Open Ramarti opened 3 years ago

Ramarti commented 3 years ago

Behaviour that will compare external price signal with pool state to find arbitrage gaps, calculate the most profitable trade within set boundaries (transaction_cost, max_liquidity...) and in case it is found, signal _swap_exact_amountin state update.

Current mathematical research doc