input stringlengths 32 47.6k | output stringclasses 657
values |
|---|---|
pragma solidity ^0.4.24;
//Safe Math Interface
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;
}
fun... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.6.12;
// File: RuneProtocolERC20.sol
pragma solidity =0.6.12;
// File: libraries/SafeMath.sol
pragma solidity =0.6.12;
// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)
library SafeMathRuneProtocol {
... | These are the vulnerabilities found
1) weak-prng with High impact
2) reentrancy-no-eth with Medium impact
3) incorrect-equality with Medium impact |
/*
____ _ _
| _ \ _ _ _ __ | | ____ _____ __ _ _ __ | |_ ___ _ __ ___
| |_) | | | | '_ \| |/ /\ \ /\ / / _ \/ _` | '__| | __/ _ \| '_ \/ __|
| __/| |_| | | | | < \ V V / __/ (_| | | | || (_) | |_) \__ \
|_| \__,_|_| |_|_|\_\ \_/\_/ ... | These are the vulnerabilities found
1) uninitialized-local with Medium impact
2) weak-prng with High impact
3) tautology with Medium impact |
/**
Kanni Inu
Join here:- https://t.me/KanniInu
*/
pragma solidity >=0.5.17;
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spender) public view returns (uin... | No vulnerabilities found |
pragma solidity 0.4.25;
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 re... | No vulnerabilities found |
pragma solidity >=0.7.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./IMintedBeforeReveal.sol";
contract CryptoNuggets is ERC721, Ownable, IMintedBeforeReveal {
// This is the provenance record of all CRYPTO NUGGETS in existence. The provenance will be updated once metadata is live at launch.
st... | These are the vulnerabilities found
1) weak-prng with High impact
2) incorrect-equality with Medium impact
3) unused-return with Medium impact |
pragma solidity ^0.4.20;
library SafeMathLib {
function plus(uint a, uint b) internal pure returns (uint) {
uint c = a + b;
assert(c>=a && c>=b);
return c;
}
}
contract GenderGuess {
using SafeMathLib for uint;
address public manager;
uint public enddate;
uint... | These are the vulnerabilities found
1) weak-prng with High impact |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.6.0;
import "SafeMath.sol";
import "ReentrancyGuard.sol";
import "TransferHelper.sol";
contract Stake is ReentrancyGuard {
using SafeMath for uint256;
address token;
address private owner;
uint256 public stakePeriod;
uint256 public... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) uninitialized-local with Medium impact
3) locked-ether with Medium impact |
pragma solidity ^0.5.0;
/**
* @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 (uint... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2021-09-03
*/
/**
*Submitted for verification at Etherscan.io on 2021-08-18
*/
/**
*Submitted for verification at Etherscan.io on 2021-06-18
*/
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8... | These are the vulnerabilities found
1) weak-prng with High impact
2) incorrect-equality with Medium impact
3) unused-return with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'WeatherToken' token contract
//
// Deployed to : 0x93A66e1884A668299A58871F8D30c5BD2b3c773e
// Symbol : wetr
// Name : WeatherToken
// Total supply: 10000000000
// Decimals : 18
//
// Enjoy.
//
/... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT221173' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT221173
// Name : ADZbuzz Simplyrecipes.com Community Token
// ... | 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 |
pragma solidity ^0.4.21;
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) reentrancy-no-eth with Medium impact
3) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
// Amended by HashLips
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces,... | 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.5.16;
interface IAtariswapFactory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) ext... | 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.5.16;
pragma experimental ABIEncoderV2;
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree.... | No vulnerabilities found |
/**
*Submitted for verification at Etherscan.io on
*/
//SPDX-License-Identifier: UNLICENSED
/*
___ ____ _ ________ _____ _____ ____ ____ _____ ____ _____ _____ _____
|_ ||_ _| / \ | __ _||_ _||_ _||_ \ / _||_ _||_ \|_ _||_ _||_ _|
| |_/ / / _ \ ... | No vulnerabilities found |
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) incorrect-equality with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
/**
$UNIVERSE (Unicorn Metaverse) is a utility bridge between Rarity Garden and The Otherside Metaverse.
Rarity Garden aims at offering a one-stop shop for tools that help you to succeed on The Otherside... | No vulnerabilities found |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// ATR token contract
//
// Symbol : ATR
// Name : Atrium
// Total supply : 200000000000000000
// Decimals : 8
// Owner Account : 0xf0D0356D7cf77645694D3Eab156Eeca26B2A0B85
//
// Enjoy.
//
// ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'AriesToken' token contract
//
// Deployed to : 0x6666C9cD810D713eB9E70443e8E44C27f0E37ec8
// Symbol : ARS
// Name : Aries Token
// Total supply: 10000000000
// Decimals : 18
//
// Enjoy.
//
// (c... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// File: contracts/interfaces/IUniswapV2Pair.sol
pragma solidity >=0.5.0;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
... | 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.4.18;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
requi... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.6.12;
// SPDX-License-Identifier: Unlicensed
interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Move... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) incorrect-equality with Medium impact
3) locked-ether with Medium impact |
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.7;
import "./ERC20.sol";
import "./ERC721.sol";
// ___ _ _ ___
// | __| |_| |_ ___ _ _ / _ \ _ _ __ ___
// | _|| _| ' \/ -_) '_| | (_) | '_/ _(_-<
// |___|\__|_||_\___|_| \___/|_| \__/__/
//
interface MetadataHandlerL... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) divide-before-multiply with Medium impact
3) reentrancy-no-eth with Medium impact
4) incorrect-equality with Medium impact
5) weak-prng with High impact |
pragma solidity ^0.4.16;
contract ForeignToken {
function balanceOf(address _owner) public constant returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
}
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint2... | These are the vulnerabilities found
1) shadowing-abstract with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT222756' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT222756
// Name : ADZbuzz Slashfilm.com Community Token
// Tota... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './AMPowerPassCore.sol';
contract MetaciplesGoldPowerPass is AMPowerPassCore{
string public name = "Metaciples: Gold Power-Pass";
string public symbol = "AM: M:G";
constructor()
Delegated()
AM1155Base(""){
setToken( 0,
"Metacipl... | These are the vulnerabilities found
1) unused-return with Medium impact
2) msg-value-loop with High impact
3) uninitialized-local with Medium impact |
// SPDX-License-Identifier: MIT
/**
* @authors: [@ferittuncer]
* @reviewers: [@unknownunknown1*, @hbarcelos, @MerlinEgalite, @shalzz, @fnanni-0, @clesaege, @jaybuidl]
* @auditors: []
* @bounties: []
* @deployments: []
*/
pragma solidity ^0.7.0;
import "./IRealitio.sol";
import "./RealitioArbitratorWithApp... | These are the vulnerabilities found
1) reentrancy-eth with High impact
2) unchecked-send with Medium impact
3) arbitrary-send with High impact |
pragma solidity ^0.4.21;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(addr... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library _SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
contract Phillionex {
uint256 public totalSupply = 55*10**27;
string public name = "Phillionex";
uint8 public decimals = 18;
string public symbol = "PHN";
mapping (address => uint256) balances;
event Transfer(address indexed _from, address indexed _to, uint256 _value);... | These are the vulnerabilities found
1) locked-ether with Medium impact |
//SPDX-License-Identifier: None
pragma solidity ^0.8.0;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {BoringBatchable} from "./fork/BoringBatchable.sol";
interface Factory {
function parameter() ext... | These are the vulnerabilities found
1) reentrancy-eth with High impact
2) delegatecall-loop with High impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
requi... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.26;
contract SafeMath {
function safeAdd(uint256 a, uint256 b) public pure returns (uint256 c) {
c = a + b;
require(c >= a);
}
function safeSub(uint256 a, uint256 b) public pure returns (uint256 c) {
require(b <= a);
c = a - b;
}
function safeMu... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.23;
contract DelegateProvider {
function getDelegate() public view returns (address delegate);
}
contract DelegateProxy {
/**
* @dev Performs a delegatecall and returns whatever the delegatecall returned (entire context execution will return!)
* @param _dst Destination address to perf... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) locked-ether with Medium impact |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// token contract
//
// Symbol : CHUCK
// Name : Chuck Norris Token
// Total supply : 100000000000000000
// Decimals : 7
// Owner Account : 0xDc4f4BC717c527E654fb3dB56D9A55b9aafe1098
//------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.7.0;
// SPDX-License-Identifier: MIT
contract Owned {
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
address owner;
address newOwner;
function changeOwner(address payable _newOwner) public onlyOwner {
newOwner = _newOwner;
}
function acc... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.20;
// ----------------------------------------------------------------------------
// 'IVNT1' token contract
//
// Deployed to : 0x7c0bd45E0716Ed8D4cead2cec3B2183AB7E5542f
// Symbol : IVNT1
// Name : IVNT1 Token
// Total supply: 96900000000
// Decimals : 18
// ---------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
//SPDX-License-Identifier: MIT
/*
* PayPal (Official)
*/
pragma solidity 0.6.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256... | No vulnerabilities found |
pragma solidity ^0.4.21;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) reentrancy-no-eth with Medium impact
3) tautology 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;
// ----------------------------------------------------------------------------
// 'ACT882758' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT882758
// Name ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.6.0;
// File: @openzeppelin/contracts-upgradeable/proxy/Initializable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.24 <0.7.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied cont... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract FuckingPickles is ERC721Enumerable, Ownable {
uint public c... | These are the vulnerabilities found
1) weak-prng with High impact
2) unused-return 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 |
// File: contracts/AnonymiceLibrary.sol
pragma solidity ^0.8.0;
library AnonymiceLibrary {
string internal constant TABLE =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
function encode(bytes memory data) internal pure returns (string memory) {
if (data.length == 0) ret... | These are the vulnerabilities found
1) weak-prng with High impact
2) incorrect-shift with High impact
3) incorrect-equality with Medium impact
4) divide-before-multiply with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT221989' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT221989
// Name : ADZbuzz Marketingprofs.com Community Token
//... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "ERC20.sol";
import "ERC20Burnable.sol";
/**
███████╗███████╗██████╗ ██████╗ ██████╗ █████╗
██╔════╝██╔════╝██╔══██╗██╔═══██╗██╔══██╗██╔══██╗
█████╗ █████╗ ██║ ██║██║ ██║██████╔╝███████║
... | No vulnerabilities found |
pragma solidity ^0.4.24;
/*
* Math operations with safety checks
*/
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function safeDiv(uint256 a, uint256 b) internal p... | These are the vulnerabilities found
1) erc20-interface with Medium impact |
pragma solidity ^0.4.19;
/**
* @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... | These are the vulnerabilities found
1) tx-origin with Medium impact
2) reentrancy-no-eth with Medium impact
3) reentrancy-eth with High impact
4) unchecked-transfer with High impact
5) msg-value-loop with High impact
6) unused-return with Medium impact |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
interface IJungleFreaks {
function mint(uint256 amount) external payable;
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
}
//NFT基本上都是ETH支付
contract NFT {
address public nft_contract;
... | No vulnerabilities found |
/**
_____ _____ _____ _____
/\ \ /\ \ /\ \ /\ \
/::\____\ /::\ \ /::\ \ /::\____\
/:::/ ... | No vulnerabilities found |
/**
* Note for the truffle testversion:
* DragonKingTest inherits from DragonKing and adds one more function for testing the volcano from truffle.
* For deployment on ropsten or mainnet, just deploy the DragonKing contract and remove this comment before verifying on
* etherscan.
* */
/**
* Dragonking is a bloc... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) shadowing-state with High impact
3) reentrancy-no-eth with Medium impact
4) constant-function-asm with Medium impact
5) incorrect-equality with Medium impact
6) uninitialized-local with Medium impact
7) weak-prng with High impact... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'BNKY' token contract
//
// Deployed to : 0xec2C6Cf5F919e538975E6C58dFA315b803223Ce2
// Symbol : BNKY
// Name : BINKEY
// Total supply: 100000000
// Decimals : 18
//
// Enjoy.
//
// (c) by Moritz ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.6.0;
contract Context {
constructor () internal { }
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without gene... | No vulnerabilities found |
pragma solidity ^0.4.23;
contract CSC {
mapping (address => uint256) private balances;
mapping (address => uint256[2]) private lockedBalances;
string public name; //fancy name: eg Simon Bucks
uint8 public decimals; //How many decimals to show.
string public symbol; ... | No vulnerabilities found |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.7;
/**
* @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 w... | These are the vulnerabilities found
1) shadowing-state with High impact
2) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
interface AccountImplementations {
function getImplementation(bytes4 _sig) external view returns (address);
}
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatec... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.15;
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 wh... | No vulnerabilities found |
pragma solidity 0.6.11;
contract UNILOCKContract {
event Received(address, uint);
event onDeposit(address, uint256, uint256);
event onWithdraw(address, uint256);
using SafeMath for uint256;
struct VestingPeriod {
uint256 epoch;
uint256 amount;
}
struct UserTokenInfo {
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Owned.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to... | 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 |
// SPDX-License-Identifier: MIT
import "./ERC20.sol";
pragma solidity ^0.8.4;
contract Token is ERC20{
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _name;... | No vulnerabilities found |
pragma solidity 0.8.11;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract MerkleClaim is Ownable {
bytes32 private root;
constructor(bytes32 _root) {
root = _root;
}... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Part: OpenZeppelin/openzeppelin-contracts-upgradeable@3.4.0/AddressUpgradeable
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` ... | No vulnerabilities found |
/**
*Submitted for verification at Etherscan.io on 2020-09-15
*/
/**
*Submitted for verification at Etherscan.io on 2019-03-22
*/
pragma solidity ^0.5.0;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts... | These are the vulnerabilities found
1) locked-ether with Medium impact
2) controlled-array-length with High impact |
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.5.0 <0.7.0;
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () public {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.19;
contract BaseToken {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
event Transfer(address indexed from... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
/*
* CryptoMiningWar - Mining Contest Game
* Author: InspiGames
* Website: https://cryptominingwar.github.io/
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) reentrancy-no-eth with Medium impact
3) tautology with Medium impact
4) incorrect-equality with Medium impact
5) weak-prng with High 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 |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity =0.6.6;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
func... | These are the vulnerabilities found
1) weak-prng with High impact
2) uninitialized-local with Medium impact |
// SPDX-License-Identifier: MIT @GoPocketStudio
pragma solidity ^0.7.5;
pragma abicoder v2;
interface IERC1155 {
function balanceOf(address account, uint256 id) external view returns (uint256);
}
interface IERC721 {
function ownerOf(uint256 tokenId) external view returns (address owner);
}
contract NFTBalanc... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.21;
// ----------------------------------------------------------------------------------------------
// Project Delta
// DELTA - New Crypto-Platform with own currency, verified semantic contracts and multi blockchains!
// Site: http://delta.money
// Telegram Chat: @deltacoin
... | These are the vulnerabilities found
1) unchecked-send with Medium impact
2) divide-before-multiply with Medium impact
3) controlled-array-length with High impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT112598' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT112598
// Name : ADZbuzz Cinemablend.com Community Token
// Total supply: 2000000
// Decimals ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
//contract By Yoav Taieb: yoav.iosdev@gmail.com
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) {
uint... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/*
Copyright 2020 DODO ZOO.
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
/**
* @title SafeMath
* @author DODO Breeder
*
* @notice Math operations with safety checks that revert on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) inte... | No vulnerabilities found |
// 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 |
pragma solidity ^0.8.4;
// SPDX-License-Identifier: Unlicensed
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning wit... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.26;
contract SafeMath {
function safeAdd(uint256 a, uint256 b) public pure returns (uint256 c) {
c = a + b;
require(c >= a);
}
function safeSub(uint256 a, uint256 b) public pure returns (uint256 c) {
require(b <= a);
c = a - b;
}
function safeMu... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// import "@openzeppelin/contracts/utils/Context.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
// i... | These are the vulnerabilities found
1) shadowing-state with High impact
2) tautology with Medium impact
3) incorrect-equality with Medium impact
4) unchecked-transfer with High impact
5) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
abstract contract IManager {
function last(address) virtual public returns (uint);
function cdpCan(address, uint, address) virtual public view returns (uint);
function ilks(uint) virtual public view returns (byt... | These are the vulnerabilities found
1) unused-return with Medium impact
2) erc20-interface with Medium impact
3) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Tradable.sol";
contract MintPass is ERC721Tradable {
struct Pass {
// Amount of discount when using the pass
uint256 discount;
// Base URIs used for generating the token URIs based on the passId
string baseTokenURI;
// Used... | These are the vulnerabilities found
1) unused-return with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'Zcnox' token contract
//
// Deployed to : 0xBA038f17e3395f755A615810a6B86a0c1cce254E
// Symbol : ZNC
// Name : Zcnox
// Total supply: 20000000e18
// Decimals : 18
//
// Enjoy.
//
// (c) by Moritz... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// File: contracts/ownership/Ownable.sol
/**
* @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 Ownership... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) controlled-array-length with High impact
3) unchecked-transfer with High impact
4) unused-return with Medium impact
5) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./inter... | These are the vulnerabilities found
1) tx-origin with Medium impact
2) divide-before-multiply with Medium impact
3) incorrect-equality with Medium impact
4) uninitialized-local with Medium impact
5) weak-prng with High impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT300375' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT300375
// Name : ADZbuzz Freakonomics.com Community Token
// T... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'KevCoin' token contract
//
// Deployed to : 0xD62837a25e2d9F752A38dc93fF4A1A6f03164AA0
// Symbol : KEV
// Name : KevCoin
// Total supply: 100000000
// Decimals : 18
//
// Enjoy.
//
// (c) by Mori... | 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 |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'SuperiorBit' token contract
//
// Deployed to : 0x5087966680CCF23926Fe784B5619BE93f0eeA83a
// Symbol : IPX
// Name : IPayX
// Total supply: 100000000
// Decimals : 18
//
// Enjoy.
//
// (c) by Mo... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// ----------------------------------------------------------------------------------------------
// Developer Nechesov Andrey & ObjectMicro, Inc
// ----------------------------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/iss... | These are the vulnerabilities found
1) unchecked-send with Medium impact
2) divide-before-multiply with Medium impact
3) controlled-array-length with High impact |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this... | These are the vulnerabilities found
1) arbitrary-send with High impact
2) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10;
abstract contract IUniswapV2Factory {
function getPair(address tokenA, address tokenB) external virtual view returns (address pair);
function allPairs(uint) external virtual view returns (address pair);
function allPairsLength() external virtual... | These are the vulnerabilities found
1) erc20-interface with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.24;
/*
-Team Longames v1.0.0
*/
interface JIincForwarderInterface {
function deposit() external payable returns(bool);
function status() external view returns(address, address, bool);
function startMigration(address _newCorpBank) external returns(bool);
function cancelMigratio... | These are the vulnerabilities found
1) mapping-deletion with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.0;
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
contract ... | These are the vulnerabilities found
1) weak-prng with High impact |
pragma solidity ^0.4.23;
//import "./ERC20.sol";
//import "./ERC20Basic.sol";
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);
return c;
}
function div(uint256 a, uint256 b) interna... | These are the vulnerabilities found
1) shadowing-state with High impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Disclaimer: This contract has been deployed for marketing purpose only. Please join to our community and do not buy any unofficial contract you find on the blockchain.
// Official links:
// Telegram: http... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// token contract
//
// Symbol : TOH
// Name : TOHId
// Total supply : 1000000
// Decimals : 2
// Owner Account : 0x4681E4947328107ac3A02B311313699857Dab9Eb
// Type : Asset-backed crypto over ... | These are the vulnerabilities found
1) 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.