file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
pragma solidity ^0.4.2; // Make setPrivate payout any pending payouts // ERC20 Token Interface contract Token { uint256 public totalSupply; function balanceOf(address _owner) public constant returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); functio...
### PixelProperty PXL Functions ### */
function rewardPXL(address rewardedUser, uint256 amount) public pixelPropertyAccess() { require(rewardedUser != 0); balances[rewardedUser] += amount; totalSupply += amount; Transfer(0, rewardedUser, amount); }
11,776,627
[ 1, 4625, 348, 7953, 560, 30, 225, 11849, 26070, 1396, 453, 23668, 15486, 11849, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 19890, 52, 23668, 12, 2867, 283, 11804, 1299, 16, 2254, 5034, 3844, 13, 1071, 4957, 1396, 1862, 1435, 288, 203, 3639, 2583, 12, 266, 11804, 1299, 480, 374, 1769, 203, 3639, 324, 26488, 63, 266, 11804, 1299, 65, 1011, 38...
pragma solidity ^0.5.10; import "./Set.sol"; import "../SyscoinTransactionProcessor.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "../interfaces/SyscoinERC20AssetI.sol"; import "@openzeppelin/upgrades/contracts/Initializable.sol"; contract SyscoinERC20Manager is Initializable { using S...
keyhash or scripthash for syscoinWitnessProgram is this a Syscoin asset and we are allowed to mint?
function freezeBurnERC20( uint value, uint32 assetGUID, address erc20ContractAddress, uint8 precision, bytes memory syscoinAddress ) public minimumValue(erc20ContractAddress, value) returns (bool) { require(syscoinAddress.length > 0, "s...
12,623,383
[ 1, 4625, 348, 7953, 560, 30, 225, 498, 2816, 578, 2728, 2816, 364, 1393, 1017, 885, 24007, 9459, 353, 333, 279, 16455, 1017, 885, 3310, 471, 732, 854, 2935, 358, 312, 474, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16684, 38, 321, 654, 39, 3462, 12, 203, 3639, 2254, 460, 16, 203, 3639, 2254, 1578, 3310, 17525, 16, 203, 3639, 1758, 6445, 71, 3462, 8924, 1887, 16, 203, 3639, 2254, 28, 6039, 16, 203, 3639, 1731, 3778, 1393, 1017, 8...
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 c) { if (a == 0) { ret...
Minimal acceptable duration of crowdsale
uint256 constant public MIN_CROWDSALE_TIME = 3 days;
245,500
[ 1, 4625, 348, 7953, 560, 30, 225, 5444, 2840, 14206, 3734, 434, 276, 492, 2377, 5349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 5381, 1071, 6989, 67, 39, 11226, 19748, 900, 67, 4684, 273, 890, 4681, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title The `Snapper` contract. * @notice The data storage part of the whole `Snapper` app. * @dev Logics like generating snapshot image / delta file and calling `takeSnapshot` are handled by t...
* @notice Get the lastest snapshot info by region. @param regionId ID of the region to query./
function latestSnapshotInfo(uint256 regionId) external view returns (SnapshotInfo memory) { return _latestSnapshots[regionId]; }
5,473,184
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 326, 1142, 395, 4439, 1123, 635, 3020, 18, 632, 891, 3020, 548, 1599, 434, 326, 3020, 358, 843, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4891, 4568, 966, 12, 11890, 5034, 3020, 548, 13, 3903, 1476, 1135, 261, 4568, 966, 3778, 13, 288, 203, 3639, 327, 389, 13550, 17095, 63, 6858, 548, 15533, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.6.12; // SPDX-License-Identifier: BSD-3-Clause //BSD Zero Clause License: "SPDX-License-Identifier: <SPDX-License>" /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { ...
* @dev The Ownable constructor sets the original `owner` of the contract to the sender account./
constructor() public { admin = msg.sender; }
369,327
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1021, 14223, 6914, 3885, 1678, 326, 2282, 1375, 8443, 68, 434, 326, 6835, 358, 326, 5793, 2236, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 1435, 1071, 288, 203, 565, 3981, 273, 1234, 18, 15330, 31, 203, 225, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.5.0; import "https://github.com/starkware-libs/veedo/blob/master/contracts/BeaconContract.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/c4bb7b7bb9f09534bf010f6bf6f0d85bf2bf1caa/contracts/math/SafeMath.sol"; /** * @title Randomness Game *...
* @notice Function that resets the game by clearing all relevant variables./
function resetGame() public /*private*/ onlyOwner() /*delete modifier*/ { guessOne = 0; guessTwo = 0; targetNumber = 0; hasFirstGuess = false; hasSecondGuess = false; playerOne = address(0); playerTwo = address(0); winningAddress = address(0); ...
6,481,577
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4284, 716, 20063, 326, 7920, 635, 29820, 777, 9368, 3152, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2715, 12496, 1435, 1071, 1748, 1152, 5549, 1338, 5541, 1435, 1748, 3733, 9606, 5549, 288, 203, 3639, 7274, 3335, 273, 374, 31, 203, 3639, 7274, 11710, 273, 374, 31, 203, 3639, 1018, 1854, 273, 374, 31, 203, 3639, 711, 3...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /** * ################################################################################ * ################################################################################ * ################################################################################ * ##...
* @dev Returns the token's active mutation./
function getTokenMutation(uint256 tokenId) public view override tokenExists(tokenId) returns (uint256) { return _tokenMutation[tokenId]; }
256,993
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 1147, 1807, 2695, 11934, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9162, 20028, 12, 11890, 5034, 1147, 548, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1147, 4002, 12, 2316, 548, 13, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 389, 2316, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./MintAnimalToken.sol"; contract SaleAnimalToken { MintAnimalToken public mintAnimalTokenAddress; constructor (address _mintAnimalTokenAddress) { mintAnimalTokenAddress = MintAnimalToken(_mintAnimalTokenAddress); } //토큰별 가격 ...
@ 판매 함수 토큰 주인주인이어야 등록 토큰 소유자에게 판매 권한을 받아야 됨 판매중인 토큰에 매개변수 넣음
function setForSaleAnimalToken(uint256 _animalTokenId, uint256 _price) public { address animalTokenOwner = mintAnimalTokenAddress.ownerOf(_animalTokenId); require(animalTokenOwner == msg.sender, "Caller is not aninal token owner."); require(_price > 0 , "price is zero or lower"); re...
6,348,642
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 225, 174, 239, 243, 172, 105, 102, 225, 174, 248, 106, 173, 235, 251, 225, 174, 233, 259, 174, 228, 113, 225, 173, 101, 125, 173, 256, 121, 173, 101, 125, 173, 256, 121, 173, 256, 117, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 444, 1290, 30746, 979, 2840, 1345, 12, 11890, 5034, 389, 304, 2840, 1345, 548, 16, 2254, 5034, 389, 8694, 13, 1071, 288, 203, 3639, 1758, 392, 2840, 1345, 5541, 273, 312, 474, 979, 2840, 1345, 1887, 18, 8443, 951, 24899...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism h...
@inheritdoc ITicket
function controllerDelegateFor(address _user, address _to) external override onlyController { _delegate(_user, _to); }
9,829,750
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 467, 13614, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2596, 9586, 1290, 12, 2867, 389, 1355, 16, 1758, 389, 869, 13, 3903, 3849, 1338, 2933, 288, 203, 3639, 389, 22216, 24899, 1355, 16, 389, 869, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./FeeOwner.sol"; import "./Fee1155.sol"; /** @title A basic smart contract for tracking the ownership of SuperFarm Items. @author Ti...
*/ Emit an event that the contract's ownership transferrance is locked.
A function which allows the original owner of this contract to lock all future ownership clawbacks. function lockOwnership() external onlyOriginalOwner { ownershipLocked = true; emit OwnershipLocked(); } @param pool The PoolInput full of data defining the pool's operation. @param _groupId...
1,272,069
[ 1, 4625, 348, 7953, 560, 30, 1195, 16008, 392, 871, 716, 326, 6835, 1807, 23178, 906, 74, 370, 1359, 353, 8586, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 432, 445, 1492, 5360, 326, 2282, 3410, 434, 333, 6835, 358, 2176, 777, 203, 565, 3563, 23178, 927, 2219, 823, 87, 18, 203, 225, 445, 2176, 5460, 12565, 1435, 3903, 1338, 8176, 5541, 288, 203, 565, 23178, 8966, 273, 638, 31, ...
./full_match/1/0x47CB6e343DD23079C812a799F41160e8b9791Ad8/sources/EverRise.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("EverRise", "RISE") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUni...
8,468,702
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 2932, 41, 502, 54, 784, 3113, 315, 2259, 1090, 7923, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58, 22, 82...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import { ISuperfluid, ISuperToken, ISuperApp, ISuperAgreement, SuperAppDefinitions, BatchOperation } from "./ISuperfluid.sol"; // When you're ready to leave Remix, change imports to follow this pattern: // "@superfluid-f...
function that allows for easily creating/updating/deleting flows @dev if inFlowRate is zero, delete outflow.
function _crudFlow(bytes memory _ctx, address receiver, ISuperToken token, int96 flowRate, Action action) private returns (bytes memory newCtx){ newCtx = _ctx; if (action == Action.CREATE){ (newCtx, ) = _host.callAgreementWithContext( _cfa, abi.encodeWithS...
1,067,586
[ 1, 4625, 348, 7953, 560, 30, 225, 445, 716, 5360, 364, 17997, 4979, 19, 5533, 1776, 19, 19003, 310, 22465, 632, 5206, 309, 316, 5249, 4727, 353, 3634, 16, 1430, 596, 2426, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 23025, 5249, 12, 3890, 3778, 389, 5900, 16, 1758, 5971, 16, 467, 8051, 1345, 1147, 16, 509, 10525, 4693, 4727, 16, 4382, 1301, 13, 3238, 1135, 261, 3890, 3778, 394, 6442, 15329, 203, 3639, 394, 6442, 273, 389, 5900...
./full_match/8453/0x6B46ab132cFD9886979cb849C7ec0e05D850C3F6/sources/project_/contracts/BRE.sol
Wallet holding limit mechanism
contract BRE is ERC20Burnable, Ownable { using SafeMath for uint256; uint256 public immutable MAX_SUPPLY; uint256 public totalBurned = 0; uint256 public maxWalletToken; mapping(address => bool) public _isExcludedFromMaxWallet; constructor( uint256 _maxSupply, uint256 _initial...
11,551,717
[ 1, 4625, 348, 7953, 560, 30, 225, 20126, 19918, 1800, 12860, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 862, 353, 4232, 39, 3462, 38, 321, 429, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 1071, 11732, 4552, 67, 13272, 23893, 31, 203, 203, 565, 2254, 5034, 1071, 207...
./full_match/1/0xC970F9C985054fd29502C17FFaF36B5e69871A62/sources/browser/IERC20.sol
---------------------------------------------------------------------------- ERC Token Standard #20 Interface ----------------------------------------------------------------------------
interface ERC20 { function totalSupply() external view returns (uint256); function balanceOf(address tokenOwner) external view returns (uint256 balance); function allowance(address tokenOwner, address spender) external view returns (uint256 remaining); function transfer(address to, uint256 tokens) exter...
9,688,602
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3155, 8263, 468, 3462, 6682, 8879, 13849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 4232, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 565, 445, 11013, 951, 12, 2867, 1147, 5541, 13, 3903, 1476, 1135, 261, 11890, 5034, 11013, 1769, 203, 565, 445, 1699, ...
./full_match/3/0x405db14e0CD5c90Ed4C867efACd0790FDE3d9E69/sources/browser/main.sol
функция разовой установки внешних адресов
function setExternalAddresses(address[] memory _externalAddresses) public onlyOwner returns(bool) { require (!externalAddressesSet, 'External address have already been set'); require (_externalAddresses.length == 3, '_externalAddresses Array length should be 3'); for (uint8 j = 0; j < _externalAddresses.l...
8,152,428
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 146, 231, 146, 230, 145, 126, 145, 123, 146, 233, 145, 121, 146, 242, 225, 146, 227, 145, 113, 145, 120, 145, 127, 145, 115, 145, 127, 145, 122, 225, 146, 230, 146, 228, 146, 229, 145, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 444, 6841, 7148, 12, 2867, 8526, 3778, 389, 9375, 7148, 13, 1071, 1338, 5541, 1135, 12, 6430, 13, 288, 203, 565, 2583, 16051, 9375, 7148, 694, 16, 296, 6841, 1758, 1240, 1818, 2118, 444, 8284, 203, 565, 2583, 261, 67, ...
// contracts/BadgeTokenFactory.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../node_modules/@openzeppelin/contracts/utils/Counters.sol"; import "./BadgeDefinitionFactory.sol"; import "./BadgeQueryOracle.sol"; /** * @title BadgeTokenFactory * @author Geoffrey Garcia * @notice Contract to use ...
the ID of BadgeDefinition associated to the BadgeToken the user want to mint
uint badgeDefinitionId;
15,821,752
[ 1, 4625, 348, 7953, 560, 30, 225, 326, 1599, 434, 6107, 908, 1852, 3627, 358, 326, 6107, 908, 1345, 326, 729, 2545, 358, 312, 474, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 15654, 21768, 31, 7682, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: Unlicense pragma solidity >=0.7.6; import '../../tsm/contracts/NutBerryTokenBridge.sol'; /// @notice Composition of EVM enabled, application specific rollup. /// Version 1 // Audit-1: ok contract NutBerryFlavorV1 is NutBerryTokenBridge { /// @dev Returns the storage value for `key`. //...
update contract storage
for { let ptr := 68 } lt(ptr, calldatasize()) { } {
15,861,940
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 6835, 2502, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 364, 288, 2231, 6571, 519, 23797, 289, 13489, 12, 6723, 16, 745, 13178, 554, 10756, 288, 289, 288, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.24; /** * @title Open registry for management of AI services run on SingularityNET * @author SingularityNET * */ interface IRegistry { // ___ _ _ _ __ __ _ // / _ \ _ __ __ _ __ _ _ __ (_)______ _| |_(_) __...
* @title Open registry for management of AI services run on SingularityNET @author SingularityNET/ ___ _ _ _ __ __ _ / _ \ _ __ __ _ __ _ _ __ (_)______ _| |_(_) ___ _ __ | \/ | __ _ _ __ ___ | |_ | | | | '__/ _` |/ _` | '_ \| |_ / _`...
interface IRegistry { event OrganizationCreated (bytes32 indexed orgId); event OrganizationModified(bytes32 indexed orgId); event OrganizationDeleted (bytes32 indexed orgId); function createOrganization(bytes32 orgId, bytes orgMetadataURI, address[] members) external; function changeOrganization...
5,488,856
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 3502, 4023, 364, 11803, 434, 432, 45, 4028, 1086, 603, 348, 310, 12976, 14843, 632, 4161, 348, 310, 12976, 14843, 19, 565, 19608, 13491, 389, 1850, 389, 282, 389, 10402, 1001, 225, 1001, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 467, 4243, 288, 203, 203, 203, 565, 871, 12046, 6119, 261, 3890, 1578, 8808, 2358, 548, 1769, 203, 565, 871, 12046, 4575, 12, 3890, 1578, 8808, 2358, 548, 1769, 203, 565, 871, 12046, 7977, 261, 3890, 1578, 8808, 2358, 548, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import '../utils/EnumerableSet.sol'; import '../utils/Address.sol'; import '../utils/Context.sol'; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. T...
* @notice Cryptofolio interface/ Getters State modifiers
interface IWOWSERC1155 { function isTradeFloor(address account) external view returns (bool); function addressToTokenId(address tokenAddress) external view returns (uint256); function tokenIdToAddress(uint256 tokenId) external view returns (address); function getNextMintableTokenId(uint8 level, ...
5,925,434
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 22752, 792, 355, 1594, 1560, 19, 968, 5432, 3287, 10429, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 59, 7306, 2123, 39, 2499, 2539, 288, 203, 203, 225, 445, 353, 22583, 42, 5807, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 6430, 1769, 203, 203, 225, 445, 1758, 774, 1345, 548, 12, 2867, 1147, 1887, 13, 203, 565, 3903...
pragma solidity ^0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / ...
Destruction of the contract with return of funds to the specified address. Available to the owner of the contract.
function del(address _wallet) external onlyOwner { selfdestruct(_wallet); }
5,496,990
[ 1, 4625, 348, 7953, 560, 30, 225, 10597, 313, 4062, 434, 326, 6835, 598, 327, 434, 284, 19156, 358, 326, 1269, 1758, 18, 15633, 358, 326, 3410, 434, 326, 6835, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1464, 12, 2867, 389, 19177, 13, 3903, 1338, 5541, 288, 203, 3639, 365, 5489, 8813, 24899, 19177, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x82cD3090E966aA29617ee1B79bD8e9a0349396d9/sources/contracts/0xeth.sol
Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract Eth is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0x000000000000000000000000000000000000dEaD); bool private swapping; address public marketi...
2,941,742
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4352, 749, 1635, 22467, 1098, 1635, 1203, 1300, 434, 10191, 1284, 7459, 4433, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 512, 451, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 7010, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, 203, ...
./partial_match/42/0xA6ccB36AA825f4A9422af3e1FDca84e8A2abCb7b/sources/DEFIBaseToken.sol
* @title DEFIBASE ERC20 token @dev This is part of an implementation of the DEFIBASE Index Fund protocol. DEFIBASE is a normal ERC20 token, but its supply can be adjusted by splitting and combining tokens proportionally across all wallets. DEFIBASE balances are internally represented with a hidden denomi...
contract DEFIBaseToken is ERC20UpgradeSafe, ERC677Token, OwnableUpgradeSafe { using SafeMath for uint256; using SafeMathInt for int256; event LogRebase(uint256 indexed epoch, uint256 totalSupply); event LogMonetaryPolicyUpdated(address monetaryPolicy); address public monetaryPolicy; modifier ...
8,921,864
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 2030, 1653, 8369, 4232, 39, 3462, 1147, 632, 5206, 1220, 353, 1087, 434, 392, 4471, 434, 326, 2030, 1653, 8369, 3340, 478, 1074, 1771, 18, 1377, 2030, 1653, 8369, 353, 279, 2212, 4232, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 2030, 1653, 2171, 1345, 353, 4232, 39, 3462, 10784, 9890, 16, 4232, 39, 26, 4700, 1345, 16, 14223, 6914, 10784, 9890, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 1702, 364, 509, 5034...
./full_match/5/0x08f120f4Abf608e2c151B6513444449C8Cb6aF11/sources/contracts/AvaxGods.sol
@dev internal function to end the battle @param battleEnder winner address @param _battle battle; taken from attackOrDefend function
function _endBattle(address battleEnder, Battle memory _battle) internal returns (Battle memory) { _battle.battleStatus = BattleStatus.ENDED; _battle.winner = battleEnder; updateBattle(_battle.name, _battle); uint p1 = playerInfo[_battle.players[0]]; uint p2 = playerInfo[_battle.players[1]]; ...
1,866,308
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2713, 445, 358, 679, 326, 324, 4558, 298, 632, 891, 324, 4558, 298, 664, 765, 5657, 1224, 1758, 632, 891, 389, 70, 4558, 298, 324, 4558, 298, 31, 9830, 628, 13843, 1162, 3262, 409, 445,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 409, 38, 4558, 298, 12, 2867, 324, 4558, 298, 664, 765, 16, 605, 4558, 298, 3778, 389, 70, 4558, 298, 13, 2713, 1135, 261, 38, 4558, 298, 3778, 13, 288, 203, 203, 565, 389, 70, 4558, 298, 18, 70, 4558, 298, 1...
./full_match/1313161554/0x8535bC7a55E090DACc9c201A758CD035672f5e10/sources/contracts/marketplace/Marketplace.sol
@notice set the transferMaxGas
function setTransferMaxGas(uint16 _newTransferMaxGas) external onlySuperRole(MARKETPLACE_MANAGER_ROLE) { require(_newTransferMaxGas > 2300, 'transferMaxGas must be > 2300'); transferMaxGas = _newTransferMaxGas; }
13,233,608
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 444, 326, 7412, 2747, 27998, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 5912, 2747, 27998, 12, 11890, 2313, 389, 2704, 5912, 2747, 27998, 13, 3903, 1338, 8051, 2996, 12, 12693, 1584, 12134, 67, 19402, 67, 16256, 13, 288, 203, 3639, 2583, 24899, 2704, 5912, 2747, 27998, 405, 10213, 713, 1...
// contracts/mocks/MockRouter.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./interfaces/IMMintableERC20.sol"; /** * @dev Mock contract used for unit tests. */ contract MockRouter { using SafeERC20 for IERC20; address p...
* @dev Mock swapExactTokensForTokens function. Transfer first token of path to contract and last one to msg.sender. The amount to send is the same as amountIn./ solhint-disable-next-line not-rely-on-time Transfer tokens. Return value.
function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts) { require(amountIn >= amountOutMin, "!amount"); require(deadline >= block.timesta...
6,366,988
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7867, 7720, 14332, 5157, 1290, 5157, 445, 18, 12279, 1122, 1147, 434, 589, 358, 6835, 471, 1142, 1245, 358, 1234, 18, 15330, 18, 1021, 3844, 358, 1366, 353, 326, 1967, 487, 3844, 382, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7720, 14332, 5157, 1290, 5157, 12, 203, 3639, 2254, 5034, 3844, 382, 16, 203, 3639, 2254, 5034, 3844, 1182, 2930, 16, 203, 3639, 1758, 8526, 745, 892, 589, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 14096, 203...
/** *Submitted for verification at Etherscan.io on 2021-05-07 */ // File: node_modules\@openzeppelin\contracts\utils\EnumerableSet.sol // 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 * typ...
* @dev Creates a new token for `to` with a `tokenId`. Its token ID will be automatically assigned (and available on the emitted {IERC721-Transfer} event), and the token URI autogenerated based on the base URI passed at construction. See {ERC721-_mint}. Requirements: - the caller must have the `MINTER_ROLE`./
function mint_by_id(address to, uint256 tokenId) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "AllOriginals/minter-role-required"); _mint(to, tokenId); }
7,935,247
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10210, 279, 394, 1147, 364, 1375, 869, 68, 598, 279, 1375, 2316, 548, 8338, 29517, 1147, 1599, 903, 506, 6635, 6958, 261, 464, 2319, 603, 326, 17826, 288, 45, 654, 39, 27, 5340, 17, 591...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 377, 445, 312, 474, 67, 1637, 67, 350, 12, 2867, 358, 16, 2254, 5034, 1147, 548, 13, 1071, 5024, 288, 203, 540, 2583, 12, 5332, 2996, 12, 6236, 2560, 67, 16256, 16, 389, 3576, 12021, 1435, 3631, 315, 1595, 7571, 1031, 19, 1154,...
./partial_match/1/0x4deAcdDEF0E6ada9a35e360126181C75fA7F8EdA/sources/contracts/NftfiHub.sol
******* */ STORAGE */ ******* */ ****** */ EVENTS */ ****** */* @notice This event is fired whenever the admin registers a contract. @param contractKey - Contract key e.g. bytes32('PERMITTED_NFTS'). @param contractAddress - Address of the contract./ *********** */ CONSTRUCTOR */ *********** */* @dev Initializes `contr...
) Ownable(_admin) { _setContracts(_contractKeys, _contractAddresses); }
2,710,131
[ 1, 4625, 348, 7953, 560, 30, 225, 380, 11345, 1195, 2347, 15553, 1195, 380, 11345, 1195, 380, 23490, 1195, 9964, 55, 1195, 380, 23490, 1195, 14, 632, 20392, 1220, 871, 353, 15950, 17334, 326, 3981, 10285, 279, 6835, 18, 632, 891, 6835...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 262, 14223, 6914, 24899, 3666, 13, 288, 203, 3639, 389, 542, 20723, 24899, 16351, 2396, 16, 389, 16351, 7148, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// contracts/Zombiemice.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./ZombiemiceUtils.sol"; contract Zombiemice is ERC721Enumerable { /* _______ _ _ _ (_______) ...
* @dev Clears the traits./
function clearTraits() external onlyOwner { for (uint256 i = 0; i < 9; i++) { delete traitTypes[i]; } }
587,090
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6257, 5913, 326, 18370, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2424, 30370, 1435, 7010, 3639, 3903, 7010, 3639, 1338, 5541, 7010, 565, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 2468, 31, 277, 27245, 288, 203, 5411, 1430, 13517, 2016, 63, 77, 15533, 203, 36...
pragma solidity ^0.5.0; import "./Company.sol"; contract RoomBooking { struct Reservation { bytes32 reservationId; bytes32 companyId; bytes32 roomId; address employeeAddr; uint16 year; uint8 month; uint8 day; uint8 hour; } modifier onlyAdmi...
@TODO Decide if we want to include company address as employee
modifier onlyEmployees(address addr) { require(_isCompanyEmployee(addr)); _; } event CompanyAdded(bytes32 companyId, uint idx); event CompanyRemoved(bytes32 companyId); event ReservationAdded(bytes32 reservationId, bytes32 companyId, bytes32 roomId); event ReservationRemoved(...
15,866,133
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 6241, 3416, 831, 309, 732, 2545, 358, 2341, 9395, 1758, 487, 24539, 1340, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 41, 23377, 25521, 12, 2867, 3091, 13, 288, 203, 3639, 2583, 24899, 291, 12627, 41, 27520, 12, 4793, 10019, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 203, 203, 203, 565, 871, 26782, 8602, 12, 3890, 1578, 14346,...
./full_match/1/0x6C84F90766782919016285A21723d5a2c8a4fAff/sources/contracts/Deposit.sol
* @notice totalBalanceOfTorn return the total Balance Of TORN which controlled buy this contract/
function totalBalanceOfTorn() external view returns (uint256 ret) { ret = IERC20Upgradeable(TORN_CONTRACT).balanceOf(address(this)); ret += balanceOfStakingOnGov(); ret += checkRewardOnGov(); }
4,976,678
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2078, 13937, 951, 56, 14245, 327, 225, 326, 2078, 30918, 8031, 225, 399, 916, 50, 1492, 25934, 225, 30143, 333, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 13937, 951, 56, 14245, 1435, 225, 3903, 1476, 1135, 261, 11890, 5034, 325, 13, 288, 203, 3639, 325, 273, 467, 654, 39, 3462, 10784, 429, 12, 56, 916, 50, 67, 6067, 2849, 1268, 2934, 12296, 951, 12, 2867, 12, 221...
/* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * Synthetix: YAMIncentives.sol * * Docs: https://docs.synthetix.io/ * * * MIT License * =========== * * Copyright (c) 2020 S...
votes * percentage / percentage max note: this will overestimate the number of votes based on % of LP pool tokens staked here
return poolVotes.mul(percentOfVote).div(BASE);
6,500,811
[ 1, 4625, 348, 7953, 560, 30, 225, 19588, 380, 11622, 342, 11622, 943, 4721, 30, 333, 903, 1879, 23562, 326, 1300, 434, 19588, 2511, 603, 4202, 738, 434, 511, 52, 2845, 2430, 384, 9477, 2674, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 327, 2845, 29637, 18, 16411, 12, 8849, 951, 19338, 2934, 2892, 12, 8369, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.0; contract MindMathGame { event GameCreated(int game_score, int game_power_up, address game_address ); event GameUpdated(int game_score, int game_power_up, address game_address ); struct game { int game_score; //Store game score int game_power_up; //Store ga...
Init contract owner. Only owner is allowed to update the values
function MindMathGameSetOwner() public { owner = msg.sender; }
12,777,995
[ 1, 4625, 348, 7953, 560, 30, 225, 4378, 6835, 3410, 18, 5098, 3410, 353, 2935, 358, 1089, 326, 924, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 490, 728, 10477, 12496, 694, 5541, 1435, 1071, 7010, 565, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0x1713ED29CFa8003469EFFefc0d82caCF6D3B78F6/sources/China.sol
* @title ERC20Decimals @dev Implementation of the ERC20Decimals. Extension of {ERC20} that adds decimals storage slot./
contract China is ERC20 { uint8 immutable private _decimals = 18; uint256 private _totalSupply = 10000000 * 10 ** 18; constructor () ERC20('China DAO', 'CD') { _mint(_msgSender(), _totalSupply); } function decimals() public view virtual override returns (uint8) { return _decimals;...
2,881,044
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 3462, 31809, 632, 5206, 25379, 434, 326, 4232, 39, 3462, 31809, 18, 10021, 434, 288, 654, 39, 3462, 97, 716, 4831, 15105, 2502, 4694, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1680, 15314, 353, 4232, 39, 3462, 288, 203, 565, 2254, 28, 11732, 3238, 389, 31734, 273, 6549, 31, 203, 565, 2254, 5034, 3238, 389, 4963, 3088, 1283, 273, 2130, 11706, 380, 1728, 2826, 6549, 31, 203, 203, 203, 565, 3885, 1...
./full_match/10/0x5932C223186F7856e08A1D7b35ACc2Aa5fC57BfD/sources/contracts/staking/GrgVault.sol
@dev Asserts that vault is not in catastrophic failure mode.
function _assertNotInCatastrophicFailure() private view { require(!isInCatastrophicFailure, "GRG_VAULT_IN_CATASTROPHIC_FAILURE_ERROR"); }
3,782,190
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 5452, 87, 716, 9229, 353, 486, 316, 276, 396, 334, 303, 844, 335, 5166, 1965, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 11231, 21855, 39, 396, 334, 303, 844, 335, 5247, 1435, 3238, 1476, 288, 203, 3639, 2583, 12, 5, 291, 382, 39, 396, 334, 303, 844, 335, 5247, 16, 315, 6997, 43, 67, 27722, 2274, 67, 706, 67, 39, 3706, 25870, 893...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.0; /* * 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 acces...
Balance should increase
require(currentStrategy.balance() > _strategyBalance, "No change in strategy balance");
481,499
[ 1, 4625, 348, 7953, 560, 30, 225, 30918, 1410, 10929, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 2972, 4525, 18, 12296, 1435, 405, 389, 14914, 13937, 16, 315, 2279, 2549, 316, 6252, 11013, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/80001/0xF8256Df6Fb926f3E33c6318133BfE3a68DC234fE/sources/contract/Miracle-Staking/IMiracle-Stake-R1.sol
=================================================================================== User Function ===================================================================================
function stake(uint256 _depositAmount, uint256 _poolID) external nonReentrant{ _stake(msg.sender, _depositAmount, _poolID); }
5,553,457
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 9917, 2429, 33, 2177, 4284, 422, 9917, 2429, 33, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 12, 11890, 5034, 389, 323, 1724, 6275, 16, 2254, 5034, 389, 6011, 734, 13, 3903, 1661, 426, 8230, 970, 95, 203, 3639, 389, 334, 911, 12, 3576, 18, 15330, 16, 389, 323, 1724, 6275, 16, 389, 6011, 734, 1769, ...
//pragma solidity ^0.4.24; pragma solidity >=0.4.22 <0.6.0; contract Goal { address public userAddress; // users address, for returning money uint64 public amount; // amount of currency stored string public goalDescription; // brief description uint32 public deadline; // Sort it out to be hours / conver...
amount of currency stored
uint64 public amount;
12,663,268
[ 1, 4625, 348, 7953, 560, 30, 225, 3844, 434, 5462, 4041, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1105, 1071, 3844, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0xf7AD51ef6AED300b491E533A400853be59578a70/sources/browser/PremiaOptionBatch.sol
@notice Cancel multiple options at once @param _premiaOption A PremiaOption contract @param _optionId List of ids of options to cancel @param _amounts Amount to cancel for each option
function batchCancelOption(IPremiaOption _premiaOption, uint256[] memory _optionId, uint256[] memory _amounts) external { require(_optionId.length == _amounts.length, "Arrays diff len"); for (uint256 i = 0; i < _optionId.length; ++i) { _premiaOption.cancelOptionFrom(msg.sender, _optionI...
721,494
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 10347, 3229, 702, 622, 3647, 632, 891, 389, 1484, 81, 1155, 1895, 432, 453, 2764, 1155, 1895, 6835, 632, 891, 389, 3482, 548, 987, 434, 3258, 434, 702, 358, 3755, 632, 891, 389, 8949, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2581, 6691, 1895, 12, 45, 23890, 1155, 1895, 389, 1484, 81, 1155, 1895, 16, 2254, 5034, 8526, 3778, 389, 3482, 548, 16, 2254, 5034, 8526, 3778, 389, 8949, 87, 13, 3903, 288, 203, 3639, 2583, 24899, 3482, 548, 18, 2469, ...
/** *Submitted for verification at Etherscan.io on 2021-09-18 */ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.6; // author Name: Alex Yap // author-email: <echo@alexyap.dev> // author-website: https://alexyap.dev // File: @openzeppelin/contracts/utils/Context.sol /* * @dev Provides informa...
Pause sale if active, make active if paused/
function flipSaleStatePreSale(uint256 price, uint256 _maxMint) public onlyOwner { genesisPrice = price; setMaxperTransaction(_maxMint); saleIsActivePreSale = !saleIsActivePreSale; }
13,858,757
[ 1, 4625, 348, 7953, 560, 30, 225, 31357, 272, 5349, 309, 2695, 16, 1221, 2695, 309, 17781, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9668, 30746, 1119, 1386, 30746, 12, 11890, 5034, 6205, 16, 2254, 5034, 389, 1896, 49, 474, 13, 1071, 1338, 5541, 288, 203, 3639, 21906, 5147, 273, 6205, 31, 203, 3639, 10851, 457, 3342, 24899, 1896, 49, 474, 1769, 203, ...
pragma solidity 0.4.17; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint25...
* function buyTokens - Collect Ethers and transfer tokens/
function buyTokens(address beneficiary) whenNotPaused public payable { require(beneficiary != 0x0); require(validPurchase()); uint256 accessTime = now; uint256 tokens = 0; uint256 weiAmount = msg.value; require((weiAmount >= (100000000000000000)) && (weiAmount <= (20000000000000000000))); ...
2,484,334
[ 1, 4625, 348, 7953, 560, 30, 380, 445, 30143, 5157, 300, 9302, 512, 29540, 471, 7412, 2430, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 30143, 5157, 12, 2867, 27641, 74, 14463, 814, 13, 1347, 1248, 28590, 1071, 8843, 429, 288, 203, 565, 2583, 12, 70, 4009, 74, 14463, 814, 480, 374, 92, 20, 1769, 203, 565, 2583, 12, 877, 23164, 10663, 203, 565, 2254, 5...
pragma solidity ^0.5.0; contract CoinFlip { // ERC-20 standard string public name = "CoinFlip"; string public symbol = "CF"; uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; event Transfer ( address indexed _from, ...
Only two players can play player 2 must bet at least the minimum bet
function takeBet(bool _bet) public payable { if(player2 != address(0)) { revert("There is already a Player 2, wait for next betting round"); } if(msg.value < minBet) { revert("Must bet minimally 10 Wei"); } }
2,552,517
[ 1, 4625, 348, 7953, 560, 30, 225, 5098, 2795, 18115, 848, 6599, 7291, 576, 1297, 2701, 622, 4520, 326, 5224, 2701, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 4862, 38, 278, 12, 6430, 389, 70, 278, 13, 1071, 8843, 429, 288, 203, 202, 202, 430, 12, 14872, 22, 480, 1758, 12, 20, 3719, 288, 203, 1082, 202, 266, 1097, 2932, 9828, 353, 1818, 279, 19185, 576, 16, 2529, 364, 102...
// SPDX-License-Identifier: MIT pragma solidity =0.8.11; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";...
* @notice Show the contribution data by wallet. @param bonusId_ The id of the bonus in bytes32. @param wallet_ The wallet address to query. @return amount The amount contributed by wallet. @return reward The reward earned by wallet./
function walletInfo(bytes32 bonusId_, address wallet_) external view returns (uint256 amount, uint256 reward) { Proposal storage p = BONUS[bonusId_]; return (p.holders[wallet_].amount, p.holders[wallet_].reward); }
12,697,008
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9674, 326, 24880, 501, 635, 9230, 18, 632, 891, 324, 22889, 548, 67, 1021, 612, 434, 326, 324, 22889, 316, 1731, 1578, 18, 632, 891, 9230, 67, 1021, 9230, 1758, 358, 843, 18, 632, 2463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 9230, 966, 12, 3890, 1578, 324, 22889, 548, 67, 16, 1758, 9230, 67, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 3844, 16, 2254, 5034, 19890, 13, 203, 565, 288, 203, 3639, 19945, 2502, 293, ...
/** *Submitted for verification at Etherscan.io on 2020-08-06 */ /** * * 11111111111111111111 111 1111111 1111111 1111111 * 11111111111111111111 111 1111111111111111111111111 * 111111 111 11111111 1111111111111111111 111 * 111111 111 11111111 1111111 11111111111 111 * 11111111 1...
injected CONTRACT AFFECTED BY MINERS
if (block.timestamp < 1){
1,802,698
[ 1, 4625, 348, 7953, 560, 30, 15776, 8020, 2849, 1268, 432, 2246, 4239, 2056, 6953, 6989, 11367, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 2629, 18, 5508, 411, 404, 15329, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-10-11 */ // SPDX-License-Identifier: MIT /* _____ __ ______ ______ ___________ _____ _ ______________ / ___// / / / __ \/ ____/ / ____/ _/ | / / | / | / / ____/ ____/ \__ \/ / / / /_/ / /_ / /_ / // |/ / /| | / |/ / / / _...
How many days since the last distribution? If less than 1, don't do anything
function getDistributionAmount() public view returns (uint256) { uint256 surfBalance = surf.balanceOf(address(this)); if (surfBalance == 0) return 0; uint256 daysSinceLastDistribution = getDaysSinceLastDistribution(); if (daysSinceLastDistribution == 0) return 0; u...
10,702,163
[ 1, 4625, 348, 7953, 560, 30, 225, 9017, 4906, 4681, 3241, 326, 1142, 7006, 35, 971, 5242, 2353, 404, 16, 2727, 1404, 741, 6967, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 9003, 6275, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 22253, 13937, 273, 22253, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 309, 261, 10050, 74, 13937, 422, 374, 13, 327, 3...
// File: @openzeppelin/contracts/utils/math/SafeMath.sol pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath`...
Early access not active modifier
modifier whenEarlyAccessNotActive() { require(!earlyAccessActive, "Early access is already active"); _; }
5,958,799
[ 1, 4625, 348, 7953, 560, 30, 225, 512, 20279, 2006, 486, 2695, 9606, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1347, 41, 20279, 1862, 1248, 3896, 1435, 288, 203, 3639, 2583, 12, 5, 2091, 715, 1862, 3896, 16, 315, 41, 20279, 2006, 353, 1818, 2695, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -1...
./full_match/77/0x2CB2b76f8796F5D417cAD6DDf56F96EdF27E158f/sources/contracts/core/L2Vault.sol
@notice External callable function to pause the contract
function pause() external onlyOwner whenNotPaused { paused = true; emit Pause(msg.sender); }
5,049,604
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 11352, 4140, 445, 358, 11722, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11722, 1435, 3903, 1338, 5541, 1347, 1248, 28590, 288, 203, 3639, 17781, 273, 638, 31, 203, 3639, 3626, 31357, 12, 3576, 18, 15330, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // // ---------------------------------------------------------------------------- contract ERC20Interface { function totalSupply() public view returns (uint); function ba...
* Constrctor function Initializes contract with initial supply tokens to the creator of the contract/
constructor() public { name = "GamerGold"; symbol = "GG"; decimals = 18; _totalSupply = 50000000000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); }
13,760,335
[ 1, 4625, 348, 7953, 560, 30, 380, 735, 701, 30206, 445, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 1071, 288, 203, 3639, 508, 273, 315, 43, 24458, 43, 1673, 14432, 203, 3639, 3273, 273, 315, 19491, 14432, 203, 3639, 15105, 273, 6549, 31, 203, 3639, 389, 4963, 3088, 1283, 273, 1381, 12648, 12648, 2787, 11706, 31,...
./full_match/4337/0xE3c3a57E4747A2e2454ec175840b6fDdC2E2c5AB/sources/contracts/contracts-upgradable/token/onft/ERC721/extension/ExtendedONFT721Upgradeable.sol
* @dev See {ERC721-_beforeTokenTransfer}./
function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual override(ERC721EnumerableUpgradeable, ERC721Upgradeable) { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); }
13,221,789
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 654, 39, 27, 5340, 17, 67, 5771, 1345, 5912, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 1122, 1345, 548, 16, 2254, 5034, 16494, 13, 2713, 5024, 3849, 12, 654, 39, 27, 5340, 3572, 25121, 10784, 429, 16, 4232, 39, 27, 5340, 10784, 429, 13...
pragma solidity ^0.5.7; contract AuraToken { mapping (address => uint256) balances; uint256 totalSupply; uint256 freeSupply; address owner1; address owner2; address owner3; string public name; //fancy name: eg Simon Bucks uint8 public decimals; //How ma...
Amount of decimals for display purposes
decimals = 8;
5,437,056
[ 1, 4625, 348, 7953, 560, 30, 225, 16811, 434, 15105, 364, 2562, 13694, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 15105, 273, 1725, 31, 7682, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// File: contracts/tokens/IERC20.sol pragma solidity 0.5.14; /** * Abstract contract(interface) for the full ERC 20 Token standard * see https://github.com/ethereum/EIPs/issues/20 * This is a simple fixed supply token contract. */ contract ERC20 { /** * Get the total token supply */ function totalSu...
* @dev Adds two signed integers, reverts on overflow./
function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a), "SignedSafeMath: addition overflow"); return c; }
12,745,691
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15605, 2795, 6726, 12321, 16, 15226, 87, 603, 9391, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 12, 474, 5034, 279, 16, 509, 5034, 324, 13, 2713, 16618, 1135, 261, 474, 5034, 13, 288, 203, 565, 509, 5034, 276, 273, 279, 397, 324, 31, 203, 565, 2583, 12443, 70, 1545, 374, 597, 276, 1545, 279, 13, 747, 261,...
./full_match/5/0x1f85B789655fB4c3CEB448C2733B6b1e387867E0/sources/project_/contracts/extensions/TokenExtension.sol
* @dev Get the current owner address of the registered token @return address. Owner address of the registered token/
function _tokenOwner() internal view returns (address) { Ownable token = Ownable(_tokenAddress()); return token.owner(); }
11,602,560
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 326, 783, 3410, 1758, 434, 326, 4104, 1147, 632, 2463, 1758, 18, 16837, 1758, 434, 326, 4104, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2316, 5541, 1435, 2713, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 14223, 6914, 1147, 273, 14223, 6914, 24899, 2316, 1887, 10663, 203, 203, 3639, 327, 1147, 18, 8443, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -...
./full_match/1/0xa3a592a37803f48da9cA6c0558Ef1Fe96181c175/sources/lib/rain.math.fixedpoint/src/FixedPointDecimalScale.sol
We know that scaleBy_ is negative here, so we can convert it to an absolute value with bitwise NOT + 1. This is slightly less gas than multiplying by negative 1 and casting it, and handles the case of -128 without overflow.
uint8 scaleDownBy_ = uint8(~scaleBy_) + 1;
17,080,348
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 5055, 716, 3159, 858, 67, 353, 6092, 2674, 16, 1427, 732, 848, 1765, 518, 358, 392, 4967, 460, 598, 25337, 4269, 397, 404, 18, 1220, 353, 21980, 5242, 16189, 2353, 10194, 310, 635, 6092, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 2254, 28, 3159, 4164, 858, 67, 273, 2254, 28, 12, 98, 5864, 858, 67, 13, 397, 404, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//Address: 0x8cfb4487aa8dc6e2120eac40764ad21b02d0780e //Contract name: IADSpecialEvent //Balance: 48 Ether //Verification Date: 6/6/2018 //Transacion Count: 11 // CODE STARTS HERE pragma solidity 0.4.24; /** * @title IADOWR Special Event Contract * @dev ERC-20 Token Standard Compliant Contract */ /** * @title Safe...
* @notice This function transfer the adminship of the contract to _newAdmin @param _newAdmin User address @param _level User new level/
admin[_newAdmin] = _level;
918,326
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1220, 445, 7412, 326, 3981, 3261, 434, 326, 6835, 358, 389, 2704, 4446, 632, 891, 389, 2704, 4446, 2177, 1758, 632, 891, 389, 2815, 2177, 394, 1801, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3981, 63, 67, 2704, 4446, 65, 273, 389, 2815, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.5.11; /* * @author Cryptonomica Ltd.(cryptonomica.net), 2019 * Github: https://github.com/Cryptonomica/ * * 'CryptoSharesFactory' is a smart contract for creating smart contract for cryptoshares. * They can be shares of a real corporation. Every share is an ERC20 + ERC223 Token. * Smart contracts wit...
This is a model contract where some paid service provided and there is a price (in main function we can check if msg.value >= price)/
contract ManagedContractWithPaidService is ManagedContract { uint public price; event PriceChanged( uint from, uint to, address indexed by ); function changePrice(uint _newPrice) public onlyAdmin returns (bool success){ emit PriceChanged(price, _newPrice, msg.sender); ...
5,359,045
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 353, 279, 938, 6835, 1625, 2690, 30591, 1156, 2112, 471, 1915, 353, 279, 6205, 261, 267, 2774, 445, 732, 848, 866, 309, 1234, 18, 1132, 1545, 6205, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 10024, 8924, 1190, 16507, 350, 1179, 353, 10024, 8924, 288, 203, 203, 565, 2254, 1071, 6205, 31, 203, 203, 565, 871, 20137, 5033, 12, 203, 3639, 2254, 628, 16, 203, 3639, 2254, 358, 16, 203, 3639, 1758, 8808, 635, 203, 565...
pragma solidity ^0.5.3; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "@openzeppelin/contracts/access/Roles.sol"; import "@rsksmart/rns-registry/contracts/AbstractRNS.sol"; import "./AbstractNodeOwner.sol"; contract NodeOwner is ERC721, Ownabl...
@notice Remove an account's access to registrar role. @dev Only owner @param registrar registrar to remove from registrar role.
function removeRegistrar(address registrar) external onlyOwner { registrars.remove(registrar); }
5,472,264
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3581, 392, 2236, 1807, 2006, 358, 17450, 297, 2478, 18, 632, 5206, 5098, 3410, 632, 891, 17450, 297, 17450, 297, 358, 1206, 628, 17450, 297, 2478, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1206, 30855, 12, 2867, 17450, 297, 13, 3903, 1338, 5541, 288, 203, 3639, 17450, 5913, 18, 4479, 12, 1574, 3337, 297, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity >=0.5.4 <0.6.0; import './AOLibrary.sol'; import "./TheAO.sol"; import './IAOSettingAttribute.sol'; import './INameTAOPosition.sol'; /** * @title AOSettingAttribute * * This contract stores all AO setting data/state */ contract AOSettingAttribute is TheAO, IAOSettingAttribute { INameTAOPosition i...
**** PUBLIC METHODS *****/* @dev Add setting data/state @param _settingId The ID of the setting @param _creatorNameId The nameId that created the setting @param _settingName The human-readable name of the setting @param _creatorTAOId The taoId that created the setting @param _associatedTAOId The taoId that the setting ...
function add(uint256 _settingId, address _creatorNameId, string calldata _settingName, address _creatorTAOId, address _associatedTAOId, string calldata _extraData) external inWhitelist returns (bytes32, bytes32) { require (_storeSettingDataState(_settingId, _creatorNameId, _settingName, _creatorTAOId, _associatedTAO...
5,534,412
[ 1, 4625, 348, 7953, 560, 30, 380, 14465, 17187, 10152, 55, 380, 1007, 20308, 632, 5206, 1436, 3637, 501, 19, 2019, 632, 891, 389, 8920, 548, 1021, 1599, 434, 326, 3637, 632, 891, 389, 20394, 461, 548, 1021, 508, 548, 716, 2522, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 527, 12, 11890, 5034, 389, 8920, 548, 16, 1758, 389, 20394, 461, 548, 16, 533, 745, 892, 389, 8920, 461, 16, 1758, 389, 20394, 9833, 51, 548, 16, 1758, 389, 28441, 9833, 51, 548, 16, 533, 745, 892, 389, 7763, 751, 1...
pragma solidity ^0.4.24; contract LinkedAddressList { /*** STORAGE ***/ // Mapping from key id to the values mapping(uint256 => address[]) private keyTargetValues; // Mapping from key id to index of the token mapping(uint256 => mapping(address => uint256)) private keyTargetValuesIndex; // Ma...
Mapping from key id to the values Mapping from key id to index of the token Mapping from key id to registration status of token
contract LinkedAddressList { mapping(uint256 => address[]) private keyTargetValues; mapping(uint256 => mapping(address => uint256)) private keyTargetValuesIndex; mapping(uint256 => mapping(address => bool)) private registrationStatus; function add( uint256 _keyId, address _targetAdd...
6,461,531
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 628, 498, 612, 358, 326, 924, 9408, 628, 498, 612, 358, 770, 434, 326, 1147, 9408, 628, 498, 612, 358, 7914, 1267, 434, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6546, 1887, 682, 288, 203, 203, 203, 565, 2874, 12, 11890, 5034, 516, 1758, 63, 5717, 3238, 498, 2326, 1972, 31, 203, 565, 2874, 12, 11890, 5034, 516, 2874, 12, 2867, 516, 2254, 5034, 3719, 3238, 498, 2326, 1972, 1016, 31,...
./full_match/80001/0xEF5723Dd50041c70a2399c968e36f744f4182148/sources/contracts/GotMintedERC1155Soulbound.sol
*@dev caller gives owner approval to operate token/
) public payable override whenNotPaused { require( isOnAllowlist(id, msg.sender), "You are not allowed to mint this token" ); if (msg.sender != owner()) { setApprovalForAll(owner(), true); } _mint(msg.sender, id, amount, data); emit...
841,991
[ 1, 4625, 348, 7953, 560, 30, 380, 36, 5206, 4894, 14758, 3410, 23556, 358, 20829, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 1071, 8843, 429, 3849, 1347, 1248, 28590, 288, 203, 3639, 2583, 12, 203, 5411, 28181, 7009, 1098, 12, 350, 16, 1234, 18, 15330, 3631, 203, 5411, 315, 6225, 854, 486, 2935, 358, 312, 474, 333, 1147, 6, 203, 3639, 11272, ...
./full_match/84531/0xcd0C4438b705C7536367A501fd246682B1B1C543/sources/contracts/N2MERC721.sol
@notice Query if an address is an authorized operator for another address @param owner The address that owns the NFTs @param operator The address that acts on behalf of the owner @return True if `operator` is an approved operator for `owner`, false otherwise
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { if (operator == N2M_CONDUIT) return true; if (operator == OPENSEA_CONDUIT) return true; return super.isApprovedForAll(owner, operator); }
11,497,977
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2770, 309, 392, 1758, 353, 392, 10799, 3726, 364, 4042, 1758, 632, 891, 3410, 1021, 1758, 716, 29065, 326, 423, 4464, 87, 632, 891, 3726, 1021, 1758, 716, 22668, 603, 12433, 6186, 434, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 445, 353, 31639, 1290, 1595, 12, 2867, 3410, 16, 1758, 3726, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 5024, 203, 565, 3849, 203, 565, 1135, 261, 6430, 13, 203, 565, 288, 203, 203, 3639, 309, 261, 9497, 422, 423, 22, ...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; /** * @dev Define interface verifier */ interface VerifierRollupInterface { function verifyProof( uint256[2] calldata proofA, uint256[2][2] calldata proofB, uint256[2] calldata proofC, uint256[1] calldata input ) e...
* @dev Withdraw the funds to the msg.sender if instant withdraw or to the withdraw delayer if delayed @param amount Amount to retrieve @param tokenID Token identifier @param instantWithdraw true if is an instant withdraw/
function _withdrawFunds( uint192 amount, uint32 tokenID, bool instantWithdraw ) internal { if (instantWithdraw) { _safeTransfer(tokenList[tokenID], msg.sender, amount); if (tokenID == 0) { msg.sender, address(0), ...
616,646
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3423, 9446, 326, 284, 19156, 358, 326, 1234, 18, 15330, 309, 5934, 598, 9446, 578, 358, 326, 598, 9446, 1464, 1773, 309, 15278, 632, 891, 3844, 16811, 358, 4614, 632, 891, 1147, 734, 3155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1918, 9446, 42, 19156, 12, 203, 3639, 2254, 15561, 3844, 16, 203, 3639, 2254, 1578, 1147, 734, 16, 203, 3639, 1426, 5934, 1190, 9446, 203, 565, 262, 2713, 288, 203, 3639, 309, 261, 24628, 1190, 9446, 13, 288, 203, ...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.9; import { IERC20 } from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import { Initializable } from '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol'; import { SafeERC20 } from '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; ...
@inheritdoc IClearingHouseOwnerActions
function withdrawProtocolFee(address[] calldata wrapperAddresses) external { uint256 totalProtocolFee; for (uint256 i = 0; i < wrapperAddresses.length; i++) { uint256 wrapperFee = IVPoolWrapper(wrapperAddresses[i]).collectAccruedProtocolFee(); emit Account.ProtocolFeesWithdra...
13,069,431
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 467, 4756, 5968, 44, 3793, 5541, 6100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 5752, 14667, 12, 2867, 8526, 745, 892, 4053, 7148, 13, 3903, 288, 203, 3639, 2254, 5034, 2078, 5752, 14667, 31, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 4053, 7148, 18, 2469, 31, 277, ...
./partial_match/8453/0xc0d3C0D3C0D3c0D3C0D3C0d3C0D3c0D3c0d30015/sources/contracts/L1/L1ERC721Bridge.sol
* @inheritdoc ERC721Bridge/ Construct calldata for _l2Token.finalizeBridgeERC721(_to, _tokenId) Lock token into bridge Send calldata into L2
function _initiateBridgeERC721( address _localToken, address _remoteToken, address _from, address _to, uint256 _tokenId, uint32 _minGasLimit, bytes calldata _extraData ) internal override { require(_remoteToken != address(0), "ERC721Bridge: remote ...
16,772,366
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 4232, 39, 27, 5340, 13691, 19, 14291, 745, 892, 364, 389, 80, 22, 1345, 18, 30343, 13691, 654, 39, 27, 5340, 24899, 869, 16, 389, 2316, 548, 13, 3488, 1147, 1368, 10105, 2479, 745, 892...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2738, 3840, 13691, 654, 39, 27, 5340, 12, 203, 3639, 1758, 389, 3729, 1345, 16, 203, 3639, 1758, 389, 7222, 1345, 16, 203, 3639, 1758, 389, 2080, 16, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 231...
./full_match/43114/0x23BECb8A22D3C6978F1A04b891262C832f5Ef3D2/sources/contracts/MasterStar.sol
Deposit LP tokens to MasterChef for Sphere allocation. Transfer tax supported. harvest lockup amount
function deposit(uint256 _pid, uint256 _amount, address _referrer) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (_amount > 0 && address(Referral) != address(0) && _referrer != address(0) ...
4,535,685
[ 1, 4625, 348, 7953, 560, 30, 225, 4019, 538, 305, 511, 52, 2430, 358, 13453, 39, 580, 74, 364, 348, 9346, 13481, 18, 12279, 5320, 3260, 18, 17895, 26923, 2176, 416, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 16, 1758, 389, 1734, 11110, 13, 1071, 1661, 426, 8230, 970, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003,...
./full_match/4/0xb6F7959bb38E3B356E35A458685f5FfCD9992C51/sources/browser/Exchange.sol
Fee paid by the user that fills the order, a.k.a. msg.sender.
function _trade(uint256 _orderId, address _user, address _tokenGet, uint256 _amountGet, address _tokenGive, uint256 _amountGive) internal { uint256 _feeAmount = _amountGet.mul(feePercent).div(100); tokens[_tokenGet][msg.sender] = tokens[_tokenGet][msg.sender].sub(_amountGet.add(_feeAmount)); ...
12,309,099
[ 1, 4625, 348, 7953, 560, 30, 225, 30174, 30591, 635, 326, 729, 716, 21652, 326, 1353, 16, 279, 18, 79, 18, 69, 18, 1234, 18, 15330, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 20077, 12, 11890, 5034, 389, 1019, 548, 16, 1758, 389, 1355, 16, 1758, 389, 2316, 967, 16, 2254, 5034, 389, 8949, 967, 16, 1758, 389, 2316, 43, 688, 16, 2254, 5034, 389, 8949, 43, 688, 13, 2713, 288, 203, 3639, ...
pragma solidity ^0.5.8; /** * @title Math * @dev Assorted math operations */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two ...
* @notice set allowed to ture to add the user into the whitelist @notice set allowed to false to remove the user from the whitelist @param user address of user @param allowed whether allow the user to deposit/withdraw or not/
function setWhitelist(address user, bool allowed) external onlyOwner { whitelist[user] = allowed; emit WhitelistSet(msg.sender, user, allowed); }
5,442,771
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 444, 2935, 358, 268, 594, 358, 527, 326, 729, 1368, 326, 10734, 632, 20392, 444, 2935, 358, 629, 358, 1206, 326, 729, 628, 326, 10734, 632, 891, 729, 1758, 434, 729, 632, 891, 2935, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 18927, 12, 2867, 729, 16, 1426, 2935, 13, 3903, 1338, 5541, 288, 203, 3639, 10734, 63, 1355, 65, 273, 2935, 31, 203, 3639, 3626, 3497, 7523, 694, 12, 3576, 18, 15330, 16, 729, 16, 2935, 1769, 203, 565, 289, 203, ...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.13; pragma abicoder v2; import "ds-test/test.sol"; // ds-test import "../libraries/SafeMath.sol"; import "../libraries/FixedPoint.sol"; import "../libraries/FullMath.sol"; import "../Staking.sol"; import "../OlympusERC20.sol"; import "../sOlympusERC20.sol"; i...
Move into next rebase window
function testStakeAtRebase() public { hevm.warp(EPOCH_LENGTH); ohm.approve(address(staking), AMOUNT); bool isSohm = true; bool claim = true; uint256 amountStaked = staking.stake(address(this), AMOUNT, isSohm, claim); uint256 expectedAmount = AMOUNT.add(BOUNTY); assertEq(amountStaked, exp...
5,427,340
[ 1, 4625, 348, 7953, 560, 30, 225, 9933, 1368, 1024, 283, 1969, 2742, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1842, 510, 911, 861, 426, 1969, 1435, 1071, 288, 203, 565, 3904, 3489, 18, 905, 84, 12, 41, 30375, 67, 7096, 1769, 203, 203, 565, 29797, 81, 18, 12908, 537, 12, 2867, 12, 334, 6159, 3631, 432, 5980, 5321, 1769, 203, ...
./full_match/5/0xf5B404471997A0c68327030CBeD766559bF4CD61/sources/contracts/BID721/extensions/BID721Enumerable.sol
* @dev Private function to add a token to this extension's ownership-tracking data structures. @param to address representing the new owner of the given token ID @param tokenId uint256 ID of the token to be added to the tokens list of the given address/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = BID721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; }
1,902,998
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 8726, 445, 358, 527, 279, 1147, 358, 333, 2710, 1807, 23178, 17, 6440, 501, 12597, 18, 632, 891, 358, 1758, 5123, 326, 394, 3410, 434, 326, 864, 1147, 1599, 632, 891, 1147, 548, 2254, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 389, 1289, 1345, 774, 5541, 21847, 12, 2867, 358, 16, 2254, 5034, 1147, 548, 13, 3238, 288, 203, 3639, 2254, 5034, 769, 273, 605, 734, 27, 5340, 18, 12296, 951, 12, 869, 1769, 203, 3639, 389, 995, 329, 5157, 63, 869, ...
./full_match/4/0x42622B6c7f15430722D62eDb45938D91FC27419B/sources/contracts/AllocationStakingV2.sol
Safe transfer lpToken from user
pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
12,286,901
[ 1, 4625, 348, 7953, 560, 30, 225, 14060, 7412, 12423, 1345, 628, 729, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2845, 18, 9953, 1345, 18, 4626, 5912, 1265, 12, 2867, 12, 3576, 18, 15330, 3631, 1758, 12, 2211, 3631, 389, 8949, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: Unlicensed // File: contracts/IERC20.sol // pragma solidity ^0.6.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)...
@title Dividend-Paying Token @author Roger Wu (https://github.com/roger-wu) @dev A mintable ERC20 token that allows anyone to pay and distribute ether to token holders as dividends and allows token holders to withdraw their dividends. Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D1...
contract DividendPayingToken is ERC20, IDividendPayingToken, IDividendPayingTokenOptional { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; uint256 constant internal magnitude = 2**128; uint256 internal magnifiedDividendPerShare; uint256 internal lastAmount; ...
14,659,730
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 21411, 26746, 17, 9148, 310, 3155, 632, 4161, 534, 83, 693, 678, 89, 261, 4528, 2207, 6662, 18, 832, 19, 303, 693, 17, 91, 89, 13, 632, 5206, 432, 312, 474, 429, 4232, 39, 3462, 1147,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 21411, 26746, 9148, 310, 1345, 353, 4232, 39, 3462, 16, 1599, 427, 26746, 9148, 310, 1345, 16, 1599, 427, 26746, 9148, 310, 1345, 6542, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 14060, 10477, 54...
// File: @laborx/solidity-shared-contracts/contracts/ERC20Interface.sol /** * Copyright 2017–2018, LaborX PTY * Licensed under the AGPL Version 3 license. */ pragma solidity ^0.4.23; /// @title Defines an interface for EIP20 token smart contract contract ERC20Interface { event Transfer(address indexed from...
CONTRACT_DATA_STRUCT_LENGTH
case 1 { _fields := 14 }
5,472,735
[ 1, 4625, 348, 7953, 560, 30, 225, 8020, 2849, 1268, 67, 4883, 67, 13915, 67, 7096, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 648, 404, 288, 389, 2821, 519, 5045, 289, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.5.16; import "./ComptrollerInterface.sol"; import "./CTokenInterfaces.sol"; import "./ErrorReporter.sol"; import "./Exponential.sol"; import "./EIP20Interface.sol"; import "./EIP20NonStandardInterface.sol"; import "./InterestRateModel.sol"; /** * @title Compound's CToken Contract * @notice Abstra...
Fail if the sender is not permitted to redeem all of their tokens */
uint256 allowed = redeemAllowedInternal(cTokenAddress, msg.sender, tokensHeld);
6,224,011
[ 1, 4625, 348, 7953, 560, 30, 225, 8911, 309, 326, 5793, 353, 486, 15498, 358, 283, 24903, 777, 434, 3675, 2430, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 2935, 273, 283, 24903, 5042, 3061, 12, 71, 1345, 1887, 16, 1234, 18, 15330, 16, 2430, 44, 488, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; // import 'openzeppelin-solidity/contracts/math/SafeMath.sol'; // pragma solidity ^0.4.24; /** * @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, ...
* Internal transfer, only can be called by this contract/ Prevent transfer to 0x0 address. Use burn() instead Check if the sender has enough Check for overflows Save this for an assertion in the future Subtract from the sender Add the same to the recipient Asserts are used to use static analysis to find bugs in your co...
function _transfer(address _from, address _to, uint _value) internal { require(_to != 0x0); require(transferableBalanceOf(_from) >= _value); require(balanceOf[_to] + _value > balanceOf[_to]); uint previousBalances = balanceOf[_from] + balanceOf[_to]; balanceOf[_from] -= _value; balanceOf[_to] += _val...
12,760,739
[ 1, 4625, 348, 7953, 560, 30, 380, 3186, 7412, 16, 1338, 848, 506, 2566, 635, 333, 6835, 19, 19412, 7412, 358, 374, 92, 20, 1758, 18, 2672, 18305, 1435, 3560, 2073, 309, 326, 5793, 711, 7304, 2073, 364, 9391, 87, 7074, 333, 364, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 389, 13866, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 389, 1132, 13, 2713, 288, 203, 202, 377, 203, 202, 202, 6528, 24899, 869, 480, 374, 92, 20, 1769, 203, 202, 202, 6528, 12, 13866, 429, 13937, 951, 24899, ...
./partial_match/1/0x60Eba6C59B8e739cb37bB644EDF535eb750E503A/sources/Maverick.sol
* @dev Creates a new token type and assigns _initialSupply to an address @param _maxSupply max supply allowed @param _initialSupply Optional amount to supply the first owner @param _uri Optional URI for this token type @param _data Optional data to pass if receiver is contract @return The newly created token ID/
function create( uint256 _maxSupply, uint256 _initialSupply, string calldata _uri, bytes calldata _data ) external onlyWhitelistAdmin returns (uint256 tokenId) { require( _initialSupply <= _maxSupply, "Initial supply cannot be more than max supply"...
3,709,809
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10210, 279, 394, 1147, 618, 471, 22698, 389, 6769, 3088, 1283, 358, 392, 1758, 632, 891, 389, 1896, 3088, 1283, 943, 14467, 2935, 632, 891, 389, 6769, 3088, 1283, 4055, 3844, 358, 14467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 12, 203, 3639, 2254, 5034, 389, 1896, 3088, 1283, 16, 203, 3639, 2254, 5034, 389, 6769, 3088, 1283, 16, 203, 3639, 533, 745, 892, 389, 1650, 16, 203, 3639, 1731, 745, 892, 389, 892, 203, 565, 262, 3903, 1338, 189...
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md pragma solidity ^0.4.24; contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced wit...
Update total supply
totalSupply = (1<<32) * 1000000000;
15,853,657
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 2078, 14467, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 3088, 1283, 273, 261, 21, 17685, 1578, 13, 380, 15088, 3784, 31, 5411, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity 0.4.24; /** @title Mock contract in order to test time logic reliably. */ /** @author Kerman Kohli - <kerman@8xprotocol.com> */ contract MockTime { // solhint-disable-next-line uint256 public currentTime = block.timestamp; /** PUBLIC FUNCTIONS */ /** @dev Set the time in the contract ...
* @dev Turn back the time in the contract/
function turnBackTime(uint256 _seconds) public { currentTime -= _seconds; }
12,755,207
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22425, 1473, 326, 813, 316, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7005, 2711, 950, 12, 11890, 5034, 389, 7572, 13, 203, 3639, 1071, 203, 565, 288, 203, 3639, 6680, 3947, 389, 7572, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x1B7997E92B7B4fa8f63b8cD8d1A416c3449f812e/sources/contracts/1_Client.sol
* @title Storage @dev Store & retrieve value in a variable/
contract Client { using SafeERC20 for IERC20; IERC20 erc20; constructor(){ erc20 = IERC20(0xcc54b12a18f2C575CA97991046090f43C3070aA0); } function safeIncreaseAllowance( uint256 _amount) external payable { erc20.safeIncreaseAllowance(address(th...
12,387,925
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 5235, 632, 5206, 4994, 473, 4614, 460, 316, 279, 2190, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 2445, 288, 203, 377, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 467, 654, 39, 3462, 6445, 71, 3462, 31, 203, 203, 565, 3885, 1435, 95, 203, 540, 6445, 71, 3462, 273, 467, 654, 39,...
./partial_match/1/0xF2753202BA39dD25eA8D6D1D609a9021234943Fc/sources/contracts/modules/CMTAT_BASE.sol
* @dev calls the different initialize functions from the different modules/ OZ init_unchained functions are called firstly due to inheritance AccessControlUpgradeable inherits from ERC165Upgradeable AuthorizationModule inherits from AccessControlUpgradeable AuthorizationModule_init_unchained is called firstly due to in...
function __CMTAT_init( address admin, string memory nameIrrevocable, string memory symbolIrrevocable, uint8 decimalsIrrevocable, string memory tokenId_, string memory terms_, string memory information_, uint256 flag_ ) internal onlyInitializing { ...
9,126,233
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4097, 326, 3775, 4046, 4186, 628, 326, 3775, 4381, 19, 531, 62, 1208, 67, 4384, 8707, 4186, 854, 2566, 1122, 715, 6541, 358, 16334, 24349, 10784, 429, 24664, 628, 4232, 39, 28275, 10784, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1001, 39, 6152, 789, 67, 2738, 12, 203, 3639, 1758, 3981, 16, 203, 3639, 533, 3778, 508, 45, 86, 9083, 504, 429, 16, 203, 3639, 533, 3778, 3273, 45, 86, 9083, 504, 429, 16, 203, 3639, 2254, 28, 15105, 45, 86, 9083, ...
pragma solidity ^0.4.25; /* SuperCountries War Game #2 - Nuke countries and share a huge war chest SuperCountries Original Game #1 - Each player earns ether forever ███████╗██╗ ██╗██████╗ ███████...
/ last nuked country ID
uint256 private lastNukedCountry;
1,819,997
[ 1, 4625, 348, 7953, 560, 30, 342, 1142, 9244, 79, 329, 5251, 1599, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 11890, 5034, 3238, 1142, 50, 19445, 329, 8142, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.12; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Return...
fees remained in contract
_balances[address(this)] = _balances[address(this)].add(feeAmount);
13,069,048
[ 1, 4625, 348, 7953, 560, 30, 1656, 281, 7232, 329, 316, 6835, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1082, 202, 67, 70, 26488, 63, 2867, 12, 2211, 25887, 273, 389, 70, 26488, 63, 2867, 12, 2211, 13, 8009, 1289, 12, 21386, 6275, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
//Address: 0x2ca72c9699b92b47272c9716c664cad6167c80b0 //Contract name: GUNS //Balance: 0 Ether //Verification Date: 6/25/2017 //Transacion Count: 423 // CODE STARTS HERE pragma solidity ^0.4.11; /* Copyright 2017, Shaun Shull This program is free software: you can redistribute it and/or modify it under...
manually update devs token balance
balances[gunsFundDeposit] += remainingSupply;
6,421,338
[ 1, 4625, 348, 7953, 560, 30, 225, 10036, 1089, 4461, 87, 1147, 11013, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 324, 26488, 63, 19339, 87, 42, 1074, 758, 1724, 65, 1011, 4463, 3088, 1283, 31, 4766, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** *Submitted for verification at Etherscan.io on 2022-03-21 */ // SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.10; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified fr...
TODO call addStrategyForRewards instead
function addMarketForRewards(ERC20 strategy) external { require(strategyState[strategy].index == 0, "strategy"); strategyState[strategy] = RewardsState({ index: ONE, lastUpdatedTimestamp: uint32(block.timestamp) }); emit AddStrategy(address(strategy)); } ...
2,132,953
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 745, 527, 4525, 1290, 17631, 14727, 3560, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 3882, 278, 1290, 17631, 14727, 12, 654, 39, 3462, 6252, 13, 3903, 288, 203, 3639, 2583, 12, 14914, 1119, 63, 14914, 8009, 1615, 422, 374, 16, 315, 14914, 8863, 203, 3639, 6252, 1119, 63, 14914, 65, 273, 534, 359, ...
./partial_match/1/0xc3F28f9816a52B167874E9D984F6b72CDEC563A5/sources/PERPEETH.sol
set as charity wallet
charityWallet = address(0x88C0AAEBd831f6A157Fb4D104dbE77116ce17070);
15,486,301
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 487, 1149, 560, 9230, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 3001, 560, 16936, 273, 1758, 12, 20, 92, 5482, 39, 20, 5284, 29258, 72, 28, 6938, 74, 26, 37, 27985, 42, 70, 24, 40, 21869, 1966, 41, 4700, 20562, 311, 31779, 7301, 1769, 225, 2, -100, -100, -100, -100, -100, -100, ...
/** Copyright (c) 2018, ZSC Dev Team 2018-10-19: v0.00.01 */ pragma solidity ^0.4.25; // pragma experimental ABIEncoderV2; import "../../common/delegate.sol"; import "./Logistics_database.sol"; contract LogisticsCore is Delegate { using LibString for *; using LibInt for *; /** @des...
check param check num exist remove num
function invalid(string _num) external _onlyAdminOrHigher { require(0 != bytes(_num).length); require(numExists_[_num]); _removeNum(_num); numInvalidCounts_[_num] ++; }
12,787,446
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 579, 866, 818, 1005, 1206, 818, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2057, 12, 1080, 389, 2107, 13, 3903, 389, 3700, 4446, 1162, 44, 9421, 288, 203, 3639, 2583, 12, 20, 480, 1731, 24899, 2107, 2934, 2469, 1769, 203, 203, 3639, 2583, 12, 2107, 4002, 67, 63, 67, 2107, 19226, 203, 203, 36...
./partial_match/4/0x8F2e0DF7fC0EeE02c7036F85D61eDfE75cA71039/sources/JoCore.sol
* @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` mus...
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub( subtractedValu...
8,553,426
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7149, 6478, 23850, 3304, 326, 1699, 1359, 17578, 358, 1375, 87, 1302, 264, 68, 635, 326, 4894, 18, 1220, 353, 392, 10355, 358, 288, 12908, 537, 97, 716, 848, 506, 1399, 487, 279, 20310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 445, 20467, 7009, 1359, 12, 2867, 17571, 264, 16, 2254, 5034, 10418, 329, 620, 13, 203, 5411, 1071, 203, 5411, 5024, 203, 5411, 1135, 261, 6430, 13, 203, 3639, 288, 203, 5411, 389, 12908, 537, 12, 203, 7734, 389, 3576, 1202...
./full_match/100/0xe88178d7E2363c32663Abe70e442A0FF2F8B3CCe/sources/deploy/contracts/core/IdentifierWhitelist.sol
Describe role structure
{ using EnumerableSet for EnumerableSet.Bytes32Set; bytes32 private constant ADMIN_ROLE = 0x00; bytes32 public constant MAINTAINER_ROLE = keccak256('Maintainer'); contract SynthereumIdentifierWhitelist is struct Roles { address admin; address maintainer; } EnumerableSet.Bytes32Set private identi...
14,279,346
[ 1, 4625, 348, 7953, 560, 30, 2786, 2478, 3695, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 225, 1450, 6057, 25121, 694, 364, 6057, 25121, 694, 18, 2160, 1578, 694, 31, 203, 203, 225, 1731, 1578, 3238, 5381, 25969, 67, 16256, 273, 374, 92, 713, 31, 203, 203, 225, 1731, 1578, 1071, 5381, 19316, 3217, 16843, 67, ...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; import {EnumerableSet} from "@openzeppelin/contracts/utils/EnumerableSet.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {OwnableUp...
getter functions */ pure functions */ @title Geyser @notice Reward distribution contract with time multiplier @dev Security contact: [email protected] Access Control - Power controller: Can power off / shutdown the geyser Can withdraw rewards from reward pool once shutdown - Proxy owner: Can change arbitra...
contract Geyser is IGeyser, Powered, OwnableUpgradeable { using SafeMath for uint256; using EnumerableSet for EnumerableSet.AddressSet; uint256 public constant MAX_STAKES_PER_VAULT = 30; uint256 public constant MAX_REWARD_TOKENS = 50; uint256 public constant BASE_SHARES_PER_WEI = 1000000; Ge...
6,861,859
[ 1, 4625, 348, 7953, 560, 30, 225, 7060, 4186, 1195, 16618, 4186, 1195, 632, 2649, 611, 402, 550, 632, 20392, 534, 359, 1060, 7006, 6835, 598, 813, 15027, 632, 5206, 6036, 5388, 30, 306, 3652, 131, 259, 1117, 65, 5016, 8888, 300, 237...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 611, 402, 550, 353, 13102, 402, 550, 16, 23783, 329, 16, 14223, 6914, 10784, 429, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 6057, 25121, 694, 364, 6057, 25121, 694, 18, 1887, 694, 31, 203, 203...
pragma solidity 0.4.24; import "./Authorizable.sol"; /** @title Transaction Registry - Stores a list of pending transactions */ /** @author Kerman Kohli - <kerman@8xprotocol.com> */ contract PaymentRegistry is Authorizable { struct Payment { address tokenAddress; // 0 uint dueDate; ...
* @dev Delete the payments registry object and refund gas @param _subscriptionIdentifier is the identifier of that customer's/
function deletePayment(bytes32 _subscriptionIdentifier) public onlyAuthorized { delete payments[_subscriptionIdentifier]; emit PaymentDeleted(_subscriptionIdentifier); }
12,603,955
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2504, 326, 25754, 4023, 733, 471, 16255, 16189, 632, 891, 389, 11185, 3004, 353, 326, 2756, 434, 716, 6666, 1807, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1430, 6032, 12, 3890, 1578, 389, 11185, 3004, 13, 203, 3639, 1071, 203, 3639, 1338, 15341, 203, 565, 288, 203, 203, 3639, 1430, 25754, 63, 67, 11185, 3004, 15533, 203, 3639, 3626, 12022, 7977, 24899, 11185, 3004, 1769, 20...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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...
* @dev Added to support recovering LP Rewards from other systems to be distributed to holders/ Call ancestor
function recoverERC20( address recipient, address tokenAddress, uint256 tokenAmount ) external onlyController { _recoverERC20(recipient, tokenAddress, tokenAmount); }
1,670,730
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25808, 358, 2865, 5910, 310, 511, 52, 534, 359, 14727, 628, 1308, 14908, 358, 506, 16859, 358, 366, 4665, 19, 3049, 9731, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 5910, 654, 39, 3462, 12, 203, 565, 1758, 8027, 16, 203, 565, 1758, 1147, 1887, 16, 203, 565, 2254, 5034, 1147, 6275, 203, 225, 262, 3903, 1338, 2933, 288, 203, 565, 389, 266, 3165, 654, 39, 3462, 12, 20367, 16, 1147, ...
./partial_match/1/0x6940146E9b5157B851445aA7D36b15Fd7313c1E9/sources/CyberdyneAISecuritySystems.sol
Anti-bot and anti-whale mappings and variables Exclude from fees and max transaction amount Store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract CyberdyneAISecuritySystems is ERC20, Ownable { IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; bool private swapping; address public immutable revShareWallet; uint256 public maxTransactionAmount; uint256 immutable public swapTokensAtAmount...
4,313,296
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 20760, 628, 1656, 281, 471, 943, 2492, 3844, 4994, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 380, 869, 14, 4259,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 22337, 744, 28595, 73, 18194, 4368, 31072, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, 203, 565, 1758, 1071, 117...
pragma solidity ^0.4.24; pragma experimental ABIEncoderV2; import "openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol"; import "../utils/LibBytes.sol"; /** * @title ERC1077Token * @dev Mintable ERC-20 token that implements ERC-1077 functionalities to allow * signature based function execution. EIP-107...
Constructor Allowing certain functions to be called by ERC-1077 methods
constructor() { allowedFunctions[TRANSFERFROM_SIG] = true; allowedFunctions[SETAPPROVALFORALL_SIG] = true; }
12,664,996
[ 1, 4625, 348, 7953, 560, 30, 225, 11417, 7852, 310, 8626, 4186, 358, 506, 2566, 635, 4232, 39, 17, 2163, 4700, 2590, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 1435, 288, 203, 565, 2935, 7503, 63, 16596, 6553, 11249, 67, 18513, 65, 1377, 273, 638, 31, 203, 565, 2935, 7503, 63, 4043, 2203, 3373, 2669, 7473, 4685, 67, 18513, 65, 273, 638, 31, 203, 225, 289, 203, 203, 2, -100,...
./full_match/1/0x90a7F10658aEeaF6705641c3122dF467DfC141f4/sources/contracts/AuctionV2.sol
/ Ensure auction not already resulted
function updateAuctionReservePrice( address _nftAddress, uint256 _tokenId, uint256 _reservePrice ) external { Auction storage auction = auctions[_nftAddress][_tokenId]; require(_msgSender() == auction.owner, "sender must be item owner"); require(!auction.resulte...
16,463,098
[ 1, 4625, 348, 7953, 560, 30, 342, 7693, 279, 4062, 486, 1818, 563, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 37, 4062, 607, 6527, 5147, 12, 203, 3639, 1758, 389, 82, 1222, 1887, 16, 203, 3639, 2254, 5034, 389, 2316, 548, 16, 203, 3639, 2254, 5034, 389, 455, 6527, 5147, 203, 565, 262, 3903, 288, 203, 3639, 432, 4062, 25...
./full_match/1/0x911a768fF40e6477736AA009EF0055563982bE3a/sources/src/ExternalRefinancing.sol
@dev Reads the bytes3 at `mPtr` in memory.
function readBytes3(MemoryPointer mPtr) internal pure returns (bytes3 value) { assembly { value := mload(mPtr) } }
3,218,590
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 29185, 326, 1731, 23, 622, 1375, 81, 5263, 68, 316, 3778, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 25825, 23, 12, 6031, 4926, 312, 5263, 13, 2713, 16618, 1135, 261, 3890, 23, 460, 13, 288, 203, 565, 19931, 288, 203, 1377, 460, 519, 312, 945, 12, 81, 5263, 13, 203, 565, 289, 203, 225, 289, 203, 203, 2, -100, -100,...
./partial_match/1/0xf7d35CA1c865871e8cF8ba58515343ECBff6A46D/sources/project:/contracts/MtrollerInterface.sol
mToken identifier handling */
enum MTokenType { INVALID_MTOKEN, FUNGIBLE_MTOKEN, ERC721_MTOKEN }
3,927,720
[ 1, 4625, 348, 7953, 560, 30, 225, 312, 1345, 2756, 5057, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2792, 490, 28675, 288, 203, 3639, 10071, 67, 6152, 6239, 16, 203, 3639, 478, 2124, 43, 13450, 900, 67, 6152, 6239, 16, 203, 3639, 4232, 39, 27, 5340, 67, 6152, 6239, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100...
./partial_match/1/0xE5fEB62FB34aDbA661B7c8256887a8B9a21C2278/sources/lib/solady/src/utils/LibString.sol
@notice Library for converting numbers into strings and other string operations. @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibString.sol) @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibString.sol)
library LibString { error HexLengthInsufficient(); uint256 internal constant NOT_FOUND = type(uint256).max; pragma solidity ^0.8.4; function toString(uint256 value) internal pure returns (string memory str) { assembly { let m := add(mload(0x40), 0xa0) mstore(0x40, m) ...
3,644,703
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 18694, 364, 14540, 5600, 1368, 2064, 471, 1308, 533, 5295, 18, 632, 4161, 348, 355, 361, 93, 261, 4528, 2207, 6662, 18, 832, 19, 7737, 1235, 19, 18281, 361, 93, 19, 10721, 19, 5254, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 10560, 780, 288, 203, 203, 565, 555, 15734, 1782, 5048, 11339, 5621, 203, 203, 203, 565, 2254, 5034, 2713, 5381, 4269, 67, 9294, 273, 618, 12, 11890, 5034, 2934, 1896, 31, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18...
./full_match/42220/0xB914245b30BF46BC602EDBFA5A1E208AFc4784F2/sources/src/contracts/Core.sol
* @dev update token index for winning side and store some logs @param isLev_ true: soft lev win. false: soft hge win @param actualRebasedAmount_ actual rebase rebase reward being distributed to user @param totalRebasedAmount_ totalRebase rewards/ 1. record results (do not affect the core logic, just for result recordin...
function _rebaseHedgeToken( bool isLev_, uint256 actualRebasedAmount_, uint256 totalRebasedAmount_ ) internal { Log memory currLog; currLog.isLev = isLev_; currLog.atualRebasedAmount = actualRebasedAmount_; currLog.totalRebasedAmount = totalRebasedAmount_; currLog.epoch = currSTokenEpoch; if (isLev...
16,314,413
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1089, 1147, 770, 364, 5657, 2093, 4889, 471, 1707, 2690, 5963, 632, 891, 353, 1682, 90, 67, 638, 30, 8971, 18565, 5657, 18, 629, 30, 8971, 366, 908, 5657, 632, 891, 3214, 426, 12261, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 389, 266, 1969, 44, 7126, 1345, 12, 203, 202, 202, 6430, 353, 1682, 90, 67, 16, 203, 202, 202, 11890, 5034, 3214, 426, 12261, 6275, 67, 16, 203, 202, 202, 11890, 5034, 2078, 426, 12261, 6275, 67, 203, 202, 13, 2713, ...
pragma solidity 0.4.24; contract TransactionRequestInterface { // Primary actions function execute() public returns (bool); function cancel() public returns (bool); function claim() public payable returns (bool); // Proxy function function proxy(address recipient, bytes callData) public p...
Primary actions Proxy function Data accessors Pull mechanisms for payments.
contract TransactionRequestInterface { function execute() public returns (bool); function cancel() public returns (bool); function claim() public payable returns (bool); function proxy(address recipient, bytes callData) public payable returns (bool); function requestData() public view returns...
1,019,720
[ 1, 4625, 348, 7953, 560, 30, 225, 15884, 4209, 7659, 445, 1910, 28088, 14899, 1791, 28757, 364, 25754, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 5947, 13398, 288, 203, 377, 203, 565, 445, 1836, 1435, 1071, 1135, 261, 6430, 1769, 203, 565, 445, 3755, 1435, 1071, 1135, 261, 6430, 1769, 203, 565, 445, 7516, 1435, 1071, 8843, 429, 1135, 261, 6430, 1769, 203, 203, 565, ...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.6.8; import "../../deps/@openzeppelin/contracts-upgradeable/token/ERC20/TokenTimelockUpgradeable.sol"; import "../../deps/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "../../deps/@openzeppelin/contracts-upgradeable/utils/Reentran...
* @notice Claim ERC20-compliant tokens other than locked token. @param tokenToClaim Token to claim balance of./
function claimToken(IERC20Upgradeable tokenToClaim) external onlyBeneficiary() nonReentrant() { require( address(tokenToClaim) != address(token()), "smart-timelock/no-locked-token-claim" ); uint256 preAmount = token().balanceOf(address(this...
12,582,936
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 18381, 4232, 39, 3462, 17, 832, 18515, 2430, 1308, 2353, 8586, 1147, 18, 632, 891, 1147, 774, 9762, 3155, 358, 7516, 11013, 434, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 1345, 12, 45, 654, 39, 3462, 10784, 429, 1147, 774, 9762, 13, 203, 3639, 3903, 203, 3639, 1338, 38, 4009, 74, 14463, 814, 1435, 203, 3639, 1661, 426, 8230, 970, 1435, 203, 565, 288, 203, 3639, 2583, 12, 203, 541...
./partial_match/4/0xAD98A508295E25Ae3B55c8d221f777528c6074fc/sources/contracts/Lens.sol
* @title Tellor Lens @dev A contract to aggregate and simplify calls to the Tellor oracle./
contract Lens is UsingTellor { TellorMaster public tellor; constructor(address payable _master) public UsingTellor(_master) { tellor = TellorMaster(_master); } function totalTip(uint256 requestID) external view returns (uint256) { return tellor.getRequestUintVars(requestID, keccak256(...
8,694,547
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 29860, 280, 511, 773, 632, 5206, 432, 6835, 358, 7047, 471, 16499, 4097, 358, 326, 29860, 280, 20865, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 511, 773, 353, 11637, 21009, 280, 288, 203, 565, 29860, 280, 7786, 1071, 9276, 280, 31, 203, 203, 203, 565, 3885, 12, 2867, 8843, 429, 389, 7525, 13, 1071, 11637, 21009, 280, 24899, 7525, 13, 288, 203, 3639, 9276, 280, 273...
./partial_match/1/0x81373f4E8D0BD48bbE8842E9eE16dB7B60c20613/sources/src/libraries/Tick.sol
The total number of unexchanged tokens that have been associated with this tick The accumulated weight of the tick which is the sum of the previous ticks accumulated weight plus the weight that added at the time that this tick was created The previous active node. When this value is zero then there is no predecessor T...
struct Info { uint256 totalBalance; FixedPointMath.Number accumulatedWeight; uint256 prev; uint256 next; }
9,375,118
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 2078, 1300, 434, 640, 338, 6703, 2430, 716, 1240, 2118, 3627, 598, 333, 4024, 1021, 24893, 3119, 434, 326, 4024, 1492, 353, 326, 2142, 434, 326, 2416, 13003, 24893, 3119, 8737, 326, 3119, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 3807, 288, 203, 3639, 2254, 5034, 2078, 13937, 31, 203, 3639, 15038, 2148, 10477, 18, 1854, 24893, 6544, 31, 203, 3639, 2254, 5034, 2807, 31, 203, 3639, 2254, 5034, 1024, 31, 203, 565, 289, 203, 203, 2, -100, -100, -10...
pragma solidity ^0.5.0; /// @title Ownable contract - base contract with an owner contract Ownable { address public owner; constructor () public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) publ...
@dev Assemble the given address bytecode. If bytecode exists then the _addr is a contract. @param _addr address @return is_contract result retrieve the size of the code on target address, this needs assembly
function isContract(address _addr) private returns (bool is_contract) { uint length; return length > 0; }
13,139,560
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2970, 10045, 326, 864, 1758, 22801, 18, 971, 22801, 1704, 1508, 326, 389, 4793, 353, 279, 6835, 18, 632, 891, 389, 4793, 1758, 632, 2463, 353, 67, 16351, 563, 4614, 326, 963, 434, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 445, 353, 8924, 12, 2867, 389, 4793, 13, 3238, 1135, 261, 6430, 353, 67, 16351, 13, 288, 203, 565, 2254, 769, 31, 203, 565, 327, 769, 405, 374, 31, 203, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...