Skip to content

Instantly share code, notes, and snippets.

View vinoth-fourchain's full-sized avatar

Vinoth Kumar K vinoth-fourchain

View GitHub Profile
@vinoth-fourchain
vinoth-fourchain / dqcore-remix (1)...contracts...DQ20Reward.sol
Created October 31, 2025 14:51
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.24+commit.e11b9ed9.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
/**
* DQ20Reward – BEP20 Reward Program (Admin Root + Routed Payouts)
* ----------------------------------------------------------------
* What’s included:
* - Admin (deployer) auto-seeded as root user; optional one-time seedRoot() for custom root.
* - Join (activation), sequential Upgrade, Top-up (pkg 15: $500 each).
* - Distribution on each purchase/topup:
@vinoth-fourchain
vinoth-fourchain / dqcore-remix (1)...DQCore.sol
Created October 29, 2025 13:52
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";
contract DQCore is Ownable, Pausable, ReentrancyGuard {
@vinoth-fourchain
vinoth-fourchain / dqcore-remix (1)...DQCore.sol
Created October 29, 2025 13:49
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";
contract DQCore is Ownable, Pausable, ReentrancyGuard {