comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
null
pragma solidity ^0.5.0; /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // ...
c/a==b
203
c/a==b
null
contract ModultradeProposal is OracleOwnable, ContractReceiver { address public seller; address public buyer; uint public id; string public title; uint public price; ModultradeLibrary.Currencies public currency; uint public units; uint public total; uint public validUntil; ModultradeLibrar...
getBalance()>=total
245
getBalance()>=total
"Org: Must provide claimId"
// SPDX-License-Identifier: BSD 3-Clause pragma solidity ^0.6.10; pragma experimental ABIEncoderV2; import "./Administratable.sol"; import "./interfaces/IFactory.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/upgrades/cont...
!isEqual(claimId,""),"Org: Must provide claimId"
377
!isEqual(claimId,"")
"Org: Must provide the first name of the administrator"
// SPDX-License-Identifier: BSD 3-Clause pragma solidity ^0.6.10; pragma experimental ABIEncoderV2; import "./Administratable.sol"; import "./interfaces/IFactory.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/upgrades/cont...
!isEqual(fName,""),"Org: Must provide the first name of the administrator"
377
!isEqual(fName,"")
"Org: Must provide the last name of the administrator"
// SPDX-License-Identifier: BSD 3-Clause pragma solidity ^0.6.10; pragma experimental ABIEncoderV2; import "./Administratable.sol"; import "./interfaces/IFactory.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/upgrades/cont...
!isEqual(lName,""),"Org: Must provide the last name of the administrator"
377
!isEqual(lName,"")
"Org: Must provide the email address of the administrator"
// SPDX-License-Identifier: BSD 3-Clause pragma solidity ^0.6.10; pragma experimental ABIEncoderV2; import "./Administratable.sol"; import "./interfaces/IFactory.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/upgrades/cont...
!isEqual(eMail,""),"Org: Must provide the email address of the administrator"
377
!isEqual(eMail,"")
"Org: Pending Claim with Id already exists"
// SPDX-License-Identifier: BSD 3-Clause pragma solidity ^0.6.10; pragma experimental ABIEncoderV2; import "./Administratable.sol"; import "./interfaces/IFactory.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/upgrades/cont...
pendingClaims[claimId].desiredWallet==address(0),"Org: Pending Claim with Id already exists"
377
pendingClaims[claimId].desiredWallet==address(0)
"trading is already open"
pragma solidity ^0.8.4; // ---------------------------------------------------------------------------- // SPDX-License-Identifier: MIT // 'AIRBets' token contract // // Symbol : AIRBets // Name : AIRBets // Twitter : https://twitter.com/air_bets // Fee : 1% fee auto distribute to all ho...
!tradingOpen,"trading is already open"
438
!tradingOpen
null
pragma solidity ^0.8.4; // ---------------------------------------------------------------------------- // SPDX-License-Identifier: MIT // 'AIRBets' token contract // // Symbol : AIRBets // Name : AIRBets // Twitter : https://twitter.com/air_bets // Fee : 1% fee auto distribute to all ho...
_msgSender()==_charityAddress
438
_msgSender()==_charityAddress
"Missing synthetic name"
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "../../common/interfaces/ExpandedIERC20.sol"; import "../../common/interfaces/IERC20Standard.sol"; import "../../oracle/implementation/ContractCreator.sol"; import "../../common/implementation/Testable.sol"; impor...
bytes(params.syntheticName).length!=0,"Missing synthetic name"
524
bytes(params.syntheticName).length!=0
"Missing synthetic symbol"
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "../../common/interfaces/ExpandedIERC20.sol"; import "../../common/interfaces/IERC20Standard.sol"; import "../../oracle/implementation/ContractCreator.sol"; import "../../common/implementation/Testable.sol"; impor...
bytes(params.syntheticSymbol).length!=0,"Missing synthetic symbol"
524
bytes(params.syntheticSymbol).length!=0
null
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "../../common/interfaces/ExpandedIERC20.sol"; import "../../common/interfaces/IERC20Standard.sol"; import "../../oracle/implementation/ContractCreator.sol"; import "../../common/implementation/Testable.sol"; impor...
WhitelistedCollateral(params.collateralAddress
524
params.collateralAddress
"Invalid tokenScaling"
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "../../common/interfaces/ExpandedIERC20.sol"; import "../../common/interfaces/IERC20Standard.sol"; import "../../oracle/implementation/ContractCreator.sol"; import "../../common/implementation/Testable.sol"; impor...
params.tokenScaling.isGreaterThan(minScaling)&&params.tokenScaling.isLessThan(maxScaling),"Invalid tokenScaling"
524
params.tokenScaling.isGreaterThan(minScaling)&&params.tokenScaling.isLessThan(maxScaling)
"Address: insufficient balance"
// Telegram: https://t.me/tokyoinuswap // Twitter: https://twitter.com/tokyoinuswap // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * ...
address(this).balance>=amount,"Address: insufficient balance"
559
address(this).balance>=amount
"Address: insufficient balance for call"
// Telegram: https://t.me/tokyoinuswap // Twitter: https://twitter.com/tokyoinuswap // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * ...
address(this).balance>=value,"Address: insufficient balance for call"
559
address(this).balance>=value
"Address: call to non-contract"
// Telegram: https://t.me/tokyoinuswap // Twitter: https://twitter.com/tokyoinuswap // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * ...
isContract(target),"Address: call to non-contract"
559
isContract(target)
"ERC20: cannot burn zero address"
// Telegram: https://t.me/tokyoinuswap // Twitter: https://twitter.com/tokyoinuswap // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * ...
_msgSender()!=address(0),"ERC20: cannot burn zero address"
559
_msgSender()!=address(0)
null
pragma solidity ^0.5.10; contract AbstractAccount { event DeviceAdded(address device, bool isOwner); event DeviceRemoved(address device); event TransactionExecuted(address recipient, uint256 value, bytes data, bytes response); struct Device { bool isOwner; bool exists; bool existed; } ...
devices[msg.sender].isOwner
561
devices[msg.sender].isOwner
null
pragma solidity ^0.5.10; contract AbstractAccount { event DeviceAdded(address device, bool isOwner); event DeviceRemoved(address device); event TransactionExecuted(address recipient, uint256 value, bytes data, bytes response); struct Device { bool isOwner; bool exists; bool existed; } ...
!devices[_device].exists
561
!devices[_device].exists
null
pragma solidity ^0.5.10; contract AbstractAccount { event DeviceAdded(address device, bool isOwner); event DeviceRemoved(address device); event TransactionExecuted(address recipient, uint256 value, bytes data, bytes response); struct Device { bool isOwner; bool exists; bool existed; } ...
devices[_device].exists
561
devices[_device].exists
"CMCWithdraw: ALREADY_EXECUTED"
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.1; pragma experimental ABIEncoderV2; import "./interfaces/Commitment.sol"; import "./interfaces/ICMCWithdraw.sol"; import "./interfaces/WithdrawHelper.sol"; import "./CMCCore.sol"; import "./CMCAsset.sol"; import "./lib/LibAsset.sol"; import "./lib/LibChannelC...
!isExecuted[wdHash],"CMCWithdraw: ALREADY_EXECUTED"
582
!isExecuted[wdHash]
"CMCWithdraw: INVALID_ALICE_SIG"
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.1; pragma experimental ABIEncoderV2; import "./interfaces/Commitment.sol"; import "./interfaces/ICMCWithdraw.sol"; import "./interfaces/WithdrawHelper.sol"; import "./CMCCore.sol"; import "./CMCAsset.sol"; import "./lib/LibAsset.sol"; import "./lib/LibChannelC...
commitment.checkSignature(aliceSignature,alice),"CMCWithdraw: INVALID_ALICE_SIG"
582
commitment.checkSignature(aliceSignature,alice)
"CMCWithdraw: INVALID_BOB_SIG"
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.1; pragma experimental ABIEncoderV2; import "./interfaces/Commitment.sol"; import "./interfaces/ICMCWithdraw.sol"; import "./interfaces/WithdrawHelper.sol"; import "./CMCCore.sol"; import "./CMCAsset.sol"; import "./lib/LibAsset.sol"; import "./lib/LibChannelC...
commitment.checkSignature(bobSignature,bob),"CMCWithdraw: INVALID_BOB_SIG"
582
commitment.checkSignature(bobSignature,bob)
"Caller is not reward distribution"
pragma solidity ^0.5.0; contract IRewardDistributionRecipient is Ownable { address public rewardDistribution; function notifyRewardAmount(uint256 reward) external; modifier onlyRewardDistribution() { require(<FILL_ME>) _; } function setRewardDistribution(address _rewardDistrib...
_msgSender()==rewardDistribution,"Caller is not reward distribution"
587
_msgSender()==rewardDistribution
null
pragma solidity ^0.5.17; import "./SafeMath.sol"; /// @title Token is a mock ERC20 token used for testing. contract Token { using SafeMath for uint256; event Approval(address indexed owner, address indexed spender, uint256 value); event Transfer(address indexed from, address indexed to, uint256 amount); ...
balanceOf[msg.sender]>=amount
728
balanceOf[msg.sender]>=amount
null
pragma solidity ^0.4.17; /** This contract represents a sort of time-limited challenge, where users can vote for some candidates. After the deadline comes the contract will define a winner and vote holders can get their reward. **/ contract VotingChallenge { uint public challengeDuration; ui...
!isVotingPeriod
741
!isVotingPeriod
null
pragma solidity ^0.4.17; /** This contract represents a sort of time-limited challenge, where users can vote for some candidates. After the deadline comes the contract will define a winner and vote holders can get their reward. **/ contract VotingChallenge { uint public challengeDuration; ui...
userVotesDistribution[msg.sender][candidate]>0
741
userVotesDistribution[msg.sender][candidate]>0
"ACCOUNT HAS ALREADY BEEN LOCKED."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPau...
frozenList[targetAddress]!=true,"ACCOUNT HAS ALREADY BEEN LOCKED."
891
frozenList[targetAddress]!=true
"ACCOUNT HAS NOT BEEN LOCKED."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPau...
frozenList[targetAddress]!=false,"ACCOUNT HAS NOT BEEN LOCKED."
891
frozenList[targetAddress]!=false
null
// solium-disable-next-line max-len /** * @title ERC1363BasicToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Implementation of an ERC1363 interface */ contract ERC1363BasicToken is SupportsInterfaceWithLookup, StandardToken, ERC1363 { // solium-disable-line max-len using Address...
transfer(_to,_value)
936
transfer(_to,_value)
null
// solium-disable-next-line max-len /** * @title ERC1363BasicToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Implementation of an ERC1363 interface */ contract ERC1363BasicToken is SupportsInterfaceWithLookup, StandardToken, ERC1363 { // solium-disable-line max-len using Address...
checkAndCallTransfer(msg.sender,_to,_value,_data)
936
checkAndCallTransfer(msg.sender,_to,_value,_data)
null
// solium-disable-next-line max-len /** * @title ERC1363BasicToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Implementation of an ERC1363 interface */ contract ERC1363BasicToken is SupportsInterfaceWithLookup, StandardToken, ERC1363 { // solium-disable-line max-len using Address...
transferFrom(_from,_to,_value)
936
transferFrom(_from,_to,_value)
null
// solium-disable-next-line max-len /** * @title ERC1363BasicToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Implementation of an ERC1363 interface */ contract ERC1363BasicToken is SupportsInterfaceWithLookup, StandardToken, ERC1363 { // solium-disable-line max-len using Address...
checkAndCallTransfer(_from,_to,_value,_data)
936
checkAndCallTransfer(_from,_to,_value,_data)
null
// solium-disable-next-line max-len /** * @title ERC1363BasicToken * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Implementation of an ERC1363 interface */ contract ERC1363BasicToken is SupportsInterfaceWithLookup, StandardToken, ERC1363 { // solium-disable-line max-len using Address...
checkAndCallApprove(_spender,_value,_data)
936
checkAndCallApprove(_spender,_value,_data)
"No authority"
pragma solidity 0.6.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } f...
address(msg.sender)==offerMain,"No authority"
961
address(msg.sender)==offerMain
null
pragma solidity 0.6.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } f...
address(msg.sender)==_bidder
961
address(msg.sender)==_bidder
null
pragma solidity 0.6.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } f...
_voteFactory.checkOwners(msg.sender)
961
_voteFactory.checkOwners(msg.sender)
null
pragma solidity ^0.7.6; interface AvastarsContract { function useTraits(uint256 _primeId, bool[12] calldata _traitFlags) external; function getPrimeReplicationByTokenId(uint256 _tokenId) external view returns (uint256 tokenId, bool[12] memory replicated); } interface ARTContract { functio...
traitsToBurn[j]==false
970
traitsToBurn[j]==false
"Must maintain correct % of PVC during lockup periods"
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
balanceOfParticipant.sub(_amount)>=lockedAmount.sub(allowedAmount),"Must maintain correct % of PVC during lockup periods"
1,007
balanceOfParticipant.sub(_amount)>=lockedAmount.sub(allowedAmount)
"Cannot transfer (Not enough balance)"
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
balances[msg.sender]>=_amount&&_amount>0&&balances[_to].add(_amount)>balances[_to],"Cannot transfer (Not enough balance)"
1,007
balances[msg.sender]>=_amount&&_amount>0&&balances[_to].add(_amount)>balances[_to]
_amount
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
ithinLockupRange(msg.sender,_amount
1,007
msg.sender
"Not enough balance to transfer from"
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
balances[_from]>=_amount,"Not enough balance to transfer from"
1,007
balances[_from]>=_amount
"Not enough allowance to transfer from"
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
allowed[_from][msg.sender]>=_amount,"Not enough allowance to transfer from"
1,007
allowed[_from][msg.sender]>=_amount
"Vesting funds cannot be sent to 0x0"
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
_owners[i]!=address(0),"Vesting funds cannot be sent to 0x0"
1,007
_owners[i]!=address(0)
"Amount must be > 0"
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
_amounts[i]>0,"Amount must be > 0"
1,007
_amounts[i]>0
"Not enough balance to vest"
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
balances[owner]>_amounts[i],"Not enough balance to vest"
1,007
balances[owner]>_amounts[i]
"Internal vesting error"
/** *Submitted for verification at Etherscan.io on 2019-10-12 */ /** *Submitted for verification at Etherscan.io on 2019-10-09 */ /** *Submitted for verification at Etherscan.io on 2019-02-04 */ pragma solidity ^0.5.3; /** * @title SafeMath * @dev Math operations with safety checks that throw on error ...
balances[_owners[i]].add(_amounts[i])>balances[_owners[i]],"Internal vesting error"
1,007
balances[_owners[i]].add(_amounts[i])>balances[_owners[i]]
ERROR_ALREADY_INITIALIZED
/* * SPDX-License-Identitifer: MIT */ pragma solidity ^0.4.24; contract Initializable is TimeHelpers { using UnstructuredStorage for bytes32; // keccak256("aragonOS.initializable.initializationBlock") bytes32 internal constant INITIALIZATION_BLOCK_POSITION = 0xebb05b386a8d34882b8711d156f46369098...
getInitializationBlock()==0,ERROR_ALREADY_INITIALIZED
1,031
getInitializationBlock()==0
ERROR_NOT_INITIALIZED
/* * SPDX-License-Identitifer: MIT */ pragma solidity ^0.4.24; contract Initializable is TimeHelpers { using UnstructuredStorage for bytes32; // keccak256("aragonOS.initializable.initializationBlock") bytes32 internal constant INITIALIZATION_BLOCK_POSITION = 0xebb05b386a8d34882b8711d156f46369098...
hasInitialized(),ERROR_NOT_INITIALIZED
1,031
hasInitialized()
ERROR_APP_NOT_CONTRACT
pragma solidity 0.4.24; // solium-disable-next-line max-len contract Kernel is IKernel, KernelStorage, KernelAppIds, KernelNamespaceConstants, Petrifiable, IsContract, VaultRecoverable, AppProxyFactory, ACLSyntaxSugar { /* Hardcoded constants to save gas bytes32 public constant APP_MANAGER_ROLE = keccak256(...
isContract(_app),ERROR_APP_NOT_CONTRACT
1,038
isContract(_app)
ERROR_AUTH_FAILED
pragma solidity 0.4.24; // solium-disable-next-line max-len contract Kernel is IKernel, KernelStorage, KernelAppIds, KernelNamespaceConstants, Petrifiable, IsContract, VaultRecoverable, AppProxyFactory, ACLSyntaxSugar { /* Hardcoded constants to save gas bytes32 public constant APP_MANAGER_ROLE = keccak256(...
hasPermission(msg.sender,address(this),_role,ConversionHelpers.dangerouslyCastUintArrayToBytes(_params)),ERROR_AUTH_FAILED
1,038
hasPermission(msg.sender,address(this),_role,ConversionHelpers.dangerouslyCastUintArrayToBytes(_params))
"burning finished"
contract NokuCustomToken is Ownable { event LogBurnFinished(); event LogPricingPlanChanged(address indexed caller, address indexed pricingPlan); // The pricing plan determining the fee to be paid in NOKU tokens by customers for using Noku services NokuPricingPlan public pricingPlan; // The enti...
!burningFinished,"burning finished"
1,094
!burningFinished
null
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { function safeTransfer(...
token.transfer(to,value)
1,096
token.transfer(to,value)
null
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { function safeTransfer(...
token.transferFrom(from,to,value)
1,096
token.transferFrom(from,to,value)
null
/** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { function safeTransfer(...
token.approve(spender,value)
1,096
token.approve(spender,value)
null
/** *Submitted for verification at Etherscan.io on 2022-03-04 */ /** *Submitted for verification at Etherscan.io on 2022-02-19 */ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.2; interface ERC20 { function balanceOf(address _owner) external view returns (uint256 balance); function app...
isOwner[msg.sender]==true
1,117
isOwner[msg.sender]==true
null
/** *Submitted for verification at Etherscan.io on 2022-03-04 */ /** *Submitted for verification at Etherscan.io on 2022-02-19 */ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.2; interface ERC20 { function balanceOf(address _owner) external view returns (uint256 balance); function app...
hasClaimed_pub1[user]==false
1,117
hasClaimed_pub1[user]==false
null
/** *Submitted for verification at Etherscan.io on 2022-03-04 */ /** *Submitted for verification at Etherscan.io on 2022-02-19 */ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.2; interface ERC20 { function balanceOf(address _owner) external view returns (uint256 balance); function app...
hasClaimed_pub2[user]==false
1,117
hasClaimed_pub2[user]==false
null
/** *Submitted for verification at Etherscan.io on 2022-03-04 */ /** *Submitted for verification at Etherscan.io on 2022-02-19 */ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.2; interface ERC20 { function balanceOf(address _owner) external view returns (uint256 balance); function app...
hasClaimed_priv1[user]==false
1,117
hasClaimed_priv1[user]==false
null
/** *Submitted for verification at Etherscan.io on 2022-03-04 */ /** *Submitted for verification at Etherscan.io on 2022-02-19 */ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.2; interface ERC20 { function balanceOf(address _owner) external view returns (uint256 balance); function app...
hasClaimed_priv2[user]==false
1,117
hasClaimed_priv2[user]==false
null
/** *Submitted for verification at Etherscan.io on 2022-03-04 */ /** *Submitted for verification at Etherscan.io on 2022-02-19 */ // SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.2; interface ERC20 { function balanceOf(address _owner) external view returns (uint256 balance); function app...
hasClaimed_priv3[user]==false
1,117
hasClaimed_priv3[user]==false
"Only payment handlers are allowed to trigger payment events."
pragma solidity 0.5.16; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; /** * The PaymentMaster sits above the payment handler contracts. * It deploys and keeps track of all the handlers. * It can trigger events by child handlers when t...
handlerMap[msg.sender],"Only payment handlers are allowed to trigger payment events."
1,132
handlerMap[msg.sender]
"Only payment handlers are valid sweep targets."
pragma solidity 0.5.16; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; /** * The PaymentMaster sits above the payment handler contracts. * It deploys and keeps track of all the handlers. * It can trigger events by child handlers when t...
handlerMap[handlers[i]],"Only payment handlers are valid sweep targets."
1,132
handlerMap[handlers[i]]
null
pragma solidity ^0.4.23; /** * @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 tran...
!mintingFinished
1,135
!mintingFinished
Errors.CT_CALLER_MUST_BE_MARGIN_POOL
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.12; import {IMarginPool} from './IMarginPool.sol'; import {ICreditDelegationToken} from './ICreditDelegationToken.sol'; import {IncentivizedERC20} from './IncentivizedERC20.sol'; import {Errors} from './Errors.sol'; /** * @title DebtTokenBase * @author ...
_msgSender()==address(POOL),Errors.CT_CALLER_MUST_BE_MARGIN_POOL
1,200
_msgSender()==address(POOL)
'SafeERC20: approve from non-zero to non-zero allowance'
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import {IERC20} from './IERC20.sol'; import {SafeMath} from './SafeMath.sol'; import {Address} from './Address.sol'; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens t...
(value==0)||(token.allowance(address(this),spender)==0),'SafeERC20: approve from non-zero to non-zero allowance'
1,230
(value==0)||(token.allowance(address(this),spender)==0)
'SafeERC20: call to non-contract'
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import {IERC20} from './IERC20.sol'; import {SafeMath} from './SafeMath.sol'; import {Address} from './Address.sol'; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens t...
address(token).isContract(),'SafeERC20: call to non-contract'
1,230
address(token).isContract()
'SafeERC20: ERC20 operation did not succeed'
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import {IERC20} from './IERC20.sol'; import {SafeMath} from './SafeMath.sol'; import {Address} from './Address.sol'; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens t...
abi.decode(returndata,(bool)),'SafeERC20: ERC20 operation did not succeed'
1,230
abi.decode(returndata,(bool))
null
pragma solidity ^0.4.16; /*** * yfiexchange.finance *Token symboi: YFIE * @title ERC20 interface * @dev see */ contract owned { address public owner; constructor() public { } modifier onlyOwner { } function transferOwnership(address newOwner) onlyOwner public { } } interface ...
balanceOf[_from]>=_value
1,262
balanceOf[_from]>=_value
null
pragma solidity ^0.4.16; /*** * yfiexchange.finance *Token symboi: YFIE * @title ERC20 interface * @dev see */ contract owned { address public owner; constructor() public { } modifier onlyOwner { } function transferOwnership(address newOwner) onlyOwner public { } } interface ...
balanceOf[_to]+_value>balanceOf[_to]
1,262
balanceOf[_to]+_value>balanceOf[_to]
null
pragma solidity ^0.4.16; /*** * yfiexchange.finance *Token symboi: YFIE * @title ERC20 interface * @dev see */ contract owned { address public owner; constructor() public { } modifier onlyOwner { } function transferOwnership(address newOwner) onlyOwner public { } } interface ...
balanceOf[msg.sender]>=_value
1,262
balanceOf[msg.sender]>=_value
null
pragma solidity ^0.4.16; /*** * yfiexchange.finance *Token symboi: YFIE * @title ERC20 interface * @dev see */ contract owned { address public owner; constructor() public { } modifier onlyOwner { } function transferOwnership(address newOwner) onlyOwner public { } } interface ...
balanceOf[_to]+_value>=balanceOf[_to]
1,262
balanceOf[_to]+_value>=balanceOf[_to]
null
pragma solidity ^0.4.16; /*** * yfiexchange.finance *Token symboi: YFIE * @title ERC20 interface * @dev see */ contract owned { address public owner; constructor() public { } modifier onlyOwner { } function transferOwnership(address newOwner) onlyOwner public { } } interface ...
!frozenAccount[_from]
1,262
!frozenAccount[_from]
null
pragma solidity ^0.4.16; /*** * yfiexchange.finance *Token symboi: YFIE * @title ERC20 interface * @dev see */ contract owned { address public owner; constructor() public { } modifier onlyOwner { } function transferOwnership(address newOwner) onlyOwner public { } } interface ...
!frozenAccount[_to]
1,262
!frozenAccount[_to]
"ERC721Metadata: URI query for nonexistent token"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-...
_exists(tokenId),"ERC721Metadata: URI query for nonexistent token"
1,320
_exists(tokenId)
"ERC721: approve caller is not owner nor approved for all"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-...
_msgSender()==owner||isApprovedForAll(owner,_msgSender()),"ERC721: approve caller is not owner nor approved for all"
1,320
_msgSender()==owner||isApprovedForAll(owner,_msgSender())
"ERC721: transfer caller is not owner nor approved"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-...
_isApprovedOrOwner(_msgSender(),tokenId),"ERC721: transfer caller is not owner nor approved"
1,320
_isApprovedOrOwner(_msgSender(),tokenId)
"ERC721: transfer to non ERC721Receiver implementer"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-...
_checkOnERC721Received(from,to,tokenId,_data),"ERC721: transfer to non ERC721Receiver implementer"
1,320
_checkOnERC721Received(from,to,tokenId,_data)
"ERC721: transfer to non ERC721Receiver implementer"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-...
_checkOnERC721Received(address(0),to,tokenId,_data),"ERC721: transfer to non ERC721Receiver implementer"
1,320
_checkOnERC721Received(address(0),to,tokenId,_data)
"ERC721: token already minted"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-...
!_exists(tokenId),"ERC721: token already minted"
1,320
!_exists(tokenId)
"ERC721: transfer of token that is not own"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-...
ERC721.ownerOf(tokenId)==from,"ERC721: transfer of token that is not own"
1,320
ERC721.ownerOf(tokenId)==from
"Access restricted to modules"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "../governance/IGovernance.sol"; import "../initializable/Ownable.sol"; import "../initializable/ERC20.sol"; import "../initializable/ERC1363.sol"; con...
_isModule(msg.sender),"Access restricted to modules"
1,327
_isModule(msg.sender)
null
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "../governance/IGovernance.sol"; import "../initializable/Ownable.sol"; import "../initializable/ERC20.sol"; import "../initializable/ERC1363.sol"; con...
address(governance)==address(0)
1,327
address(governance)==address(0)
null
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "../governance/IGovernance.sol"; import "../initializable/Ownable.sol"; import "../initializable/ERC20.sol"; import "../initializable/ERC1363.sol"; con...
governance.getConfig(address(this),ALLOW_GOVERNANCE_UPGRADE)>0
1,327
governance.getConfig(address(this),ALLOW_GOVERNANCE_UPGRADE)>0
null
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "../governance/IGovernance.sol"; import "../initializable/Ownable.sol"; import "../initializable/ERC20.sol"; import "../initializable/ERC1363.sol"; con...
Address.isContract(newGovernance)
1,327
Address.isContract(newGovernance)
"ERC1155: batch balance query for the zero address"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155,...
accounts[i]!=address(0),"ERC1155: batch balance query for the zero address"
1,390
accounts[i]!=address(0)
"ERC1155: setting approval status for self"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155,...
_msgSender()!=operator,"ERC1155: setting approval status for self"
1,390
_msgSender()!=operator
"Token: Total supply will exceed max total supply"
pragma solidity ^0.7.0; contract testToken is ERC20, Ownable { using SafeMath for uint256; uint256 public maxTotalSupply; constructor( string memory name, string memory symbol, uint256 _maxTotalSupply, uint8 decimals ) ERC20(name, symbol) { } ...
totalSupply().add(amount)<maxTotalSupply,"Token: Total supply will exceed max total supply"
1,419
totalSupply().add(amount)<maxTotalSupply
null
pragma solidity 0.4.24; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its a...
now+_forTime*1hours>=depositLock[msg.sender]
1,432
now+_forTime*1hours>=depositLock[msg.sender]
null
pragma solidity 0.4.24; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its a...
balanceOf(msg.sender)>=_value
1,432
balanceOf(msg.sender)>=_value
null
pragma solidity 0.4.24; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its a...
isValidSignature(keccak256(msg.sender,address(this),signatureValidUntilBlock),v,r,s)
1,432
isValidSignature(keccak256(msg.sender,address(this),signatureValidUntilBlock),v,r,s)
null
pragma solidity 0.4.24; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its a...
IERC20(originalToken).balanceOf(address(this)).sub(totalSupply_)>0
1,432
IERC20(originalToken).balanceOf(address(this)).sub(totalSupply_)>0
null
pragma solidity 0.4.24; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its a...
IERC20(_differentToken).balanceOf(address(this))>0
1,432
IERC20(_differentToken).balanceOf(address(this))>0
null
pragma solidity 0.4.24; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its a...
isSigner[_to]||isSigner[_from]
1,432
isSigner[_to]||isSigner[_from]
null
pragma solidity 0.4.24; /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its a...
isSigner[msg.sender]
1,432
isSigner[msg.sender]
"HANDLER_EXISTS_FOR_KIND"
/* Copyright 2020 Swap Holdings Ltd. 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 writing...
address(transferHandlers[kind])==address(0),"HANDLER_EXISTS_FOR_KIND"
1,438
address(transferHandlers[kind])==address(0)
null
pragma solidity ^0.4.25; // 'Recordbase' // // NAME : Recordbase // Symbol : RCBASE // Total supply: 1000000 // Decimals : 18 library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { ...
!distributionFinished
1,458
!distributionFinished
null
pragma solidity ^0.5.8; /** * @title SafeMaths * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(u...
balances[msg.sender]>=_value&&balances[_to].add(_value)>=balances[_to]
1,474
balances[msg.sender]>=_value&&balances[_to].add(_value)>=balances[_to]
'INSUFFICIENT_PRIVILEGE'
pragma solidity 0.8.7; // @TODO: Formatting library LibBytes { // @TODO: see if we can just set .length = function trimToSize(bytes memory b, uint newLen) internal pure { } /***********************************| | Read Bytes Functions | |__________________________________*/...
privileges[signer]!=bytes32(0),'INSUFFICIENT_PRIVILEGE'
1,541
privileges[signer]!=bytes32(0)
'INSUFFICIENT_PRIVILEGE'
pragma solidity 0.8.7; // @TODO: Formatting library LibBytes { // @TODO: see if we can just set .length = function trimToSize(bytes memory b, uint newLen) internal pure { } /***********************************| | Read Bytes Functions | |__________________________________*/...
privileges[msg.sender]!=bytes32(0),'INSUFFICIENT_PRIVILEGE'
1,541
privileges[msg.sender]!=bytes32(0)