input stringlengths 32 47.6k | output stringclasses 657
values |
|---|---|
pragma experimental ABIEncoderV2;
// File: Address.sol
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) locked-ether with Medium impact |
// ----------------------------------------------------------------------------
// 'OPN' token contract
//
// Deployed to : 0xd21B0C87fc63a876E5eE2dC82D777aFBA9d4a5e5
// Symbol : OPN
// Name : OpnMind
// Total supply: 33428795
// Decimals : 2
//
// Enjoy.
//
// (c) by Moritz Neto with BokkyPooBah / Bok... | These are the vulnerabilities found
1) locked-ether with Medium impact |
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_;
}
function transferOwnership(address newOwner) onlyOwner {
owner = newOwner;
}
}
contract MyToken is ow... | These are the vulnerabilities found
1) unchecked-send with Medium impact
2) erc20-interface with Medium impact |
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @notice s... | No vulnerabilities found |
contract BitSTDLogic {
function name()constant public returns(string) {}
function symbol()constant public returns(string) {}
function decimals()constant public returns(uint8) {}
function totalSupply()constant public returns(uint256) {}
function allowance(address add,address _add)constant public returns(uin... | These are the vulnerabilities found
1) erc20-interface with Medium impact
2) locked-ether with Medium impact |
/**
* @title SafeMath
* @dev Math operations that are safe for uint256 against overflow and negative values
* @dev https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) locked-ether with Medium impact |
// 'GeXCHANGE' token contract
//
// Deployed to : 0xf82bd0F91D4b5A9f96287363A3534C81Cdb94afA
// Symbol : GEXEC
// Name : GeXCHANGE
// Total supply: 400000000
// Decimals : 18
// Safe maths
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
... | These are the vulnerabilities found
1) arbitrary-send with High impact
2) locked-ether with Medium impact |
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence... | These are the vulnerabilities found
1) unused-return with Medium impact
2) locked-ether with Medium impact |
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @de... | No vulnerabilities found |
pragma experimental ABIEncoderV2;
interface ERC20 {
function totalSupply() external view returns(uint supply);
function balanceOf(address _owner) external view returns(uint balance);
function transfer(address _to, uint _value) external returns(bool success);
function transferFrom(address _from, addr... | These are the vulnerabilities found
1) weak-prng with High impact
2) uninitialized-local with Medium impact |
contract META {
string public name = "Dunaton Metacurrency";
uint8 public decimals = 18;
string public symbol = "META";
address public _owner;
address public dev = 0xC96CfB18C39DC02FBa229B6EA698b1AD5576DF4c;
uint256 _tokePerEth = 156;
uint256 weIn;
uint public _totalSupply = 21000000;... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) tautology with Medium impact
3) unchecked-send with Medium impact
4) erc20-interface with Medium impact
5) uninitialized-local with Medium impact |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.