rainlanguage / arb-bot

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

Upgrade arb bot to work with Orderbook V4 #141

Open hardyjosh opened 1 week ago

hardyjosh commented 1 week ago

We are upgrading to Orderbook V4 across the Raindex stack.

We need the arb bot to be compatible.

@rouzwelt pls list here the steps required to get there.

edit:

Starting a task list to track the required changes:

Deployments:

rouzwelt commented 1 week ago

We are upgrading to Orderbook V4 across the Raindex stack.

We need the arb bot to be compatible.

@rouzwelt pls list here the steps required to get there.

steps for updating to any ob version requires only to set up the new ABI for vaultBalance() and as well as any changes with arb contract arb() method abi, as well as upading the values passed to theose methods to correctly match the new ABI

hardyjosh commented 1 week ago

@rouzwelt there is also a new subgraph so the way orders are queried has changed

do we need a new arb contract?

rouzwelt commented 1 week ago

@rouzwelt there is also a new subgraph so the way orders are queried has changed

do we need a new arb contract?

ok so then we nee to update the sg query, and for arb contracts, yes ofc we nees new deployments