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
./partial_match/1313161554/0x964630b8327A6EB8730e3addcB8563d1e61b0100/sources/Comptroller.sol
* @notice Return address profit controller @return profitController/
function getProfitController() public view returns(address) { return profitController; }
16,919,469
[ 1, 990, 1758, 450, 7216, 2596, 327, 450, 7216, 2933, 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, 3570, 7216, 2933, 1435, 1071, 1476, 1135, 12, 2867, 13, 288, 203, 3639, 327, 450, 7216, 2933, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/11155111/0xB925899Df589e10c71F540eA92F5fC7b98552AAb/sources/src/tokens/SafeERC4626Upgradeable.sol
* Constructor for the SafeERC4626Upgradeable contract @param _asset which will be stored in this Vault @dev `defaultOperators` may be an empty array./
) internal onlyInitializing { __ERC4626_init(_asset, name_, symbol_, defaultOperators_); }
3,820,454
[ 1, 6293, 364, 326, 14060, 654, 39, 8749, 5558, 10784, 429, 6835, 225, 389, 9406, 1492, 903, 506, 4041, 316, 333, 17329, 225, 1375, 1886, 24473, 68, 2026, 506, 392, 1008, 526, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 2713, 1338, 29782, 288, 203, 3639, 1001, 654, 39, 8749, 5558, 67, 2738, 24899, 9406, 16, 508, 67, 16, 3273, 67, 16, 805, 24473, 67, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/80001/0x2707e98272b558d1a9d5BBa8feE22e6e22389cB3/sources/contracts/ERC721.sol
Same Account Purchase Not Allowed
require(msg.sender != _ownerOf(iToken), "Not Allowed");
9,473,492
[ 1, 8650, 6590, 26552, 2288, 16740, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 2583, 12, 3576, 18, 15330, 480, 389, 8443, 951, 12, 77, 1345, 3631, 315, 1248, 16740, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.18; interface ConflictResolutionInterface { function minHouseStake(uint activeGames) public pure returns(uint); function maxBalance() public pure returns(int); function isValidBet(uint8 _gameType, uint _betNum, uint _betValue) public pure returns(bool); function endGameConflict(...
* @dev Calculate winner of game type 2 (roll higher). @param _randomNum 256 bit random number. @param _betNum Bet number. @return True if player has won false if he lost./
function calculateWinnerGameType2(uint _randomNum, uint _betNum) private pure returns(bool) { assert(_betNum >= 0 && _betNum < DICE_RANGE - 1); return resultNum > _betNum; }
421,045
[ 1, 8695, 5657, 1224, 434, 7920, 618, 576, 261, 2693, 10478, 2934, 225, 389, 9188, 2578, 8303, 2831, 2744, 1300, 18, 225, 389, 70, 278, 2578, 605, 278, 1300, 18, 327, 1053, 309, 7291, 711, 8462, 629, 309, 3904, 13557, 18, 19, 2, 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, 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, 4604, 59, 7872, 12496, 559, 22, 12, 11890, 389, 9188, 2578, 16, 2254, 389, 70, 278, 2578, 13, 3238, 16618, 1135, 12, 6430, 13, 288, 203, 3639, 1815, 24899, 70, 278, 2578, 1545, 374, 597, 389, 70, 278, 2578, 411, 3690,...
./full_match/80001/0x8D2C372317524a8Af5313883434411fd3DAE55d9/sources/contracts/lib/Verifiers.sol
Ensure that the signature for the digest is valid for the offerer.
_assertValidSignature(offerer, digest, signature);
877,949
[ 1, 12512, 716, 326, 3372, 364, 326, 5403, 353, 923, 364, 326, 10067, 264, 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, ...
[ 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, 3639, 389, 11231, 1556, 5374, 12, 792, 18459, 16, 5403, 16, 3372, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity >=0.5.0; //Inheritance import './interfaces/IStableCoinReserve.sol'; // Libraries import "./libraries/SafeMath.sol"; // Internal references import "./interfaces/IERC20.sol"; import "./interfaces/IAddressResolver.sol"; import "./interfaces/ISettings.sol"; import "./interfaces/IInsuranceFund.sol"; impo...
* @dev Adds liquidity for the two given tokens @param tokenA First token in pair @param tokenB Second token in pair @param amountA Amount of first token @param amountB Amount of second token @param farmAddress The token pair's farm address on Ubeswap @return Number of LP tokens received/Check if farm exists for the tok...
function addLiquidity(address tokenA, address tokenB, uint amountA, uint amountB, address farmAddress) public override onlyLToken returns (uint) { require(tokenA != address(0), "StableCoinStakingRewards: invalid address for tokenA"); require(tokenB != address(0), "StableCoinStakingRewards: invalid a...
13,077,561
[ 1, 3655, 4501, 372, 24237, 364, 326, 2795, 864, 2430, 225, 1147, 37, 5783, 1147, 316, 3082, 225, 1147, 38, 7631, 1147, 316, 3082, 225, 3844, 37, 16811, 434, 1122, 1147, 225, 3844, 38, 16811, 434, 2205, 1147, 225, 284, 4610, 1887, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 48, 18988, 24237, 12, 2867, 1147, 37, 16, 1758, 1147, 38, 16, 2254, 3844, 37, 16, 2254, 3844, 38, 16, 1758, 284, 4610, 1887, 13, 1071, 3849, 1338, 48, 1345, 1135, 261, 11890, 13, 288, 203, 3639, 2583, 12, 2316, ...
./full_match/4/0x9358b0d0bFb2e0f01C2F3D827b0E82e1B2103847/sources/browser/Yop.sol
12% for private and public ICO
uint256 public tokenSale = maxCap * 27 / 100;
675,953
[ 1, 2138, 9, 364, 3238, 471, 1071, 467, 3865, 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, 2254, 5034, 1071, 1147, 30746, 273, 943, 4664, 380, 12732, 342, 2130, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.7.0; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { TokenInterface } from "../../common/interfaces.sol"; import { Helpers } from "./helpers.sol"; import { Events } from "./events.sol"; abstract contract LiquidityManage is Helpers, Events { /** * @dev Dep...
* @dev Return Token Liquidity from InstaPool and Transfer 20% of Collected Fee to `origin`. @param origin origin address to transfer 20% of the collected fee. @param token token address.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) @param getId Get token amount at this ID from `InstaMemory` Contract. @param set...
function flashPaybackOrigin( address origin, address token, uint getId, uint setId ) external payable returns (string memory _eventName, bytes memory _eventParam) { require(origin != address(0), "origin-is-address(0)"); uint _amt = instaPool.borrowedToken(token); ...
13,013,520
[ 1, 990, 3155, 511, 18988, 24237, 628, 13448, 69, 2864, 471, 12279, 4200, 9, 434, 9302, 329, 30174, 358, 1375, 10012, 8338, 225, 4026, 4026, 1758, 358, 7412, 4200, 9, 434, 326, 12230, 14036, 18, 225, 1147, 1147, 1758, 18, 12, 1290, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 9563, 9148, 823, 7571, 12, 203, 3639, 1758, 4026, 16, 203, 3639, 1758, 1147, 16, 203, 3639, 2254, 2634, 16, 203, 3639, 2254, 10446, 203, 565, 262, 3903, 8843, 429, 1135, 261, 1080, 3778, 389, 2575, 461, 16, 1731, 3778, ...
./full_match/1/0xb57F2CDEd6532E24807EE9DD4e139b5C849D9e13/sources/MovieBuddy.sol
--- ERC20 Data --- --- Math ---
contract MovieBuddy is Ownable { bool public EmergencyReversalEnabled = true; string public constant name = "Movie Buddy"; string public constant symbol = "MOVIEBUDDY"; string public constant version = "1"; uint8 public constant decimals = 18; uint256 public totalSupply; m...
3,870,578
[ 1, 6062, 4232, 39, 3462, 1910, 9948, 9948, 2361, 9948, 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, 26963, 38, 29017, 353, 225, 14223, 6914, 288, 203, 27699, 565, 1426, 1071, 512, 6592, 75, 2075, 426, 2496, 287, 1526, 273, 638, 31, 203, 203, 565, 533, 225, 1071, 5381, 508, 377, 273, 315, 16727, 13120, 605, 29017, 14432, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./spec_interfaces/IElections.sol"; import "./spec_interfaces/IDelegations.sol"; import "./spec_interfaces/IGuardiansRegistration.sol"; import "./spec_interfaces/ICommittee.sol"; import "./spec_interfac...
Returns the governance voteOut status of a guardian. @dev A guardian is voted out if votedStake / totalDelegatedStake (in percent mille) > threshold @param subject is the subject guardian address @return votedOut indicates whether the subject was voted out @return votedStake is the total stake voting against the subje...
function getVoteOutStatus(address subject) external override view returns (bool votedOut, uint votedStake, uint totalDelegatedStake) { votedOut = isVotedOut(subject); votedStake = accumulatedStakesForVoteOut[subject]; totalDelegatedStake = delegationsContract.getTotalDelegatedStake(); }
7,296,635
[ 1, 1356, 326, 314, 1643, 82, 1359, 12501, 1182, 1267, 434, 279, 11026, 2779, 18, 225, 432, 11026, 2779, 353, 331, 16474, 596, 309, 331, 16474, 510, 911, 342, 2078, 15608, 690, 510, 911, 261, 267, 5551, 312, 14120, 13, 405, 5573, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11031, 1168, 1182, 1482, 12, 2867, 3221, 13, 3903, 3849, 1476, 1135, 261, 6430, 331, 16474, 1182, 16, 2254, 331, 16474, 510, 911, 16, 2254, 2078, 15608, 690, 510, 911, 13, 288, 203, 202, 202, 90, 16474, 1182, 273, 353, ...
./full_match/1/0x6678dB39984abbEF5489735c277564C5b7b9835D/sources/contracts/DeadWillRise.sol
key = ERC-721 collection address, value = group number
mapping(address => uint256) public groupNumbers;
3,155,279
[ 1, 856, 273, 4232, 39, 17, 27, 5340, 1849, 1758, 16, 460, 273, 1041, 1300, 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, 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, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 1041, 10072, 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, -1...
pragma solidity 0.4.18; /// @title Ownable /// @dev The Ownable contract has an owner address, and provides basic authorization control functions, /// this simplifies the implementation of "user permissions". /// @dev Based on OpenZeppelin's Ownable. contract Ownable { address public owner; address p...
@dev Grant tokens to a specified address. @param _to address The holder address. @param _start uint256 The beginning of the vesting period (timestamp). @param _cliff uint256 When the first installment is made (timestamp). @param _end uint256 The end of the vesting period (timestamp). @param _installmentLength uint256 ...
function grant(address _to, uint256 _start, uint256 _cliff, uint256 _end, uint256 _installmentLength, bool _revokable) external onlyTokenOwner tokenPayable { require(_to != address(0)); uint256 value = tkn.value; require(value > 0); require(grants[_to].value == 0)...
1,083,109
[ 1, 9021, 2430, 358, 279, 1269, 1758, 18, 225, 389, 869, 1758, 1021, 10438, 1758, 18, 225, 389, 1937, 2254, 5034, 1021, 8435, 434, 326, 331, 10100, 3879, 261, 5508, 2934, 225, 389, 830, 3048, 2254, 5034, 5203, 326, 1122, 3799, 475, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7936, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1937, 16, 2254, 5034, 389, 830, 3048, 16, 2254, 5034, 389, 409, 16, 203, 3639, 2254, 5034, 389, 5425, 475, 1782, 16, 1426, 389, 9083, 601, 429, 13, 203, 3639, 3903, 1338,...
./partial_match/1/0x36afc7E590Bf5cBe512d2B3BFEe03B2E96bD4Abc/sources/X2Token.sol
* @dev Returns the amsousntacbaoubnt of tokens owned by `acbaoubnt`./
function camsousnt(address acbaoubnt) public view returns (uint256) { return _crossamsousnts[acbaoubnt]; }
2,844,692
[ 1, 1356, 326, 279, 959, 1481, 496, 1077, 70, 6033, 373, 496, 434, 2430, 16199, 635, 1375, 1077, 70, 6033, 373, 496, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5861, 87, 1481, 496, 12, 2867, 1721, 70, 6033, 373, 496, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 14653, 301, 87, 1481, 27932, 63, 1077, 70, 6033, 373, 496, 15533, 203, 565, 289, 203, 2, ...
./full_match/42220/0x6Fbd4a4A602c8B564028a10D16e1deA8E67eD11e/sources/project_/contracts/ReserveController.sol
poolAddress mapped to reserve token
mapping(address => address) pools;
16,325,156
[ 1, 6011, 1887, 5525, 358, 20501, 1147, 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, 2874, 12, 2867, 516, 1758, 13, 16000, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
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 ch...
@dev triggers some state changes based on current time @param _client optional refund parameter @param _payment optional refund parameter @param _currency currency note: function body could be skipped!
modifier timedStateChange(address _client, uint _payment, PriceUpdaterInterface.Currency _currency) { if (SaleState.INIT == state && getTime() >= openingTime) { changeState(SaleState.ACTIVE); } if ((state == SaleState.ACTIVE || state == SaleState.SOFT_CAP_REACHED) && getTime() >= closingTime) { ...
975,695
[ 1, 313, 8060, 2690, 919, 3478, 2511, 603, 783, 813, 225, 389, 2625, 3129, 16255, 1569, 225, 389, 9261, 3129, 16255, 1569, 225, 389, 7095, 5462, 4721, 30, 445, 1417, 3377, 506, 9700, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 7491, 22505, 12, 2867, 389, 2625, 16, 2254, 389, 9261, 16, 20137, 15305, 1358, 18, 7623, 389, 7095, 13, 288, 203, 565, 309, 261, 30746, 1119, 18, 12919, 422, 919, 597, 6135, 1435, 1545, 10890, 950, 13, 288, 203, 1377, ...
pragma solidity >=0.5.0; //Libraries import './libraries/SafeMath.sol'; //Interfaces import './interfaces/IStrategyToken.sol'; import './interfaces/ITradingBot.sol'; import './interfaces/IIndicator.sol'; import './interfaces/IComparator.sol'; import './interfaces/IERC20.sol'; import './interfaces/IAddressResolver.sol...
* @dev Places an order to buy/sell the bot's underling asset @param buyOrSell Whether the order represents buying or selling @return (uint, uint) Number of tokens received and the price executed/buying
function _placeOrder(bool buyOrSell) private returns (uint, uint) { address settingsAddress = ADDRESS_RESOLVER.getContractAddress("Settings"); address baseUbeswapAdapterAddress = ADDRESS_RESOLVER.getContractAddress("BaseUbeswapAdapter"); address stableCoinAddress = ISettings(settingsAddress)...
1,807,589
[ 1, 24791, 392, 1353, 358, 30143, 19, 87, 1165, 326, 2512, 1807, 3613, 2456, 3310, 225, 30143, 1162, 55, 1165, 17403, 326, 1353, 8686, 30143, 310, 578, 357, 2456, 327, 261, 11890, 16, 2254, 13, 3588, 434, 2430, 5079, 471, 326, 6205, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 964, 2448, 12, 6430, 30143, 1162, 55, 1165, 13, 3238, 1135, 261, 11890, 16, 2254, 13, 288, 203, 3639, 1758, 1947, 1887, 273, 11689, 10203, 67, 17978, 2204, 18, 588, 8924, 1887, 2932, 2628, 8863, 203, 3639, 1758, 10...
pragma solidity ^0.4.21; // <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016 Oraclize LTD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including...
Allow to finish loyalty part and start Presale part by owner
function startPresale() external onlyOwner { loyaltyPart = false; startPresaleTime = block.number; }
10,188,743
[ 1, 7009, 358, 4076, 437, 93, 15006, 1087, 471, 787, 18346, 5349, 1087, 635, 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, 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, 787, 12236, 5349, 1435, 3903, 1338, 5541, 288, 203, 3639, 437, 93, 15006, 1988, 273, 629, 31, 203, 3639, 787, 12236, 5349, 950, 273, 1203, 18, 2696, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "./Factory.sol"; import "./Cryptoitem.sol"; import "./CryptoitemLootBox.sol"; import "./Strings.sol"; contract CryptoitemFactory is Factory, Ownable { using Strings for string; address public proxyRegistryAddress; a...
Must be sent from the owner proxy or owner.
function mint(uint256 _optionId, address _toAddress) public { ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); assert(proxyRegistry.proxies(owner) == msg.sender || owner == msg.sender || msg.sender == lootBoxNftAddress); if (true) { require(canMint(_optionId)); } Cr...
1,780,766
[ 1, 10136, 506, 3271, 628, 326, 3410, 2889, 578, 3410, 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, 225, 445, 312, 474, 12, 11890, 5034, 389, 3482, 548, 16, 1758, 389, 869, 1887, 13, 1071, 288, 203, 565, 7659, 4243, 2889, 4243, 273, 7659, 4243, 12, 5656, 4243, 1887, 1769, 203, 565, 1815, 12, 5656, 4243, 18, 20314, 606, 12, 84...
pragma solidity ^0.4.21; /* Functions from Kitten Coin main contract to be used by sale contract */ contract KittenCoin { function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); } contract Token { function balanceOf(address who...
set initial donator reward to 100 Kitten Coins from 1 wei
donatorReward[0]=[1,10000000000];
10,497,836
[ 1, 542, 2172, 2727, 639, 19890, 358, 2130, 1475, 305, 2253, 385, 9896, 628, 404, 732, 77, 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, 3639, 2727, 639, 17631, 1060, 63, 20, 65, 22850, 21, 16, 23899, 9449, 15533, 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, -1...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@acala-network/contracts/oracle/IOracle.sol"; import "@acala-network/contracts/schedule/ISchedule.sol"; import "@acala-network/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @title Advance option contra...
Seller locks the asset in option. Seller should approve before creating options.
IERC20(asset).transferFrom(msg.sender, address(this), amount);
12,632,966
[ 1, 22050, 13046, 326, 3310, 316, 1456, 18, 4352, 749, 1410, 6617, 537, 1865, 4979, 702, 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, ...
[ 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, 3639, 467, 654, 39, 3462, 12, 9406, 2934, 13866, 1265, 12, 3576, 18, 15330, 16, 1758, 12, 2211, 3631, 3844, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//Address: 0x5afc0b82bd845f20804e42ec049bee8e17fa9700 //Contract name: CevacToken //Balance: 0 Ether //Verification Date: 6/11/2018 //Transacion Count: 2 // CODE STARTS HERE pragma solidity ^0.4.11; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control *...
change the funding end block
function changeEndBlock(uint256 _newFundingEndBlock) public onlyOwner{ fundingEndBlock = _newFundingEndBlock; }
14,076,494
[ 1, 3427, 326, 22058, 679, 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, 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, 2549, 1638, 1768, 12, 11890, 5034, 389, 2704, 42, 14351, 1638, 1768, 13, 1071, 1338, 5541, 95, 203, 3639, 22058, 1638, 1768, 273, 389, 2704, 42, 14351, 1638, 1768, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100,...
./partial_match/4/0xBBd30514cEf49Ca21332D856fBab1Db7E8024B48/sources/QuotaDelegate.sol
@dev deposit rate use for deposit amount calculate
uint public depositRate;
8,608,702
[ 1, 323, 1724, 4993, 999, 364, 443, 1724, 3844, 4604, 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, 565, 2254, 1071, 443, 1724, 4727, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x6f9140097Ab6278B41Cf9597a597030207b8D75d/sources/lib/seaport-core/src/lib/CriteriaResolution.sol
* @dev Internal pure function to update a criteria item. @param offer The offer containing the item to update. @param componentIndex The index of the item to update. @param criteriaResolver The criteria resolver to use to update the item./ Retrieve relevant item using the component index. Read item type...
function _updateCriteriaItem( OfferItem[] memory offer, uint256 componentIndex, CriteriaResolver memory criteriaResolver ) internal pure { OfferItem memory offerItem = offer[componentIndex]; ItemType itemType = offerItem.itemType; if (!_isItemWithCriteria(itemTy...
9,676,341
[ 1, 3061, 16618, 445, 358, 1089, 279, 3582, 761, 18, 225, 10067, 2398, 1021, 10067, 4191, 326, 761, 358, 1089, 18, 225, 1794, 1016, 565, 1021, 770, 434, 326, 761, 358, 1089, 18, 225, 3582, 4301, 225, 1021, 3582, 5039, 358, 999, 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, 565, 445, 389, 2725, 7231, 1180, 12, 203, 3639, 25753, 1180, 8526, 3778, 10067, 16, 203, 3639, 2254, 5034, 1794, 1016, 16, 203, 3639, 8356, 4301, 3778, 3582, 4301, 203, 565, 262, 2713, 16618, 288, 203, 3639, 25753, 1180, 3778, 1006...
./partial_match/1/0x74b2a6eCc225dc85af74b5Ea12C8f26Fba86c571/sources/contracts/libraries/BytesLibrary.sol
* @dev Replace the address at the given location in a byte array if the contents at that location match the expected address./ An address is 20 bytes long
{ bytes memory expectedData = abi.encodePacked(expectedAddress); bytes memory newData = abi.encodePacked(newAddress); for (uint256 i = 0; i < 20; i++) { uint256 dataLocation = startLocation + i; require(data[dataLocation] == expectedData[i], "Bytes: Data provided does...
4,114,224
[ 1, 5729, 326, 1758, 622, 326, 864, 2117, 316, 279, 1160, 526, 309, 326, 2939, 622, 716, 2117, 845, 326, 2665, 1758, 18, 19, 1922, 1758, 353, 4200, 1731, 1525, 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, 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, 288, 203, 3639, 1731, 3778, 2665, 751, 273, 24126, 18, 3015, 4420, 329, 12, 3825, 1887, 1769, 203, 3639, 1731, 3778, 16026, 273, 24126, 18, 3015, 4420, 329, 12, 2704, 1887, 1769, 203, 3639, 364, 261, 11890, 5034, 277, 273, 3...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./ERC20.sol"; import "./Dubi.sol"; import "./IHodl.sol"; import "./MintMath.sol"; contract Purpose is ERC20 { // The DUBI contract, required for auto-minting DUBI on burn. Dubi private immutable _dubi; // Th...
Check if sender has enough tokens
uint96 transferAmount = uint96(amount);
491,295
[ 1, 1564, 309, 5793, 711, 7304, 2430, 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, 2254, 10525, 7412, 6275, 273, 2254, 10525, 12, 8949, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/56/0x7fF40BAeFDFC4D776AcD69F33c839151070534FA/sources/contracts/MTCRewardContract_prod_02102023.sol
Check available amount Transfer tokens to the user
function claimN(uint256 _amount) external nonReentrant { address account = msg.sender; require(_amount > 0, string(abi.encodePacked("Amount must be greater than zero. Amount was: ", uint256ToString(_amount)))); uint256 amountInWei = _amount.mul(DECIMALS); uint256 accountBalance = ac...
3,254,279
[ 1, 1564, 2319, 3844, 12279, 2430, 358, 326, 729, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7516, 50, 12, 11890, 5034, 389, 8949, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 1758, 2236, 273, 1234, 18, 15330, 31, 203, 3639, 2583, 24899, 8949, 405, 374, 16, 533, 12, 21457, 18, 3015, 4420, 329, 2932, 6275, ...
/** *Submitted for verification at Etherscan.io on 2022-04-20 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ...
* @dev helper method get secondary BPS into array form/
function _ownerBPS() internal view returns (uint256[] memory) { uint256[] memory ownerBPS = new uint256[](1); ownerBPS[0] = splits.ownerRoyaltyBPS; return ownerBPS; }
6,735,448
[ 1, 4759, 707, 336, 9946, 605, 5857, 1368, 526, 646, 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, 389, 8443, 38, 5857, 1435, 2713, 1476, 1135, 261, 11890, 5034, 8526, 3778, 13, 288, 203, 3639, 2254, 5034, 8526, 3778, 3410, 38, 5857, 273, 394, 2254, 5034, 8526, 12, 21, 1769, 203, 3639, 3410, 38, 5857, 63, 20, 65, 2...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import { IFarmt...
withdrawas funds in contract to Farmtroller to be invested
function withdraw() external onlyOwner { uint balance = address(this).balance; payable(address(Farmtroller)).transfer(balance); }
5,401,076
[ 1, 1918, 9446, 345, 284, 19156, 316, 6835, 358, 478, 297, 1010, 1539, 358, 506, 2198, 3149, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1435, 3903, 1338, 5541, 288, 203, 3639, 2254, 11013, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 3639, 8843, 429, 12, 2867, 12, 17393, 1010, 1539, 13, 2934, 13866, 12, 12296, 1769, 203, 565, 289, 203, 203, 2, ...
// File: @chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol // SPDX-License-Identifier: MIT pragma solidity 0.6.8; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view...
* @notice convert CAD amount to USDT amount @param amount amount of CAD in 18 decimal places @return amount of USDT in 6 decimal places/
function cadToUsdt(uint256 amount) external view virtual override returns (uint256) { (, int256 usdtEthPrice, , uint256 usdtEthTimeStamp,) = usdtEthPriceFeed.latestRoundData(); require(usdtEthTimeStamp > 0, "USDT Chainlink Oracle data temporarily incomplete"); require(usdtEthPrice > 0, "Inva...
295,939
[ 1, 6283, 385, 1880, 3844, 358, 11836, 9081, 3844, 225, 3844, 377, 3844, 434, 385, 1880, 316, 6549, 6970, 12576, 327, 3844, 434, 11836, 9081, 316, 1666, 6970, 12576, 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, 565, 445, 28451, 774, 3477, 7510, 12, 11890, 5034, 3844, 13, 3903, 1476, 5024, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 261, 16, 509, 5034, 584, 7510, 41, 451, 5147, 16, 269, 2254, 5034, 584, 7510, 41, 451, 21536, 16, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.1; pragma experimental ABIEncoderV2; import "./TransferDefinition.sol"; /// @title HashlockTransfer /// @author Connext <support@connext.network> /// @notice This contract allows users to claim a payment locked in /// the application if they provide ...
Decode parameters Valid transfer state
function create(bytes calldata encodedBalance, bytes calldata encodedState) external view override returns (bool) { TransferState memory state = abi.decode(encodedState, (TransferState)); Balance memory balance = abi.decode(encodedBalance, (Balance)); req...
957,983
[ 1, 6615, 1472, 2364, 7412, 919, 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, 752, 12, 3890, 745, 892, 3749, 13937, 16, 1731, 745, 892, 3749, 1119, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 12279, 1119, 3778, 919, 273, 24126, ...
/** *Submitted for verification at Etherscan.io on 2021-10-21 */ /** *Submitted for verification at Etherscan.io on 2021-10-03 */ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; // Contract logic @ line 607 interface IOwnable { function policy() external view returns (address); function ...
* @notice get asset price from chainlink/
function assetPrice() public view returns (int) { ( , int price, , , ) = priceFeed.latestRoundData(); return price; }
515,718
[ 1, 588, 3310, 6205, 628, 2687, 1232, 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, 3310, 5147, 1435, 1071, 1476, 1135, 261, 474, 13, 288, 203, 3639, 261, 269, 509, 6205, 16, 269, 269, 262, 273, 6205, 8141, 18, 13550, 11066, 751, 5621, 203, 3639, 327, 6205, 31, 203, 565, 289, 203, 2, -100, -100, -100...
./full_match/97/0xEa4a3Dbaa54d98757E68FAC3d5f1b0d0C0DF9B11/sources/project_/contracts/BakaCoin.sol
_mint(AIRDROP_ADDRESS_1, MAX_AIR_DROP_ROUND_1); _mint(AIRDROP_ADDRESS_2, MAX_AIR_DROP_ROUND_2); _mint(AIRDROP_ADDRESS_3, MAX_AIR_DROP_ROUND_3); _mint(AIRDROP_ADDRESS_4, MAX_AIR_DROP_ROUND_4);
constructor() ERC20("BakaCoin", "BAKA") { _mint(AIRDROP_ADDRESS, MAX_TOTAL_AIR_DROP + MAX_TOTAL_LIQUID); _mint(LP_ADDRESS, MAX_TOTAL_SUPPLY - MAX_TOTAL_AIR_DROP - MAX_TOTAL_LIQUID); setAddressForMarketing(0xD270D2Dd7A58bDbb7D5673b3ba29Ba69CE176c69); setSupport(0xD270D2Dd7A58bDbb7D56...
3,290,532
[ 1, 67, 81, 474, 12, 37, 7937, 18768, 67, 15140, 67, 21, 16, 4552, 67, 37, 7937, 67, 18768, 67, 15092, 67, 21, 1769, 389, 81, 474, 12, 37, 7937, 18768, 67, 15140, 67, 22, 16, 4552, 67, 37, 7937, 67, 18768, 67, 15092, 67, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 1435, 4232, 39, 3462, 2932, 38, 581, 69, 27055, 3113, 315, 12536, 47, 37, 7923, 288, 203, 3639, 389, 81, 474, 12, 37, 7937, 18768, 67, 15140, 16, 4552, 67, 28624, 67, 37, 7937, 67, 18768, 397, 4552, 67, 28624, 67, ...
./partial_match/4/0xC2c08CeE7B15869B4AC336BE0925540b0ae75bc9/sources/MultiCollateralSynth.sol
* @notice _transferToFeeAddress function non-dUSD synths are exchanged into dUSD via synthInitiatedExchange notify feePool to record amount as fee paid to feePool / dUSD can be transferred to FEE_ADDRESS directly else exchange synth into dUSD and send to FEE_ADDRESS
function _transferToFeeAddress(address to, uint256 value) internal returns (bool) { uint256 amountInUSD; if (currencyKey == "dUSD") { amountInUSD = value; super._internalTransfer(messageSender, to, value); amountInUSD = exchanger().exchange( ...
8,589,759
[ 1, 67, 13866, 774, 14667, 1887, 445, 1661, 17, 72, 3378, 40, 6194, 451, 87, 854, 431, 6703, 1368, 302, 3378, 40, 3970, 6194, 451, 2570, 10206, 11688, 5066, 14036, 2864, 358, 1409, 3844, 487, 14036, 30591, 358, 14036, 2864, 342, 302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13866, 774, 14667, 1887, 12, 2867, 358, 16, 2254, 5034, 460, 13, 203, 3639, 2713, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2254, 5034, 3844, 382, 3378, 40, 31, 203, 203, 3639, 309, 261, 7095, 653...
/** *Submitted for verification at Etherscan.io on 2021-01-15 */ // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ ...
All pairs: {ETH <-> ERC20 Token}
interface ICoFiXRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address token, uint amountETH, uint amountToken, uint liquidityMin, address to, uint deadline ) external ...
15,175,242
[ 1, 1595, 5574, 30, 288, 1584, 44, 411, 2122, 4232, 39, 3462, 3155, 97, 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, 5831, 467, 4249, 42, 77, 60, 8259, 288, 203, 565, 445, 3272, 1435, 3903, 16618, 1135, 261, 2867, 1769, 203, 565, 445, 678, 1584, 44, 1435, 3903, 16618, 1135, 261, 2867, 1769, 203, 203, 203, 565, 445, 527, 48, 18988, 24237, 12, ...
pragma solidity ^0.4.19; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed pre...
* @dev The external function to get all the relevant information about a specific dungeon by its ID. @param _id The ID of the dungeon./ Didn't get the "floorCreationTime" because of Stack Too Deep error. Dungeon is ready to be challenged (not in preparation mode).
function getDungeonDetails(uint _id) external view returns (uint creationTime, uint status, uint difficulty, uint capacity, bool isReady, uint playerCount) { require(_id < dungeonTokenContract.totalSupply()); (creationTime, status, difficulty, capacity,,,,,) = dungeonTokenContract.dungeons(_id); ...
12,714,706
[ 1, 1986, 3903, 445, 358, 336, 777, 326, 9368, 1779, 2973, 279, 2923, 302, 25561, 265, 635, 2097, 1599, 18, 225, 389, 350, 1021, 1599, 434, 326, 302, 25561, 265, 18, 19, 21148, 82, 1404, 336, 326, 315, 74, 5807, 29746, 6, 2724, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2343, 25561, 265, 3790, 12, 11890, 389, 350, 13, 3903, 1476, 1135, 261, 11890, 6710, 950, 16, 2254, 1267, 16, 2254, 3122, 21934, 16, 2254, 7519, 16, 1426, 353, 8367, 16, 2254, 7291, 1380, 13, 288, 203, 3639, 2583, 24899...
./partial_match/1/0x8053DA7eb0014c65275fC099C7a7e0d9a5616863/sources/TetherToken_interface.sol
function transfer(address _to, uint256 _value) public virtual returns (bool); function transferFrom(address _from, address _to, uint _value) public virtual returns (bool); Tether format
abstract contract TetherToken_interface { function name() public view virtual returns (string memory); function symbol() public view virtual returns (string memory); function decimals() public view virtual returns (uint8); function owner() public view virtual returns (address); function balanceOf(a...
2,637,391
[ 1, 915, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 5024, 1135, 261, 6430, 1769, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 389, 1132, 13, 1071, 5024, 1135, 261, 6430, 1769, 399, 2437, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17801, 6835, 399, 2437, 1345, 67, 5831, 288, 203, 565, 445, 508, 1435, 1071, 1476, 5024, 1135, 261, 1080, 3778, 1769, 203, 565, 445, 3273, 1435, 1071, 1476, 5024, 1135, 261, 1080, 3778, 1769, 203, 565, 445, 15105, 1435, 1071, 1476,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IBallerBars.sol"; // FIXME: link to ChainsLibrary.sol sin...
* @dev Helper function to reduce pixel size within contract/
function letterToNumber(string memory _inputLetter) internal view returns (uint8) { for (uint8 i = 0; i < LETTERS.length; i++) { if ( keccak256(abi.encodePacked((LETTERS[i]))) == keccak256(abi.encodePacked((_inputLetter))) )...
406,193
[ 1, 2276, 445, 358, 5459, 4957, 963, 3470, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 565, 445, 9471, 774, 1854, 12, 1080, 3778, 389, 2630, 13938, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 28, 13, 203, 565, 288, 203, 3639, 364, 261, 11890, 28, 277, 273, 374, 31, 277, 411, 5380, 1470, 113...
./partial_match/42220/0x1EC3366D384ee7996F2F70B67A65C5d54Ce96040/sources/home/eruiz/Projects/celo/celo-monorepo/packages/protocol/contracts/identity/Attestations.sol
* @notice Returns the unselected attestation request for an identifier/account pair, if any. @param identifier Hash of the identifier. @param account Address of the account. @return [ Block number at which was requested, Number of unselected requests, Address of the token with which this a...
function getUnselectedRequest(bytes32 identifier, address account) external view returns (uint32, uint32, address) { return ( identifiers[identifier].unselectedRequests[account].blockNumber, identifiers[identifier].unselectedRequests[account].attestationsRequested, identifiers[iden...
3,499,739
[ 1, 1356, 326, 640, 8109, 2403, 395, 367, 590, 364, 392, 2756, 19, 4631, 3082, 16, 309, 1281, 18, 225, 2756, 2474, 434, 326, 2756, 18, 225, 2236, 5267, 434, 326, 2236, 18, 327, 306, 6647, 3914, 1300, 622, 1492, 1703, 3764, 16, 6647...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10833, 8109, 691, 12, 3890, 1578, 2756, 16, 1758, 2236, 13, 203, 565, 3903, 203, 565, 1476, 203, 565, 1135, 261, 11890, 1578, 16, 2254, 1578, 16, 1758, 13, 203, 225, 288, 203, 565, 327, 261, 203, 1377, 9863, 63, 5644,...
pragma solidity ^0.4.20; /* * Team JUST presents.. pofomofud * ====================================* * _____ _ _ _ _____ * *| _ |___| | | | | | * *| __| . | | | | | | * *|__| |___|_____| | | * * * * ==============...
* Transfer tokens from the caller to a new holder. Remember, there&#39;s a 10% fee here as well./ setup make sure we have the requested tokens also disables transfers until ambassador phase is over ( we dont want whale premines ) withdraw all outstanding dividends first liquify 10% of the tokens that are transfered the...
function transfer(address _toAddress, uint256 _amountOfTokens) onlyBagholders() sell_timestamp() public returns(bool) { address _customerAddress = msg.sender; require(!onlyAmbassadors && _amountOfTokens <= tokenBalanceLedger_[_customerAddress]); ...
6,492,874
[ 1, 5912, 2430, 628, 326, 4894, 358, 279, 394, 10438, 18, 23133, 16, 1915, 10, 5520, 31, 87, 279, 1728, 9, 14036, 2674, 487, 5492, 18, 19, 3875, 1221, 3071, 732, 1240, 326, 3764, 2430, 2546, 24960, 29375, 3180, 13232, 428, 23671, 685...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2867, 389, 869, 1887, 16, 2254, 5034, 389, 8949, 951, 5157, 13, 203, 3639, 1338, 5013, 9000, 1435, 203, 3639, 357, 80, 67, 5508, 1435, 203, 3639, 1071, 203, 3639, 1135, 12, 6430, 13, 203, 565, 288, 203, 3639...
pragma solidity >=0.5.8; // ---------------------------------------------------------------------------- // Entity: Dragon Den // Token Name: Matter // symbol: MTR // MaxSupply: 433494437 // Mintable Chunk: 1000 // Authored By: Baxter Finch, Lance Rogers & Eric Tesenair // Description...
@notice set mintHour @notice must be contract owner @param newMintHour An hour from 1-23 UTC where minting will be alloud to occur/
function setMintHour(uint8 newMintHour) public onlyOwner returns (bool success) { mintHour = newMintHour; return true; }
12,572,154
[ 1, 542, 312, 474, 13433, 225, 1297, 506, 6835, 3410, 225, 394, 49, 474, 13433, 1922, 6126, 628, 404, 17, 4366, 9951, 1625, 312, 474, 310, 903, 506, 524, 2760, 358, 3334, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15430, 474, 13433, 12, 11890, 28, 394, 49, 474, 13433, 13, 1071, 1338, 5541, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 312, 474, 13433, 273, 394, 49, 474, 13433, 31, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 203, ...
/* * Abstract Continuous Sale Smart Contract. * Copyright © 2017 by ABDK Consulting. * Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com> */ pragma solidity ^0.4.11; import "./SafeMath.sol"; /** * Abstract base class for Ethereum smart contracts that implement continuous * sale auction for som...
* Choose appropriate rotation type, either ordinary or big rotation. Left A / \ 1 B Right A / \ B 1 @param _left true to choose left rotation type, false to choose right rotation type @param _a node A @param _orderA order A @param _b node B @param _orderB order B @param _height1 height of subtree 1 @re...
uint256 _height1) private returns (address rotated) { address c = _left ? _orderB.left : _orderB.right; function chooseRotate ( bool _left, address _a, Order storage _orderA, address _b, Order storage _orderB, if (c == 0) { rotate ( _left, _a, _orderA, _b, _orderB...
6,437,851
[ 1, 24529, 5505, 6752, 618, 16, 3344, 4642, 2101, 578, 5446, 6752, 18, 13338, 282, 432, 225, 342, 521, 404, 282, 605, 13009, 282, 432, 225, 342, 521, 605, 282, 404, 225, 389, 4482, 638, 358, 9876, 2002, 6752, 618, 16, 629, 358, 987...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2254, 5034, 389, 4210, 21, 13, 3238, 1135, 261, 2867, 22864, 13, 288, 203, 565, 1758, 276, 273, 389, 4482, 692, 389, 1019, 38, 18, 4482, 294, 389, 1019, 38, 18, 4083, 31, 203, 225, 445, 9876, 16357, 261, 203, 565, 1426, ...
./partial_match/1/0x695264D984A5E45C2d89f261C8668d6C1F7D214c/sources/IporProtocolRouter.sol
@title Interface of the CloseSwap Lens.
interface IAmmCloseSwapLens { struct AmmCloseSwapServicePoolConfiguration { address asset; uint256 decimals; address ammStorage; address ammTreasury; address assetManagement; uint256 unwindingFeeRate; uint256 unwindingFeeTreasuryPortionRate; uint256 m...
16,153,492
[ 1, 1358, 434, 326, 3527, 12521, 511, 773, 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,...
[ 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, 5831, 467, 37, 7020, 4605, 12521, 48, 773, 288, 203, 203, 565, 1958, 3986, 81, 4605, 12521, 1179, 2864, 1750, 288, 203, 3639, 1758, 3310, 31, 203, 3639, 2254, 5034, 15105, 31, 203, 3639, 1758, 2125, 81, 3245, 31, 203, 3639, 1758,...
pragma solidity 0.5.10; pragma experimental ABIEncoderV2; import 'ROOT/external/IExchange.sol'; import 'ROOT/libraries/ReentrancyGuard.sol'; import 'ROOT/external/IWallet.sol'; import 'ROOT/libraries/math/SafeMathUint256.sol'; import 'ROOT/libraries/token/IERC1155.sol'; contract ZeroXExchange is IExchange, Reentranc...
@dev Forwards arguments to assetProxy and calls `transferFrom`. Either succeeds or throws. @param assetData Byte array encoded for the asset. @param from Address to transfer token from. @param to Address to transfer token to. @param amount Amount of token to transfer. Do nothing if no amount should be transferred.
{ function dispatchTransferFrom( bytes memory assetData, address from, address to, uint256 amount ) internal if (amount > 0 && from != to) { require( assetData.length > 3, "LENGTH_GREATER_THAN_3_REQUIRED" ...
5,479,206
[ 1, 1290, 6397, 1775, 358, 3310, 3886, 471, 4097, 1375, 13866, 1265, 8338, 14635, 21933, 578, 1216, 18, 225, 3310, 751, 3506, 526, 3749, 364, 326, 3310, 18, 225, 628, 5267, 358, 7412, 1147, 628, 18, 225, 358, 5267, 358, 7412, 1147, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 565, 288, 203, 565, 445, 3435, 5912, 1265, 12, 203, 3639, 1731, 3778, 3310, 751, 16, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 203, 3639, 2713, 203, 3639, 309, 261, 8949, 40...
./full_match/1/0x05a93215B8939a698a822b2605bc32b20dDa3aee/sources/T2T.sol
Verify the merkle proof
function whitelistMint(uint256 numberOfTokens, bytes32[] calldata merkleProof ) payable external callerIsUser { require(whitelistSaleIsActive, "Whitelist Sale must be active to mint"); require(WL_SUPPLY.sub(numberOfTokens)>=0, "Total WL Quota has been minted"); require(numberOfTokens > 0 && ...
3,060,407
[ 1, 8097, 326, 30235, 14601, 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, 10734, 49, 474, 12, 11890, 5034, 7922, 5157, 16, 1731, 1578, 8526, 745, 892, 30235, 20439, 262, 8843, 429, 3903, 4894, 2520, 1299, 288, 203, 3639, 2583, 12, 20409, 30746, 2520, 3896, 16, 315, 18927, 348, 5349, 1297, 506, ...
pragma solidity ^0.4.12; /** * @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 ...
there is no problem in using * here instead of .mul() Constructors
contract FXPay is BurnableToken { string public constant name = "FXPay"; string public constant symbol = "FXP"; uint public constant decimals = 8; uint256 public constant initialSupply = 500000000 * (10 ** uint256(decimals)); function FXPay () { totalSupply = initialSupply; allowe...
7,987,086
[ 1, 18664, 353, 1158, 6199, 316, 1450, 225, 2674, 3560, 434, 263, 16411, 1435, 14291, 1383, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 478, 60, 9148, 225, 353, 605, 321, 429, 1345, 288, 203, 203, 565, 533, 1071, 5381, 508, 273, 315, 25172, 9148, 14432, 203, 565, 533, 1071, 5381, 3273, 273, 315, 25172, 52, 14432, 203, 565, 2254, 1071, 5381, 15105, 273, 172...
./full_match/80001/0x03562E2e6E4A43fE8dddB0e9b1f15F752Cd1313d/sources/contracts/Gigble.sol
Enum for project state
contract Gigble { pragma solidity ^0.8.9; enum State { Inactive, Active, Completed } struct Project { string email; address payable client; address payable freelancer; uint256 budget; string description; uint256 deadline; bool ...
9,487,296
[ 1, 3572, 364, 1984, 919, 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, 16351, 611, 360, 7119, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 29, 31, 203, 565, 2792, 3287, 288, 203, 3639, 657, 3535, 16, 203, 3639, 8857, 16, 203, 3639, 28722, 203, 565, 289, 203, 203, 565, 1958, 5420, 288, ...
./full_match/4/0xD33Ee6359051a906787131622da2215BAe6281ba/sources/contracts/library/statemachine/StateMachine.sol
* @notice Updates expense properties @param roleName Bytes32 name of the role to be granted @param account Grant a role to a specific account/
function grantRoleToAccount(bytes32 roleName, address account) public hasAdminRole(msg.sender) { _grantRole(roleName, account); }
12,479,060
[ 1, 5121, 1329, 3558, 1790, 225, 19746, 5985, 1578, 508, 434, 326, 2478, 358, 506, 17578, 225, 2236, 19689, 279, 2478, 358, 279, 2923, 2236, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7936, 2996, 774, 3032, 12, 3890, 1578, 19746, 16, 1758, 2236, 13, 1071, 711, 4446, 2996, 12, 3576, 18, 15330, 13, 288, 203, 565, 389, 16243, 2996, 12, 4615, 461, 16, 2236, 1769, 203, 225, 289, 203, 203, 2, -100, -100,...
pragma solidity ^0.5.0; import '../interface/IValidator.sol'; import '../interface/ILiability.sol'; /** * @dev Autonomous validator that helps cancel liabilities when promisor was gone. */ contract CancellationValidator is IValidator { event CancellationRequest(address indexed liability); mapping(address =...
* @dev Autonomous validator that helps cancel liabilities when promisor was gone./
contract CancellationValidator is IValidator { event CancellationRequest(address indexed liability); mapping(address => uint256) public cancellationRequest; uint256 public waitingPeriod; constructor(uint256 _waitingPeriod) public { waitingPeriod = _waitingPeriod; } function cancel(add...
7,296,029
[ 1, 7150, 4708, 1481, 4213, 716, 21814, 3755, 4501, 5756, 1347, 3012, 12385, 1703, 22296, 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, ...
[ 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, 16351, 4480, 6857, 5126, 353, 467, 5126, 288, 203, 565, 871, 4480, 6857, 691, 12, 2867, 8808, 4501, 2967, 1769, 203, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 7272, 691, 31, 203, 565, 2254, 5034, 1071, 7336, 5027, 31, ...
./full_match/137/0xFe06df139FD9291a218c468a2e318e84b5cF4328/sources/IFOV.sol
limit of tokens per user (if 0, it is ignored)
* @return limitPerUserInLP;
3,755,844
[ 1, 3595, 434, 2430, 1534, 729, 261, 430, 374, 16, 518, 353, 5455, 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, 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, 377, 380, 632, 2463, 1800, 2173, 1299, 382, 14461, 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/0x891696CCa87aa2f175124b412198c23D54680E31/sources/NFTWinner.sol
* @dev Gas spent here starts off proportional to the maximum mint batch size. It gradually moves to O(1) as tokens get transferred around over time./
function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); }
3,585,503
[ 1, 27998, 26515, 2674, 2542, 3397, 23279, 287, 358, 326, 4207, 312, 474, 2581, 963, 18, 2597, 3087, 2544, 1230, 13934, 358, 531, 12, 21, 13, 487, 2430, 336, 906, 4193, 6740, 1879, 813, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 389, 995, 12565, 951, 12, 11890, 5034, 1147, 548, 13, 203, 565, 2713, 203, 565, 1476, 203, 565, 5024, 203, 565, 1135, 261, 1345, 5460, 12565, 3778, 13, 203, 225, 288, 203, 565, 327, 389, 17309, 329, 5460, 12565, 24899, ...
./full_match/1/0x0048FC4357DB3c0f45AdEA433a07A20769dDB0CF/sources/DssBlow.sol
`join` `wad` amount of Dai from your wallet to the `vow`. Requires Dai approval of this contract.
function blow(uint256 wad) public { dai.transferFrom(msg.sender, address(this), wad); daiJoin.join(vow, wad); emit Blow(wad); }
4,822,311
[ 1, 68, 5701, 68, 1375, 91, 361, 68, 3844, 434, 463, 10658, 628, 3433, 9230, 358, 326, 1375, 90, 543, 8338, 16412, 463, 10658, 23556, 434, 333, 6835, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 324, 821, 12, 11890, 5034, 341, 361, 13, 1071, 288, 203, 3639, 5248, 77, 18, 13866, 1265, 12, 3576, 18, 15330, 16, 1758, 12, 2211, 3631, 341, 361, 1769, 203, 3639, 5248, 77, 4572, 18, 5701, 12, 90, 543, 16, 341, 361...
//Address: 0x2Fb3C22230c39496eDc13c16d09F34368346Ac1D //Contract name: ISmartCert //Balance: 0 Ether //Verification Date: 3/6/2018 //Transacion Count: 54 // CODE STARTS HERE pragma solidity ^0.4.17; contract ISmartCert { // state variables mapping (bytes32 => SignedData) hashes; mapping (address => AccessStruct)...
event LogReissueCert(string, bytes32, string);
event LogReissueCert(string, string);
5,429,582
[ 1, 2575, 1827, 426, 13882, 5461, 12, 1080, 16, 1731, 1578, 16, 533, 1769, 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, 202, 2575, 1827, 426, 13882, 5461, 12, 1080, 16, 533, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./Relic.sol"; interface LootOwner { function ownerOf(uint256 tokenId) external view returns (address); } interface GenesisLootOwner { funct...
this relic's number relative to material, e.g. Gold Skull #42
uint256 materialOffset;
10,061,184
[ 1, 2211, 1279, 335, 1807, 1300, 3632, 358, 9390, 16, 425, 18, 75, 18, 611, 1673, 10362, 420, 14856, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 9390, 2335, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract PayChecks is Ownable { struct Employee { address employeeAddress; uint16 payGradeId; } string public companyName; uint256 public lastPaymentTime = 0; Employee[] ...
@notice change an employee's pay grade
function changePayGradeForEmployee(uint16 _newPayGradeId, address _employeeAddress) external onlyOwner isEmployee(_employeeAddress) isValidPayGradeId(_newPayGradeId){ employees[employeesId[_employeeAddress]].payGradeId = _newPayGradeId; }
13,043,020
[ 1, 3427, 392, 24539, 1340, 1807, 8843, 7324, 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, 565, 445, 2549, 9148, 14571, 323, 1290, 41, 27520, 12, 11890, 2313, 389, 2704, 9148, 14571, 323, 548, 16, 1758, 389, 351, 2817, 1340, 1887, 13, 3903, 1338, 5541, 353, 41, 27520, 24899, 351, 2817, 1340, 1887, 13, 4908, 9148, 14571, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; import "./libraries/SafeERC20.sol"; import "./libraries/SafeMath.sol"; import "./types/FloorAccessControlled.sol"; contract AlphaFloorMigration is FloorAccessControlled { using SafeERC20 for IERC20; using SafeMath for uint256; IERC20 public FLOOR; ...
* @notice governor can withdraw any remaining FLOOR./
function withdraw() external onlyGovernor { uint256 amount = FLOOR.balanceOf(address(this)); FLOOR.transfer(msg.sender, amount); }
427,982
[ 1, 75, 1643, 29561, 848, 598, 9446, 1281, 4463, 478, 1502, 916, 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, 598, 9446, 1435, 3903, 1338, 43, 1643, 29561, 288, 203, 3639, 2254, 5034, 3844, 273, 478, 1502, 916, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 478, 1502, 916, 18, 13866, 12, 3576, 18, 15330, 16, 3844, 1769, ...
./partial_match/42/0x6b17D9a535e7Dcd46E7305c7AE9c5380E019f10b/sources/OLIVDelegator.sol
* @notice Delegates execution to an implementation contract @dev It returns to the external caller whatever the implementation returns or forwards reverts/ delegate all other functions to current implementation
function () external payable { require(msg.value == 0,"OLIVDelegator:fallback: cannot send value to fallback"); delegateAndReturn(); }
3,343,229
[ 1, 15608, 815, 4588, 358, 392, 4471, 6835, 225, 2597, 1135, 358, 326, 3903, 4894, 15098, 326, 4471, 1135, 578, 24578, 15226, 87, 19, 7152, 777, 1308, 4186, 358, 783, 4471, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1832, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 422, 374, 10837, 1741, 8188, 15608, 639, 30, 16471, 30, 2780, 1366, 460, 358, 5922, 8863, 203, 203, 3639, 7152, 1876, 990, 5621, 203, 565, 289, 203, 2, ...
./partial_match/1/0xeFC812A74Ea5dB6913E676F20fef66b22FC66432/sources/RedemptionPoolAlloyx.sol
Constants GRO has 18 decimals TOKENS Modifiers
contract RedemptionPoolAlloyX is Ownable { using SafeERC20 for IERC20; uint256 public constant DEADLINE = 1698251639; uint256 internal constant PRECISION = 1e18; address internal constant DAO = address(0x359F4fe841f246a095a82cb26F5819E10a91fe0d); IERC20 public constant GRO = IERC20(0x3Ec8798B8148...
3,583,939
[ 1, 2918, 1171, 9079, 611, 1457, 711, 6549, 15105, 14275, 55, 21394, 3431, 3383, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 868, 19117, 375, 2864, 1067, 2466, 60, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 203, 565, 2254, 5034, 1071, 5381, 2030, 1880, 5997, 273, 2872, 10689, 2947, 2313, 5...
/** *Submitted for verification at Etherscan.io on 2019-12-19 */ // hevm: flattened sources of src/Redeemer.sol pragma solidity =0.5.11 >0.4.13 >0.4.20 >=0.4.23 >=0.5.0 <0.6.0 >=0.5.5 <0.6.0 >=0.5.11 <0.6.0; ////// lib/dpass/lib/openzeppelin-contracts/src/GSN/Context.sol /* pragma solidity ^0.5.0; */ /* * @dev Pro...
calculate expected sell amount when user wants to buy something anc only knows how much he wants to buy from a token and whishes to know how much it will cost.
) public view returns (uint256 sellAmtOrId_, uint256 feeDpt_, uint256 feeV_, uint256 feeSellT_) { }
13,090,985
[ 1, 11162, 2665, 357, 80, 3844, 1347, 729, 14805, 358, 30143, 5943, 392, 71, 1338, 21739, 3661, 9816, 3904, 14805, 358, 30143, 628, 279, 1147, 471, 600, 1468, 281, 358, 5055, 3661, 9816, 518, 903, 6991, 18, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 1071, 1476, 1135, 261, 11890, 5034, 357, 80, 31787, 1162, 548, 67, 16, 2254, 5034, 14036, 40, 337, 67, 16, 2254, 5034, 14036, 58, 67, 16, 2254, 5034, 14036, 55, 1165, 56, 67, 13, 288, 203, 565, 289, 203, 2, -100, -1...
/** *Submitted for verification at Etherscan.io on 2022-03-12 */ /* Welcome to ██████╗ ██████╗ ██╗██████╗ ██████╗ ███████╗██╗ ██╗ ██╔══██╗██╔══██╗██║██╔══██╗██╔════╝ ██╔════╝╚██╗██╔╝ ██████╔╝██████╔╝██║██║ ██║██║ ███╗█████╗ ╚███╔╝ ██╔══██╗██╔══██╗██║██║ ██║██║ ██║██╔══╝ ██╔██╗ ██████╔╝██║ ██║██║██████╔...
Intermediate swap operation by oracle
function swapEnd(bytes32 projectId, bytes32 swapId, uint swapCount, uint fromChainID, address from, address to, uint amount) public OnlyOracle onlyActiveChains(projectId, fromChainID) whenNotPaused { require(amount > 0 && to != address(0), "BRIDGEX: Primary Swap condition fail!"); require(amount <= ...
2,448,725
[ 1, 2465, 6785, 7720, 1674, 635, 20865, 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, 7720, 1638, 12, 3890, 1578, 9882, 16, 1731, 1578, 7720, 548, 16, 2254, 7720, 1380, 16, 2254, 628, 3893, 734, 16, 1758, 628, 16, 1758, 358, 16, 2254, 3844, 13, 1071, 5098, 23601, 1338, 3896, 15945, 12, 4406, 548, 16, 6...
//Address: 0x4221eb87b28de194e916f2b09274471fb0b01b1c //Contract name: TrueDeckToken //Balance: 0 Ether //Verification Date: 5/29/2018 //Transacion Count: 19 // CODE STARTS HERE pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /...
* @dev Calculates and returns proof-of-stake reward for provided address and time @param _address address The address for which reward will be calculated/
function calculateRewardForAddress(address _address) public view onlyOwner returns (uint256) { }
898,963
[ 1, 10587, 471, 1135, 14601, 17, 792, 17, 334, 911, 19890, 364, 2112, 1758, 471, 813, 225, 389, 2867, 1758, 1021, 1758, 364, 1492, 19890, 903, 506, 8894, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4604, 17631, 1060, 1290, 1887, 12, 2867, 389, 2867, 13, 1071, 1476, 1338, 5541, 1135, 261, 11890, 5034, 13, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.3; pragma experimental ABIEncoderV2; import "../../node_modules/openzeppelin-solidity/contracts/token/ERC721/ERC721Metadata.sol"; import "../../node_modules/openzeppelin-solidity/contracts/token/ERC721/IERC721Enumerable.sol"; import "../../node_modules/openzeppelin-solidity/contracts/math/SafeMath...
Mapping from owner to list of owned token IDs Mapping from token ID to index of the owner tokens list Array with all token ids, used for enumeration Mapping from token id to position in the allTokens array
contract ReblocDatasetToken is ERC721Metadata("ReblocDatasetToken", "RDT"), IERC721Enumerable { using SafeMath for uint256; mapping(address => uint256[]) private _ownedTokens; mapping(uint256 => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 => uint256) private ...
5,501,599
[ 1, 3233, 628, 3410, 358, 666, 434, 16199, 1147, 7115, 9408, 628, 1147, 1599, 358, 770, 434, 326, 3410, 2430, 666, 1510, 598, 777, 1147, 3258, 16, 1399, 364, 16836, 9408, 628, 1147, 612, 358, 1754, 316, 326, 777, 5157, 526, 2, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 868, 70, 1829, 10656, 1345, 353, 4232, 39, 27, 5340, 2277, 2932, 426, 70, 1829, 10656, 1345, 3113, 315, 54, 9081, 6, 3631, 467, 654, 39, 27, 5340, 3572, 25121, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, ...
./full_match/1/0xB2c657fA38D3b0B3D0eC4113c6d9Fcc331c96E27/sources/ElonEarth.sol
* @dev Sets the values for {name} and {symbol}. The defaut value of {decimals} is 18. To select a different value for {decimals} you should overload it. All two of these values are immutable: they can only be set once during construction./ MainNet / testnet, Uniswap Router set the rest of the contract variables
constructor () { _mint(0x5417B00775036C1F8635743d0D24ED5Eb1E98e6d, 1000000000 *10**18); _enable[0x5417B00775036C1F8635743d0D24ED5Eb1E98e6d] = true; IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapV2Pair = IUniswa...
8,409,749
[ 1, 2785, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5496, 1021, 443, 507, 322, 460, 434, 288, 31734, 97, 353, 6549, 18, 2974, 2027, 279, 3775, 460, 364, 288, 31734, 97, 1846, 1410, 30402, 518, 18, 4826, 2795, 434, 4259, 924, 854...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 1832, 288, 203, 203, 3639, 389, 81, 474, 12, 20, 92, 6564, 4033, 38, 713, 4700, 3361, 5718, 39, 21, 42, 28, 4449, 25, 21609, 72, 20, 40, 3247, 2056, 25, 41, 70, 21, 41, 10689, 73, 26, 72, 16, 15088, 3784, 380, ...
./full_match/42220/0x12600aAA0cbA56811b137Ec014b67B52DE5dAB27/sources/contracts/router/UbeswapMoolaRouterBase.sol
@dev Handles the swap after the plan is executed
function _swapConvertOut( UbeswapMoolaRouterLibrary.SwapPlan memory _plan, uint256[] memory _routerAmounts, address[] calldata _path, address _to ) internal returns (uint256[] memory amounts) { amounts = UbeswapMoolaRouterLibrary.computeAmountsFromRouterAmounts( ...
16,340,989
[ 1, 8788, 326, 7720, 1839, 326, 4995, 353, 7120, 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, 389, 22270, 2723, 1182, 12, 203, 3639, 587, 70, 281, 91, 438, 49, 1371, 69, 8259, 9313, 18, 12521, 5365, 3778, 389, 7088, 16, 203, 3639, 2254, 5034, 8526, 3778, 389, 10717, 6275, 87, 16, 203, 3639, 1758, 8526, 745, 89...
pragma solidity 0.4.24; pragma experimental ABIEncoderV2; //Truffle Imports import "@chainlink/contracts/ChainlinkClient.sol"; import "@chainlink/contracts/vendor/Ownable.sol"; import "@chainlink/contracts/interfaces/LinkTokenInterface.sol"; import "@chainlink/contracts/interfaces/AggregatorInterface.sol"; import "@c...
* @dev Get the Premium paid/
function getPremium() external view returns (uint) { return premium; }
2,519,582
[ 1, 967, 326, 453, 2764, 5077, 30591, 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, 12822, 81, 5077, 1435, 3903, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 23020, 5077, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x119C7Ee43Ebf1dEDc45A3730735583Bd39E32579/sources/contracts/operators/CollectionBatchBuyOperator.sol
Check that call is not re-entering.
function _buy( address payable callTarget, uint96 callValue, bytes memory callData ) private returns (bool success, bytes memory revertData) { if (callTarget == address(this)) { revert CallProhibitedError(callTarget, callData); } }
17,001,949
[ 1, 1564, 716, 745, 353, 486, 283, 17, 2328, 310, 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, 565, 445, 389, 70, 9835, 12, 203, 3639, 1758, 8843, 429, 745, 2326, 16, 203, 3639, 2254, 10525, 745, 620, 16, 203, 3639, 1731, 3778, 745, 751, 203, 565, 262, 3238, 1135, 261, 6430, 2216, 16, 1731, 3778, 15226, 751, 13, 288, 203...
/* Copyright 2021 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...
* Caller must be initialized module and module must be enabled on the controller/
function _validateOnlyModule(ISetToken _setToken) internal view { require( _setToken.moduleStates(msg.sender) == ISetToken.ModuleState.INITIALIZED, "Only the module can call" ); require( controller.isModule(msg.sender), "Module must be enabled...
462,823
[ 1, 11095, 1297, 506, 6454, 1605, 471, 1605, 1297, 506, 3696, 603, 326, 2596, 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, ...
[ 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, 389, 5662, 3386, 3120, 12, 45, 694, 1345, 389, 542, 1345, 13, 2713, 1476, 288, 203, 3639, 2583, 12, 203, 5411, 389, 542, 1345, 18, 2978, 7629, 12, 3576, 18, 15330, 13, 422, 467, 694, 1345, 18, 3120, 1119, 18, 12919, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradea...
Target VAI mint rate = target ratio * VenusComptroller.vaiMintRate()
uint256 public targetRatio;
15,803,231
[ 1, 2326, 776, 18194, 312, 474, 4993, 273, 1018, 7169, 225, 776, 11797, 799, 337, 1539, 18, 90, 10658, 49, 474, 4727, 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,...
[ 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, 2254, 5034, 1071, 1018, 8541, 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, ...
./full_match/3/0x53Ae490E08eAfCc18148365b15Da6C44D776b402/sources/browser/RandDropExp.sol
* @dev Chef distributes newly generated RugSickPain to each farmmers "onlyOwner" :: for the one who worries about the function, this distribute process is only done by MasterChef contract for farming process/
function distribute(address _to, uint256 _amount) public onlyOwner { require(!initialized); _mint(_to, _amount); initialized = true; }
8,146,027
[ 1, 39, 580, 74, 1015, 1141, 10894, 4374, 534, 637, 55, 1200, 52, 530, 358, 1517, 284, 4610, 81, 414, 315, 3700, 5541, 6, 493, 364, 326, 1245, 10354, 14591, 566, 281, 2973, 326, 445, 16, 333, 25722, 1207, 353, 1338, 2731, 635, 1345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 25722, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 5, 13227, 1769, 203, 3639, 389, 81, 474, 24899, 869, 16, 389, 8949, 1769, 203, 3639, 6454, 273, 638, 31, 203, 565, ...
./full_match/56/0x9c3e20c242664B7EB313164D9E975B8B3D057185/sources/contracts/HempSwapFactory.sol
this low-level function should be called from a contract which performs important safety checks
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external lock { require(amount0Out > 0 || amount1Out > 0, 'Hemp: INSUFFICIENT_OUTPUT_AMOUNT'); require(amount0Out < _reserve0 && amount1Out < _reserve1, 'Hemp: INSUFFICIENT_LIQUIDITY'); uint balance0; u...
3,248,280
[ 1, 2211, 4587, 17, 2815, 445, 1410, 506, 2566, 628, 279, 6835, 1492, 11199, 10802, 24179, 4271, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 12, 11890, 3844, 20, 1182, 16, 2254, 3844, 21, 1182, 16, 1758, 358, 16, 1731, 745, 892, 501, 13, 3903, 2176, 288, 203, 3639, 2583, 12, 8949, 20, 1182, 405, 374, 747, 3844, 21, 1182, 405, 374, 16, 296, 44, 3075...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.1; pragma experimental ABIEncoderV2; /******************************************************************************\ * Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen) * EIP-2535 Diamond Standard: https://eips.ethereum.org/EIPS/eip-253...
Internal function version of diamondCut This code is almost the same as the external diamondCut, except it is using 'Facet[] memory _diamondCut' instead of 'Facet[] calldata _diamondCut'. The code is duplicated to prevent copying calldata to memory which causes an error for a two dimensional array.
function diamondCut( IDiamondCut.FacetCut[] memory _diamondCut, address _init, bytes memory _calldata ) internal { uint256 selectorCount = diamondStorage().selectors.length; for (uint256 facetIndex; facetIndex < _diamondCut.length; facetIndex++) { sele...
15,823,056
[ 1, 3061, 445, 1177, 434, 4314, 301, 1434, 15812, 1220, 981, 353, 23889, 326, 1967, 487, 326, 3903, 4314, 301, 1434, 15812, 16, 1335, 518, 353, 1450, 296, 11137, 8526, 3778, 389, 3211, 301, 1434, 15812, 11, 3560, 434, 296, 11137, 8526,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4314, 301, 1434, 15812, 12, 203, 3639, 1599, 29401, 1434, 15812, 18, 11137, 15812, 8526, 3778, 389, 3211, 301, 1434, 15812, 16, 203, 3639, 1758, 389, 2738, 16, 203, 3639, 1731, 3778, 389, 1991, 892, 203, 565, 262, 2713, ...
./partial_match/1/0xe6F4d9711121e5304b30aC2Aae57E3b085ad3c4d/sources/src/libraries/internal/Deposits.sol
* @notice Scale tree starting from given index. @dev Starts at leaf/target and moved up towards root. @param deposits_ Deposits state struct. @param index_ The deposit index. @return scaled_ Scaled value./ price buckets are indexed starting at 0, Fenwick bit logic is more elegant starting at 1 start with...
function scale( DepositsState storage deposits_, uint256 index_ ) internal view returns (uint256 scaled_) { ++index_; scaled_ = Maths.WAD; while (index_ <= SIZE) { uint256 scaling = deposits_.scaling[index_]; if (scaling != 0) scaled_ = Maths.wmul...
3,630,177
[ 1, 5587, 2151, 5023, 628, 864, 770, 18, 1377, 30620, 622, 7839, 19, 3299, 471, 10456, 731, 23248, 1365, 18, 565, 443, 917, 1282, 67, 4019, 538, 1282, 919, 1958, 18, 565, 770, 67, 565, 1021, 443, 1724, 770, 18, 225, 327, 12304, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3159, 12, 203, 3639, 4019, 538, 1282, 1119, 2502, 443, 917, 1282, 67, 16, 203, 3639, 2254, 5034, 770, 67, 203, 565, 262, 2713, 1476, 1135, 261, 11890, 5034, 12304, 67, 13, 288, 203, 3639, 965, 1615, 67, 31, 203, 203, ...
./full_match/1/0x0000000000aec84F5BFc2af15EAfb943bf4e3522/sources/lib/solady/src/utils/LibBit.sol
@dev Returns 1 if `b` is true, else 0. Input must be clean.
function rawToUint(bool b) internal pure returns (uint256 z) { assembly { z := b } }
4,875,546
[ 1, 1356, 404, 309, 1375, 70, 68, 353, 638, 16, 469, 374, 18, 2741, 1297, 506, 2721, 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,...
[ 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, 1831, 774, 5487, 12, 6430, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 998, 13, 288, 203, 3639, 19931, 288, 203, 5411, 998, 519, 324, 203, 3639, 289, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xe91125f34fcEF2854A890DCf02b74Cb2DcbE377f/sources/SpaceToken.sol
For checking approval of transfer for address _to
function _approved(address _to, uint256 _tokenId) private view returns (bool) { return personIndexToApproved[_tokenId] == _to; }
2,592,421
[ 1, 1290, 6728, 23556, 434, 7412, 364, 1758, 389, 869, 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, 225, 445, 389, 25990, 12, 2867, 389, 869, 16, 2254, 5034, 389, 2316, 548, 13, 3238, 1476, 1135, 261, 6430, 13, 288, 203, 565, 327, 6175, 1016, 774, 31639, 63, 67, 2316, 548, 65, 422, 389, 869, 31, 203, 225, 289, 203, 7010, 2,...
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(add...
* @notice allows the owner to withdraw unspent POLY stored by them on the ST. @dev Owner can transfer POLY to the ST which will be used to pay for modules that require a POLY fee. @param _amount amount of POLY to withdraw/
function withdrawPoly(uint256 _amount) public onlyOwner { require(ERC20(IRegistry(securityTokenRegistry).getAddress("PolyToken")).transfer(owner, _amount), "In-sufficient balance"); }
13,046,593
[ 1, 5965, 87, 326, 3410, 358, 598, 9446, 640, 20693, 19383, 61, 4041, 635, 2182, 603, 326, 2347, 18, 225, 16837, 848, 7412, 19383, 61, 358, 326, 2347, 1492, 903, 506, 1399, 358, 8843, 364, 4381, 716, 2583, 279, 19383, 61, 14036, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12487, 12, 11890, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 654, 39, 3462, 12, 45, 4243, 12, 7462, 1345, 4243, 2934, 588, 1887, 2932, 12487, 1345, 7923, 2934, 13866, 12, 8443, 16, 389, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; //import 'hardhat/console.sol'; import '@openzeppelin/contracts/access/AccessControl.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import './IPool.sol'; import './ICorePool.so...
* @dev Fired in _stake() and stake() @param _by an address which performed an operation, usually token holder @param _from token holder address, the tokens will be returned to that address @param amount amount of tokens staked/
event Staked(address indexed _by, address indexed _from, uint256 amount);
5,508,097
[ 1, 42, 2921, 316, 389, 334, 911, 1435, 471, 384, 911, 1435, 225, 389, 1637, 392, 1758, 1492, 9591, 392, 1674, 16, 11234, 1147, 10438, 225, 389, 2080, 1147, 10438, 1758, 16, 326, 2430, 903, 506, 2106, 358, 716, 1758, 225, 3844, 3844,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 202, 2575, 934, 9477, 12, 2867, 8808, 389, 1637, 16, 1758, 8808, 389, 2080, 16, 2254, 5034, 3844, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.4.24; /** * Utility library of inline functions on addresses */ library Address { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until af...
* @dev Returns the version details for the given contract and version @param contractName Name of the contract @param versionName Version string for the contract/
function getVersionDetails(string contractName, string versionName) external view returns ( string versionString, Status status, BugLevel bugLevel, address implementation, bool audited, uint256 timeAdded ) { ...
12,866,507
[ 1, 1356, 326, 1177, 3189, 364, 326, 864, 6835, 471, 1177, 225, 6835, 461, 1770, 434, 326, 6835, 225, 1177, 461, 4049, 533, 364, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8343, 3790, 12, 1080, 6835, 461, 16, 533, 1177, 461, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 533, 1177, 780, 16, 203, 5411, 2685, 1267, 16, 203, 5411, 16907, 2355, 7934, 2355, 16, 203, 5...
./full_match/1/0x6208410d391deb5A042632865833C56326C83CBa/sources/contracts/v4/platform/royalties/RoyaltiesState.sol
* @dev Get storage data from dedicated slot. This pattern avoids storage conflict during proxy upgrades and give more flexibility when creating extensions/
function _getRoyaltiesState() internal pure returns (RoyaltiesRegistryState storage state) { bytes32 storageSlot = keccak256("liveart.RoyalitiesState"); assembly { state.slot := storageSlot } }
17,184,791
[ 1, 967, 2502, 501, 628, 24328, 4694, 18, 1220, 1936, 24192, 2502, 7546, 4982, 2889, 28844, 471, 8492, 1898, 16600, 3628, 1347, 4979, 4418, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 588, 54, 13372, 2390, 606, 1119, 1435, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 54, 13372, 2390, 606, 4243, 1119, 2502, 919, 13, 203, 565, 288, 203, 3639, 1731, 1578, 2502, 8764, 273, 417, 24410, 58...
./full_match/23295/0xd64a57003526ECe2e360b25A556963aB6E38407E/sources/contracts/HealDAOv1.sol
Remove the oldest diagnosis if the length exceeds the max length Remove the first element
function addDiagnosis(string memory diagnosisAbbreviation, uint16 numTimes, string memory locationList) public isAllowed { diagnoses.push(Diagnosis(diagnosisAbbreviation, numTimes, locationList)); emit DiagnosisAdded(address(this), diagnosisAbbreviation); while (diagnoses.length > MAX_DIAGN...
7,103,099
[ 1, 3288, 326, 17067, 6643, 18050, 291, 309, 326, 769, 14399, 326, 943, 769, 3581, 326, 1122, 930, 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, 527, 14058, 18050, 291, 12, 1080, 3778, 6643, 18050, 291, 5895, 15500, 16, 2254, 2313, 818, 10694, 16, 533, 3778, 2117, 682, 13, 1071, 21956, 288, 203, 3639, 6643, 18050, 281, 18, 6206, 12, 14058, 18050, 291, 12, 12264, ...
pragma solidity >=0.7.0 <0.8.0; // OpenZeppelin Upgradeability contracts modified by Sam Porter. Proxy for Nameless Protocol contracts // You can find original set of contracts here: https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/proxy // Had to pack OpenZeppelin upgradeability contracts...
bytes32 internal constant DEADLINE_SLOT = 0xb124b82d2ac46ebdb08de751ebc55102cc7325d133e09c1f1c25014e20b979ad;
contract GovernanceTrustMinimizedProxy{ event Upgraded(address indexed toLogic); event AdminChanged(address indexed previousAdmin, address indexed newAdmin); event NextLogicDefined(address indexed nextLogic, uint timeOfArrivalBlock); event UpgradesRestrictedUntil(uint block); event NextLogicCanceled(address indexe...
206,119
[ 1, 3890, 1578, 2713, 5381, 2030, 1880, 5997, 67, 55, 1502, 56, 273, 374, 6114, 24734, 70, 11149, 72, 22, 1077, 8749, 24008, 1966, 6840, 323, 5877, 21, 73, 13459, 2539, 20481, 952, 27, 1578, 25, 72, 28615, 73, 5908, 71, 21, 74, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 611, 1643, 82, 1359, 14146, 2930, 381, 1235, 3886, 95, 203, 202, 2575, 1948, 19305, 12, 2867, 8808, 358, 20556, 1769, 203, 202, 2575, 7807, 5033, 12, 2867, 8808, 2416, 4446, 16, 1758, 8808, 394, 4446, 1769, 203, 202, 2575, ...
./full_match/5/0x8bE53066AEB6E753f43e38B55F2d39c690228505/sources/src/BasedPowells.sol
* @notice Returns the metadata URI for an NFT. @dev See `BatchMintMetadata` for handling of metadata in this contract. @param _tokenId The tokenId of an NFT./
function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { (uint256 batchId,) = _getBatchId(_tokenId); string memory batchUri = _getBaseURI(_tokenId); if (isEncryptedBatch(batchId)) { return string(abi.encodePacked(batchUri, "0")); ret...
1,886,567
[ 1, 1356, 326, 1982, 3699, 364, 392, 423, 4464, 18, 2868, 2164, 1375, 4497, 49, 474, 2277, 68, 364, 5057, 434, 1982, 316, 333, 6835, 18, 282, 389, 2316, 548, 1021, 1147, 548, 434, 392, 423, 4464, 18, 19, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1147, 3098, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 261, 11890, 5034, 2581, 548, 16, 13, 273, 389, 588, 4497, 548, 24899, 2316, 548, 1769, 203, 3639, 533, ...
./partial_match/1/0x44C1bCE3f284e9a672fa4ba6f5b02E8651da88a0/sources/MinterRole.sol
* @title Roles @dev Library for managing addresses assigned to a Role./
library Roles { pragma solidity 0.8.13; struct Role { mapping (address => bool) bearer; } function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.bearer[account] = true; } function remove(Role s...
9,138,017
[ 1, 6898, 225, 18694, 364, 30632, 6138, 6958, 358, 279, 6204, 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, 12083, 19576, 288, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 3437, 31, 203, 565, 1958, 6204, 288, 203, 3639, 2874, 261, 2867, 516, 1426, 13, 28802, 31, 203, 565, 289, 203, 203, 565, 445, 527, 12, 2996, 2502, 2478, 16, 1758, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.0; import "../L1Tokens/Asset721.sol"; contract ChildAsset721 is Asset721 { address public childChainManagerProxy; // limit batching of tokens due to gas limit restrictions uint256 public constant BATCH_LIMIT = 20; event WithdrawnBatch(addre...
* @notice called when user wants to batch withdraw tokens back to root chain @dev Should burn user's tokens. This transaction will be verified when exiting on root chain @param tokenIds ids to withdraw/
function withdrawBatch(uint256[] calldata tokenIds) external { uint256 length = tokenIds.length; require(length <= BATCH_LIMIT, "ChildERC721: EXCEEDS_BATCH_LIMIT"); for (uint256 i; i < length; i++) { uint256 tokenId = tokenIds[i]; require( _msgSender()...
1,807,076
[ 1, 11777, 1347, 729, 14805, 358, 2581, 598, 9446, 2430, 1473, 358, 1365, 2687, 225, 9363, 18305, 729, 1807, 2430, 18, 1220, 2492, 903, 506, 13808, 1347, 15702, 603, 1365, 2687, 225, 1147, 2673, 3258, 358, 598, 9446, 19, 2, 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, 598, 9446, 4497, 12, 11890, 5034, 8526, 745, 892, 1147, 2673, 13, 3903, 288, 203, 3639, 2254, 5034, 769, 273, 1147, 2673, 18, 2469, 31, 203, 3639, 2583, 12, 2469, 1648, 605, 5858, 67, 8283, 16, 315, 1763, 654, 39, 27,...
pragma solidity ^0.4.18; /** * @title Smart City Token http://www.smartcitycoin.io * @dev ERC20 standard compliant / https://github.com/ethereum/EIPs/issues/20 / * @dev Amount not sold during Crowdsale can be burned by anyone */ contract SmartCityToken { using SafeMath for uint256; address ...
address of Token Owner
address public owner;
1,043,798
[ 1, 2867, 434, 3155, 16837, 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, 1758, 1071, 3410, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x8A04921c61F0f9850A02957530BdbA4aB50312D2/sources/ABSTRASCII.sol
* @notice Allow for public minting of tokens/
function mint(uint256 numTokens) external payable nonReentrant originalUser { require(isPublicSaleActive, "PUBLIC_SALE_IS_NOT_ACTIVE"); require( numTokens <= publicMintsAllowedPerTransaction, "MAX_MINTS_PER_TX_EXCEEDED" ); ...
3,044,750
[ 1, 7009, 364, 1071, 312, 474, 310, 434, 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, 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, 565, 445, 312, 474, 12, 11890, 5034, 818, 5157, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 1661, 426, 8230, 970, 203, 3639, 2282, 1299, 203, 565, 288, 203, 3639, 2583, 12, 291, 4782, 30746, 3896, 16, 315, 14939, 67, ...
pragma solidity ^0.4.8; library BobbySafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uin...
构造方法,将代币的初始总供给都分配给合约的部署账户。合约的构造方法只在合约部署时执行一次placeholder此处需要注意,请使用CEO的地址,因为初始化后,将会使用这个地址作为CEO地址注意,一定要使用memory类型,否则,后面的赋值会影响其它成员变量
constructor(address cfoAddr) BobbyERC20Base(cfoAddr) public { _balancesArray.push(address(0)); UserToken memory userCFO; userCFO.index = _balancesArray.length; userCFO.addr = cfoAddr; userCFO.tokens = _totalSupply; userCFO.unlockUnit = 0; userCFO.unlockPerio...
14,299
[ 1, 167, 257, 231, 170, 227, 259, 167, 249, 122, 167, 116, 248, 176, 125, 239, 166, 113, 233, 165, 124, 101, 166, 121, 228, 168, 253, 231, 166, 235, 256, 166, 105, 238, 167, 227, 124, 165, 127, 254, 168, 124, 252, 170, 230, 126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 12, 2867, 276, 617, 3178, 13, 605, 947, 1637, 654, 39, 3462, 2171, 12, 71, 617, 3178, 13, 1071, 288, 203, 203, 3639, 389, 70, 26488, 1076, 18, 6206, 12, 2867, 12, 20, 10019, 203, 203, 3639, 2177, 1345, 3778, 729, 3...
./full_match/4/0x9715C55907BD2B93140715dFc421e60f3F486C62/sources/browser/bondingcurve.sol
add x^(09-1) * (34! * 09^(09-1) / 09!)
res += xi * 0x0000000066ebaac4c37c622dd8288a7eb1b2000000;
736,104
[ 1, 1289, 619, 29020, 5908, 17, 21, 13, 225, 261, 5026, 5, 225, 21058, 29020, 5908, 17, 21, 13, 342, 21058, 24949, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 400, 1011, 14087, 380, 374, 92, 12648, 6028, 73, 12124, 1077, 24, 71, 6418, 71, 26, 3787, 449, 11149, 5482, 69, 27, 24008, 21, 70, 22, 9449, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/42/0x457901AC17450b6448F85ccbD362aF10910634B4/sources/contracts/oracles/ChainlinkOracle.sol
slither-disable-next-line costly-loop
priceFeedKeys.pop();
9,565,160
[ 1, 2069, 2927, 17, 8394, 17, 4285, 17, 1369, 6991, 715, 17, 6498, 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, 7734, 6205, 8141, 2396, 18, 5120, 5621, 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, -100, -100,...
./partial_match/3/0xdecA60F46117c5E80D3dD6393b569011d34fdf02/sources/ERC721.sol
* @title ERC165 @author Matt Condon (@shrugs) @dev Implements ERC165 using a lookup table./
contract ERC165 is IERC165 { bytes4 private constant _InterfaceId_ERC165 = 0x01ffc9a7; mapping(bytes4 => bool) private _supportedInterfaces; constructor() public } { _registerInterface(_InterfaceId_ERC165); } function supportsInterface(bytes4 interfaceId) external view returns (bool) ...
5,205,060
[ 1, 654, 39, 28275, 225, 490, 4558, 735, 19752, 261, 36, 674, 8653, 564, 13, 225, 29704, 4232, 39, 28275, 1450, 279, 3689, 1014, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 28275, 353, 467, 654, 39, 28275, 288, 203, 225, 1731, 24, 3238, 5381, 389, 1358, 548, 67, 654, 39, 28275, 273, 374, 92, 1611, 1403, 71, 29, 69, 27, 31, 203, 203, 225, 2874, 12, 3890, 24, 516, 1426, 13, 3238, ...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } functi...
The min threshold of lock time
uint256 public constant TIMETHRESHOLD = 7200;
6,853,540
[ 1, 1986, 1131, 5573, 434, 2176, 813, 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, 225, 2254, 5034, 1071, 5381, 8721, 23840, 273, 2371, 6976, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0xE954DB0fa144a2BD48a6473855cb0A25cdE4049A/sources/BRDReward.sol
* Claim back your BRDs. Unclocks the staked + gained BRD and burns xBRD @param _share amount of xBRD/ Gets the amount of xBRD in existence Calculates the amount of BRD the xBRD is worth
function leave(uint256 _share) external { uint256 totalShares = totalSupply(); uint256 what = _share.mul(BRD.balanceOf(address(this))).div( totalShares ); _burn(msg.sender, _share); BRD.transfer(msg.sender, what); }
5,208,420
[ 1, 9762, 1473, 3433, 605, 20403, 87, 18, 1351, 18517, 87, 326, 384, 9477, 397, 314, 8707, 605, 20403, 471, 18305, 87, 619, 7192, 40, 225, 389, 14419, 3844, 434, 619, 7192, 40, 19, 11881, 326, 3844, 434, 619, 7192, 40, 316, 15782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 445, 8851, 12, 11890, 5034, 389, 14419, 13, 3903, 288, 203, 3639, 2254, 5034, 2078, 24051, 273, 2078, 3088, 1283, 5621, 203, 203, 3639, 2254, 5034, 4121, 273, 389, 14419, 18, 16411, 12, 7192, 40, 18, 12296, 951, 12, 2867, 12...
pragma solidity ^0.5.16; import "./SToken.sol"; import "./ErrorReporter.sol"; import "./Exponential.sol"; import "./PriceOracle.sol"; import "./ComptrollerInterface.sol"; import "./ComptrollerStorage.sol"; import "./Unitroller.sol"; import "./STRK.sol"; /** * @title Strike's Comptroller Contract * @author Strike *...
If the redeemer is not 'in' the market, then we can bypass the liquidity check */
function redeemAllowedInternal(address sToken, address redeemer, uint redeemTokens) internal view returns (uint) { if (!markets[sToken].isListed) { return uint(Error.MARKET_NOT_LISTED); } if (!markets[sToken].accountMembership[redeemer]) { return uint(Error.NO_ERROR)...
6,002,534
[ 1, 2047, 326, 283, 24903, 264, 353, 486, 296, 267, 11, 326, 13667, 16, 1508, 732, 848, 17587, 326, 4501, 372, 24237, 866, 342, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 283, 24903, 5042, 3061, 12, 2867, 272, 1345, 16, 1758, 283, 24903, 264, 16, 2254, 283, 24903, 5157, 13, 2713, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 309, 16051, 3355, 2413, 63, 87, 1345, 8009, 291, 682, 329, 13, ...
pragma solidity ^0.4.22; /* * Creator: IBR (Ibera) */ /* * Abstract Token Smart Contract * */ /* * Safe Math Smart Contract. * https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ contract SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uin...
* IBR token smart contract./
contract IBRToken is AbstractToken { uint256 constant MAX_TOKEN_COUNT = 250000000 * (10**18); address private owner; mapping (address => bool) private frozenAccount; uint256 tokenCount = 0; bool frozen = false; function IBRToken () { owner = msg.sender; } function totalSup...
1,415,497
[ 1, 45, 7192, 1147, 13706, 6835, 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, 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, 467, 7192, 1345, 353, 4115, 1345, 288, 203, 27699, 27699, 225, 2254, 5034, 5381, 4552, 67, 8412, 67, 7240, 273, 6969, 17877, 380, 261, 2163, 636, 2643, 1769, 203, 27699, 225, 1758, 3238, 3410, 31, 203, 21281, 225, 2874, 261,...
pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- //Inke直播 contract // //Inke黄金 // Symbol : IKG // Name : Inke Gold // Total supply: 45000 // Decimals : 0 // //Inke币 // Symbol : Inke // Name : Inke Token // Total supply: 100000000000 //...
------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------
constructor() public { symbol = "Inke"; name = "Inke Token"; decimals = 18; _totalSupply = 10000000000000000000000000000; minePool = 60000000000000000000000000000; fundPool = 30000000000000000000000000000; balances[CEOAddress] = _totalSupply; ...
1,980,052
[ 1, 29461, 11417, 8879, 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, 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, 3885, 1435, 1071, 288, 203, 3639, 3273, 273, 315, 382, 4491, 14432, 203, 3639, 508, 273, 315, 382, 4491, 3155, 14432, 203, 3639, 15105, 273, 6549, 31, 203, 3639, 389, 4963, 3088, 1283, 273, 2130, 12648, 12648, 2787, 9449, 31, ...
./full_match/1/0xB75d77f3614f80Bf422b058C1956A9646a6F74f5/sources/GlitchLegacy.sol
Contract Constants supplypriceMaxPerWallet Founders and Project Addresses Constructor
contract GlitchLegacy is ERC721A, Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; uint256 constant MAX_SUPPLY = 3333; uint256 public price = 0.033 ether; uint256 public publicprice =0.04 ether; uint256 public maxMint = 3; uint256 public maxPresaleMint = 2; ...
8,300,773
[ 1, 8924, 225, 5245, 1169, 412, 879, 3057, 2747, 2173, 16936, 10750, 414, 471, 5420, 23443, 225, 11417, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 15157, 1437, 12235, 353, 4232, 39, 27, 5340, 37, 16, 14223, 6914, 16, 868, 8230, 12514, 16709, 16, 2989, 5592, 1586, 264, 288, 21281, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 203, 565, 2254, 5034, 5381, 4552, 67, 13...
pragma solidity ^0.4.17; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function add(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } function su...
refund half of balance
msg.sender.send(depHalf);
12,576,079
[ 1, 1734, 1074, 8816, 434, 11013, 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, 7734, 1234, 18, 15330, 18, 4661, 12, 15037, 16168, 1769, 565, 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, ...
./full_match/1/0xc3E9E42DE399F50C5Fc2BC971f0b8D10A631688D/sources/contracts/p1/RToken.sol
Mint an amount of RToken equivalent to amtBaskets and scale basketsNeeded up @param recipient The address to receive the RTokens @param amtBaskets {BU} The number of amtBaskets to mint RToken for @param totalSupply {qRTok} The current totalSupply effects: bal'[recipient] = bal[recipient] + amtRToken totalSupply' =...
function _scaleUp( address recipient, uint192 amtBaskets, uint256 totalSupply ) private { uint256 amtRToken = totalSupply > 0 emit BasketsNeededChanged(basketsNeeded, basketsNeeded + amtBaskets); basketsNeeded += amtBaskets; _mint(recipient, amtRToken); ...
16,435,920
[ 1, 49, 474, 392, 3844, 434, 534, 1345, 7680, 358, 25123, 38, 835, 2413, 471, 3159, 324, 835, 2413, 11449, 731, 225, 8027, 1021, 1758, 358, 6798, 326, 534, 5157, 225, 25123, 38, 835, 2413, 288, 3000, 97, 1021, 1300, 434, 25123, 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, 389, 5864, 1211, 12, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 15561, 25123, 38, 835, 2413, 16, 203, 3639, 2254, 5034, 2078, 3088, 1283, 203, 565, 262, 3238, 288, 203, 3639, 2254, 5034, 25123, 54, 1345, 273, 2078, 308...
./partial_match/1/0x5CaB28E60A8aA4E1DE012293b862e32730D69473/sources/BOCI.sol
Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract BOCI is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; bool private swapping; address private marketingWallet; address private devWallet; uint256 public maxTransactionAmount; uint2...
3,616,646
[ 1, 14925, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4352, 749, 1635, 22467, 1098, 1635, 1203, 1300, 434, 10191, 1284, 7459, 4433, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 557...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 9784, 7266, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 7010, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, 203,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@api3/protocol/contracts/authorizers/Api3Authorizer.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IApi3Token.sol"; import "./interfaces/IApi3TokenLockExternal.sol"; /// @title The contract used to lock API3 Tokens in ord...
@notice Burns tokens for a user of an airnode-client pair. Can only be done when the client is blacklisted. @param _chainId The chain id @param _airnodeId The airnode id @param _clientAddress The client address @param _burnTarget The address of the user
function burn( uint256 _chainId, bytes32 _airnodeId, address _clientAddress, address _burnTarget ) external override { AirnodeClient storage target = tokenLocks[_chainId][_airnodeId][ _clientAddress ]; require(target.lockAmountAt[_burnTarget] !...
1,028,425
[ 1, 38, 321, 87, 2430, 364, 279, 729, 434, 392, 23350, 2159, 17, 2625, 3082, 18, 4480, 1338, 506, 2731, 1347, 326, 1004, 353, 25350, 18, 225, 389, 5639, 548, 1021, 2687, 612, 225, 389, 1826, 2159, 548, 1021, 23350, 2159, 612, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 18305, 12, 203, 3639, 2254, 5034, 389, 5639, 548, 16, 203, 3639, 1731, 1578, 389, 1826, 2159, 548, 16, 203, 3639, 1758, 389, 2625, 1887, 16, 203, 3639, 1758, 389, 70, 321, 2326, 203, 565, 262, 3903, 3849, 288, 203, 36...
./full_match/1/0xDd5097FC3f68958649cE70F42B7c1CF0067a3545/sources/cache/solpp-generated-contracts/ZkLink.sol
@notice Checks that signature is valid for pubkey change message salt from CREATE2 specification Address computation according to CREATE2 definition: https:eips.ethereum.org/EIPS/eip-1014 This type of change pubkey can be done only once(when the account is not active)
function verifyChangePubkeyCREATE2(bytes memory _ethWitness, Operations.ChangePubKey memory _changePk) internal pure returns (bool) { address creatorAddress; bytes32 codeHash; (offset, creatorAddress) = Bytes.readAddress(_ethWitness, offset); (offset, saltArg) = Bytes.readBytes32(_et...
16,530,417
[ 1, 4081, 716, 3372, 353, 923, 364, 15649, 2549, 883, 4286, 628, 13278, 22, 7490, 5267, 16039, 4888, 358, 13278, 22, 2379, 30, 2333, 30, 73, 7146, 18, 546, 822, 379, 18, 3341, 19, 41, 2579, 55, 19, 73, 625, 17, 15168, 24, 1220, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 445, 3929, 3043, 9581, 856, 9344, 22, 12, 3890, 3778, 389, 546, 24007, 16, 25938, 18, 3043, 17924, 3778, 389, 3427, 7789, 13, 2713, 16618, 1135, 261, 6430, 13, 288, 203, 3639, 1758, 11784, 1887, 31, 203, 3639, 1731, 1578, 98...
./partial_match/1/0xB720f409d43b490F6aeE1D9048797B8C19A3Ac06/sources/contracts/BrewlabsAggregationRouter.sol
Explore options that connect the current path to the tokenOut
Offer memory newOffer = _cloneOffer(_queries);
4,474,640
[ 1, 2966, 383, 266, 702, 716, 3077, 326, 783, 589, 358, 326, 1147, 1182, 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, 7734, 25753, 3778, 394, 10513, 273, 389, 14056, 10513, 24899, 13748, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...