Radar hackathon project in progress.
I want to store my mined ORE or LSTs on a hardware wallet, but I want some money to pay for my daily expenses. I don't want to use my hardware wallet every week to swap for USDC and send to my off-ramp.
Paycheck allows you to sign one Tx with your hardware wallet, and set up an interval and amount to swap and send.
This project is divided into three main parts:
- Solana Program (
solana
): Contains the Solana on-chain program. - Bot (
bot
): Contains the bot logic. - Web (
web
): Contains the web frontend.
Additionally, there are two support crates:
- mpl-macros: Contains macros copied from the Metaplex library with dependencies removed.
- whirlpool-state: Contains state definitions from orca-so/whirlpools with the dependencies removed.
- Rust and Cargo
- Solana CLI
- Copy the .env.example file to .env and fill in the required values
cd paycheck
cargo test-sbf
git clone https://github.com/regolith-labs/solana-playground ../solana-playground
Install dioxus CLI
cargo install dioxus
Run the web app
cd web
dx serve --hot-reload
Make sure you have some SOL on your BOT_KEY.
cargo run -p bot