contract_name
stringlengths
1
61
file_path
stringlengths
5
50.4k
contract_address
stringlengths
42
42
language
stringclasses
1 value
class_name
stringlengths
1
61
class_code
stringlengths
4
330k
class_documentation
stringlengths
0
29.1k
class_documentation_type
stringclasses
6 values
func_name
stringlengths
0
62
func_code
stringlengths
1
303k
func_documentation
stringlengths
2
14.9k
func_documentation_type
stringclasses
4 values
compiler_version
stringlengths
15
42
license_type
stringclasses
14 values
swarm_source
stringlengths
0
71
meta
dict
__index_level_0__
int64
0
60.4k
SOM
SOM.sol
0x9fc217e26ad304957e637bf3630a8e0face5bd07
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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}. ...
NatSpecMultiLine
lock
function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = address(0); _lockTime = block.timestamp + time; emit OwnershipTransferred(_owner, address(0)); }
//Locks the contract for owner for the amount of time provided
LineComment
v0.8.9+commit.e5eed63a
None
ipfs://719d3f84d9b8bcadf610969e65b7d1173fa42b9ac26b9cac8f7fd89de3f8e13a
{ "func_code_index": [ 1920, 2151 ] }
20,800
SOM
SOM.sol
0x9fc217e26ad304957e637bf3630a8e0face5bd07
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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}. ...
NatSpecMultiLine
unlock
function unlock() public virtual { require(_previousOwner == msg.sender, "You don't have permission to unlock"); require(block.timestamp > _lockTime , "Contract is locked until 7 days"); emit OwnershipTransferred(_owner, _previousOwner); _owner = _previousOwner; }
//Unlocks the contract for owner when _lockTime is exceeds
LineComment
v0.8.9+commit.e5eed63a
None
ipfs://719d3f84d9b8bcadf610969e65b7d1173fa42b9ac26b9cac8f7fd89de3f8e13a
{ "func_code_index": [ 2222, 2532 ] }
20,801
SOM
SOM.sol
0x9fc217e26ad304957e637bf3630a8e0face5bd07
Solidity
SOM
contract SOM is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool)...
//to recieve ETH from uniswapV2Router when swaping
LineComment
v0.8.9+commit.e5eed63a
None
ipfs://719d3f84d9b8bcadf610969e65b7d1173fa42b9ac26b9cac8f7fd89de3f8e13a
{ "func_code_index": [ 10243, 10277 ] }
20,802
SOM
SOM.sol
0x9fc217e26ad304957e637bf3630a8e0face5bd07
Solidity
SOM
contract SOM is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool)...
_tokenTransfer
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!canTrade){ require(sender == owner()); // only owner allowed to trade or add liquidity } if(botWallets[sender] || botWallets[recipient]){ require(botscantrade, "bots arent all...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.9+commit.e5eed63a
None
ipfs://719d3f84d9b8bcadf610969e65b7d1173fa42b9ac26b9cac8f7fd89de3f8e13a
{ "func_code_index": [ 18165, 19284 ] }
20,803
Theilluminatinfts
Theilluminatinfts.sol
0x7cfcce62dc832c554f654192f4e49297c07af869
Solidity
Theilluminatinfts
contract Theilluminatinfts is ERC721Enumerable, Ownable { uint256 public tokenCounter = 0; uint256 public cost = 0.069 ether; bool public paused = false; mapping(uint256 => string) public hashes; string public baseURI; constructor() ERC721("Illuminati", "ILLUMINATI") { setBase...
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseURI; }
// internal
LineComment
v0.8.0+commit.c7dfd78e
MIT
ipfs://5284151c7bc8fc47e528166c957e3de4fe5d469f17db539eec11eaab8dd21aaf
{ "func_code_index": [ 377, 490 ] }
20,804
FinPro
FinPro.sol
0x6022d16b6616b8563438af990bf5c522ffd3728b
Solidity
FinPro
contract FinPro is Ownable { using SafeMath for uint256; string private constant name = "FinPro"; string private constant version = "v0.96"; uint256[] private fplowerlim; uint256[] private fplocktime; uint256[] private fpinterest; uint256 private fpcount; ERC20Token private...
// SUPM financial product contract
LineComment
withdrawByAdmin
function withdrawByAdmin(address _investor, uint256 _investednum, address _target) onlyAdmin public { require(_investednum > 0 && investedAmount[_investor] >= _investednum); require(!investorVault[_investor][_investednum].withdrawn); require(token.balanceOf(address(this)) >= investorVault[_investor][_inv...
// admin methods
LineComment
v0.4.24+commit.e67f0147
bzzr://456650dd61604a55ba1aca8ce3d4f36a53895ee8cccf010862c7ef3698d0a3d6
{ "func_code_index": [ 6354, 7303 ] }
20,805
FinPro
FinPro.sol
0x6022d16b6616b8563438af990bf5c522ffd3728b
Solidity
FinPro
contract FinPro is Ownable { using SafeMath for uint256; string private constant name = "FinPro"; string private constant version = "v0.96"; uint256[] private fplowerlim; uint256[] private fplocktime; uint256[] private fpinterest; uint256 private fpcount; ERC20Token private...
// SUPM financial product contract
LineComment
function () public payable { revert(); }
// safety methods
LineComment
v0.4.24+commit.e67f0147
bzzr://456650dd61604a55ba1aca8ce3d4f36a53895ee8cccf010862c7ef3698d0a3d6
{ "func_code_index": [ 7915, 7974 ] }
20,806
FinPro
FinPro.sol
0x6022d16b6616b8563438af990bf5c522ffd3728b
Solidity
FinPro
contract FinPro is Ownable { using SafeMath for uint256; string private constant name = "FinPro"; string private constant version = "v0.96"; uint256[] private fplowerlim; uint256[] private fplocktime; uint256[] private fpinterest; uint256 private fpcount; ERC20Token private...
// SUPM financial product contract
LineComment
emptyWrongEther
function emptyWrongEther() onlyOwner public { uint256 amount = address(this).balance; require(amount > 0); msg.sender.transfer(amount); emit WrongEtherEmptied(msg.sender, amount); }
// shouldn't happen, just in case
LineComment
v0.4.24+commit.e67f0147
bzzr://456650dd61604a55ba1aca8ce3d4f36a53895ee8cccf010862c7ef3698d0a3d6
{ "func_code_index": [ 8398, 8627 ] }
20,807
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint; mapping(address => uint) balances; /** * @dev Fix for the ERC20 short address attack. */ modifier onlyPayloadSize(uint size) { if(msg.data.length < size + 4) { throw; } _; } /** * @dev transfer toke...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint _value) onlyPayloadSize(2 * 32) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 446, 673 ] }
20,808
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint; mapping(address => uint) balances; /** * @dev Fix for the ERC20 short address attack. */ modifier onlyPayloadSize(uint size) { if(msg.data.length < size + 4) { throw; } _; } /** * @dev transfer toke...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 876, 982 ] }
20,809
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint _value) onlyPayloadSize(3 * 32) { var _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // if (_value > _allowance) throw; balances[_to] = balances[_to].ad...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint the amout of tokens to be transfered */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 384, 875 ] }
20,810
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint _value) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/issues/20#issueco...
/** * @dev Aprove the passed address to spend the specified amount of tokens on beahlf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 1110, 1624 ] }
20,811
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) constant returns (uint remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens than an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint specifing the amount of tokens still avaible for the spender. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 1942, 2077 ] }
20,812
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onl...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 169, 222 ] }
20,813
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onl...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) onlyOwner { if (newOwner != address(0)) { owner = newOwner; } }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 563, 694 ] }
20,814
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint value); event MintFinished(); bool public mintingFinished = false; uint public totalSupply = 0; modifier canMint() { if(mintingFinished) throw; _; } /** * @dev Function to mint tokens * ...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
mint
function mint(address _to, uint _amount) onlyOwner canMint returns (bool) { totalSupply = totalSupply.add(_amount); balances[_to] = balances[_to].add(_amount); Mint(_to, _amount); return true; }
/** * @dev Function to mint tokens * @param _to The address that will recieve the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 511, 731 ] }
20,815
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint value); event MintFinished(); bool public mintingFinished = false; uint public totalSupply = 0; modifier canMint() { if(mintingFinished) throw; _; } /** * @dev Function to mint tokens * ...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
finishMinting
function finishMinting() onlyOwner returns (bool) { mintingFinished = true; MintFinished(); return true; }
/** * @dev Function to stop minting new tokens. * @return True if the operation was successful. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 848, 975 ] }
20,816
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { if (paused) throw; _; } /** * @dev modifier to allow actions only when the con...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
pause
function pause() onlyOwner whenNotPaused returns (bool) { paused = true; Pause(); return true; }
/** * @dev called by the owner to pause, triggers stopped state */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 491, 608 ] }
20,817
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { if (paused) throw; _; } /** * @dev modifier to allow actions only when the con...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
unpause
function unpause() onlyOwner whenPaused returns (bool) { paused = false; Unpause(); return true; }
/** * @dev called by the owner to unpause, returns to normal state */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 692, 811 ] }
20,818
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
TokenTimelock
contract TokenTimelock { // ERC20 basic token contract being held ERC20Basic token; // beneficiary of tokens after they are released address beneficiary; // timestamp where token release is enabled uint releaseTime; function TokenTimelock(ERC20Basic _token, address _beneficiary, uint _relea...
/** * @title TokenTimelock * @dev TokenTimelock is a token holder contract that will allow a * beneficiary to extract the tokens after a time has passed */
NatSpecMultiLine
claim
function claim() { require(msg.sender == beneficiary); require(now >= releaseTime); uint amount = token.balanceOf(this); require(amount > 0); token.transfer(beneficiary, amount); }
/** * @dev beneficiary claims tokens held by time lock */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 528, 743 ] }
20,819
FOFToken
FOFToken.sol
0x73cd8ecfc8a8ce04f4ed2b21ca019f87388e7b19
Solidity
FOFToken
contract FOFToken is PausableToken, MintableToken { using SafeMath for uint256; string public name = "FOFToken"; string public symbol = "FOF"; uint public decimals = 18; /** * @dev mint timelocked tokens */ function mintTimelocked(address _to, uint256 _amount, uint256 _releaseTime) on...
/** * @title FOFToken * @dev dev */
NatSpecMultiLine
mintTimelocked
function mintTimelocked(address _to, uint256 _amount, uint256 _releaseTime) onlyOwner canMint returns (TokenTimelock) { TokenTimelock timelock = new TokenTimelock(this, _to, _releaseTime); mint(timelock, _amount); return timelock; }
/** * @dev mint timelocked tokens */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://5bd287f181f72e33ba5b45fa17c5f463fd75579d43ee690dbc8ec90495e888d9
{ "func_code_index": [ 235, 497 ] }
20,820
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20
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); /**...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 94, 154 ] }
20,821
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20
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); /**...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 237, 310 ] }
20,822
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20
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); /**...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 534, 616 ] }
20,823
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20
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); /**...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @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. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 895, 983 ] }
20,824
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20
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); /**...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @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 ...
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 1647, 1726 ] }
20,825
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20
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); /**...
transferFrom
function transferFrom( address sender, address recipient, 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. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 2039, 2175 ] }
20,826
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20Metadata
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 t...
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 100, 159 ] }
20,827
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20Metadata
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 t...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 226, 287 ] }
20,828
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
IERC20Metadata
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 t...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 363, 418 ] }
20,829
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
excludeFromMaxTransaction
function excludeFromMaxTransaction(address updAds, bool isEx) external onlyOwner { if (!isEx) { require(updAds != uniswapV2Pair, "Cannot remove Uniswap pair from max txn"); } _isExcludedMaxTransactionAmount[updAds] = isEx; }
// Exclude an address from the max transaction amount
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 4029, 4303 ] }
20,830
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
excludeFromFees
function excludeFromFees(address account, bool excluded) public onlyOwner { _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); }
// Exclude an address from transaction fees
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 4570, 4757 ] }
20,831
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
setAutomatedMarketMakerPair
function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner { require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs"); _setAutomatedMarketMakerPair(pair, value); }
// Designate AMM pair
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 4788, 5037 ] }
20,832
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
addLiquidity
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, 0, address(0xdead), block.timestamp ...
// Liquidity add helper function
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 5322, 5695 ] }
20,833
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
swapTokensForEth
function swapTokensForEth(uint256 tokenAmount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( ...
// Swap native token for ETH
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 5732, 6208 ] }
20,834
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
_transfer
function _transfer(address from, address to, uint256 amount) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Amount must be greater than 0"); require(_lockedWallets[from] ...
// Transfer tokens
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 6235, 10327 ] }
20,835
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
enableTrading
function enableTrading(uint256 blocks) external onlyOwner { require(!tradingEnabled, "Trading already enabled"); require(blocks <= 5, "Must be less than 5 blocks"); tradingEnabled = true; swapEnabled = true; tradingEnabledBlock = block.number; justicePeriod = blocks; emit EnabledTradi...
// Enable trading and assign values of arguments to variables
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 10397, 10762 ] }
20,836
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
removeLimits
function removeLimits() external onlyOwner { limitsEnabled = false; transferDelayEnabled = false; emit RemovedLimits(); }
// Remove trading limits
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 10799, 10957 ] }
20,837
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
disableTransferDelay
function disableTransferDelay() external onlyOwner { transferDelayEnabled = false; }
// Disable transfer delay
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 10995, 11098 ] }
20,838
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
passJudgement
function passJudgement(address[] memory names) external onlyOwner { for (uint i = 0; i < names.length; i++) { _evil[names[i]] = true; } }
// Pass judgement on the guilty
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 11138, 11316 ] }
20,839
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
reverseJudgement
function reverseJudgement(address[] memory names) external onlyOwner { for (uint i = 0; i < names.length; i++) { _evil[names[i]] = false; } }
// Reverse guilty verdict
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 11350, 11532 ] }
20,840
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
lockTokens
function lockTokens(address[] memory wallets, uint256[] memory numDays) external onlyOwner { require(wallets.length == numDays.length, "Arrays must be the same length"); require(wallets.length < 200, "Can only lock 200 wallets per txn due to gas limits"); for (uint i = 0; i < wallets.length; i++) { ...
// Lock wallet from transferring out for given time
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 11592, 12170 ] }
20,841
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
updateMaxBuyAmount
function updateMaxBuyAmount(uint256 newAmount) external onlyOwner { require(newAmount >= (totalSupply() * 1 / 1000) / 10**18, "Max buy amount lower than 0.1%"); maxBuyAmount = newAmount * (10**18); emit UpdatedMaxBuyAmount(maxBuyAmount); }
// Update max buy amount
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 12203, 12479 ] }
20,842
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
updateMaxSellAmount
function updateMaxSellAmount(uint256 newAmount) external onlyOwner { require(newAmount >= (totalSupply() * 1 / 1000) / 10**18, "Max sell amount lower than 0.1%"); maxSellAmount = newAmount * (10**18); emit UpdatedMaxSellAmount(maxSellAmount); }
// Update max sell amount
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 12517, 12798 ] }
20,843
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
updateMaxWalletAmount
function updateMaxWalletAmount(uint256 newAmount) external onlyOwner { require(newAmount >= (totalSupply() * 3 / 1000) / 10**18, "Max wallet amount lower than 0.3%"); maxWalletAmount = newAmount * (10**18); emit UpdatedMaxWalletAmount(maxWalletAmount); }
// Update max wallet amount
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 12834, 13125 ] }
20,844
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
updateSwapTokensAtAmount
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner { require(newAmount >= (totalSupply() * 1 / 100000) / 10**18, "Threshold lower than 0.001% total supply"); require(newAmount <= (totalSupply() * 1 / 1000) / 10**18, "Threshold higher than 0.1% total supply"); swapTokensAtAmount = newAm...
// Update token threshold for when the contract sells for liquidity, marketing and development
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 13228, 13648 ] }
20,845
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
airdropToWallets
function airdropToWallets(address[] memory wallets, uint256[] memory amountsInTokens) external onlyOwner { require(wallets.length == amountsInTokens.length, "Arrays must be the same length"); require(wallets.length < 200, "Can only airdrop 200 wallets per txn due to gas limits"); for (uint256 i = 0; i <...
// Transfer given number of tokens to given address
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 13712, 14167 ] }
20,846
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
updateBuyFees
function updateBuyFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _developmentFee) external onlyOwner { buyMarketingFee = _marketingFee; buyLiquidityFee = _liquidityFee; buyDevelopmentFee = _developmentFee; buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevelopmentFee; require...
// Update fees on buys
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 14198, 14602 ] }
20,847
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
updateSellFees
function updateSellFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _developmentFee) external onlyOwner { sellMarketingFee = _marketingFee; sellLiquidityFee = _liquidityFee; sellDevelopmentFee = _developmentFee; sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevelopmentFee; ...
// Update fees on sells
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 14634, 15049 ] }
20,848
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
swapBack
function swapBack() private { uint256 contractBalance = balanceOf(address(this)); uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing + tokensForDevelopment; if (contractBalance == 0 || totalTokensToSwap == 0) { return; } if (contractBalance > swapTokensAtAm...
// Contract sells
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 15079, 16556 ] }
20,849
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
transferForeignToken
function transferForeignToken(address _token, address _to) external onlyOwner returns (bool _sent) { require(_token != address(0), "_token address cannot be 0"); uint256 _contractBalance = IERC20(_token).balanceOf(address(this)); _sent = IERC20(_token).transfer(_to, _contractBalance); emit TransferF...
// Withdraw unnecessary tokens
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 16595, 16981 ] }
20,850
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
withdrawStuckETH
function withdrawStuckETH() external onlyOwner { bool success; (success,) = address(msg.sender).call{value: address(this).balance}(""); }
// Withdraw stuck ETH
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 17011, 17176 ] }
20,851
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
setMarketingAddress
function setMarketingAddress(address _marketingAddress) external onlyOwner { require(_marketingAddress != address(0), "_marketingAddress address cannot be 0"); MarketingAddress = payable(_marketingAddress); emit UpdatedMarketingAddress(_marketingAddress); }
// Designate marketing wallet address
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 17222, 17516 ] }
20,852
FUCKPUTIN
FUCKPUTIN.sol
0x2f17dda094b0cd92cb4bee986eb68f9c32902967
Solidity
FUCKPUTIN
contract FUCKPUTIN is ERC20, Ownable { // Variables IDexRouter public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public MarketingAddress; address public DevelopmentAddress; bool private swapEnabled = false; bool private limitsEnabled = true; bool...
setDevelopmentAddress
function setDevelopmentAddress(address _developmentAddress) external onlyOwner { require(_developmentAddress != address(0), "_developmentAddress address cannot be 0"); DevelopmentAddress = payable(_developmentAddress); emit UpdatedDevelopmentAddress(_developmentAddress); }
// Designate development wallet address
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://432fcafe9ea7e066dda5c15df54afdadba92b33aa249bf17d74a2665f90dbd3f
{ "func_code_index": [ 17564, 17874 ] }
20,853
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on 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:...
mul
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-solidity/pull/522 if (a == 0) { return 0; } uint2...
/** * @dev Multiplies two unsigned integers, reverts on overflow. */
NatSpecMultiLine
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 98, 496 ] }
20,854
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on 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:...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero. */
NatSpecMultiLine
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 618, 902 ] }
20,855
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on 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:...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; }
/** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 1027, 1166 ] }
20,856
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on 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:...
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; }
/** * @dev Adds two unsigned integers, reverts on overflow. */
NatSpecMultiLine
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 1241, 1380 ] }
20,857
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on 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:...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; }
/** * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */
NatSpecMultiLine
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 1525, 1642 ] }
20,858
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
ITSX
contract ITSX is Ownable { using SafeMath for uint256; string public constant name = "IterationX"; string public constant symbol = "ITSX"; uint256 public constant decimals = 18; uint256 private constant _maximumSupply = 10000000 * 10 ** decimals; uint256 private constant _maximumPresaleBurnAmount = ...
_transfer
function _transfer(address _from, address _to, uint256 _value) internal { _balanceOf[_from] = _balanceOf[_from].sub(_value); _balanceOf[_to] = _balanceOf[_to].add(_value); emit Transfer(_from, _to, _value); }
// checks that the address is valid
LineComment
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 1228, 1457 ] }
20,859
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
ITSX
contract ITSX is Ownable { using SafeMath for uint256; string public constant name = "IterationX"; string public constant symbol = "ITSX"; uint256 public constant decimals = 18; uint256 private constant _maximumSupply = 10000000 * 10 ** decimals; uint256 private constant _maximumPresaleBurnAmount = ...
transfer
function transfer(address _to, uint256 _value) public returns (bool success) { require(_balanceOf[msg.sender] >= _value); _transfer(msg.sender, _to, _value); return true; }
// transfer tokens
LineComment
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 1482, 1675 ] }
20,860
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
ITSX
contract ITSX is Ownable { using SafeMath for uint256; string public constant name = "IterationX"; string public constant symbol = "ITSX"; uint256 public constant decimals = 18; uint256 private constant _maximumSupply = 10000000 * 10 ** decimals; uint256 private constant _maximumPresaleBurnAmount = ...
burn
function burn (uint256 _burnAmount, bool _presaleBurn) public onlyOwner returns (bool success) { if (_presaleBurn) { require(_presaleBurnTotal.add(_burnAmount) <= _maximumPresaleBurnAmount); _presaleBurnTotal = _presaleBurnTotal.add(_burnAmount); _transfer(_owner, address(0), _burnAmount); _total...
// performs presale burn
LineComment
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 1706, 2226 ] }
20,861
ITSX
ITSX.sol
0xbe8c5248a05d00563019b456957ee29488e03164
Solidity
ITSX
contract ITSX is Ownable { using SafeMath for uint256; string public constant name = "IterationX"; string public constant symbol = "ITSX"; uint256 public constant decimals = 18; uint256 private constant _maximumSupply = 10000000 * 10 ** decimals; uint256 private constant _maximumPresaleBurnAmount = ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= _balanceOf[_from]); require(_value <= allowance[_from][msg.sender]); allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value); _transfer(_from, _to, _value); return true; } ...
// transfer from
LineComment
v0.6.0+commit.26b70077
None
ipfs://896d874086fad0e8cbdcfc9c1c947ca3e8153ab42284b7db2b46d80909bb7f96
{ "func_code_index": [ 2556, 2890 ] }
20,862
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
setRatio
function setRatio(uint256 _ratio) external virtual onlyOwner { require( _ratio >= MIN_RATIO, "VaultHandler::setRatio: ratio lower than MIN_RATIO" ); ratio = _ratio; emit NewRatio(msg.sender, _ratio); }
/** * @notice Sets the collateral ratio needed to mint tokens * @param _ratio uint * @dev Only owner can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 7403, 7636 ] }
20,863
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
setBurnFee
function setBurnFee(uint256 _burnFee) external virtual onlyOwner { require( _burnFee <= MAX_FEE, "VaultHandler::setBurnFee: burn fee higher than MAX_FEE" ); burnFee = _burnFee; emit NewBurnFee(msg.sender, _burnFee); }
/** * @notice Sets the burn fee percentage an user pays when burning tcap tokens * @param _burnFee uint * @dev Only owner can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 7789, 8038 ] }
20,864
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
setLiquidationPenalty
function setLiquidationPenalty(uint256 _liquidationPenalty) external virtual onlyOwner { require( _liquidationPenalty.add(100) < ratio, "VaultHandler::setLiquidationPenalty: liquidation penalty too high" ); liquidationPenalty = _liquidationPenalty; emit NewLiquidationPenalty(msg.sender, _liquidat...
/** * @notice Sets the liquidation penalty % charged on liquidation * @param _liquidationPenalty uint * @dev Only owner can call it * @dev recommended value is between 1-15% and can't be above 100% */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 8258, 8616 ] }
20,865
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
setTreasury
function setTreasury(address _treasury) external virtual onlyOwner { require( ERC165Checker.supportsInterface(_treasury, _INTERFACE_ID_TIMELOCK), "VaultHandler::setTreasury: not a valid treasury" ); treasury = (_treasury); emit NewTreasury(msg.sender, _treasury); }
/** * @notice Sets the treasury contract address where fees are transfered to * @param _treasury address * @dev Only owner can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 8770, 9067 ] }
20,866
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
createVault
function createVault() external virtual whenNotPaused { require( userToVault[msg.sender] == 0, "VaultHandler::createVault: vault already created" ); uint256 id = counter.current(); userToVault[msg.sender] = id; Vault memory vault = Vault(id, 0, 0, msg.sender); vaults[id] = vault; counter.incremen...
/** * @notice Allows an user to create an unique Vault * @dev Only one vault per address can be created */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 9187, 9574 ] }
20,867
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
addCollateral
function addCollateral(uint256 _amount) external virtual nonReentrant vaultExists whenNotPaused notZero(_amount) { require( collateralContract.transferFrom(msg.sender, address(this), _amount), "VaultHandler::addCollateral: ERC20 transfer did not succeed" ); Vault storage vault = vaults[userTo...
/** * @notice Allows users to add collateral to their vaults * @param _amount of collateral to be added * @dev _amount should be higher than 0 * @dev ERC20 token must be approved first */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 9781, 10261 ] }
20,868
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
removeCollateral
function removeCollateral(uint256 _amount) external virtual nonReentrant vaultExists whenNotPaused notZero(_amount) { Vault storage vault = vaults[userToVault[msg.sender]]; uint256 currentRatio = getVaultRatio(vault.Id); require( vault.Collateral >= _amount, "VaultHandler::removeCollateral: r...
/** * @notice Allows users to remove collateral currently not being used to generate TCAP tokens from their vaults * @param _amount of collateral to remove * @dev reverts if the resulting ratio is less than the minimun ratio * @dev _amount should be higher than 0 * @dev transfers the collateral back to the user *...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 10599, 11434 ] }
20,869
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
mint
function mint(uint256 _amount) external virtual nonReentrant vaultExists whenNotPaused notZero(_amount) { Vault storage vault = vaults[userToVault[msg.sender]]; uint256 collateral = requiredCollateral(_amount); require( vault.Collateral >= collateral, "VaultHandler::mint: not enough collatera...
/** * @notice Uses collateral to generate debt on TCAP Tokens which are minted and assigend to caller * @param _amount of tokens to mint * @dev _amount should be higher than 0 * @dev requires to have a vault ratio above the minimum ratio * @dev if reward handler is set stake to earn rewards */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 11751, 12476 ] }
20,870
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
burn
function burn(uint256 _amount) external payable virtual nonReentrant vaultExists whenNotPaused notZero(_amount) { uint256 fee = getFee(_amount); require( msg.value >= fee, "VaultHandler::burn: burn fee less than required" ); Vault memory vault = vaults[userToVault[msg.sender]]; _burn(v...
/** * @notice Pays the debt of TCAP tokens resulting them on burn, this releases collateral up to minimun vault ratio * @param _amount of tokens to burn * @dev _amount should be higher than 0 * @dev A fee of exactly burnFee must be sent as value on ETH * @dev The fee goes to the treasury contract * @dev if reward...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 12847, 13553 ] }
20,871
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
liquidateVault
function liquidateVault(uint256 _vaultId, uint256 _maxTCAP) external payable nonReentrant whenNotPaused { Vault storage vault = vaults[_vaultId]; require(vault.Id != 0, "VaultHandler::liquidateVault: no vault created"); uint256 vaultRatio = getVaultRatio(vault.Id); require( vaultRatio < ratio, ...
/** * @notice Allow users to burn TCAP tokens to liquidate vaults with vault collateral ratio under the minium ratio, the liquidator receives the staked collateral of the liquidated vault at a premium * @param _vaultId to liquidate * @param _maxTCAP max amount of TCAP the liquidator is willing to pay to liquidate va...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 14068, 15510 ] }
20,872
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
pause
function pause() external onlyOwner { _pause(); }
/** * @notice Allows the owner to Pause the Contract */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 15576, 15633 ] }
20,873
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
unpause
function unpause() external onlyOwner { _unpause(); }
/** * @notice Allows the owner to Unpause the Contract */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 15701, 15762 ] }
20,874
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
recoverERC20
function recoverERC20(address _tokenAddress, uint256 _tokenAmount) external onlyOwner { // Cannot recover the collateral token require( _tokenAddress != address(collateralContract), "Cannot withdraw the collateral tokens" ); IERC20(_tokenAddress).safeTransfer(owner(), _tokenAmount); emit Recovered...
/** * @notice Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders * @param _tokenAddress address * @param _tokenAmount uint * @dev Only owner can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 15987, 16363 ] }
20,875
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
safeTransferETH
function safeTransferETH(address _to, uint256 _value) internal { (bool success, ) = _to.call{value: _value}(new bytes(0)); require(success, "ETHVaultHandler::safeTransferETH: ETH transfer failed"); }
/** * @notice Allows the safe transfer of ETH * @param _to account to transfer ETH * @param _value amount of ETH */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 16495, 16706 ] }
20,876
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 _interfaceId) external pure override returns (bool) { return (_interfaceId == _INTERFACE_ID_IVAULT || _interfaceId == _INTERFACE_ID_ERC165); }
/** * @notice ERC165 Standard for support of interfaces * @param _interfaceId bytes of interface * @return bool */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 16837, 17045 ] }
20,877
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
getVault
function getVault(uint256 _id) external view virtual returns ( uint256, uint256, address, uint256 ) { Vault memory vault = vaults[_id]; return (vault.Id, vault.Collateral, vault.Owner, vault.Debt); }
/** * @notice Returns the Vault information of specified identifier * @param _id of vault * @return Id, Collateral, Owner, Debt */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 17192, 17449 ] }
20,878
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
getOraclePrice
function getOraclePrice(ChainlinkOracle _oracle) public view virtual returns (uint256 price) { price = _oracle.getLatestAnswer().toUint256().mul(oracleDigits); }
/** * @notice Returns the price of the chainlink oracle multiplied by the digits to get 18 decimals format * @param _oracle to be the price called * @return price */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 17631, 17818 ] }
20,879
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
TCAPPrice
function TCAPPrice() public view virtual returns (uint256 price) { uint256 totalMarketPrice = getOraclePrice(tcapOracle); price = totalMarketPrice.div(divisor); }
/** * @notice Returns the price of the TCAP token * @return price of the TCAP Token * @dev TCAP token is 18 decimals * @dev oracle totalMarketPrice must be in wei format * @dev P = T / d * P = TCAP Token Price * T = Total Crypto Market Cap * d = Divisor */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 18106, 18280 ] }
20,880
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
requiredCollateral
function requiredCollateral(uint256 _amount) public view virtual returns (uint256 collateral) { uint256 tcapPrice = TCAPPrice(); uint256 collateralPrice = getOraclePrice(collateralPriceOracle); collateral = ((tcapPrice.mul(_amount).mul(ratio)).div(100)).div( collateralPrice ); }
/** * @notice Returns the minimal required collateral to mint TCAP token * @param _amount uint amount to mint * @return collateral of the TCAP Token * @dev TCAP token is 18 decimals * @dev C = ((P * A * r) / 100) / cp * C = Required Collateral * P = TCAP Token Price * A = Amount to Mint * cp = Collateral Price...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 18750, 19073 ] }
20,881
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
requiredLiquidationTCAP
function requiredLiquidationTCAP(uint256 _vaultId) public view virtual returns (uint256 amount) { Vault memory vault = vaults[_vaultId]; uint256 tcapPrice = TCAPPrice(); uint256 collateralPrice = getOraclePrice(collateralPriceOracle); uint256 collateralTcap = (vault.Collateral.mul(collateralPrice))....
/** * @notice Returns the minimal required TCAP to liquidate a Vault * @param _vaultId of the vault to liquidate * @return amount required of the TCAP Token * @dev LT = ((((D * r) / 100) - cTcap) * 100) / (r - (p + 100)) * cTcap = ((C * cp) / P) * LT = Required TCAP * D = Vault Debt * C = Required Collateral *...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 19524, 20091 ] }
20,882
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
liquidationReward
function liquidationReward(uint256 _vaultId) public view virtual returns (uint256 rewardCollateral) { uint256 req = requiredLiquidationTCAP(_vaultId); uint256 tcapPrice = TCAPPrice(); uint256 collateralPrice = getOraclePrice(collateralPriceOracle); uint256 reward = (req.mul(liquidationPenalty.add(100)))...
/** * @notice Returns the Reward for liquidating a vault * @param _vaultId of the vault to liquidate * @return rewardCollateral for liquidating Vault * @dev the returned value is returned as collateral currency * @dev R = (LT * (p + 100)) / 100 * R = Liquidation Reward * LT = Required Liquidation TCAP * p = li...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 20455, 20878 ] }
20,883
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
getVaultRatio
function getVaultRatio(uint256 _vaultId) public view virtual returns (uint256 currentRatio) { Vault memory vault = vaults[_vaultId]; if (vault.Id == 0 || vault.Debt == 0) { currentRatio = 0; } else { uint256 collateralPrice = getOraclePrice(collateralPriceOracle); currentRatio = ( (colla...
/** * @notice Returns the Collateral Ratio of the Vault * @param _vaultId id of vault * @return currentRatio * @dev vr = (cp * (C * 100)) / D * P * vr = Vault Ratio * C = Vault Collateral * cp = Collateral Price * D = Vault Debt * P = TCAP Token Price */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 21167, 21627 ] }
20,884
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
getFee
function getFee(uint256 _amount) public view virtual returns (uint256 fee) { uint256 ethPrice = getOraclePrice(ETHPriceOracle); fee = (TCAPPrice().mul(_amount).mul(burnFee)).div(100).div(ethPrice); }
/** * @notice Returns the required fee of ETH to burn the TCAP tokens * @param _amount to burn * @return fee * @dev The returned value is returned in wei * @dev f = (((P * A * b)/ 100))/ EP * f = Burn Fee Value * P = TCAP Token Price * A = Amount to Burn * b = Burn Fee % * EP = ETH Price */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 21956, 22167 ] }
20,885
ERC20VaultHandler
contracts/IVaultHandler.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
IVaultHandler
abstract contract IVaultHandler is Ownable, AccessControl, ReentrancyGuard, Pausable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; using SafeCast for int256; using Counters for Counters.Counter; using SafeERC20 for IERC20; /** * @notice Vault object created to mana...
/** * @title TCAP Vault Handler Abstract Contract * @author Cryptex.Finance * @notice Contract in charge of handling the TCAP Token and stake */
NatSpecMultiLine
_burn
function _burn(uint256 _vaultId, uint256 _amount) internal { Vault storage vault = vaults[_vaultId]; require( vault.Debt >= _amount, "VaultHandler::burn: amount greater than debt" ); vault.Debt = vault.Debt.sub(_amount); TCAPToken.burn(msg.sender, _amount); }
/** * @notice Burns an amount of TCAP Tokens * @param _vaultId vault id * @param _amount to burn */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 22283, 22578 ] }
20,886
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
owned
contract owned { address public owner; // The one who sent the contract to the blockchain, will automatically become the owner of the contract function owned() internal { owner = msg.sender; } // The function containing this modifier can only call the owner of the contract mod...
owned
function owned() internal { owner = msg.sender; }
// The one who sent the contract to the blockchain, will automatically become the owner of the contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 156, 224 ] }
20,887
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
owned
contract owned { address public owner; // The one who sent the contract to the blockchain, will automatically become the owner of the contract function owned() internal { owner = msg.sender; } // The function containing this modifier can only call the owner of the contract mod...
changeOwner
function changeOwner(address newOwner) onlyOwner public { owner = newOwner; }
// Change the owner of the contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 440, 536 ] }
20,888
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
AdvancedToken
contract AdvancedToken is ERC20, owned { using SafeMath for uint256; // Stores the balances of all holders of the tokens, including the owner of the contract mapping (address => uint256) internal balances; // The event informs that N tokens have been destroyed event Burn(address indexed fro...
mintTokens
function mintTokens(address _who, uint256 amount) internal returns(bool) { require(_who != address(0)); totalSupply = totalSupply.add(amount); balances[_who] = balances[_who].add(amount); Transfer(this, _who, amount); return true; }
// Creates the required number of tokens on the specified account
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 413, 700 ] }
20,889
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
AdvancedToken
contract AdvancedToken is ERC20, owned { using SafeMath for uint256; // Stores the balances of all holders of the tokens, including the owner of the contract mapping (address => uint256) internal balances; // The event informs that N tokens have been destroyed event Burn(address indexed fro...
burnTokens
function burnTokens(uint256 _value) public onlyOwner { require(balances[this] > 0); balances[this] = balances[this].sub(_value); totalSupply = totalSupply.sub(_value); Burn(this, _value); }
// Burns tokens on the contract, without affecting the token holders and the owner of the contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 807, 1042 ] }
20,890
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
AdvancedToken
contract AdvancedToken is ERC20, owned { using SafeMath for uint256; // Stores the balances of all holders of the tokens, including the owner of the contract mapping (address => uint256) internal balances; // The event informs that N tokens have been destroyed event Burn(address indexed fro...
withdrawTokens
function withdrawTokens(uint256 _value) public onlyOwner { require(balances[this] > 0 && balances[this] >= _value); balances[this] = balances[this].sub(_value); balances[msg.sender] = balances[msg.sender].add(_value); Transfer(this, msg.sender, _value); }
// Withdraws tokens from the contract if they accidentally or on purpose was it placed there
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 1143, 1444 ] }
20,891
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
AdvancedToken
contract AdvancedToken is ERC20, owned { using SafeMath for uint256; // Stores the balances of all holders of the tokens, including the owner of the contract mapping (address => uint256) internal balances; // The event informs that N tokens have been destroyed event Burn(address indexed fro...
withdrawEther
function withdrawEther(uint256 _value) public onlyOwner { require(this.balance >= _value); owner.transfer(_value); }
// Withdraws all the ether from the contract to the owner account
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 1518, 1662 ] }
20,892
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
ICO
contract ICO is AdvancedToken { using SafeMath for uint256; enum State { Presale, waitingForICO, ICO, Active } State public contract_state = State.Presale; uint256 private startTime; uint256 private presaleMaxSupply; uint256 private marketMaxSupply; event NewState(State state); ...
ICO
function ICO() internal { startTime = 1528205440; // pomeriggio presaleMaxSupply = 0 * 1 ether; marketMaxSupply = 450000000 * 1 ether; }
// The initialization values when the contract has been mined to the blockchain
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 827, 1000 ] }
20,893
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
ICO
contract ICO is AdvancedToken { using SafeMath for uint256; enum State { Presale, waitingForICO, ICO, Active } State public contract_state = State.Presale; uint256 private startTime; uint256 private presaleMaxSupply; uint256 private marketMaxSupply; event NewState(State state); ...
function () private payable crowdsaleState { require(msg.value >= 0.0001 ether); require(now >= startTime); uint256 currentMaxSupply; uint256 tokensPerEther = 5000; uint256 _tokens = tokensPerEther * msg.value; uint256 bonus = 0; // PRE-SALE calculation of bonuses // NOTE: PRE-...
// The function of purchasing tokens
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 1045, 2677 ] }
20,894
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
ICO
contract ICO is AdvancedToken { using SafeMath for uint256; enum State { Presale, waitingForICO, ICO, Active } State public contract_state = State.Presale; uint256 private startTime; uint256 private presaleMaxSupply; uint256 private marketMaxSupply; event NewState(State state); ...
finishPresale
function finishPresale() public onlyOwner returns (bool success) { require(contract_state == State.Presale); contract_state = State.waitingForICO; NewState(contract_state); return true; }
// Finish the PRE-SALE period, is required the Presale state of the contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 2762, 2995 ] }
20,895
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
ICO
contract ICO is AdvancedToken { using SafeMath for uint256; enum State { Presale, waitingForICO, ICO, Active } State public contract_state = State.Presale; uint256 private startTime; uint256 private presaleMaxSupply; uint256 private marketMaxSupply; event NewState(State state); ...
startICO
function startICO() public onlyOwner returns (bool success) { require(contract_state == State.waitingForICO); contract_state = State.ICO; NewState(contract_state); return true; }
// Start the ICO period, is required the waitingForICO state of the contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 3080, 3304 ] }
20,896
TESTERIUM3
TESTERIUM3.sol
0x4608fa3bccef6969fdcad8c708919c283fa3721f
Solidity
ICO
contract ICO is AdvancedToken { using SafeMath for uint256; enum State { Presale, waitingForICO, ICO, Active } State public contract_state = State.Presale; uint256 private startTime; uint256 private presaleMaxSupply; uint256 private marketMaxSupply; event NewState(State state); ...
finishICO
function finishICO() public onlyOwner returns (bool success) { require(contract_state == State.ICO); mintTokens(owner, 50000000000000000000000000); contract_state = State.Active; NewState(contract_state); return true; }
// Our tokens
LineComment
v0.4.18+commit.9cf6e910
bzzr://577364296b38f69053eadc13807864028340f78f8eeef8ac8ccff36eeb997006
{ "func_code_index": [ 3326, 3600 ] }
20,897
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
TeleGrams
function TeleGrams() public { symbol = "TON"; name = "Grams"; decimals = 18; _totalSupply = 5000000000000000000000000000; balances[0x07Bc71A379d86f9aAA0f8b4d6373cC1AEeb59c88] = _totalSupply; Transfer(address(0), 0x07Bc71A379d86f9aAA0f8b4d6373cC1AEeb59c88, _totalSupply); }
// ------------------------------------------------------------------------ // Constructor // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 456, 792 ] }
20,898
TeleGrams
TeleGrams.sol
0x79c9a391582e14a2bedf25f84f335d00229b5e22
Solidity
TeleGrams
contract TeleGrams is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://2822ae0ac1e6df839245396f88b3865fa5f23f871a66727899ad742823817582
{ "func_code_index": [ 980, 1101 ] }
20,899