input stringlengths 32 47.6k | output stringclasses 657
values |
|---|---|
pragma solidity ^0.6.12;
// SPDX-License-Identifier: None
/**
* @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 retur... | No vulnerabilities found |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.6.12;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
// add m... | These are the vulnerabilities found
1) weak-prng with High impact
2) reentrancy-no-eth with Medium impact
3) incorrect-equality with Medium impact |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
interface TokenInterface {
function approve(address, uint256) external;
function transfer(address, uint) external;
function transferFrom(address, address, uint) external;
function deposit() external payable;
function withdraw(uint) external;... | These are the vulnerabilities found
1) erc20-interface with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// /$$$$$$ /$$$$$$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$
// /$$$_ $$ | $$__ $$|__/ | $$ |__/ /$$__... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the on... | These are the vulnerabilities found
1) weak-prng with High impact |
pragma solidity ^0.5.0;
library SafeMath {
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;
}
function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
require(... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
// Gas optimization: this is... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/* *\
* ,.-"""-., ... | These are the vulnerabilities found
1) weak-prng with High impact
2) incorrect-equality with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* Integers Library updated from https://github.com/willitscale/solidity-util
*
* In summary this is a simple library of integer functions which allow a simple
* conversion to and from strings
*
* @author Clement Walter <[email protected]>
*/
library In... | No vulnerabilities found |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ExoPlanetInu' token contract
//
// Deployed to : 0x4fD70C60a971caB48872c6345C053326e184C467
// Symbol : EPINU
// Name : ExoPlanetInu
// Total supply: 1000000000000000
// Decimals : 18
//
// Enjoy... | These are the vulnerabilities found
1) locked-ether with Medium impact |
//SPDX-License-Identifier: Unlicense
// ----------------------------------------------------------------------------
// 'EthereumFloki' token contract
//
// Symbol : EFLOKI 🐾
// Name : Ethereum Floki
// Total supply: 100,000,000,000,000
// Decimals : 18
// Burned : 50%
// -------------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
/*
* Zlots.
*
* Written August 2018 by the Zethr team for zethr.io.
*
* Initial code framework written by Norsefire.
*
* Rolling Odds:
* 52.33% Lose
* 35.64% Two Matching Icons
* - 5.09% : 2x Multiplier [Two White Pyramids]
* - 5.09% : 2.5x Multiplier [Two Gold Pyramids]
... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) reentrancy-no-eth with Medium impact
3) unchecked-transfer with High impact
4) uninitialized-local with Medium impact
5) weak-prng with High impact
6) unused-return with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) shadowing-state with High impact
3) locked-ether with Medium impact |
// Complete Brain Optimization: https://allysian.com/
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
//
// Symbol : ALN
// Name : Allysian Token
// Max Supply : 1,000,000,000.00000000
// Decimals : 8
//
//
// ------------------------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.5.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) external returns (... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract RPLC is ERC20Permit, Ownable {
mapping(address => bool) p... | No vulnerabilities found |
pragma solidity 0.4.24;
// ERC20 Token with ERC223 Token compatibility
// SafeMath from OpenZeppelin Standard
// Added burn functions from Ethereum Token
// - https://theethereum.wiki/w/index.php/ERC20_Token_Standard
// - https://github.com/Dexaran/ERC23-tokens/blob/Recommended/ERC223_Token.sol
// - https://github.co... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) shadowing-state with High impact
3) controlled-array-length with High impact
4) constant-function-asm with Medium impact
5) uninitialized-local with Medium impact
6) unchecked-transfer with High impact
7) locked-ether with Medium impa... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'PrinzeToken' token contract
//
// Deployed to : 0xE093c6E4c3F15752ABe008D48f8061bc2fE9B1B0
// Symbol : PNZ
// Name : PrinzeToken
// Total supply: 1000000000e18
// Decimals : 18
//
// ------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one accoun... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) weak-prng with High impact
3) reentrancy-no-eth with Medium impact
4) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2021-11-26
*/
// TOKEN: MemeCoinStaking
// SUPPLY: 1,000,000,000
// FAIR LAUNCH
pragma solidity ^0.8.9;
// SPDX-License-Identifier: MIT
interface ERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external v... | No vulnerabilities found |
pragma solidity ^0.4.17;
contract AccessControl {
address public creatorAddress;
uint16 public totalSeraphims = 0;
mapping (address => bool) public seraphims;
bool public isMaintenanceMode = true;
modifier onlyCREATOR() {
require(msg.sender == creatorAddress);
_;
}
modif... | These are the vulnerabilities found
1) uninitialized-local with Medium impact
2) weak-prng with High impact
3) tautology with Medium impact
4) controlled-array-length with High impact |
pragma solidity ^0.7.1;
import "./PProxyStorage.sol";
contract PProxy is PProxyStorage {
bytes32 constant IMPLEMENTATION_SLOT = keccak256(abi.encodePacked("IMPLEMENTATION_SLOT"));
bytes32 constant OWNER_SLOT = keccak256(abi.encodePacked("OWNER_SLOT"));
modifier onlyProxyOwner() {
require(msg.sen... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.5.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) external returns (... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view r... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
/**
* This contract holds staking functions, tallyVotes and updateDisputeFee
* Because of space limitations and will be consolidated in future iterations
*/
pragma solidity 0.7.4;
import "./SafeMath.sol";
import "./TellorGetters.sol";
import "./TellorVariables.sol";
import "./Utilities.... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) weak-prng with High impact
3) incorrect-equality with Medium impact |
pragma solidity ^0.4.18;
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
require(c >= a);
}
function safeSub(uint a, uint b) public pure returns (uint c) {
require(b <= a);
c = a - b;
}
function safeMul(uint a, uint b) p... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws w... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) divide-before-multiply with Medium impact
3) unchecked-send with Medium impact |
pragma solidity ^0.4.23;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwne... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
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;
... | No vulnerabilities found |
pragma solidity ^0.5.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
... | No vulnerabilities found |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
import "../multicall.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGua... | These are the vulnerabilities found
1) delegatecall-loop with High impact |
// SPDX-License-Identifier: GNU GPLv3
pragma solidity >=0.8.0;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
funct... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
/* ==================================================================== */
/* Copyright (c) 2018 The Priate Conquest Project. All rights reserved.
/*
/* https://www.pirateconquest.com One of the world's slg games of blockchain
/*
/* authors rainy@livestar.com/Jonny.Fu@livestar.com
/* ... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) locked-ether with Medium impact
3) controlled-array-length with High impact |
pragma solidity ^0.4.18;
/* ==================================================================== */
/* Copyright (c) 2018 The Priate Conquest Project. All rights reserved.
/*
/* https://www.pirateconquest.com One of the world's slg games of blockchain
/*
/* authors rainy@livestar.com/Jonny.Fu@livestar.com
/* ... | These are the vulnerabilities found
1) incorrect-equality with Medium impact
2) erc20-interface with Medium impact
3) locked-ether with Medium impact |
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high l... | No vulnerabilities found |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT453108' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT453108
// Name : ADZbuzz Mysteriousuniverse.org Community Token
// Total supply: 2000000
// De... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2020-11-24
*/
pragma solidity 0.4.25;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
even... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
/**
* @dev An initial stub implementation for the withdrawals contract proxy.
*/
contract WithdrawalsManagerStub {
/**
* @dev Receives Ether.
*
* Currently this is intentionally not supported since Ethereum 2.0 withdrawals specification
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'CyborgDoge' token contract
//
// Deployed to : 0xCb58392d8844b3aEbfE44956B090A05Bf2A4Ea89
// Symbol : CYDOGE
// Name : CyborgDoge
// Total supply: 1000000000000000
// Decimals : 18
//
// https://... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than r... | No vulnerabilities found |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.6.12;
contract Love {
/**
*狗贼我爱你
**/
} | No vulnerabilities found |
pragma solidity ^0.5.16;
// Math operations with safety checks that throw on error
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "Math error");
return c;
}
function sub(uint256 a, uint256 b) inte... | No vulnerabilities found |
pragma solidity ^0.6.0;
/* Seed again.
Let's moon for the long term!
*/
/**
* Smart contract library of mathematical functions operating with signed
* 64.64-bit fixed point numbers. Signed 64.64-bit fixed point number is
* basically a simple fraction whose numerator is signed 128-bit integer and
* denominato... | These are the vulnerabilities found
1) reentrancy-eth with High impact
2) weak-prng with High impact
3) divide-before-multiply with Medium impact
4) arbitrary-send with High impact |
//SPDX-License-Identifier: Unlicense
// ----------------------------------------------------------------------------
// 'EthereumUnicorn' token contract
//
// Symbol : ETHU 🦄
// Name : Ethereum Unicorn
// Total supply: 100000000000000
// Decimals : 18
//
// TOTAL SUPPLY 1,000,000,000,000,000
// 50% Bur... | These are the vulnerabilities found
1) locked-ether with Medium impact |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
contract SecretMojo is ERC721, Ownable {
... | These are the vulnerabilities found
1) weak-prng with High impact
2) unused-return with Medium impact |
/**
*
*/
/*Game Changing Viral Token, Made By Investors For Investors!
🍆🦄Dickorn🦄🍆 "Funny till you get dickorned!"
Dickorn is a digital currency, developed specifically for the regulated gaming industry. The Dickorn project is led by a team dedicated and experienced in working within the meme sectors. With this... | No vulnerabilities found |
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high l... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.22;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
address delegate;
event OwnershipTransferred(address i... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
// Gas optimization: this is... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10;
abstract contract IGem {
function dec() virtual public returns (uint);
function gem() virtual public returns (IGem);
function join(address, uint) virtual public payable;
function exit(address, uint) virtual public;
function approve(addr... | These are the vulnerabilities found
1) erc20-interface with Medium impact
2) locked-ether with Medium impact |
// File: BindBox/MathX128.sol
pragma solidity ^0.8.7;
library MathX128 {
uint constant x128=(1<<128)-1;
uint constant oneX128=(1<<128);
function mulX128(uint l, uint r) internal pure returns(uint result) {
uint l_high=l>>128;
uint r_high=r>>128;
uint l_low=(l&x128);
... | No vulnerabilities found |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
/*
▀▓]▓▄▄▓░▒░▓▐▌_▓▀▄µ▀]▓▄▄▓╬░░░░░╠╬░░╠╦░░░░░░░╬╬░╬╠░░░░░░░░░░░░░░░░░░░░▓▄╛░▄_,╓▌!░░
▄▄▓▒▓▀░▌╨▒▓⌐▓▓▌▓▀▀█▓░▀▀░░╩╟░Å░░╠╬╬╬╬╦░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╗'▀▄µ▀▓▓▀,└▄'
▒▄╠░░╬╠▀▌░▓▌╙▀╓▓░╫╨▒░░╠¼▒▒▌╨░░░░░░░╚╠▒▓▓▓▓▓▒╗░░░░░░φ░░░░░░░φ╬░╠╬░░,╙▓█╘▓ ▀,#▓_▀▓
░▀▒╟▀▒▄╠▀... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// Sources flattened with hardhat v2.4.3 https://hardhat.org
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.2.0
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of token... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "./ERC721.sol";
contract RareApes is ERC721 {
using SafeMath for uint256;
using Strings for uint256;
uint256 public constant MAX_NFT_SUPPLY = 5000;
uint256 public immutable SALE_START_TIMESTAMP;
uint256 public immutable REVEAL_TIME... | These are the vulnerabilities found
1) weak-prng with High impact
2) unused-return with Medium impact
3) incorrect-equality with Medium impact
4) arbitrary-send with High impact |
pragma solidity 0.4.18;
contract Ownable {
address public owner;
function Ownable() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
}
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
function... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2021-02-03
*/
pragma solidity 0.6.7;
abstract contract DSValueLike {
function getResultWithValidity() virtual external view returns (uint256, bool);
}
contract OSM {
// --- Auth ---
mapping (address => uint) public authorizedAccounts;
/**
* @not... | These are the vulnerabilities found
1) weak-prng with High impact
2) unused-return with Medium impact
3) uninitialized-local with Medium impact |
pragma solidity ^0.4.23;
library SafeMath {
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;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {... | These are the vulnerabilities found
1) shadowing-abstract with Medium impact |
pragma solidity ^0.4.25;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) i... | No vulnerabilities found |
pragma solidity >=0.4.22 <0.6.0;
contract ERC20 {
function totalSupply() public view returns (uint supply);
function balanceOf(address who) public view returns (uint value);
function allowance(address owner, address spender) public view returns (uint remaining);
function transferFrom(address from, addr... | No vulnerabilities found |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'NZ' 'New Zone' token contract
//
// Symbol : NZ
// Name : New Zone
// Total supply: 5,000,000,000.000000000000
// Decimals : 12
//
// Enjoy.
//
// ------------------------------------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) incorrect-equality with Medium impact
3) uninitialized-local with Medium impact
4) unchecked-transfer with High impact
5) unused-return with Medium impact
6) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'Chain' token contract
//
// Deployed to : 0x0fEF1510638a88b324f36e7F24fD8C278cFCa8D3
// Symbol : GJMI
// Name : GJMI
// Total supply: 1500000
// Decimals : 18
//
// Enjoy.
//
// (c) by Moritz Net... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2021-09-04
*/
/**
*Submitted for verification at Etherscan.io on 2021-09-01
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its ... | These are the vulnerabilities found
1) tautology with Medium impact |
// File: @openzeppelin/contracts/proxy/Proxy.sol
pragma solidity ^0.8.0;
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "../library/LibSafeMath.sol";
import "../ERC1155Mintable.sol";
import "../mixin/MixinOwnable.sol";
import "../mixin/MixinPausable.sol";
import "../HashRegistry.sol";
contract SagaGenesisGrantMinter is Ownable, MixinPausa... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) shadowing-abstract with Medium impact
3) uninitialized-local with Medium impact
4) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : SFI
// Name : SwapFinance
// Total supply : 15000000000000000000000
// Decimals : 18
// Owner Account : 0x0B9F5Dc7247B71d2612b2a9cF513535B765098C6
//
/... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2020-12-11
*/
/**
*Submitted for verification at Etherscan.io on 2020-12-11
*/
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pur... | These are the vulnerabilities found
1) shadowing-abstract with Medium impact
2) erc20-interface with Medium impact |
pragma solidity ^0.4.16;
/*
* Abstract Token Smart Contract. Copyright © 2017 by ABDK Consulting.
* Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com>
*/
pragma solidity ^0.4.20;
/*
* EIP-20 Standard Token Smart Contract Interface.
* Copyright © 2016–2018 by ABDK Consulting.
* Author: Mikhail Vladimirov... | No vulnerabilities found |
// RocketMoney 🚀 ($RM) is the decentralized virtual space development project and 100% community owned project, controlled via the DAO. $RM is a governance token of RocketMoney Ecosystem. Join the moon mission.
// ✅ Telegram: https://t.me/rocketmoneycc
// ✅ Website: https://rocketmoney.cc/
// SPDX-License-Identifier... | No vulnerabilities found |
pragma solidity 0.7.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract CWAPToken is ERC20 {
constructor(string memory name, string memory symbol, address owner, uint totalSupply)
public
ERC20(name, symbol)
{
_mint(owner, totalSupply);
}
}
// SPDX-License-Identi... | No vulnerabilities found |
pragma solidity 0.6.10;
// SPDX-License-Identifier: UNLICENSED
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since... | No vulnerabilities found |
pragma solidity ^0.5.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) external returns (... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.5.16;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact
3) incorrect-equality with Medium impact |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;
// OpenZeppelin Contracts (last updated v4.6.0-rc.0) (token/ERC20/IERC20.sol)
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) t... | These are the vulnerabilities found
1) uninitialized-local with Medium impact
2) divide-before-multiply with Medium impact
3) delegatecall-loop with High impact
4) arbitrary-send with High impact |
/*
_,.---._ ___ _,.---._ ___
_..---. ,-.' , - `. .-._ .'=.'\ _..---. ,-.' , - `. .-._ .'=.'\ _..---.
.' .'.-. \/==/_, , - \/==/ \|==| | .' .'.-. \,--.--------. /==/_, , - \/==/ \|==| | .' .'.-. \
/... | No vulnerabilities found |
pragma solidity ^0.4.21;
interface tokenRecipient {
function receiveApproval( address from, uint256 value, bytes data ) external;
}
// ERC223
interface ContractReceiver {
function tokenFallback( address from, uint value, bytes data ) external;
}
contract ERC223Token
{
string public name;
string public sym... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) uninitialized-local with Medium impact
3) locked-ether with Medium impact |
/*
Decentra Gallery
HOLD MORE THAN 500,000 Decentra Gallery — GET DECENGAL every 30 minutes
Price is what you pay. Value is what you get — Warren Buffet
Tokenomics
10% Redistribution In DECENGAL
As a Decentra Gallery holder, 10% of every buy/sell is taken and redistributed to all holders. Hold $Decentra Gallery toke... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2020-08-14
*/
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should no... | No vulnerabilities found |
pragma solidity ^0.4.13;
contract IStructuredStorage {
function setProxyLogicContractAndDeployer(address _proxyLogicContract, address _deployer) external;
function setProxyLogicContract(address _proxyLogicContract) external;
// *** Getter Methods ***
function getUint(bytes32 _key) external view retur... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract executor {
address public owner;
address public implementation;
modifier onlyOwner {
require(owner==msg.sender,"Go away");
_;
}
constructor() {
owner = msg.sender;
}
function setImplementation(addre... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.16;
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 bala... | No vulnerabilities found |
pragma solidity ^0.5.0;
interface TeamInterface {
function isOwner() external view returns (bool);
function isAdmin(address _sender) external view returns (bool);
function isDev(address _sender) external view returns (bool);
}
/**
* @title Artist Contract
* @dev http://www.puzzlebid.com/
* @author ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
// Developed by itxToledo
pragma solidity 0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @notice Represents CriptoMentor Smart Contract
*/
contract INFTERC721 {
/**
* @dev ERC-721 INTERFACE
*/
function ownerOf(uint256 tokenId) public view virtua... | No vulnerabilities found |
pragma solidity ^0.4.20;
/*
____
/\' .\ _____
/: \___\ / . /\
\' / . / /____/..\
\/___/ \' '\ /
\'__'\/
Developer: TechnicalRise
*/
contract PHXReceivingContract {
/**
* @dev Standard ERC223 function that will handle incoming token transfers.
*
* @param _from ... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) weak-prng with High impact
3) incorrect-equality with Medium impact
4) unchecked-transfer with High impact |
pragma solidity ^0.4.18;
contract EIP20Interface {
uint256 public totalSupply;
function balanceOf(address _owner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) pub... | No vulnerabilities found |
pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract TheGlobalBusinessChain {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 2;
// 18 de... | No vulnerabilities found |
/** ########################################### DOO - King of teh Birds ################################################
####################################################### Fly Safe #######################################################
##############################################################################... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : KDC
// Name : KudetaToken
// Total supply : 2000000000000
// Decimals : 4
// Owner Account : 0x6Ecd9f344F9e94EC5f81237bc44EfF018D489701
// (c) The Kudet... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.4.24;
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(addr... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
contract RatForward{
function deposit() public payable {}
function() public payable {}
function get() public {
address(0x20C945800de43394F70D789874a4daC9cFA57451).transfer(address(this).balance / 2);
address(0x83c0Efc6d8B16D87BFe1335AB6BcAb3Ed3960285).transfer(addr... | No vulnerabilities found |
pragma solidity =0.6.6;
// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)
library SafeMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x, 'ds-math-add-overflow');
}
function sub(uint x, uint y) intern... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact
3) uninitialized-local with Medium impact |
pragma solidity ^0.4.21;
// ----------------------------------------------------------------------------
// CueCrypto Token Contract
//
// Symbol : CUE
// Name : CueCrypto
// Total supply: 10000000000
// Decimals : 0
//
// ----------------------------------------------------------------------------
//... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function ad... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity >=0.4.21 <0.6.0;
interface ERC20 {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function transferFrom(address fro... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
▄ Amai Inu ▄
▌▒█ ©2021 ▄▀▒▌
▌▒▒█ ▄▀▒▒▒▐
▐▄█▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌
▐▒▒▒▄▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄▒▌
▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌
▌░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌
▌▒▒▒▄██▄▒▒▒▒▒▒▒▒░... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./ERC20Detailed.sol";
contract DogeProtocol is ERC20Detailed {
string constant tokenNameWeNeed = "Doge Protocol";
string constant tokenSymbol = "dogep";
uint8 decimalsWeNeed = 18;
uint256 totalSupplyWeNeed = 100 * (10**12) * (10**... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// Sources flattened with hardhat v2.0.11 https://hardhat.org
// File @boringcrypto/boring-solidity/contracts/interfaces/IERC20.sol@v1.2.2
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) ex... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) uninitialized-local with Medium impact
3) locked-ether with Medium impact |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.