This bot automates daily interactions with the Plaza Finance platform, including:
- Claiming tokens from the faucet.
- Creating Bond Tokens and Leverage Tokens with random deposit amounts.
- Redeeming 50% of Bond Tokens and Leverage Tokens.
The bot processes multiple wallets sequentially and can be run periodically.
The bot requires Python 3.7 or higher due to its use of asynchronous syntax.
Install the required Python packages:
pip install web3 requests coloramaClone the project from GitHub:
git clone https://github.com/airdropinsiders/plazafinance-auto-bot.git
cd plazafinance-auto-botCreate a file named private_keys.txt in the same directory as the script. This file should contain the private keys for the wallets you want to process, one per line.
Example private_keys.txt:
abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890
1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
Run the script using:
python bot.py- Claims tokens from the Plaza Finance faucet.
- Handles rate-limiting errors gracefully.
- Ensures unlimited approval for wstETH to the Plaza Finance contract.
- Creates Bond Tokens and Leverage Tokens with random deposit amounts between 0.009 and 0.01 ETH.
- Redeems 50% of the balance of Bond Tokens and Leverage Tokens.
- Implements a retry mechanism for failed transactions, retrying up to 5 times with a delay between attempts.
- Provides clear and color-coded logs for each step and transaction status.
The bot processes each wallet in the following sequence:
- Claims faucet tokens.
- Ensures unlimited spending for wstETH.
- Creates Bond Tokens with a random deposit amount.
- Creates Leverage Tokens with a random deposit amount.
- Redeems 50% of Bond Tokens.
- Redeems 50% of Leverage Tokens.
- Waits for 30 seconds before processing the next wallet.
If private_keys.txt is missing, the script will exit with an error message. Ensure the file exists and is populated with valid private keys.
Ensure each wallet has enough ETH for gas fees.
The bot retries failed transactions up to 5 times. Check the logs for detailed error messages.
Rate-limiting or other API errors will be logged. Wait for the specified cooldown period and try again.
- Add support for more token operations.
- Implement additional error-handling and alert mechanisms.
- Allow dynamic configuration of token amounts and retry policies.
This script interacts with decentralized finance (DeFi) platforms and requires private keys for operations. Use at your own risk and ensure you understand the implications of sharing private keys. Always test with small amounts before scaling up operations.