Skip to content

Commit

Permalink
Deepbook MEV bot example (MystenLabs#13293)
Browse files Browse the repository at this point in the history
## Description 

Describe the changes or additions included in this PR.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

---------

Co-authored-by: Randall-Mysten <[email protected]>
  • Loading branch information
patrickkuo and randall-Mysten authored Aug 17, 2023
1 parent b7dcdec commit 587b69a
Show file tree
Hide file tree
Showing 6 changed files with 1,038 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/mev_bot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Example - Use a MEV bot to Clear Expired DeepBook Orders

## Overview

This example shows how to use a MEV bot to clear expired DeepBook orders. The bot scans DeepBook pools for expired orders and cancels them. The example bot uses the Sui TS SDK to interact with the Sui Full node and retrieve on chain DeepBook data.

## How to run
```bash
pnpm start
```
Loading

0 comments on commit 587b69a

Please sign in to comment.