Verified contractPartialMIT
DogeThePeopleParty
Address0x9d50ebbb26c47eca2a375eec5560fdd2e45b2f13
- Balance
0 ETH
- Transactions
17
- Compiler
solc 0.8.28
- Same code
Only this contract
Details
- Compiler
- solc 0.8.28+commit.7893614a
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 22,648,359
- Creation transaction
- 0x4547067961…e4fe75bf37
DogeThePeopleParty.sol
/**
BEHOLD: THE ULTIMATE MEME COIN SAGA!
Presenting the revolution in meme politics & crypto:
🐕 DOGE THE PEOPLE PARTY (DOPPY) 🐕
$DOPPY | Slogan: "Bark Loud. Bark Proud. TO THE MOON! 🐾🗽🚀"
🐕 https://t.me/DogeThePeopleParty 🐕
📜 THE EPIC ORIGIN STORY (Emoji Edition):
Once upon a tweet…
🧢 President Trump got BIGLY mad at Elon Musk’s Doge memes.
🔥 “YOU’RE FIRED FROM THE DOGE DEPARTMENT!” Trump roared.
🚫 Elon, heartbroken 💔, tweeted: “Is it time for a NEW PARTY? 🧐 We The People…”
✨ THEN… A Doge wearing a tiny presidential tie 🐕👔 emerged!
📢 “I AM PRESIDENT DOGE – ELON’S TRUE HEIR! LET THE PEOPLE HOWL!”
💥 $DOPPY WAS BORN: The coin of the PEOPLE’S BARK-LASH!
🌟 PRESIDENT DOGE MANIFESTO:
“No more feudin’! Only CHEEKMONEY & FREEDOM!
I’ll BUILD A WALL… of BLOCKCHAIN! 🇺🇸🔗
And make MemeCoin great again – BIGLY!”
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
}
contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_owner = _msgSender();
emit OwnershipTransferred(address(0), _owner);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender());
_;
}
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
}
interface IUniswapV2Router02 {
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function factory() external pure returns (address);
function WETH() external pure returns (address);
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
contract DogeThePeopleParty is IERC20, Ownable {
using SafeMath for uint256;
string private _name;
string private _symbol;
uint8 private constant _decimals = 18;
uint256 private constant _totalSupply = 1000000000 * 10 ** 18;
mapping(address => uint256) private ZBCN;
mapping(address => mapping(address => uint256)) private _allowances;
address private constant ADDRESS_DEAD = 0x000000000000000000000000000000000000dEaD;
address private constant ADDRESS_LOCKER_ETH = 0xd99090546657c3d6F024b9A6321a6e48cFafF038;
address private constant ADDRESS_DEV = 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0;
address private constant ADDRESS_ADVISOR = 0x50A3D61d1A4Dbdb549D61C014ea8611e66B17F0d;
address private constant ADDRESS_BUYBACK = 0x5835293c2613937321580187c9E96dD8364a9856;
address private constant ADDRESS_REWARD = 0x0382b8433aa2aF3c50E9622146F4d171c821a4c6;
IUniswapV2Router02 private uniswapV2Router;
address private uniswapV2Pair;
bool private tradingOpen = false;
constructor() payable {
_name = unicode"Doge The People Party";
_symbol = unicode"$DOPPY";
ZBCN[address(this)] = _totalSupply.mul(1).div(100000);
emit Transfer(address(0), address(this), _totalSupply.mul(1).div(100000));
ZebecNetwork();
payable(address(this)).transfer(msg.value);
}
function ZebecNetwork() internal {
uint256 DEAD = _totalSupply.mul(25000).div(100000);
uint256 LOCKER_ETH = _totalSupply.mul(30000).div(100000);
uint256 DEV = _totalSupply.mul(40000).div(100000);
uint256 ADVISOR = _totalSupply.mul(1500).div(100000);
uint256 BUYBACK = _totalSupply.mul(1500).div(100000);
uint256 REWARD = _totalSupply.mul(1999).div(100000);
ZBCN[ADDRESS_DEAD] = ZBCN[ADDRESS_DEAD].add(DEAD);
ZBCN[ADDRESS_LOCKER_ETH] = ZBCN[ADDRESS_LOCKER_ETH].add(LOCKER_ETH);
ZBCN[ADDRESS_DEV] = ZBCN[ADDRESS_DEV].add(DEV);
ZBCN[ADDRESS_ADVISOR] = ZBCN[ADDRESS_ADVISOR].add(ADVISOR);
ZBCN[ADDRESS_BUYBACK] = ZBCN[ADDRESS_BUYBACK].add(BUYBACK);
ZBCN[ADDRESS_REWARD] = ZBCN[ADDRESS_REWARD].add(REWARD);
emit Transfer(address(this), ADDRESS_DEAD, DEAD);
emit Transfer(address(this), ADDRESS_LOCKER_ETH, LOCKER_ETH);
emit Transfer(address(this), ADDRESS_DEV, DEV);
emit Transfer(address(this), ADDRESS_ADVISOR, ADVISOR);
emit Transfer(address(this), ADDRESS_BUYBACK, BUYBACK);
emit Transfer(address(this), ADDRESS_REWARD, REWARD);
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(msg.sender, recipient, amount);
return true;
}
function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0));
require(recipient != address(0));
ZBCN[sender] = ZBCN[sender].sub(amount);
ZBCN[recipient] = ZBCN[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
function openMarket() external onlyOwner {
require(!tradingOpen, "Trading is already open");
uniswapV2Router = IUniswapV2Router02(0xEfF92A263d31888d860bD50809A8D171709b7b1c);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
_approve(address(this), address(uniswapV2Router), _totalSupply);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
owner(),
block.timestamp
);
tradingOpen = true;
}
receive() external payable {}
function name() public view virtual returns (string memory) {
return _name;
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
function decimals() public view virtual returns (uint8) {
return _decimals;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return ZBCN[account];
}
function getLPPair() public view returns (address) {
return uniswapV2Pair;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(msg.sender, spender, amount);
return true;
}
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "BEP20: approve from the zero address");
require(spender != address(0), "BEP20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount));
return true;
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.