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.24; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 { function totalSupply() public view returns (uint256); function balanceOf(address _who) public view returns (uint256); function allowance(address _owner, address _spender) ...
* @dev Total number of tokens in existence/
function totalSupply() public view returns (uint256) { return totalSupply_; }
176,275
[ 1, 5269, 1300, 434, 2430, 316, 15782, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 0...
[ 1, 565, 445, 2078, 3088, 1283, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 2078, 3088, 1283, 67, 31, 203, 282, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/43114/0x717955905bf71b84651f4eD75AAC4C6A4b33b410/sources/contracts/LB/libraries/Math512Bits.sol
@notice Helper function to return the result of `x * y / denominator` with full precision @param x The multiplicand as an uint256 @param y The multiplier as an uint256 @param denominator The divisor as an uint256 @param prod0 The least significant 256 bits of the product @param prod1 The most significant 256 bits of t...
function _getEndOfDivRoundDown( uint256 x, uint256 y, uint256 denominator, uint256 prod0, uint256 prod1 ) private pure returns (uint256 result) { if (prod1 == 0) { unchecked { result = prod0 / denominator; } ass...
4,624,793
[ 1, 2276, 445, 358, 327, 326, 563, 434, 1375, 92, 225, 677, 342, 15030, 68, 598, 1983, 6039, 225, 619, 1021, 3309, 1780, 464, 487, 392, 2254, 5034, 225, 677, 1021, 15027, 487, 392, 2254, 5034, 225, 15030, 1021, 15013, 487, 392, 2254,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 588, 23358, 7244, 11066, 4164, 12, 203, 3639, 2254, 5034, 619, 16, 203, 3639, 2254, 5034, 677, 16, 203, 3639, 2254, 5034, 15030, 16, 203, 3639, 2254, 5034, 10791, 20, 16, 203, 3639, 2254, 5034, 10791, 21, 203, 565,...
/// @title EmergencyStop: A circuit breaker for temporarily disabling contract functions /// @author John McCrae /// @dev This contract requires solidity compiler version 0.5 or higher pragma solidity ^0.5.0; /// @dev EmergencyStop: A contract that implements the circuit breaker design pattern contract EmergencyStop ...
@dev emergencyStopFunction() A function that allows setting emergencyStopSwitch (circuit breaker flag) to true or false @param emergencySwitchValue A boolean data type for changing the state of emergencyStopSwitch (circuit breaker flag) @return A boolean data type returning the new value of emergencyStopSwitch (circui...
function emergencyStopFunction (bool emergencySwitchValue) public verifyOwnerESC returns(bool _emergencyStopSwitch) { emit LogEmergencyStopSwitch(emergencySwitchValue); emergencyStopSwitch = emergencySwitchValue; return emergencyStopSwitch; }
13,017,132
[ 1, 351, 24530, 4947, 2083, 1435, 432, 445, 716, 5360, 3637, 801, 24530, 4947, 10200, 261, 24987, 898, 264, 2982, 13, 358, 638, 578, 629, 225, 801, 24530, 10200, 620, 432, 1250, 501, 618, 364, 12770, 326, 919, 434, 801, 24530, 4947, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 801, 24530, 4947, 2083, 261, 6430, 801, 24530, 10200, 620, 13, 203, 565, 1071, 203, 565, 3929, 5541, 41, 2312, 203, 565, 1135, 12, 6430, 389, 351, 24530, 4947, 10200, 13, 203, 565, 288, 203, 3639, 3626, 1827, 1514, 2453...
pragma solidity ^0.5.0; // Copyright 2019 OpenST Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
* @notice Public function to transfer the token. @dev Fires the transfer event, throws if, _from account does not have enough tokens to spend. @param _to Address to which tokens are transferred. @param _value Amount of tokens to be transferred. @return success_ `true` for a successful transfer, `false` otherwise./
function transfer( address _to, uint256 _value ) public returns (bool success_) { success_ = transferBalance(msg.sender, _to, _value); }
12,879,439
[ 1, 4782, 445, 358, 7412, 326, 1147, 18, 225, 478, 2814, 326, 7412, 871, 16, 1216, 309, 16, 389, 2080, 2236, 1552, 486, 1240, 1377, 7304, 2430, 358, 17571, 18, 225, 389, 869, 5267, 358, 1492, 2430, 854, 906, 4193, 18, 225, 389, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7412, 12, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 1132, 203, 565, 262, 203, 3639, 1071, 203, 3639, 1135, 261, 6430, 2216, 67, 13, 203, 565, 288, 203, 3639, 2216, 67, 273, 7412, 13937, 12, 3576, 18, ...
pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIABL...
* @dev Modifier that requires the ariline to be funded/
modifier requireAirlineIsFunded(address airlineAddress) { require( registeredAirlines[airlineAddress].isFunded == true, "Caller's account is not funded yet" ); _; }
7,241,051
[ 1, 9829, 716, 4991, 326, 419, 12554, 358, 506, 9831, 785, 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, 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, 9606, 2583, 29752, 1369, 2520, 42, 12254, 12, 2867, 23350, 1369, 1887, 13, 288, 203, 3639, 2583, 12, 203, 5411, 4104, 29752, 3548, 63, 1826, 1369, 1887, 8009, 291, 42, 12254, 422, 638, 16, 203, 5411, 315, 11095, 1807, 2236, ...
// SPDX-License-Identifier: MIT // Creator: base64.tech pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./ERC721A.sol"; /* _______ ___ _______ _______ _______ _______ ______ _______ | _ || | | ...
MAX PUBLIC MINT PER WALLET = 3, +1 for gas optimization for use in conditional statements
uint256 public constant MAX_ALLOWLIST_MINT_PER_WALLET = 3 + 1;
14,423,829
[ 1, 6694, 17187, 490, 3217, 10950, 30293, 15146, 273, 890, 16, 397, 21, 364, 16189, 14850, 364, 999, 316, 11139, 6317, 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, 565, 2254, 5034, 1071, 5381, 4552, 67, 13511, 7085, 67, 49, 3217, 67, 3194, 67, 59, 1013, 15146, 273, 890, 397, 404, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/3/0xb72CC84D4538278fc7647915c62b6E772583158e/sources/contracts/ERC721.sol
TemplateId, x, y, z
string[] memory paramParts = String.split(paramsString, ",");
14,210,370
[ 1, 2283, 548, 16, 619, 16, 677, 16, 998, 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, 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, 3639, 533, 8526, 3778, 579, 4305, 273, 514, 18, 4939, 12, 2010, 780, 16, 5753, 1769, 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, ...
pragma solidity ^0.8.0; /// @author Jaime Caso /// @title A Electronic Medical Record System contract MedicalRecord { address private owner; struct Record { address doctor; address patient; string hash; string encoding; bool verified; } // Roles mapping(ad...
* verify a record. */ Event
function verifyRecord(string memory _hash) public returns (bool) { require(recordData[_hash].patient == msg.sender, "Just the patient can verify the record"); recordData[_hash].verified = true; emit verifiedRecordLog(msg.sender, _hash); return true; }
13,057,255
[ 1, 8705, 279, 1409, 18, 342, 2587, 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, 0, 0, 0,...
[ 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, 0, 0...
[ 1, 565, 445, 3929, 2115, 12, 1080, 3778, 389, 2816, 13, 1071, 1135, 261, 6430, 13, 288, 203, 203, 3639, 2583, 12, 3366, 751, 63, 67, 2816, 8009, 16330, 1979, 422, 1234, 18, 15330, 16, 315, 19642, 326, 18608, 848, 3929, 326, 1409, ...
pragma solidity ^0.4.23; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(ad...
* @title AlphaconCustomToken @notice AlphaconCustomToken permits one more token generation after token sale finalized. The generated token _amount is limited up to 10% of total supply before the generation./
contract AlphaconCustomToken is HasNoEther, CanReclaimToken, AlphaconToken { bool public tokenGenerated; event MintAfterSale(address _to, uint _preSupply, uint _postSupply); function mintAfterSale() external onlyOwner returns (bool) { require(!tokenGenerated); require(mintingFinished); uint256 pre...
10,764,399
[ 1, 9690, 591, 3802, 1345, 225, 24277, 591, 3802, 1345, 4641, 1282, 1245, 1898, 1147, 9377, 1839, 540, 1147, 272, 5349, 727, 1235, 18, 1021, 4374, 1147, 389, 8949, 353, 13594, 540, 731, 358, 1728, 9, 434, 2078, 14467, 1865, 326, 9377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 24277, 591, 3802, 1345, 353, 4393, 2279, 41, 1136, 16, 4480, 426, 14784, 1345, 16, 24277, 591, 1345, 288, 203, 225, 1426, 1071, 1147, 7823, 31, 203, 203, 225, 871, 490, 474, 4436, 30746, 12, 2867, 389, 869, 16, 2254, 389, ...
// SPDX-License-Identifier: LGPL-3.0 pragma solidity ^0.8.9; import "./BDERC1155Tradable.sol"; import "./IWarrior.sol"; import "./IRegion.sol"; //Import ERC1155 standard for utilizing FAME tokens import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Ho...
2% - Bronze, 4% - Silver, 8% - Gold, 16% - Diamond
uint constant CHANCE_BONUS_25 = 200;
13,683,455
[ 1, 22, 9, 300, 605, 1949, 8489, 16, 4202, 1059, 9, 300, 348, 330, 502, 16, 565, 1725, 9, 300, 611, 1673, 16, 1377, 2872, 9, 300, 12508, 301, 1434, 2, 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, 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, 2254, 5381, 6469, 4722, 67, 38, 673, 3378, 67, 2947, 4202, 273, 4044, 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, ...
./partial_match/11297108099/0x4C7E1e1Ba5e35934C8323d75AF838fDa26588177/sources/contracts/PBAB_Collabs/GenArt721CoreV2_PBAB.sol
* @notice Updates name of project `_projectId` to be `_projectName`./
function updateProjectName(uint256 _projectId, string memory _projectName) public onlyUnlocked(_projectId) onlyArtistOrWhitelisted(_projectId) { projects[_projectId].name = _projectName; }
11,034,262
[ 1, 5121, 508, 434, 1984, 1375, 67, 4406, 548, 68, 358, 506, 1375, 67, 4406, 461, 8338, 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, 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, 1089, 4109, 461, 12, 11890, 5034, 389, 4406, 548, 16, 533, 3778, 389, 4406, 461, 13, 203, 3639, 1071, 203, 3639, 1338, 7087, 329, 24899, 4406, 548, 13, 203, 3639, 1338, 4411, 376, 1162, 18927, 329, 24899, 4406, 548, 13,...
/* _____ _________________ _ _ _ ___ _ / ___| ___| ___ \ ___ \ | | | | / / | | | \ `--.| |__ | |_/ / |_/ / | | | |/ /| | | | `--. \ __|| __/| __/| | | | \| | | | /\__/ / |___| | | | | |_| | |\ \ |_| | \____/\____/\_| \_| \___/\_| \_/\___/ ...
Update reward variables of the given pool to be up-to-date.
function mint(uint256 amount) public onlyOwner{ SEPPUKU.mint(devaddr, amount); }
7,669,543
[ 1, 1891, 19890, 3152, 434, 326, 864, 2845, 358, 506, 731, 17, 869, 17, 712, 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, 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, 312, 474, 12, 11890, 5034, 3844, 13, 1071, 1338, 5541, 95, 203, 3639, 3174, 6584, 57, 47, 57, 18, 81, 474, 12, 5206, 4793, 16, 3844, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x86A1Ba68cA53e68D49E0D9ec9007ceB06A078F07/sources/BALC.sol
* @dev Casts the address to uint256 without masking./
function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } }
3,699,939
[ 1, 9735, 87, 326, 1758, 358, 2254, 5034, 2887, 3066, 310, 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, 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, 445, 389, 2867, 774, 5487, 5034, 12, 2867, 460, 13, 3238, 16618, 1135, 261, 11890, 5034, 563, 13, 288, 203, 3639, 19931, 288, 203, 2088, 519, 460, 203, 3639, 289, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xB5505Ca8bE7aCd405325DbdA7f21F4F09222Ebd4/sources/src/clones/ERC721ACloneable.sol
* Returns the packed ownership data of `tokenId`./ If not burned. Invariant: There will always be an initialized ownership slot (i.e. `ownership.addr != address(0) && ownership.burned == false`) before an unintialized ownership slot (i.e. `ownership.addr == address(0) && ownership.burned == false`) Hence, `curr` will n...
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) { if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; ...
15,605,279
[ 1, 1356, 326, 12456, 23178, 501, 434, 1375, 2316, 548, 8338, 19, 971, 486, 18305, 329, 18, 657, 8688, 30, 6149, 903, 3712, 506, 392, 6454, 23178, 4694, 261, 77, 18, 73, 18, 1375, 995, 12565, 18, 4793, 480, 1758, 12, 20, 13, 597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 2920, 329, 5460, 12565, 951, 12, 11890, 5034, 1147, 548, 13, 203, 3639, 3238, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2254, 5034, 4306, 273, 1147, 548, 31, 203, 203, 3639, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./SafeMath.sol"; import "./HoldefiPausableOwnable.sol"; import "./HoldefiCollaterals.sol"; /// @notice File: contracts/HoldefiPrices.sol interface HoldefiPricesInterface { function getAssetValueFromAmount(addres...
@notice Returns balance and interest of an account for a given market @dev supplyInterest = accumulatedInterest + (balance * (marketSupplyIndex - userLastSupplyInterestIndex)) @param account Supplier address to get supply information @param market Address of the given market @return balance Supplied amount on the spec...
function getAccountSupply(address account, address market) public view returns (uint256 balance, uint256 interest, uint256 currentSupplyIndex) { balance = supplies[account][market].balance; (currentSupplyIndex,,) = getCurrentSupplyIndex(market); uint256 deltaInterestIndex = currentSupplyIndex.sub(suppli...
13,514,315
[ 1, 1356, 11013, 471, 16513, 434, 392, 2236, 364, 279, 864, 13667, 225, 14467, 29281, 273, 24893, 29281, 397, 261, 12296, 225, 261, 27151, 3088, 1283, 1016, 300, 729, 3024, 3088, 1283, 29281, 1016, 3719, 225, 2236, 17216, 1758, 358, 336,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23393, 3088, 1283, 12, 2867, 2236, 16, 1758, 13667, 13, 203, 202, 202, 482, 203, 202, 202, 1945, 203, 202, 202, 6154, 261, 11890, 5034, 11013, 16, 2254, 5034, 16513, 16, 2254, 5034, 783, 3088, 1283, 1016, 13, 203, 202, ...
./full_match/421613/0x1474236fEB9E96Cf0B9f913fF5418856139caAe3/sources/contracts/Game.sol
@notice Setter to set the allocation of a specific protocol by a basketId. Only the owner of the basket can set this. @param _basketId Basket ID (tokenID) in the BasketToken (NFT) contract. @param _chainId number of chainId. @param _protocolId Id of the protocol of which the allocation is queried. @param _allocation N...
function setBasketAllocationInProtocol( uint256 _basketId, uint256 _chainId, uint256 _protocolId, int256 _allocation ) internal onlyBasketOwner(_basketId) { baskets[_basketId].allocations[_chainId][_protocolId] += _allocation; require(basketAllocationInProtocol(_basketId, _chainId, _protocol...
11,576,150
[ 1, 8465, 358, 444, 326, 13481, 434, 279, 2923, 1771, 635, 279, 12886, 548, 18, 5098, 326, 3410, 434, 326, 12886, 848, 444, 333, 18, 225, 389, 26219, 548, 605, 7064, 1599, 261, 2316, 734, 13, 316, 326, 605, 7064, 1345, 261, 50, 446...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11324, 17353, 382, 5752, 12, 203, 565, 2254, 5034, 389, 26219, 548, 16, 203, 565, 2254, 5034, 389, 5639, 548, 16, 203, 565, 2254, 5034, 389, 8373, 548, 16, 203, 565, 509, 5034, 389, 29299, 203, 225, 262, 2713, 13...
//TheEthadams&#39;s Prod Ready. //https://rinkeby.etherscan.io/address/0x8d4665fe98968707da5042be347060e673da98f1#code pragma solidity ^0.4.22; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } library SafeMath { function mul(uin...
This generates a public event on the blockchain that will notify clients */ Initializes contract with initial supply tokens to the creator of the contract */Initializes the timestampsThis is the PRE-ICO price.Assuming the price of ethereum is $600per Ether.
) TokenERC20(tokenName, tokenSymbol) public { startTime = now; isKilled = false; setPrice(13300); }
2,127,457
[ 1, 2503, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 5066, 7712, 342, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 342, 9685, 326, 11267, 2503, 353, 326, 7071, 17, 2871, 51, 6205, 18, 2610, 21249, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 262, 3155, 654, 39, 3462, 12, 2316, 461, 16, 1147, 5335, 13, 1071, 288, 203, 1377, 8657, 273, 2037, 31, 203, 1377, 353, 47, 13148, 225, 273, 629, 31, 203, 1377, 444, 5147, 12, 3437, 19249, 1769, 203, 565, 289, 203, 203, ...
./partial_match/1/0xA6B816010Ab51e088C4F19c71ABa87E54b422E14/sources/basedAIFarm.sol
Accumulated basedAI per share, times 1e18.
uint256 public accbasedAIPerShareMultiple = 1e18;
4,185,184
[ 1, 8973, 5283, 690, 2511, 18194, 1534, 7433, 16, 4124, 404, 73, 2643, 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, 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, 2254, 5034, 1071, 4078, 12261, 18194, 2173, 9535, 8438, 273, 404, 73, 2643, 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, ...
./partial_match/1/0x441761326490cACF7aF299725B6292597EE822c2/sources/UNFI.sol
* @dev Gets the last token transaction of the specified address. @param owner The address to query the balance of./
function lastTransactionOf(address owner) public view returns (uint256,uint256) { return (_lastSendTransaction[owner],_lastReceiveTransaction[owner]); }
2,615,348
[ 1, 3002, 326, 1142, 1147, 2492, 225, 434, 326, 1269, 1758, 18, 225, 3410, 1021, 1758, 358, 843, 326, 11013, 434, 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, ...
[ 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, 0...
[ 1, 565, 445, 1142, 3342, 951, 12, 2867, 3410, 13, 1071, 1476, 1135, 261, 11890, 5034, 16, 11890, 5034, 13, 288, 203, 3639, 327, 261, 67, 2722, 3826, 3342, 63, 8443, 6487, 67, 2722, 11323, 3342, 63, 8443, 19226, 203, 565, 289, 377, ...
./full_match/137/0xE956528C7E9aa2390aC8995e9489E2CCde449F19/sources/contracts/CurveSampler.sol
Break early if there are 0 amounts
{ uint256 numSamples = takerTokenAmounts.length; makerTokenAmounts = new uint256[](numSamples); for (uint256 i = 0; i < numSamples; i++) { uint256 buyAmount; if(noLending) { buyAmount = ICurve(curveAddress).get_dy(fromTokenIdx, toTokenIdx, takerTokenAm...
4,674,501
[ 1, 7634, 11646, 309, 1915, 854, 374, 30980, 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, 0...
[ 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, 0...
[ 1, 565, 288, 203, 3639, 2254, 5034, 818, 13239, 273, 268, 6388, 1345, 6275, 87, 18, 2469, 31, 203, 3639, 312, 6388, 1345, 6275, 87, 273, 394, 2254, 5034, 8526, 12, 2107, 13239, 1769, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; // Context abstract contract implements some context tooling functions. contract Context { // _sender returns the address of the current trx sender function _sender() internal view returns (address) { return msg.sender; } // _now returns ...
Context abstract contract implements some context tooling functions. _sender returns the address of the current trx sender
contract Context { pragma solidity ^0.6.0; function _sender() internal view returns (address) { return msg.sender; } function _now() internal view returns (uint256) { return block.timestamp; } }
1,833,817
[ 1, 1042, 8770, 6835, 4792, 2690, 819, 5226, 310, 4186, 18, 389, 15330, 1135, 326, 1758, 434, 326, 783, 433, 92, 5793, 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, 16351, 1772, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 20, 31, 203, 565, 445, 389, 15330, 1435, 2713, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 203, 203, 565, 445, 389, 3...
// 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 from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/...
Equivalent to (x * WAD) / y rounded down.
return mulDivDown(x, WAD, y);
41,340
[ 1, 22606, 358, 261, 92, 225, 678, 1880, 13, 342, 677, 16729, 2588, 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, 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, 327, 14064, 7244, 4164, 12, 92, 16, 678, 1880, 16, 677, 1769, 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,...
// ----------------------------------------------------------------------------- // File RUS_SA_COMPARATIVE_ADV.SOL // // (c) Koziev Elijah // // Content: // Синтаксический анализатор: связь сравнительных наречий с глаголами // // Подробнее о правилах: http://www.solarix.ru/for_developers/docs/rules.shtml // ---------...
'бегает быстрее, ЧЕМ СОБАКА'
{ if context { _Запятая } then } operator Comparative2Verb_2 : LINK_COMPARATIVE_ADV_2_VERB
15,834,565
[ 1, 11, 145, 114, 145, 118, 145, 116, 145, 113, 145, 118, 146, 229, 225, 145, 114, 146, 238, 146, 228, 146, 229, 146, 227, 145, 118, 145, 118, 16, 225, 145, 105, 145, 248, 145, 255, 225, 145, 99, 145, 257, 145, 244, 145, 243, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 225, 309, 819, 288, 203, 9506, 225, 389, 145, 250, 145, 113, 145, 128, 146, 242, 146, 229, 145, 113, 146, 242, 203, 9506, 289, 203, 282, 1508, 203, 289, 203, 203, 3726, 1286, 1065, 1535, 22, 16281, 67, 22, 294, 2292...
./partial_match/1313161554/0xb9127241A2F1B08F6843F86adfac649694d014F8/sources/ReaperStrategyTrisolaris.sol
* @dev Tokens Used: {USDT} - Required for liquidity routing when doing swaps, in pair. {USN} - Required for liquidity and reward. {wNEAR} - Required for liquidity routing when doing swaps, in pair. {TRI} - Reward token for LP in MasterChef. {want} - Address of the LP token to farm. (lowercase name for FE compatibility)...
{ __ReaperBaseStrategy_init(_vault, _treasury, _strategists, _multisigRoles); want = _want; poolId = _poolId; triToUSNPath = [TRI, wNEAR, USN]; usnIdx = 2; usdtIdx = 1; }
16,945,660
[ 1, 5157, 10286, 30, 288, 3378, 9081, 97, 300, 10647, 364, 4501, 372, 24237, 7502, 1347, 9957, 1352, 6679, 16, 316, 3082, 18, 288, 3378, 50, 97, 300, 10647, 364, 4501, 372, 24237, 471, 19890, 18, 288, 91, 5407, 985, 97, 300, 10647, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 3639, 1001, 426, 7294, 2171, 4525, 67, 2738, 24899, 26983, 16, 389, 27427, 345, 22498, 16, 389, 701, 1287, 1486, 16, 389, 23978, 360, 6898, 1769, 203, 3639, 2545, 273, 389, 17369, 31, 203, 3639, 2845, 548, 273, 389...
/* Copyright 2019 dYdX Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
verify valid signature or is pre-approved
function verifySignature( OrderInfo memory orderInfo, bytes memory data ) private view { OrderStatus orderStatus = g_status[orderInfo.orderHash]; if (orderStatus == OrderStatus.Null) { bytes memory signature = parseSignature(data); add...
15,827,410
[ 1, 8705, 923, 3372, 578, 353, 675, 17, 25990, 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, 565, 445, 3929, 5374, 12, 203, 3639, 4347, 966, 3778, 1353, 966, 16, 203, 3639, 1731, 3778, 501, 203, 565, 262, 203, 3639, 3238, 203, 3639, 1476, 203, 565, 288, 203, 3639, 4347, 1482, 1353, 1482, 273, 314, 67, 2327, 63, 1019, 9...
./partial_match/1/0x071f7792202cDDf08d103BAE5885FF04F812D632/sources/LNR_SWAP_LIST_V1.sol
checks to see if the token is for sale, if it is, facilitaes the sale
function buyItem(bytes32 _name, address _destination) public nonReentrant payable {
4,457,120
[ 1, 12366, 358, 2621, 309, 326, 1147, 353, 364, 272, 5349, 16, 309, 518, 353, 16, 5853, 330, 305, 22335, 326, 272, 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, ...
[ 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, 0...
[ 1, 565, 445, 30143, 1180, 12, 3890, 1578, 389, 529, 16, 1758, 389, 10590, 13, 1071, 1661, 426, 8230, 970, 8843, 429, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x48b4C1ECdE2A54D37e31D1872dDD83965459183d/sources/CoinRacing.sol
SPDX-License-Identifier: MIT
pragma solidity >=0.5.16 <0.9.0;
4,347,399
[ 1, 3118, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 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, 683, 9454, 18035, 560, 1545, 20, 18, 25, 18, 2313, 411, 20, 18, 29, 18, 20, 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, -...
// SPDX-License-Identifier: Unlicense pragma solidity 0.7.6; import "hardhat/console.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/math/SignedSafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; impo...
* @notice Calculate liquidity and equivalent token amounts of base order./
function getBasePosition() public view returns ( uint128 liquidity, uint256 amount0, uint256 amount1 ) { (uint128 positionLiquidity, uint128 tokensOwed0, uint128 tokensOwed1) = _position(baseLower, baseUpper); (amount0, amount1)...
1,293,251
[ 1, 8695, 4501, 372, 24237, 471, 7680, 1147, 30980, 434, 1026, 1353, 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, 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, 8297, 2555, 1435, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 2254, 10392, 4501, 372, 24237, 16, 203, 5411, 2254, 5034, 3844, 20, 16, 203, 5411, 2254, 5034, 3844, 21, 203, 3639, 262, 203, 565, 288...
./full_match/137/0xD5B88558a807D5F394e0F22743D4F1C5eAb76B6F/sources/project_/contracts/payment-token/PaymentTokenRegistry.sol
* @dev See {IPaymentTokenRegistry-isAllowedPaymentToken}./
{ return _paymentTokens.contains(token) || _collectionPaymentTokens[collectionAddress].contains(token); }
4,694,214
[ 1, 9704, 288, 2579, 2955, 1345, 4243, 17, 291, 5042, 6032, 1345, 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, 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, 288, 203, 3639, 327, 203, 5411, 389, 9261, 5157, 18, 12298, 12, 2316, 13, 747, 203, 5411, 389, 5548, 6032, 5157, 63, 5548, 1887, 8009, 12298, 12, 2316, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.25; contract DecentralizationSmartGames{ using SafeMath for uint256; string public constant name = "Decentralization Smart Games"; string public constant symbol = "DSG"; uint8 public constant decimals = 18; uint256 public constant tokenPrice = 0.00065 ether; ...
*setGame() - the function of adding a new address of the game contract, from which you can receive dividends address gameAddress - the address of the game contract bool active - if TRUE, the dividends can be received/
function setGame(address gameAddress, bool active) public onlyOwners returns(bool){ games[gameAddress] = active; return true; }
5,399,462
[ 1, 542, 12496, 1435, 300, 326, 445, 434, 6534, 279, 394, 1758, 434, 326, 7920, 6835, 16, 628, 1492, 1846, 848, 6798, 3739, 350, 5839, 1758, 7920, 1887, 300, 326, 1758, 434, 326, 7920, 6835, 1426, 2695, 300, 309, 5383, 16, 326, 3739,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 444, 12496, 12, 2867, 7920, 1887, 16, 1426, 2695, 13, 1071, 1338, 5460, 414, 1135, 12, 6430, 15329, 203, 3639, 28422, 63, 13957, 1887, 65, 273, 2695, 31, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 2, -100, -100, -10...
//SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.7.1; pragma experimental ABIEncoderV2; // import '@nomiclabs/buidler/console.sol'; import "./ERC1155.sol"; import "./IERC1155Views.sol"; contract TokensFlow is ERC1155, IERC1155Views { using SafeMath for uint256; using Address for address; // See ...
See also _createSwapLimit()
contract TokensFlow is ERC1155, IERC1155Views { using SafeMath for uint256; using Address for address; pragma solidity ^0.7.1; import "./ERC1155.sol"; struct SwapLimit { bool recurring; int256 initialSwapCredit; int256 maxSwapCredit; int swapCreditPeriod; int firstTi...
1,073,089
[ 1, 9704, 2546, 389, 2640, 12521, 3039, 1435, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13899, 5249, 353, 4232, 39, 2499, 2539, 16, 467, 654, 39, 2499, 2539, 9959, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 27, ...
./full_match/1/0xc5FCC5139eDeD36c31B7EEE0E9A57ac8DAF4E42a/sources/fubu.sol
Set the amount of blocks to count a sniper. DxLocker Address (BSC) Approve the owner for PancakeSwap, timesaver. Ever-growing sniper/tool blacklist
constructor (uint256 _snipeBlockAmt, uint256 _gasPriceLimit) payable { _tOwned[_msgSender()] = _tTotal; _rOwned[_msgSender()] = _rTotal; snipeBlockAmt = _snipeBlockAmt; gasPriceLimit = _gasPriceLimit * 1 gwei; IUniswapV2Router02 _dexRouter = IUniswapV2Router02(_routerAddres...
3,850,589
[ 1, 694, 326, 3844, 434, 4398, 358, 1056, 279, 4556, 77, 457, 18, 463, 92, 2531, 264, 5267, 261, 38, 2312, 13, 1716, 685, 537, 326, 3410, 364, 12913, 23780, 12521, 16, 4124, 21851, 18, 512, 502, 17, 75, 492, 310, 4556, 77, 457, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 261, 11890, 5034, 389, 8134, 3151, 1768, 31787, 16, 2254, 5034, 389, 31604, 5147, 3039, 13, 8843, 429, 288, 203, 3639, 389, 88, 5460, 329, 63, 67, 3576, 12021, 1435, 65, 273, 389, 88, 5269, 31, 203, 3639, 389, 86, 54...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/token/ERC20/presets/ERC20PresetMinterPauserUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; ...
* @dev calculates the transfer fee/
function _calculateFee(uint256 amount) private view returns (uint256) { return amount.div(tokenTransferFeeDivisor); } uint256[50] private __gap;
12,573,243
[ 1, 12780, 815, 326, 7412, 14036, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 0, 0...
[ 1, 565, 445, 389, 11162, 14667, 12, 11890, 5034, 3844, 13, 3238, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 3844, 18, 2892, 12, 2316, 5912, 14667, 7244, 12385, 1769, 203, 565, 289, 203, 203, 565, 2254, 5034, 63, 3361, 65...
./full_match/1/0x3A70F276Ba72A7a7810b07b6349d0a9cA515200f/sources/localhost/MONA/03-Presale/MONA__Presale.sol
address where liquidity pool tokens will be locked
constructor(IERC20 _token, address _liquidityLockAddress ) { token = _token; owner = msg.sender; liquidityLockAddress = _liquidityLockAddress; monatoken = MonaToken( address( _token ) ); uniswapFactory = UniswapV2Factory( uniswapFactoryAddress ); un...
16,475,856
[ 1, 2867, 1625, 4501, 372, 24237, 2845, 2430, 903, 506, 8586, 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, 565, 3885, 12, 45, 654, 39, 3462, 389, 2316, 16, 1758, 389, 549, 372, 24237, 2531, 1887, 262, 288, 203, 3639, 1147, 273, 389, 2316, 31, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 7010, 3639, 4501, 372, 24237, 2531, 1887, 273, 3...
./full_match/80001/0xb6EC3aCfa7027Df9831661Ce392Fadd31615A75e/sources/contracts/TokenNFT.sol
@dev - function to close the tokenSale @dev -can only be controlled by the owner
function CloseTokenSale() external { require(tokenSaleStarted, "Token sale already closed"); tokenSaleStarted = false; emit tokenSaleEnded(); }
850,233
[ 1, 17, 445, 358, 1746, 326, 1147, 30746, 225, 300, 4169, 1338, 506, 25934, 635, 326, 3410, 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, 3527, 1345, 30746, 1435, 3903, 288, 203, 3639, 2583, 12, 2316, 30746, 9217, 16, 315, 1345, 272, 5349, 1818, 4375, 8863, 203, 3639, 1147, 30746, 9217, 273, 629, 31, 203, 3639, 3626, 1147, 30746, 28362, 5621, 203, 565, 289,...
./full_match/44787/0x2B9E935dFF162Fc112121cC74A43D0051E8e0b58/sources/contracts/CarboMerchant.sol
Burn Storage Merchant Information
contract CarboMerchant is ERC721URIStorage, ERC721Enumerable, Ownable, ReentrancyGuard { address public _burnAddress = 0x8d891cFFaEc8Dd6E571B717872db8095541110b2; address public _merchantAddress; string public _merchantName; mapping (address => string) _parties; ...
13,290,953
[ 1, 38, 321, 5235, 14940, 11106, 15353, 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, 0, 0, ...
[ 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, 0, 0...
[ 1, 16351, 23672, 1075, 27218, 353, 4232, 39, 27, 5340, 3098, 3245, 16, 4232, 39, 27, 5340, 3572, 25121, 16, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 203, 565, 1758, 1071, 389, 70, 321, 1887, 273, 374, 92, 28, 72, 6675, ...
./partial_match/1/0x4f8845b15AdD2566c2f3975eF57C66f418A48928/sources/HarryPotterFoundObamaInu.sol
* @dev Remember that only owner can call so be careful when use on contracts generated from other contracts. @param tokenAddress The token contract address @param tokenAmount Number of tokens to be sent/
function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner { IERC20(tokenAddress).transfer(owner(), tokenAmount); }
2,599,856
[ 1, 28810, 716, 1338, 3410, 848, 745, 1427, 506, 26850, 1347, 999, 603, 20092, 4374, 628, 1308, 20092, 18, 225, 1147, 1887, 1021, 1147, 6835, 1758, 225, 1147, 6275, 3588, 434, 2430, 358, 506, 3271, 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, 0, 0, 0, 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, 445, 5910, 654, 39, 3462, 12, 2867, 1147, 1887, 16, 2254, 5034, 1147, 6275, 13, 1071, 5024, 1338, 5541, 288, 203, 1850, 467, 654, 39, 3462, 12, 2316, 1887, 2934, 13866, 12, 8443, 9334, 1147, 6275, 1769, 203, 1377, 289, 203,...
pragma solidity ^0.4.11; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 ...
* @dev Function to mint tokens for investor @param _to The address that will receive the minted tokens. @param _amount The amount of tokens to emit. @return A boolean that indicates if the operation was successful./ create 2 extra token for each 3 sold Prevent to emit more than handcap!
function mint(address _to, uint256 _amount) onlyOwner canMint returns (bool) { require(_amount > 0); uint256 extra = _amount.div(3).mul(2); uint256 total = _amount.add(extra); totalSupply = totalSupply.add(total); assert(totalSupply <= HARDCAPPED_SUPPLY); ...
2,255,471
[ 1, 2083, 358, 312, 474, 2430, 364, 2198, 395, 280, 225, 389, 869, 1021, 1758, 716, 903, 6798, 326, 312, 474, 329, 2430, 18, 225, 389, 8949, 1021, 3844, 434, 2430, 358, 3626, 18, 327, 432, 1250, 716, 8527, 309, 326, 1674, 1703, 687...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1338, 5541, 848, 49, 474, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 24899, 8949, 405, 374, 1769, 203, 540, 203, 3639, 2254, 5034, 2870, 273, 389, 8949, 18,...
./full_match/4/0x9740CeC8F637cB2506C9a58Bc2F2F418415A1e6D/sources/browser/ToshimonDojoChild.sol
Returns probability to get each card (Value must be divided by 1e5)
function getTierProbabilities(uint256 _packId, uint256 _tier) public view returns (uint256[] memory) { uint256[] memory _cardIdList = cardIdLists[_packId][_tier]; PackCardData[] memory _data = getPackCardData(_packId, _tier); uint256 _totalCardsLeft = _getCardsLeft(_data); uint256[] mem...
777,450
[ 1, 1356, 11331, 358, 336, 1517, 5270, 261, 620, 1297, 506, 26057, 635, 404, 73, 25, 13, 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, 225, 445, 3181, 2453, 9152, 5756, 12, 11890, 5034, 389, 2920, 548, 16, 2254, 5034, 389, 88, 2453, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 261, 11890, 5034, 8526, 3778, 13, 203, 225, 288, 203, 565, 2254, 5034, 8526, ...
pragma solidity ^0.6.0; interface TokenInterface { function approve(address, uint256) external; function transfer(address, uint) external; function transferFrom(address, address, uint) external; function deposit() external payable; function withdraw(uint) external; function balanceOf(address) e...
* @dev Deposit Token. @param token token address. @param amt token amount. @param unitAmt unit amount of swerve_amt/token_amt with slippage. @param getId Get token amount at this ID from `InstaMemory` Contract. @param setId Set token amount at this ID in `InstaMemory` Contract./
function deposit( address token, uint amt, uint unitAmt, uint getId, uint setId ) external payable { uint256 _amt = getUint(getId, amt); TokenInterface tokenContract = TokenInterface(token); _amt = _amt == uint(-1) ? tokenContract.balanceOf(address(this)) : _amt; uint[4] memory ...
13,540,598
[ 1, 758, 1724, 3155, 18, 225, 1147, 1147, 1758, 18, 225, 25123, 1147, 3844, 18, 225, 2836, 31787, 2836, 3844, 434, 1352, 6527, 67, 301, 88, 19, 2316, 67, 301, 88, 598, 272, 3169, 2433, 18, 225, 2634, 968, 1147, 3844, 622, 333, 1599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 443, 1724, 12, 203, 565, 1758, 1147, 16, 203, 565, 2254, 25123, 16, 203, 565, 2254, 2836, 31787, 16, 203, 565, 2254, 2634, 16, 203, 565, 2254, 10446, 203, 225, 262, 3903, 8843, 429, 288, 203, 565, 2254, 5034, 389, 301...
//Address: 0x2399e275a35b9562f7fc93869abe9948e7b509bb //Contract name: SKToken //Balance: 0 Ether //Verification Date: 5/14/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** ...
* Transfer tokens from other address Send `_value` tokens to `_to` in behalf of `_from` @param _from The address of the sender @param _to The address of the recipient @param _value the amount to send/
function transferFrom(address _from, address _to, uint256 _value) whenNotPaused onlyPayloadSize(3*32) public returns (bool success) { require(!frozenAccount[msg.sender]); allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value); _transfer(_from, _to, _value); return tr...
5,449,092
[ 1, 5912, 2430, 628, 1308, 1758, 2479, 1375, 67, 1132, 68, 2430, 358, 1375, 67, 869, 68, 316, 12433, 6186, 434, 1375, 67, 2080, 68, 225, 389, 2080, 1021, 1758, 434, 326, 5793, 225, 389, 869, 1021, 1758, 434, 326, 8027, 225, 389, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1347, 1248, 28590, 1338, 6110, 1225, 12, 23, 14, 1578, 13, 1071, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 2583, 12, 5, 28138, 3032,...
/** *Submitted for verification at Etherscan.io on 2021-08-02 */ // Sources flattened with hardhat v2.5.0 https://hardhat.org // File @openzeppelin/contracts/GSN/[email protected] pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the tr...
Basic Issuance Module
IBasicIssuanceModule public basicIssuanceModule;
2,363,668
[ 1, 8252, 9310, 89, 1359, 5924, 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, 0, 0, 0, 0, ...
[ 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, 0, 0, 0...
[ 1, 565, 467, 8252, 7568, 89, 1359, 3120, 1071, 5337, 7568, 89, 1359, 3120, 31, 377, 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, -10...
pragma solidity >0.4.99 <0.6.0; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uin...
* @title Standard ERC20 token @dev Implementation of the basic standard token./
contract StandardToken is ERC20, BasicToken { mapping(address => mapping(address => uint256)) internal allowed; function transferFrom( address _from, address _to, uint256 _value ) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); ...
907,200
[ 1, 8336, 4232, 39, 3462, 1147, 225, 25379, 434, 326, 5337, 4529, 1147, 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, 16351, 8263, 1345, 353, 4232, 39, 3462, 16, 7651, 1345, 288, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 2254, 5034, 3719, 2713, 2935, 31, 203, 565, 445, 7412, 1265, 12, 203, 3639, 1758, 389, 2080, 16, 203, 3639, 1758, ...
pragma solidity ^0.4.24; // File: openzeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal...
number of voucher units in 10^18 MTH units
uint256 public voucherMthRate;
1,015,215
[ 1, 2696, 434, 331, 14329, 4971, 316, 1728, 66, 2643, 490, 2455, 4971, 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, 565, 2254, 5034, 1071, 331, 14329, 49, 451, 4727, 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, -...
./partial_match/1/0xc3Bb52E6118F05Dd8ad4e1C1a1398281cd7c4C7f/sources/src/optimism/L1DepositHelper.sol
//*/ @notice The L1 bridge contract @notice The WETH address//*/ @notice Constructor @param _l1Bridge The L1 bridge @param _weth The WETH address Max approve WETH to the L1 bridge
constructor(address _l1Bridge, address _weth) { l1Bridge = IL1ERC20Bridge(_l1Bridge); weth = _weth; ERC20(_weth).safeApprove(_l1Bridge, type(uint256).max); } DEPOSIT LOGIC
2,878,140
[ 1, 28111, 225, 1021, 511, 21, 10105, 6835, 225, 1021, 678, 1584, 44, 1758, 28111, 225, 11417, 225, 389, 80, 21, 13691, 1021, 511, 21, 10105, 225, 389, 91, 546, 1021, 678, 1584, 44, 1758, 4238, 6617, 537, 678, 1584, 44, 358, 326, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 389, 80, 21, 13691, 16, 1758, 389, 91, 546, 13, 288, 203, 3639, 328, 21, 13691, 273, 467, 48, 21, 654, 39, 3462, 13691, 24899, 80, 21, 13691, 1769, 203, 3639, 341, 546, 273, 389, 91, 546, 31, 203, 203, ...
/* Copyright 2020 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
* Takes a real unit and divides by the position multiplier to return the virtual unit/ These checks ensure that the virtual unit does not return a result that has rounded down to 0
function _convertRealToVirtualUnit(int256 _realUnit) internal view returns(int256) { int256 virtualUnit = _realUnit.conservativePreciseDiv(positionMultiplier); if (_realUnit > 0 && virtualUnit == 0) { revert("Virtual unit conversion invalid"); } return virtualUnit; ...
1,005,448
[ 1, 11524, 279, 2863, 2836, 471, 3739, 4369, 635, 326, 1754, 15027, 358, 327, 326, 5024, 2836, 19, 8646, 4271, 3387, 716, 326, 5024, 2836, 1552, 486, 327, 279, 563, 716, 711, 16729, 2588, 358, 374, 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, 389, 6283, 6955, 774, 6466, 2802, 12, 474, 5034, 389, 7688, 2802, 13, 2713, 1476, 1135, 12, 474, 5034, 13, 288, 203, 3639, 509, 5034, 5024, 2802, 273, 389, 7688, 2802, 18, 591, 23039, 1535, 1386, 30708, 7244, 12, 3276, ...
pragma solidity 0.5.2; /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimi...
* @title MinterRole @dev Role who can mint the new tokens/
contract MinterRole { using Roles for Roles.Role; event MinterAdded(address indexed account); event MinterRemoved(address indexed account); Roles.Role private _minters; constructor () internal { _addMinter(msg.sender); } modifier onlyMinter() { require(isMinter(msg.sender...
13,112,162
[ 1, 49, 2761, 2996, 225, 6204, 10354, 848, 312, 474, 326, 394, 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, 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, 16351, 490, 2761, 2996, 288, 203, 565, 1450, 19576, 364, 19576, 18, 2996, 31, 203, 203, 565, 871, 490, 2761, 8602, 12, 2867, 8808, 2236, 1769, 203, 565, 871, 490, 2761, 10026, 12, 2867, 8808, 2236, 1769, 203, 203, 565, 19576, 18,...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "contracts/interface/ICouncil....
* @dev 후원 회차의 투표 여부확인 @param _fund 투자한 fund 주소 @param _index 회차 Index @param _sender 확인하고자 하는 투자자 주소 @return voting_ 투표 여부/
function isVoting(address _fund, uint256 _index, address _sender) external view returns (bool voting_){ return funds[_fund][_index].voting[_sender]; }
12,759,641
[ 1, 174, 254, 231, 173, 254, 243, 225, 174, 253, 239, 173, 113, 106, 173, 256, 251, 225, 174, 235, 110, 174, 244, 255, 225, 173, 250, 110, 172, 119, 227, 174, 252, 248, 173, 256, 121, 225, 389, 74, 1074, 225, 174, 235, 110, 173...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 58, 17128, 12, 2867, 389, 74, 1074, 16, 2254, 5034, 389, 1615, 16, 1758, 389, 15330, 13, 3903, 1476, 1135, 261, 6430, 331, 17128, 67, 15329, 203, 3639, 327, 284, 19156, 63, 67, 74, 1074, 6362, 67, 1615, 8009, 90,...
./full_match/7700/0x9B2a63F27661A468E2da22226b64A4914144f195/sources/contracts/libraries/KnockoutLiq.sol
@notice Decodes the tightly packed bits in pool knockout parameters. @return enabled True if new knockout pivots are enabled at all. @return widthBits The width of new knockout pivots in ticks to the power of two. @return inside True if knockout range order can be minted with the current curve price i...
function unpackBits (uint8 knockoutBits) private pure returns (bool enabled, uint8 widthBits, bool inside, bool onGrid) { widthBits = uint8(knockoutBits & 0x0F); uint8 flagBits = uint8(knockoutBits & 0x30) >> 4; enabled = flagBits > 0; inside = flagBits >= 2; onGrid...
4,651,754
[ 1, 20978, 326, 26066, 715, 12456, 4125, 316, 2845, 15516, 975, 659, 1472, 18, 327, 3696, 1053, 309, 394, 15516, 975, 659, 293, 427, 6968, 854, 3696, 622, 777, 18, 327, 1835, 6495, 1021, 1835, 434, 394, 15516, 975, 659, 293, 427, 696...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6167, 6495, 261, 11890, 28, 15516, 975, 659, 6495, 13, 3238, 16618, 1135, 203, 3639, 261, 6430, 3696, 16, 2254, 28, 1835, 6495, 16, 1426, 4832, 16, 1426, 603, 6313, 13, 288, 203, 3639, 1835, 6495, 273, 2254, 28, 12, 2...
//SPDX-License-Identifier: MIT pragma solidity 0.7.3; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @title bloXmove Cliffing and Vesting Contract. */ contract BloXmoveVesting is Ownable { us...
* @dev calculate the days and the amount vested for a particular claim. Requirements: - The Grant ist not fully claimed - The current time is bigger than the starttime. @return a tuple of days vested and amount of vested tokens./ Check cliffing duration If over vesting duration, all tokens vested solve the uneven vest ...
function calculateGrantClaim(address _beneficiary) private view returns (uint16, uint256) { Grant storage tokenGrant = tokenGrants[_beneficiary]; require(tokenGrant.amount > 0, "no Grant"); require( tokenGrant.totalClaimed < tokenGrant.amount, ...
321,995
[ 1, 11162, 326, 4681, 471, 326, 3844, 331, 3149, 364, 279, 6826, 7516, 18, 29076, 30, 300, 1021, 19689, 19165, 486, 7418, 7516, 329, 300, 1021, 783, 813, 353, 18983, 2353, 326, 23437, 18, 327, 279, 3193, 434, 4681, 331, 3149, 471, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4604, 9021, 9762, 12, 2867, 389, 70, 4009, 74, 14463, 814, 13, 203, 3639, 3238, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 2313, 16, 2254, 5034, 13, 203, 565, 288, 203, 3639, 19689, 2502, 1147, 9021, 273, 1147, 29598...
./partial_match/4/0xF8d0a3F8a21e9f57394e4C63e9bB4212FAae9Da5/sources/Boardroom.sol
======== discount ==============*/
function withdrawWithDiscount(uint256 amount, address gasSponsor, uint256 flag) external discountGas(gasSponsor, flag) { withdrawInternal(amount); }
8,584,345
[ 1, 1432, 12137, 422, 14468, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1190, 9866, 12, 11890, 5034, 3844, 16, 1758, 16189, 55, 500, 2467, 16, 2254, 5034, 2982, 13, 7010, 3639, 3903, 7010, 3639, 12137, 27998, 12, 31604, 55, 500, 2467, 16, 2982, 13, 203, 565, 288, 203, 3639, 598, ...
./full_match/421613/0xC7475E940ed80773703a783F0eF4858c850FD877/sources/project_/contracts/VestedERC20.sol
@title VestedERC20 @author zefram.eth @notice An ERC20 wrapper token that linearly vests an underlying token to its holders
contract VestedERC20 is ERC20 { using SafeTransferLib for SolmateERC20; error Error_Wrap_VestOver(); error Error_Wrap_AmountTooLarge(); mapping(address => uint256) public claimedUnderlyingAmount; import {ERC20 as SolmateERC20} from "solmate/src/tokens/ERC20.sol"; import {SafeTransferLib} from "s...
11,567,907
[ 1, 58, 3149, 654, 39, 3462, 225, 998, 10241, 1940, 18, 546, 225, 1922, 4232, 39, 3462, 4053, 1147, 716, 9103, 715, 331, 25563, 392, 6808, 1147, 358, 2097, 366, 4665, 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, 16351, 776, 3149, 654, 39, 3462, 353, 4232, 39, 3462, 288, 203, 203, 565, 1450, 14060, 5912, 5664, 364, 348, 355, 81, 340, 654, 39, 3462, 31, 203, 203, 203, 565, 555, 1068, 67, 2964, 67, 58, 395, 4851, 5621, 203, 565, 555, 10...
./partial_match/4/0xD68f4CAE482452ad9986183C10CF17AD5734efE5/sources/contracts/Component.sol
Set project address.
function setProjectAddress (address _newAddr) public onlyOwner { projectAddress = _newAddr; }
8,762,292
[ 1, 694, 1984, 1758, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 25323, 1887, 261, 2867, 389, 2704, 3178, 13, 1071, 1338, 5541, 288, 203, 3639, 1984, 1887, 273, 389, 2704, 3178, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error. * Code yanked from https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ ...
Release the remaining balance to the beneficiary.
require(daiContract.transfer(beneficiary, getBalance()), "Final release transfer to beneficiary failed!");
6,363,387
[ 1, 7391, 326, 4463, 11013, 358, 326, 27641, 74, 14463, 814, 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, 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, 3639, 2583, 12, 2414, 77, 8924, 18, 13866, 12, 70, 4009, 74, 14463, 814, 16, 2882, 6112, 1435, 3631, 315, 7951, 3992, 7412, 358, 27641, 74, 14463, 814, 2535, 4442, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT // Prepared for BUchain Workshop by Murat Ögat pragma solidity ^0.8.0; import "./IBroker.sol"; import "../Utils/Ownable.sol"; import "../ERC20/IERC20.sol"; import "../Utils/IUniswapV3.sol"; contract Broker is IBroker, Ownable { IERC20 private immutable currency; IERC20 privat...
For exact output swaps, the amountInMaximum may not have all been spent. If the actual amount spent (amountIn) is less than the specified maximum amount, we must refund the msg.sender
function buyWithTokenPath(uint256 _amountShares, address _tokenAddress, bytes calldata path, uint256 _amountInMaximum) external { uint256 totalPriceBase = getPrice(_amountShares); uint256 balanceBefore = IERC20(currency).balanceOf(address(this)); IERC20(_tokenAddress).transferFrom(msg.sender...
6,385,146
[ 1, 1290, 5565, 876, 1352, 6679, 16, 326, 3844, 382, 13528, 2026, 486, 1240, 777, 2118, 26515, 18, 971, 326, 3214, 3844, 26515, 261, 8949, 382, 13, 353, 5242, 2353, 326, 1269, 4207, 3844, 16, 732, 1297, 16255, 326, 1234, 18, 15330, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 30143, 1190, 1345, 743, 12, 11890, 5034, 389, 8949, 24051, 16, 1758, 389, 2316, 1887, 16, 1731, 745, 892, 589, 16, 2254, 5034, 389, 8949, 382, 13528, 13, 3903, 288, 203, 3639, 2254, 5034, 2078, 5147, 2171, 273, 25930, 2...
./full_match/4/0x4e87720bE34A1a2c810b939dbC66E3FCe3e02513/sources/contracts/MeetBOB.sol
* @notice global purchase function used in early access and public sale @param amount the amount of BOBs to purchase/
function _purchase(uint256 amount) private { uint256 supply = totalSupply(); require(supply + amount <= maxSupply, "Exceeds maximum supply of BOB"); for (uint256 i; i < amount; i++) { _safeMint(msg.sender, supply + i); } }
12,299,820
[ 1, 6347, 23701, 445, 1399, 316, 11646, 2006, 471, 1071, 272, 5349, 225, 3844, 326, 3844, 434, 605, 5704, 87, 358, 23701, 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, ...
[ 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, 0...
[ 1, 565, 445, 389, 12688, 12104, 12, 11890, 5034, 3844, 13, 3238, 288, 203, 3639, 2254, 5034, 14467, 273, 2078, 3088, 1283, 5621, 203, 3639, 2583, 12, 2859, 1283, 397, 3844, 1648, 943, 3088, 1283, 16, 315, 424, 5288, 87, 4207, 14467, ...
./full_match/1/0x25245941137d9C85B5D48aE8d7788aA841BEB9aE/sources/contracts/staking/MasterBids.sol
@notice Add a new lp to the pool. Can only be called by the owner. @dev Reverts if the same LP token is added more than once. @param _lpToken the corresponding lp token @param _rewarder the contract that implements "onReward(user)" that is called on user operation update PoolInfoV3 with the new LP
function add(IERC20 _lpToken, IRewarder _rewarder) external onlyOwner { require(Address.isContract(address(_lpToken)), "add: LP token must be a valid contract"); require(!lpTokens.contains(address(_lpToken)), "add: LP already added"); poolInfoV3.push( PoolInfoV3({ ...
3,100,017
[ 1, 986, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 225, 868, 31537, 309, 326, 1967, 511, 52, 1147, 353, 3096, 1898, 2353, 3647, 18, 225, 389, 9953, 1345, 326, 4656, 12423, 1147, 225, 389, 266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 12, 45, 654, 39, 3462, 389, 9953, 1345, 16, 15908, 359, 297, 765, 389, 266, 20099, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 1887, 18, 291, 8924, 12, 2867, 24899, 9953, 1345, 13, 3631, 315, 1289, 30, 511, ...
./full_match/80001/0x4C3071eFd04b836C9E13D8811107Ec1F4A24f0D8/sources/PhilippCoin.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract PhilippCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() { symbol = "PHILIPP"; ...
9,527,926
[ 1, 5802, 7620, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4360, 330, 15491, 27055, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389,...
./full_match/83/0x48ef19252C6c59c5CF1e5Bd87DAeE0A2c5BA7cEE/sources/contracts/CToken/CToken.sol
Calculate new borrow balance using the interest index: recentBorrowBalance = borrower.borrowBalance market.borrowIndex / borrower.borrowIndex/
(mathErr, principalTimesIndex) = borrowSnapshot.principal.mulUInt(borrowIndex);
9,556,587
[ 1, 8695, 394, 29759, 11013, 1450, 326, 16513, 770, 30, 225, 8399, 38, 15318, 13937, 273, 29759, 264, 18, 70, 15318, 13937, 225, 13667, 18, 70, 15318, 1016, 342, 29759, 264, 18, 70, 15318, 1016, 19, 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, 261, 15949, 2524, 16, 8897, 10694, 1016, 13, 273, 29759, 4568, 18, 26138, 18, 16411, 14342, 12, 70, 15318, 1016, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.5.0; import "../../openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./BridgeToken.sol"; /** * @title GoAssetBank * @dev Manages the deployment and minting of ERC20 compatible BridgeTokens * which represent assets issued by Go contracts. * @dev 为chain33上的go合约发行的资产进行BridgeTokens合约...
@dev: Mints new goAsset tokens @param _goAssetSender: The _goAssetSender sender's address. @param _chain33Recipient: The intended recipient's Chain33 address. @param _goAssetTokenAddress: The currency type @param _symbol: goAsset token symbol @param _amount: number of goAsset tokens to be minted/ Must be whitelisted ...
function mintNewBridgeTokens( address _goAssetSender, address payable _intendedRecipient, address _bridgeTokenAddress, string memory _symbol, uint256 _amount ) internal { require( bridgeTokenWhitelist[_bridgeTokenAddress], "To...
13,044,004
[ 1, 30, 490, 28142, 394, 1960, 6672, 2430, 225, 389, 3240, 6672, 12021, 30, 225, 1021, 389, 3240, 6672, 12021, 5793, 1807, 1758, 18, 225, 389, 5639, 3707, 18241, 30, 1021, 12613, 8027, 1807, 7824, 3707, 1758, 18, 225, 389, 3240, 6672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1908, 13691, 5157, 12, 203, 3639, 1758, 225, 389, 3240, 6672, 12021, 16, 203, 3639, 1758, 8843, 429, 389, 474, 3934, 18241, 16, 203, 3639, 1758, 389, 18337, 1345, 1887, 16, 203, 3639, 533, 3778, 389, 7175, 16,...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >= 0.7.0 < 0.8.0; contract AddressBook { //maps an address to an address array mapping(address => address[]) private _addresses; //maps an address to the aliases of the related addresses // when you are mapping a key to another mapping, the key ...
maps an address to an address arraymaps an address to the aliases of the related addresses when you are mapping a key to another mapping, the key gets mapped to the value of the second mapping array types (reference types) require the memory keyword
contract AddressBook { mapping(address => address[]) private _addresses; mapping(address => mapping(address => string)) private _aliases; function getAddressArray(address adr) public view returns(address[] memory) { return _addresses[adr]; } function addAddress(address adr, s...
2,540,434
[ 1, 10711, 392, 1758, 358, 392, 1758, 526, 10711, 392, 1758, 358, 326, 6900, 434, 326, 3746, 6138, 1347, 1846, 854, 2874, 279, 498, 358, 4042, 2874, 16, 326, 498, 5571, 5525, 358, 326, 460, 434, 326, 2205, 2874, 526, 1953, 261, 6180,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 16351, 5267, 9084, 288, 203, 565, 2874, 12, 2867, 516, 1758, 63, 5717, 3238, 389, 13277, 31, 203, 377, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 533, 3719, 3238, 389, 13831, 31, 203, 377, 203, 203, 565, 445, 14808, 10...
// SPDX-License-Identifier: UNLISCENSED pragma solidity 0.6.0; contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor() internal {} function _msgSender() internal view returns (add...
Empty internal constructor, to prevent people from mistakenly deploying an instance of this contract, which should be used via inheritance.
contract Context { pragma solidity 0.6.0; constructor() internal {} function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { return msg.data; } }
5,351,004
[ 1, 1921, 2713, 3885, 16, 358, 5309, 16951, 628, 27228, 7940, 715, 7286, 310, 392, 791, 434, 333, 6835, 16, 1492, 1410, 506, 1399, 3970, 16334, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1772, 288, 203, 203, 683, 9454, 18035, 560, 374, 18, 26, 18, 20, 31, 203, 565, 3885, 1435, 2713, 2618, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 1135, 261, 2867, 8843, 429, 13, 288, 203, 3639, 327, 1234, 18, 153...
./full_match/1/0xbff7EAe17c12472b2eBd9b10b3864a8D12cfB0A2/sources/contracts/matchCriteria/MatchCriteriaRouter.sol
* @notice See granted Criteria @param cursor cursor @param size size/
function viewGrantedCriteria(uint256 cursor, uint256 size) external view override returns (address[] memory, uint256) { uint256 length = _grantedCriteria.length(); uint256 remaining = length > cursor ? length - cursor : 0; uint256 resultSize = remaining < ...
4,972,651
[ 1, 9704, 17578, 8356, 225, 3347, 3347, 225, 963, 963, 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, 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, 1476, 14570, 7231, 12, 11890, 5034, 3347, 16, 2254, 5034, 963, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 2867, 8526, 3778, 16, 2254, 5034, 13, 203, 565, 288, 203, 3639, 2254, 5034, 769...
./full_match/43114/0xa90c0FCfd27a2A475C5E020ffD65Da8581c4c01D/sources/contracts/aave/AaveERC3156.sol
@param provider Aave v2 LendingPoolAddresses address
constructor(LendingPoolAddressesProviderLike provider) { lendingPool = LendingPoolLike(provider.getLendingPool()); }
4,527,510
[ 1, 6778, 432, 836, 331, 22, 511, 2846, 2864, 7148, 1758, 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, 3885, 12, 48, 2846, 2864, 7148, 2249, 8804, 2893, 13, 288, 203, 3639, 328, 2846, 2864, 273, 511, 2846, 2864, 8804, 12, 6778, 18, 588, 48, 2846, 2864, 10663, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -...
./partial_match/97/0xc73921C5B7893115A6CC0a2ac034b65103ba1B0F/sources/TestToken.sol
uint256 currentRate = _getRate();(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tBurn) = _getValues(tAmount);uint256 rBurn = tBurn.mul(currentRate);_reflectFee(rFee, rBurn, tFee, tBurn);
function _transferCharity(address sender, address recipient, uint256 tAmount) private { _rOwned[sender] = _rOwned[sender].sub(tAmount); _rOwned[recipient] = _rOwned[recipient].add(tAmount); emit Transfer(sender, recipient, tAmount); }
11,356,277
[ 1, 11890, 5034, 783, 4727, 273, 225, 389, 588, 4727, 5621, 12, 11890, 5034, 436, 6275, 16, 2254, 5034, 436, 5912, 6275, 16, 2254, 5034, 436, 14667, 16, 2254, 5034, 268, 5912, 6275, 16, 2254, 5034, 268, 14667, 16, 2254, 5034, 268, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 13866, 2156, 560, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 268, 6275, 13, 3238, 288, 203, 3639, 389, 86, 5460, 329, 63, 15330, 65, 273, 389, 86, 5460, 329, 63, 15330, 8009, 1717, 12, 88, 6275, 1769, 203, ...
pragma solidity ^0.5.0; import "../../interfaces/ISecuritiesToken.sol"; import "../_services/TxCheckpoints.sol"; /** * @title Securities Token */ contract SecuritiesToken is TxCheckpoints, ISecuritiesToken { // Declare varaible that stores token issuer address address issuer; constructor(address _issuer...
* Return token issuer address/
function getIssuerAddress() public view returns (address) { return issuer; }
7,289,858
[ 1, 990, 1147, 9715, 1758, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 0, 0, 0...
[ 1, 565, 445, 336, 16667, 1887, 1435, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 9715, 31, 203, 565, 289, 203, 2, -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.8.4; abstract contract IDFSRegistry { function getAddr(bytes32 _id) public view virtual returns (address); function addNewContract( bytes32 _id, address _contractAddr, uint256 _waitPeriod ) public virtual; function st...
@notice Changes new wait period, correct time must have passed @param _id Id of contract
function approveWaitPeriodChange(bytes4 _id) public onlyOwner { if (!entries[_id].exists){ revert EntryNonExistentError(); } if (!entries[_id].inWaitPeriodChange){ revert EntryNotInChangeError(); } revert ChangeNotReadyError(); }
14,700,856
[ 1, 7173, 394, 2529, 3879, 16, 3434, 813, 1297, 1240, 2275, 225, 389, 350, 3124, 434, 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...
[ 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, 6617, 537, 5480, 5027, 3043, 12, 3890, 24, 389, 350, 13, 1071, 1338, 5541, 288, 203, 3639, 309, 16051, 8219, 63, 67, 350, 8009, 1808, 15329, 203, 5411, 15226, 3841, 3989, 4786, 319, 668, 5621, 203, 3639, 289, 203, 3639,...
pragma solidity 0.4.26; // optimization enabled, runs: 500 /************** TPL Extended Jurisdiction - YES token integration ************* * This digital jurisdiction supports assigning YES token, or other contracts * * with a similar validation mechanism, as additional attribute validators. * * https://gi...
* @notice Add an attribute of the type with ID `attributeTypeID`, an attribute value of `value`, and an associated validator fee of `validatorFee` to account `account` by passing in a signed attribute approval with signature `signature`. @param account address The account to add the attribute to. @param attributeTypeID...
function addAttributeFor( address account, uint256 attributeTypeID, uint256 value, uint256 validatorFee, bytes signature ) external payable { require( !_attributeTypes[attributeTypeID].onlyPersonal, "only operatable attributes may be added on behalf of another address" ); ...
1,829,714
[ 1, 986, 392, 1566, 434, 326, 618, 598, 1599, 1375, 4589, 559, 734, 9191, 392, 1566, 460, 434, 1375, 1132, 9191, 471, 392, 3627, 4213, 14036, 434, 1375, 7357, 14667, 68, 358, 2236, 1375, 4631, 68, 635, 9588, 316, 279, 6726, 1566, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10759, 1290, 12, 203, 565, 1758, 2236, 16, 203, 565, 2254, 5034, 1566, 559, 734, 16, 203, 565, 2254, 5034, 460, 16, 203, 565, 2254, 5034, 4213, 14667, 16, 203, 565, 1731, 3372, 203, 225, 262, 3903, 8843, 429, 288, 203...
./partial_match/56/0x6d53d13562D8318BB358a032316dE8c988032811/sources/StrategyVSwapWeightLp.sol
/ baseToken = 0xf98313f818c53E40Bd758C5276EF4B434463Bec4 (gvValueBUSD-vSwapLP) farmingToken = 0x4f0ed527e8A95ecAA132Af214dFd41F30b361600 (vSwap) targetCompound = 0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56 (BUSD) token0 = 0x0610C2d9F6EbC40078cf081e2D1C4252dD50ad15 (gvValue) token1 = 0xe9e7CEA3DedcA5984780Bafc599bD...
contract StrategyVSwapWeightLp is StrategyBase { address public farmPool; uint256 public poolId; address public token0; address public token1; function initialize( address _baseToken, address _farmingToken, address _farmPool, uint256 _poolId, address _targe...
11,071,404
[ 1, 19, 1026, 1345, 4202, 273, 374, 5841, 29, 10261, 3437, 74, 28, 2643, 71, 8643, 41, 7132, 38, 72, 5877, 28, 39, 25, 5324, 26, 26897, 24, 38, 24, 5026, 24, 4449, 38, 557, 24, 261, 75, 90, 620, 3000, 9903, 17, 90, 12521, 14461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19736, 58, 12521, 6544, 48, 84, 353, 19736, 2171, 288, 203, 203, 565, 1758, 1071, 284, 4610, 2864, 31, 203, 565, 2254, 5034, 1071, 2845, 548, 31, 203, 203, 565, 1758, 1071, 1147, 20, 31, 203, 565, 1758, 1071, 1147, 21, 3...
pragma solidity ^0.4.24; import "./VANMToken.sol"; contract VANMPresale is Ownable { using SafeMath for uint256; //Variables uint256 public presaleStartsAt; uint256 public presaleEndsAt; uint256 public presaleRate; uint256 public weiRaised; address public presaleWallet; address pub...
Change presale wallet
function changeWallet(address _presaleWallet) external onlyOwner { presaleWallet = _presaleWallet; emit WalletChanged(_presaleWallet); }
12,957,071
[ 1, 3043, 4075, 5349, 9230, 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, 0, 0, 0, 0, 0, ...
[ 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, 0, 0, 0, 0...
[ 1, 565, 445, 2549, 16936, 12, 2867, 389, 12202, 5349, 16936, 13, 3903, 1338, 5541, 288, 203, 3639, 4075, 5349, 16936, 273, 389, 12202, 5349, 16936, 31, 203, 3639, 3626, 20126, 5033, 24899, 12202, 5349, 16936, 1769, 203, 565, 289, 203, ...
pragma solidity ^0.4.0; /* Temporary Hash Registrar ======================== This is a simplified version of a hash registrar. It is purporsefully limited: names cannot be six letters or shorter, new auctions will stop after 4 years and all ether still locked after 8 years will become unreachable. The...
* @dev Transfers the deed to the current registrar, if different from this one. Used during the upgrade process to a permanent registrar. @param _hash The name hash to transfer./
function transferRegistrars(bytes32 _hash) onlyOwner(_hash) { var registrar = ens.owner(rootNode); if(registrar == address(this)) throw; entry h = _entries[_hash]; h.deed.setRegistrar(registrar); }
12,950,924
[ 1, 1429, 18881, 326, 443, 329, 358, 326, 783, 17450, 297, 16, 309, 3775, 628, 333, 1245, 18, 10286, 4982, 326, 8400, 1207, 358, 279, 16866, 17450, 297, 18, 225, 389, 2816, 1021, 508, 1651, 358, 7412, 18, 19, 2, 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, 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...
[ 1, 565, 445, 7412, 20175, 5913, 12, 3890, 1578, 389, 2816, 13, 1338, 5541, 24899, 2816, 13, 288, 203, 3639, 569, 17450, 297, 273, 19670, 18, 8443, 12, 3085, 907, 1769, 203, 3639, 309, 12, 1574, 3337, 297, 422, 1758, 12, 2211, 3719, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the on...
@notice Change the buy treasuryTax rate @param _sellTreasuryTax The new treasuryTax rate
function setSellTreasuryTax(uint256 _sellTreasuryTax) external onlyOwner { require( _sellTreasuryTax <= BPS_DENOMINATOR, "_sellTreasuryTax cannot exceed BPS_DENOMINATOR" ); emit SellTreasuryTaxChanged(sellTreasuryTax, _sellTreasuryTax); sellTreasuryTax = _sell...
1,608,852
[ 1, 3043, 326, 30143, 9787, 345, 22498, 7731, 4993, 225, 389, 87, 1165, 56, 266, 345, 22498, 7731, 1021, 394, 9787, 345, 22498, 7731, 4993, 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, 445, 13928, 1165, 56, 266, 345, 22498, 7731, 12, 11890, 5034, 389, 87, 1165, 56, 266, 345, 22498, 7731, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 389, 87, 1165, 56, 266, 345, 22498, 7731, 1648, 605, 5857, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; // BuryLeash is the coolest pit in town. You come in with some Leash, and leave with more! The l...
Leave the doghouse. Claim back your LEASHs. Unclocks the staked + gained Leash and burns xLeash Gets the amount of xLeash in existence Calculates the amount of Leash the xLeash is worth
function leave(uint256 _share) public { uint256 totalShares = totalSupply(); uint256 what = _share.mul(LEASH.balanceOf(address(this))).div(totalShares); _burn(msg.sender, _share); LEASH.transfer(msg.sender, what); }
12,134,753
[ 1, 21300, 326, 302, 717, 13028, 18, 18381, 1473, 3433, 5380, 10793, 87, 18, 1351, 18517, 87, 326, 384, 9477, 397, 314, 8707, 3519, 961, 471, 18305, 87, 619, 1682, 961, 11881, 326, 3844, 434, 619, 1682, 961, 316, 15782, 26128, 326, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8851, 12, 11890, 5034, 389, 14419, 13, 1071, 288, 203, 3639, 2254, 5034, 2078, 24051, 273, 2078, 3088, 1283, 5621, 203, 203, 3639, 2254, 5034, 4121, 273, 389, 14419, 18, 16411, 12, 900, 10793, 18, 12296, 951, 12, 2867, ...
/** *Submitted for verification at Etherscan.io on 2021-04-27 */ // SPDX-License-Identifier: BUSL-1.1 // File: @uniswap/lib/contracts/libraries/TransferHelper.sol pragma solidity >=0.6.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferH...
using tokenA.safeTransferFrom will get "Stack too deep"
function addLiquidity( IERC20 tokenA, IERC20 tokenB, address pool, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, uint256[2] memory vReserveRatioBounds, address to, uint256 deadline ) ...
2,503,169
[ 1, 9940, 1147, 37, 18, 4626, 5912, 1265, 903, 336, 315, 2624, 4885, 4608, 6, 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, 527, 48, 18988, 24237, 12, 203, 3639, 467, 654, 39, 3462, 1147, 37, 16, 203, 3639, 467, 654, 39, 3462, 1147, 38, 16, 203, 3639, 1758, 2845, 16, 203, 3639, 2254, 5034, 3844, 1880, 281, 2921, 16, 203, 3639, 2254, 5034, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; pragma experimental ABIEncoderV2; uint256 constant SECONDS_IN_THE_YEAR = 365 * 24 * 60 * 60; // 365 days * 24 hours * 60 minutes * 60 seconds uint256 constant DAYS_IN_THE_YEAR = 365; uint256 constant MAX_INT = type(uint256).max; uint256 constant DECIMALS18 = 10*...
@notice claim rewards for all defi protocols and send them to reinsurance pool, access: owner
function claimRewards() external override onlyOwner { for (uint256 i = 0; i < PROTOCOLS_NUMBER; i++) { IDefiProtocol(defiProtocolsAddresses[i]).claimRewards(); } }
9,888,551
[ 1, 14784, 283, 6397, 364, 777, 1652, 77, 16534, 471, 1366, 2182, 358, 283, 2679, 295, 1359, 2845, 16, 2006, 30, 3410, 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, 565, 445, 7516, 17631, 14727, 1435, 3903, 3849, 1338, 5541, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 24245, 55, 67, 9931, 31, 277, 27245, 288, 203, 5411, 467, 3262, 77, 5752, 12, 536, 77, 21657, 7148, ...
/** *Submitted for verification at Etherscan.io on 2022-02-16 */ //$REDSHIB is aiming to reach sufficient funding from its token launch to be able to //finance its main utility which is a Dating dApp platform running on the blockchain //and utilizing its benefits in the dating market. // Telegram: https://t.me/r...
set as marketing wallet
marketingWallet = address(0x9b1B9D52d6a2c2850DEe69631D6E6DD4a40c511B);
1,159,295
[ 1, 542, 487, 13667, 310, 9230, 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, 0, 0, 0, 0, ...
[ 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, 0, 0, 0...
[ 1, 3639, 13667, 310, 16936, 273, 1758, 12, 20, 92, 29, 70, 21, 38, 29, 40, 9401, 72, 26, 69, 22, 71, 6030, 3361, 1639, 73, 8148, 4449, 21, 40, 26, 41, 26, 5698, 24, 69, 7132, 71, 25, 2499, 38, 1769, 225, 2, -100, -100, -100,...
./partial_match/100/0x2350d72333dd4f41a358cCBCF9D433F4b4829e3d/sources/AMBBridgeHelper.sol
recover number of confirmations sent by oracles
function getSignatures(bytes calldata _message) external view returns(bytes memory) { bytes32 msgHash = keccak256(abi.encodePacked(_message)); uint256 signed = AMBcontract.numMessagesSigned(msgHash); require(AMBcontract.isAlreadyProcessed(signed), "message hasn't been confirmed"); ...
16,655,785
[ 1, 266, 3165, 1300, 434, 6932, 1012, 3271, 635, 578, 69, 9558, 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, 445, 14167, 2790, 12, 3890, 745, 892, 389, 2150, 13, 3903, 1476, 1135, 12, 3890, 3778, 13, 288, 203, 3639, 1731, 1578, 1234, 2310, 273, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 24899, 2150, 10019, 203, 3639, 22...
./partial_match/1/0x695264D984A5E45C2d89f261C8668d6C1F7D214c/sources/IporProtocolRouter.sol
By storing the original value once again, a refund is triggered (see https:eips.ethereum.org/EIPS/eip-2200)
function _nonReentrantAfter() internal { if (StorageLib.getReentrancyStatus().value == _ENTERED) { StorageLib.getReentrancyStatus().value = _NOT_ENTERED; } }
16,153,399
[ 1, 858, 15729, 326, 2282, 460, 3647, 3382, 16, 279, 16255, 353, 10861, 261, 5946, 2333, 30, 73, 7146, 18, 546, 822, 379, 18, 3341, 19, 41, 2579, 55, 19, 73, 625, 17, 3787, 713, 13, 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, 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, 389, 5836, 426, 8230, 970, 4436, 1435, 2713, 288, 203, 3639, 309, 261, 3245, 5664, 18, 588, 426, 8230, 12514, 1482, 7675, 1132, 422, 389, 12278, 2056, 13, 288, 203, 5411, 5235, 5664, 18, 588, 426, 8230, 12514, 1482, 767...
pragma solidity ^0.4.13; contract ERC20 { function balanceOf(address who) public constant returns (uint); function allowance(address owner, address spender) public constant returns (uint); function transfer(address to, uint value) public returns (bool ok); function transferFrom(address from, address to, uint ...
Установка стоимости токена вручную. Если значение больше 0, токены продаются по установленной вручную цене
function setTokenPrice(uint _tokenPrice) external onlyOwner { PriceManual = _tokenPrice; PriceChanged("New price is ", _tokenPrice); }
7,219,948
[ 1, 145, 101, 146, 228, 146, 229, 145, 113, 145, 126, 145, 127, 145, 115, 145, 123, 145, 113, 225, 146, 228, 146, 229, 145, 127, 145, 121, 145, 125, 145, 127, 146, 228, 146, 229, 145, 121, 225, 146, 229, 145, 127, 145, 123, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22629, 5147, 12, 11890, 389, 2316, 5147, 13, 3903, 1338, 5541, 288, 203, 3639, 20137, 25139, 273, 389, 2316, 5147, 31, 203, 3639, 20137, 5033, 2932, 1908, 6205, 353, 3104, 389, 2316, 5147, 1769, 203, 565, 289, 203, 377, ...
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than a...
* @dev Update the symbol. @param _tokenSymbol The symbol name./
function setTokenInformation(string _tokenName, string _tokenSymbol) public onlyOwner { name = _tokenName; symbol = _tokenSymbol; emit UpdatedTokenInformation(name, symbol); }
7,682,371
[ 1, 1891, 326, 3273, 18, 225, 389, 2316, 5335, 1021, 3273, 508, 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, 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, 22629, 5369, 12, 1080, 389, 2316, 461, 16, 533, 389, 2316, 5335, 13, 1071, 1338, 5541, 288, 203, 3639, 508, 273, 389, 2316, 461, 31, 203, 3639, 3273, 273, 389, 2316, 5335, 31, 203, 3639, 3626, 19301, 1345, 5369, 12, 5...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; /** * @title TokenVesting * @dev This contract is used to aw...
* @dev Calculates the amount that has already vested but hasn't been released yet. @param beneficiary Who the tokens are being released to/
function getReleasableAmount(address beneficiary) public view returns (uint256) { TokenAward memory award = getTokenAward(beneficiary); return getVestedAmount(beneficiary) - award.released; }
5,440,060
[ 1, 10587, 326, 3844, 716, 711, 1818, 331, 3149, 1496, 13342, 1404, 2118, 15976, 4671, 18, 225, 27641, 74, 14463, 814, 3497, 83, 326, 2430, 854, 3832, 15976, 358, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 17018, 345, 429, 6275, 12, 2867, 27641, 74, 14463, 814, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 261, 11890, 5034, 13, 203, 225, 288, 203, 565, 3155, 37, 2913, 3778, 279, 2913, 273, 9162, 37, 2913, 12,...
/** *Submitted for verification at Etherscan.io on 2022-03-26 */ /* guestlisted by @etherlect ____________________________________________________________ / \ /______________________________________________________________\ | [+] [+] [+] [+] [+] ...
-------------------------------------------------------- Art proxy contract function signature --------------------------------------------------------
contract GuestlistedArtProxy { function draw (GuestlistedLibrary.TokenData memory tokenData) public view returns (string memory) {} }
2,426,230
[ 1, 9634, 788, 225, 9042, 2889, 6835, 445, 3372, 13420, 17082, 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, 6467, 395, 18647, 4411, 3886, 288, 203, 565, 445, 3724, 261, 12978, 18647, 9313, 18, 1345, 751, 3778, 1147, 751, 13, 1071, 1476, 1135, 261, 1080, 3778, 13, 2618, 203, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0xD5e2A366f9Df8d3772B0b8A0AafeCB0F03fD77B3/sources/DemoToken.sol
reward prediction at specific block
function getRewardPerBlock(uint blockNumber) public view returns (uint256) { if (blockNumber >= startBlock){ uint256 blockDaysPassed = (blockNumber.sub(startBlock)).div(perDayBlocks); if(blockDaysPassed <= 0){ return DemoPerBlock; } } }
5,185,249
[ 1, 266, 2913, 8239, 622, 2923, 1203, 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, 0, 0, ...
[ 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, 0, 0...
[ 1, 565, 445, 4170, 359, 1060, 2173, 1768, 12, 11890, 1203, 1854, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 2629, 1854, 1545, 787, 1768, 15329, 203, 203, 5411, 2254, 5034, 1203, 9384, 22530, 273, 261, 2629, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.3; import './libs/SafeERC20.sol'; import './libs/Ownable.sol'; import './libs/SafeMath.sol'; /** * @title TokenVesting * @dev A token holder contract that can release its token balance gradually like a * typical vesting scheme, with a cliff and vesting pe...
* @return true if the token is revoked./
function getRevoked(address token) external view returns (bool) { return revoked[token]; }
5,463,662
[ 1, 2463, 638, 309, 326, 1147, 353, 22919, 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, 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, 225, 445, 5561, 90, 14276, 12, 2867, 1147, 13, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 565, 327, 22919, 63, 2316, 15533, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/8453/0xc0d3C0D3C0D3c0D3C0D3C0d3C0D3c0D3c0d30015/sources/contracts/legacy/DeployerWhitelist.sol
* @notice Updates the owner of this contract. @param _owner Address of the new owner./ Prevent users from setting the whitelist owner to address(0) except via enableArbitraryContractDeployment. If you want to burn the whitelist owner, send it to any other address that doesn't have a corresponding knowable private key.
function setOwner(address _owner) external onlyOwner { require( _owner != address(0), "DeployerWhitelist: can only be disabled via enableArbitraryContractDeployment" ); emit OwnerChanged(owner, _owner); owner = _owner; }
16,772,460
[ 1, 5121, 326, 3410, 434, 333, 6835, 18, 225, 389, 8443, 5267, 434, 326, 394, 3410, 18, 19, 19412, 3677, 628, 3637, 326, 10734, 3410, 358, 1758, 12, 20, 13, 1335, 3970, 4237, 686, 3682, 3345, 8924, 6733, 18, 971, 1846, 2545, 358, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31309, 12, 2867, 389, 8443, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 389, 8443, 480, 1758, 12, 20, 3631, 203, 5411, 315, 10015, 264, 18927, 30, 848, 1338, 506, 5673, 3970, 4237, 686, 3682, 3345, 8924, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.8.0; contract Auction { // declare the data types to be used struct Item { uint8 itemId; // id of the item uint8 itemToken; // current token for this item. int8 personId; // the id of the person who offers the high...
the id of the person
uint8 personId;
12,949,618
[ 1, 5787, 612, 434, 326, 6175, 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, 0, 0, 0, 0, ...
[ 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, 0, 0, 0...
[ 1, 3639, 2254, 28, 6175, 548, 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/1/0x78C4Ad66795f61f534569fb16Bc3f4d22e03B1d6/sources/u.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract VE is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; mapping (address =...
5,002,435
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 776, 41, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203,...
// SPDX-License-Identifier: MIT /* $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$\ $$\ $$$$$$$$\ $$\ $$\ $$\ $$ __$$\ $$ __$$\ $$$\ $$ |$$ __$$\ $$ | $$ |$$ _____|$$ | $$$\ $$$ | $$ / \__|$$ / $$ |$$$$\ $$ |$$ | $$ |$$ | $$ |$$ | $$ | $$$$\ $$$$ | \$$$$$$\ $$$$$$$$ |$$ $$\$$ |$$...
* @dev See {IERC721-approve}./
function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve calle...
1,266
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 17, 12908, 537, 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, 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, 445, 6617, 537, 12, 2867, 358, 16, 2254, 5034, 1147, 548, 13, 1071, 5024, 3849, 288, 203, 3639, 1758, 3410, 273, 4232, 39, 27, 5340, 18, 8443, 951, 12, 2316, 548, 1769, 203, 3639, 2583, 12, 869, 480, 3410, 16, 315, 654, ...
./full_match/44787/0x0E7FdA608937489f410377745dAE331d14965bB0/sources/contracts/TokenRouter.sol
* @title SafeMath @dev Math operations with safety checks that throw on error/
library SafeMath { pragma solidity >=0.5.10; The MIT License (MIT) function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { if (_a == 0) { return 0; } c = _a * _b; require(c / _a == _b, "Overflow during multiplication."); return c; } ...
13,269,199
[ 1, 9890, 10477, 225, 2361, 5295, 598, 24179, 4271, 716, 604, 603, 555, 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, 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, 12083, 14060, 10477, 288, 203, 203, 203, 203, 683, 9454, 18035, 560, 1545, 20, 18, 25, 18, 2163, 31, 203, 1986, 490, 1285, 16832, 261, 6068, 13, 203, 203, 565, 445, 14064, 12, 11890, 5034, 389, 69, 16, 2254, 5034, 389, 70, 13, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControlEnumerableUpgradeable.sol"; import "./AccessControlUpgradeable.sol"; import "../utils/structs/EnumerableSetUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the ...
@dev Allow UUv2 Holders to claim UCD Rewards Update Last Claim
function claimRewards(uint256 tokenId) public { require( ownerOf(tokenId) == msg.sender, "UUv2: Claimant is not the owner!" ); uint256 amount = calculateRewards(tokenId); lastClaim[tokenId] = block.timestamp; CANDY_TOKEN.mint(msg.sender, amount); ...
457,314
[ 1, 7009, 587, 57, 90, 22, 670, 4665, 358, 7516, 587, 10160, 534, 359, 14727, 2315, 6825, 18381, 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, 7516, 17631, 14727, 12, 11890, 5034, 1147, 548, 13, 1071, 288, 203, 3639, 2583, 12, 203, 5411, 3410, 951, 12, 2316, 548, 13, 422, 1234, 18, 15330, 16, 203, 5411, 315, 57, 57, 90, 22, 30, 18381, 970, 353, 486, 326, 3...
/* * SPDX-License-Identifier: UNLICENSED * Copyright © 2021 Blocksquare d.o.o. */ pragma solidity ^0.6.12; import "./Ownable.sol"; interface DataStorageProxyHelpers { function hasSystemAdminRights(address addr) external view returns (bool); function getUserBytesFromWallet(address wallet) external view retur...
@notice retrieves government contract address
function getGovernmentAddress() public view returns (address) { return _government; }
13,576,551
[ 1, 14580, 3324, 314, 1643, 82, 475, 6835, 1758, 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, ...
[ 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, 565, 445, 7162, 1643, 82, 475, 1887, 1435, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 389, 75, 1643, 82, 475, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0x51D32FB6c763878F44f93907d7f88FD9eF370595/sources/ChronosCore.sol
@dev Defines base finance functionality for Chronos.
contract ChronosFinance is ChronosBase, PullPayment { uint256 public feePercentage = 2500; uint256 public gameStarterDividendPercentage = 1000; uint256 public price; uint256 public nextPrice; uint256 public prizePool; uint256 public wagerPool; function setGameSt...
4,400,217
[ 1, 15109, 1026, 574, 1359, 14176, 364, 13110, 538, 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, 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, 16351, 13110, 538, 6187, 1359, 353, 13110, 538, 2171, 16, 14899, 6032, 288, 203, 565, 2254, 5034, 1071, 14036, 16397, 273, 6969, 713, 31, 203, 377, 203, 565, 2254, 5034, 1071, 7920, 510, 14153, 7244, 26746, 16397, 273, 4336, 31, 20...
pragma solidity ^0.4.11; import "tokens/eip621/EIP621OraclizedToken.sol"; import "./Parameterizer.sol"; import "plcr-revival/PLCRVoting.sol"; import "zeppelin/math/SafeMath.sol"; contract Registry { // ------ // EVENTS // ------ event _Application(bytes32 indexed listingHash, uint deposit, uint appE...
Delete listing to prevent reentry
delete listings[_listingHash];
5,355,055
[ 1, 2613, 11591, 358, 5309, 283, 4099, 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, 0, 0, ...
[ 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, 0, 0...
[ 1, 3639, 1430, 666, 899, 63, 67, 21228, 2310, 15533, 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, -100, ...
./full_match/80001/0x9822C1FBe8e9669a36CA2621430eC717336630a7/sources/cnt.sol
CryptionNetworkToken with Governance.
contract CryptionNetworkToken is ERC20("CryptionNetworkToken", "CNT"), Ownable { constructor () public { uint256 initialSupply = 600000; } function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); ...
853,141
[ 1, 39, 4346, 3906, 1345, 598, 611, 1643, 82, 1359, 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, 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, 385, 4346, 3906, 1345, 353, 4232, 39, 3462, 2932, 39, 4346, 3906, 1345, 3113, 315, 39, 1784, 6, 3631, 14223, 6914, 288, 203, 203, 565, 3885, 1832, 1071, 288, 203, 3639, 2254, 5034, 2172, 3088, 1283, 273, 1666, 11706, 31, 2...
./partial_match/1/0x621E0209B3F1Ef88Dd98a82F639AC2bB7F211E35/sources/ENSRegistryImpl.sol
* @dev Transfers ownership of a node to a new address. May only be called by the current owner of the node. @param node The node to transfer ownership of. @param owner The address of the new owner./
function setOwner(bytes32 node, address owner) external override only_owner(node) { emit Transfer(node, owner); records[node].owner = owner; }
15,957,278
[ 1, 1429, 18881, 23178, 434, 279, 756, 358, 279, 394, 1758, 18, 16734, 1338, 506, 2566, 635, 326, 783, 3410, 434, 326, 756, 18, 225, 756, 1021, 756, 358, 7412, 23178, 434, 18, 225, 3410, 1021, 1758, 434, 326, 394, 3410, 18, 19, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 31309, 12, 3890, 1578, 756, 16, 1758, 3410, 13, 3903, 3849, 1338, 67, 8443, 12, 2159, 13, 288, 203, 3639, 3626, 12279, 12, 2159, 16, 3410, 1769, 203, 3639, 3853, 63, 2159, 8009, 8443, 273, 3410, 31, 203, 565, 289, 203...
./partial_match/56/0xCD1b77B83690D814Dc605a8d5B61cDB2f91d54BF/sources/MasterChef.sol
HoneyBar with Governance.
contract HoneyBar is BEP20('HoneyBand Token', 'HONEYBAND') { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } function burn(address _from ,uint256 _amount) public onlyOwner { _burn(_from, _amo...
11,062,214
[ 1, 44, 265, 402, 5190, 598, 611, 1643, 82, 1359, 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, 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, 670, 265, 402, 5190, 353, 9722, 52, 3462, 2668, 44, 265, 402, 14231, 3155, 2187, 296, 44, 673, 2602, 38, 4307, 6134, 288, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288,...
./full_match/9001/0xa5194E73D542ca15517f7805b879f7bFD9ec1B27/sources/contracts/BatchStreamer.sol
File contracts/libraries/TransferHelper.sol @notice Library to help safely transfer tokens and handle ETH wrapping and unwrapping of WETH
library TransferHelper { using SafeERC20 for IERC20; function transferTokens( address token, address from, address to, uint256 amount ) internal { uint256 priorBalance = IERC20(token).balanceOf(address(to)); require(IERC20(token).balanceOf(msg.sender) >= amount, 'THL01'); SafeERC20.sa...
11,534,279
[ 1, 812, 20092, 19, 31417, 19, 5912, 2276, 18, 18281, 225, 18694, 358, 2809, 15303, 7412, 2430, 471, 1640, 512, 2455, 14702, 471, 11014, 1382, 434, 678, 1584, 44, 2, 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, 12083, 12279, 2276, 288, 203, 225, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 225, 445, 7412, 5157, 12, 203, 565, 1758, 1147, 16, 203, 565, 1758, 628, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, ...
./full_match/80001/0xcA905F6466C253f8195b9940C819Ba32d273447d/sources/contracts/SettingsInternal.sol
* Get NFT Common Commission Rate*/
function getCommonRate() internal view virtual returns (uint256) { return getSettings().common_commission_rate; }
860,364
[ 1, 967, 423, 4464, 5658, 1286, 3951, 13025, 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, 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, 565, 445, 30863, 4727, 1435, 2713, 1476, 5024, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 18283, 7675, 6054, 67, 832, 3951, 67, 5141, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/** *Submitted for verification at Etherscan.io on 2021-04-12 */ // File: contracts\gsn\Context.sol pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data...
Mapping "collection" whitelist Mapping "asset" whitelist Mapping "collection" blacklist Mapping "asset" blacklist
contract ASH is Ownable, ERC20 { using RealMath for uint256; using Address for address; bytes4 private constant _ERC1155_RECEIVED = 0xf23a6e61; event CollectionWhitelist(address collection, bool status); event AssetWhitelist(address collection, uint256 assetId, bool status); event Collection...
15,284,294
[ 1, 3233, 315, 5548, 6, 10734, 9408, 315, 9406, 6, 10734, 9408, 315, 5548, 6, 11709, 9408, 315, 9406, 6, 11709, 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, 16351, 432, 2664, 353, 14223, 6914, 16, 4232, 39, 3462, 288, 203, 203, 565, 1450, 15987, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 1731, 24, 3238, 5381, 389, 654, 39, 2499, 2539, 67, 27086, ...
./full_match/1/0x1A1691e97FB05b3A2B8841f98e0486113De823A1/sources/AaveImportTakerV2.sol
solhint-disable-next-line func-name-mixedcase
function Log(address _contract, address _caller, string memory _logName, bytes memory _data) public { emit LogEvent(_contract, _caller, _logName, _data); }
4,994,729
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 1326, 17, 529, 17, 19562, 3593, 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, 1827, 12, 2867, 389, 16351, 16, 1758, 389, 16140, 16, 533, 3778, 389, 1330, 461, 16, 1731, 3778, 389, 892, 13, 203, 3639, 1071, 203, 565, 288, 203, 3639, 3626, 1827, 1133, 24899, 16351, 16, 389, 16140, 16, 389, 1330, ...