Address Contract Partially Verified
Address
0xa4Cb3ef5f41a4D89D6FCed22ea8a1C57957629Aa
Balance
0 ETH
Nonce
1
Code Size
7283 bytes
Creator
0x49273B37...6277 at tx 0x350d8924...66d246
Indexed Transactions
0
Contract Bytecode
7283 bytes
0x6080604052600436106102135760003560e01c80639c3b4fdc11610118578063cc274b29116100a0578063e32cf1ef1161006f578063e32cf1ef1461064b578063e71dc3f514610665578063e96fada21461067b578063f2fde38b1461069b578063f887ea40146106bb57600080fd5b8063cc274b29146105a5578063dab84ee7146105c5578063dd62ed3e146105e5578063df1fd2421461062b57600080fd5b8063a8aa1b31116100e7578063a8aa1b31146104fb578063a9059cbb1461052f578063abcd20f41461054f578063adb873bd1461056f578063c17b5b8c1461058557600080fd5b80639c3b4fdc1461048f578063a0d82dc5146104a5578063a457c2d7146104bb578063a4b45c00146104db57600080fd5b8063395093511161019b5780638095d5641161016a5780638095d564146103f05780638da5cb5b146104105780638e0903331461042e578063921369131461044e57806395d89b411461046457600080fd5b8063395093511461036d57806370a082311461038d578063715018a6146103c35780637bce5a04146103da57600080fd5b8063095ea7b3116101e2578063095ea7b3146102d657806318160ddd1461030657806323b872dd1461031b57806328dcd67c1461033b578063313ce5671461035157600080fd5b8063011170381461021f57806303fd2a45146102615780630445b6671461027757806306fdde031461029b57600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b50600f546102449061010090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561026d57600080fd5b5061024461dead81565b34801561028357600080fd5b5061028d600e5481565b604051908152602001610258565b3480156102a757600080fd5b506040805180820190915260098152684d455441525546465960b81b60208201525b60405161025891906118e7565b3480156102e257600080fd5b506102f66102f1366004611951565b6106ef565b6040519015158152602001610258565b34801561031257600080fd5b5060035461028d565b34801561032757600080fd5b506102f661033636600461197d565b610705565b34801561034757600080fd5b5061028d600d5481565b34801561035d57600080fd5b5060405160128152602001610258565b34801561037957600080fd5b506102f6610388366004611951565b6107bb565b34801561039957600080fd5b5061028d6103a83660046119be565b6001600160a01b031660009081526004602052604090205490565b3480156103cf57600080fd5b506103d86107f1565b005b3480156103e657600080fd5b5061028d600a5481565b3480156103fc57600080fd5b506103d861040b3660046119db565b610827565b34801561041c57600080fd5b506000546001600160a01b0316610244565b34801561043a57600080fd5b506103d8610449366004611a1c565b61090b565b34801561045a57600080fd5b5061028d60075481565b34801561047057600080fd5b5060408051808201909152600281526126a960f11b60208201526102c9565b34801561049b57600080fd5b5061028d600b5481565b3480156104b157600080fd5b5061028d60085481565b3480156104c757600080fd5b506102f66104d6366004611951565b610994565b3480156104e757600080fd5b506103d86104f6366004611a51565b610a2f565b34801561050757600080fd5b506102447f000000000000000000000000b5d7e3e9feca6ee5b23a3a5152124f1507b7524a81565b34801561053b57600080fd5b506102f661054a366004611951565b610b63565b34801561055b57600080fd5b506103d861056a366004611a8a565b610b70565b34801561057b57600080fd5b5061028d60095481565b34801561059157600080fd5b506103d86105a03660046119db565b610be2565b3480156105b157600080fd5b506103d86105c0366004611aa5565b610cb7565b3480156105d157600080fd5b50600254610244906001600160a01b031681565b3480156105f157600080fd5b5061028d610600366004611a51565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b34801561063757600080fd5b506103d8610646366004611aa5565b610d16565b34801561065757600080fd5b50600f546102f69060ff1681565b34801561067157600080fd5b5061028d600c5481565b34801561068757600080fd5b50600154610244906001600160a01b031681565b3480156106a757600080fd5b506103d86106b63660046119be565b610dc6565b3480156106c757600080fd5b506102447f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b60006106fc338484610e80565b50600192915050565b6000610712848484610fa4565b6001600160a01b03841660009081526005602090815260408083203384529091529020548281101561079c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6107b085336107ab848761125f565b610e80565b506001949350505050565b3360008181526005602090815260408083206001600160a01b038716845290915281205490916106fc9185906107ab908661126b565b6000546001600160a01b0316331461081b5760405162461bcd60e51b815260040161079390611abe565b6108256000611277565b565b6000546001600160a01b031633146108515760405162461bcd60e51b815260040161079390611abe565b600a61086782610861868661126b565b9061126b565b11156108b55760405162461bcd60e51b815260206004820181905260248201527f4d45544152554646593a204d617820666565206c696d697420657863656564736044820152606401610793565b600a839055600b829055600c81905560408051848152602081018490529081018290527fef771cd1f65ae0d0bb1f243b74153b6559106206e6dbc387e6e219afd8a95cf4906060015b60405180910390a1505050565b6000546001600160a01b031633146109355760405162461bcd60e51b815260040161079390611abe565b6001600160a01b038216600081815260066020908152604091829020805460ff191685151590811790915591519182527f06e9674d1df780f28d6fccac66198e06ae257bd747ef07af7ecb217f7166a2ed910160405180910390a25050565b3360009081526005602090815260408083206001600160a01b038616845290915281205482811015610a165760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610793565b610a2533856107ab848761125f565b5060019392505050565b6000546001600160a01b03163314610a595760405162461bcd60e51b815260040161079390611abe565b6001600160a01b038216610aaf5760405162461bcd60e51b815260206004820152601e60248201527f4d45544152554646593a207a65726f20616464726573732070617373656400006044820152606401610793565b6001600160a01b038116610b055760405162461bcd60e51b815260206004820152601e60248201527f4d45544152554646593a207a65726f20616464726573732070617373656400006044820152606401610793565b600180546001600160a01b03199081166001600160a01b03858116918217909355600280549092169284169283179091556040517f47ec85e81d360aa633283cd807a941b837e1ab4ef05f76bee8ef71f627cd661b90600090a35050565b60006106fc338484610fa4565b6000546001600160a01b03163314610b9a5760405162461bcd60e51b815260040161079390611abe565b600f805460ff19168215159081179091556040519081527f3357fab542929afa10001ef197bee849e5a47be917dc3bd744f1ef85314beef4906020015b60405180910390a150565b6000546001600160a01b03163314610c0c5760405162461bcd60e51b815260040161079390611abe565b600a610c1c82610861868661126b565b1115610c6a5760405162461bcd60e51b815260206004820181905260248201527f4d45544152554646593a204d617820666565206c696d697420657863656564736044820152606401610793565b60078390556008829055600981905560408051848152602081018490529081018290527faaaabdccd2e271f505d88ba07f83d9f2d16e63dac9b7f725cfc8d9e05a33a6e6906060016108fe565b6000546001600160a01b03163314610ce15760405162461bcd60e51b815260040161079390611abe565b600e8190556040518181527f107f3cdcb9d6b2816537f8d1b341c19c683bbf7a2d868f894ff70c89efdf694b90602001610bd7565b6000546001600160a01b03163314610d405760405162461bcd60e51b815260040161079390611abe565b6019811015610d915760405162461bcd60e51b815260206004820152601960248201527f4d61726b6574696e672064697669646572206973206c6f772e000000000000006044820152606401610793565b600d8190556040518181527fd691393d1404b8a776bb5806ced183430eb6fc0a75786af3f5341239cb318a8890602001610bd7565b6000546001600160a01b03163314610df05760405162461bcd60e51b815260040161079390611abe565b6001600160a01b038116610e555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610793565b610e5e81611277565b50565b6000610e6d8284611b09565b9392505050565b6000610e6d8284611b28565b6001600160a01b038316610ee25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610793565b6001600160a01b038216610f435760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610793565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b7f000000000000000000000000b5d7e3e9feca6ee5b23a3a5152124f1507b7524a6001600160a01b0316826001600160a01b0316148015610fef5750600f54600160a81b900460ff16155b15610ffc57610ffc6112c7565b6001600160a01b0383166110605760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610793565b6001600160a01b0382166110c25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610793565b6001600160a01b0383166000908152600460205260409020548181101561113a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610793565b611144818361125f565b6001600160a01b03851660009081526004602052604081209190915561116b8585856112f0565b6001600160a01b038516600090815260046020526040812080549293508392909190611198908490611b4a565b9091555050600f5460ff161561121d57600f5460405163090ec10b60e31b81526001600160a01b03878116600483015286811660248301526044820186905261010090920490911690634876085890606401600060405180830381600087803b15801561120457600080fd5b505af1158015611218573d6000803e3d6000fd5b505050505b836001600160a01b0316856001600160a01b0316600080516020611c1e8339815191528360405161125091815260200190565b60405180910390a35050505050565b6000610e6d8284611b62565b6000610e6d8284611b4a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b30600090815260046020526040902054600e5481106112e8576112e8611628565b610e5e61182b565b6001600160a01b038316600090815260066020526040812054819060ff1615801561133457506001600160a01b03841660009081526006602052604090205460ff16155b15611615577f000000000000000000000000b5d7e3e9feca6ee5b23a3a5152124f1507b7524a6001600160a01b0316856001600160a01b031614156114ac576000611395606461138f600c5487610e6190919063ffffffff16565b90610e74565b905060006113b0600b54600a5461126b90919063ffffffff16565b905060006113c3606461138f8885610e61565b90506113cf838261126b565b9350801561142a5730600090815260046020526040812080548392906113f6908490611b4a565b909155505060405181815230906001600160a01b038a1690600080516020611c1e8339815191529060200160405180910390a35b82156114a45761dead600090815260046020527f42c63635470f1fb1d6d4b6441c413cb435b1ebb6fedd1896dd5e25d1399147dd805485929061146e908490611b4a565b909155505060405183815261dead906001600160a01b038a1690600080516020611c1e8339815191529060200160405180910390a35b505050611615565b7f000000000000000000000000b5d7e3e9feca6ee5b23a3a5152124f1507b7524a6001600160a01b0316846001600160a01b03161415611615576000611502606461138f60095487610e6190919063ffffffff16565b9050600061151d60085460075461126b90919063ffffffff16565b90506000611530606461138f8885610e61565b905061153c838261126b565b93508015611597573060009081526004602052604081208054839290611563908490611b4a565b909155505060405181815230906001600160a01b038a1690600080516020611c1e8339815191529060200160405180910390a35b82156116115761dead600090815260046020527f42c63635470f1fb1d6d4b6441c413cb435b1ebb6fedd1896dd5e25d1399147dd80548592906115db908490611b4a565b909155505060405183815261dead906001600160a01b038a1690600080516020611c1e8339815191529060200160405180910390a35b5050505b61161f838261125f565b95945050505050565b600f805460ff60a81b1916600160a81b179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061167057611670611b79565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156116e957600080fd5b505afa1580156116fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117219190611b8f565b8160018151811061173457611734611b79565b6001600160a01b03909216602092830291909101820152306000818152600490925260409091205461178891907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d90610e80565b30600081815260046020819052604080832054905163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169463791ac947946117e9949092889291429101611bac565b600060405180830381600087803b15801561180357600080fd5b505af1158015611817573d6000803e3d6000fd5b5050600f805460ff60a81b19169055505050565b478015610e5e57600061184e606461138f600d5485610e6190919063ffffffff16565b9050600061185c838361125f565b905081156118a0576001546040516001600160a01b039091169083156108fc029084906000818181858888f1935050505015801561189e573d6000803e3d6000fd5b505b80156118e2576002546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156118e0573d6000803e3d6000fd5b505b505050565b600060208083528351808285015260005b81811015611914578581018301518582016040015282016118f8565b81811115611926576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610e5e57600080fd5b6000806040838503121561196457600080fd5b823561196f8161193c565b946020939093013593505050565b60008060006060848603121561199257600080fd5b833561199d8161193c565b925060208401356119ad8161193c565b929592945050506040919091013590565b6000602082840312156119d057600080fd5b8135610e6d8161193c565b6000806000606084860312156119f057600080fd5b505081359360208301359350604090920135919050565b80358015158114611a1757600080fd5b919050565b60008060408385031215611a2f57600080fd5b8235611a3a8161193c565b9150611a4860208401611a07565b90509250929050565b60008060408385031215611a6457600080fd5b8235611a6f8161193c565b91506020830135611a7f8161193c565b809150509250929050565b600060208284031215611a9c57600080fd5b610e6d82611a07565b600060208284031215611ab757600080fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611b2357611b23611af3565b500290565b600082611b4557634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611b5d57611b5d611af3565b500190565b600082821015611b7457611b74611af3565b500390565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611ba157600080fd5b8151610e6d8161193c565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611bfc5784516001600160a01b031683529383019391830191600101611bd7565b50506001600160a01b0396909616606085015250505060800152939250505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d811f4570df591927e858a5c3a5b67fb402336491334b0e6f2cb698c0734c63b64736f6c63430008090033
Verified Source Code Partial Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: Yes (200 runs)
METARUFFY.sol 828 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
* this contract is made for and by MetaRuffy international FZCO
https://metaruffy.io (Company)
https://www.loobr.com (Cross-Chain Social-Network NFT-Marketplace)
https://ruffyworld.com (Metaverse)
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() external virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) external virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function WETH9() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
interface IPinkAntiBot {
function setTokenOwner(address owner) external;
function onPreTransferCheck(
address from,
address to,
uint256 amount
) external;
}
contract METARUFFY is IERC20, Ownable {
using SafeMath for uint256;
string constant _name = "METARUFFY";
string constant _symbol = "MR";
uint8 constant _decimals = 18;
address constant public DEAD = 0x000000000000000000000000000000000000dEaD;
address public marketingFeeReceiver = 0x0A5E73dF3836677eb7E22Cb782e1CBFdc56DA22a;
address public devFeeReceiver = 0x26F3f79e5777C72De8432E438ADCFb1c799064C9;
uint256 _totalSupply = 300 * 10 ** 9 * (10**_decimals);
mapping(address => uint256) _balances;
mapping(address => mapping(address => uint256)) _allowances;
mapping(address => bool) isFeeExempt;
uint256 public sellMarketingFee = 1;
uint256 public sellDevFee = 1;
uint256 public sellBurnFee = 3;
uint256 public buyMarketingFee = 1;
uint256 public buyDevFee = 1;
uint256 public buyBurnFee = 3;
uint256 public marketingDivider = 50;// parts of eth from tax that wallet will receive
uint256 public swapThreshold = _totalSupply.mul(5).div(10**3);//0.005% of totalsupply
bool public enableAntibot = false;
IPinkAntiBot public pinkAntibot;
IUniswapV2Router02 immutable public router;
address immutable public pair;
bool inSwap;
modifier swapping() {
inSwap = true;
_;
inSwap = false;
}
constructor() {
router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
pair = IUniswapV2Factory(router.factory()).createPair(router.WETH(), address(this));
isFeeExempt[msg.sender] = true;
isFeeExempt[address(this)] = true;
_balances[msg.sender] = _totalSupply;
pinkAntibot = IPinkAntiBot(0xf4f071EB637b64fC78C9eA87DaCE4445D119CA35);
pinkAntibot.setTokenOwner(msg.sender);
emit Transfer(address(0), msg.sender, _totalSupply);
}
receive() external payable {}
function balanceOf(address account) external virtual view override returns(uint256){
return _balances[account];
}
function name() external pure returns(string memory) {
return _name;
}
function symbol() external pure returns(string memory) {
return _symbol;
}
function totalSupply() external virtual view override returns(uint256) {
return _totalSupply;
}
function decimals() external pure returns (uint8) {
return _decimals;
}
function transfer(address recipient, uint256 amount) external virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) external view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) external virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) external virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance.sub(amount));
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue) external virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) external virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance.sub(subtractedValue));
}
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
if(recipient == pair && !inSwap) {
swapAndSendEth();
}
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance.sub(amount);
}
uint256 _finalAmount = _takeFee(sender, recipient, amount);
_balances[recipient] += _finalAmount;
if(enableAntibot) {
pinkAntibot.onPreTransferCheck(sender, recipient, amount);
}
emit Transfer(sender, recipient, _finalAmount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
event ExemptFromFee(address indexed account, bool _exempt);
function exemptFromFee(address account, bool _exempt) external onlyOwner {
isFeeExempt[account] = _exempt;
emit ExemptFromFee(account, _exempt);
}
event UpdateBuyFees(uint256 _marketingFee, uint256 _devFee, uint256 _burnFee);
function updateBuyFees(uint256 _marketingFee, uint256 _devFee, uint256 _burnFee) external onlyOwner {
require(_marketingFee.add(_devFee).add(_burnFee) <= 10, "METARUFFY: Max fee limit exceeds");
buyMarketingFee = _marketingFee;
buyDevFee = _devFee;
buyBurnFee = _burnFee;
emit UpdateBuyFees(_marketingFee, _devFee, _burnFee);
}
event UpdateSellFees(uint256 _marketingFee, uint256 _devFee, uint256 _burnFee);
function updateSellFees(uint256 _marketingFee, uint256 _devFee, uint256 _burnFee) external onlyOwner {
require(_marketingFee.add(_devFee).add(_burnFee) <= 10, "METARUFFY: Max fee limit exceeds");
sellMarketingFee = _marketingFee;
sellDevFee = _devFee;
sellBurnFee = _burnFee;
emit UpdateSellFees(_marketingFee, _devFee, _burnFee);
}
function _takeFee(address from, address to, uint256 amount) internal returns(uint256) {
uint256 _totalFee;
if(!isFeeExempt[from] && !isFeeExempt[to]) {
if(from == pair) {
uint256 _burnFee = amount.mul(buyBurnFee).div(10**2);
uint256 _tProjectFee = buyMarketingFee.add(buyDevFee);
uint256 _feeProject = amount.mul(_tProjectFee).div(10**2);
_totalFee = _burnFee.add(_feeProject);
if(_feeProject > 0) {
_balances[address(this)] += _feeProject;
emit Transfer(from, address(this), _feeProject);
}
if(_burnFee > 0) {
_balances[DEAD] += _burnFee;
emit Transfer(from, DEAD, _burnFee);
}
} else if (to == pair) {
uint256 _burnFee = amount.mul(sellBurnFee).div(10**2);
uint256 _tProjectFee = sellMarketingFee.add(sellDevFee);
uint256 _feeProject = amount.mul(_tProjectFee).div(10**2);
_totalFee = _burnFee.add(_feeProject);
if(_feeProject > 0) {
_balances[address(this)] += _feeProject;
emit Transfer(from, address(this), _feeProject);
}
if(_burnFee > 0) {
_balances[DEAD] += _burnFee;
emit Transfer(from, DEAD, _burnFee);
}
}
}
return amount.sub(_totalFee);
}
event UpdateSwapThreshold(uint256 _threshold);
function updateSwapThreshold(uint256 _threshold) external onlyOwner {
swapThreshold = _threshold;
emit UpdateSwapThreshold(_threshold);
}
function swapBackInEth() internal swapping {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = router.WETH();
_approve(address(this), address(router), _balances[address(this)]);
router.swapExactTokensForETHSupportingFeeOnTransferTokens(
_balances[address(this)],
0,
path,
address(this),
block.timestamp
);
}
event SetFeeReceivers(address indexed _marketingFeeReceiver, address indexed _devFeeReceiver);
function setFeeReceivers(address _marketingFeeReceiver, address _devFeeReceiver) external onlyOwner {
require(_marketingFeeReceiver != address(0), "METARUFFY: zero address passed");
require(_devFeeReceiver != address(0), "METARUFFY: zero address passed");
marketingFeeReceiver = _marketingFeeReceiver;
devFeeReceiver = _devFeeReceiver;
emit SetFeeReceivers(_marketingFeeReceiver, _devFeeReceiver);
}
function swapAndSendEth() internal {
uint256 _balance = _balances[address(this)];
if(_balance >= swapThreshold){
swapBackInEth();
}
sendETHToWallets();
}
function sendETHToWallets() internal {
uint256 balance = address(this).balance;
if(balance > 0) {
uint256 _marketingFee = balance.mul(marketingDivider).div(10**2);
uint256 _devFee = balance.sub(_marketingFee);
if(_marketingFee > 0) {
payable(marketingFeeReceiver).transfer(_marketingFee);
}
if(_devFee > 0) {
payable(devFeeReceiver).transfer(_devFee);
}
}
}
event UpdateEnableAntibot(bool _enable);
function updateEnableAntibot(bool _enable) external onlyOwner {
enableAntibot = _enable;
emit UpdateEnableAntibot(_enable);
}
event UpdateMarketingDevider(uint256 _newPercent);
function updateMarketingDivider(uint256 _newPercent) external onlyOwner {
require(_newPercent >= 25, "Marketing divider is low.");
marketingDivider = _newPercent;
emit UpdateMarketingDevider(_newPercent);
}
}
Read Contract
DEAD 0x03fd2a45 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyBurnFee 0xe71dc3f5 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyMarketingFee 0x7bce5a04 → uint256
decimals 0x313ce567 → uint8
devFeeReceiver 0xdab84ee7 → address
enableAntibot 0xe32cf1ef → bool
marketingDivider 0x28dcd67c → uint256
marketingFeeReceiver 0xe96fada2 → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair 0xa8aa1b31 → address
pinkAntibot 0x01117038 → address
router 0xf887ea40 → address
sellBurnFee 0xadb873bd → uint256
sellDevFee 0xa0d82dc5 → uint256
sellMarketingFee 0x92136913 → uint256
swapThreshold 0x0445b667 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 14 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
exemptFromFee 0x8e090333
address account
bool _exempt
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setFeeReceivers 0xa4b45c00
address _marketingFeeReceiver
address _devFeeReceiver
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _marketingFee
uint256 _devFee
uint256 _burnFee
updateEnableAntibot 0xabcd20f4
bool _enable
updateMarketingDivider 0xdf1fd242
uint256 _newPercent
updateSellFees 0xc17b5b8c
uint256 _marketingFee
uint256 _devFee
uint256 _burnFee
updateSwapThreshold 0xcc274b29
uint256 _threshold
Recent Transactions
No transactions found for this address