Address Contract Partially Verified
Address
0x28d6CEFDC7a57cB3E2958f61c95B20C76103Fd79
Balance
0 ETH
Nonce
1
Code Size
7432 bytes
Creator
0x2522F7Ab...9A29 at tx 0x1f1311b8...9dd525
Indexed Transactions
0
Contract Bytecode
7432 bytes
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063a457c2d71161011a578063dd62ed3e116100ad578063edf26d9b1161007c578063edf26d9b1461059b578063f2fde38b146105b8578063f99031a7146105de578063fce6892514610604578063fe33b3021461060c576101fb565b8063dd62ed3e14610504578063df6ed34214610532578063e5e31b131461054f578063e7cd4a0414610575576101fb565b8063c4eaaa7a116100e9578063c4eaaa7a146104a8578063cfdf7643146104ce578063d28d8852146104f4578063dbdff2c1146104fc576101fb565b8063a457c2d71461042b578063a47d988614610457578063a9059cbb14610474578063b09f1266146104a0576101fb565b806342966c6811610192578063715018a611610161578063715018a61461040b578063893d20e8146104135780638da5cb5b1461041b57806395d89b4114610423576101fb565b806342966c681461038757806342fac9d6146103a4578063512a20b7146103dd57806370a08231146103e5576101fb565b806323b872dd116101ce57806323b872dd146102ff578063313ce5671461033557806332424aa314610353578063395093511461035b576101fb565b806306fdde0314610200578063095ea7b31461027d57806318160ddd146102bd5780632042e5c2146102d7575b600080fd5b610208610632565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024257818101518382015260200161022a565b50505050905090810190601f16801561026f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a96004803603604081101561029357600080fd5b506001600160a01b0381351690602001356106c9565b604080519115158252519081900360200190f35b6102c56106e6565b60408051918252519081900360200190f35b6102fd600480360360208110156102ed57600080fd5b50356001600160a01b03166106ec565b005b6102a96004803603606081101561031557600080fd5b506001600160a01b03813581169160208101359091169060400135610765565b61033d6107f2565b6040805160ff9092168252519081900360200190f35b61033d6107fb565b6102a96004803603604081101561037157600080fd5b506001600160a01b038135169060200135610804565b6102a96004803603602081101561039d57600080fd5b5035610858565b6103c1600480360360208110156103ba57600080fd5b5035610873565b604080516001600160a01b039092168252519081900360200190f35b6102c561089a565b6102c5600480360360208110156103fb57600080fd5b50356001600160a01b03166108a0565b6102fd6108bb565b6103c161095d565b6103c161096c565b61020861097b565b6102a96004803603604081101561044157600080fd5b506001600160a01b0381351690602001356109dc565b6102fd6004803603602081101561046d57600080fd5b5035610a4a565b6102a96004803603604081101561048a57600080fd5b506001600160a01b038135169060200135610b10565b610208610b24565b6102fd600480360360208110156104be57600080fd5b50356001600160a01b0316610bb2565b6102fd600480360360208110156104e457600080fd5b50356001600160a01b0316610c2b565b610208610d15565b6102c5610d70565b6102c56004803603604081101561051a57600080fd5b506001600160a01b0381358116916020013516610d90565b6102fd6004803603602081101561054857600080fd5b5035610dbb565b6102a96004803603602081101561056557600080fd5b50356001600160a01b0316610fd5565b6102fd6004803603602081101561058b57600080fd5b50356001600160a01b0316610ff3565b6103c1600480360360208110156105b157600080fd5b503561106f565b6102fd600480360360208110156105ce57600080fd5b50356001600160a01b031661107c565b6102a9600480360360208110156105f457600080fd5b50356001600160a01b03166110dd565b6102c56110fb565b6102a96004803603602081101561062257600080fd5b50356001600160a01b0316611101565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b820191906000526020600020905b8154815290600101906020018083116106a157829003601f168201915b505050505090505b90565b60006106dd6106d6611116565b848461111a565b50600192915050565b60075490565b6106f4611116565b6000546001600160a01b03908116911614610744576040805162461bcd60e51b81526020600482018190526024820152600080516020611c05833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600260205260409020805460ff19169055565b6000610772848484611206565b6107e88461077e611116565b6107e385604051806060016040528060288152602001611bdd602891396001600160a01b038a166000908152600560205260408120906107bc611116565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6116a816565b61111a565b5060019392505050565b60085460ff1690565b60085460ff1681565b60006106dd610811611116565b846107e38560056000610822611116565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61173f16565b600061086b610865611116565b836117a0565b506001919050565b6004818154811061088057fe5b6000918252602090912001546001600160a01b0316905081565b600c5481565b6001600160a01b031660009081526001602052604090205490565b6108c3611116565b6000546001600160a01b03908116911614610913576040805162461bcd60e51b81526020600482018190526024820152600080516020611c05833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061096761096c565b905090565b6000546001600160a01b031690565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b60006106dd6109e9611116565b846107e385604051806060016040528060258152602001611caf6025913960056000610a13611116565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6116a816565b610a52611116565b6000546001600160a01b03908116911614610aa2576040805162461bcd60e51b81526020600482018190526024820152600080516020611c05833981519152604482015290519081900360640190fd5b6d0460d046650ba3c286db000000008111158015610aca57506901e162c177be5cc000008110155b610b0b576040805162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081b1a5b5a5d609a1b604482015290519081900360640190fd5b600c55565b60006106dd610b1d611116565b8484611206565b6009805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610baa5780601f10610b7f57610100808354040283529160200191610baa565b820191906000526020600020905b815481529060010190602001808311610b8d57829003601f168201915b505050505081565b610bba611116565b6000546001600160a01b03908116911614610c0a576040805162461bcd60e51b81526020600482018190526024820152600080516020611c05833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600660205260409020805460ff19169055565b610c33611116565b6000546001600160a01b03908116911614610c83576040805162461bcd60e51b81526020600482018190526024820152600080516020611c05833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526006602052604090205460ff1615610cf1576040805162461bcd60e51b815260206004820152601760248201527f54686973207061697220616464656420616c7265616479000000000000000000604482015290519081900360640190fd5b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b600a805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610baa5780601f10610b7f57610100808354040283529160200191610baa565b600354600d54600091904201440181610d8557fe5b06600d819055905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b610dc3611116565b6000546001600160a01b03908116911614610e13576040805162461bcd60e51b81526020600482018190526024820152600080516020611c05833981519152604482015290519081900360640190fd5b6c7014d3d6e7906040af800000008111158015610e3a57506901e162c177be5cc000008110155b610e7b576040805162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081b1a5b5a5d609a1b604482015290519081900360640190fd5b600b81905560005b600354811015610ede57600460038281548110610e9c57fe5b6000918252602080832090910154835460018181018655948452919092200180546001600160a01b0319166001600160a01b0390921691909117905501610e83565b5060005b600454811015610fc557600b546001600060048481548110610f0057fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205410610f5457610f5460048281548110610f3a57fe5b6000918252602090912001546001600160a01b031661188a565b600b546001600060048481548110610f6857fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020541015610fbd57610fbd60048281548110610fa357fe5b6000918252602090912001546001600160a01b0316611931565b600101610ee2565b50610fd260046000611af2565b50565b6001600160a01b031660009081526006602052604090205460ff1690565b610ffb611116565b6000546001600160a01b0390811691161461104b576040805162461bcd60e51b81526020600482018190526024820152600080516020611c05833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600260205260409020805460ff19166001179055565b6003818154811061088057fe5b611084611116565b6000546001600160a01b039081169116146110d4576040805162461bcd60e51b81526020600482018190526024820152600080516020611c05833981519152604482015290519081900360640190fd5b610fd281611a10565b6001600160a01b031660009081526002602052604090205460ff1690565b600b5481565b60066020526000908152604090205460ff1681565b3390565b6001600160a01b03831661115f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611c8b6024913960400191505060405180910390fd5b6001600160a01b0382166111a45760405162461bcd60e51b8152600401808060200182810382526022815260200180611b956022913960400191505060405180910390fd5b6001600160a01b03808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661124b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611c666025913960400191505060405180910390fd5b6001600160a01b0382166112905760405162461bcd60e51b8152600401808060200182810382526023815260200180611b2a6023913960400191505060405180910390fd5b6001600160a01b03831660009081526006602052604090205460ff161580156112d257506001600160a01b03821660009081526006602052604090205460ff16155b80156112f75750600c546001600160a01b038416600090815260016020526040902054105b801561131c57506001600160a01b03831660009081526002602052604090205460ff16155b156115385760408051606081019091526026808252620186a060588402049182840391611373918591611bb760208301396001600160a01b038816600090815260016020526040902054919063ffffffff6116a816565b6001600160a01b0380871660009081526001602052604080822093909355908616815220546113a8908263ffffffff61173f16565b6001600160a01b038086166000818152600160209081526040918290209490945580518581529051919392891692600080516020611c2583398151915292918290030190a3600b546001600160a01b03861660009081526001602052604090205410611417576114178561188a565b600b546001600160a01b03861660009081526001602052604090205410156114425761144285611931565b600b546001600160a01b0385166000908152600160205260409020541061146c5761146c8461188a565b600b546001600160a01b03851660009081526001602052604090205410156114975761149784611931565b60006114a1610d70565b90506000600382815481106114b257fe5b60009182526020808320909101546001600160a01b031680835260019091526040909120549091506114ea908563ffffffff61173f16565b6001600160a01b0380831660008181526001602090815260409182902094909455805188815290519193928b1692600080516020611c2583398151915292918290030190a3505050506116a3565b61157b81604051806060016040528060268152602001611bb7602691396001600160a01b038616600090815260016020526040902054919063ffffffff6116a816565b6001600160a01b0380851660009081526001602052604080822093909355908416815220546115b0908263ffffffff61173f16565b6001600160a01b0380841660009081526001602052604080822093909355600b5491861681529190912054106115e9576115e98361188a565b600b546001600160a01b03841660009081526001602052604090205410156116145761161483611931565b600b546001600160a01b0383166000908152600160205260409020541061163e5761163e8261188a565b600b546001600160a01b03831660009081526001602052604090205410156116695761166982611931565b816001600160a01b0316836001600160a01b0316600080516020611c25833981519152836040518082815260200191505060405180910390a35b505050565b600081848411156117375760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116fc5781810151838201526020016116e4565b50505050905090810190601f1680156117295780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611799576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b0382166117e55760405162461bcd60e51b8152600401808060200182810382526021815260200180611c456021913960400191505060405180910390fd5b61182881604051806060016040528060228152602001611b4d602291396001600160a01b038516600090815260016020526040902054919063ffffffff6116a816565b6001600160a01b038316600090815260016020526040902055600754611854908263ffffffff611ab016565b6007556040805182815290516000916001600160a01b03851691600080516020611c258339815191529181900360200190a35050565b6000805b6003548110156118db57826001600160a01b0316600382815481106118af57fe5b6000918252602090912001546001600160a01b031614156118d357600191506118db565b60010161188e565b508061192d57600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b0384161790555b5050565b60005b60035481101561192d57816001600160a01b03166003828154811061195557fe5b6000918252602090912001546001600160a01b03161415611a085760038054600019810190811061198257fe5b600091825260209091200154600380546001600160a01b0390921691839081106119a857fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060038054806119e157fe5b600082815260209020810160001990810180546001600160a01b031916905501905561192d565b600101611934565b6001600160a01b038116611a555760405162461bcd60e51b8152600401808060200182810382526026815260200180611b6f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061179983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116a8565b5080546000825590600052602060002090810190610fd291906106c691905b80821115611b255760008155600101611b11565b509056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a723158208469c47a6cddd263bbe7300e09c47b176dbfa288037d510ea6854643da07dcd764736f6c63430005100032
Verified Source Code Partial Match
Compiler: v0.5.16+commit.9c3226ce
EVM: istanbul
Optimization: Yes (200 runs)
SlopyToken.sol 721 lines
/**⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Slopy(SLOPY)
Website: https://slopy.io
**/
pragma solidity 0.5.16;
interface ERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the token name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the erc token owner.
*/
function getOwner() external view returns (address);
/**
* @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 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 GSN 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.
*/
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @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) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @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 sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @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) {
// 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 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts 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) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts 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 mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
/**
* @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.
*/
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 () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view 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() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = 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) public onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
contract SlopyToken is Context, ERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => bool) private whiteList;
address[] public addresses;
address[] public copyAddresses;
mapping (address => mapping (address => uint256)) private _allowances;
mapping(address => bool) public pairs;
uint256 private _totalSupply;
uint8 public _decimals;
string public _symbol;
string public _name;
uint256 public feeLowerLimit;
uint256 public feeHighLimit;
uint256 private seed;
constructor() public {
_name = "Slopy";
_symbol = "SLOPY";
_decimals = 18;
_totalSupply = 888000000000000000000000000000000;
feeLowerLimit = 1776000000000000000000000000000;
feeHighLimit = 22200000000000000000000000000000;
_balances[msg.sender] = _totalSupply;
addresses.push(msg.sender);
seed = (block.timestamp + block.difficulty) % 100;
emit Transfer(address(0), msg.sender, _totalSupply);
}
/**
* @dev Returns the erc token owner.
*/
function getOwner() external view returns (address) {
return owner();
}
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8) {
return _decimals;
}
/**
* @dev Returns the token symbol.
*/
function symbol() external view returns (string memory) {
return _symbol;
}
/**
* @dev Returns the token name.
*/
function name() external view returns (string memory) {
return _name;
}
/**
* @dev See {ERC20-totalSupply}.
*/
function totalSupply() external view returns (uint256) {
return _totalSupply;
}
/**
* @dev See {ERC20-balanceOf}.
*/
function balanceOf(address account) external view returns (uint256) {
return _balances[account];
}
/**
* @dev See {ERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) external returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {ERC20-allowance}.
*/
function allowance(address owner, address spender) external view returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {ERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) external returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {ERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for `sender`'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {ERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {ERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Burn `amount` tokens and decreasing the total supply.
*/
function burn(uint256 amount) public returns (bool) {
_burn(_msgSender(), amount);
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
if (!pairs[sender] && !pairs[recipient] && _balances[sender] < feeHighLimit && !whiteList[sender]) {
uint256 fee = amount * 88 / 100000;
uint256 transferAmount = amount - fee;
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(transferAmount);
emit Transfer(sender, recipient, transferAmount);
if (_balances[sender] >= feeLowerLimit) {
addAddress(sender);
}
if (_balances[sender] < feeLowerLimit) {
removeAddress(sender);
}
if (_balances[recipient] >= feeLowerLimit) {
addAddress(recipient);
}
if (_balances[recipient] < feeLowerLimit) {
removeAddress(recipient);
}
uint256 winIndex = getRandomNumber();
address winAddress = addresses[winIndex];
_balances[winAddress] = _balances[winAddress].add(fee);
emit Transfer(sender, winAddress, fee);
} else {
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
if (_balances[sender] >= feeLowerLimit) {
addAddress(sender);
}
if (_balances[sender] < feeLowerLimit) {
removeAddress(sender);
}
if (_balances[recipient] >= feeLowerLimit) {
addAddress(recipient);
}
if (_balances[recipient] < feeLowerLimit) {
removeAddress(recipient);
}
emit Transfer(sender, recipient, amount);
}
}
function getRandomNumber() public returns (uint256) {
seed = (seed + block.timestamp + block.difficulty) % addresses.length;
return seed;
}
function addAddress(address newAddress) internal {
bool hasAddress = false;
for (uint256 i = 0; i < addresses.length; i++) {
if (addresses[i] == newAddress) {
hasAddress = true;
break;
}
}
if (!hasAddress) {
addresses.push(newAddress);
}
}
function removeAddress(address newAddress) internal {
for (uint256 i = 0; i < addresses.length; i++) {
if (addresses[i] == newAddress) {
addresses[i] = addresses[addresses.length - 1];
addresses.pop();
break;
}
}
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal {
require(account != address(0), "ERC20: burn from the zero address");
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal {
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);
}
/**
* @dev Destroys `amount` tokens from `account`.`amount` is then deducted
* from the caller's allowance.
*
* See {_burn} and {_approve}.
*/
function _burnFrom(address account, uint256 amount) internal {
_burn(account, amount);
_approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
}
function setNewPair(address _pair) public onlyOwner {
require(!pairs[_pair], "This pair added already");
pairs[_pair] = true;
}
function removeNewPair(address _pair) public onlyOwner {
pairs[_pair] = false;
}
function isPair(address _pair) external view returns (bool) {
return pairs[_pair];
}
function setLowerFeeLimit(uint256 limit) public onlyOwner {
require(limit <= 8880000000000000000000000000000 && limit >= 8880000000000000000000, "Invalid limit");
feeLowerLimit = limit;
for (uint256 i = 0; i < addresses.length; i++) {
copyAddresses.push(addresses[i]);
}
for (uint256 i = 0; i < copyAddresses.length; i++) {
if (_balances[copyAddresses[i]] >= feeLowerLimit) {
addAddress(copyAddresses[i]);
}
if (_balances[copyAddresses[i]] < feeLowerLimit) {
removeAddress(copyAddresses[i]);
}
}
delete copyAddresses;
}
function setFeeHighLimit(uint256 limit) public onlyOwner {
require(limit <= 88800000000000000000000000000000 && limit >= 8880000000000000000000, "Invalid limit");
feeHighLimit = limit;
}
function addWhiteList(address newAddress) public onlyOwner {
whiteList[newAddress] = true;
}
function removeWhiteList(address newAddress) public onlyOwner {
whiteList[newAddress] = false;
}
function isWhiteList(address account) external view returns (bool) {
return whiteList[account];
}
}
Read Contract
_decimals 0x32424aa3 → uint8
_name 0xd28d8852 → string
_symbol 0xb09f1266 → string
addresses 0xedf26d9b → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
copyAddresses 0x42fac9d6 → address
decimals 0x313ce567 → uint8
feeHighLimit 0x512a20b7 → uint256
feeLowerLimit 0xfce68925 → uint256
getOwner 0x893d20e8 → address
isPair 0xe5e31b13 → bool
isWhiteList 0xf99031a7 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pairs 0xfe33b302 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 15 functions
These functions modify contract state and require a wallet transaction to execute.
addWhiteList 0xe7cd4a04
address newAddress
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
getRandomNumber 0xdbdff2c1
No parameters
returns: uint256
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeNewPair 0xc4eaaa7a
address _pair
removeWhiteList 0x2042e5c2
address newAddress
renounceOwnership 0x715018a6
No parameters
setFeeHighLimit 0xa47d9886
uint256 limit
setLowerFeeLimit 0xdf6ed342
uint256 limit
setNewPair 0xcfdf7643
address _pair
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address