A sophisticated automation bot for interacting with the OpenFi testnet protocol, designed to perform various DeFi operations including supplying assets, borrowing tokens, and claiming faucet tokens.
- � Multi-Wallet Support: Process multiple wallets simultaneously
- 🛡 Proxy Integration: Supports HTTP/HTTPS/SOCKS proxies for anonymity
- 💰 PHRS Operations: Deposit and manage PHRS tokens
- 🚰 Faucet Minting: Mint testnet tokens from the faucet
- 🔄 Token Management: Supply, borrow, and withdraw various ERC20 tokens
- ⚙️ Configurable: Customize transaction counts and amounts
- Node.js (v18 or higher)
- npm or yarn
- Private keys for wallets you want to use
- (Optional) Proxy list for anonymity
- Clone the repository:
git clone https://github.com/vikitoshi/OpenFi-Auto-Bot.git
cd OpenFi-Auto-Bot
- Install dependencies:
npm install
- Create a
.env
file in the project root and add your private keys:
PRIVATE_KEY_1=your_private_key_here
PRIVATE_KEY_2=your_second_private_key_here
# Add as many keys as needed
- (Optional) Add proxies to
proxies.txt
(one per line):
http://user:pass@proxyip:port
socks5://user:pass@proxyip:port
Run the bot:
node index.js
The bot will present a menu with the following options:
- Supply PHRS - Deposit PHRS tokens to the lending pool
- Mint Faucet Tokens - Claim testnet tokens from the faucet
- Supply ERC20 Tokens - Deposit supported ERC20 tokens
- Borrow Tokens - Borrow assets from the lending pool
- Withdraw Tokens - Withdraw supplied tokens
- Exit - Quit the bot
Follow the on-screen prompts to configure each operation.
The bot supports the following testnet tokens:
- NVIDIA
- USDT
- USDC
- GOLD
- TSLA
- BTC
You can modify the following constants in the code:
NETWORK_CONFIG
: RPC URL, chain ID, and explorerCONTRACTS
: Contract addresses for the protocol- Transaction delays and gas limits
- Never share your private keys
- This is for testnet use only
- The bot comes with no warranties
- Use at your own risk
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.