Solana DeFi Framework
Components and tools for building DeFi dapps on Solana + Anchor. Public domain license.
Status
Pre-pre-pre-alpha.
Contributing
Any and all contributions are welcome. Open an issue or drop a pull request. Also, feel free to discuss ideas and changes beforehand—I'm @yieldchan on Twitter, yieldchan#1978 on Discord.
Roadmap
- Bank
🔨 - Deposit/withdraw
🔨 - Borrow/lend
🔨
- Deposit/withdraw
- Trading
🔨 - Risk management hooks
🔨 - Settlement
🔨 - Serum Core integration
🔨 - Simple market making bot
🔨 - Simple arbitrage bot
🔨 - Reliable liquidation bot
🔨
- Risk management hooks
- Oracle integration
🔨 - Strategy vaults
🔮 - Airdrop rewards
🔮
Feature requests? @yieldchan on Twitter, yieldchan#1978 on Discord, [email protected].
Building and testing
Local setup
Assumes
- Solana Tool Suite is installed.
- A wallet exists at
~/.config/solana/id.json
.
# Install dependencies.
yarn
# Determine program ID. You'll have to manually update the program IDs in `Anchor.toml` and `programs/solana-defi-framework/src/lib.rs`.
anchor keys list
Lifecycle
anchor build
anchor deploy
# Before running `anchor test`, make sure `solana-test-validator` isn't running.
anchor test