vybenetwork/drifting_bird — explained in plain English
Analysis updated 2026-08-09 · repo last pushed 2024-02-21
Run an automated arbitrage strategy between Drift and Phoenix on Solana to capture funding payments.
Use as a yield-generating component for an Ethena-like stablecoin project on Solana.
Learn how cross-exchange arbitrage and funding rate strategies work on Solana DeFi platforms.
| vybenetwork/drifting_bird | 000madz000/rfid-attendance | 00kaku/gallery-slider-block | |
|---|---|---|---|
| Language | — | TypeScript | JavaScript |
| Last pushed | 2024-02-21 | 2024-07-22 | 2021-05-19 |
| Maintenance | Dormant | Dormant | Dormant |
| Setup difficulty | hard | easy | easy |
| Complexity | 4/5 | 2/5 | 2/5 |
| Audience | developer | developer | general |
Figures from each repo's GitHub metadata at analysis time.
Requires building your own client interface, qualifying for Drift's best fee tier via insurance fund deposit, and likely updating the contract for current Drift and Phoenix versions.
Drifting Bird is a trading bot that tries to make money by exploiting price gaps between two Solana-based trading platforms. It spots moments when the same asset (SOL) is priced differently on Drift (a perpetual futures exchange) and Phoenix (a spot exchange), and places offsetting trades to capture that difference as profit. The bot watches for two scenarios. In the first, it sells perpetual contracts on Drift and buys spot SOL on Phoenix when pricing makes that profitable after fees. This only triggers during periods when holding a short position on Drift earns you funding payments, which is basically other traders paying you to stay in your position. The second scenario flips things around: it buys perpetuals on Drift and sells spot on Phoenix when the perpetual price is lower, and this only activates when holding a long position earns funding. In both cases, the bot checks that the trade would still be profitable after all fees are accounted for. This would appeal to someone already running trading infrastructure on Solana who understands perpetual futures, funding rates, and arbitrage strategies. The README notes that operators need to qualify for the best fee tier on Drift (which requires depositing into their insurance fund) and should be willing to accept small initial losses to enter positions that generate funding income over time. A few things stand out. The project is written as a Rust smart contract with no client interface included, so the operator needs to build that themselves. It was built against Q3 2023 versions of Drift and Phoenix, so it likely needs updates to work with current platform versions. The README is upfront that using this software could result in financial loss and is provided for testing and educational purposes only. The author also mentions interest from teams building Ethena-like stablecoin projects on Solana, suggesting the strategy could serve as a yield-generating component for such systems.
A Solana arbitrage bot that profits from price gaps between Drift perpetuals and Phoenix spot exchanges by placing offsetting trades when funding rates make the strategy profitable after fees.
Dormant — no commits in 2+ years (last push 2024-02-21).
No license information is provided in the repository documentation.
Setup difficulty is rated hard, with roughly 1day+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.