Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

PBaieck-group/SnipeHead-mining-deprecated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚨 PROJECT SHUTDOWN

The SnipeHead project on PulseChain (including the token, faucet, and mining contracts) is now officially shutting down.

All development has been discontinued.

The repositories will be archived shortly and set to read-only for historical reference only.

Thank you to everyone who supported the project.

Old code and documentation remain available below for transparency.

SnipeHead Mining Decentralized

Contract Addresses

  • SnipeHead: 0x7E5A488756c3FEe54248f97a36dF5B0e9cf27d8d - Main
  • SnipeHeadMining: 0xF5e97b7167Fa1618965f36C08f1263b722FE60Ea - Mainnet
  • SnipeHeadMining: 0x9404f213638f94169F0a6180224E4717CDE6C246 - Testnet

SnipeHead Mining Fallback: https://ipfs.io/ipfs/bafybeigqis32bq5ks45qaxoqh226ylda74cg6espo5nhlcdj74hu5zkdzi/

bafybeigqis32bq5ks45qaxoqh226ylda74cg6espo5nhlcdj74hu5zkdzi

Overview

SnipeHead Mining Decentralized is a smart contract-based mining system for the SnipeHead (SHD) token on the PulseChain blockchain. Users can "mine" by depositing SHD tokens into the contract, earning rewards in additional SHD tokens over time based on a fixed reward rate.

The system is designed to be decentralized, secure, and non-reentrant, leveraging OpenZeppelin libraries for ERC20 handling and permit-based approvals.

The SHD token is an ERC20 token with a total supply of 21,000,000,000 tokens. The mining contract allows users to mine their SHD tokens, accumulate rewards proportional to their mined amount and the time mined, and withdraw (unmine) at any time while claiming accrued rewards.

Key Features:

  • Mining: Deposit SHD tokens using EIP-2612 permit for gas-efficient, approval-free transactions.
  • Rewards: Earn SHD rewards at a fixed rate of approximately 0.000000031771820820 SHD per block per staked SHD.
  • Unmining: Withdraw mined tokens and claim rewards anytime.
  • Claim Rewards: Harvest rewards without unmining.
  • Security: Uses ReentrancyGuard to prevent attacks, and SafeERC20 for secure token transfers.
  • Deployment: Optimized for PulseChain, a high-performance Ethereum fork.

Visit the official portal: https://www.snipehead.xyz

Smart Contracts

  • SnipeHead.sol: The ERC20 token contract for SHD, including permit support.
  • SnipeheadMiningDecentralized.sol: The core mining contract where users deposit SHD to earn rewards.
  • MaliciousContract.sol: A test contract for simulating reentrancy attacks during development.

Reward Mechanism

Rewards are calculated using the formula:

  • Reward per block = (blocks elapsed) × rewardRate × totalMined / 1e18
  • User's share = (user's minedAmount × accRewardPerShare) / 1e18 - user's rewardDebt

License

This project is licensed under the MIT License. See the LICENSE file for details.

Disclaimer

This contract is provided as-is. Interacting with smart contracts involves risk; always verify code and test thoroughly. The SnipeHead project is not responsible for any losses.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors