Lista de Propuestas

// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract DecreasingToken is ERC20 { uint256 public totalSupplyCap = 10000000000000 * (10 ** decimals()); // Example: 10 billion total supply uint256 public lastBurnTimestamp; // Tracks the last time tokens were burned uint256 public burnAmount = 200 * (10 ** decimals()); // 200 tokens to burn every 15 years uint256 public burnInterval = 15 * 365 days; // 15 years in seconds constructor() ERC20("DecreasingToken", "DCT") { _mint(msg.sender, totalSupplyCap); // Mint the total supply to the contract deployer lastBurnTimestamp = block.timestamp; // Initialize the last burn timestamp } function triggerBurn() public { require(block.timestamp >= lastBurnTimestamp + burnInterval, "Burn interval has not passed yet."); require(totalSupply() >= burnAmount, "Not enough tokens left to burn."); _burn(msg.sender, burnAmount); // Burn the specified amount of tokens lastBurnTimestamp = block.timestamp; // Update the last burn timestamp } function decimals() public view virtual override returns (uint8) { return 18; // Standard ERC-20 decimals } }

Retirado:
0.0000
Propietarios
1
Ya liberado:
-
No liberados aún:
-
Ordenes activas:
-
Creado el:
29 Jan 2025
Ordenes activas:
-
Período de liberación:
- año(s)
Cuota por hora:
-
Ya liberado:
-
Propietarios
1
Saldo del creador
10 000 000.0000
Retirado:
0.0000
Vendido en el mercado:
0.0000
No liberados aún:
-
Volumen de compras directas:
0
Últimas noticias
El creador del token no ha añadido ninguna publicación todavía.