input stringlengths 32 47.6k | output stringclasses 657
values |
|---|---|
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/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 representation.
... | These are the vulnerabilities found
1) weak-prng with High impact
2) unused-return with Medium impact
3) incorrect-equality with Medium impact
4) uninitialized-local with Medium impact |
pragma solidity ^0.4.24;
/**
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(... | 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 PixelMapTimeCapsule is ERC721Enumerable,Ownable {
// co... | These are the vulnerabilities found
1) unused-return with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.23;
// File: contracts/ERC20.sol
/**
* @title ERC20
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) locked-ether with Medium impact
3) controlled-array-length with High impact |
// File: contracts/interfaces/IERC20.sol
pragma solidity ^0.6.8;
/**
* @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.
*/
functi... | 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.24;
// ----------------------------------------------------------------------------
// 'MAP_T3' token contract
//
// Deployed to : 0xb6b594FF87bEEe0CF1d2ec7d50d8658C1b8d2b98
// Symbol : MAP_T3
// Name : MAP T3 Token
// Total supply: 200000000
// Decimals : 18
//
// Enjoy.
//
// (c) ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'U42' 'U42 Token' token contract
//
// Symbol : U42
// Name : U42 Token
// Total supply: 525,000,000.000000000000000000
// Decimals : 18
//
// Enjoy.
//
// ----------------------------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.4.24;
contract Ownable {
address public owner;
constructor() public {
owner = msg.sender;
}
function setOwner(address _owner) public onlyOwner {
owner = _owner;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
}
contract Vault... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) divide-before-multiply with Medium impact
3) tautology with Medium impact
4) incorrect-equality with Medium impact
5) weak-prng with High impact
6) unused-return with Medium impact
7) controlled-array-length with High impact |
pragma solidity ^0.8.0;
interface Token {
/**
* Get total number of tokens in circulation.
*
* @return supply total number of tokens in circulation
*/
function totalSupply () external view returns (uint256 supply);
/**
* Get number of tokens currently belonging to given owner.
*
* @param _o... | No vulnerabilities found |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT221166' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT221166
// Name ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/* SPDX-License-Identifier: MIT */pragma solidity 0.8.6;interface IBEP20 {function getOwner() external view returns (address);function name() external view returns (string memory);function symbol() external view returns (string memory);function totalSupply() external view returns (uint256);function decimals() external ... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact |
pragma solidity ^0.4.24;
/*
* ZETHR PRESENTS: SLOTS
*
* Written August 2018 by the Zethr team for zethr.io.
*
* Code framework written by Norsefire.
* EV calculations written by TropicalRogue.
* Audit and edits written by Klob.
*
* Rolling Odds:
* 49.31% Lose
* 35.64% Two Matching Icons
* - 10.00% : 2x... | 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) uninitialized-local with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
//
// https://t.me/NarcoDoge
// https://t.me/NarcoDogeChat
//
//
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of t... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
pragma experimental ABIEncoderV2;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount)
external
... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) reentrancy-no-eth with Medium impact
3) unused-return with Medium impact
4) locked-ether with Medium impact |
// SPDX-License-Identifier: GNU LGPLv3
// File: UsePay/UsePAY/Storage/WrapAddresses.sol
pragma solidity >= 0.7.0;
contract WrapAddresses {
// address internal iAddresses = 0x30BafbA23f24d386a39210280590B0346c0dfd92; // UePAY_eth_rinkeby
// address internal iAddresses = 0x31716bbA4B12A52592c041ED19Dc06B5F99e2... | These are the vulnerabilities found
1) reentrancy-eth with High impact
2) uninitialized-state with High impact
3) locked-ether with Medium impact |
// 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 (address);
function feeToSetter() external view returns (addre... | 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;
// ----------------------------------------------------------------------------
// 'PUNC' token contract
//
// Deployed to : 0xF58a749AB4929b462F33b8A07f1e3b568ed8eC43
// Symbol : PUNC
// Name : Pure Nature Coin Token
// Total supply: 10000000
// Decimals : 18
//
// Enjoy.
//
//... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10;
abstract contract IComptroller {
struct CompMarketState {
uint224 index;
uint32 block;
}
mapping(address => uint) public compSpeeds;
mapping(address => uint) public borrowCaps;
mapping(address => uint) public compBorro... | These are the vulnerabilities found
1) unused-return with Medium impact
2) erc20-interface with Medium impact
3) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'eNomCoin' token contract
//
// Deployed to : 0xEd23A787af8aE32a02a9a5800823509c18265e9e
// Symbol : ENM
// Name : eNomCoin
// Total supply: 10000000
// Decimals : 18
//
// Enjoy.
//
// (c) by Mor... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.26;
// ----------------------------------------------------------------------------
// 'Mie Coin' token contract
//
// Deployed to : 0x94E216f9c377d5DD99d27B7757C264eeC0A2C23F
// Symbol : Mie
// Name : Mie Coin
// Total supply: 21000000000
// Decimals : 8
//
// Enjoy.
//
// (c) by M... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// '0Fucks' token contract
//
// Deployed to : 0x3b87458775aF9528235B3A9B134aB8064db720b4
// Symbol : 0FAKERSSSSSS
// Name : 0 Fucketsss Token
// Total supply: 30000000
// Decimals : 18
//
// Enjoy.
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.4.24;
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
2) shadowing-state with High impact
3) tautology with Medium impact |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.6;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract SnapToken is ERC20 {
event VotersAdded(address[] voters);
event VotersRemoved(address[] voters);
address public immutable owner;
constructor(address _owner) ERC20("Sn... | No vulnerabilities found |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract Menorah {
// (
// ) ( ) ( (_) ( ( ) (
// (_) (_) (_) (_) |~| (_) (_) (_) (_)
// |~| |~| |~| |~| |:... | No vulnerabilities found |
pragma solidity ^0.4.18;
contract Lotto {
address public owner = msg.sender;
address[] internal playerPool;
uint seed = 0;
uint amount = 0.01 ether;
// events
event Payout(address from, address to, uint quantity);
event BoughtIn(address from);
event Rejected();
modifier onlyBy(address _account) {
... | These are the vulnerabilities found
1) weak-prng with High impact
2) controlled-array-length with High impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : BTS
// Name : BTS Token
// Total supply : 100000000000
// Decimals : 2
// Owner Account : 0x623bfbC673447C41a3c5a0312992e73EE6812cC8
//
// Enjoy.
//
// ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
*Submitted for verification at BscScan.com on 2021-05-27
*/
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 ove... | These are the vulnerabilities found
1) shadowing-state with High impact
2) locked-ether with Medium impact |
// File contracts/beacon/IBeacon.sol
pragma solidity ^0.8.0;
interface IBeacon {
function latestCopy() external view returns(address);
}
// File contracts/beacon/BeaconProxy.sol
pragma solidity ^0.8.0;
contract BeaconProxy {
bytes32 private constant BEACON_SLOT = keccak256(abi.encodePacked("fairmint.beac... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.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
* be specified by o... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
//
//
// Symbol : KPT
// Name : Kryptonite
// Total supply : 1000000000
// Decimals : 2
// Owner Account : 0x4042b2DDF7609B9108b9BbDd7A14c5D9597307B3
//
//
// (c) by Abdul S Usmani
// -------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/*
👉 There are 3 main purposes:
1️⃣ $FLOFE will be used for NFT auction, and also $FLOFE holders can stake their tokens to earn NFTs.
2️⃣ $FLOFE itself is an ETH reflectional token where the holders are being rewarded in ETH.
3️⃣ Strong FTP Anti-Bot
🔗 Website: https://www.flokiwife.net
🔗 Twitter: https://twitte... | These are the vulnerabilities found
1) shadowing-state with High impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT133446' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT133446
// Name : ADZbuzz Businessinsider.in Community Token
//... | 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.0;
contract TimeLapse {
uint256 public openingTime;
uint256 public closingTime;
uint256 public constructionTime;
modifier onlyWhileOpen {
require(now >= openingTime && now <= closingTime);
_;
}
modifier onlyAfterClosed {
require(now > closingTime);
_;
}
construct... | These are the vulnerabilities found
1) locked-ether with Medium impact
2) controlled-array-length with High impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'drachma' token contract
//
// Deployed to :0x6A6347066840eb283c5eD546b0E4BEae8e43F95a
// Symbol : dra
// Name : drachma Token
// Total supply: 100000000000000000
// Decimals : 0
//
// Enjoy.
//
/... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// Symbol : CMRC
// Name : China Meteorite Research Chain
// Total supply: 300000000.000000
// Decimals : 6
// ----------------------------------------------------------------------------
// ------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "./Lottery.sol";
import "./Logbook.sol";
import "./PreOrder.sol";
contract Traveloggers is Lottery, Logbook, PreOrder {
constructor(
string memory name_,
string memory symbol_,
uint16 supply_,
string memory share... | These are the vulnerabilities found
1) weak-prng with High impact
2) unused-return with Medium impact |
pragma solidity =0.5.16;
import './IMateriaPair.sol';
import './MateriaERC20.sol';
import './Math.sol';
import './UQ112x112.sol';
import './IERC20.sol';
import './IMateriaFactory.sol';
import './IMateriaCallee.sol';
import './MateriaOwnable.sol';
contract MateriaPair is IMateriaPair, MateriaERC20, MateriaOwnable {
... | 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.17;
/**
Buy The Floor
Demand-side NFT exchange that allows buyers to make offchain blanket bids for NFTs based on type.
*/
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily r... | These are the vulnerabilities found
1) tautology with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.5.8;
//Change the contract name to your token name
contract unixToken {
// Name your custom token
string public constant name = "Unix Token";
// Name your custom token symbol
string public constant symbol = "UNIX";
uint8 public constant decimals = 18;
// Contract owner... | These are the vulnerabilities found
1) locked-ether with Medium impact |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
abstract contract RootChainManager {
function depositFor(
address user,
address rootToken,
bytes calldata depositData
) public virtual;
}
abstract contract SwapRouter {... | These are the vulnerabilities found
1) unused-return with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ProtoTrail' token contract
//
// Deployed to : 0x83e72ACd379DF52511113b351922f41BF443360B
// Symbol : TRAIL
// Name : ProtoTrail Token
// Total supply: 300000000
// Decimals : 18
//
// Enjoy.
//
... | These are the vulnerabilities found
1) 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
2) unused-return with Medium impact
3) tautology with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns... | No vulnerabilities found |
pragma solidity ^0.4.16;
/*SPEND APPROVAL ALERT INTERFACE*/
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value,
address _token, bytes _extraData) external;
}
contract TOC {
/*tokenchanger.io*/
/*TOC TOKEN*/
string public name;
string public symbol;
uint8 public decimals;
uint256 pub... | These are the vulnerabilities found
1) locked-ether with Medium impact |
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);
function symbol() external pure returns (string 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 |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// mock class using ERC20
contract ERC20Custom is ERC20 {
constructor(
string memory name,
string memory symbol,
uint8 decimals,
address initialAccount,
uin... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
contract AccessControl {
/// @dev The addresses of the accounts (or contracts) that can execute actions within each roles
address public ceoAddress;
address public cooAddress;
/// @dev Keeps track whether the contract is paused. When that is true, most actions are blocked
bool publi... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact
3) controlled-array-length with High impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// BioStem token contract
//
// Deployed to : 0x02679b7b0cF758dA1987091bAb809A6e2ecAC0cF
// Symbol : BSC
// Name : BioStem Token
// Total supply: 200000000
// Decimals : 18
//
// Enjoy.
//
// (c) by ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
contract ERC20Interface {
// Get the total token supply
function totalSupply() public constant returns (uint total);
// Get the account balance of another account with address _owner
function balanceOf(address _owner) public constant returns (uint balance);
// Send _va... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT238403' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT238403
// Name ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT104806' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT104806
// Name : ADZbuzz Mywebsearch.com Community Token
// To... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.6.2;
contract PProxyStorage {
function readBool(bytes32 _key) public view returns(bool) {
return storageRead(_key) == bytes32(uint256(1));
}
function setBool(bytes32 _key, bool _value) internal {
if(_value) {
storageSet(_key, bytes32(uint256(1)));
} ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// 'FIXED' 'Example Fixed Supply Token' token contract
//
// Symbol : FIXED
// Name : Example Fixed Supply Token
// Total supply: 1,000,000.000000000000000000
// Decimals : 18
//
// En... | These are the vulnerabilities found
1) name-reused with High impact
2) locked-ether with Medium impact |
// SPDX-FileCopyrightText: 2021 ShardLabs
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
import "@openzeppelin/contracts/proxy/Proxy.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IValidatorProxy.sol";
/// @title ValidatorProxy
/// @author 2021 ShardLabs.
/// @notice The v... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.21;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
... | These are the vulnerabilities found
1) tautology with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.24;
contract Owned {
/// 'owner' is the only address that can call a function with
/// this modifier
address public owner;
address internal newOwner;
///@notice The constructor assigns the message sender to be 'owner'
constructor() public {
owner = msg.se... | These are the vulnerabilities found
1) weak-prng with High impact
2) incorrect-equality with Medium impact
3) arbitrary-send with High 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) {
if (a == 0) {
return 0;
}
uint256... | 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) incorrect-equality with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'Pentacoin' token contract
//
// Deployed to : 0xeaBB4013f179E42c41468DB81eB1Bd420Da6cC47
// Symbol : PTC
// Name : Pentacoin
// Total supply: 10000000000000000000000000000
// Decimals : 18
//
//
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
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 |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT274742' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT274742
// Name : ADZbuzz thedieline.com Community Token
// Total supply: 2000000
// Decimals ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'SKYSWAP' token contract
//
// Deployed to : 0x05Deeae8D57238896882f26421dC71f50e2EaC99
// Symbol : SKS
// Name : SKYSWAP
// Total supply: 60000000
// Decimals : 2
//
// Enjoy.
//
// (c) by Moritz... | These are the vulnerabilities found
1) locked-ether with Medium impact |
//SPDX-License-Identifier: Unlicense
// ----------------------------------------------------------------------------
// 'GiantCrab' token contract
//
// Symbol : CRAB 🦀
// Name : Giant Crab
// Total supply: 100000000000000
// Decimals : 18
// Burned : 50%
// ---------------------------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.4;
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 balanc... | No vulnerabilities found |
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 |
pragma solidity ^0.4.21;
// File: @gnosis.pm/util-contracts/contracts/Math.sol
/// @title Math library - Allows calculation of logarithmic and exponential functions
/// @author Alan Lu - <alan.lu@gnosis.pm>
/// @author Stefan George - <stefan@gnosis.pm>
library Math {
/*
* Constants
*/
// This 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 |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'WINE' token contract
//
// Deployed to :0xc6aabe58E582cf1C97457984C01B92bc6f641AF4
// Symbol : VIN
// Name : Wine Coin
// Total supply: 76,000,000
// Decimals : 16
//
// Enjoy.
//
// (c) by Morit... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
*/
library Roles {
struct Role {
mapping(address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
function add(Role storage role, address account) internal {
... | No vulnerabilities found |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'PrestigeCoin' token contract
//
// Deployed to : 0xB339ff9167BAfcb66d396056A911573164f98141
// Symbol : PSG
// Name : PrestigeCoin
// Total supply: 16000000
// Decimals : 5
//
// Enjoy.
//
// (c)... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/*
*******
*******
██████╗ ██╗ ██╗ ██████╗ ███████╗███╗ ██╗██╗██╗ ██╗████████╗██╗ ██████╗ ███████╗██████╗
██╔══██╗██║ ██║██╔═══██╗██╔════╝████╗ ██║██║╚██╗██╔╝╚══██╔══╝██║██╔════╝ ██╔════╝██╔══██╗
██████╔╝███████║██║ ██║█████╗ ██╔██╗ ██║██║ ╚███╔╝ ██║ ██║██║ ███╗█████╗ ██████╔╝
██╔═══╝ ██╔══██║██║ █... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) reentrancy-no-eth with Medium impact
3) controlled-array-length with High impact
4) erc20-interface with Medium impact
5) constant-function-asm with Medium impact
6) uninitialized-local with Medium impact
7) locked-ether with Med... |
/**
*Submitted for verification at Etherscan.io on 2021-10-25
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
/**
* @dev The contract has an owner address, and provides basic authorization control whitch
* simplifies the implementation of user permissions. This contract is based on the source code at:
... | No vulnerabilities found |
// Sources flattened with hardhat v2.3.3 https://hardhat.org
// SPDX-License-Identifier: UNLICENSED
// File contracts/core/ArmorToken.sol
pragma solidity 0.8.4;
/*
Copyright 2016, Jordi Baylina
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Pub... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// '0xLitecoin Token' contract
// Mineable ERC20 Token using Proof Of Work
/*
the idea is that the miner uses proxyMergeMint in https://github.com/snissn/0xlitecoin-token/blob/master/contracts/MintHelper.sol... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) incorrect-equality with Medium impact
3) locked-ether 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 |
/**
* SPDX-License-Identifier: MIT
*/
pragma solidity ^0.8.4;
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 allowanc... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) tautology with Medium impact
3) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
import { Pausable } from "@openzeppelin/contracts/security/Pausable.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import { IKaijuNFT } from ".... | These are the vulnerabilities found
1) msg-value-loop with High impact
2) uninitialized-local with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
contract GiveawayWinner is Ownable {
using EnumerableSet fo... | 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.20;
/*
*
NekoToken.xyz
* Based on the POWH3D contract but with these improvements:
* [x] Now with a Progressive Jackpot which increases with every Buy and Reinvest!
* [x] Jackpot is won randomly by Buyers and Reinvestors!
* [X] Jackpot is built up with % of every Buy-in and Reinvest DIV Fee.
... | 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.6.6;
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/lib/contracts/libraries/FixedPoint.sol";
import "@uniswap/v2-periphery/contracts/libraries/UniswapV2OracleLibr... | 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.5.16;
interface IERC20 {
function totalSupply() external view returns (uint256);
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 (uint2... | These are the vulnerabilities found
1) locked-ether with Medium impact |
//SPDX-License-Identifier: Unlicense
// ----------------------------------------------------------------------------
// 'PayPalToken' token contract
//
// Symbol : PAYPAL
// Name : PayPal Token
// Total supply: 100000000000000
// Decimals : 18
// Burned : 50%
// ------------------------------------... | No vulnerabilities found |
pragma solidity ^0.4.24;
/**
* @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 abstract _implementation() internal function.
*/
con... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) 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 ac... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT565323' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT565323
// Name : ADZbuzz Itzgeek.com Community Token
// Total ... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) ext... | 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 |
pragma solidity ^0.4.22;
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) internal pure returns (uint... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) unchecked-transfer with High impact
3) divide-before-multiply with Medium impact
4) locked-ether with Medium impact |
pragma solidity ^0.4.12;
//Current version:0.4.24+commit.e67f0147
/**
* Math operations with safety checks
*/
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeDiv(uint256 a, uint256 b)... | These are the vulnerabilities found
1) erc20-interface with Medium impact
2) 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.18;
/**
* @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(ad... | No vulnerabilities found |
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.6.0 <0.8.0;
import "../dependencies/SatelliteMultiBridge.sol";
/**
* wSCC Bridge
*
* Attributes:
* - Mints wSCC tokens from an authorized member after a cross-chain migration
* - Burns wSCC tokens from the bridge and emits a cross-chain fee migration eve... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
contract KeeperProxy {
// masterCopy always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated.
// To reduce deployment costs this variable is in... | 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.7.6;
contract UpkeepPerformCounterRestrictive {
event PerformingUpkeep (
bool eligible,
address from,
uint256 initialCall,
uint256 nextEligible,
uint256 blockNumber
);
uint256 public initialCall = 0;
uint256 public nextEligible = 0;
uint256 public... | These are the vulnerabilities found
1) weak-prng with High impact
2) incorrect-equality 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.2;
contract Token {
function totalSupply() constant returns (uint256 supply) {}
function balanceOf(address _owner) constant returns (uint256 balance) {}
function transfer(address _to, uint256 _value) returns (bool success) {}
function transferFrom(address _from, a... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.4.24;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function mul(uint a, uint b) internal pure returns (uint c... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.11;
contract ERC20Standard {
uint public totalSupply;
string public name;
uint8 public decimals;
string public symbol;
string public version;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint)) allowed;
//Fix for short address attack against ERC20
mo... | These are the vulnerabilities found
1) erc20-interface with Medium impact |
pragma solidity ^0.4.21;
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 balan... | No vulnerabilities found |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.