BUSDPlanet is a smart contract project designed to facilitate token transactions and dividend distribution on the Binance Smart Chain (BSC). It includes features such as liquidity management, fee distribution, and dividend tracking.
- Total Supply Management: Ensures the total supply matches the configured value.
- Fee Handling: Supports transactions with wallets excluded or not excluded from fees.
- Liquidity Addition: Allows adding liquidity seamlessly.
- Fee Distribution: Sends fees to designated wallets accurately.
- Swap and Liquify: Automates the process of swapping tokens and adding liquidity.
To test the functionality of the BUSDPlanet smart contract, follow these steps:
- Verify that the total supply matches the configured value.
- Test token transfers to wallets excluded and not excluded from fees.
- Ensure liquidity addition works as expected.
- Check that fees are distributed to the appropriate wallets.
- Confirm that the swap and liquify mechanism operates correctly.
Slither is a static analysis tool for smart contracts. Below is the configuration used for this project:
{
"detectors_to_run": "",
"filter_paths": "contracts/mocks"
}To deploy the BUSDPlanet smart contract, use the deploy.js script located in the scripts/ directory. Ensure you have Hardhat installed and configured.
- contracts/: Contains the smart contract files.
- scripts/: Includes deployment scripts.
- test/: Contains test scripts for validating contract functionality.
- Node.js
- Hardhat
- Slither
- Clone the repository:
git clone <repository-url>
- Install dependencies:
npm install
Run tests to validate the contract:
npx hardhat testAnalyze the contract using Slither:
slither .