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
MuskFinance
MuskFinance.sol
0x2e843a93998935022e52b6b94877dd1660467f74
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://6255a7e7511730f9230d0fc910a1aba6e96a6dd74abb3683f87858ee265769f9
{ "func_code_index": [ 2158, 2560 ] }
3,500
MuskFinance
MuskFinance.sol
0x2e843a93998935022e52b6b94877dd1660467f74
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://6255a7e7511730f9230d0fc910a1aba6e96a6dd74abb3683f87858ee265769f9
{ "func_code_index": [ 3314, 3492 ] }
3,501
MuskFinance
MuskFinance.sol
0x2e843a93998935022e52b6b94877dd1660467f74
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://6255a7e7511730f9230d0fc910a1aba6e96a6dd74abb3683f87858ee265769f9
{ "func_code_index": [ 3715, 3916 ] }
3,502
MuskFinance
MuskFinance.sol
0x2e843a93998935022e52b6b94877dd1660467f74
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://6255a7e7511730f9230d0fc910a1aba6e96a6dd74abb3683f87858ee265769f9
{ "func_code_index": [ 4284, 4515 ] }
3,503
MuskFinance
MuskFinance.sol
0x2e843a93998935022e52b6b94877dd1660467f74
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://6255a7e7511730f9230d0fc910a1aba6e96a6dd74abb3683f87858ee265769f9
{ "func_code_index": [ 4764, 5085 ] }
3,504
MuskFinance
MuskFinance.sol
0x2e843a93998935022e52b6b94877dd1660467f74
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://6255a7e7511730f9230d0fc910a1aba6e96a6dd74abb3683f87858ee265769f9
{ "func_code_index": [ 493, 577 ] }
3,505
MuskFinance
MuskFinance.sol
0x2e843a93998935022e52b6b94877dd1660467f74
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender...
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @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. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://6255a7e7511730f9230d0fc910a1aba6e96a6dd74abb3683f87858ee265769f9
{ "func_code_index": [ 1131, 1284 ] }
3,506
MuskFinance
MuskFinance.sol
0x2e843a93998935022e52b6b94877dd1660467f74
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender...
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://6255a7e7511730f9230d0fc910a1aba6e96a6dd74abb3683f87858ee265769f9
{ "func_code_index": [ 1432, 1681 ] }
3,507
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
ERC20Interface
contract ERC20Interface { // Get the total token supply function totalSupply() public constant returns (uint256 _totalSupply); // Get the account balance of another account with address _owner function balanceOf(address _owner) public constant returns (uint256 balance); // Send _value amo...
// ---------------------------------------------------------------------------------------------- // Gifto Token by Gifto Limited. // An ERC20 standard // // author: Gifto Team // Contact: datwhnguyen@gmail.com
LineComment
totalSupply
function totalSupply() public constant returns (uint256 _totalSupply);
// Get the total token supply
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 62, 137 ] }
3,508
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
ERC20Interface
contract ERC20Interface { // Get the total token supply function totalSupply() public constant returns (uint256 _totalSupply); // Get the account balance of another account with address _owner function balanceOf(address _owner) public constant returns (uint256 balance); // Send _value amo...
// ---------------------------------------------------------------------------------------------- // Gifto Token by Gifto Limited. // An ERC20 standard // // author: Gifto Team // Contact: datwhnguyen@gmail.com
LineComment
balanceOf
function balanceOf(address _owner) public constant returns (uint256 balance);
// Get the account balance of another account with address _owner
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 212, 294 ] }
3,509
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
ERC20Interface
contract ERC20Interface { // Get the total token supply function totalSupply() public constant returns (uint256 _totalSupply); // Get the account balance of another account with address _owner function balanceOf(address _owner) public constant returns (uint256 balance); // Send _value amo...
// ---------------------------------------------------------------------------------------------- // Gifto Token by Gifto Limited. // An ERC20 standard // // author: Gifto Team // Contact: datwhnguyen@gmail.com
LineComment
transfer
function transfer(address _to, uint256 _value) public returns (bool success);
// Send _value amount of tokens to address _to
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 350, 432 ] }
3,510
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
ERC20Interface
contract ERC20Interface { // Get the total token supply function totalSupply() public constant returns (uint256 _totalSupply); // Get the account balance of another account with address _owner function balanceOf(address _owner) public constant returns (uint256 balance); // Send _value amo...
// ---------------------------------------------------------------------------------------------- // Gifto Token by Gifto Limited. // An ERC20 standard // // author: Gifto Team // Contact: datwhnguyen@gmail.com
LineComment
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
// transfer _value amount of token approved by address _from
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 505, 606 ] }
3,511
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
ERC20Interface
contract ERC20Interface { // Get the total token supply function totalSupply() public constant returns (uint256 _totalSupply); // Get the account balance of another account with address _owner function balanceOf(address _owner) public constant returns (uint256 balance); // Send _value amo...
// ---------------------------------------------------------------------------------------------- // Gifto Token by Gifto Limited. // An ERC20 standard // // author: Gifto Team // Contact: datwhnguyen@gmail.com
LineComment
approve
function approve(address _spender, uint256 _value) public returns (bool success);
// approve an address with _value amount of tokens
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 665, 751 ] }
3,512
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
ERC20Interface
contract ERC20Interface { // Get the total token supply function totalSupply() public constant returns (uint256 _totalSupply); // Get the account balance of another account with address _owner function balanceOf(address _owner) public constant returns (uint256 balance); // Send _value amo...
// ---------------------------------------------------------------------------------------------- // Gifto Token by Gifto Limited. // An ERC20 standard // // author: Gifto Team // Contact: datwhnguyen@gmail.com
LineComment
allowance
function allowance(address _owner, address _spender) public constant returns (uint256 remaining);
// get remaining token approved by _owner to _spender
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 813, 915 ] }
3,513
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
function() public payable { buyGifto(); }
/// @dev Fallback function allows to buy ether.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 2639, 2717 ] }
3,514
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
buyGifto
function buyGifto() public payable onSale validValue validInvestor { uint256 requestedUnits = (msg.value * _originalBuyPrice) / 10**18; require(balances[owner] >= requestedUnits); // prepare transfer data balances[owner] -= requestedUnits; balances[msg.sender] += reques...
/// @dev buy function allows to buy ether. for using optional data
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 2796, 3584 ] }
3,515
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
Gifto
function Gifto() public { owner = msg.sender; setBuyPrice(_originalBuyPrice); balances[owner] = _totalSupply; Transfer(0x0, owner, _totalSupply); }
/// @dev Constructor
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 3613, 3816 ] }
3,516
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
totalSupply
function totalSupply() public constant returns (uint256) { return _totalSupply; }
/// @dev Gets totalSupply /// @return Total supply
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 3884, 4013 ] }
3,517
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
turnOnSale
function turnOnSale() onlyOwner public { _selling = true; }
/// @dev Enables sale
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 4048, 4136 ] }
3,518
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
turnOffSale
function turnOffSale() onlyOwner public { _selling = false; }
/// @dev Disables sale
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 4167, 4257 ] }
3,519
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
setIcoPercent
function setIcoPercent(uint256 newIcoPercent) public onlyOwner { _icoPercent = newIcoPercent; _icoSupply = _totalSupply * _icoPercent / 100; }
/// @dev set new icoPercent /// @param newIcoPercent new value of icoPercent
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 4458, 4647 ] }
3,520
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
setMaximumBuy
function setMaximumBuy(uint256 newMaximumBuy) public onlyOwner { _maximumBuy = newMaximumBuy; }
/// @dev set new _maximumBuy /// @param newMaximumBuy new value of _maximumBuy
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 4743, 4876 ] }
3,521
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
setBuyPrice
function setBuyPrice(uint256 newBuyPrice) onlyOwner public { require(newBuyPrice>0); _originalBuyPrice = newBuyPrice; // 3000 Gifto = 3000 00000 unit // control _maximumBuy_USD = 10,000 USD, Gifto price is 0.1USD // maximumBuy_Gifto = 100,000 Gifto = 100,000,00000 unit // 3000 Gifto...
/// @dev Updates buy price (owner ONLY) /// @param newBuyPrice New buy price (in unit)
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 4976, 5518 ] }
3,522
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
balanceOf
function balanceOf(address _addr) public constant returns (uint256) { return balances[_addr]; }
/// @dev Gets account's balance /// @param _addr Address of the account /// @return Account balance
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 5644, 5787 ] }
3,523
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
isApprovedInvestor
function isApprovedInvestor(address _addr) public constant returns (bool) { return approvedInvestorList[_addr]; }
/// @dev check address is approved investor /// @param _addr address
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 5873, 6032 ] }
3,524
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
getDeposit
function getDeposit(address _addr) public constant returns(uint256){ return deposit[_addr];
/// @dev get ETH deposit /// @param _addr address get deposit /// @return amount deposit of an buyer
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 6155, 6290 ] }
3,525
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
addInvestorList
function addInvestorList(address[] newInvestorList) onlyOwner public { for (uint256 i = 0; i < newInvestorList.length; i++){ approvedInvestorList[newInvestorList[i]] = true; } }
/// @dev Adds list of new investors to the investors list and approve all /// @param newInvestorList Array of new investors addresses to be added
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 6453, 6689 ] }
3,526
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
removeInvestorList
function removeInvestorList(address[] investorList) onlyOwner public { for (uint256 i = 0; i < investorList.length; i++){ approvedInvestorList[investorList[i]] = false; } }
/// @dev Removes list of investors from list /// @param investorList Array of addresses of investors to be removed
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 6817, 7048 ] }
3,527
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
transfer
function transfer(address _to, uint256 _amount) public isTradable returns (bool) { // if sender's balance has enough unit and amount >= 0, // and the sum is not overflow, // then do transfer if ( (balances[msg.sender] >= _amount) && (_amount >= 0) && (bala...
/// @dev Transfers the balance from msg.sender to an account /// @param _to Recipient address /// @param _amount Transfered amount in unit /// @return Transfer status
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 7239, 7867 ] }
3,528
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
transferFrom
function transferFrom( address _from, address _to, uint256 _amount ) public isTradable returns (bool success) { if (balances[_from] >= _amount && allowed[_from][msg.sender] >= _amount && _amount > 0 && balances[_to] + _amount > balances[_to]) { balances[_from]...
// Send _value amount of tokens from address _from to address _to // The transferFrom method is used for a withdraw workflow, allowing contracts to send // tokens on your behalf, for example to "deposit" to a contract address and/or to charge // fees in sub-currencies; the command should fail unless the _from account h...
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 8353, 8962 ] }
3,529
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
approve
function approve(address _spender, uint256 _amount) public isTradable returns (bool success) { allowed[msg.sender][_spender] = _amount; Approval(msg.sender, _spender, _amount); return true; }
// Allow _spender to withdraw from your account, multiple times, up to the _value amount. // If this function is called again it overwrites the current allowance with _value.
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 9154, 9410 ] }
3,530
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
allowance
function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
// get allowance
LineComment
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 9439, 9621 ] }
3,531
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
Gifto
contract Gifto is ERC20Interface { uint256 public constant decimals = 5; string public constant symbol = "GTO"; string public constant name = "Gifto"; bool public _selling = true;//initial selling uint256 public _totalSupply = 10 ** 14; // total supply is 10^14 unit, equivalent to 10^9 Gift...
withdraw
function withdraw() onlyOwner public returns (bool) { return owner.send(this.balance); }
/// @dev Withdraws Ether in contract (Owner only) /// @return Status of withdrawal
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 9721, 9848 ] }
3,532
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
function() payable { if (msg.value > 0) Deposit(msg.sender, msg.value); }
/// @dev Fallback function allows to deposit ether.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 2447, 2566 ] }
3,533
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
MultiSigWallet
function MultiSigWallet(address[] _owners, uint _required) public validRequirement(_owners.length, _required) { for (uint i=0; i<_owners.length; i++) { if (isOwner[_owners[i]] || _owners[i] == 0) revert(); isOwner[_owners[i]] = true; } owners = _owners; requ...
/// @dev Contract constructor sets initial owners and required number of confirmations. /// @param _owners List of initial owners. /// @param _required Number of required confirmations.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 2812, 3201 ] }
3,534
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
addOwner
function addOwner(address owner) public onlyWallet ownerDoesNotExist(owner) notNull(owner) validRequirement(owners.length + 1, required) { isOwner[owner] = true; owners.push(owner); OwnerAddition(owner); }
/// @dev Allows to add a new owner. Transaction has to be sent by wallet. /// @param owner Address of new owner.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 3327, 3619 ] }
3,535
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
removeOwner
function removeOwner(address owner) public onlyWallet ownerExists(owner) { isOwner[owner] = false; for (uint i=0; i<owners.length - 1; i++) if (owners[i] == owner) { owners[i] = owners[owners.length - 1]; break; } owners.length -= 1; if (re...
/// @dev Allows to remove an owner. Transaction has to be sent by wallet. /// @param owner Address of owner.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 3741, 4221 ] }
3,536
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
replaceOwner
function replaceOwner(address owner, address newOwner) public onlyWallet ownerExists(owner) ownerDoesNotExist(newOwner) { for (uint i=0; i<owners.length; i++) if (owners[i] == owner) { owners[i] = newOwner; break; } isOwner[owner] = false; ...
/// @dev Allows to replace an owner with a new owner. Transaction has to be sent by wallet. /// @param owner Address of owner to be replaced. /// @param owner Address of new owner.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 4420, 4889 ] }
3,537
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
changeRequirement
function changeRequirement(uint _required) public onlyWallet validRequirement(owners.length, _required) { required = _required; RequirementChange(_required); }
/// @dev Allows to change the number of required confirmations. Transaction has to be sent by wallet. /// @param _required Number of required confirmations.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 5059, 5278 ] }
3,538
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
submitTransaction
function submitTransaction(address destination, uint value, bytes data) public returns (uint transactionId) { transactionId = addTransaction(destination, value, data); confirmTransaction(transactionId); }
/// @dev Allows an owner to submit and confirm a transaction. /// @param destination Transaction target address. /// @param value Transaction ether value. /// @param data Transaction data payload. /// @return Returns transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 5539, 5794 ] }
3,539
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
confirmTransaction
function confirmTransaction(uint transactionId) public ownerExists(msg.sender) transactionExists(transactionId) notConfirmed(transactionId, msg.sender) { confirmations[transactionId][msg.sender] = true; Confirmation(msg.sender, transactionId); executeTransaction(transactionId); }
/// @dev Allows an owner to confirm a transaction. /// @param transactionId Transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 5899, 6257 ] }
3,540
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
revokeConfirmation
function revokeConfirmation(uint transactionId) public ownerExists(msg.sender) confirmed(transactionId, msg.sender) notExecuted(transactionId) { confirmations[transactionId][msg.sender] = false; Revocation(msg.sender, transactionId); }
/// @dev Allows an owner to revoke a confirmation for a transaction. /// @param transactionId Transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 6380, 6684 ] }
3,541
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
executeTransaction
function executeTransaction(uint transactionId) public notExecuted(transactionId) { if (isConfirmed(transactionId)) { Transaction tx = transactions[transactionId]; tx.executed = true; if (tx.destination.call.value(tx.value)(tx.data)) Execution(transactionId); ...
/// @dev Allows anyone to execute a confirmed transaction. /// @param transactionId Transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 6797, 7290 ] }
3,542
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
isConfirmed
function isConfirmed(uint transactionId) public constant returns (bool) { uint count = 0; for (uint i=0; i<owners.length; i++) { if (confirmations[transactionId][owners[i]]) count += 1; if (count == required) return true; } }
/// @dev Returns the confirmation status of a transaction. /// @param transactionId Transaction ID. /// @return Confirmation status.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 7441, 7795 ] }
3,543
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
addTransaction
function addTransaction(address destination, uint value, bytes data) internal notNull(destination) returns (uint transactionId) { transactionId = transactionCount; transactions[transactionId] = Transaction({ destination: destination, value: value, data: data, ...
/// @dev Adds a new transaction to the transaction mapping, if transaction does not exist yet. /// @param destination Transaction target address. /// @param value Transaction ether value. /// @param data Transaction data payload. /// @return Returns transaction ID.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 8133, 8603 ] }
3,544
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
getConfirmationCount
function getConfirmationCount(uint transactionId) public constant returns (uint count) { for (uint i=0; i<owners.length; i++) if (confirmations[transactionId][owners[i]]) count += 1; }
/// @dev Returns number of confirmations of a transaction. /// @param transactionId Transaction ID. /// @return Number of confirmations.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 8803, 9068 ] }
3,545
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
getTransactionCount
function getTransactionCount(bool pending, bool executed) public constant returns (uint count) { for (uint i=0; i<transactionCount; i++) if ( pending && !transactions[i].executed || executed && transactions[i].executed) count += 1; }
/// @dev Returns total number of transactions after filers are applied. /// @param pending Include pending transactions. /// @param executed Include executed transactions. /// @return Total number of transactions after filters are applied.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 9331, 9664 ] }
3,546
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
getOwners
function getOwners() public constant returns (address[]) { return owners; }
/// @dev Returns list of owners. /// @return List of owner addresses.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 9747, 9873 ] }
3,547
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
getConfirmations
function getConfirmations(uint transactionId) public constant returns (address[] _confirmations) { address[] memory confirmationsTemp = new address[](owners.length); uint count = 0; uint i; for (i=0; i<owners.length; i++) if (confirmations[transactionId][owners[i]]) { ...
/// @dev Returns array with owner addresses, which confirmed transaction. /// @param transactionId Transaction ID. /// @return Returns array of owner addresses.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 10052, 10648 ] }
3,548
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
getTransactionIds
function getTransactionIds(uint from, uint to, bool pending, bool executed) public constant returns (uint[] _transactionIds) { uint[] memory transactionIdsTemp = new uint[](transactionCount); uint count = 0; uint i; for (i=0; i<transactionCount; i++) if ( pending && !trans...
/// @dev Returns list of transaction IDs in defined range. /// @param from Index start position of transaction array. /// @param to Index end position of transaction array. /// @param pending Include pending transactions. /// @param executed Include executed transactions. /// @return Returns array of transaction IDs.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 11000, 11699 ] }
3,549
MultiSigWallet
MultiSigWallet.sol
0x615ed6779507f223d04722d43ccc0cd871964e2a
Solidity
MultiSigWallet
contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed trans...
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <stefan.george@consensys.net>
NatSpecSingleLine
createCoin
function createCoin() external onlyWallet { require(flag == true); CoinCreation(new Gifto()); flag = false; }
/// @dev Create new coin.
NatSpecSingleLine
v0.4.18+commit.9cf6e910
bzzr://891e8485538f16f2fa5b9af11f8c795bc62d51fb6455063a6ee3652fa7680f20
{ "func_code_index": [ 11737, 11906 ] }
3,550
AaveImport
contracts/exchangeV3/DFSExchangeHelper.sol
0x751961666d8605af1c5ee549205f822f47b04168
Solidity
DFSExchangeHelper
contract DFSExchangeHelper { using SafeERC20 for ERC20; address public constant KYBER_ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; address public constant WETH_ADDRESS = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address payable public constant WALLET_ID = 0x322d58b9E75a6918f7e7849AEe0f...
getFee
function getFee(uint256 _amount, address _user, address _token, uint256 _dfsFeeDivider) internal returns (uint256 feeAmount) { if (_dfsFeeDivider != 0 && Discount(DISCOUNT_ADDRESS).isCustomFeeSet(_user)) { _dfsFeeDivider = Discount(DISCOUNT_ADDRESS).getCustomServiceFee(_user); } if (_dfsFeeDivider ...
/// @notice Takes a feePercentage and sends it to wallet /// @param _amount Dai amount of the whole trade /// @param _user Address of the user /// @param _token Address of the token /// @param _dfsFeeDivider Dfs fee divider /// @return feeAmount Amount in Dai owner earned on the fee
NatSpecSingleLine
v0.6.12+commit.27d51765
MIT
ipfs://34c42220a035234e7357a4f4dce033d4f7741dd29565a8d77139b7fde50d3c09
{ "func_code_index": [ 1873, 2686 ] }
3,551
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { if (_a == 0) { return 0; } uint256 c = _a * _b; require(c / _a == _b); return c; } /** * @dev Integer division of two unsigned int...
mul
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { if (_a == 0) { return 0; } uint256 c = _a * _b; require(c / _a == _b); return c; }
/** * @dev Multiplies two unsigned integers, reverts on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 103, 268 ] }
3,552
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { if (_a == 0) { return 0; } uint256 c = _a * _b; require(c / _a == _b); return c; } /** * @dev Integer division of two unsigned int...
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.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 389, 655 ] }
3,553
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { if (_a == 0) { return 0; } uint256 c = _a * _b; require(c / _a == _b); return c; } /** * @dev Integer division of two unsigned int...
sub
function sub(uint256 _a, uint256 _b) internal pure returns (uint256) { require(_b <= _a); return _a - _b; }
/** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 783, 896 ] }
3,554
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { if (_a == 0) { return 0; } uint256 c = _a * _b; require(c / _a == _b); return c; } /** * @dev Integer division of two unsigned int...
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.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 970, 1100 ] }
3,555
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { if (_a == 0) { return 0; } uint256 c = _a * _b; require(c / _a == _b); return c; } /** * @dev Integer division of two unsigned int...
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.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 1244, 1357 ] }
3,556
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Ownable
contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; newOwner = address(0); } // allows execution by the owner only modifier onlyOwner() { require(msg.sender == ...
/* * Ownable * * Base contract with an owner. * Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner. */
Comment
transferOwnership
function transferOwnership(address _newOwner) public onlyOwner { require(_newOwner != address(0)); newOwner = _newOwner; }
/** @dev allows transferring the contract ownership the new owner still needs to accept the transfer can only be called by the contract owner @param _newOwner new contract owner */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 652, 778 ] }
3,557
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Ownable
contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; newOwner = address(0); } // allows execution by the owner only modifier onlyOwner() { require(msg.sender == ...
/* * Ownable * * Base contract with an owner. * Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner. */
Comment
acceptOwnership
function acceptOwnership() public onlyNewOwner { emit OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** @dev used by a new owner to accept an ownership transfer */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 854, 970 ] }
3,558
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
totalSupply
function totalSupply() public view returns (uint256) { return totalSupply_; }
/** * @dev Total number of tokens in existence */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 897, 977 ] }
3,559
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
_transfer
function _transfer(address _from, address _to, uint _value) internal { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_fr...
/** * @dev Transfer token for a specified addresses * @param _from The address to transfer from. * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 1181, 1569 ] }
3,560
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
transfer
function transfer(address _to, uint256 _value) public notFrozen(msg.sender) returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return tru...
/** * @dev Transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 1731, 2057 ] }
3,561
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
balanceOf
function balanceOf(address _holder) public view returns (uint256 balance) { return balances[_holder]; }
/** * @dev Gets the balance of the specified address. * @param _holder The address to query the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 2257, 2363 ] }
3,562
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public notFrozen(_from) returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); _transfer(_from, _to, _value); return true; }
/** * @dev Transfer tokens from one address to another. * Note that while this function emits an Approval event, this is not required as per the specification, * and other compliant implementations may not emit the event. * @param _from address The address which you want to send tokens from * @param _to addre...
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 2809, 3081 ] }
3,563
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to _spender the specified amount of tokens on behalf of msg.sender. * 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 * r...
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 3695, 3874 ] }
3,564
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
allowance
function allowance(address _holder, address _spender) public view returns (uint256) { return allowed[_holder][_spender]; }
/** * @dev Function to check the amount of tokens that an _holder allowed to a spender. * @param _holder address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 4195, 4322 ] }
3,565
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
freezeAccount
function freezeAccount(address _holder) public onlyOwner returns (bool) { require(!frozen[_holder]); frozen[_holder] = true; emit Freeze(_holder); return true; }
/** * Freeze Account. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 4358, 4527 ] }
3,566
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
unfreezeAccount
function unfreezeAccount(address _holder) public onlyOwner returns (bool) { require(frozen[_holder]); frozen[_holder] = false; emit Unfreeze(_holder); return true; }
/** * Unfreeze Account. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 4566, 4739 ] }
3,567
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
burn
function burn(uint256 _value) public onlyOwner returns (bool) { require(_value <= balances[msg.sender]); address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply_ = totalSupply_.sub(_value); emit Burn(burner, _value); return true; }
/** * Token Burn. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 4771, 5052 ] }
3,568
Treecle
Treecle.sol
0x0a9d68886a0d7db83a30ec00d62512483e5ad437
Solidity
Treecle
contract Treecle is ERC20, Ownable { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 internal initialSupply; uint256 internal totalSupply_; mapping(address => uint256) internal balances; mapping(address => bool) public frozen; mapping(address => mapping(ad...
isContract
function isContract(address addr) internal view returns (bool) { uint size; assembly{size := extcodesize(addr)} return size > 0; }
/** * @dev Internal function to determine if an address is a contract * @param addr The address being queried * @return True if `_addr` is a contract */
NatSpecMultiLine
v0.4.24+commit.e67f0147
None
bzzr://95748fa07458c5b3c131a227a282ace64e0b0ecddd929fea9ab17bee4e82a0a6
{ "func_code_index": [ 5530, 5671 ] }
3,569
OXG
contracts/Molecules.sol
0xc52bd5194e3163faf48ef482daa2af7e4af45ab8
Solidity
Molecules
contract Molecules is ERC721, Ownable { using SafeMath for uint256; using IterableMapping for IterableMapping.Map; using Counters for Counters.Counter; Counters.Counter private _tokenIds; address private _owner; address private _royaltiesAddr; // royality receiver uint256 public r...
buyToken
function buyToken(uint256 _tokenId) public payable { // check if the token id of the token being bought exists or not require(_exists(_tokenId)); // get the token's owner address tokenOwner = ownerOf(_tokenId); // token's owner should not be an zero address account require(tokenOwner != ad...
// by a token by passing in the token's id
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://20decf58842156897d98ab79d984540e98d9dc9d52eab19bc329196766f161a1
{ "func_code_index": [ 6938, 8481 ] }
3,570
OXG
contracts/Molecules.sol
0xc52bd5194e3163faf48ef482daa2af7e4af45ab8
Solidity
Molecules
contract Molecules is ERC721, Ownable { using SafeMath for uint256; using IterableMapping for IterableMapping.Map; using Counters for Counters.Counter; Counters.Counter private _tokenIds; address private _owner; address private _royaltiesAddr; // royality receiver uint256 public r...
_baseURI
function _baseURI() internal view virtual override(ERC721) returns (string memory) { return baseURL; }
/** Overrides ERC-721's _baseURI function */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://20decf58842156897d98ab79d984540e98d9dc9d52eab19bc329196766f161a1
{ "func_code_index": [ 8816, 8987 ] }
3,571
OXG
contracts/Molecules.sol
0xc52bd5194e3163faf48ef482daa2af7e4af45ab8
Solidity
Molecules
contract Molecules is ERC721, Ownable { using SafeMath for uint256; using IterableMapping for IterableMapping.Map; using Counters for Counters.Counter; Counters.Counter private _tokenIds; address private _owner; address private _royaltiesAddr; // royality receiver uint256 public r...
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721) { super._beforeTokenTransfer(from, to, tokenId); Molecule memory mol = allMolecules[tokenId]; require(mol.bonded == false,"Molecule is bonded!"); mol.currentOwner = to; m...
/** * @dev Hook that is called before any token transfer. This includes minting * and burning. * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
None
ipfs://20decf58842156897d98ab79d984540e98d9dc9d52eab19bc329196766f161a1
{ "func_code_index": [ 9506, 10358 ] }
3,572
OXG
contracts/Molecules.sol
0xc52bd5194e3163faf48ef482daa2af7e4af45ab8
Solidity
Molecules
contract Molecules is ERC721, Ownable { using SafeMath for uint256; using IterableMapping for IterableMapping.Map; using Counters for Counters.Counter; Counters.Counter private _tokenIds; address private _owner; address private _royaltiesAddr; // royality receiver uint256 public r...
bondMolecule
function bondMolecule(address account,uint256 _tokenId, uint256 nodeCreationTime) external onlyAuthorized { require(_exists(_tokenId), "token not found"); address tokenOwner = ownerOf(_tokenId); require(tokenOwner == account, "not owner"); Molecule memory mol = allMolecules[_tokenId]; require(m...
// upgrade contract to allow OXG Nodes to
LineComment
v0.8.7+commit.e28d00a7
None
ipfs://20decf58842156897d98ab79d984540e98d9dc9d52eab19bc329196766f161a1
{ "func_code_index": [ 12914, 13447 ] }
3,573
Gamblr
Gamblr.sol
0x2224e74ca3c8b21f5ac916717e5abcc01d99c55b
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owner = msg.se...
/** * @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) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); 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.24+commit.e67f0147
bzzr://006281bf94709051d36461c755688a9e8224b302a053fe882ebaa5205eb76fb0
{ "func_code_index": [ 673, 870 ] }
3,574
Gamblr
Gamblr.sol
0x2224e74ca3c8b21f5ac916717e5abcc01d99c55b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://006281bf94709051d36461c755688a9e8224b302a053fe882ebaa5205eb76fb0
{ "func_code_index": [ 89, 272 ] }
3,575
Gamblr
Gamblr.sol
0x2224e74ca3c8b21f5ac916717e5abcc01d99c55b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 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 numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://006281bf94709051d36461c755688a9e8224b302a053fe882ebaa5205eb76fb0
{ "func_code_index": [ 356, 629 ] }
3,576
Gamblr
Gamblr.sol
0x2224e74ca3c8b21f5ac916717e5abcc01d99c55b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://006281bf94709051d36461c755688a9e8224b302a053fe882ebaa5205eb76fb0
{ "func_code_index": [ 743, 859 ] }
3,577
Gamblr
Gamblr.sol
0x2224e74ca3c8b21f5ac916717e5abcc01d99c55b
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://006281bf94709051d36461c755688a9e8224b302a053fe882ebaa5205eb76fb0
{ "func_code_index": [ 923, 1059 ] }
3,578
AaveImport
contracts/mcd/saver/MCDSaverTaker.sol
0x751961666d8605af1c5ee549205f822f47b04168
Solidity
MCDSaverTaker
contract MCDSaverTaker is MCDSaverProxy, GasBurner { address payable public constant MCD_SAVER_FLASH_LOAN = 0xD0eB57ff3eA4Def2b74dc29681fd529D1611880f; address public constant AAVE_POOL_CORE = 0x3dfd23A6c5E8BbcFc9581d2E864a68feb6a076d3; ILendingPool public constant lendingPool = ILendingPool(0x398eC7346Dc...
// abstract contract ILendingPool { // function flashLoan( address payable _receiver, address _reserve, uint _amount, bytes calldata _params) external virtual; // }
LineComment
getMaxDebt
function getMaxDebt(uint256 _cdpId, bytes32 _ilk) public override view returns (uint256) { uint256 price = getPrice(_ilk); (, uint256 mat) = spotter.ilks(_ilk); (uint256 collateral, uint256 debt) = getCdpInfo(manager, _cdpId, _ilk); return sub(wdiv(wmul(collateral, price), mat), debt); }
/// @notice Gets the maximum amount of debt available to generate /// @param _cdpId Id of the CDP /// @param _ilk Ilk of the CDP
NatSpecSingleLine
v0.6.12+commit.27d51765
MIT
ipfs://34c42220a035234e7357a4f4dce033d4f7741dd29565a8d77139b7fde50d3c09
{ "func_code_index": [ 2748, 3078 ] }
3,579
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
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); /**...
/* @dev Interface of the ERC20 standard as defined in the EIP. */
Comment
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 94, 154 ] }
3,580
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
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); /**...
/* @dev Interface of the ERC20 standard as defined in the EIP. */
Comment
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 237, 310 ] }
3,581
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
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); /**...
/* @dev Interface of the ERC20 standard as defined in the EIP. */
Comment
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.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 534, 616 ] }
3,582
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
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); /**...
/* @dev Interface of the ERC20 standard as defined in the EIP. */
Comment
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.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 895, 983 ] }
3,583
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
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); /**...
/* @dev Interface of the ERC20 standard as defined in the EIP. */
Comment
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.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 1647, 1726 ] }
3,584
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
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); /**...
/* @dev Interface of the ERC20 standard as defined in the EIP. */
Comment
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.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 2039, 2175 ] }
3,585
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
Solidity
Ownable
contract Ownable is Context { address payable private _owner; address payable private _previousOwner; uint256 private _lockTime; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() { _owner = _msgSender(); ...
lock
function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = payable(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.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 1256, 1496 ] }
3,586
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
Solidity
Ownable
contract Ownable is Context { address payable private _owner; address payable private _previousOwner; uint256 private _lockTime; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() { _owner = _msgSender(); ...
unlock
function unlock() public virtual { require( _previousOwner == msg.sender, "You don't have permission to unlock" ); require( block.timestamp > _lockTime, "Contract is locked until defined days" ); emit OwnershipTransferred(_owner, _previousOwner); _owner ...
//Unlocks the contract for owner when _lockTime is exceeds
LineComment
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 1563, 1999 ] }
3,587
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
Solidity
Stealth
contract Stealth is Context, IERC20, Ownable { using SafeMath for uint256; // If you are reading this then welcome - this is where the work happens. // StealthStandard Check mapping (address => uint256) private _balances; mapping (address => uint256) private _firstBuy; mapping (address => ...
_transferFree
function _transferFree(address sender, address recipient, uint256 tAmount) private { _balances[sender] = _balances[sender].sub(tAmount); _balances[recipient] = _balances[recipient].add(tAmount); emit Transfer(sender, recipient, tAmount); }
// If we are doing a tax free Transfer that happens here after _transfer:
LineComment
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 9088, 9365 ] }
3,588
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
Solidity
Stealth
contract Stealth is Context, IERC20, Ownable { using SafeMath for uint256; // If you are reading this then welcome - this is where the work happens. // StealthStandard Check mapping (address => uint256) private _balances; mapping (address => uint256) private _firstBuy; mapping (address => ...
_tokenTransferTaxed
function _tokenTransferTaxed(address sender, address recipient, uint256 amount) private { _transferTaxed(sender, recipient, amount); }
// If we are doing a taxed Transfer that happens here after _transfer:
LineComment
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 9452, 9605 ] }
3,589
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
Solidity
Stealth
contract Stealth is Context, IERC20, Ownable { using SafeMath for uint256; // If you are reading this then welcome - this is where the work happens. // StealthStandard Check mapping (address => uint256) private _balances; mapping (address => uint256) private _firstBuy; mapping (address => ...
_justTakingProfits
function _justTakingProfits(uint256 sellAmount, address account) private view returns(bool) { // Basic cheak to see if we are selling more than 5% - if so return false if ((sellAmount * 20) > _balances[account]) { return false; } else { return true; } }
// Check to see if the sell amount is greater than 5% of tokens in a 7 day period
LineComment
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 10306, 10631 ] }
3,590
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
Solidity
Stealth
contract Stealth is Context, IERC20, Ownable { using SafeMath for uint256; // If you are reading this then welcome - this is where the work happens. // StealthStandard Check mapping (address => uint256) private _balances; mapping (address => uint256) private _firstBuy; mapping (address => ...
_getTaxedValue
function _getTaxedValue(uint256 transTokens, address account) private view returns(uint256){ uint256 taxRate = _getTaxRate(account); if (taxRate == 0) { return 0; } else { uint256 numerator = (transTokens * (10000 - (100 * taxRate))); return (((transTokens * 10000) - numerator)...
// Calculate the number of taxed tokens for a transaction
LineComment
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 10697, 11074 ] }
3,591
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
Solidity
Stealth
contract Stealth is Context, IERC20, Ownable { using SafeMath for uint256; // If you are reading this then welcome - this is where the work happens. // StealthStandard Check mapping (address => uint256) private _balances; mapping (address => uint256) private _firstBuy; mapping (address => ...
_getTaxRate
function _getTaxRate(address account) private view returns(uint256) { uint256 numHours = _getHours(_tradingStartTimestamp, block.timestamp); if (numHours <= 24){ // 20% Sell Tax first 24 Hours return 20; } else if (numHours <= 48){ // 16% Sell Tax second 24 ...
// Calculate the current tax rate.
LineComment
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 11117, 11906 ] }
3,592
Stealth
Stealth.sol
0x00000000f2cfa550ad4aae0f33bcaad5164900be
Solidity
Stealth
contract Stealth is Context, IERC20, Ownable { using SafeMath for uint256; // If you are reading this then welcome - this is where the work happens. // StealthStandard Check mapping (address => uint256) private _balances; mapping (address => uint256) private _firstBuy; mapping (address => ...
_getHours
function _getHours(uint256 startDate, uint256 endDate) private pure returns(uint256){ return ((endDate - startDate) / 60 / 60); }
// Calculate the number of hours that have passed between endDate and startDate:
LineComment
v0.8.6+commit.11564f7e
None
ipfs://d19ce80d824c23f20ef23ce6fa9664081761593819659a6fbe6272b3a7dedce6
{ "func_code_index": [ 11995, 12143 ] }
3,593
Registry
contracts/bprotocol/proxy/GnosisSafeProxy.sol
0xbf698df5591caf546a7e087f5806e216afed666a
Solidity
GnosisSafeProxy
contract GnosisSafeProxy { // masterCopy always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated. // To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt` address internal masterCopy;...
/// @title GnosisSafeProxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. /// @author Stefan George - <stefan@gnosis.io> /// @author Richard Meissner - <richard@gnosis.io>
NatSpecSingleLine
function () external payable { // solium-disable-next-line security/no-inline-assembly assembly { let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff) // 0xa619486e == keccak("masterCopy()"). The value is right padded to 32-bytes with 0s if eq(calld...
/// @dev Fallback function forwards all transactions and returns all received return data.
NatSpecSingleLine
v0.5.16+commit.9c3226ce
BSD-3-Clause
bzzr://d74ce75cda79cbf7cd7b9d07daee237c0b3a6d7a453cc770c29801429e3b35e9
{ "func_code_index": [ 732, 1562 ] }
3,594
AaveImport
contracts/compound/import/CompoundImportTaker.sol
0x751961666d8605af1c5ee549205f822f47b04168
Solidity
CompoundImportTaker
contract CompoundImportTaker is CompoundSaverHelper, ProxyPermission, GasBurner { ILendingPool public constant lendingPool = ILendingPool(0x398eC7346DcD622eDc5ae82352F02bE94C62d119); address payable public constant COMPOUND_IMPORT_FLASH_LOAN = 0xaf9f8781A4c39Ce2122019fC05F22e3a662B0A32; address public con...
/// @title Imports Compound position from the account to DSProxy
NatSpecSingleLine
importLoan
function importLoan(address _cCollateralToken, address _cBorrowToken) external burnGas(20) { address proxy = getProxy(); uint loanAmount = CTokenInterface(_cBorrowToken).borrowBalanceCurrent(msg.sender); bytes memory paramsData = abi.encode(_cCollateralToken, _cBorrowToken, msg.sender, proxy); givePer...
/// @notice Starts the process to move users position 1 collateral and 1 borrow /// @dev User must approve COMPOUND_IMPORT_FLASH_LOAN to pull _cCollateralToken /// @param _cCollateralToken Collateral we are moving to DSProxy /// @param _cBorrowToken Borrow token we are moving to DSProxy
NatSpecSingleLine
v0.6.12+commit.27d51765
MIT
ipfs://34c42220a035234e7357a4f4dce033d4f7741dd29565a8d77139b7fde50d3c09
{ "func_code_index": [ 807, 1474 ] }
3,595
AaveImport
contracts/compound/import/CompoundImportTaker.sol
0x751961666d8605af1c5ee549205f822f47b04168
Solidity
CompoundImportTaker
contract CompoundImportTaker is CompoundSaverHelper, ProxyPermission, GasBurner { ILendingPool public constant lendingPool = ILendingPool(0x398eC7346DcD622eDc5ae82352F02bE94C62d119); address payable public constant COMPOUND_IMPORT_FLASH_LOAN = 0xaf9f8781A4c39Ce2122019fC05F22e3a662B0A32; address public con...
/// @title Imports Compound position from the account to DSProxy
NatSpecSingleLine
getProxy
function getProxy() internal returns (address proxy) { proxy = ProxyRegistryInterface(PROXY_REGISTRY_ADDRESS).proxies(msg.sender); if (proxy == address(0)) { proxy = ProxyRegistryInterface(PROXY_REGISTRY_ADDRESS).build(msg.sender); } }
/// @notice Gets proxy address, if user doesn't has DSProxy build it /// @return proxy DsProxy address
NatSpecSingleLine
v0.6.12+commit.27d51765
MIT
ipfs://34c42220a035234e7357a4f4dce033d4f7741dd29565a8d77139b7fde50d3c09
{ "func_code_index": [ 1587, 1868 ] }
3,596
LPB
LPB.sol
0xe2f10801ba34935259dbe73edb756a196279bc3c
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() publ...
/** * @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) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); 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.23+commit.124ca40d
None
bzzr://fb49ca9ca41253408a485ab8cd21ff66618173d4e5f6bbf0e51bff5cd9196cc1
{ "func_code_index": [ 633, 798 ] }
3,597
LPB
LPB.sol
0xe2f10801ba34935259dbe73edb756a196279bc3c
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() publ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://fb49ca9ca41253408a485ab8cd21ff66618173d4e5f6bbf0e51bff5cd9196cc1
{ "func_code_index": [ 880, 985 ] }
3,598
LPB
LPB.sol
0xe2f10801ba34935259dbe73edb756a196279bc3c
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uin...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
None
bzzr://fb49ca9ca41253408a485ab8cd21ff66618173d4e5f6bbf0e51bff5cd9196cc1
{ "func_code_index": [ 81, 228 ] }
3,599