https://github.com/byteball/stable-oswap-arb
Arbitrage AA and bot for arbitraging between Ostable and 2 Oswap pools
https://github.com/byteball/stable-oswap-arb
arbitrage arbitrage-bot autonomous-agent autonomous-agents obyte trading trading-bot
Last synced: about 1 month ago
JSON representation
Arbitrage AA and bot for arbitraging between Ostable and 2 Oswap pools
- Host: GitHub
- URL: https://github.com/byteball/stable-oswap-arb
- Owner: byteball
- Created: 2021-08-01T23:30:44.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T16:43:03.000Z (over 1 year ago)
- Last Synced: 2025-04-14T14:17:37.574Z (about 1 month ago)
- Topics: arbitrage, arbitrage-bot, autonomous-agent, autonomous-agents, obyte, trading, trading-bot
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arbitrage AA and bot for arbitraging between Ostable and 2 Oswap pools
This Autonomous Agent seeks opportunities to make profit by trading between [Ostable](https://ostable.org) and 2 [Oswap](https://oswap.io) pools that make a circle, e.g.
* GBYTE -> OUSDV2 on Ostable
* OUSDV2 -> USDC on Oswap
* USDC -> GBYTE on Oswapor the same circle in the opposite direction.
The AA trades only if it gets more GBYTE in the final trade than it sent in the first one.
The companion bot watches the markets and triggers the AA when it sees an arbitrage opportunity.
## Usage
The base AA is already deployed (see its address by opening `arb.oscript` in VS Code with [Oscript plugin](https://marketplace.visualstudio.com/items?itemName=obyte.oscript-vscode-plugin)), deploy your personal arbitrage AA by indicating the following params:
* `owner`: your address.
* `stable_aa`: stable AA address, look it up on the Parameters tap at ostable.org.
* `stable_oswap_aa`: Oswap Pool AA that connects two stablecoins: one from Ostable (O-token such as OUSDV2) and a stablecoin imported from another network (such as USDC) via [Counterstake bridge](https://counterstake.org).
* `reserve_oswap_aa`: Oswap Pool AA that connects the imported stablecoin with the reserve currency (such as GBYTE).Indicate your address in the `owner` field of your conf.json.
Run the bot:
```bash
node run.js stable-oswap-arb 2>errlog
```Add some money to your arb AA and a small amount (for network fees) to the bot's balance.
### Run tests
```bash
yarn test
```