VNT Smart Contracts
Veritas Network Token ยท Secured Vault Minting ยท Presale ยท Charity Airdrop
$VNT ยท ERC-20
Name
Veritas Network Token
Symbol
$VNT
Supply
Unlimited (Timelocked)
Vault
48h Timelock
Vault Security: All large mints require a 48-hour timelock through the vault. Small bot payouts (<10,000 VNT) are instant. The owner wallet should be a Gnosis Safe multisig โ no single person can drain or inflate supply without the timelock + multi-sig approval.
contracts/VeritasNetworkToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
/**
* @title VeritasNetworkToken (VNT)
* @notice Ecosystem token for the Veritas Network โ unlimited mintable supply,
* issued as profit payouts from MEV arbitrage bots.
* @dev - Minting protected by a Timelock Vault (48h delay).
* - Only authorized minters (bot wallets) can queue mints.
* - Owner is a multi-sig (Gnosis Safe recommended).
*/
contract VeritasNetworkToken is ERC20, Ownable, ReentrancyGuard {
// โโโ Timelock Vault โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
uint256 public constant TIMELOCK_DELAY = 48 hours;
struct MintRequest {
address recipient;
uint256 amount;
string reason;
uint256 executeAfter; // block.timestamp + TIMELOCK_DELAY
bool executed;
bool cancelled;
}
mapping(bytes32 => MintRequest) public mintRequests;
bytes32[] public pendingMintIds;
// โโโ Minter Access โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
mapping(address => bool) public authorizedMinters;
// โโโ Stats โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
uint256 public totalMinted;
uint256 public totalBurned;
// โโโ Events โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
event MinterAdded(address indexed minter);
event MinterRemoved(address indexed minter);
event MintQueued(bytes32 indexed id, address recipient, uint256 amount, uint256 executeAfter);
event MintExecuted(bytes32 indexed id, address recipient, uint256 amount, string reason);
event MintCancelled(bytes32 indexed id);
event PayoutMinted(address indexed recipient, uint256 amount, string reason);
// โโโ Constructor โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
constructor(address initialOwner)
ERC20("Veritas Network Token", "VNT")
Ownable(initialOwner)
{
// 1,000,000 VNT initial reserve to owner (no timelock for genesis mint)
_mint(initialOwner, 1_000_000 * 10 ** decimals());
totalMinted += 1_000_000 * 10 ** decimals();
}
// โโโ Minter Management โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
modifier onlyMinter() {
require(
authorizedMinters[msg.sender] || msg.sender == owner(),
"VNT: not an authorized minter"
);
_;
}
function addMinter(address minter) external onlyOwner {
authorizedMinters[minter] = true;
emit MinterAdded(minter);
}
function removeMinter(address minter) external onlyOwner {
authorizedMinters[minter] = false;
emit MinterRemoved(minter);
}
// โโโ Timelock Vault โ Queue a Mint โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/**
* @notice Queue a mint. It can only be EXECUTED after 48 hours.
* This prevents any sudden unlimited supply dumps.
*/
function queueMint(
address recipient,
uint256 amount,
string calldata reason
) external onlyMinter returns (bytes32 id) {
require(recipient != address(0), "VNT: zero address");
require(amount > 0, "VNT: zero amount");
id = keccak256(abi.encodePacked(recipient, amount, reason, block.timestamp));
mintRequests[id] = MintRequest({
recipient: recipient,
amount: amount,
reason: reason,
executeAfter: block.timestamp + TIMELOCK_DELAY,
executed: false,
cancelled: false
});
pendingMintIds.push(id);
emit MintQueued(id, recipient, amount, block.timestamp + TIMELOCK_DELAY);
}
/**
* @notice Execute a queued mint after the timelock has passed.
*/
function executeMint(bytes32 id) external nonReentrant {
MintRequest storage req = mintRequests[id];
require(!req.executed, "VNT: already executed");
require(!req.cancelled, "VNT: cancelled");
require(block.timestamp >= req.executeAfter, "VNT: timelock not expired");
req.executed = true;
_mint(req.recipient, req.amount);
totalMinted += req.amount;
emit MintExecuted(id, req.recipient, req.amount, req.reason);
}
/**
* @notice Owner can cancel any pending mint before it executes.
*/
function cancelMint(bytes32 id) external onlyOwner {
MintRequest storage req = mintRequests[id];
require(!req.executed, "VNT: already executed");
require(!req.cancelled, "VNT: already cancelled");
req.cancelled = true;
emit MintCancelled(id);
}
// โโโ Instant Payout Mint (small amounts, bots only) โโโโโโโโโโโโโโโโโโโโโโ
/**
* @notice For small bot payouts (< 10,000 VNT), skip the timelock.
* Large mints MUST go through the vault.
*/
uint256 public constant INSTANT_MINT_CAP = 10_000 * 10 ** 18;
function mintInstantPayout(
address recipient,
uint256 amount,
string calldata reason
) external onlyMinter nonReentrant {
require(amount <= INSTANT_MINT_CAP, "VNT: exceeds instant cap, use queueMint");
require(recipient != address(0), "VNT: zero address");
_mint(recipient, amount);
totalMinted += amount;
emit PayoutMinted(recipient, amount, reason);
}
/**
* @notice Batch instant payouts โ for daily/weekly profit settlements.
*/
function batchInstantPayout(
address[] calldata recipients,
uint256[] calldata amounts,
string calldata reason
) external onlyMinter nonReentrant {
require(recipients.length == amounts.length, "VNT: length mismatch");
for (uint256 i = 0; i < recipients.length; i++) {
require(amounts[i] <= INSTANT_MINT_CAP, "VNT: amount exceeds cap");
_mint(recipients[i], amounts[i]);
totalMinted += amounts[i];
emit PayoutMinted(recipients[i], amounts[i], reason);
}
}
// โโโ Burn โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function burn(uint256 amount) external {
_burn(msg.sender, amount);
totalBurned += amount;
}
// โโโ View โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function circulatingSupply() external view returns (uint256) {
return totalSupply();
}
function getMintRequest(bytes32 id) external view returns (MintRequest memory) {
return mintRequests[id];
}
}