PampdaCoin is an ERC20 token implementation built on the Arbitrum blockchain with buy and sell fees. This contract enables users to buy and sell tokens while applying fees specifically to trading activities. All buy and sell fees are burned, contributing to the deflationary nature of the token. Additionally, it allows the owner to update liquidity pools and exception fee wallets.
- Buy and Sell Fees: Buy and sell fees are implemented at a rate of 1% and 3% respectively, calculated in basis points.
- Liquidity Pools: Liquidity pools can be managed by the owner. Tokens transferred to or from liquidity pools will be subjected to the respective buy or sell fee.
- Exception Fee Wallets: Certain wallets can be exempted from fees, allowing for specific exceptions to the fee mechanism.
- Solidity 0.8.25
- OpenZeppelin Contracts v5.0.2 (Ownable, ERC20, ERC20Burnable)
-
Clone the repository:
git clone https://github.com/pampdacoin/contracts.git
-
Install dependencies:
npm install
-
Compile the contracts:
npx hardhat compile
Deploy the PampdaCoin contract to the Ethereum network of your choice. Ensure that you specify the initial owner address during deployment.
- Update Liquidity Pool: Call the
updateLiquidityPoolfunction to update the status of a liquidity pool, specifying the pool address and the new status. - Update Exception Fee Wallet: Use the
updateExceptFeeWalletfunction to update the status of an exception fee wallet by providing the target address and the new status.
This project is licensed under the MIT License.
Please note that this code is provided as-is, without any warranties or guarantees. Use it at your own risk.
Contributions to improve the codebase or add new features are welcome. Feel free to open issues or submit pull requests.
- OpenZeppelin for their comprehensive smart contract libraries.
- Ethereum and the Solidity community for providing the necessary tools and resources.
Created by Pampda Team