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.5.11;
pragma experimental ABIEncoderV2;
// solium-disable security/no-block-members
import "../Escrow.sol";
import "../IEscrowCallbackReceiver.sol";
import "../../admin/Pausable.sol";
import "../../admin/Freezable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract CreditCardEscrow i... | escrow the assets with this contract as the releaser trusted contract, no re-entrancy risk | uint escrowID = escrowProtocol.escrow(_vault);
| 13,068,987 | [
1,
742,
492,
326,
7176,
598,
333,
6835,
487,
326,
6707,
14558,
13179,
6835,
16,
1158,
283,
17,
8230,
12514,
18404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
2904,
492,
734,
273,
2904,
492,
5752,
18,
742,
492,
24899,
26983,
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,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address ac... | * @dev Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unl... | function decimals() public view virtual override returns (uint8) {
return 20;
}
| 6,149,658 | [
1,
1356,
326,
1300,
434,
15105,
1399,
358,
336,
2097,
729,
4335,
18,
2457,
3454,
16,
309,
1375,
31734,
68,
1606,
1375,
22,
9191,
279,
11013,
434,
1375,
3361,
25,
68,
2430,
1410,
506,
10453,
358,
279,
729,
487,
1375,
25,
16,
6260,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15105,
1435,
1071,
1476,
5024,
3849,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
4200,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@boringcrypto/boring-solidity/contracts/libraries/BoringMath.sol";
import "@boringcrypto/boring-solidity/contracts/BoringBatchable.sol";
import "@boringcrypto/boring-solidity/contracts/BoringOwnable.sol";
import "./Fanta... | @notice Address of FANTA contract. | FantasticToken.FantasticToken public immutable FANTA;
| 1,072,738 | [
1,
1887,
434,
478,
6856,
37,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
478,
970,
8160,
1345,
18,
42,
970,
8160,
1345,
1071,
11732,
478,
6856,
37,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x4eC6673D281df7869CC54F6A972DB2BFa1d7A90e/sources/CeilingCat.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("Ceiling Cat", "CCAT") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = I... | 16,021,748 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
4232,
39,
3462,
2932,
39,
73,
4973,
385,
270,
3113,
315,
6743,
789,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
2... |
./full_match/80001/0x36C051246B4004AdA8fFFE857afd42921e943e0A/sources/contracts/GameMarkeplace.sol | * @dev Get an item. @param _itemId The ID of the item/ | function getItem(uint256 _itemId) public view returns (Item memory) {
return items[_itemId];
}
| 9,478,801 | [
1,
967,
392,
761,
18,
225,
389,
1726,
548,
1021,
1599,
434,
326,
761,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8143,
12,
11890,
5034,
389,
1726,
548,
13,
1071,
1476,
1135,
261,
1180,
3778,
13,
288,
203,
3639,
327,
1516,
63,
67,
1726,
548,
15533,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0xCFE054EAcc80c6e2F68dB05D572fCC95d9A825d0/sources/contracts/1_Storage.sol | Batch mint tokens. Assign directly to _to[].require(msg.sender == creators[_id]); | function safeBatchMint(uint256[] calldata _id, address[] calldata _to, uint256 _uriTemplateId) external onlyMinter {
require(_id.length == _to.length, "_ids and _to array length must match.");
for (uint256 i = 0; i < _to.length; ++i) {
address to = _to[i];
uint25... | 4,946,466 | [
1,
4497,
312,
474,
2430,
18,
12093,
5122,
358,
389,
869,
63,
8009,
6528,
12,
3576,
18,
15330,
422,
1519,
3062,
63,
67,
350,
19226,
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,
... | [
1,
1,
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,
4183,
4497,
49,
474,
12,
11890,
5034,
8526,
745,
892,
389,
350,
16,
1758,
8526,
745,
892,
389,
869,
16,
2254,
5034,
389,
1650,
2283,
548,
13,
3903,
1338,
49,
2761,
288,
203,
3639,
2583,
24899,
350,
18,
2469,
422,
389,... |
/**
*Submitted for verification at Etherscan.io on 2019-07-10
*/
/* ===============================================
* Flattened with Solidifier by Coinage
*
* https://solidifier.coina.ge
* ===============================================
*/
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations wi... | * @title Synthetix ERC20 contract. @notice The Synthetix contracts not only facilitates transfers, exchanges, and tracks balances, but it also computes the quantity of fees each synthetix holder is entitled to./ ========== STATE VARIABLES ========== Available Synths which can be used with the system ========== CONSTRUC... | contract Synthetix is ExternStateToken {
Synth[] public availableSynths;
mapping(bytes4 => Synth) public synths;
IFeePool public feePool;
ISynthetixEscrow public escrow;
ISynthetixEscrow public rewardEscrow;
ExchangeRates public exchangeRates;
SynthetixState public synthetixState;
Sup... | 7,803,030 | [
1,
10503,
451,
278,
697,
4232,
39,
3462,
6835,
18,
225,
1021,
16091,
451,
278,
697,
20092,
486,
1338,
5853,
330,
305,
815,
29375,
16,
431,
6329,
16,
471,
13933,
324,
26488,
16,
1496,
518,
2546,
15881,
326,
10457,
434,
1656,
281,
151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16091,
451,
278,
697,
353,
1312,
798,
1119,
1345,
288,
203,
203,
203,
565,
16091,
451,
8526,
1071,
2319,
10503,
451,
87,
31,
203,
565,
2874,
12,
3890,
24,
516,
16091,
451,
13,
1071,
6194,
451,
87,
31,
203,
203,
565,
1108... |
./full_match/97/0xEaDA049496EC20a6Fb1E1986a359eE78E206A502/sources/contracts/Perso/ShibConnect.sol | 0.4% to tertiary referrer
| referralTreeFees[2] = 40; | 5,019,958 | [
1,
20,
18,
24,
9,
358,
268,
1051,
77,
814,
14502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1278,
29084,
2471,
2954,
281,
63,
22,
65,
273,
8063,
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... |
pragma solidity ^0.4.23;
interface ApproveAndCallFallBack {
function receiveApproval(
address from,
uint256 _amount,
address _token,
bytes _data
) external;
}
/**
* @dev The token controller contract must implement these functions
*/
interface TokenController {
/**
*... | * @dev The actual token contract, the default controller is the msg.sender that deploys the contract, so usually this token will be deployed by a token controller contract, which Giveth will call a "Campaign"/ | contract MiniMeToken is MiniMeTokenInterface, Controlled {
}
Copyright 2016, Jordi Baylina
struct Checkpoint {
uint128 fromBlock;
uint128 value;
}
address _tokenFactory,
address _parentToken,
uint _parentSnapShotBlock,
string _tokenName,
... | 7,725,693 | [
1,
1986,
3214,
1147,
6835,
16,
326,
805,
2596,
353,
326,
1234,
18,
15330,
225,
716,
5993,
383,
1900,
326,
6835,
16,
1427,
11234,
333,
1147,
903,
506,
19357,
635,
279,
225,
1147,
2596,
6835,
16,
1492,
611,
427,
546,
903,
745,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
27987,
4667,
1345,
353,
27987,
4667,
1345,
1358,
16,
8888,
1259,
288,
203,
203,
203,
97,
203,
565,
25417,
12659,
16,
804,
517,
77,
605,
528,
7511,
69,
203,
203,
565,
1958,
25569,
288,
203,
203,
3639,
2254,
10392,
628,
1768... |
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
contract YourContract {
//Defining the structures the contract will c... | *FFor this use case we have 2 structures:/ | struct Voter{
uint weight;
bool voted;
uint choice;
}
| 5,449,783 | [
1,
42,
1290,
333,
999,
648,
732,
1240,
576,
12597,
27824,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1958,
776,
20005,
95,
203,
565,
2254,
3119,
31,
203,
565,
1426,
331,
16474,
31,
203,
565,
2254,
6023,
31,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/cont... | * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by {upgradeTo} and {upgradeToAndCall}. Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. ```solidity function _authorizeUpgrade(address) internal override onlyO... | interface IBinarySearch {
function binarySearch(uint256[] memory _data, uint256 _target)
external
returns (uint256);
}
| 1,705,790 | [
1,
2083,
716,
1410,
15226,
1347,
1375,
3576,
18,
15330,
68,
353,
486,
10799,
358,
8400,
326,
6835,
18,
11782,
635,
288,
15097,
774,
97,
471,
288,
15097,
774,
1876,
1477,
5496,
24773,
1230,
16,
333,
445,
903,
999,
392,
15187,
30,
386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
5905,
2979,
288,
203,
565,
445,
31903,
12,
11890,
5034,
8526,
3778,
389,
892,
16,
2254,
5034,
389,
3299,
13,
203,
3639,
3903,
203,
3639,
1135,
261,
11890,
5034,
1769,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x792d09D6d269bcf54e8F69981c178ea69DFc0c3F/sources/Fourium.sol | Create a pair for this new token | constructor() ERC20("Fourium", "FRM") {
_tokengeneration(msg.sender, 200_000_000 * 10**decimals());
IRouter _router = IRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address _pair = IFactory(_router.factory()).createPair(address(this), _router.WETH());
router = _router;
... | 4,183,739 | [
1,
1684,
279,
3082,
364,
333,
394,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
42,
477,
5077,
3113,
315,
42,
8717,
7923,
288,
203,
3639,
389,
2316,
25514,
12,
3576,
18,
15330,
16,
4044,
67,
3784,
67,
3784,
380,
1728,
636,
31734,
10663,
203,
203,
3639,
467,
8259,
389,
... |
pragma solidity >=0.4.21 <0.6.0;
import 'link_token/contracts/ERC677Token.sol';
import 'link_token/contracts/token/linkStandardToken.sol';
contract LinkTokenPegged is linkStandardToken, ERC677Token {
string public constant name = 'ChainLink Token Pegged';
uint8 public constant decimals = 18;
string public cons... | * @dev burn tokens using link. @param _value The amount to be burnt./ | function burnLinkToEth(uint _value)
public returns (bool) {
require(_value <= balances[msg.sender], "Invalid balance");
uint eth_value = _value.div(rate);
msg.sender.transfer(eth_value);
balances[msg.sender] = balances[msg.sender].sub(_value);
totalSupply = totalSupply.su... | 5,400,781 | [
1,
70,
321,
2430,
1450,
1692,
18,
225,
389,
1132,
1021,
3844,
358,
506,
18305,
88,
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,
... | [
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,
18305,
2098,
774,
41,
451,
12,
11890,
389,
1132,
13,
203,
565,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
1132,
1648,
324,
26488,
63,
3576,
18,
15330,
6487,
315,
1941,
11013,
8863,
203,
3639,
2254,
13750,
6... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../ics23/ics23.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract AnconProtocol is ICS23 {
struct SubscriptionTier {
address token;
uint256 amount;
uint256 amountStaked;
uint256 includedBlocks;
... | updateRelayerHeader updates offchain dag graphs signed by dag graph key pair tier has no more free blocks for this epoch, charge protocol fee must always read from latest tier settings | function updateRelayerHeader(
bytes32 moniker,
bytes memory rootHash,
uint256 height
) public payable {
require(msg.sender == whitelistedDagGraph[moniker], "invalid user");
SubscriptionTier memory t = dagGraphSubscriptions[msg.sender];
IERC20 token = IERC20(tiers... | 5,446,918 | [
1,
2725,
1971,
1773,
1864,
4533,
3397,
5639,
22940,
19422,
6726,
635,
22940,
2667,
498,
3082,
17742,
711,
1158,
1898,
4843,
4398,
364,
333,
7632,
16,
13765,
1771,
14036,
1297,
3712,
855,
628,
4891,
17742,
1947,
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,
0,
0,
0,
0,
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,
1971,
1773,
1864,
12,
203,
3639,
1731,
1578,
6921,
1766,
264,
16,
203,
3639,
1731,
3778,
1365,
2310,
16,
203,
3639,
2254,
5034,
2072,
203,
565,
262,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,... |
pragma solidity ^0.4.24;
/**
* @title Utility contract to allow pausing and unpausing of certain functions
*/
contract Pausable {
event Pause(uint256 _timestammp);
event Unpause(uint256 _timestamp);
bool public paused = false;
/**
* @notice Modifier to make a function callable only when the co... | * @notice Return the STO details/ | function getSTODetails() public view returns(uint256, uint256, uint256, uint256, uint256, uint256, uint256, bool) {
return (
startTime,
endTime,
cap,
rate,
fundsRaised,
investorCount,
tokensSold,
(fundraiseType =... | 8,014,187 | [
1,
990,
326,
2347,
51,
3189,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
882,
1212,
1987,
1435,
1071,
1476,
1135,
12,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
1426,
13,
288,
203,
3639,
327,
261,
203,
5411,
8657,
1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC... | Not sold all yet. Iterate through all slots. | function getWinner(uint256 collectionId_, uint256 nftIndex_) public view returns(address) {
Collection storage collection = allCollections[collectionId_];
if (collection.soldCount < collection.size) {
return address(0);
}
uint256 size = collection.size;
uint256 ... | 5,425,667 | [
1,
1248,
272,
1673,
777,
4671,
18,
11436,
3059,
777,
12169,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13876,
7872,
12,
11890,
5034,
1849,
548,
67,
16,
2254,
5034,
290,
1222,
1016,
67,
13,
1071,
1476,
1135,
12,
2867,
13,
288,
203,
3639,
2200,
2502,
1849,
273,
777,
15150,
63,
5548,
548,
67,
15533,
203,
203,
3639,
309,
2... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin... | @title NFT Contract @dev This contract manages everything related to NFT | contract CardItem is ERC721URIStorage, Ownable, Pausable {
using Counters for Counters.Counter;
using SafeMath for uint256;
Counters.Counter public _tokenIds;
address private marketplace;
pragma solidity 0.8.3;
struct TokenInfo {
string tokenURI;
uint256 price;
bool... | 12,952,787 | [
1,
50,
4464,
13456,
225,
1220,
6835,
20754,
281,
7756,
3746,
358,
423,
4464,
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,
16351,
14338,
1180,
353,
4232,
39,
27,
5340,
3098,
3245,
16,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
377,
203,
565,
9354,
... |
./full_match/80001/0x4fd6f14749b6B757a436CD4f7D31886BEef356b6/sources/contracts/player-management/PlayerManagement.sol | * @notice Returns the PDT and PXP costs of ranking up. @param rank Current player rank. @return pdtCost_ Final PDT cost including 1e18. @return pxpCost_ Final PXP cost including 1e18./ | function getRankUpCosts(uint256 rank) public view returns (uint256 pdtCost_, uint256 pxpCost_) {
uint256 pdtCost = (1e18 * _usdCostRankUp) / getPDTPrice();
uint256 pxpCost = 2 ** (rank + 1) * _pxpBaseCostRankUp;
return (pdtCost, pxpCost);
}
| 853,322 | [
1,
1356,
326,
453,
9081,
471,
453,
60,
52,
22793,
434,
23087,
731,
18,
565,
6171,
225,
6562,
7291,
6171,
18,
327,
225,
4863,
88,
8018,
67,
225,
16269,
453,
9081,
6991,
6508,
404,
73,
2643,
18,
327,
225,
10318,
84,
8018,
67,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4170,
2304,
1211,
21420,
12,
11890,
5034,
6171,
13,
1071,
1476,
1135,
261,
11890,
5034,
4863,
88,
8018,
67,
16,
2254,
5034,
10318,
84,
8018,
67,
13,
288,
203,
3639,
2254,
5034,
4863,
88,
8018,
273,
261,
21,
73,
2643,
... |
./partial_match/1/0x6602d72a77235bd0666c141989831ad435b1552a/sources/contracts/token.sol | Getting total Fee Percentages And Caclculating Portinos for each tax type | Tax memory bt = buyTaxes;
| 2,774,211 | [
1,
19213,
2078,
30174,
21198,
1023,
7835,
385,
10150,
1934,
1776,
6008,
267,
538,
364,
1517,
5320,
618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
18240,
3778,
10921,
273,
30143,
7731,
281,
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... |
./partial_match/56/0x3d3733C8D33eaeA6153EF418f7d7425E9ECAA662/sources/PAIDToken.sol | * @dev Optional functions from the BEPS20 standard./ | contract BEPS20Detailed is IBEPS20 {
string private _name;
string private _symbol;
uint8 private _decimals;
}
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
function name() public ... | 11,332,329 | [
1,
6542,
4186,
628,
326,
9722,
5857,
3462,
4529,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9722,
5857,
3462,
40,
6372,
353,
467,
5948,
5857,
3462,
288,
203,
565,
533,
3238,
389,
529,
31,
203,
565,
533,
3238,
389,
7175,
31,
203,
565,
2254,
28,
3238,
389,
31734,
31,
203,
203,
97,
203,
203,
565,
3885,
261,
1080,
... |
/**
* MIT License
*
* Copyright (c) 2019 eToroX Labs
*
* 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 rights
* to use, copy, mod... | Write in the correct address for the TMC
| tmc = Tmc4(tmc_address); | 5,346,073 | [
1,
3067,
316,
326,
3434,
1758,
364,
326,
399,
20022,
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,
6118,
71,
273,
399,
13952,
24,
12,
88,
13952,
67,
2867,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/43113/0x08dddc5450D3d75B6B4AEa084A44Dd208b086C65/sources/contracts/Betting.sol | @param _matchNumber is 0 to 31, representing the matche @param _team0or1 is the initial favorite (0) and underdog (1) @param _betAmt is the amount bet in 10s of finney, 0.0001 ether | function bet(
uint8 _matchNumber,
uint8 _team0or1,
uint32 _betAmt
) external {
require(_betAmt <= userBalance[msg.sender], "NSF ");
(uint32[7] memory betDatav) = decodeNumber(betData[_matchNumber]);
require(betDatav[4] > block.timestamp, "game started or not playi... | 7,171,082 | [
1,
67,
1916,
1854,
353,
374,
358,
8231,
16,
5123,
326,
845,
73,
225,
389,
10035,
20,
280,
21,
353,
326,
2172,
30705,
261,
20,
13,
471,
3613,
20330,
261,
21,
13,
225,
389,
70,
278,
31787,
353,
326,
3844,
2701,
316,
1728,
87,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2701,
12,
203,
3639,
2254,
28,
389,
1916,
1854,
16,
203,
3639,
2254,
28,
389,
10035,
20,
280,
21,
16,
203,
3639,
2254,
1578,
389,
70,
278,
31787,
203,
565,
262,
3903,
288,
203,
3639,
2583,
24899,
70,
278,
31787,
1648,... |
./full_match/43114/0x7493EA4d56EC904f8d8579eA98E92BD93fa27dc5/sources/XMAS/TimeERC20Token.sol | * @dev Removes a value from a set. O(1). Returns true if the value was removed from the set, that is if it was present./ | function remove(Bytes4Set storage set, bytes4 value) internal returns (bool) {
return _remove(set._inner, value);
}
| 4,516,560 | [
1,
6220,
279,
460,
628,
279,
444,
18,
531,
12,
21,
2934,
2860,
638,
309,
326,
460,
1703,
3723,
628,
326,
444,
16,
716,
353,
309,
518,
1703,
3430,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
12,
2160,
24,
694,
2502,
444,
16,
1731,
24,
460,
13,
2713,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
4479,
12,
542,
6315,
7872,
16,
460,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/42220/0x163cd93cB94A414638D3582De74572C98BAcAF1e/sources/contracts/MarketPlaceNom.sol | * @dev See {INFTKEYMarketPlaceV1-buyToken}. Must have a valid listing msg.sender must not the owner of token msg.value must be at least sell price plus fees/ | function buyToken(address sender, string memory name, uint256 value) external payable {
uint256 tokenId = calculateTokenId(name);
require(!_isTokenOwner(tokenId, sender), "Token owner can't buy their own token");
require(
value >= listing.listingPrice,
"The value send... | 16,333,136 | [
1,
9704,
288,
706,
4464,
3297,
3882,
278,
6029,
58,
21,
17,
70,
9835,
1345,
5496,
6753,
1240,
279,
923,
11591,
1234,
18,
15330,
1297,
486,
326,
3410,
434,
1147,
1234,
18,
1132,
1297,
506,
622,
4520,
357,
80,
6205,
8737,
1656,
281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
1345,
12,
2867,
5793,
16,
533,
3778,
508,
16,
2254,
5034,
460,
13,
3903,
8843,
429,
288,
203,
3639,
2254,
5034,
1147,
548,
273,
4604,
1345,
548,
12,
529,
1769,
203,
3639,
2583,
12,
5,
67,
291,
1345,
5541,
12,
... |
// Sources flattened with hardhat v2.6.8 https://hardhat.org
// File @openzeppelin/contracts/utils/EnumerableSet.sol@v3.4.2
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Se... | * @notice Change the minter address @param minter_ The address of the new minter/ | function setMinter(address minter_) external {
require(msg.sender == minter, "Tribe::setMinter: only the minter can change the minter address");
emit MinterChanged(minter, minter_);
minter = minter_;
}
| 14,088,372 | [
1,
3043,
326,
1131,
387,
1758,
225,
1131,
387,
67,
1021,
1758,
434,
326,
394,
1131,
387,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15430,
2761,
12,
2867,
1131,
387,
67,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1131,
387,
16,
315,
1070,
495,
73,
2866,
542,
49,
2761,
30,
1338,
326,
1131,
387,
848,
2549,
326,
1131,
387,
1758,
8863,
... |
./partial_match/1/0x71cd3572a40E82eaaa5d347bD351e3d3C1366aD5/sources/SMCRHIMagnesita.sol | não sei se precisa
| revert("Decision not boolean"); | 15,677,215 | [
1,
82,
132,
101,
83,
695,
77,
695,
13382,
291,
69,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
15226,
2932,
15861,
486,
1250,
8863,
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,
-1... |
./partial_match/1/0xa09D896D5694DDC2278A75B74eB2b280e4F89ef6/sources/Kachow.sol | 2% max transaction at launch
| maxTransaction = 1_900_000 * 1e18; | 4,126,434 | [
1,
22,
9,
943,
2492,
622,
8037,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
943,
3342,
273,
404,
67,
29,
713,
67,
3784,
380,
404,
73,
2643,
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,
-10... |
./full_match/1/0xC8aE7e42e834bc11c906d01726e55571a0620158/sources/contracts/modules/FixedPriceSignatureMinter.sol | cache the local group for efficiency | ticketGroup = _claimsBitmaps[edition][mintId][ticketGroupIdx];
| 5,010,184 | [
1,
2493,
326,
1191,
1041,
364,
30325,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
9322,
1114,
273,
389,
28979,
5775,
10711,
63,
329,
608,
6362,
81,
474,
548,
6362,
16282,
1114,
4223,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/97/0xC2b67FF432258a82a11f5a8916ACd0A1284F8332/sources/project_/contracts/presale-contracts-2/Presale.sol | save token balance of the contract
| tokenBalance[address(this)] = totalPresaleToken; | 5,032,109 | [
1,
5688,
1147,
11013,
434,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1147,
13937,
63,
2867,
12,
2211,
25887,
273,
2078,
12236,
5349,
1345,
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,
... |
./full_match/42220/0x574f683a3983AF2C386cc073E93efAE7fE2B9eb3/sources/contracts/UniswapLiquiditySwapAdapter.sol | * @dev Swaps an exact `amountToSwap` of an asset to another @param assetToSwapFromPrice Origin asset to get price @param assetToSwapToPrice Destination asset to get pricce @param assetToSwapFrom Origin asset @param assetToSwapTo Destination asset @param amountToSwap Exact amount of `assetToSwapFrom` to be swapped @para... | function _swapExactTokensForTokens(
address assetToSwapFromPrice,
address assetToSwapToPrice,
address assetToSwapFrom,
address assetToSwapTo,
uint256 amountToSwap,
uint256 minAmountOut,
bool useEthPath,
bool aTokenExist
) internal returns (uint256) {
uint256 fromAssetDecimals = _... | 16,326,891 | [
1,
6050,
6679,
392,
5565,
1375,
8949,
774,
12521,
68,
434,
392,
3310,
358,
4042,
225,
3310,
774,
12521,
1265,
5147,
18040,
3310,
358,
336,
6205,
225,
3310,
774,
12521,
774,
5147,
10691,
3310,
358,
336,
846,
335,
311,
225,
3310,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22270,
14332,
5157,
1290,
5157,
12,
203,
565,
1758,
3310,
774,
12521,
1265,
5147,
16,
203,
565,
1758,
3310,
774,
12521,
774,
5147,
16,
203,
565,
1758,
3310,
774,
12521,
1265,
16,
203,
565,
1758,
3310,
774,
12521,
7... |
./full_match/1/0x70C65C7b4B52A61d9FE6eE46Be0a3D1f23B53450/sources/contracts/TokenUtils.sol | * @notice get token shares from amount @param token erc20 token interface @param total current total shares @param amount balance of tokens/ | ) internal view returns (uint256) {
if (total == 0) return 0;
uint256 balance = token.balanceOf(address(this));
if (total < balance * FLOOR_SHARES_PER_TOKEN)
return amount * FLOOR_SHARES_PER_TOKEN;
return (total * amount) / balance;
}
| 3,072,807 | [
1,
588,
1147,
24123,
628,
3844,
225,
1147,
6445,
71,
3462,
1147,
1560,
225,
2078,
783,
2078,
24123,
225,
3844,
11013,
434,
2430,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
262,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
4963,
422,
374,
13,
327,
374,
31,
203,
3639,
2254,
5034,
11013,
273,
1147,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
309,
261,
4963,
411,
1... |
./partial_match/1/0x4681D7Ba484a679D10F68D7f6F0E1222e93b5779/sources/CouponClipper.sol | @notice Internal logic used to redeem coupons on the coupon holder's bahalf @param _user Address of the user holding the coupons (and who has approved this contract) @param _epoch The epoch in which the _user purchased the coupons @param _couponAmount The number of coupons to redeem (18 decimals) @return the fee (in E... | function _redeem(address _user, uint _epoch, uint _couponAmount) internal returns (uint) {
uint botRate = getOffer(_user).sub(HOUSE_RATE);
uint botFee = _couponAmount.mul(botRate).div(10_000);
uint houseFee = _couponAmount.mul(HOUSE_RATE).div(10_000);
return botFee;... | 15,654,026 | [
1,
3061,
4058,
1399,
358,
283,
24903,
1825,
30324,
603,
326,
16174,
10438,
1807,
324,
9795,
6186,
225,
389,
1355,
5267,
434,
326,
729,
19918,
326,
1825,
30324,
261,
464,
10354,
711,
20412,
333,
6835,
13,
225,
389,
12015,
1021,
7632,
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,
389,
266,
24903,
12,
2867,
389,
1355,
16,
2254,
389,
12015,
16,
2254,
389,
24090,
6275,
13,
2713,
1135,
261,
11890,
13,
288,
203,
540,
203,
3639,
2254,
2512,
4727,
273,
336,
10513,
24899,
1355,
2934,
1717,
12,
7995,
800... |
./partial_match/1/0xfC8365CA9F5c0e0F11646D1B9703339F04a44b9D/sources/BFUMO.sol | File contracts/baped.sol | contract BFUMO is ERC20 {
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
pragma solidity ^0.8.15;
constructor() ERC20("Baby Alien Milady Fumo", "BFUMO") {
... | 15,609,034 | [
1,
812,
20092,
19,
70,
5994,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
42,
2799,
51,
353,
4232,
39,
3462,
288,
7010,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
445,
389,
5205,
1345,
5912,
12,
203,... |
./partial_match/8453/0x9385D0f9633badd3D496A3D53DAD305087020f37/sources/MYSTCLGenesis.sol | * @dev Internal function to execute battle. @param _battleId Battle Id/ | function executeBattle(uint256 _battleId) internal {
BattleInfo storage battle = battleQueue[_battleId];
require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK");
require(battle.battleState == BattleState.RUNNING, "Current battle is finished");
bytes32 requestId = requestRandomness(keyHash, ... | 16,818,225 | [
1,
3061,
445,
358,
1836,
324,
4558,
298,
18,
225,
389,
70,
4558,
298,
548,
605,
4558,
298,
3124,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1836,
38,
4558,
298,
12,
11890,
5034,
389,
70,
4558,
298,
548,
13,
2713,
288,
203,
565,
605,
4558,
298,
966,
2502,
324,
4558,
298,
273,
324,
4558,
298,
3183,
63,
67,
70,
4558,
298,
548,
15533,
203,
203,
565,
2583,
1... |
./full_match/10/0x136E29d881DD91349d660B452aFb206e09C94268/sources/project_/contracts/interfaces/IBondDepository.sol | last timestamp when market was created and debt was decayed
| uint48 lastDecay; | 3,783,768 | [
1,
2722,
2858,
1347,
13667,
1703,
2522,
471,
18202,
88,
1703,
22286,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
11890,
8875,
1142,
1799,
528,
31,
5411,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0xA993Fa728507D4BCf4a6411B39480Df5234FE538/sources/lib/ERC721H/src/interfaces/IERC721ACH.sol | * @dev Enumerated list of all available hook types for the ERC721ACH contract./ | enum HookType {
BeforeTokenTransfers,
AfterTokenTransfers
| 7,034,867 | [
1,
3572,
19007,
666,
434,
777,
2319,
3953,
1953,
364,
326,
4232,
39,
27,
5340,
18133,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
2792,
13725,
559,
288,
203,
540,
203,
3639,
11672,
1345,
1429,
18881,
16,
203,
3639,
7360,
1345,
1429,
18881,
203,
3639,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.4.24;
/****************************************************************************
* ******MAJz Token Smart Contract****** *
* Symbol : MAZ *
* Name : MAJz ... | SafeMath will throw if _value > allowance
| allowed[_originAddress][msg.sender] = SafeMath.sub(allowed[_originAddress][msg.sender], _value); | 2,577,323 | [
1,
9890,
10477,
903,
604,
309,
389,
1132,
405,
1699,
1359,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2935,
63,
67,
10012,
1887,
6362,
3576,
18,
15330,
65,
273,
14060,
10477,
18,
1717,
12,
8151,
63,
67,
10012,
1887,
6362,
3576,
18,
15330,
6487,
389,
1132,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, ... | set once, can never be set again (contract updates this value)
| _commitmentId = 1; | 5,906,915 | [
1,
542,
3647,
16,
848,
5903,
506,
444,
3382,
261,
16351,
4533,
333,
460,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
7371,
475,
548,
273,
404,
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,
-1... |
./full_match/1/0x99E445fb7E33E3eA5F1527D285d9B2CCA0Fc8520/sources/contracts/proxy/VaultProxy.sol | @dev returns the implementation | function implementation() external view returns (address) {
return _implementation2(0);
}
| 4,908,016 | [
1,
6154,
326,
4471,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4471,
1435,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
30810,
22,
12,
20,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
... | exclude from fees, wallet limit and transaction limit | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
}
constructor(address _dev) public ERC20("Ovcharka Inu", "Ovcharka") {
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
_approve(addres... | 440,024 | [
1,
10157,
628,
1656,
281,
16,
9230,
1800,
471,
2492,
1800,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
97,
203,
203,
565,
3885,
12,
2867,
389,
5206,
13,
1071,
4232,
39,
3462,
2932,
51,
90,
343,
1313,
69,
6... |
pragma solidity ^0.5.4;
import "../CommonContract/AuctionityInternalDelegates_V1.sol";
import "../CommonContract/SafeMath.sol";
import "../CommonContract/SafeMath96.sol";
import "../CommonContract/SafeMath32.sol";
import "../CommonContract/SafeMath16.sol";
import "../CommonContract/SafeMath8.sol";
contract Auctionity... | @notice internal set amount from reward's percent @param auctionId bytes32 calculate amount of community rewards calculate amount of auction sponsor rewards transfer auction's sponsor rewards transfer last bid sponsor rewards | function _setRewardsAmount_V1(bytes16 auctionId, uint256 currentAmount) internal {
uint256 rewardCommunityAmount = currentAmount.mul(uint256(getAuctionRewardCommunity_V1(auctionId))).div(100);
_setAuctionRewardCommunityAmount_V1(auctionId, rewardCommunityAmount);
if(rewardCommunityAmount >... | 998,934 | [
1,
7236,
444,
3844,
628,
19890,
1807,
5551,
225,
279,
4062,
548,
1731,
1578,
4604,
3844,
434,
19833,
283,
6397,
4604,
3844,
434,
279,
4062,
272,
500,
2467,
283,
6397,
7412,
279,
4062,
1807,
272,
500,
2467,
283,
6397,
7412,
1142,
9949,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
17631,
14727,
6275,
67,
58,
21,
12,
3890,
2313,
279,
4062,
548,
16,
2254,
5034,
783,
6275,
13,
2713,
288,
203,
203,
3639,
2254,
5034,
19890,
12136,
13352,
6275,
273,
783,
6275,
18,
16411,
12,
11890,
5034,
12,
... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.7;
import {IERC20} from "./interfaces/IERC20.sol";
/**
* @title Modern and gas efficient ERC-20 implementation.
* @dev Code taken from https://github.com/maple-labs/erc20
* @dev Acknowledgements to Solmate, OpenZeppelin, and DSS for inspiring this ... | * @title Modern and gas efficient ERC-20 implementation. @dev Acknowledgements to Solmate, OpenZeppelin, and DSS for inspiring this code./ | contract ERC20 is IERC20 {
string public override name;
string public override symbol;
uint8 public immutable override decimals;
uint256 public override totalSupply;
mapping(address => uint256) public override balanceOf;
mapping(address => mapping(address => uint256)) public override allowan... | 1,757,939 | [
1,
1739,
8865,
471,
16189,
14382,
4232,
39,
17,
3462,
4471,
18,
565,
22322,
10378,
75,
17110,
358,
348,
355,
81,
340,
16,
3502,
62,
881,
84,
292,
267,
16,
471,
463,
1260,
364,
316,
1752,
11256,
333,
981,
18,
19,
2,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
353,
467,
654,
39,
3462,
288,
203,
565,
533,
1071,
3849,
508,
31,
203,
565,
533,
1071,
3849,
3273,
31,
203,
203,
565,
2254,
28,
1071,
11732,
3849,
15105,
31,
203,
203,
565,
2254,
5034,
1071,
3849,
2078,
3... |
./partial_match/1/0x1955D86f5b369Be4581Fb2D346B403d362883aC7/sources/EmployeeIDBadges.sol | * completeInitialization1 sets up the CIG factory worker traits/ new traits/ | function completeInitialization1(AttInit[] calldata _atts) external {
require(msg.sender == curator, "only curator");
for (uint256 i = 0; i < _atts.length; i++) {
atts[_atts[i].k] = Attribute(_atts[i].isType, bytes(_atts[i].value));
}
}
| 3,590,561 | [
1,
6226,
17701,
21,
1678,
731,
326,
385,
3047,
3272,
4322,
18370,
19,
394,
18370,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3912,
17701,
21,
12,
3075,
2570,
8526,
745,
892,
389,
270,
3428,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
662,
639,
16,
315,
3700,
662,
639,
8863,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
... |
/**
*Submitted for verification at Etherscan.io on 2020-11-15
*/
// File: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol
pragma solidity >=0.4.24 <0.7.0;
/**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a funct... | This will update the state of lastIsMint, when called publically So we have to sync it before to the last LP token value. Do not block after small liq additions you can only withdraw 350$ now with front running And cant front run buys with liq add ( adversary drain )lastIsMint = _balanceCORE > lastSupplyOfCoreInPair &... | function sync() public returns (bool lastIsMint, bool lpTokenBurn) {
uint256 _LPSupplyOfPairTotal = IERC20(tokenUniswapPair).totalSupply();
lpTokenBurn = lastTotalSupplyOfLPTokens > _LPSupplyOfPairTotal;
lastTotalSupplyOfLPTokens = _LPSupplyOfPairTotal;
uint256 _balanceWETH = IERC2... | 7,749,477 | [
1,
2503,
903,
1089,
326,
919,
434,
1142,
2520,
49,
474,
16,
1347,
2566,
1071,
1230,
6155,
732,
1240,
358,
3792,
518,
1865,
358,
326,
1142,
511,
52,
1147,
460,
18,
2256,
486,
1203,
1839,
5264,
4501,
85,
26260,
1846,
848,
1338,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3792,
1435,
1071,
1135,
261,
6430,
1142,
2520,
49,
474,
16,
1426,
12423,
1345,
38,
321,
13,
288,
203,
203,
3639,
2254,
5034,
389,
14461,
3088,
1283,
951,
4154,
5269,
273,
467,
654,
39,
3462,
12,
2316,
984,
291,
91,
43... |
./full_match/100/0x2327dB49Af92d468F00127AA9037334CFed3CB38/sources/contracts/TokenSale.sol | @dev allows admin to specify a multiplier and/or divisor for calculating price of our custom token in correspondence to amount of ETH/DAI passed in to the Buy operation.@param _tokensPerEthMultiplier is the multiplier. 20 would mean 1:20. 1 ETH/DAI would allow them to purchase 20 tokens.@param _tokensPerEthDivisor ... | function setTokenMath(uint256 _tokensPerEthMultiplier, uint256 _tokensPerEthDivisor) external onlyAdmin payable {
require(_tokensPerEthMultiplier > 0 && _tokensPerEthDivisor > 0, "WhitelistedTokenSale: rates must be > 0");
tokensPerEthMultiplier = _tokensPerEthMultiplier;
tokensPerE... | 14,291,220 | [
1,
5965,
87,
3981,
358,
4800,
279,
15027,
471,
19,
280,
15013,
364,
21046,
6205,
434,
3134,
1679,
1147,
316,
4325,
802,
358,
3844,
434,
512,
2455,
19,
9793,
45,
2275,
316,
377,
358,
326,
605,
9835,
1674,
18,
389,
7860,
2173,
41,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
22629,
10477,
12,
11890,
5034,
389,
7860,
2173,
41,
451,
23365,
16,
2254,
5034,
389,
7860,
2173,
41,
451,
7244,
12385,
13,
3903,
1338,
4446,
8843,
429,
288,
203,
3639,
2583,
24899,
7860,
2173,
41,
451,
23365,
405,
374,
... |
pragma solidity ^0.5.17;
// Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/math/SafeMath.sol
// Adapted to use pragma ^0.5.17 and satisfy our linter rules
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
string private constan... | SPDX-License-Identifier: MIT/ | interface IArbitrator {
function createDispute(uint256 _possibleRulings, bytes calldata _metadata) external returns (uint256);
function submitEvidence(uint256 _disputeId, address _submitter, bytes calldata _evidence) external;
function closeEvidencePeriod(uint256 _disputeId) external;
function rule(u... | 91,694 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
565,
490,
1285,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
5831,
467,
686,
3682,
86,
639,
288,
203,
565,
445,
752,
1669,
2507,
12,
11890,
5034,
389,
12708,
54,
332,
899,
16,
1731,
745,
892,
389,
4165,
13,
3903,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
4879,
30465,
12,
11890,
5... |
./full_match/1/0x001A48F520b741ebda232f4e6328999CbF2fd743/sources/https_/github.com/TnzGit/giggly-baby/blob/master/contracts/token/ERC20/ERC20.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, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor (string memory name_, string mem... | 4,969,915 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
16,
467,
654,
39,
3462,
2277,
288,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
... |
./partial_match/1/0xFccc39Ffd6002a60e7582f10F6E6C94BEaeaA73c/sources/contracts/option/Distributions.sol | * @title Distributions @author DeOrderBook @custom:license Copyright (c) DeOrderBook, 2023 — All Rights Reserved @notice This contract manages different types of fees and their distributions. It is responsible for defining fee ratios and their allocations. It is upgradeable and only the contract owner has ... | contract Distributions is OwnableUpgradeable {
uint16 public entryFeeRatio;
uint16 public exerciseFeeRatio;
uint16 public withdrawFeeRatio;
uint16 public redeemFeeRatio;
uint8 public bulletToRewardRatio;
uint16 public hodlWithdrawFeeRatio;
pragma solidity ^0.8.4;
struct Distribution {
... | 15,668,542 | [
1,
1669,
15326,
225,
1505,
2448,
9084,
632,
3662,
30,
12687,
25417,
261,
71,
13,
1505,
2448,
9084,
16,
26599,
23,
225,
163,
227,
247,
4826,
534,
10730,
16237,
225,
1220,
6835,
20754,
281,
3775,
1953,
434,
1656,
281,
471,
3675,
23296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3035,
15326,
353,
14223,
6914,
10784,
429,
288,
203,
565,
2254,
2313,
1071,
1241,
14667,
8541,
31,
203,
203,
565,
2254,
2313,
1071,
24165,
14667,
8541,
31,
203,
203,
565,
2254,
2313,
1071,
598,
9446,
14667,
8541,
31,
203,
20... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.5;
contract MovieBallot {
struct Candidate {
string name;
uint votecount;
}
struct Voter {
bool voted;
}
Candidate[] public candidates;
mapping(address => Voter) public voters;
constructor() publi... | if (voters[msg.sender].voted) { return; } else { candidates[index].votecount +=1; voters[msg.sender].voted = true; } | function voteCandidate(uint8 index) public {
require(!voters[msg.sender].voted, "have voted!");
candidates[index].votecount +=1;
voters[msg.sender].voted = true;
}
| 14,052,251 | [
1,
430,
261,
90,
352,
414,
63,
3576,
18,
15330,
8009,
90,
16474,
13,
288,
377,
327,
31,
289,
469,
288,
377,
7965,
63,
1615,
8009,
90,
352,
557,
592,
1011,
21,
31,
377,
331,
352,
414,
63,
3576,
18,
15330,
8009,
90,
16474,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12501,
11910,
12,
11890,
28,
770,
13,
1071,
288,
203,
540,
203,
3639,
2583,
12,
5,
90,
352,
414,
63,
3576,
18,
15330,
8009,
90,
16474,
16,
315,
21516,
331,
16474,
4442,
1769,
203,
3639,
7965,
63,
1615,
8009,
90,
352,
... |
./full_match/100/0x6bE718C566d5D25D350F72fFbcb01fAd46675C97/sources/github/ice09/circles-contracts/contracts/GroupCurrencyToken.sol | Group currently is created from collateral tokens, which have to be transferred to this Token before. Note: This function is not restricted, so anybody can mint with the collateral Token! The function call must be transactional to be safe. Check status | function mint(address[] calldata _collateral, uint256[] calldata _amount) public returns (uint256) {
require(!suspended, "Minting has been suspended.");
if (onlyOwnerCanMint) {
require(msg.sender == owner, "Only owner can mint.");
require(HubI(hub).limits(address(this), msg.s... | 14,286,538 | [
1,
1114,
4551,
353,
2522,
628,
4508,
2045,
287,
2430,
16,
1492,
1240,
358,
506,
906,
4193,
358,
333,
3155,
1865,
18,
3609,
30,
1220,
445,
353,
486,
15693,
16,
1427,
1281,
3432,
848,
312,
474,
598,
326,
4508,
2045,
287,
3155,
5,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
8526,
745,
892,
389,
12910,
2045,
287,
16,
2254,
5034,
8526,
745,
892,
389,
8949,
13,
1071,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
5,
87,
22942,
16,
315,
49,
474,
310,
711,
2118,
2... |
pragma solidity ^0.8.4;
// SPDX-License-Identifier: UNLICENSED
interface IBEP20 {
function totalSupply() external view returns (uint256);
function decimals() external view returns (uint8);
function symbol() external view returns (string memory);
function name() external view returns (string memory);
functio... | Resets buy lock of caller to the default buyLockTime should something go very wrong | function AddressResetBuyLock() public{
_buyLock[msg.sender]=block.timestamp+buyLockTime;
}
| 965,469 | [
1,
18900,
30143,
2176,
434,
4894,
358,
326,
805,
30143,
2531,
950,
1410,
5943,
1960,
8572,
7194,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5267,
7013,
38,
9835,
2531,
1435,
1071,
95,
203,
3639,
389,
70,
9835,
2531,
63,
3576,
18,
15330,
65,
33,
2629,
18,
5508,
15,
70,
9835,
2531,
950,
31,
203,
202,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x91C986709Bb4fE0763edF8E2690EE9d5019Bea4a/sources/contracts/interfaces/IStrategyBase.sol | @title IStrategyBase Interface @author imToken Labs | interface IStrategyBase {
event UpgradeSpender(address newSpender);
event AllowTransfer(address indexed spender, address token);
event DisallowTransfer(address indexed spender, address token);
event DepositETH(uint256 amount);
function upgradeSpender(address _newSpender) external;
function ... | 2,656,969 | [
1,
45,
4525,
2171,
6682,
225,
709,
1345,
511,
5113,
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,
5831,
467,
4525,
2171,
288,
203,
565,
871,
17699,
27223,
264,
12,
2867,
394,
27223,
264,
1769,
203,
203,
565,
871,
7852,
5912,
12,
2867,
8808,
17571,
264,
16,
1758,
1147,
1769,
203,
203,
565,
871,
3035,
5965,
5912,
12,
2867,
8808... |
./partial_match/1/0xD3d19539D61bB0e7617E499C7262594E71CA1c66/sources/SwapCreator.sol | Swap state is PENDING when the swap is first created and funded Alice sets Stage to READY when she sees the funds locked on the other chain. this prevents Bob from withdrawing funds without locking funds on the other chain first Stage is set to COMPLETED upon the swap value being claimed or refunded. | contract SwapCreator is ERC2771Context, Secp256k1 {
enum Stage {
INVALID,
PENDING,
READY,
COMPLETED
}
struct Swap {
address payable owner;
address payable claimer;
bytes32 pubKeyClaim;
bytes32 pubKeyRefund;
uint256 timeout0;
ui... | 15,556,421 | [
1,
12521,
919,
353,
28454,
1347,
326,
7720,
353,
1122,
2522,
471,
9831,
785,
432,
2008,
1678,
16531,
358,
10746,
61,
1347,
23901,
29308,
326,
284,
19156,
8586,
603,
326,
1308,
2687,
18,
333,
17793,
605,
947,
628,
598,
9446,
310,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12738,
10636,
353,
4232,
39,
22,
4700,
21,
1042,
16,
3232,
84,
5034,
79,
21,
288,
203,
565,
2792,
16531,
288,
203,
3639,
10071,
16,
203,
3639,
28454,
16,
203,
3639,
10746,
61,
16,
203,
3639,
25623,
40,
203,
565,
289,
203... |
./full_match/80001/0x14e39aDc79A7610c685143c4cd891F94dB3B40cD/sources/@aragon/osx/framework/dao/DAOFactory.sol | @notice Thrown if `PluginSettings` array is empty, and no plugin is provided. | error NoPluginProvided();
| 5,569,324 | [
1,
29591,
309,
1375,
3773,
2628,
68,
526,
353,
1008,
16,
471,
1158,
1909,
353,
2112,
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,
555,
2631,
3773,
19254,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2020-08-25
*/
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existe... | * @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 `ERC20Mintable`. For a detailed writeup see our guide [How to implement supply We have follo... | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => uint256) internal _datesOfFirstTransfer;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
function totalSupply() pub... | 25,391 | [
1,
13621,
434,
326,
1375,
45,
654,
39,
3462,
68,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
1375,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5... |
pragma solidity ^0.4.23;
import "raiden/Token.sol";
import "raiden/Utils.sol";
import "raiden/lib/ECVerify.sol";
import "raiden/TokenNetwork.sol";
import "raiden/RaidenServiceBundle.sol";
contract MonitoringService is Utils {
string constant public contract_version = "0.3._";
// Token to be used for paying t... | @notice Called after a monitored channel is settled in order for MS to claim the reward Can be called once per settled channel by everyone on behalf of MS @param token_network_address Address of the Token Network in which the channel @param closing_participant Address of the participant of the channel that called clos... | function claimReward(
address token_network_address,
address closing_participant,
address non_closing_participant
)
public
returns (bool)
{
TokenNetwork token_network = TokenNetwork(token_network_address);
uint256 channel_identifier = token_network.get... | 12,814,495 | [
1,
8185,
1839,
279,
28651,
1904,
353,
26319,
1259,
316,
1353,
364,
9238,
358,
7516,
326,
19890,
4480,
506,
2566,
3647,
1534,
26319,
1259,
1904,
635,
3614,
476,
603,
12433,
6186,
434,
9238,
225,
1147,
67,
5185,
67,
2867,
5267,
434,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7516,
17631,
1060,
12,
203,
3639,
1758,
1147,
67,
5185,
67,
2867,
16,
203,
3639,
1758,
7647,
67,
2680,
14265,
16,
203,
3639,
1758,
1661,
67,
19506,
67,
2680,
14265,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1135,
261,
... |
// ____ ___ ____ ___ _ _ __ __
// | _ \ / _ \| _ \_ _| | | | \/ |
// | |_) | | | | | | | || | | | |\/| |
// | __/| |_| | |_| | || |_| | | | |
// |_| \___/|____/___|\___/|_| |_|
//
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/* --------------------------... | * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf()./ | function _setOwnersExplicit(uint256 quantity) internal {
uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
require(quantity > 0, "quantity must be nonzero");
uint256 endIndex = oldNextOwnerToSet + quantity - 1;
function _approve(
address to,
uint256 tokenId,
address owner
}
uint256 ... | 410,437 | [
1,
17186,
715,
444,
1375,
995,
414,
68,
358,
29529,
14075,
316,
3563,
4097,
434,
3410,
951,
7675,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
542,
5460,
414,
17186,
12,
11890,
5034,
10457,
13,
2713,
288,
203,
565,
2254,
5034,
1592,
2134,
5541,
25208,
273,
1024,
5541,
774,
17186,
715,
694,
31,
203,
565,
2583,
12,
16172,
405,
374,
16,
315,
16172,
1297,
506... |
./full_match/84531/0x856A3439C211a3A8CE2f102Bc71fF5035fe50AF5/sources/project:/contracts/EIP712.sol | Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to invalidate the cached domain separator if the chain id changes. | abstract contract EIP712 {
bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
uint256 private immutable _CACHED_CHAIN_ID;
address private immutable _CACHED_THIS;
bytes32 private immutable _HASHED_NAME;
bytes32 private immutable _HASHED_VERSION;
bytes32 private immutable _TYPE_HASH;
pragma so... | 11,499,327 | [
1,
1649,
326,
2461,
4182,
487,
392,
11732,
460,
16,
1496,
2546,
1707,
326,
2687,
612,
716,
518,
13955,
358,
16,
316,
1353,
358,
11587,
326,
3472,
2461,
4182,
309,
326,
2687,
612,
3478,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
512,
2579,
27,
2138,
288,
203,
565,
1731,
1578,
3238,
11732,
389,
3587,
15023,
67,
18192,
67,
4550,
31,
203,
565,
2254,
5034,
3238,
11732,
389,
3587,
15023,
67,
1792,
6964,
67,
734,
31,
203,
565,
1758,
3238,
11732,
3... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owne... | Collect token IDs to burn Burn all tokens held by the target address | function revoke(address target) onlyOwner public {
require(ownedTokensCount[target] > 0);
uint256 addressTokensCount = ownedTokensCount[target];
uint256[] memory burnTokenIds = new uint256[](addressTokensCount);
for (uint256 i = 0; i < addressTokensCount; i++) {
burnTokenIds[i] = tokenOfOwnerB... | 1,471,554 | [
1,
10808,
1147,
7115,
358,
18305,
605,
321,
777,
2430,
15770,
635,
326,
1018,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
225,
445,
18007,
12,
2867,
1018,
13,
1338,
5541,
1071,
288,
203,
565,
2583,
12,
995,
329,
5157,
1380,
63,
3299,
65,
405,
374,
1769,
203,
203,
565,
2254,
5034,
1758,
5157,
1380,
273,
16199,
5157,
1380,
63,
3299,
15533,
203,
203,
... |
./partial_match/42/0x7BbD82Cf9067ddba47b2d3A2c9070E9f984321e8/sources/LavaWallet.sol | do not allow ether to enter | function() external payable {
revert();
}
| 3,319,568 | [
1,
2896,
486,
1699,
225,
2437,
358,
6103,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1435,
3903,
8843,
429,
288,
203,
1377,
15226,
5621,
203,
225,
289,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x195B0534e07A80170aBb6A620a6819632381f51D/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,907,101 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
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... |
/**
*Submitted for verification at Etherscan.io on 2021-05-10
*/
//SPDX-License-Identifier: MIT
/*
* MIT License
* ===========
*
* 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 rest... | underlying _mint function has hard limit | constructor () public ERC20Detailed("Maneki-neko Lucky Koban Coin", "KBAN", 18) {
governance = msg.sender;
addMinter(governance);
mint(governance, 1e28);
}
| 10,876,244 | [
1,
9341,
6291,
389,
81,
474,
445,
711,
7877,
1800,
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,
3885,
1832,
1071,
4232,
39,
3462,
40,
6372,
2932,
5669,
3839,
77,
17,
82,
3839,
83,
511,
9031,
93,
1475,
947,
304,
28932,
3113,
315,
16024,
1258,
3113,
6549,
13,
288,
203,
3639,
314,
1643,
82,
1359,
273,
1234,
18,
15330,
3... |
./full_match/80001/0xba35D3A8a759C76bBc9e4B00a0078301d05A1AD3/sources/Quadrum.sol | * @dev Implementation of the {IERC165} interface. Contracts may inherit from this and call {_registerInterface} to declare their support of an interface./ | abstract contract ERC165 is IERC165 {
mapping(bytes4 => bool) private _supportedInterfaces;
}
constructor() {
_registerInterface(type(IERC165).interfaceId);
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override
returns (bool)
... | 838,944 | [
1,
13621,
434,
326,
288,
45,
654,
39,
28275,
97,
1560,
18,
30131,
2026,
6811,
628,
333,
471,
745,
288,
67,
4861,
1358,
97,
358,
14196,
3675,
2865,
434,
392,
1560,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
28275,
353,
467,
654,
39,
28275,
288,
203,
565,
2874,
12,
3890,
24,
516,
1426,
13,
3238,
389,
4127,
10273,
31,
203,
203,
97,
203,
203,
565,
3885,
1435,
288,
203,
3639,
389,
4861,
1358,
12,
723,
12,
45,
... |
pragma solidity >=0.4.21 <0.6.0;
/// @author Andrea Lisi, Samuel Fabrizi
/// @title RatingFunction
/// @notice This contract interface defines the method to compute the final score of a list of scores
interface RatingFunction {
modifier haveEqualLength(uint[] memory _s, uint[] memory _b) {
require(_s.len... | @notice Compute the final score given a bundle of rating information @param _scores The array of scores @param _blocks The array of blocks containing the scores @param _valuesSkill The array of values about skill of item rated Weighted average based on skill values | ) haveEqualLength(_scores, _valuesSkill) external pure returns(uint) {
uint len = _scores.length;
if (len <= 0)
return 0;
uint totalWeight = 0;
uint totalValues = 0;
for (uint i=0; i<len; i++){
totalValues += _valu... | 5,469,794 | [
1,
7018,
377,
326,
727,
4462,
864,
279,
3440,
434,
13953,
1779,
225,
389,
12630,
1377,
1021,
526,
434,
8474,
225,
389,
7996,
1377,
1021,
526,
434,
4398,
4191,
326,
8474,
225,
389,
2372,
9030,
1021,
526,
434,
924,
2973,
15667,
434,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5397,
262,
1240,
5812,
1782,
24899,
12630,
16,
389,
2372,
9030,
13,
3903,
16618,
1135,
12,
11890,
13,
288,
203,
540,
203,
3639,
2254,
562,
273,
389,
12630,
18,
2469,
31,
203,
203,
3639,
309,
261,
1897,
1648,
374,
13,
7010,
5411,
... |
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.9;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally avai... | * @dev blacklists a wallet address requires the wallet to not be blacklisted yet @param _wallet the wallet to blacklist/ | function blacklist(address _wallet) external onlyBlacklistManager {
require(!blacklisted(_wallet), 'wallet already blacklisted');
_blacklisted[_wallet] = true;
emit Blacklisted(_wallet);
}
| 298,761 | [
1,
11223,
9772,
279,
9230,
1758,
4991,
326,
9230,
358,
486,
506,
25350,
4671,
225,
389,
19177,
326,
9230,
358,
11709,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11709,
12,
2867,
389,
19177,
13,
3903,
1338,
25811,
1318,
288,
203,
3639,
2583,
12,
5,
11223,
18647,
24899,
19177,
3631,
296,
19177,
1818,
25350,
8284,
203,
3639,
389,
11223,
18647,
63,
67,
19177,
65,
273,
638,
31,
203,
... |
./full_match/5/0x81c7a9d494c74F113cCa32d174925352bD3875f1/sources/_connext/nxtp-contracts/contracts/nomad-core/contracts/Replica.sol | ============ External Imports ============ import {TypedMemView} from "@summa-tx/memview-sol/contracts/TypedMemView.sol"; | import {TypedMemView} from "../libs/TypedMemView.sol";
| 1,910,461 | [
1,
14468,
11352,
2221,
4363,
422,
1432,
631,
1930,
288,
11985,
3545,
1767,
97,
628,
8787,
1364,
2540,
17,
978,
19,
3917,
1945,
17,
18281,
19,
16351,
87,
19,
11985,
3545,
1767,
18,
18281,
14432,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5666,
288,
11985,
3545,
1767,
97,
628,
315,
6216,
21571,
19,
11985,
3545,
1767,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x5075DD89F31a71A74EcE3258a9377905c62F2FD1/sources/NFT_Marketplace/NFTCollection.sol | from.transfer(price); | function safeTransferFromWithProvision(address from, address to, uint256 id, uint256 amount/*, uint256 price*/) public returns (bool approved) {
setApprovalForAll(to, true);
safeTransferFrom(from, to, id, amount, "0x0");
return isApprovedForAll(from, to);
}
| 14,197,066 | [
1,
2080,
18,
13866,
12,
8694,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
5912,
1265,
1190,
9679,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
612,
16,
2254,
5034,
3844,
20308,
16,
2254,
5034,
6205,
5549,
13,
1071,
1135,
261,
6430,
20412,
13,
288,
203,
3639,
444,
23461,
1290,
1595,
12,... |
// Copyright 2019 Cartesi Pte. Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
// Unless required by ... | @title RiscVDecoder @author Felipe Argento @notice Contract responsible for decoding the riscv's instructions It applies different bitwise operations and masks to reach specific positions and use that positions to identify the correct function to be executed | library RiscVDecoder {
pragma solidity ^0.7.0;
function insnRd(uint32 insn) public pure returns(uint32) {
return (insn >> 7) & 0x1F;
}
function insnRs1(uint32 insn) public pure returns(uint32) {
return (insn >> 15) & 0x1F;
}
function insnRs2(uint32 insn) public pure returns(uint... | 2,508,060 | [
1,
54,
291,
71,
58,
7975,
225,
478,
292,
3151,
14448,
29565,
225,
13456,
14549,
364,
13547,
326,
436,
291,
19774,
1807,
12509,
1377,
2597,
10294,
3775,
25337,
5295,
471,
20931,
358,
9287,
1377,
2923,
6865,
471,
999,
716,
6865,
358,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12083,
534,
291,
71,
58,
7975,
288,
203,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
27,
18,
20,
31,
203,
565,
445,
29821,
54,
72,
12,
11890,
1578,
29821,
13,
1071,
16618,
1135,
12,
11890,
1578,
13,
288,
203,
3639,
32... |
pragma solidity 0.4.26;
import "./ESOPTypes.sol";
import "./EmployeesList.sol";
import "./OptionsCalculator.sol";
import "../../../Math.sol";
import "../../../Universe.sol";
import "../../../Agreement.sol";
// import "./CodeUpdateable.sol";
import "./IESOPOptionsConverter.sol";
// import './ESOPMigration.sol';
contr... | esop is open when it's open or in partial conversion state | modifier onlyESOPOpen() {
require(isESOPOpen(), "NF_ESOP_ONLY_OPEN");
_;
}
| 12,617,707 | [
1,
281,
556,
353,
1696,
1347,
518,
1807,
1696,
578,
316,
4702,
4105,
919,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
9606,
1338,
41,
3584,
2419,
1907,
1435,
288,
203,
3639,
2583,
12,
291,
41,
3584,
2419,
1907,
9334,
315,
26473,
67,
41,
3584,
52,
67,
10857,
67,
11437,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,... |
./full_match/137/0x4b766A07D464451415f43cd9334E77FE4122c7a2/sources/project_/contracts/ERC20MetaHandler.sol | * @notice Transfers `amount` of `token` to `target`./ | function transfer(IERC20Meta token, uint256 amount, address target, uint256 fee, uint256 chainTokenFee) public {
TransferRequestData memory requestData = TransferRequestData(token, amount, target);
FeeInformation memory feeInformation = FeeInformation(token, fee, chainTokenFee);
checkTransf... | 4,672,982 | [
1,
1429,
18881,
1375,
8949,
68,
434,
1375,
2316,
68,
358,
1375,
3299,
8338,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
45,
654,
39,
3462,
2781,
1147,
16,
2254,
5034,
3844,
16,
1758,
1018,
16,
2254,
5034,
14036,
16,
2254,
5034,
2687,
1345,
14667,
13,
1071,
288,
203,
3639,
12279,
17031,
3778,
19039,
273,
12279,
17031,
12,
2316,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "./erc1363.sol";
import "./pausable.sol";
import "./managable.sol";
import "./vendorregistry.sol";
import "./imigratablewrappedasset.sol";
import "./imigratablevendorregistry.sol";
/// An ERC1363 (also ERC20) for wrapping MRX on the ethereum or BSC chai... | Move the caller's funds and, if necessary, their registration from the previous WrappedAsset & VendorRegistry (as set with setPrevVersion()) to this WrappedAsset and ir's VendorRegistry. This is the method members of the public use to move to an upgraded WrappedAsset & VendorRegistry. | function migrateFromPreviousVersion() public
{
require(prevVendorRegistry != address(0), "WrappedAsset: Migration failed because the previous version has not been set.");
IMigratableVendorRegistry prevVr = IMigratableVendorRegistry(prevVendorRegistry);
address mrxAddress = prevVr.fin... | 7,309,022 | [
1,
7607,
326,
4894,
1807,
284,
19156,
471,
16,
309,
4573,
16,
3675,
7914,
628,
326,
2416,
24506,
6672,
473,
776,
5227,
4243,
261,
345,
444,
598,
444,
9958,
1444,
10756,
358,
333,
24506,
6672,
471,
9482,
1807,
776,
5227,
4243,
18,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13187,
1265,
8351,
1444,
1435,
1071,
203,
3639,
288,
203,
3639,
2583,
12,
10001,
14786,
4243,
480,
1758,
12,
20,
3631,
315,
17665,
6672,
30,
15309,
2535,
2724,
326,
2416,
1177,
711,
486,
2118,
444,
1199,
1769,
203,
3639,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-04
*/
//SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
//import "@nomiclabs/buidler/console.sol";
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally ... | @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 dealing with GSN meta-transactions the account sending and paying for exe... | contract Context {
constructor() {}
function _msgSender() internal view returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view returns (bytes memory) {
return msg.data;
}
}
| 1,507,686 | [
1,
17727,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
486,
506,
15539,
316,
4123,
279,
2657,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
288,
203,
203,
203,
203,
203,
565,
3885,
1435,
2618,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
1135,
261,
2867,
8843,
429,
13,
288,
203,
3639,
327,
8843,
429,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
... |
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018-2020 Crossbar.io Technologies GmbH and contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a ... | All XBR state channel states defined. | enum ChannelState { NULL, OPEN, CLOSING, CLOSED, FAILED }
| 12,794,969 | [
1,
1595,
1139,
7192,
919,
1904,
5493,
2553,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2792,
5307,
1119,
288,
3206,
16,
11919,
16,
27775,
23708,
16,
27160,
16,
18497,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "../interfaces/ERC20Spec.sol";
import "../interfaces/ERC721Spec.sol";
import "../utils/AccessControl.sol";
/**
* @title NFT Staking
*
* @notice Enables NFT staking for a given NFT smart contract defined on deployment
*
* @notice Doesn't introduce any ... | * @dev Testing time-dependent functionality may be difficult; we override time in the helper test smart contract (mock) @return `block.timestamp` in mainnet, custom values in testnets (if overridden)/ return current block timestamp | function now32() public view virtual returns (uint32) {
return uint32(block.timestamp);
}
| 113,874 | [
1,
22218,
813,
17,
10891,
14176,
2026,
506,
3122,
17551,
31,
1377,
732,
3849,
813,
316,
326,
4222,
1842,
13706,
6835,
261,
22851,
13,
327,
1375,
2629,
18,
5508,
68,
316,
2774,
2758,
16,
1679,
924,
316,
1842,
11296,
261,
430,
11000,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
2037,
1578,
1435,
1071,
1476,
5024,
1135,
261,
11890,
1578,
13,
288,
203,
202,
202,
2463,
2254,
1578,
12,
2629,
18,
5508,
1769,
203,
202,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0;
pragma experimental ABIEncoderV2; // Required for Diamond Standard
// Latest published version now is 1.3.5
import "https://github.com/mudgen/diamond-1/blob/1.3.5/contracts/Diamond.sol";
import "https://github.com/mudgen/diamond-1/blob/1.3.5/contracts/facets/Dia... | This is the well-known address of Mary Princeton, a deserving scholar Only the scholar may take funds | contract ScholarshipFacet1 {
address payable constant MARY_PRINCETON = 0x829bD824b016326a401D083B33D093a93333a830;
function takeScholarship() public {
assert(msg.sender == MARY_PRINCETON);
MARY_PRINCETON.transfer(address(this).balance);
}
function takeScholarshipSEL() public p... | 13,089,272 | [
1,
2503,
353,
326,
5492,
17,
2994,
1758,
434,
490,
814,
2301,
9523,
278,
265,
16,
279,
5620,
6282,
18551,
355,
297,
5098,
326,
18551,
355,
297,
2026,
4862,
284,
19156,
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,
348,
343,
355,
976,
625,
11137,
21,
288,
203,
565,
1758,
8843,
429,
5381,
490,
6043,
67,
8025,
706,
1441,
56,
673,
273,
374,
92,
28,
5540,
70,
40,
28,
3247,
70,
24171,
27284,
69,
27002,
40,
6840,
23,
38,
3707,
40,
5908... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @creator: Pak
/// @author: manifold.xyz
import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
//////////////////////////////... | * @dev Set the image base uri (prefix)/ | function setPrefixURI(string calldata uri) external adminRequired {
_commonURI = '';
_prefixURI = uri;
}
| 582,267 | [
1,
694,
326,
1316,
1026,
2003,
261,
3239,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
2244,
3098,
12,
1080,
745,
892,
2003,
13,
3903,
3981,
3705,
288,
203,
3639,
389,
6054,
3098,
273,
26028,
203,
3639,
389,
3239,
3098,
273,
2003,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x4b885bbAC3b6D2B489F2c7859b55eA4128888B32/sources/browser/ERC20.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 => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply = 100000000000;
string private _name;
string priv... | 8,128,527 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
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/4/0x65EF04C1bE02868F8f99A9C9e2892A94b3F36b07/sources/browser/PAPER.sol | (paperBlance + debt) * (totalLP - amount) / totalLP - paperBalance (paperBalance + debt) * user.amount / totalLP | function withdraw(uint256 _amount) public {
require(
paper.totalSupply() == paper.maxSupply(),
"Withdrawals will be available after PAPER max supply is reached"
);
require(
users[msg.sender].amount >= _amount,
"You don't have enough LP tokens"
... | 649,848 | [
1,
12,
27400,
4802,
1359,
397,
18202,
88,
13,
225,
261,
4963,
14461,
300,
3844,
13,
342,
2078,
14461,
300,
15181,
13937,
261,
27400,
13937,
397,
18202,
88,
13,
225,
729,
18,
8949,
342,
2078,
14461,
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,
598,
9446,
12,
11890,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
2583,
12,
203,
5411,
15181,
18,
4963,
3088,
1283,
1435,
422,
15181,
18,
1896,
3088,
1283,
9334,
203,
5411,
315,
1190,
9446,
1031,
903,
506,
2319,
1839,
45... |
./partial_match/4/0xc0E30555660F73aC025dDA7ADe29eFfA03B421d5/sources/DappToken.sol | TODO: Handle fractional tokens TODO: Trigger a transfer event when deploying | function DapToken (uint256 _initialSupply) public {
balanceOf[msg.sender] = _initialSupply;
totalSupply = _initialSupply;
}
| 8,574,579 | [
1,
6241,
30,
5004,
20462,
2430,
2660,
30,
11321,
279,
7412,
871,
1347,
7286,
310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
463,
438,
1345,
261,
11890,
5034,
389,
6769,
3088,
1283,
13,
1071,
288,
203,
3639,
11013,
951,
63,
3576,
18,
15330,
65,
273,
389,
6769,
3088,
1283,
31,
203,
3639,
2078,
3088,
1283,
273,
389,
6769,
3088,
1283,
31,
203,
... |
pragma solidity ^0.5.0;
/**
* @title - How to use this?
* @dev - deploy contract to DEXON netowkr
* @dev - copy deployed address to https://dexon-workshop-vote.netlify.com/
*/
/**
* @title - In this Election Contract, it could take as many rounds of election.
* - As a user of this contract, you are able t... | * @title voted @param uint - election round @param address - the address of the voting person @param bool - has registered or not/ | mapping(uint => mapping(address => bool)) public voted;
| 14,071,921 | [
1,
90,
16474,
225,
2254,
300,
25526,
3643,
225,
1758,
300,
326,
1758,
434,
326,
331,
17128,
6175,
225,
1426,
300,
711,
4104,
578,
486,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
516,
2874,
12,
2867,
516,
1426,
3719,
1071,
331,
16474,
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,
-10... |
./full_match/44787/0x863D395471deDaf1e0947fADe7BE04F423Ba0f9f/sources/contracts/StarFarm.sol | Withdraw LP tokens from MasterChef.require (_pid != 0, 'withdraw STAR by unstaking');if (_pid == 0) require(userNFTs[_msgSender()].length == 0, "nft user"); | function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_msgSender()];
uint256 _useramount = user.amount.sub(user.nftAmount);
require(_useramount >= _amount, "withdraw: amount error");
updatePool... | 13,248,796 | [
1,
1190,
9446,
511,
52,
2430,
628,
13453,
39,
580,
74,
18,
6528,
261,
67,
6610,
480,
374,
16,
296,
1918,
9446,
21807,
635,
640,
334,
6159,
8284,
430,
261,
67,
6610,
422,
374,
13,
2583,
12,
1355,
50,
4464,
87,
63,
67,
3576,
12021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
67,
... |
pragma solidity 0.4.25;
import "./ACL.sol";
contract PHIResultsDB is ACL {
struct KitIdx {
uint index;
bool exists;
}
mapping(address => mapping(bytes24 => bytes32[])) private storedKitsId;
mapping(address => mapping(bytes24 => bytes32[])) private storedHashes1;
mapping(address => mapping(byte... | prevents a duplicate to be added
| require(checkSum.exists == false); | 15,797,354 | [
1,
29150,
87,
279,
6751,
358,
506,
3096,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2583,
12,
1893,
3495,
18,
1808,
422,
629,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/3/0xf48346Fff6DFe55f3C4Ff8D36349dbc984ED83C2/sources/contracts/BeeFriendsContract.sol | burn the 2 tokens mint new token fire event in logs | function fuseBeeFriends(uint256 firstBeeFriendTokenId, uint256 secondBeeFriendTokenId) external payable {
require(beeFriendsFusionIsActive, "bee friends fusion is inactive");
require(totalSupply() < nbBeeFriendTokenAvailable, "No baby bees available for the moment");
require(totalSupply() < ... | 14,153,687 | [
1,
70,
321,
326,
576,
2430,
312,
474,
394,
1147,
4452,
871,
316,
5963,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
19552,
27997,
42,
22259,
12,
11890,
5034,
1122,
27997,
42,
7522,
1345,
548,
16,
2254,
5034,
2205,
27997,
42,
7522,
1345,
548,
13,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
70,
1340,
42,
22259,
42,
7063,
2520,
3896,
16,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer f... | @title StableMasterStorage @author Angle Core Team @notice `StableMaster` is the contract handling all the collateral types accepted for a given stablecoin It does all the accounting and is the point of entry in the protocol for stable holders and seekers as well as SLPs @dev This file contains all the variables and p... | contract StableMasterStorage is StableMasterEvents, FunctionUtils {
struct Collateral {
IERC20 token;
ISanToken sanToken;
IPerpetualManager perpetualManager;
IOracle oracle;
uint256 stocksUsers;
uint256 sanRate;
uint256 collatBase;
SLPData slpData;
... | 5,974,178 | [
1,
30915,
7786,
3245,
225,
24154,
4586,
10434,
225,
1375,
30915,
7786,
68,
353,
326,
6835,
5057,
777,
326,
4508,
2045,
287,
1953,
8494,
364,
279,
864,
14114,
12645,
2597,
1552,
777,
326,
2236,
310,
471,
353,
326,
1634,
434,
1241,
316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
934,
429,
7786,
3245,
353,
934,
429,
7786,
3783,
16,
4284,
1989,
288,
203,
203,
565,
1958,
17596,
2045,
287,
288,
203,
3639,
467,
654,
39,
3462,
1147,
31,
203,
3639,
4437,
304,
1345,
272,
304,
1345,
31,
203,
3639,
467,
2... |
/*
░█████╗░██████╗░██╗░░░██╗░██████╗░██████╗ ███████╗██╗███╗░░██╗░█████╗░███╗░░██╗░█████╗░███████╗
██╔══██╗██╔══██╗╚██╗░██╔╝██╔════╝██╔════╝ ██╔════╝██║████╗░██║██╔══██╗████╗░██║██╔══██╗██╔════╝
███████║██████╦╝░╚████╔╝░╚█████╗░╚█████╗░ █████╗░░██║██╔██╗██║███████║██╔██╗██║██║░░╚═╝█████╗░░
██╔══██║██╔══██╗░░╚██╔╝░░░... | * @dev See {IAbyssLockup-freeDeposits}./ | function freeDeposits() public override view returns (uint256) {
return _freeDeposits;
}
| 6,395,829 | [
1,
9704,
288,
15188,
1637,
1049,
2531,
416,
17,
9156,
758,
917,
1282,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4843,
758,
917,
1282,
1435,
1071,
3849,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
9156,
758,
917,
1282,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.16;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint... | * If something goes wrong owner could destroy the contract after 2 weeks from the crowdfunding end In this case the token distribution or sum refund will be performed in mannual/ | function killContract() public onlyOwner {
require(now >= endTime + selfDestroyTime);
tokenReward.transferOwnership(owner);
selfdestruct(owner);
}
| 12,838,210 | [
1,
2047,
5943,
13998,
7194,
3410,
3377,
5546,
326,
6835,
1839,
576,
17314,
628,
326,
276,
492,
2180,
14351,
679,
657,
333,
648,
326,
1147,
7006,
578,
2142,
16255,
903,
506,
9591,
316,
312,
1072,
1462,
19,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
8673,
8924,
1435,
1071,
1338,
5541,
288,
203,
202,
202,
6528,
12,
3338,
1545,
13859,
397,
365,
10740,
950,
1769,
203,
202,
202,
2316,
17631,
1060,
18,
13866,
5460,
12565,
12,
8443,
1769,
203,
3639,
365,
5489,
8813,
12,
... |
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@openzeppelin/contracts/interfaces/IERC721.sol';
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./AnonymiceLibrary.sol";
import "./Origi... | 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 dealing with meta-transactions the account ... | abstract contract Context {
function _tokenIdToHash(uint _tokenId) external view returns (string memory);
function traitTypes(uint a, uint b) external view returns (string memory, string memory, string memory, uint);
}
pragma solidity ^0.8.0;
function _msgSender() internal view virtual returns (address) ... | 186,742 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
225,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
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,
17801,
6835,
1772,
288,
203,
565,
445,
389,
2316,
28803,
2310,
12,
11890,
389,
2316,
548,
13,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
565,
445,
13517,
2016,
12,
11890,
279,
16,
2254,
324,
13,
3903,
1476,
1135,
261,
1080,
37... |
// SPDX-License-Identifier: AGPL-1.0
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./ERC20Internal.sol";
import "../Libraries/Constants.sol";
interface ITransferReceiver {
function onTokenTransfer(
address,
... | anybody can transfer from this this allow mintAndApprovedCall without gas overhead save gas when allowance is maximal by not reducing it (see https:github.com/ethereum/EIPs/issues/717) | function _transferFrom(
address from,
address to,
uint256 amount
) internal {
if (msg.sender != from && from != address(this)) {
uint256 currentAllowance = _allowances[from][msg.sender];
if (currentAllowance != Constants.UINT256_MAX) {
requ... | 12,973,800 | [
1,
2273,
3432,
848,
7412,
628,
333,
333,
1699,
312,
474,
1876,
31639,
1477,
2887,
16189,
23188,
1923,
16189,
1347,
1699,
1359,
353,
943,
2840,
635,
486,
9299,
2822,
518,
261,
5946,
2333,
30,
6662,
18,
832,
19,
546,
822,
379,
19,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
628,
597,
628,
480,
1758,
12,
2211,
3719,
288... |
./full_match/43113/0xAcC4fC9A4ebA3675B2A0cF1638f62314F8347850/sources/contracts/protocol/libraries/logic/ValidationLogic.sol | * @dev Validates a swap of borrow rate mode. @param reserve The reserve state on which the user is swapping the rate @param userConfig The user reserves configuration @param stableDebt The stable debt of the user @param variableDebt The variable debt of the user @param currentRateMode The rate mode of the borrow/ | function validateSwapRateMode(
DataTypes.ReserveData storage reserve,
DataTypes.UserConfigurationMap storage userConfig,
uint256 stableDebt,
uint256 variableDebt,
DataTypes.InterestRateMode currentRateMode
) external view {
(bool isActive, bool isFrozen, , bool stableRateEnabled) = reserve.c... | 13,181,136 | [
1,
9594,
279,
7720,
434,
29759,
4993,
1965,
18,
225,
20501,
1021,
20501,
919,
603,
1492,
326,
729,
353,
7720,
1382,
326,
4993,
225,
729,
809,
1021,
729,
400,
264,
3324,
1664,
225,
14114,
758,
23602,
1021,
14114,
18202,
88,
434,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1954,
12521,
4727,
2309,
12,
203,
565,
1910,
2016,
18,
607,
6527,
751,
2502,
20501,
16,
203,
565,
1910,
2016,
18,
1299,
1750,
863,
2502,
729,
809,
16,
203,
565,
2254,
5034,
14114,
758,
23602,
16,
203,
565,
2254,
5034,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-03
*/
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "OnChainCollectibles";
symbol = "OCC";
decimals = 18;
_totalSupply = 1000000000000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 2,013,124 | [
1,
442,
701,
30206,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
1398,
3893,
10808,
495,
1040,
14432,
203,
3639,
3273,
273,
315,
51,
6743,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
2130,
12648,
12648,
2787... |
/*
Copyright 2018 The Nova Protocol Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... | * Exit the Nova incentive system. For relayers that choose to opt-out, the Nova Protocol effective becomes a tokenless protocol./ | function exitIncentiveSystem() external {
hasExited[msg.sender] = true;
emit RelayerExit(msg.sender);
}
| 2,484,643 | [
1,
6767,
326,
423,
16739,
316,
2998,
688,
2619,
18,
2457,
1279,
3907,
716,
9876,
358,
2153,
17,
659,
16,
326,
423,
16739,
4547,
11448,
12724,
279,
1147,
2656,
1771,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2427,
382,
2998,
688,
3163,
1435,
3903,
288,
203,
3639,
711,
6767,
329,
63,
3576,
18,
15330,
65,
273,
638,
31,
203,
3639,
3626,
4275,
1773,
6767,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100... |
./full_match/84531/0xd36C857eBE80EbE99CC05Ab3D0867094A0618dAa/sources/shummas.sol | * @dev Sets the values for {name} and {symbol}. The defaut value of {decimals} is 18. To select a different value for {decimals} you should overload it. All two of these values are immutable: they can only be set once during construction./ | constructor () {
_name = '1StemCell';
_symbol = '1STEM';
_totalSupply= 10000000000 *(10**decimals());
_balances[owner()]=_totalSupply;
emit Transfer(address(0),owner(),_totalSupply);
}
| 14,303,146 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
1021,
443,
507,
322,
460,
434,
288,
31734,
97,
353,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
97,
1846,
1410,
30402,
518,
18,
4826,
2795,
434,
4259,
924,
854... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1832,
288,
203,
3639,
389,
529,
273,
296,
21,
28771,
4020,
13506,
203,
3639,
389,
7175,
273,
296,
21,
10765,
13506,
203,
3639,
389,
4963,
3088,
1283,
33,
2130,
12648,
380,
12,
2163,
636,
31734,
10663,
203,
3639,
389,
7... |
./full_match/42/0xF487962e33787366080D6962347B01ceaFB0e027/sources/browser/JTranchesDeployer.sol | * @dev Internal function that burns an amount of the token of a given account. Update pointsCorrection to keep funds unchanged. @param value The amount that will be burnt./ | function burn(uint256 value) external override {
super._burn(msg.sender, value);
}
| 16,261,965 | [
1,
3061,
445,
716,
18305,
87,
392,
3844,
434,
326,
1147,
434,
279,
864,
2236,
18,
2315,
3143,
20884,
358,
3455,
284,
19156,
14827,
18,
225,
460,
1021,
3844,
716,
903,
506,
18305,
88,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
18305,
12,
11890,
5034,
460,
13,
3903,
3849,
288,
203,
202,
202,
9565,
6315,
70,
321,
12,
3576,
18,
15330,
16,
460,
1769,
203,
202,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/4/0x043c609B65357aa339d081A7c8F41e218245890E/sources/DigitalaxGarmentCollection.sol | @notice the child ERC1155 strand tokens | IDigitalaxMaterials public materials;
| 8,511,862 | [
1,
5787,
1151,
4232,
39,
2499,
2539,
16706,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1599,
360,
7053,
651,
11790,
87,
1071,
31824,
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,
... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issu... | Get token Ids of all tokens owned by _owner | function walletOfOwner(address _owner)
public
view
returns (uint256[] memory)
{
uint256 tokenCount = balanceOf(_owner);
uint256[] memory tokensId = new uint256[](tokenCount);
for (uint256 i = 0; i < tokenCount; i++) {
tokensId[i] = tokenOfOwnerByIndex... | 9,877,951 | [
1,
967,
1147,
29085,
434,
777,
2430,
16199,
635,
389,
8443,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9230,
951,
5541,
12,
2867,
389,
8443,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
8526,
3778,
13,
203,
565,
288,
203,
3639,
2254,
5034,
1147,
1380,
273,
11013,
951,
24899,
8443,
1769,
203,
2... |
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contr... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
... | 2,508 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410,
2236,
903,
506,
326,
1245,
716,
5993,
383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
203,
565,
3885,
1435,
288,
2... |
./full_match/100/0x446F95ff2c6CE2278006632Cae4b877f552cDA08/sources/contracts/ERC20_Reputation.sol | * @dev Private: Checks if quorum is reached for a specific proposal @notice If its not reached the proposal will be marked as failed @param _proposalID: ID of the proposal/ | function _isQuorumReached(uint _proposalID, uint _totalSupply) private view returns(bool) {
uint _totalVotes = proposals[_proposalID].votesFor + proposals[_proposalID].votesAgainst;
uint _participation = (_totalVotes * 100 / _totalSupply);
if(_participation > quorum) {
r... | 14,269,519 | [
1,
6014,
30,
13074,
309,
31854,
353,
8675,
364,
279,
2923,
14708,
225,
971,
2097,
486,
8675,
326,
14708,
903,
506,
9350,
487,
2535,
225,
389,
685,
8016,
734,
30,
1599,
434,
326,
14708,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
291,
31488,
23646,
12,
11890,
389,
685,
8016,
734,
16,
2254,
389,
4963,
3088,
1283,
13,
3238,
1476,
1135,
12,
6430,
13,
288,
203,
3639,
2254,
389,
4963,
29637,
273,
450,
22536,
63,
67,
685,
8016,
734,
8009,
27800,
... |
pragma solidity ^0.5.0;
import "./libs/ListAsRingLib.sol";
import "./libs/EntityLib.sol";
import "./libs/AddressIndexLib.sol";
import "./libs/StringIndexLib.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
contract HallOfFame is Ownable {
using EntityLib for EntityLib.Entities;
using Lis... | * @dev Update donator and assign groups @param _data donator info. @param _externalId donator uniq code. @param _unlinkGroupIds group ids to unlink. @param _linkGroupIds group ids to link. @return uint/ | function updateDonatorAndLinkGroups(
uint _id,
string calldata _data,
string calldata _externalId,
uint[] calldata _unlinkGroupIds,
uint[] calldata _linkGroupIds
)
external
onlyAdmin
returns(uint)
{
updateDonator(_id, _data, _externalId);
l... | 12,636,168 | [
1,
1891,
2727,
639,
471,
2683,
3252,
225,
389,
892,
2727,
639,
1123,
18,
225,
389,
9375,
548,
2727,
639,
10748,
981,
18,
225,
389,
318,
1232,
1114,
2673,
1041,
3258,
358,
8255,
18,
225,
389,
1232,
1114,
2673,
1041,
3258,
358,
1692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
22293,
639,
1876,
2098,
3621,
12,
203,
3639,
2254,
389,
350,
16,
203,
3639,
533,
745,
892,
389,
892,
16,
203,
3639,
533,
745,
892,
389,
9375,
548,
16,
203,
3639,
2254,
8526,
745,
892,
389,
318,
1232,
1114,
2673,... |
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.7.6;
import './HabitatBase.sol';
import './HabitatWallet.sol';
import './HabitatVault.sol';
import './IModule.sol';
/// @notice Voting Functionality.
// Audit-1: ok
contract HabitatVoting is HabitatBase, HabitatWallet, HabitatVault {
event ProposalCreated(ad... | @dev Parses and executes `internalActions`. TODO Only `TRANSFER_TOKEN` is currently implemented Types, related to actionable proposal items on L2. L1 has no such items and only provides an array of [<address><calldata] for on-chain execution. enum L2ProposalActions { RESERVED, TRANSFER_TOKEN, UPDATE_COMMUNITY_METAD... | function _executeInternalActions (address vaultAddress, bytes calldata internalActions) internal {
uint256 ptr;
uint256 end;
assembly {
let len := internalActions.length
ptr := internalActions.offset
end := add(ptr, len)
}
while (ptr < end) {
uint256 actionType;
as... | 922,795 | [
1,
6656,
471,
11997,
1375,
7236,
6100,
8338,
2660,
5098,
1375,
16596,
6553,
67,
8412,
68,
353,
4551,
8249,
7658,
16,
3746,
358,
1301,
429,
14708,
1516,
603,
511,
22,
18,
511,
21,
711,
1158,
4123,
1516,
471,
1338,
8121,
392,
526,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
8837,
3061,
6100,
261,
2867,
9229,
1887,
16,
1731,
745,
892,
2713,
6100,
13,
2713,
288,
203,
203,
565,
2254,
5034,
6571,
31,
203,
565,
2254,
5034,
679,
31,
203,
565,
19931,
288,
203,
1377,
2231,
562,
519,
2713,
6... |
./full_match/5/0x417cAeabf656a388EC60A7d3C61fF864179B5698/sources/project_/contracts/MoMABurn.sol | Address of new token for Tier 1
| address public tier1ContractAddress; | 1,873,606 | [
1,
1887,
434,
394,
1147,
364,
399,
2453,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
1071,
17742,
21,
8924,
1887,
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,
... |