// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; contract SLDCOIN is ERC20, ERC20Burnable, Ownable { uint256 public constant TOTAL_SUPPLY = 1_000_000 * 10**18; // 1 Million Tokens uint256 public marketingFee = 5; uint256 public liquidityFee = 5; uint256 public reflectionsFee = 7; // Reduced from 10% to 7% uint256 public holderRewardsFee = 2; uint256 public tradeCooldown = 30; // 30 seconds cooldown per trade mapping(address => bool) private excludedFromFees; mapping(address => uint256) private lastTradeTime; constructor() ERC20("SLDCOIN", "SLD") { _mint(msg.sender, TOTAL_SUPPLY); excludedFromFees[msg.sender] = true; // Exclude owner from fees } function _transfer(address sender, address recipient, uint256 amount) internal override { require(block.timestamp >= lastTradeTime[sender] + tradeCooldown, "Cooldown active, wait before trading again"); if (excludedFromFees[sender] || excludedFromFees[recipient]) { super._transfer(sender, recipient, amount); } else { uint256 marketingAmount = (amount * marketingFee) / 100; uint256 liquidityAmount = (amount * liquidityFee) / 100; uint256 reflectionsAmount = (amount * reflectionsFee) / 100; uint256 holderRewardsAmount = (amount * holderRewardsFee) / 100; uint256 transferAmount = amount - (marketingAmount + liquidityAmount + reflectionsAmount + holderRewardsAmount); super._transfer(sender, owner(), marketingAmount); super._transfer(sender, address(this), liquidityAmount + reflectionsAmount); super._transfer(sender, recipient, transferAmount); } lastTradeTime[sender] = block.timestamp; } function setFees(uint256 _marketing, uint256 _liquidity, uint256 _reflections, uint256 _holderRewards) external onlyOwner { marketingFee = _marketing; liquidityFee = _liquidity; reflectionsFee = _reflections; holderRewardsFee = _holderRewards; } function excludeFromFees(address account, bool excluded) external onlyOwner { excludedFromFees[account] = excluded; } function setCooldown(uint256 _cooldown) external onlyOwner { tradeCooldown = _cooldown; } }

Retiré
0.0000
Détenteurs:
1
Déjà déployé
-
Pas encore libéré:
-
Ordres actifs
-
crée le:
19 Feb 2025
Ordres actifs
-
Période de libération:
- année(s)
Paiement horaire:
-
Déjà déployé
-
Détenteurs:
1
9 999 900.0000
Retiré
0.0000
Vendu sur le marché:
0.0000
Pas encore libéré:
-
Volume d'achat direct:
0
Dernières nouvelles
Le créateur du jeton n'a ajouté aucun post pour l'instant.