input stringlengths 32 47.6k | output stringclasses 657
values |
|---|---|
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
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 |
/*
Copyright 2017 Sharder Foundation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... | These are the vulnerabilities found
1) erc20-interface with Medium impact
2) locked-ether with Medium impact |
pragma solidity 0.4.21;
// ----------------------------------------------------------------------------
// MobilinkToken - MOLK Token Contract
// ----------------------------------------------------------------------------
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanc... | No vulnerabilities found |
/**
*Submitted for verification at Etherscan.io on 2021-06-01
*/
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.3;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes ca... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract DET {
using SafeMath for uint256;
/*==============================
= DET EVENTS =
==============================*/
event Approved(
address indexed spender,
address indexed recipient... | These are the vulnerabilities found
1) tautology 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.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 |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.9.0;
import "./OwnableStorage.sol";
contract Ownable{
OwnableStorage _storage;
function initialize( address storage_ ) public {
_storage = OwnableStorage(storage_);
}
modifier OnlyAdmin(){
require( _storage.isAdmin(msg.sende... | These are the vulnerabilities found
1) reentrancy-eth with High impact
2) reentrancy-no-eth with Medium impact
3) incorrect-equality with Medium impact
4) locked-ether with Medium impact |
pragma solidity ^0.4.18;
/** ----------------------------------------------------------------------------------------------
* ZJLTToken by ZJLT Distributed Factoring Network Limited.
* An ERC20 standard
*
* author: ZJLT Distributed Factoring Network Team
*/
/**
* @title SafeMath
* @dev Math operations with safe... | These are the vulnerabilities found
1) tautology with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.18;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
funct... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// File: zos-lib/contracts/upgradeability/Proxy.sol
/**
* @title Proxy
* @dev Implements delegation of calls to other contracts, with proper
* forwarding of return values and bubbling of failures.
* It defines a fallback function that delegates all calls to the address
* returned by the ... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) locked-ether with Medium impact |
// SPDX-License-Identifier: GNU GPLv3
pragma solidity >=0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
abstract contract ERC20Interface {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() virtual public view returns (uint);
/**
* @... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.3;
import { IERC20, ISafeMath, IKladeDiffToken } from './Interfaces.sol';
// ----------------------------------------------------------------------------
// This contract is used to "manage" Klade Tokens. Specifically you can use
// it to mint tokens for any quarter... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) locked-ether with Medium impact |
// Sources flattened with hardhat v2.0.3 https://hardhat.org
// File @openzeppelin/contracts/GSN/Context.sol@v3.3.0
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While thes... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@boringcrypto/boring-solidity/contracts/libraries/BoringMath.sol";
import "@boringcrypto/boring-solidity/contracts/BoringBatchable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./libraries/SignedSafeM... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) delegatecall-loop with High impact |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (finance/VestingWallet.sol)
pragma solidity ^0.8.0;
import '../token/ERC20/utils/SafeERC20.sol';
import '../utils/Address.sol';
import '../utils/Context.sol';
import '../utils/math/Math.sol';
/**
* @title VestingWallet
* @dev This contract handles the... | No vulnerabilities found |
pragma solidity 0.6.6;
// ----------------------------------------------------------------------------
// 'GALAXI TOKEN' token contract
//
// Deployed to : 0x220cf83a5a1cdE99613d105Cf60C58bB54716389
// Symbol : GALX
// Name : GALAXI TOKEN
// Total supply: 999,999,999
// Decimals : 4, total 18
//
// Enjo... | No vulnerabilities found |
pragma solidity 0.8.7;
interface KeeperCompatibleInterface {
function checkUpkeep(bytes calldata checkData) external returns (bool upkeepNeeded, bytes memory performData);
function performUpkeep(bytes calldata performData) external;
}
contract OusdKeeper is KeeperCompatibleInterface {
struct Config {
... | These are the vulnerabilities found
1) weak-prng with High impact
2) unchecked-lowlevel with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT97108' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT97108
// Name : ADZbuzz Agribusiness.science Community Token
//... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity =0.5.16;
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);
function getPair(address tokenA, address tokenB) exte... | 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.24;
library SafeMath {
function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b > 0);
uint256 c = a / b;
ass... | These are the vulnerabilities found
1) shadowing-abstract with Medium impact
2) locked-ether with Medium impact |
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
library LibBytes {
/***********************************|
| Read Bytes Functions |
|__________________________________*/
/**
* @dev Reads a bytes32 value from a position in a byte array.
* @... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
... | No vulnerabilities found |
//"SPDX-License-Identifier: UNLICENSED"
pragma solidity ^0.6.6;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
fu... | No vulnerabilities found |
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 returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.2;
contract ERC721 {
function isERC721() public pure returns (bool b);
function implementsERC721() public pure returns (bool b);
function name() public pure returns (string name);
function symbol() public pure returns (string symbol);
function totalSupply() public view returns ... | These are the vulnerabilities found
1) weak-prng with High impact
2) controlled-array-length with High impact |
pragma solidity =0.5.16;
import './interfaces/IUniswapV2ERC20.sol';
import './libraries/SafeMath.sol';
contract UniswapV2ERC20 is IUniswapV2ERC20 {
using SafeMath for uint;
string public constant name = 'Honey';
string public constant symbol = 'HONEY-LP';
uint8 public constant decimals = 18;
uint... | These are the vulnerabilities found
1) weak-prng with High impact
2) reentrancy-no-eth with Medium impact
3) incorrect-equality with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/interfaces/IERC20.sol';
import '@openzeppelin/contracts/interfaces/IERC721.sol';
import './OKLGProduct.sol';
/**
* @title OKLGRaffle
* @dev This is the main contract that supports lotteries and raffles.
*/
contract OKLGRaffle i... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) tautology with Medium impact
3) unchecked-transfer with High impact
4) unchecked-lowlevel with Medium impact
5) uninitialized-local with Medium impact
6) weak-prng with High impact |
import "Ownable.sol";
import "Token.sol";
pragma solidity 0.8.0;
contract CrowdSale is Ownable {
Token public tokenSold;
uint256 public rateInTokens;
uint256 public minimumBuyBNB = 660000000000000000;
bool public onlyWhitelisted = true;
mapping(address => bool) public whitelistedAddress;
mappi... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(add... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.5;
pragma abicoder v2;
import "./interfaces/IOracle.sol";
import "./libraries/SafeMath.sol";
import "./libraries/LibraryV2Oracle.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../RenderExtension.sol";
// solhint-disable quotes
contract DefaultRenderExtension is RenderExtension {
uint256 public constant COLOR_CNT = 16;
string[] public colorNames = ["Red", "Pink", "Purple", "Deep Puple", "Indigo", "Blue", "Light Blue", ... | No vulnerabilities found |
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
uint voteCount;
}
address chairperson;
mapping(address => Voter) voters;
Proposal[] proposals;
/// Create a new b... | These are the vulnerabilities found
1) locked-ether with Medium impact
2) controlled-array-length with High impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Skits is ERC20Capped, Ownable {
constructor(uint256 _hard_cap... | No vulnerabilities found |
pragma solidity ^0.4.21;
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... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.5.17;
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal v... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) locked-ether with Medium impact
3) controlled-array-length with High impact |
pragma solidity ^0.4.24;
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 ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this;
return msg.data;
}
}
interface IDEXFactory {
function createP... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) incorrect-equality with Medium impact
3) locked-ether with Medium impact |
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
... | No vulnerabilities found |
pragma solidity =0.6.12;
contract NavyBase {
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow pap... | These are the vulnerabilities found
1) unchecked-send with Medium impact |
pragma solidity ^0.5.0;
import './GenArt721Minter_DoodleLabs_MultiMinter.sol';
import './Strings.sol';
import './MerkleProof.sol';
interface IGenArt721Minter_DoodleLabs_Config {
function getPurchaseManyLimit(uint256 projectId) external view returns (uint256 limit);
function getState(uint256 projectId) extern... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) arbitrary-send with High impact
3) unchecked-transfer with High impact
4) uninitialized-local with Medium impact
5) reentrancy-eth with High impact
6) weak-prng with High impact
7) msg-value-loop with High impact
8) unused-retur... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
library SafeMath {
function prod(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
... | These are the vulnerabilities found
1) shadowing-state with High impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT220596' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT220596
// Name : ADZbuzz Jalopnik.com Community Token
// Total... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
contract RiddlerStakingLocked is Ownable {
using SafeMath for uint256;
uint256 public totalStaked;
IERC20 public stakingToken;
IERC20 public rewardToken;
uint256 public... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) reentrancy-no-eth with Medium impact
3) incorrect-equality with Medium impact
4) unchecked-transfer with High impact
5) locked-ether with Medium impact |
pragma solidity >=0.4.26;
pragma experimental ABIEncoderV2;
interface IKyberNetworkProxy {
function maxGasPrice() external view returns(uint);
function getUserCapInWei(address user) external view returns(uint);
function getUserCapInTokenWei(address user, ERC20 token) external view returns(uint);
funct... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) unused-return with Medium impact
3) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'BEW' token contract
//
// Deployed to : 0x72dF5d6CE39abFb638eb0dc223a3d5Ece8c91d5f
// Symbol : BEW
// Name : Bitexwin Token
// Total supply: 1000000000
// Decimals : 18
//
// Enjoy.
//
// (c) by... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.21;
/*
* ##### ## ##### ## ### ## ### ###
* ###### /### ###### / #### / /#### #### / ### ###
* /# / / ### /# / / ####/ / ### /####/ ## ##
* ... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) constant-function-asm with Medium impact
3) uninitialized-local with Medium impact
4) weak-prng with High impact
5) constant-function-state with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "./ERC721Enumerable.sol";
import "./Ownable.sol";
interface ISilver {
function balanceOf(address owner) external view returns (uint);
function burn(address account, uint amount) external;
}
interface ICastle {
function randomVikingOwner() ex... | These are the vulnerabilities found
1) weak-prng with High impact
2) reentrancy-no-eth with Medium impact
3) unused-return with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT92954' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT92954
// Name : ADZbuzz Kelvinwoodonline.com Community Token
//... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <brecht@loopring.org>
library Base64 {
bytes internal constant TABLE =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0... | These are the vulnerabilities found
1) incorrect-shift with High impact
2) divide-before-multiply with Medium impact
3) unused-return with Medium impact
4) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT222321' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT222321
// Name ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.8.4;
// SPDX-License-Identifier: MIT
abstract contract Context {
function _msgSender() internal virtual view returns (address) {
return msg.sender;
}
function _msgData() internal virtual view returns (bytes memory) {
this; // silence state mutability warning without genera... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) divide-before-multiply with Medium impact
3) locked-ether with Medium impact |
pragma solidity ^0.4.18;
/**
* @title Helps contracts guard agains rentrancy attacks.
* @author Remco Bloemen <remco@2π.com>
* @notice If you mark a function `nonReentrant`, you should also
* mark it `external`.
*/
contract ReentrancyGuard {
/**
* @dev We use a single lock for the whole contract.37487895
... | These are the vulnerabilities found
1) incorrect-equality with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'BRLT' token contract
//
// Deployed to : 0x75af85cF9614B0af7f2B00F03C15B1D659D6D6ab
// Symbol : BRLT
// Name : Brazilan Reais Token
// Total supply: 1.000.000.000.000
// Decimals : 8
//
// Enjoy.... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/*
🧋BOBATEA LAUNCH🧋
✅ Experienced Marketing Team
🪙 Tokenomics - 12% buy/sell
0️⃣ NO team tokens
🚀 100% FAIRLAUNCH
🧑💻 SAFU Dev ( MISA )
AUDIT / WHITEPAPER
☎️ https://t.me/BOBATEA_ETH
🌎 https://www.boba-tea.io/
🐥 https://twitter.com/BOBATEA_ETH
*/
pragma solidity ^0.6.12;
interface IERC20 {
... | No vulnerabilities found |
//import './interfaces/IOrionPoolV2ERC20.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
contract OrionPoolV2ERC20 {
using SafeMath for uint;
string public constant name = 'OrionPool V2';
string public constant symbol = 'UNI-V2';
uint8 public constant decimals = 18;
uint public totalSup... | These are the vulnerabilities found
1) weak-prng with High impact
2) reentrancy-no-eth with Medium impact
3) incorrect-equality with Medium impact |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./IYieldOraclelizable.sol";
import "./IYieldOracle.sol";
// a modified version of https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/examples/ExampleSlidin... | These are the vulnerabilities found
1) weak-prng with High impact
2) reentrancy-no-eth with Medium impact |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
function totalSupply() public view returns (uint);
function ba... | No vulnerabilities found |
// SPDX-License-Identifier: GPL-3.0
/// @title The WizardsToken pseudo-random seed generator.
// Modified version from NounsDAO.
pragma solidity ^0.8.6;
import {ISeeder} from "./ISeeder.sol";
import {IDescriptor} from "../descriptor/IDescriptor.sol";
contract Seeder is ISeeder {
struct Counts {
uint256 ... | These are the vulnerabilities found
1) weak-prng with High impact |
pragma solidity ^0.4.19;
interface ERC20Interface {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
function allowance(address owner, address spender) public view returns (ui... | No vulnerabilities found |
pragma solidity 0.5.0;
contract GRANXMain_Proxy {
address private targetAddress;
address private admin;
constructor() public {
targetAddress = 0x1A678da709f209A94C94bd9cEb63ecdfeadF3cfd;
admin = msg.sender;
}
function setTargetAddress(address _address) public {
require(msg... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.4.25;
contract Ownable {
address public owner;
address public newOwner;
event OwnershipTransferred(address indexed _from, address indexed _to);
constructor () public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) uninitialized-local with Medium impact
3) locked-ether with Medium impact |
pragma solidity ^0.4.23;
interface ERC20 {
function balanceOf(address _owner) external view returns (uint balance);
function transfer(address _to, uint _value) external returns (bool success);
function transferFrom(address _from, address _to, uint _value) external returns (bool success);
function appro... | No vulnerabilities found |
pragma solidity ^0.4.24;
// 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 OwnershipT... | No vulnerabilities found |
pragma solidity ^0.4.23;contract Ownable {address public owner;event OwnershipRenounced(address indexed previousOwner);event OwnershipTransferred(address indexed previousOwner,address indexed newOwner);constructor() public {owner = msg.sender;}modifier onlyOwner() {require(msg.sender == owner);_;}function transferOwner... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20
pragma solidity ^0.4.19;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / ... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./SafeERC20.sol";
/**
* @dev A token holder contract that will allow a beneficiary to extract the
* tokens after a given release time.
*
* Useful for simple vesting schedules like "advisors get all of their tokens
* after 1 year".
*/
contract Toke... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
/*
____ _ ____
/ ___(_) __ _ __ _| _ \ _ __ __ _ __ _ ___ _ __
| | _| |/ _` |/ _` | | | | '__/ _` |/ _` |/ _ \| '_ \
| |_| | | (_| | (_| | |_| | | | (_| | (_| | (_) | | | |
\____|_|\__, |\__,_|____/|_| \__,_|\__, |\___/|_| |_... | These are the vulnerabilities found
1) locked-ether with Medium impact |
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 b) internal pure returns (uint256) {
return sub(a, ... | No vulnerabilities found |
/**
*/
// SPDX-License-Identifier: MIT
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 not be accessed in such a direct
* manner, sinc... | No vulnerabilities found |
/**
*Submitted for verification at Etherscan.io on 2021-07-15
*/
// Sources flattened with hardhat v2.3.3 https://hardhat.org
// File contracts/proxies/Proxy.sol
pragma solidity 0.8.4;
/**
* @title Proxy
* @dev Gives the possibility to delegate any call to a foreign implementation.
*/
abstract contract Proxy {
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.5.0;
import "./Context.sol";
import "./ERC20.sol";
import "./ERC20Detailed.sol";
import "./ERC20Burnable.sol";
/**
* @title Next Generation Orb ERC20 Coin
*/
contract NextGenerationOrb is Context, ERC20, ERC20Detailed, ERC20Burnable {
constructor () public ERC20Detailed("Next Generation Or... | No vulnerabilities found |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT221825' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT221825
// Name : ADZbuzz Digitalmarketer.com Community Token
/... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
contract Owned {
address public owner;
address public proposedOwner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the i... | No vulnerabilities found |
/**
*Submitted for verification at Etherscan.io on 2020-09-04
*/
// File: contracts/uniswapv2/interfaces/IUniswapV2Factory.sol
pragma solidity >=0.5.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns... | 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.24;
// File: contracts/commons/SafeMath.sol
/**
* @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 ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.4.24;
// File: contracts/commons/SafeMath.sol
/**
* @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 ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
... | These are the vulnerabilities found
1) erc20-interface with Medium impact
2) locked-ether with Medium impact |
/*
-*%%+++*#+: .+ --
[email protected]* *@* -#@- .=#%
%@. @@: [email protected]* :@:
[email protected]* @@. [email protected] #* := --
#@. [email protected]# +*+#: @= [email protected]: *=%* *@
... | No vulnerabilities found |
/**
*Submitted for verification at Etherscan.io on 2021-01-09
*/
// 【Sexually Transmitted Dollar】
// 【Sexually Transmitted Dollar】
// 【Sexually Transmitted Dollar】
// 【Sexually Transmitted Dollar】
/*
*
*/
// SPDX-License-Identifier: CC-BY-NC-SA-2.5
//@code0x2
pragma solidity ^0.6.12;
abstract contract Context... | These are the vulnerabilities found
1) weak-prng with High impact
2) uninitialized-local with Medium impact
3) unchecked-transfer with High impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@boringcrypto/boring-solidity/contracts/libraries/BoringMath.sol";
import "@boringcrypto/boring-solidity/contracts/BoringBatchable.sol";
import "@boringcrypto/boring-solidity/contracts/BoringOwnable.sol";
import "./lib/S... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) delegatecall-loop with High impact |
// File: contracts/IMultisigCarrier.sol
pragma solidity ^0.5.0;
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract IMultisigCarrier {
function approveFrom(
address caller,
address payable destination,
address currencyAddress,
uint256... | These are the vulnerabilities found
1) locked-ether with Medium impact
2) unused-return with Medium impact
3) controlled-array-length with High impact |
pragma solidity ^0.4.18;
/**
* @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) {
if (a == 0) {
return 0;
}
uin... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.24;
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(_b > ... | No vulnerabilities found |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'BitcoinFast' token contract
//
// Deployed to : 0x2d57365a7ab22425f09D49bB0baFB0426EB8dDF9
// Symbol : BTCF
// Name : BitcoinFast Token
// Total supply: 100000000
// Decimals : 18
//
// Enjoy.
//... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : OCT
// Name : 1COIN ERC20 TOKEN
// Total supply : 21000000
// Decimals : 2
// Owner Account : 0x4940F8FBa893447C3dc7b4aD3Cf8f29623802b8c
//
// Enjoy.
//... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
function totalSupply() public view returns (uint);
function ba... | No vulnerabilities found |
pragma solidity ^0.8.7;
/**
* @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.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 |
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) unused-return with Medium impact
3) locked-ether with Medium impact |
pragma solidity ^0.4.24;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) public pure returns (uint c) {c = a * b;require(a == 0 || c / a ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
/*
* Token has been generated for FREE using https://vittominacori.github.io/erc20-generator/
*
* NOTE: "Contract Source Code Verified (Similar Match)" means that this Token is similar to other tokens deployed
* using the same generator. It is not an issue. It means that you won't ... | No vulnerabilities found |
pragma solidity ^0.4.23;
contract ERC20Basic {
// events
event Transfer(address indexed from, address indexed to, uint256 value);
// public functions
function totalSupply() public view returns (uint256);
function balanceOf(address addr) public view returns (uint256);
function transfer(address to, uint256 ... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
interface InstaLMMerkleInterface {
function claim(
address recipient,
uint256 cumulativeAmount,
uint256 index,
uint256 cycle,
bytes32[] calldata merkleProof
) external;
}
contract Variables {
InstaLMMerkleInt... | These are the vulnerabilities found
1) locked-ether with Medium impact |
//SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
contract Owned {
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
address owner;
address newOwner;
function changeOwner(address payable _newOwner) public onlyOwner {
newOwner = _newOwner;
}
function acce... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity >=0.4.22 <0.7.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 i... | No vulnerabilities found |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : RST
// Name : Realsmart Token
// Total supply : 30000000000000
// Decimals : 2
// Owner Account : 0xC59072c2b1E53a9F96050CeE50970271124253A1
// --------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
/**
* @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
* be specified by ov... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'FIXED' 'Example Fixed Supply Token' token contract
//
// Symbol : genie
// Name : Genie Token
// Total supply: 1,000,000,000.000000000000000000
// Decimals : 18
//
// E... | 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.