file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
pragma solidity 0.6.6; // SPDX-License-Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when de...
* @notice Rescue any non-reward token that was airdropped to this contract @dev Can only be called by the owner/
function rescueAirdroppedTokens(address _token, address to) public onlyOwner { require(_token != address(0), "token_0x0"); require(to != address(0), "to_0x0"); require(_token != farmToken, "rescue_reward_error"); uint256 balanceOfToken = IERC20(_token).balanceOf(...
361,867
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 534, 742, 344, 1281, 1661, 17, 266, 2913, 1147, 716, 1703, 279, 6909, 1764, 1845, 358, 333, 6835, 632, 5206, 4480, 1338, 506, 2566, 635, 326, 3410, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8223, 37, 6909, 1764, 1845, 5157, 12, 2867, 389, 2316, 16, 1758, 358, 13, 203, 3639, 1071, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 2583, 24899, 2316, 480, 1758, 12, 20, 3631, 315, 2316, 67, 20, 92, 20, 8863, ...
pragma solidity ^0.4.19; import './PrismLibData.sol'; import './PrismLib2.sol'; import './DecimalMath.sol'; import './IPrism.sol'; // factor out functionality from PrismLib to reduce deployed bytecode library PrismLib3 { using Relay for Relay.Data; using AccountLib for AccountLib.Data; using FollowerManagerLib...
* A bundled getter for many member variables. This is done to reduce the bytecode size of having multiple individual getters. */ indices are commented below for convenience since these are returned as arrays
function data(PrismLibData.Data storage self) public returns(uint, address[5], uint[29], bool[1]) { return ( uint(self.state), [ ], [ ], );
7,296,597
[ 1, 4625, 348, 7953, 560, 30, 380, 432, 324, 24467, 7060, 364, 4906, 3140, 3152, 18, 1220, 353, 2731, 358, 5459, 326, 22801, 963, 434, 7999, 3229, 7327, 23849, 18, 1195, 4295, 854, 31813, 5712, 364, 13553, 3241, 4259, 854, 2106, 487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 501, 12, 2050, 6228, 5664, 751, 18, 751, 2502, 365, 13, 1071, 1135, 12, 11890, 16, 1758, 63, 25, 6487, 2254, 63, 5540, 6487, 1426, 63, 21, 5717, 288, 203, 203, 565, 327, 261, 203, 565, 2254, 12, 2890, 18, 2019, 3631...
./partial_match/1/0xB00A2994AE8bBC4F099D1B1054C3571A3b69710a/sources/@openzeppelin/contracts-upgradeable/finance/VestingWalletUpgradeable.sol
* @dev Release the tokens that have already vested. Emits a {ERC20Released} event./
function release(address token) public virtual { uint256 releasable = vestedAmount(token, uint64(block.timestamp)) - released(token); _erc20Released[token] += releasable; emit ERC20Released(token, releasable); SafeERC20Upgradeable.safeTransfer(IERC20Upgradeable(token), beneficiary(),...
3,609,658
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10819, 326, 2430, 716, 1240, 1818, 331, 3149, 18, 7377, 1282, 279, 288, 654, 39, 3462, 26363, 97, 871, 18, 19, 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, 445, 3992, 12, 2867, 1147, 13, 1071, 5024, 288, 203, 3639, 2254, 5034, 6707, 345, 429, 273, 331, 3149, 6275, 12, 2316, 16, 2254, 1105, 12, 2629, 18, 5508, 3719, 300, 15976, 12, 2316, 1769, 203, 3639, 389, 12610, 3462, 26363,...
pragma solidity ^0.5.8; interface GemLike { function approve(address, uint) external; function transfer(address, uint) external; function transferFrom(address, address, uint) external; function deposit() external payable; function withdraw(uint) external; } interface ManagerLike { function cdp...
Generates debt in the CDP Moves the DAI amount (balance in the vat in rad) to proxy's address Allows adapter to access to proxy's DAI balance in the vat
function draw(uint cdp, uint wad) internal { if (wad > 0) { address manager = InstaMcdAddress(getMcdAddresses()).manager(); address jug = InstaMcdAddress(getMcdAddresses()).jug(); address daiJoin = InstaMcdAddress(getMcdAddresses()).daiJoin(); address urn = Ma...
978,737
[ 1, 4625, 348, 7953, 560, 30, 225, 31902, 18202, 88, 316, 326, 385, 8640, 490, 10829, 326, 463, 18194, 3844, 261, 12296, 316, 326, 17359, 316, 6719, 13, 358, 2889, 1807, 1758, 25619, 4516, 358, 2006, 358, 2889, 1807, 463, 18194, 11013,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 3724, 12, 11890, 7976, 84, 16, 2254, 341, 361, 13, 2713, 288, 203, 3639, 309, 261, 91, 361, 405, 374, 13, 288, 203, 5411, 1758, 3301, 273, 13448, 69, 49, 4315, 1887, 12, 588, 49, 4315, 7148, 1435, 2934, 4181, 5621, ...
./full_match/43114/0xc9070B3EFE0aacC5AfB4B31C5DbDCA7C6B4bAAA9/sources/contracts/YieldWolf.sol
* @notice updates the swap path for a given pair @dev can only be called by the owner @param _strategy address of the strategy @param _extraEarnTokens list of extra earn tokens for farms rewarding more than one token/ tokens sanity check
function setStrategyExtraEarnTokens(IYieldWolfStrategy _strategy, address[] calldata _extraEarnTokens) external onlyOwner { require(_extraEarnTokens.length <= 5, 'setStrategyExtraEarnTokens: CAP_EXCEEDED'); for (uint256 i; i < _extraEarnTokens.length; i++) { IERC20(_...
4,507,358
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4533, 326, 7720, 589, 364, 279, 864, 3082, 632, 5206, 848, 1338, 506, 2566, 635, 326, 3410, 632, 891, 389, 14914, 1758, 434, 326, 6252, 632, 891, 389, 7763, 41, 1303, 5157, 666, 434, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 444, 4525, 7800, 41, 1303, 5157, 12, 45, 16348, 59, 355, 74, 4525, 389, 14914, 16, 1758, 8526, 745, 892, 389, 7763, 41, 1303, 5157, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 2583, 24899, 77...
./full_match/11155111/0xf97CF62Dd7d5caff5937ADC34237358ffCEa823E/sources/contracts/mixins/NFTMarketCore.sol
* @notice Transfers the NFT from escrow and clears any state tracking this escrowed NFT. @param authorizeSeller The address of the seller pending authorization. Once it's been authorized by one of the escrow managers, it should be set to address(0) indicated that it's no longer pending authorization./
) internal virtual { if (authorizeSeller != address(0)) { revert NFTMarketCore_Seller_Not_Found(); } IERC721(nftContract).transferFrom(address(this), recipient, tokenId); }
3,795,244
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2604, 18881, 326, 423, 4464, 628, 2904, 492, 471, 22655, 1281, 919, 11093, 333, 2904, 492, 329, 423, 4464, 18, 632, 891, 12229, 22050, 1021, 1758, 434, 326, 29804, 4634, 6093, 18, 12419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 2713, 5024, 288, 203, 565, 309, 261, 22488, 22050, 480, 1758, 12, 20, 3719, 288, 203, 1377, 15226, 423, 4464, 3882, 278, 4670, 67, 22050, 67, 1248, 67, 2043, 5621, 203, 565, 289, 203, 565, 467, 654, 39, 27, 5340, 12, ...
pragma solidity 0.4.21; /** * @title SafeMath by OpenZeppelin (commit: 5daaf60) * @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) { //...
Map of crowdsale participants, address as key and Participant structure as value This is a type for a single Participant
contract Crowdsale { mapping(address => Participant) public participants; struct Participant { bool whitelisted; uint256 tokens; bool tokensClaimed; } event FundTransfer(address to, uint amount); modifier afterIcoDeadline() { if (now >= icoDeadline) _; } modifier...
10,498,205
[ 1, 4625, 348, 7953, 560, 30, 225, 1635, 434, 276, 492, 2377, 5349, 22346, 16, 1758, 487, 498, 471, 31333, 3695, 487, 460, 1220, 353, 279, 618, 364, 279, 2202, 31333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 385, 492, 2377, 5349, 288, 203, 203, 565, 2874, 12, 2867, 516, 31333, 13, 1071, 22346, 31, 377, 203, 203, 565, 1958, 31333, 288, 203, 3639, 1426, 26944, 31, 203, 3639, 2254, 5034, 2430, 31, 203, 3639, 1426, 2430, 9762, 329...
/** *Submitted for verification at Etherscan.io on 2021-09-27 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; contract MerkleHashStorage { struct MerkleHashData { bytes32 hash; uint256 block_timestamp; } address public contrat_owner; mapping (bytes9 => MerkleHashData) public merkleHashData...
external view function */ ---------------------- */
function getMerkleHashData(bytes9 merkle_ref) external view returns (MerkleHashData memory) { require(merkle_ref != 0, "merkle_ref must be > 0"); MerkleHashData memory merkleHashData = merkleHashDataArray[merkle_ref]; if (merkleHashData.hash == 0) return MerkleHashData(0, 0); return merkleHashData; }
2,418,430
[ 1, 4625, 348, 7953, 560, 30, 225, 3903, 1476, 445, 1195, 12146, 13465, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 915, 30040, 15609, 2310, 751, 12, 3890, 29, 30235, 67, 1734, 13, 3903, 1476, 1135, 261, 8478, 15609, 2310, 751, 3778, 13, 288, 203, 202, 202, 6528, 12, 6592, 15609, 67, 1734, 480, 374, 16, 315, 6592, 15609, 67, 1734, 1297, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.1; /** * @title Linked to ILV Marker Interface * * @notice Marks smart contracts which are linked to IlluviumERC20 token instance upon construction, * all these smart contracts share a common ilv() address getter * * @notice Implementing smart contracts MU...
@dev Block number of the last yield distribution event
uint64 public override lastYieldDistribution;
6,185,587
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 3914, 1300, 434, 326, 1142, 2824, 7006, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 1105, 1071, 3849, 1142, 16348, 9003, 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,...
pragma solidity ^0.5.2; // File: @daostack/infra/contracts/votingMachines/IntVoteInterface.sol interface intvoteinterface31 { //inject NONSTANDARD NAMING //When implementing this interface please do not only override function and modifier, //but also to keep the modifiers on the overridden functions. modi...
inject NONSTANDARD NAMING
function REPUTATIONOF100(address _owner, bytes32 _proposalId) external view returns(uint256) {
12,775,996
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2438, 4762, 2689, 3932, 6625, 12, 2867, 389, 8443, 16, 1731, 1578, 389, 685, 8016, 548, 13, 3903, 1476, 1135, 12, 11890, 5034, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * ma...
@dev Safe casting from uint256 to int256
function toInt256(uint256 x) internal pure returns(int256) { require( x <= uint256(type(int256).max), "Pool: Cast overflow" ); return int256(x); }
392,479
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 14060, 27660, 628, 2254, 5034, 358, 509, 5034, 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, 20771, 5034, 12, 11890, 5034, 619, 13, 2713, 16618, 1135, 12, 474, 5034, 13, 288, 203, 3639, 2583, 12, 203, 5411, 619, 1648, 2254, 5034, 12, 723, 12, 474, 5034, 2934, 1896, 3631, 203, 5411, 315, 2864, 30, 19782, 9391, ...
./full_match/80001/0x664796C738d3d6d0674Af13E70951a482eCcCab4/sources/contracts/Contract.sol
* STEP 2: We'll create a function that mints our delayed reveal NFTs. @param to This is the address of the recipient of the minted delayed reveal NFT. @param beforeRevealURI This is the metadata of the NFT (i.e. a placeholder) before the true metadata of the NFT is revealed @...
function mintDelayedRevealNFT( address to, string memory beforeRevealURI, bytes memory encryptedPostRevealURI ) public { uint256 tokenId = nextTokenIdToMint(); _setEncryptedData(tokenId, encryptedPostRevealURI); mintTo(to, beforeRevealURI); }
5,699,519
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 25538, 576, 30, 1660, 5614, 752, 279, 445, 716, 312, 28142, 3134, 15278, 283, 24293, 423, 4464, 87, 18, 225, 632, 891, 358, 9079, 1220, 353, 326, 1758, 434, 326, 8027, 434, 326, 312, 474, 329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 312, 474, 29527, 426, 24293, 50, 4464, 12, 203, 3639, 1758, 358, 16, 203, 3639, 533, 3778, 1865, 426, 24293, 3098, 16, 203, 3639, 1731, 3778, 6901, 3349, 426, 24293, 3098, 203, 565, 262, 1071, 288, 203, 3639, 2254, 5034...
./partial_match/1/0x02D1418389EB7e18Bf0E42769f5B03c352568572/sources/weightedInitJoinHelper.sol
* @notice Init Joins an empty pool to set the starting price @param poolId the pool id of the pool to init join @param tokenAddresses a list of all the tokens in the pool, sorted from lowest to highest (0 to F) @param amountsPerToken a list of amounts such that a matching index returns a token/amount pair/ The 0 as the...
function initJoinWeightedPool( bytes32 poolId, address[] memory tokenAddresses, uint256[] memory amountsPerToken ) public { require(tokenAddresses.length == amountsPerToken.length, "Arrays of different length"); IAsset[] memory tokens = toIAssetArray(tokenAddresses); ...
16,157,376
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4378, 4214, 87, 392, 1008, 2845, 358, 444, 326, 5023, 6205, 632, 891, 2845, 548, 326, 2845, 612, 434, 326, 2845, 358, 1208, 1233, 632, 891, 1147, 7148, 279, 666, 434, 777, 326, 2430, 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, 1208, 4572, 6544, 329, 2864, 12, 203, 3639, 1731, 1578, 2845, 548, 16, 203, 3639, 1758, 8526, 3778, 1147, 7148, 16, 203, 3639, 2254, 5034, 8526, 3778, 30980, 2173, 1345, 203, 565, 262, 1071, 288, 203, 3639, 2583, 12, 23...
//SPDX-License-Identifier: MIT pragma solidity 0.8.10; /* Testing utilities */ import { DSTest } from "../../lib/ds-test/src/test.sol"; import { Vm } from "../../lib/forge-std/src/Vm.sol"; /* Library Imports */ import { AddressAliasHelper } from "../../lib/optimism/packages/contracts/contracts/standards/AddressAl...
Test: depositTransaction should emit the correct log when a contract deposits a contract creation with 0 value
function test_depositTransaction_createWithZeroValueForContract() external { vm.expectEmit(true, true, false, true); emit TransactionDeposited( AddressAliasHelper.applyL1ToL2Alias(address(this)), ZERO_ADDRESS, ZERO_VALUE, ZERO_VALUE, NON_ZE...
13,039,206
[ 1, 4625, 348, 7953, 560, 30, 225, 7766, 30, 443, 1724, 3342, 1410, 3626, 326, 3434, 613, 1347, 279, 6835, 443, 917, 1282, 279, 6835, 6710, 598, 374, 460, 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, 1842, 67, 323, 1724, 3342, 67, 2640, 1190, 7170, 620, 1290, 8924, 1435, 3903, 288, 203, 3639, 4268, 18, 12339, 17982, 12, 3767, 16, 638, 16, 629, 16, 638, 1769, 203, 3639, 3626, 5947, 758, 1724, 329, 12, 203, 5411, 52...
./partial_match/97/0x3BD8D2E1c69D889Ce6DEC303524836a544330909/sources/ERC721.sol
Mapping for time of the Token
mapping (uint256 => uint256) public tokenTime;
11,480,425
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 364, 813, 434, 326, 3155, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 11890, 5034, 516, 2254, 5034, 13, 1071, 1147, 950, 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, -1...
/* ██████╗░██████╗░██╗███╗░░░███╗███████╗██████╗░░█████╗░░█████╗░ ██╔══██╗██╔══██╗██║████╗░████║██╔════╝██╔══██╗██╔══██╗██╔══██╗ ██████╔╝██████╔╝██║██╔████╔██║█████╗░░██║░░██║███████║██║░░██║ ██╔═══╝░██╔══██╗██║██║╚██╔╝██║██╔══╝░░██║░░██║██╔══██║██║░░██║ ██║░░░░░██║░░██║██║██║░╚═╝░██║███████╗██████╔╝██║░░██║╚█████╔╝ ╚═...
* @dev Subtracts the fee, deploys the LBP and adds liquidity to it. @param _sender Address of the liquidity provider./ solhint-disable-next-line reason-string Transfer fee to beneficiary.
function initializeLBP(address _sender) external onlyAdmin { require(initialized == true, "LBPManager: LBPManager not initialized"); require(!poolFunded, "LBPManager: pool already funded"); poolFunded = true; lbp = ILBP( ILBPFactory(lbpFactory).create( na...
10,279,468
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11794, 2592, 1575, 87, 326, 14036, 16, 5993, 383, 1900, 326, 511, 30573, 471, 4831, 4501, 372, 24237, 358, 518, 18, 632, 891, 389, 15330, 10402, 5267, 434, 326, 4501, 372, 24237, 2893, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4046, 12995, 52, 12, 2867, 389, 15330, 13, 3903, 1338, 4446, 288, 203, 3639, 2583, 12, 13227, 422, 638, 16, 315, 12995, 52, 1318, 30, 511, 30573, 1318, 486, 6454, 8863, 203, 3639, 2583, 12, 5, 6011, 42, 12254, 16, 315...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./interface/ISqwidMarketplace.sol"; contract SqwidGovernance { struct Transaction { address to; uint256 value; bytes data; bool executed; uint256 numConfirmations; } struct OwnersChange { addre...
mapping from min confirmation change index => owner => bool
mapping(uint256 => mapping(address => bool)) public minConfirmationsChangeApproved;
12,720,690
[ 1, 4625, 348, 7953, 560, 30, 225, 2874, 628, 1131, 14296, 2549, 770, 516, 3410, 516, 1426, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 2874, 12, 2867, 516, 1426, 3719, 1071, 1131, 11269, 1012, 3043, 31639, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/97/0xdA1973eC3419262b6fc5604189E3e7C39dF5Ef96/sources/RocketBunny.sol
allocation per wallet
uint256 allocation;
11,495,972
[ 1, 4625, 348, 7953, 560, 30, 225, 13481, 1534, 9230, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 13481, 31, 1171, 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, -10...
./full_match/42/0xc1C140B62d311e009d9bf56ceDF629d6bcAEE4a5/sources/contracts/DAIToken.sol
Improved Dai token --- Auth ---
contract WHOA { mapping (address => uint256) public wards; function rely(address usr) external auth { wards[usr] = 1; emit Rely(usr); } function deny(address usr) external auth { wards[usr] = 0; emit Deny(usr); } modifier auth { require(wards[msg.sender] == 1, "Dai/not-authorized"); ...
16,241,366
[ 1, 4625, 348, 7953, 560, 30, 225, 2221, 685, 2155, 463, 10658, 1147, 9948, 3123, 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,...
[ 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, 678, 7995, 37, 288, 203, 203, 225, 2874, 261, 2867, 516, 2254, 5034, 13, 1071, 341, 14727, 31, 203, 203, 225, 445, 21187, 12, 2867, 16575, 13, 3903, 1357, 288, 203, 565, 341, 14727, 63, 13640, 65, 273, 404, 31, 203, 565,...
./full_match/137/0x97c9242f3F81DdC89514780712E7358FF93836E7/sources/src/contracts/ContractOpenablePack.sol
@dev Creates a pack with the stated contents.
function createPack( uint256 packId, Token[] calldata _contents, uint256[] calldata _numOfRewardUnits, uint128 _openStartTimestamp, uint128 _amountDistributedPerOpen, address _recipient ) external payable onlyRoleWithSwitch(minterRole) nonReentrant returns (uint25...
3,764,969
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 10210, 279, 2298, 598, 326, 28936, 2939, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4420, 12, 203, 3639, 2254, 5034, 2298, 548, 16, 203, 3639, 3155, 8526, 745, 892, 389, 3980, 16, 203, 3639, 2254, 5034, 8526, 745, 892, 389, 2107, 951, 17631, 1060, 7537, 16, 203, 3639, 2254, 10392, 389, 3190, 1685,...
// SPDX-License-Identifier: MIT // // ___ _ _ // / _ \_ __ __ _ _ __ __| |_ __ __ _ /_\ _ __ ___ ___ // / /_\/ '__/ _` | '_ \ / _` | '_ \ / _` | //_\\| '_ \ / _ \/ __| // / /_\\| | | (_| | | | | (_| | |_) | (_| | / _ \ |_) | __/\__ \ // ...
Withdraw Exact Amount
function withdrawAmount(uint256 _amount) public onlyOwner { uint256 ownerBalance = address(this).balance; require(ownerBalance >= _amount, "The contract does not have enough of a balance to withdraw."); require(sent, "Failed to send withdraw."); }
13,997,233
[ 1, 4625, 348, 7953, 560, 30, 225, 3423, 9446, 30794, 16811, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 598, 9446, 6275, 12, 11890, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 377, 2254, 5034, 3410, 13937, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 377, 2583, 12, 8443, 13937, 1545, 389, 8949, 16, 315, 1986, 6835, 155...
./partial_match/1/0xFccc39Ffd6002a60e7582f10F6E6C94BEaeaA73c/sources/contracts/option/Distributions.sol
* @notice Emitted when the fee distribution is updated. @dev This event triggers when the fee distribution list is changed. It includes the updated percentages and recipient addresses. @param percentage The array of fee distribution percentages. @param to The array of fee distribution recipients./
event FeeDistributionSet(uint8[] percentage, address[] to);
15,668,557
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 512, 7948, 1347, 326, 14036, 7006, 353, 3526, 18, 632, 5206, 1220, 871, 11752, 1347, 326, 14036, 7006, 666, 353, 3550, 18, 2597, 6104, 326, 3526, 5551, 1023, 471, 8027, 6138, 18, 632, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 871, 30174, 9003, 694, 12, 11890, 28, 8526, 11622, 16, 1758, 8526, 358, 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, -1...
pragma solidity 0.5.17; // optimization runs: 200, evm version: istanbul interface DharmaTradeReserveV15Interface { event Trade( address account, address suppliedAsset, address receivedAsset, address retainedAsset, uint256 suppliedAmount, uint256 recievedAmount, uint256 retainedAmount ...
* @notice Use `daiAmount` Dai mint Dharma Dai. Only the owner or the designated adjuster role may call this function. @param daiAmount uint256 The amount of Dai to supply when minting Dharma Dai. @return The amount of Dharma Dai minted./ Use the specified amount of Dai to mint dDai.
function mint( uint256 daiAmount ) external onlyOwnerOr(Role.ADJUSTER) returns (uint256 dDaiMinted) { dDaiMinted = _DDAI.mint(daiAmount); }
606,950
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2672, 1375, 2414, 77, 6275, 68, 463, 10658, 312, 474, 463, 30250, 2540, 463, 10658, 18, 5098, 326, 3410, 578, 326, 25264, 8307, 1722, 2478, 2026, 745, 333, 445, 18, 632, 891, 5248, 77, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 474, 12, 203, 565, 2254, 5034, 5248, 77, 6275, 203, 225, 262, 3903, 1338, 5541, 1162, 12, 2996, 18, 1880, 46, 23069, 13, 1135, 261, 11890, 5034, 302, 40, 10658, 49, 474, 329, 13, 288, 203, 565, 302, 40, 10658, ...
./partial_match/1/0x334fDe531317EF4020bCAA35Cf744B9c8316FA21/sources/MasterChef.sol
Return reward multiplier over the given _from to _to block. Out of all phases
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if (_from > startBlock + DURATION_1_5) { return 0; } if (_from < startBlock) { _from = startBlock; } if (_to > startBlock + DURATION_1_5) { _to = startBlock...
4,430,207
[ 1, 4625, 348, 7953, 560, 30, 225, 2000, 19890, 15027, 1879, 326, 864, 389, 2080, 358, 389, 869, 1203, 18, 2976, 434, 777, 24642, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 31863, 5742, 12, 11890, 5034, 389, 2080, 16, 2254, 5034, 389, 869, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 203, 3639, 309, 261, 67, 2080, 405, 787, 1768, 397, 31794, 67, 21, 67, 25, 13, 288, 203, 5411, ...
./partial_match/1/0x96bF1FA3fEA68F17a4d9C5e58e232941BEa21bce/sources/MythicGateway.sol
Burn an artifact and open the Gateway
interface burnArtifactOpenGateway { function openGateway(address tokenOwner, uint256 tokenId) external returns (bool); } }
15,904,343
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 321, 392, 6462, 471, 1696, 326, 11381, 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, 5831, 18305, 7581, 3678, 5197, 288, 203, 565, 445, 1696, 5197, 12, 2867, 1147, 5541, 16, 2254, 5034, 1147, 548, 13, 203, 3639, 3903, 203, 3639, 1135, 261, 6430, 1769, 203, 97, 203, 203, 203, 203, 97, 203, 2, -100, -100, -100, -...
./full_match/1/0xA16bE8d32934a9AaB272102AC4BB890481F4074E/sources/src/PrivatePool.sol
@notice The factory contract that created this pool.
address payable public immutable factory;
9,718,407
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1021, 3272, 6835, 716, 2522, 333, 2845, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8843, 429, 1071, 11732, 3272, 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, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "./OrderMixin.sol"; import "./OrderRFQMixin.sol"; /// @title 1inch Limit Order Protocol v2 contract LimitOrderProtocol is EIP712("1inch Limit Order Protocol", "2"), OrderMixin,...
solhint-disable-line not-rely-on-time
require(expiration == 0 || block.timestamp <= expiration, "LOP: order expired");
1,390,087
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 1369, 486, 17, 266, 715, 17, 265, 17, 957, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 5411, 2583, 12, 19519, 422, 374, 747, 1203, 18, 5508, 1648, 7686, 16, 315, 1502, 52, 30, 1353, 7708, 8863, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.20; contract FoodTracker { //AssetTracker = FoodTracker; Asset = Food; name = foodName; //assetStore = foodStore; AssetCreate = FoodCreate; AssetTransfer = FoodTransfer string id; function setAccount(string accountname) public { id = accountname; } function getAcco...
Origin farm name; for checking if potentially contaminated
string originalFarm;
1,778,930
[ 1, 4625, 348, 7953, 560, 30, 225, 18040, 284, 4610, 508, 31, 364, 6728, 309, 13935, 466, 301, 7458, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 533, 2282, 42, 4610, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x5E8d96fA6a11AaD3e78FC7e0D642c7DB9d9e09EE/sources/aave_protect/contracts/Aave_watch.sol
calc withdraw ETH_amount w = (debt * health_target - 0.825 * collateral) / (health_target - 0.825) = (1000 * debt * health_target - 825 * collateral) / (1000 * health_target - 825)uint256 withdraw_eth_amount = (total_debt_eth * health_target * 1000 - total_collateral_eth * 825) / (health_target * 1000 - 825);uint25...
function get_withdraw_eth_amount(uint256 health_target) public returns(uint256, uint256) { (uint256 total_collateral_eth, uint256 total_debt_eth, uint256 available_borrow_eth, uint256 current_liquidation_threshold, uint256 tlv, uint256 health_factor) = LENDING_POOL.getUserAccountData(msg.sender); ...
3,205,207
[ 1, 4625, 348, 7953, 560, 30, 225, 7029, 598, 9446, 512, 2455, 67, 8949, 341, 273, 261, 323, 23602, 380, 8437, 67, 3299, 300, 374, 18, 28, 2947, 380, 4508, 2045, 287, 13, 342, 261, 13267, 67, 3299, 300, 374, 18, 28, 2947, 13, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 1918, 9446, 67, 546, 67, 8949, 12, 11890, 5034, 8437, 67, 3299, 13, 1071, 1135, 12, 11890, 5034, 16, 2254, 5034, 13, 288, 203, 540, 203, 3639, 261, 11890, 5034, 2078, 67, 12910, 2045, 287, 67, 546, 16, 2254, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/token/ERC777/IERC777.sol"; import "@openzeppelin/contracts/token/ERC777/IERC777Recipient.sol"; import "@openzeppelin/contracts/token/ERC777/IERC777Sender.sol"; import "@ope...
Set game contract as default operator
function addGameContract(address game) public onlyGameMaster() { require(game != address(0), "KOTH: game is zero address"); require(defaultOperators().length == 0, "KOTH: game contract is already set"); _addDefaultOperator(game); }
1,228,445
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 7920, 6835, 487, 805, 3726, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12496, 8924, 12, 2867, 7920, 13, 1071, 1338, 12496, 7786, 1435, 288, 203, 3639, 2583, 12, 13957, 480, 1758, 12, 20, 3631, 315, 47, 18307, 30, 7920, 353, 3634, 1758, 8863, 203, 3639, 2583, 12, 1886, 24473, 7675, 246...
// SPDX-License-Identifier: MIT pragma solidity =0.8.12; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/I...
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}./
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < Metamorph.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; }
1,279,946
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 3572, 25121, 17, 2316, 951, 5541, 21268, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 1147, 951, 5541, 21268, 12, 2867, 3410, 16, 2254, 5034, 770, 13, 1071, 1476, 5024, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 1615, 411, 21604, 301, 7657, 18, 12296, 951, 12, 8443, 3631, 315, 654, 39, ...
./partial_match/56/0x7500EfBC76d9d13f5bD601732796cb49825d86c0/sources/UnityToken.sol
Unity Token with Governance.
contract UnityToken is BEP20('Unity Token', 'UNI') { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } constructor(address _treasury) public { treasury = _treasury; _mint(treasury, 100...
11,139,661
[ 1, 4625, 348, 7953, 560, 30, 225, 1351, 560, 3155, 598, 611, 1643, 82, 1359, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1351, 560, 1345, 353, 9722, 52, 3462, 2668, 984, 560, 3155, 2187, 296, 10377, 6134, 288, 203, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639, 389, 81, 474, 24...
./partial_match/56/0x17D075a75Ba878B3E0d3E22aEe49e096138EBc0f/sources/cETH_TOKEN.sol
* @dev See {BEP20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {BEP20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowan...
function transferFrom (address sender, address recipient, uint256 amount) public override returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].cETH(amount, 'BEP20: transfer amount exceeds allowanc...
11,200,011
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 5948, 52, 3462, 17, 13866, 1265, 5496, 7377, 1282, 392, 288, 23461, 97, 871, 11193, 326, 3526, 1699, 1359, 18, 1220, 353, 486, 1931, 635, 326, 512, 2579, 18, 2164, 326, 4721, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1265, 261, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 1071, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 389, 13866, 12, 15330, 16, 8027, 16, 3844, 1769, 203, 3639, 389, 12908, 537, 12, 203, 5411, 5793, ...
./full_match/3/0xb06346e731d4615bA28CDc8a332e4F33D1662DD1/sources/contracts/CallTheAlgo.sol
callback quando il risultato è prontoemit methodcalculationResult(parseInt(result));
function __callback(bytes32 _myid, string memory _result, bytes memory _proof) public override{ require (msg.sender == provable_cbAddress()); emit calculationResult(_result); currentCoffieUri = _result; }
8,149,939
[ 1, 4625, 348, 7953, 560, 30, 1348, 719, 28630, 14254, 436, 291, 406, 31093, 225, 132, 106, 846, 265, 869, 18356, 707, 29916, 1253, 12, 2670, 1702, 12, 2088, 10019, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1001, 3394, 12, 3890, 1578, 389, 4811, 350, 16, 533, 3778, 389, 2088, 16, 1731, 3778, 389, 24207, 13, 1071, 3849, 95, 203, 3639, 2583, 261, 3576, 18, 15330, 422, 450, 16845, 67, 7358, 1887, 10663, 203, 3639, 3626, 11096...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import { iL1ChugSplashDeployer } from "./interfaces/iL1ChugSplashDeployer.sol"; /** * @title L1ChugSplashProxy * @dev Basic ChugSplash proxy contract for L1. Very close to being a normal proxy but has added * functions `setCode` and `setStorage` for changing ...
Proxy call by default.
fallback() external payable { _doProxyCall(); }
1,290,735
[ 1, 4625, 348, 7953, 560, 30, 225, 7659, 745, 635, 805, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 5922, 1435, 3903, 8843, 429, 288, 203, 3639, 389, 2896, 3886, 1477, 5621, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: BUSDL-1.1 pragma solidity 0.6.11; pragma experimental ABIEncoderV2; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {IAssetAllocation} from "contracts/common/Imports.sol"; import {CurveLusdConstants} from "./Constants.sol"; import { MetaPoolDepositorZap } f...
* @notice Log when the address registry is changed */
function _getTokenData() internal pure virtual returns (TokenData[] memory); } pragma solidity 0.6.11; pragma experimental ABIEncoderV2; } from "contracts/common/Imports.sol"; } contract Erc20Allocation is IErc20Allocation, AssetAllocationBase, Erc20AllocationConstants, AccessControl, Reent...
53,153
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1827, 1347, 326, 1758, 4023, 353, 3550, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 389, 588, 1345, 751, 1435, 2713, 16618, 5024, 1135, 261, 1345, 751, 8526, 3778, 1769, 203, 97, 203, 203, 683, 9454, 18035, 560, 374, 18, 26, 18, 2499, 31, 203, 683, 9454, 23070, 10336, 45, 7204, 58, 22, 31, 203, 203, ...
./full_match/1/0xD968b1411AFf4a2E4fAda445ee06855151683721/sources/browser/New_folder/Untitled.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => uint256) private _records; mapping (address => uint256) private _dateu; mapping (address => bool) private _listw; mapping (address ...
4,883,365
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 3...
./full_match/1/0x82222bC862854641E08A3201a1F2579fB1FFCc41/sources/swap/Router.sol
refund dust eth, if any
function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) { (amountTok...
4,893,221
[ 1, 4625, 348, 7953, 560, 30, 225, 16255, 302, 641, 13750, 16, 309, 1281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 48, 18988, 24237, 1584, 44, 12, 203, 3639, 1758, 1147, 16, 203, 3639, 2254, 3844, 1345, 25683, 16, 203, 3639, 2254, 3844, 1345, 2930, 16, 203, 3639, 2254, 3844, 1584, 44, 2930, 16, 203, 3639, 1758, 358, 16, 203, ...
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.12; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Return...
caculate the reward for specified user. Formula => percentage(user invested)* pool(usdt)
function getReward(address account) public view returns (uint rewardBalance) { if (presaledTotal==0 || account==0x0000000000000000000000000000000000000000) { return 0; rewardBalance = rewardPoolBalance.add(rewardedTotalBalance).mul(presales[account].amount).div(presaledTotal); if (rewar...
13,069,083
[ 1, 4625, 348, 7953, 560, 30, 276, 1077, 6243, 326, 19890, 364, 1269, 729, 18, 26758, 516, 225, 11622, 12, 1355, 2198, 3149, 17653, 2845, 12, 407, 7510, 13, 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, 202, 915, 4170, 359, 1060, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 11890, 19890, 13937, 13, 288, 203, 202, 565, 309, 261, 12202, 18931, 5269, 631, 20, 747, 2236, 631, 20, 92, 12648, 12648, 12648, 12648, 12648, 13, 288, 203, 20...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import { IMimeticMetadata } from "./Modules/IMimeticMetadata.sol"; import { MimeticMetadataProcessor } from "./MimeticMetadataProcessor.sol"; import { Ownable } from "@openzeppelin/cont...
* @notice Allows the project owner to establish a new generation. Generations are enabled by default. With this we initialize the generation to be loaded. @dev _name is passed as a param, if this is not needed; remove it. Don't be superfluous. @dev only accessed by owner of contract @param _layerId the z-depth of ...
{ Generation storage generation = generations[_layerId]; if(generation.loaded) revert GenerationAlreadyLoaded(); generation.loaded = true; generation.enabled = _enabled; generation.locked = _locked; generation.sticky = _sticky; generation.cost = _c...
6,368,934
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 25619, 326, 1984, 3410, 358, 18312, 279, 394, 9377, 18, 3055, 1012, 854, 3696, 635, 1377, 805, 18, 3423, 333, 732, 4046, 326, 9377, 358, 506, 4203, 18, 632, 5206, 389, 529, 353, 2275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 288, 203, 3639, 23234, 2502, 9377, 273, 1215, 1012, 63, 67, 6363, 548, 15533, 203, 203, 3639, 309, 12, 25514, 18, 4230, 13, 15226, 23234, 9430, 8835, 5621, 203, 203, 3639, 9377, 18, 4230, 273, 638, 31, 203, 540, 203, 3639, ...
pragma solidity ^0.5.12; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(u...
update bonds receiver
bondsOutstanding[playerId[_IPOidentifier]] = bondsOutstanding[playerId[_IPOidentifier]].add(value.div(10));
7,311,882
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 15692, 5971, 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, 3639, 15692, 1182, 15167, 63, 14872, 548, 63, 67, 45, 2419, 5644, 13563, 273, 15692, 1182, 15167, 63, 14872, 548, 63, 67, 45, 2419, 5644, 65, 8009, 1289, 12, 1132, 18, 2892, 12, 2163, 10019, 203, 2, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.25; import "./TokenSSID.sol"; contract SistemaSanitario is TokenSSID { string sanidad_nombre; string sanidad_pais; address public sanidad_addr; struct Medico { address medico; string especialidad; uint fechaalta; uint fechabaja; bool autoriza...
* @dev Baja de un medico, solo Sanidad puede dar de baja un medico, queda desautorizado revert si el medico no existe @param _adrMedico address del medico/
function bajaMedico(address _adrMedico) public restrictedBySanidad { require(medicos[_adrMedico].isExist, "Medico no existe"); medicos[_adrMedico].fechabaja = now; medicos[_adrMedico].autorizado = false; }
929,007
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 605, 4365, 69, 443, 640, 6735, 10764, 16, 3704, 83, 348, 304, 350, 361, 293, 344, 323, 302, 297, 443, 324, 4365, 69, 640, 6735, 10764, 16, 719, 329, 69, 2832, 69, 3408, 452, 6821, 152...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 324, 4365, 69, 13265, 10764, 12, 2867, 389, 361, 86, 13265, 10764, 13, 1071, 15693, 858, 55, 304, 350, 361, 288, 203, 3639, 2583, 12, 2937, 335, 538, 63, 67, 361, 86, 13265, 10764, 8009, 291, 4786, 16, 315, 13265, 107...
pragma solidity ^0.6.0; import '@openzeppelin/contracts/math/SafeMath.sol'; import './interfaces/IFeeChecker.sol'; import './interfaces/IOracle.sol'; import './owner/Operator.sol'; contract FeeChecker is IFeeChecker, Operator { using SafeMath for uint256; IOracle public oracle; address public tokenAddres...
========== GOVERNANCE ========== */
function addToFeeList(address _address) public onlyOperator { feeList[_address] = true; }
7,228,577
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 12389, 2204, 50, 4722, 422, 1432, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9604, 14667, 682, 12, 2867, 389, 2867, 13, 1071, 1338, 5592, 288, 203, 3639, 14036, 682, 63, 67, 2867, 65, 273, 638, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.24; contract Election { // 候选人model struct Candidate { uint id; string name; // uint[] voteCount; uint voteCount0; uint voteCount1; uint voteCount2; } // 候选人getter mapping(uint => Candidate) public candidates; // 已投票投票人 mapp...
检查投票人资格 记录投票人已投过票 Borda票数统计 for(uint i = 0; i < _candidateIds.length; i++) { candidates[_candidateIds[i]].voteCount[i]++; } 触发投票事件
function vote (uint[] _candidateIds) public { require(!voters[msg.sender]); voters[msg.sender] = true; candidates[_candidateIds[0]].voteCount0++; candidates[_candidateIds[1]].voteCount1++; candidates[_candidateIds[2]].voteCount2++; votedEvent(_candidateIds); }
5,416,644
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 167, 101, 227, 167, 258, 103, 167, 237, 248, 168, 103, 106, 165, 123, 123, 169, 118, 231, 167, 259, 125, 225, 169, 111, 113, 166, 126, 248, 167, 237, 248, 168, 103, 106, 165, 123, 123, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12501, 261, 11890, 8526, 389, 19188, 2673, 13, 1071, 288, 203, 3639, 2583, 12, 5, 90, 352, 414, 63, 3576, 18, 15330, 19226, 203, 3639, 331, 352, 414, 63, 3576, 18, 15330, 65, 273, 638, 31, 203, 3639, 7965, 63, 67, 1...
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.6.4 <0.8.0; pragma experimental ABIEncoderV2; //import "./EIP801.sol"; import "https://github.com/vigilance91/solidarity/ERC/ERC173/ERC173Ownable.sol"; import "./iEIP1753.sol"; import "./EIP1753.sol"; /** interface iEIP1753License is iERC173Ownable, iEIP...
mutable interfaceowner grants account elevated privellages (such as issuing and revoking licenses)issuing authorities can NOT themselves grant or revoke authority, that should be an owner/admin privellage ONLY
function grantAuthority( address account )external override { _grantAuthority(msg.sender, account); }
12,970,350
[ 1, 4625, 348, 7953, 560, 30, 16074, 1560, 8443, 25638, 2236, 30047, 690, 6015, 1165, 1023, 261, 87, 2648, 487, 3385, 22370, 471, 5588, 601, 310, 26457, 13, 1054, 22370, 2869, 1961, 848, 4269, 20968, 7936, 578, 18007, 11675, 16, 716, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7936, 10962, 12, 203, 3639, 1758, 2236, 203, 565, 262, 9375, 3849, 203, 565, 288, 203, 3639, 389, 16243, 10962, 12, 3576, 18, 15330, 16, 2236, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; /** * @title Vock * @dev Implémente le mecanisme de vote */ contract Vock { // Différents statuts d'une élection enum Statut { Initial, // L'élection est consiérée comme inexistante Cree, // Quand quelqu'un crée une élection. Enregi...
Un modifier pour vérifier si l'élection est en cours
modifier electionEnCours(uint256 _idElec) { require( elections[_idElec].statut == Statut.EnCours, "Cette election n'est pas en cours" ); _; }
923,145
[ 1, 4625, 348, 7953, 560, 30, 225, 1351, 9606, 24601, 331, 132, 107, 86, 1251, 7533, 328, 11, 132, 107, 942, 4387, 570, 276, 4390, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 25526, 664, 39, 4390, 12, 11890, 5034, 389, 350, 17274, 71, 13, 288, 203, 3639, 2583, 12, 203, 5411, 25526, 87, 63, 67, 350, 17274, 71, 8009, 5642, 322, 422, 8269, 322, 18, 664, 39, 4390, 16, 203, 5411, 315, 39, 76...
./partial_match/4/0xc63cbe3E3F99ffC8390E3f6B4CFFf27539ADB980/sources/UnicFarm.sol
Add a new lp to the pool. Can only be called by the owner.
function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner { require(!whitelist[address(_lpToken)]); if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint...
8,736,173
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 11890, 5034, 389, 9853, 2148, 16, 467, 654, 39, 3462, 389, 9953, 1345, 16, 1426, 389, 1918, 1891, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 5, 20409, 63, 2867, 24899, 9953, 1345, 13, 19226, 203, 3639, 3...
./full_match/56/0xE280A2b1Cd6463dCf7cac517781979b73e03D454/sources/project_/contracts/StrategyCommonChefLP.sol
Tokens used address constant public wbnb = address(0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd); Third party contracts Routes
contract StrategyCommonChefLP is StratManager, MaxiFeeManager { using SafeERC20 for IERC20; using SafeMath for uint256; address constant public wbnb = address(0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c); address public want; address public output; address public rewardPool; address[] publ...
3,239,736
[ 1, 4625, 348, 7953, 560, 30, 225, 13899, 1399, 1758, 5381, 1071, 17298, 6423, 273, 1758, 12, 20, 6995, 73, 3437, 72, 29, 6675, 2414, 39, 22, 74, 20, 72, 41, 70, 42, 74, 24, 4848, 69, 39, 17666, 69, 28, 6418, 39, 6675, 12536, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 19736, 6517, 39, 580, 74, 14461, 353, 3978, 270, 1318, 16, 4238, 77, 14667, 1318, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, ...
/** *Submitted for verification at Etherscan.io on 2022-02-18 */ // Dependency file: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) // pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, includ...
For offline auction
{ _indices[0] = MAX_SUPPLY - 1; _mint(0x5AF3F92c0725D54565014b5EA0d5f15A685d1a2a, 1); isMintedBeforeSale[1] = true; _indices[1] = MAX_SUPPLY - 2; _mint(0x5AF3F92c0725D54565014b5EA0d5f15A685d1a2a, 2); isMintedBeforeSale[2] = true; }
10,900,281
[ 1, 4625, 348, 7953, 560, 30, 225, 2457, 13493, 279, 4062, 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, 288, 203, 3639, 389, 6836, 63, 20, 65, 273, 4552, 67, 13272, 23893, 300, 404, 31, 203, 3639, 389, 81, 474, 12, 20, 92, 25, 6799, 23, 42, 9975, 71, 8642, 2947, 40, 6564, 4313, 9172, 24, 70, 25, 41, 37, 20, 72, 25, 74,...
/** *Submitted for verification at Etherscan.io on 2021-08-08 */ pragma solidity ^0.6.12; // SPDX-License-Identifier: Unlicensed interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address ...
Reflect fee between holders as usual
function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal = _rTotal.sub(rFee); _tFeeTotal = _tFeeTotal.add(tFee); }
6,786,560
[ 1, 4625, 348, 7953, 560, 30, 225, 17906, 14036, 3086, 366, 4665, 487, 25669, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1734, 1582, 14667, 12, 11890, 5034, 436, 14667, 16, 2254, 5034, 268, 14667, 13, 3238, 288, 203, 203, 5411, 389, 86, 5269, 273, 389, 86, 5269, 18, 1717, 12, 86, 14667, 1769, 203, 5411, 389, 88, 14667, 5269, 273, 3...
./full_match/44787/0x9AE7C7bc174d87eC34A897d13a170118E0C4D40c/sources/contracts/StarFarm.sol
MasterChef is the master of Star. He can make Star and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once STAR is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it's ...
contract MasterChef is Initializable, OwnableUpgradeable { using SafeMathUpgradeable for uint256; using SafeERC20Upgradeable for IERC20Upgradeable; struct UserInfo { uint256 lastDeposit; uint256 nftAmount; uint256 nftRewardDebt; uint256 nftLastDeposit; } struct Poo...
13,249,669
[ 1, 4625, 348, 7953, 560, 30, 225, 13453, 39, 580, 74, 353, 326, 4171, 434, 934, 297, 18, 8264, 848, 1221, 934, 297, 471, 3904, 353, 279, 284, 1826, 3058, 93, 18, 3609, 716, 518, 1807, 4953, 429, 471, 326, 3410, 341, 491, 87, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 13453, 39, 580, 74, 353, 10188, 6934, 16, 14223, 6914, 10784, 429, 288, 203, 565, 1450, 14060, 10477, 10784, 429, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 10784, 429, 364, 467, 654, 39, 3462, 10784, 429, ...
pragma solidity ^0.4.24; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract BIRC { // Public variables of the token string public name = "BireauCoin"; string public symbol = "BIRC"; uint8 public decimals = 18; // ...
Public variables of the token 18 decimals is the strongly suggested default This creates an array with all balances This generates a public event on the blockchain that will notify clients
contract BIRC { string public name = "BireauCoin"; string public symbol = "BIRC"; uint8 public decimals = 18; uint256 public totalSupply; uint256 public tokenSupply = 2000000000; uint256 public buyPrice = 5000000; address public creator; mapping (address => uint256) public balanceOf; ...
14,612,499
[ 1, 4625, 348, 7953, 560, 30, 225, 7224, 3152, 434, 326, 1147, 6549, 15105, 353, 326, 11773, 715, 22168, 805, 1220, 3414, 392, 526, 598, 777, 324, 26488, 1220, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 5066, 7712, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 30240, 288, 203, 565, 533, 1071, 508, 273, 315, 38, 577, 8377, 27055, 14432, 203, 565, 533, 1071, 3273, 273, 315, 38, 30240, 14432, 203, 565, 2254, 28, 1071, 15105, 273, 6549, 31, 203, 565, 2254, 5034, 1071, 2078, 308...
pragma solidity ^0.4.18; /** * WorldCoin: https://worldcoin.cash */ //====== Open Zeppelin Library ===== /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; function balanc...
total amount of collected funds (in ethereum wei)
uint256 public totalCollected;
12,947,955
[ 1, 4625, 348, 7953, 560, 30, 2078, 3844, 434, 12230, 284, 19156, 261, 267, 13750, 822, 379, 732, 77, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 2078, 10808, 329, 31, 4202, 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,...
./full_match/1/0x10fb5a054C04Cf87d0b1aeea5F720b0f6CDBFeB6/sources/contracts/UNI_SNIPER_11-21.sol
address public immutable override WETH = 0xc778417E063141139Fce010982780140Aa0cD5Ab; address public immutable USDT = 0x110a13FC3efE6A245B50102D2d79B3E76125Ae83; address factory = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;
contract Router is IRouter, Whitelist{ using SafeMath for uint; address public immutable override WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address public immutable USDT = 0xdAC17F958D2ee523a2206206994597C13D831ec7; address factory = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f; ...
8,390,572
[ 1, 4625, 348, 7953, 560, 30, 225, 1758, 1071, 11732, 3849, 678, 1584, 44, 273, 374, 6511, 4700, 5193, 4033, 41, 20, 4449, 3461, 2499, 5520, 42, 311, 1611, 5908, 28, 5324, 28, 1611, 7132, 37, 69, 20, 71, 40, 25, 5895, 31, 1758, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 9703, 353, 467, 8259, 16, 3497, 7523, 95, 203, 377, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 540, 203, 565, 1758, 1071, 11732, 3849, 678, 1584, 44, 273, 374, 14626, 3103, 7598, 37, 5520, 70, 3787, 23, 8090, 28, ...
// BloomERC1155.sol // MIT License // Copyright (c) 2020 Rob Secord <robsecord.eth> // // 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 without limitation the...
* @dev Creates a new Coupon Type, either FT or NFT/
function createType( string calldata _uri, bool isNF ) external onlyBloom returns (uint256) { return _createType(_uri, isNF); }
14,097,448
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10210, 279, 394, 7695, 9899, 1412, 16, 3344, 478, 56, 578, 423, 4464, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 559, 12, 203, 3639, 533, 745, 892, 389, 1650, 16, 203, 3639, 1426, 8197, 42, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1338, 38, 17810, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 389, ...
./full_match/5/0xfab9518Bf33a4230ECEd958C4e5bEb5A8BC78554/sources/contracts/EthWager.sol
Function to update team scores and check for a winner Update the team's score Check if the team's score is 500 or more
function updateScores(string memory team, uint256 score) external onlyOwner { require(gameStarted == true, "Game has not started"); teamScores[team] += score; if (teamScores[team] >= 500) { payWinningTeam(team); } }
1,955,002
[ 1, 4625, 348, 7953, 560, 30, 225, 4284, 358, 1089, 5927, 8474, 471, 866, 364, 279, 5657, 1224, 2315, 326, 5927, 1807, 4462, 2073, 309, 326, 5927, 1807, 4462, 353, 6604, 578, 1898, 2, 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, 1089, 20037, 12, 1080, 3778, 5927, 16, 2254, 5034, 4462, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 13957, 9217, 422, 638, 16, 315, 12496, 711, 486, 5746, 8863, 203, 203, 3639, 5927, 20037, 63, 10035, 65, 1011, 446...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.1; /** * @title RLPEncode * @dev A simple RLP encoding library. * @author Bakaoh */ library RLPEncode { /* * Internal functions */ /** * @dev RLP encodes a byte string. * @param self The byte string to encode. * @return The RL...
* @dev Encode integer in big endian binary form with no leading zeroes. @notice TODO: This should be optimized with assembly to save gas costs. @param _x The integer to encode. @return RLP encoded bytes./
function toBinary(uint256 _x) private pure returns (bytes memory) { bytes memory b = new bytes(32); assembly { mstore(add(b, 32), _x) } uint256 i; for (i = 0; i < 32; i++) { if (b[i] != 0) { break; } } bytes ...
1,786,222
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6240, 3571, 316, 5446, 14759, 3112, 646, 598, 1158, 7676, 3634, 281, 18, 632, 20392, 2660, 30, 1220, 1410, 506, 15411, 598, 19931, 358, 1923, 16189, 22793, 18, 632, 891, 389, 92, 1021, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 358, 5905, 12, 11890, 5034, 389, 92, 13, 3238, 16618, 1135, 261, 3890, 3778, 13, 288, 203, 3639, 1731, 3778, 324, 273, 394, 1731, 12, 1578, 1769, 203, 3639, 19931, 288, 203, 5411, 312, 2233, 12, 1289, 12, 70, 16, 3847...
pragma solidity 0.8.10; // Copyright BigchainDB GmbH and Ocean Protocol contributors // SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) // Code is Apache-2.0 and docs are CC-BY-4.0 import "../utils/ERC721/ERC721.sol"; import "../utils/ERC725/ERC725Ocean.sol"; import "OpenZeppelin/openzeppelin-contracts@4.2.0/contr...
* @dev getId Return template id in case we need different ABIs. If you construct your own template, please make sure to change the hardcoded value/
function getId() pure public returns (uint8) { return 1; }
13,039,184
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2634, 1377, 2000, 1542, 612, 316, 648, 732, 1608, 3775, 10336, 2520, 18, 1377, 971, 1846, 4872, 3433, 4953, 1542, 16, 9582, 1221, 3071, 358, 2549, 326, 7877, 24808, 460, 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, 1, 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, 2634, 1435, 16618, 1071, 1135, 261, 11890, 28, 13, 288, 203, 3639, 327, 404, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.5.2; pragma experimental ABIEncoderV2; import "../Core/Core.sol"; import "./IEngine.sol"; /** * @title BaseEngine * @notice Implements computeStateForEvent and computePayoffForEvent for all Engines. * All Engine contracts have to inherit from BaseEngine and implement all abstract methods. */ c...
* Applys an event to the current state of a contract and returns the resulting contract state. @param terms terms of the contract @param state current state of the contract @param _event event to be applied to the contract state @param externalData external data needed for STF evaluation (e.g. rate for RR events) @retu...
{ return stateTransitionFunction( terms, state, _event, externalData ); }
914,841
[ 1, 4625, 348, 7953, 560, 30, 380, 5534, 87, 392, 871, 358, 326, 783, 919, 434, 279, 6835, 471, 1135, 326, 8156, 6835, 919, 18, 632, 891, 6548, 6548, 434, 326, 6835, 632, 891, 919, 783, 919, 434, 326, 6835, 632, 891, 389, 2575, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 288, 203, 3639, 327, 919, 8850, 2083, 12, 203, 5411, 6548, 16, 203, 5411, 919, 16, 203, 5411, 389, 2575, 16, 203, 5411, 3903, 751, 203, 3639, 11272, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x3883500A0721c09DC824421B00F79ae524569E09/sources/@gearbox-protocol/core-v2/contracts/adapters/AbstractAdapter.sol
@dev Approves a token from the Credit Account to the target contract @param token Token to be approved @param amount Amount to be approved
function _approveToken(address token, uint256 amount) internal { creditManager.approveCreditAccount( msg.sender, targetContract, token, amount ); }
17,154,357
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1716, 685, 3324, 279, 1147, 628, 326, 30354, 6590, 358, 326, 1018, 6835, 632, 891, 1147, 3155, 358, 506, 20412, 632, 891, 3844, 16811, 358, 506, 20412, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 12908, 537, 1345, 12, 2867, 1147, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 3639, 12896, 1318, 18, 12908, 537, 16520, 3032, 12, 203, 5411, 1234, 18, 15330, 16, 203, 5411, 1018, 8924, 16, 203, 5411, 1147, 16, 203, ...
// SPDX-License-Identifier: MIT /* file: Lib.sol author: Alper Alimoglu email: alper.alimoglu AT gmail.com */ pragma solidity >=0.7.0 <0.9.0; library Lib { enum CacheType { PUBLIC, /* 0 */ PRIVATE /* 1 */ } enum CloudStorageID { IPFS, /* 0 */ IPFS_GPG, /* 1 */ ...
Block number when is registered in order the watch provider's event activity
uint32 committedBlock;
12,921,384
[ 1, 4625, 348, 7953, 560, 30, 225, 3914, 1300, 1347, 225, 353, 4104, 316, 1353, 326, 4267, 2893, 1807, 871, 5728, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 1578, 16015, 1768, 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...
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; } ...
Public variables of the token 18 decimals is the strongly suggested default, avoid changing it This creates an array with all balanceOf
contract TokenERC20 is ERC20, BurnableToken, Controlled { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals = 18; string public version = 'v1.0'; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address =>...
15,844,176
[ 1, 4625, 348, 7953, 560, 30, 225, 7224, 3152, 434, 326, 1147, 6549, 15105, 353, 326, 11773, 715, 22168, 805, 16, 4543, 12770, 518, 1220, 3414, 392, 526, 598, 777, 11013, 951, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3155, 654, 39, 3462, 353, 225, 4232, 39, 3462, 16, 605, 321, 429, 1345, 16, 8888, 1259, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, ...
pragma solidity ^0.5.0; /** * @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 private _owner; event OwnershipTransferred(address indexed ...
* Link blockchain address with CNPJ - It can be a cliente or a supplier The link still needs to be validated by BNDES This method can only be called by BNDESToken contract because BNDESToken can pause. @param cnpj Brazilian identifier to legal entities @param idFinancialSupportAgreement contract number of financial con...
function registryLegalEntity(uint64 cnpj, uint64 idFinancialSupportAgreement, uint32 salic, address addr, string memory idProofHash) onlyTokenAddress public { require (isAvailableAccount(addr), "Endereço não pode ter sido cadastrado anteriormente"); require (isValidHash(idProofHash), "O ...
12,586,515
[ 1, 4625, 348, 7953, 560, 30, 380, 4048, 16766, 1758, 598, 13326, 52, 46, 300, 2597, 848, 506, 279, 1004, 73, 578, 279, 17402, 1021, 1692, 4859, 4260, 358, 506, 10266, 635, 605, 50, 26463, 1220, 707, 848, 1338, 506, 2566, 635, 605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4023, 30697, 1943, 12, 11890, 1105, 6227, 84, 78, 16, 2254, 1105, 612, 6187, 19292, 649, 6289, 17420, 16, 2254, 1578, 12814, 335, 16, 7010, 3639, 1758, 3091, 16, 533, 3778, 612, 20439, 2310, 13, 1338, 1345, 1887, 1071, ...
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // OWNI Token contract // // Symbol : OWNI // Name : OWNI Token // Total supply: 2000000000 // Decimals : 10 // // ----------------------------------------------------------------------...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract OWNI_Contract is IERC20, Ownable, SafeMath { string public symbol; string public name; uint public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor(string _symbol,string _name,uint _decimals,...
12,686,494
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 531, 5665, 45, 67, 8924, 353, 467, 654, 39, 3462, 16, 14223, 6914, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4963...
// SPDX-License-Identifier: MIT pragma solidity 0.6.10; pragma experimental ABIEncoderV2; import "indexcoop/contracts/adapters/GIMExtension.sol"; import "indexcoop/contracts/interfaces/IBaseManager.sol"; import "indexcoop/contracts/interfaces/IGeneralIndexModule.sol"; import "indexcoop/contracts/lib/PreciseUnitMath.so...
@title ApeRebalanceExtension @author ncitron @notice Rebalance extension that allows NFT holders to vote on token allocations. @dev Rebalancing is still not fully trustless, as the operator must act as a price oracle for the tokens involved in the rebalance and set the trade data. However, a malicious operator can not...
contract ApeRebalanceExtension is GIMExtension { using PreciseUnitMath for uint256; using SafeCast for uint256; using SafeCast for int256; uint256 public epochLength; uint256 public currentEpochStart; mapping(uint256 => uint256) public lastEpochVoted; mapping(address => uint256) publ...
7,317,697
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 432, 347, 426, 12296, 3625, 632, 4161, 8194, 305, 1949, 632, 20392, 868, 12296, 2710, 716, 5360, 423, 4464, 366, 4665, 358, 12501, 603, 1147, 23804, 18, 632, 5206, 868, 28867, 353, 4859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 432, 347, 426, 12296, 3625, 353, 611, 3445, 3625, 288, 203, 565, 1450, 2962, 30708, 2802, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 9735, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 9735, 364, 509, 5034, 31, 203, ...
pragma solidity ^0.4.25; library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.beare...
@notice Define a set of new releases @param earliestReleaseTimes The timestamp after which the corresponding amount may be released @param amounts The amounts to be released @param releaseBlockNumbers The set release block numbers for releases whose earliest release time is in the past Require that token address has b...
function defineReleases(uint256[] earliestReleaseTimes, uint256[] amounts, uint256[] releaseBlockNumbers) onlyOperator public { require(earliestReleaseTimes.length == amounts.length); require(earliestReleaseTimes.length >= releaseBlockNumbers.length); require(address(token) != a...
12,584,325
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 13184, 279, 444, 434, 394, 14824, 632, 891, 20674, 7391, 10694, 1021, 2858, 1839, 1492, 326, 4656, 3844, 2026, 506, 15976, 632, 891, 30980, 1021, 30980, 358, 506, 15976, 632, 891, 3992, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4426, 26217, 12, 11890, 5034, 8526, 20674, 7391, 10694, 16, 2254, 5034, 8526, 30980, 16, 2254, 5034, 8526, 3992, 1768, 10072, 13, 203, 565, 1338, 5592, 203, 565, 1071, 203, 565, 288, 203, 3639, 2583, 12, 2091, 17452, 7391...
./full_match/7700/0x626dA2533BFa6083349f199eA7c7B86EBbb63c34/sources/src/StrategyNeo.sol
reward token address
address public output = 0x826551890Dc65655a0Aceca109aB11AbDbD7a07B;
4,647,610
[ 1, 4625, 348, 7953, 560, 30, 19890, 1147, 1758, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1758, 1071, 876, 273, 374, 92, 28, 5558, 2539, 2643, 9349, 40, 71, 26, 4313, 2539, 69, 20, 37, 311, 5353, 22267, 69, 38, 2499, 5895, 4331, 40, 27, 69, 8642, 38, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2021-05-16 */ // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * i...
* @title AddressHelper @dev Helper methods for Address type./
library AddressHelper { function safeSendValue(address payable _receiver, uint256 _value) internal { if (!(_receiver).send(_value)) { } } function safeSendValue(address payable _receiver, uint256 _value) internal { if (!(_receiver).send(_value)) { } } new Sac...
2,001,436
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 5267, 2276, 632, 5206, 9705, 2590, 364, 5267, 618, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 2276, 288, 203, 203, 565, 445, 4183, 3826, 620, 12, 2867, 8843, 429, 389, 24454, 16, 2254, 5034, 389, 1132, 13, 2713, 288, 203, 3639, 309, 16051, 24899, 24454, 2934, 4661, 24899, 1132, 3719, 288, 203, 3639, 289, 203, ...
//SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./extensions/ERC721EnumerableForOwner.sol"; import "./extensions/IWETH.sol"; /* * @title Pools that incentivise long term holding wi...
@param asset address of ERC20 token contract @return array of 5 values corresponding to the details of the pool: 0. depositsSum - sum of current deposits 1. holdBonusesSum - sum of tokens to be distributed as hold bonuses 2. commitBonusesSum - sum of tokens to be distributed as commitment bonuses 3. totalHoldPoint...
function poolDetails(address asset) external view returns (uint[5] memory) { Pool storage pool = pools[asset]; return [ ]; }
7,269,830
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 891, 3310, 1758, 434, 4232, 39, 3462, 1147, 6835, 632, 2463, 526, 434, 1381, 924, 4656, 358, 326, 3189, 434, 326, 2845, 30, 225, 374, 18, 443, 917, 1282, 3495, 300, 2142, 434, 783, 443, 917, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2845, 3790, 12, 2867, 3310, 13, 3903, 1476, 1135, 261, 11890, 63, 25, 65, 3778, 13, 288, 203, 565, 8828, 2502, 2845, 273, 16000, 63, 9406, 15533, 203, 565, 327, 306, 203, 565, 308, 31, 203, 225, 289, 203, 203, 2, -1...
./partial_match/4/0x140649F2F1e2bE7ad08Cc0bCcf90C44840C9a581/sources/SocialBets.sol
* @dev Checks if bet exists in the bet mapping/
modifier onlyExistingBet(uint256 _betId) { require(isBetExists(_betId), "Bet doesn't exist"); _; }
8,504,016
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13074, 309, 2701, 1704, 316, 326, 2701, 2874, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 9895, 38, 278, 12, 11890, 5034, 389, 70, 278, 548, 13, 288, 203, 3639, 2583, 12, 291, 38, 278, 4002, 24899, 70, 278, 548, 3631, 315, 38, 278, 3302, 1404, 1005, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 20...
./full_match/1313161554/0x8dAD87c0287e2C5c31B5cCe9901489303B49FE23/sources/contracts/facets/bridges/RangoMultichainFacet.sol
@notice Executes a bridge through Multichain @param request The general swap request containing from/to token and fee/affiliate rewards @param bridgeRequest required data for the bridging step, including the destination chain and recipient wallet address event emission event emission
function multichainBridge( IRangoMultichain.MultichainBridgeRequest memory request, RangoBridgeRequest memory bridgeRequest ) external payable nonReentrant { uint amount = bridgeRequest.amount; address token = bridgeRequest.token; uint amountWithFee = amount + LibSwapper....
13,232,250
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3889, 993, 279, 10105, 3059, 7778, 1354, 530, 632, 891, 590, 1021, 7470, 7720, 590, 4191, 628, 19, 869, 1147, 471, 14036, 19, 7329, 330, 3840, 283, 6397, 632, 891, 10105, 691, 1931, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1778, 1354, 530, 13691, 12, 203, 3639, 15908, 6399, 5049, 1354, 530, 18, 5049, 1354, 530, 13691, 691, 3778, 590, 16, 203, 3639, 534, 6399, 13691, 691, 3778, 10105, 691, 203, 565, 262, 3903, 8843, 429, 1661, 426, 8230, 9...
./partial_match/42/0x9b0B75202cc30749448D0a10742e523601D22Cd3/sources/HTTokenOrbiterBank.sol
* @notice Change Loan status to deadline crossed. @dev Change Loan status to deadline crossed. @param _loanId Loan Id of the loan./
function deadLineCrossed(uint256 _loanId) external onlyByManager { address _userAddrs = loanIdToUser[_loanId]; for(uint256 i=0; i< userInfo[_userAddrs].loanInfo.length; i++) { if(userInfo[_userAddrs].loanInfo[i].loanId == _loanId ){ require(userInfo[_userAddrs].l...
8,934,740
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7576, 3176, 304, 1267, 358, 14096, 30783, 730, 18, 632, 5206, 7576, 3176, 304, 1267, 358, 14096, 30783, 730, 18, 632, 891, 389, 383, 304, 548, 3176, 304, 3124, 434, 326, 28183, 18, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8363, 1670, 39, 6973, 730, 12, 11890, 5034, 389, 383, 304, 548, 13, 3903, 1338, 858, 1318, 288, 203, 540, 203, 3639, 1758, 389, 1355, 13811, 273, 28183, 28803, 1299, 63, 67, 383, 304, 548, 15533, 203, 3639, 364, 12, 1...
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; pragma abicoder v2; import "./lib/CloneLibrary.sol"; /// @author Alchemy Team /// @title AlchemizeFactory contract AlchemizeFactory { using CloneLibrary for address; event NewAlchemize(address alchemize); event FactoryOwnerChanged(address newowner); ...
* @dev lets the owner change the current alchemize Implementation @param alchemizeImplementation_ the address of the new implementation/
function newAlchemizeImplementation(address alchemizeImplementation_) external { require(msg.sender == factoryOwner, "Only factory owner"); require(alchemizeImplementation_ != address(0), "No zero address for alchemizeImplementation_"); alchemizeImplementation = alchemizeImplementation_; ...
10,369,958
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 14557, 326, 3410, 2549, 326, 783, 524, 1036, 554, 25379, 632, 891, 524, 1036, 554, 13621, 67, 326, 1758, 434, 326, 394, 4471, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 394, 1067, 1036, 554, 13621, 12, 2867, 524, 1036, 554, 13621, 67, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3272, 5541, 16, 315, 3386, 3272, 3410, 8863, 203, 3639, 2583, 12, 287, 1036, 554, 13621, 67, ...
./full_match/1/0xCf3b485bd11BCa74103D7D3534503bAD3fbdaC6d/sources/contracts/JBFundingCycleStore.sol
/ Return an empty funding cycle if the configuration specified is 0. weight in bits 0-87 bits. basedOn in bits 88-143 bits. start in bits 144-199 bits. number in bits 200-255 bits. ballot in bits 0-159 bits. duration in bits 160-191 bits. discountRate in bits 192-223 bits.
function _getStructFor(uint256 _projectId, uint256 _configuration) private view returns (JBFundingCycle memory fundingCycle) { if (_configuration == 0) return fundingCycle; fundingCycle.configuration = _configuration; uint256 _packedIntrinsicProperties = _packedIntrinsicPropertiesOf[_proje...
17,049,571
[ 1, 4625, 348, 7953, 560, 30, 342, 2000, 392, 1008, 22058, 8589, 309, 326, 1664, 1269, 353, 374, 18, 3119, 316, 4125, 374, 17, 11035, 4125, 18, 2511, 1398, 316, 4125, 24153, 17, 28643, 4125, 18, 787, 316, 4125, 30457, 17, 19818, 4125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 588, 3823, 1290, 12, 11890, 5034, 389, 4406, 548, 16, 2254, 5034, 389, 7025, 13, 203, 565, 3238, 203, 565, 1476, 203, 565, 1135, 261, 8877, 42, 14351, 13279, 3778, 22058, 13279, 13, 203, 225, 288, 203, 565, 309, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.5; import "ERC1155.sol"; import "ERC1155Supply.sol"; import "Ownable.sol"; import "Counters.sol"; import "MerkleProof.sol"; import "ERC1155Burnable.sol"; // @dev @0xDevZombie contract TheAscendantsPass is ERC1155, ERC1155Supply, ERC1155Burnable, Ownable { st...
* @dev override default uri method to return separate uri for each token id/
function uri(uint256 tokenId) override public view returns (string memory) { return (_tokenIdToUri[tokenId]); }
13,767,664
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3849, 805, 2003, 707, 358, 327, 9004, 2003, 364, 1517, 1147, 612, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2003, 12, 11890, 5034, 1147, 548, 13, 3849, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 261, 67, 2316, 28803, 3006, 63, 2316, 548, 19226, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {ContextUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import {ERC165Upgradeable} from "@openzeppelin/contracts-upgrade...
sets the implementationBeacon to the upgradeable beacon
implementationBeacon = address(_beacon);
13,128,375
[ 1, 4625, 348, 7953, 560, 30, 225, 1678, 326, 4471, 1919, 16329, 358, 326, 8400, 429, 29203, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 4471, 1919, 16329, 273, 1758, 24899, 2196, 16329, 1769, 1171, 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, ...
/** *Submitted for verification at Etherscan.io on 2021-07-01 */ pragma solidity 0.6.7; contract GebMath { uint256 public constant RAY = 10 ** 27; uint256 public constant WAD = 10 ** 18; function ray(uint x) public pure returns (uint z) { z = multiply(x, 10 ** 9); } function rad(uint x)...
--- Getters --- @notify View function meant to return the new and upcoming debt floor. It checks for min/max bounds for newly computed floors/ Read the gas and the ETH prices Calculate the denominated value of the new debt floor Calculate the new debt floor in terms of system coins Check boundaries
function getNextCollateralFloor() public returns (uint256) { (, , , uint256 debtCeiling) = safeEngine.collateralTypes(collateralName); uint256 lowestPossibleFloor = minimum(debtCeiling, minDebtFloor); uint256 highestPossibleFloor = minimum(debtCeiling, maxDebtFloor); uint256 gasPri...
7,660,014
[ 1, 4625, 348, 7953, 560, 30, 225, 9948, 968, 5432, 9948, 632, 12336, 4441, 445, 20348, 358, 327, 326, 394, 471, 731, 5522, 18202, 88, 6346, 18, 2597, 4271, 364, 1131, 19, 1896, 4972, 364, 10894, 8470, 20802, 1383, 19, 2720, 326, 161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6927, 13535, 2045, 287, 42, 5807, 1435, 1071, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 261, 16, 269, 269, 2254, 5034, 18202, 88, 39, 73, 4973, 13, 273, 4183, 4410, 18, 12910, 2045, 287, 2016, 12, 12910, 2045, 287, ...
//Address: 0x2d7bb090c1084aa466ed3033460dce27c243d0ee //Contract name: Token //Balance: 0 Ether //Verification Date: 11/17/2017 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^ 0.4.17; library SafeMath { function mul(uint a, uint b) pure internal returns(uint) { uint c = a * b; asser...
@notice Migrate tokens to the new token contract. @dev Required state: Operational Migration @param _value The amount of token to be migrated Abort if not in Operational Migration state.
function migrate(uint256 _value) external { require (migrationAgent != 0); require(_value > 0); balances[msg.sender] = balances[msg.sender].sub(_value); totalSupply = totalSupply.sub(_value); totalMigrated = totalMigrated.add(_value); MigrationAgent(migrationAgent)....
6,445,526
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 26507, 2430, 358, 326, 394, 1147, 6835, 18, 632, 5206, 10647, 919, 30, 4189, 287, 15309, 632, 891, 389, 1132, 1021, 3844, 434, 1147, 358, 506, 24741, 14263, 309, 486, 316, 4189, 287, 153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 13187, 12, 11890, 5034, 389, 1132, 13, 225, 3903, 288, 203, 203, 3639, 2583, 261, 15746, 3630, 480, 374, 1769, 203, 3639, 2583, 24899, 1132, 405, 374, 1769, 203, 3639, 324, 26488, 63, 3576, 18, 15330, 65, 273, 324, 2648...
./partial_match/56/0xd7DC5B06C69160B34E3c6a0D99Ac6C4223BC468E/sources/ShareDefiProtocol.sol
* @notice Moves tokens `amount` from `sender` to `recipient`. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`./2% buying tax3% selling tax
function _transfer(address sender, address recipient, uint256 amount) public virtual returns(uint256) { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender].sub(amount, "ERC...
11,180,676
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 490, 10829, 2430, 1375, 8949, 68, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 7377, 1282, 279, 288, 5912, 97, 871, 18, 29076, 30, 300, 1375, 15330, 68, 2780, 506, 326, 3634, 1758, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 1071, 5024, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, 326, 3634, 1758...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "ds-test/test.sol"; import "./Trigonometry.sol"; contract TestTrigonometry { function sin(uint256 _angle) public pure returns (int256) { return Trigonometry.sin(_angle); } function cos(uint256 _angle) public pure returns (int256) { return T...
--- Verify the method cannot revert for any input ---
function testNoReverts(uint256 _angle) public view { trig.cos(_angle); }
12,883,433
[ 1, 4625, 348, 7953, 560, 30, 225, 9948, 8553, 326, 707, 2780, 15226, 364, 1281, 810, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1842, 2279, 426, 31537, 12, 11890, 5034, 389, 4341, 13, 1071, 1476, 288, 7010, 565, 23142, 18, 14445, 24899, 4341, 1769, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x770c9d0851b21df8A84943EdE4f487D30d9741ba/sources/contracts/base/Math.sol
calcSpotPrice sP = spotPrice bI = tokenBalanceIn ( bI / wI ) 1 bO = tokenBalanceOut sP = -----------...
contract Math is BBronze, Const, Num { function calcSpotPrice( uint tokenBalanceIn, uint tokenWeightIn, uint tokenBalanceOut, uint tokenWeightOut, uint swapFee ) external pure returns (uint spotPrice) { uint numer = bdiv(tokenBalanceIn, tokenWeightIn); ui...
3,143,741
[ 1, 4625, 348, 7953, 560, 30, 225, 7029, 17292, 5147, 28524, 2868, 272, 52, 273, 16463, 5147, 28524, 2398, 324, 45, 273, 1147, 13937, 382, 7734, 261, 324, 45, 342, 341, 45, 262, 540, 404, 4766, 282, 324, 51, 273, 1147, 13937, 1182, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 2361, 353, 21752, 1949, 8489, 16, 9333, 16, 6805, 288, 203, 565, 445, 7029, 17292, 5147, 12, 203, 3639, 2254, 1147, 13937, 382, 16, 203, 3639, 2254, 1147, 6544, 382, 16, 203, 3639, 2254, 1147, 13937, 1182, 16, 203, 3639, 2...
/* .'''''''''''.. ..''''''''''''''''.. ..'''''''''''''''.. .;;;;;;;;;;;'. .';;;;;;;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;,. .;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;,. .;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;;,. .;;;;;;;;;;;;;;;;;;;;,. ';;;;;;;;'. .';;;;;;;;;;;;;;;;;;...
* @dev Internal claim function Claim rewards for a specific ERC20 token @param token Token to claim rewards for/
function _claim(IERC20 token) internal { farmRewards[token].totalClaimedRewards = farmRewards[token].totalClaimedRewards.add( farmRewards[token].claimableReward[msg.sender] ); uint256 rewardToClaim = farmRewards[token].claimableReward[msg.sender]; farmRewards[token].claim...
12,055,521
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 7516, 445, 18381, 283, 6397, 364, 279, 2923, 4232, 39, 3462, 1147, 632, 891, 1147, 3155, 358, 7516, 283, 6397, 364, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 14784, 12, 45, 654, 39, 3462, 1147, 13, 2713, 288, 203, 3639, 284, 4610, 17631, 14727, 63, 2316, 8009, 4963, 9762, 329, 17631, 14727, 273, 284, 4610, 17631, 14727, 63, 2316, 8009, 4963, 9762, 329, 17631, 14727, 18, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/math/Math.sol"; import "@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol"; import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol"; import "@openzeppelin/contracts-upg...
========== CONSTANTS ========== */ ========== STATE VARIABLES ========== */ ========== PRESALE ========== */ ========== MODIFIERS ========== */
modifier onlyPresale { require(msg.sender == presaleContract, "VaultQBTBNB: no presale contract"); _; }
13,131,643
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 24023, 55, 422, 1432, 1195, 422, 1432, 7442, 22965, 55, 422, 1432, 1195, 422, 1432, 7071, 5233, 900, 422, 1432, 1195, 422, 1432, 8663, 10591, 55, 422, 1432, 1195, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 12236, 5349, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 4075, 5349, 8924, 16, 315, 12003, 53, 38, 56, 15388, 38, 30, 1158, 4075, 5349, 6835, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; import "../GitFactory.sol"; import "../libraries/LibGitRepository.sol"; contract GitIssues { event NewIssue(string Cid); enum IssueState {Open, Closed, Resolved} bytes32 constant GIT_ISSUES_STORAGE_POSITION = keccak256("diamond....
* Returns an array containing bytes32 values, which are used as keys in the issue mapping. @return bytes32[] - Array containing bytes32 values/
function getAllIssues() public view returns (bytes32[] memory) { GitIssuesStorage storage i = gitIssues(); return i.allIssues; }
14,098,760
[ 1, 4625, 348, 7953, 560, 30, 380, 2860, 392, 526, 4191, 1731, 1578, 924, 16, 1492, 854, 1399, 487, 1311, 316, 326, 5672, 2874, 18, 632, 2463, 1731, 1578, 8526, 300, 1510, 4191, 1731, 1578, 924, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5514, 17316, 1435, 1071, 1476, 1135, 261, 3890, 1578, 8526, 3778, 13, 288, 203, 3639, 6646, 17316, 3245, 2502, 277, 273, 5071, 17316, 5621, 203, 3639, 327, 277, 18, 454, 17316, 31, 203, 565, 289, 203, 203, 2, -100, -100...
./full_match/4/0x25642a458ef3D0F4403A037e93B02E63A0C9DcD7/sources/browser/pxt_v1.sol
uint indexed x, uint indexed y, ============ DATA STRUCTURES: ============
contract pxv1 { event _BlockPurchased( uint indexed blockId, address author, bytes32 file_hash, uint256 eth_value, string attachments, string tags); event _Blo...
821,230
[ 1, 4625, 348, 7953, 560, 30, 225, 2254, 8808, 619, 16, 2254, 8808, 677, 16, 422, 1432, 631, 8730, 7128, 9749, 4830, 55, 30, 422, 1432, 631, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 10318, 90, 21, 288, 203, 10792, 203, 565, 871, 389, 1768, 10262, 343, 8905, 12, 203, 10792, 2254, 8808, 25980, 16, 21281, 10792, 1758, 2869, 16, 21281, 10792, 1731, 1578, 585, 67, 2816, 16, 203, 10792, 2254, 5034, 13750, 67,...
./partial_match/1/0x220d9324Eb829ff59af6dd93d33a08cd9760eBEE/sources/Token.sol
* @dev Returns the name of the token./
function name() public view virtual returns (string memory) { return name_; }
4,051,980
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 508, 434, 326, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 508, 1435, 1071, 1476, 5024, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 508, 67, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/100/0x5862E92f474bAC1c7D55C168C0134e3C13c74CAB/sources/PriceBettingUserRecord.sol
userAddr -> bets: cleared or not
function getBetterBets(address user, uint256 period, uint256 idxStart, uint256 outLength, uint256 option) public view returns (IPriceBetting.Bet[] memory betsOut, uint256 cidx3, uint256 uidx3, uint256 idxStart3, uint256 idxLast3) { (uint256[] memory indexes, uint256 cidx2, uint256 uidx2, uint256 i...
16,668,233
[ 1, 4625, 348, 7953, 560, 30, 225, 729, 3178, 317, 324, 2413, 30, 16054, 578, 486, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2882, 11214, 38, 2413, 12, 2867, 729, 16, 2254, 5034, 3879, 16, 2254, 5034, 2067, 1685, 16, 2254, 5034, 596, 1782, 16, 2254, 5034, 1456, 13, 1071, 1476, 203, 3639, 1135, 261, 2579, 3057, 38, 278, 1787, 18, 38, 278, 85...
./full_match/1/0xefaCa6Fc316B3B2Aa6c55FF5E02a62A85d4391e8/sources/contracts/mocks/RewardDistributorMock.sol
IMPORTANT: In production, this function should revert if msg.sender is not the Synthetix CoreProxy address.
function payout( uint128, uint128, address, address sender, uint256 amount ) external returns (bool) { if (msg.sender != _rewardManager) { revert AccessError.Unauthorized(msg.sender); } IERC20(_token).transfer(sender, amount); r...
16,517,402
[ 1, 4625, 348, 7953, 560, 30, 225, 21840, 6856, 30, 657, 12449, 16, 333, 445, 1410, 15226, 309, 1234, 18, 15330, 353, 486, 326, 16091, 451, 278, 697, 4586, 3886, 1758, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 293, 2012, 12, 203, 3639, 2254, 10392, 16, 203, 3639, 2254, 10392, 16, 203, 3639, 1758, 16, 203, 3639, 1758, 5793, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3903, 1135, 261, 6430, 13, 288, 203, 3639, 309, 261, 3...
./full_match/1/0xE4Baf69B887843aB6A0e82E8BAeA49010fF619af/sources/browser/YieldContract.sol
Check if token/ETH is approved to create contracts Create contractId and check if status Inactive (enum state 0) Check if APY (interest rate is not zero for the tenure) Get decimal value for collaterals Check id collateral is not 0 In case of ETH, check to ensure if collateral value match ETH sent ETH decimals is 18 I...
function createYieldContract( address _erc20Address, uint256 _collateral, uint16 _tenure ) external payable nonReentrant() { require(erc20Map[_erc20Address].isValid, "Token/Coin not approved"); bytes32 contractId = keccak256( abi.encode(msg.sender, _erc20Addr...
4,867,865
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 1147, 19, 1584, 44, 353, 20412, 358, 752, 20092, 1788, 6835, 548, 471, 866, 309, 1267, 657, 3535, 261, 7924, 919, 374, 13, 2073, 309, 14410, 61, 261, 2761, 395, 4993, 353, 486, 3634, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 16348, 8924, 12, 203, 3639, 1758, 389, 12610, 3462, 1887, 16, 203, 3639, 2254, 5034, 389, 12910, 2045, 287, 16, 203, 3639, 2254, 2313, 389, 2253, 594, 203, 565, 262, 3903, 8843, 429, 1661, 426, 8230, 970, 1435, 288...
//Address: 0x4a184673b7247ea15227d8f738a0627e0b17d72a //Contract name: Minewar //Balance: 0.045868561800982743 Ether //Verification Date: 6/11/2018 //Transacion Count: 1981 // CODE STARTS HERE pragma solidity ^0.4.2; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ funct...
init booster datainit order data
function initData() private { sponsor = administrator; sponsorLevel = 5; boostData[0] = BoostData(0, 150, 1, now, HALF_TIME); boostData[1] = BoostData(0, 175, 1, now, HALF_TIME); boostData[2] = BoostData(0, 200, 1, now, HALF_TIME); boostData[3] = BoostData(0, 225,...
5,495,993
[ 1, 4625, 348, 7953, 560, 30, 1208, 14994, 264, 501, 2738, 1353, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1208, 751, 1435, 3238, 203, 565, 288, 203, 3639, 272, 500, 2467, 273, 22330, 31, 203, 3639, 272, 500, 2467, 2355, 273, 1381, 31, 203, 3639, 14994, 751, 63, 20, 65, 273, 17980, 669, 751, 12, 20, 16, 18478, 16, 404, 1...
./full_match/44787/0x6a447285229bFE3DD6072faFfC5Cbe232e35EfBf/sources/contracts/StarFarm.sol
Stake Star NFT to MasterChefrequire(userNFTs[_msgSender()].length > 0, "star token user");
function enterStakingNFT(uint256 _tokenId) public { PoolInfo storage pool = poolInfo[0]; UserInfo storage user = userInfo[0][_msgSender()]; require(starNFT.ownerOf(_tokenId) == _msgSender(), "error NFT user"); updatePool(0); (uint256 _selfGain, uint256 _parentGain) = starNode.node...
13,276,176
[ 1, 4625, 348, 7953, 560, 30, 225, 934, 911, 934, 297, 423, 4464, 358, 13453, 39, 580, 74, 6528, 12, 1355, 50, 4464, 87, 63, 67, 3576, 12021, 1435, 8009, 2469, 405, 374, 16, 315, 10983, 1147, 729, 8863, 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, 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, 6103, 510, 6159, 50, 4464, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 20, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 20, 6362, 67, 3576, 12021, 1435, ...
./partial_match/1/0xA83D81113F57d63AF7EFDC4a12350365c7871266/sources/ShareTokenSale.sol
* @dev Process to purchase token @param account account address to purchase @param tokenAmount purchased amount @param round round to purchase Requirements: 1. Can purchase 2. Time to purchase is available 3. Remain token amount is greater than or equals `amount` Implementations: 1. Validate the remain token am...
function purchase(address account, uint tokenAmount, uint round) external onlyOwner returns(bool){ require(tokenAmount > 0, "Token amount is zero"); require(round == 0 || round == 1, "Current round should be Seed or Private"); require(_dbContract.updatePurchaseData(account, round, tokenAmo...
3,643,378
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4389, 358, 23701, 1147, 632, 891, 2236, 2236, 1758, 358, 23701, 632, 891, 1147, 6275, 5405, 343, 8905, 3844, 632, 891, 3643, 3643, 358, 23701, 29076, 30, 282, 404, 18, 4480, 23701, 282, 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, 23701, 12, 2867, 2236, 16, 2254, 1147, 6275, 16, 2254, 3643, 13, 3903, 1338, 5541, 1135, 12, 6430, 15329, 203, 3639, 2583, 12, 2316, 6275, 405, 374, 16, 315, 1345, 3844, 353, 3634, 8863, 203, 203, 3639, 2583, 12, 2260, ...
./partial_match/3/0x017ACa8D3D57F91903AD26E76e5ef52b4A15a831/sources/Ulink.sol
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint2...
5,284,058
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 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, ...
[ 1, 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, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 11013, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 741...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/escrow/ConditionalEscrow.sol) pragma solidity ^0.8.0; import "./EscrowUpgradeable.sol"; import "./Initializable.sol"; /** * @title ConditionalEscrow * @dev Base abstract escrow to only allow withdrawal if a condition is met. * @dev Intended u...
* @title ConditionalEscrow @dev Base abstract escrow to only allow withdrawal if a condition is met. @dev Intended usage: See {Escrow}. Same usage guidelines apply here./
abstract contract ConditionalEscrowUpgradeable is Initializable, EscrowUpgradeable { function __ConditionalEscrow_init() internal onlyInitializing { __Ownable_init_unchained(); } function __ConditionalEscrow_init_unchained() internal onlyInitializing { } function withdrawalAllowed(address ...
15,831,157
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 22466, 6412, 492, 632, 5206, 3360, 8770, 2904, 492, 358, 1338, 1699, 598, 9446, 287, 309, 279, 2269, 353, 5100, 18, 632, 5206, 657, 8140, 4084, 30, 2164, 288, 6412, 492, 5496, 17795, 4084...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 22466, 6412, 492, 10784, 429, 353, 10188, 6934, 16, 512, 1017, 492, 10784, 429, 288, 203, 203, 565, 445, 1001, 14132, 6412, 492, 67, 2738, 1435, 2713, 1338, 29782, 288, 203, 3639, 1001, 5460, 429, 67, 2738, 67, 4384, ...
pragma solidity ^0.4.21; /*** * _____ ___ ___ * / /::\ ___ ___ ___ / /\ / /\ * / /:/\:\ / /\ /__/\ / /\ / /:/_ / /:/_ * / /:/ \:\ / /:/ ...
check conditions format our start/end points return requested section
function extract(uint256 _input, uint256 _start, uint256 _end) internal pure returns(uint256) { require(_end < 77 && _start < 77); require(_end >= _start); _end = exponent(_end).mul(10); _start = exponent(_start); return((((_input / _start...
14,091,242
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 4636, 740, 3134, 787, 19, 409, 3143, 327, 3764, 2442, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2608, 12, 11890, 5034, 389, 2630, 16, 2254, 5034, 389, 1937, 16, 2254, 5034, 389, 409, 13, 203, 202, 565, 2713, 203, 202, 565, 16618, 203, 202, 565, 1135, 12, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 24899, 40...
// SPDX-License-Identifier: MIT pragma solidity ~0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./Types.sol"; import ...
* @notice Returns the sellToken balance and fundToken balance for invest. @dev Throws if the id does not point to a valid stream. @param streamId The id of the invest stream for balance. @return investSellBalance is stream balance for invest SellToken. @return investFundBalance is stream balance for invest FundToken./
function investBalanceOf(uint256 streamId) external view investExists(streamId) returns (uint256 investSellBalance, uint256 investFundBalance) { Types.Stream storage stream = streams[streamId]; Types.Project storage project = projects[stream.projectId]; u...
15,845,829
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 326, 357, 80, 1345, 11013, 471, 284, 1074, 1345, 11013, 364, 2198, 395, 18, 632, 5206, 22435, 309, 326, 612, 1552, 486, 1634, 358, 279, 923, 1407, 18, 632, 891, 21035, 1021, 612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2198, 395, 13937, 951, 12, 11890, 5034, 21035, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 2198, 395, 4002, 12, 3256, 548, 13, 203, 3639, 1135, 261, 11890, 5034, 2198, 395, 55, 1165, 13937, 16, 2254, 5034, 2198, 39...
pragma solidity ^0.5.16; import "../InterestRateModel.sol"; import "../SafeMath.sol"; contract FixedBorrowRateModel is InterestRateModel { using SafeMath for uint; event NewInterestParams(uint baseRatePerBlock); /** * @notice The approximate number of blocks per year that is assumed by the interest...
* @notice Calculates the utilization rate of the market: `borrows / (cash + borrows - reserves)` @param cash The amount of cash in the market @param borrows The amount of borrows in the market @param reserves The amount of reserves in the market (currently unused) @return The utilization rate as a mantissa between [0, ...
function utilizationRate(uint cash, uint borrows, uint reserves) public pure returns (uint) { if (borrows == 0) { return 0; } return borrows.mul(1e18).div(cash.add(borrows).sub(reserves)); }
11,999,336
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 26128, 326, 1709, 1588, 4993, 434, 326, 13667, 30, 1375, 70, 280, 3870, 342, 261, 71, 961, 397, 324, 280, 3870, 300, 400, 264, 3324, 22025, 632, 891, 276, 961, 1021, 3844, 434, 276, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1709, 1588, 4727, 12, 11890, 276, 961, 16, 2254, 324, 280, 3870, 16, 2254, 400, 264, 3324, 13, 1071, 16618, 1135, 261, 11890, 13, 288, 203, 3639, 309, 261, 70, 280, 3870, 422, 374, 13, 288, 203, 5411, 327, 374, 31, ...
pragma solidity ^0.5.10; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "../interfaces/IUsers.sol"; import "../interfaces/IShops.sol"; import "../interfaces/IKlerosArbitrable.sol"; // NOT USED contract ShopsDispute is Ownable { // ...
disputeId disputeStruct
mapping(uint => ShopDispute) private disputeIdToDispute;
924,494
[ 1, 4625, 348, 7953, 560, 30, 4202, 1015, 2507, 548, 1015, 2507, 3823, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2874, 12, 11890, 516, 282, 17568, 1669, 2507, 13, 3238, 1015, 2507, 28803, 1669, 2507, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/56/0x0Fb22A54A749C3bABeEd908e04A99d27725A2FAe/sources/StrategyKebabLP.sol
* @dev Takes out 4.5% as system fees from the rewards. 0.5% -> Call Fee 0.5% -> Treasury fee 0.5% -> Strategist fee 3.0% -> BIFI Holders/
function chargeFees() internal { uint256 toWbnb = IERC20(kebab).balanceOf(address(this)).mul(45).div(1000); IUniswapRouterETH(unirouter).swapExactTokensForTokens(toWbnb, 0, kebabToWbnbRoute, address(this), now.add(600)); uint256 wbnbBal = IERC20(wbnb).balanceOf(address(this)); uint...
11,110,473
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 23004, 596, 1059, 18, 25, 9, 487, 2619, 1656, 281, 628, 326, 283, 6397, 18, 374, 18, 25, 9, 317, 3049, 30174, 374, 18, 25, 9, 317, 399, 266, 345, 22498, 14036, 374, 18, 25, 9, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 13765, 2954, 281, 1435, 2713, 288, 203, 3639, 2254, 5034, 358, 59, 70, 6423, 273, 467, 654, 39, 3462, 12, 4491, 70, 378, 2934, 12296, 951, 12, 2867, 12, 2211, 13, 2934, 16411, 12, 7950, 2934, 2892, 12, 18088, 1769, 20...
./full_match/4/0xcd215a2f9eBE25Bc3ff21662e88d3Bb3D462e40c/sources/contracts/BrilliantNewMagik.sol
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function _balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function transfermine(address recipient, uint256 amount) external returns (bool...
12,311,248
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 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, ...
[ 1, 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, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 389, 12296, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445...