file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./partial_match/1/0x3fc5923C3bcF3bE6008d24b1232e373924bD7889/sources/Emiswap.sol | called once by the factory at time of deployment | function initialize(IERC20[] calldata assets) external {
require(assets.length == 2, "Emiswap: only 2 tokens allowed");
tokens = assets;
for (uint256 i = 0; i < assets.length; i++) {
require(!isToken[assets[i]], "Emiswap: duplicate tokens");
isToken[assets[i]] = true... | 3,942,728 | [
1,
11777,
3647,
635,
326,
3272,
622,
813,
434,
6314,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
45,
654,
39,
3462,
8526,
745,
892,
7176,
13,
3903,
288,
203,
3639,
2583,
12,
9971,
18,
2469,
422,
576,
16,
315,
1514,
291,
91,
438,
30,
1338,
576,
2430,
2935,
8863,
203,
203,
3639,
2430,
273,
7176,
31,
203... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.12;
interface IERC20 {
function TOTALSUPPLY622() ... | inject NONSTANDARD NAMING
| function DOMAIN_SEPARATOR647() external view returns (bytes32); | 12,607,364 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
27025,
67,
4550,
30792,
1435,
3903,
1476,
1135,
261,
3890,
1578,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x2ec627c6412EC5267CA2Ec27C72E6e93D4b44784/sources/contracts/HealthRecord.sol | function to add doctor to record | function addDoctorToRecord(uint256 _recordId, uint256 _doctorId)
public
returns (bool)
{
Record storage record = records[_recordId];
record.doctors.push(_doctorId);
return true;
}
| 1,926,896 | [
1,
915,
358,
527,
741,
30206,
358,
1409,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
3244,
30206,
774,
2115,
12,
11890,
5034,
389,
3366,
548,
16,
2254,
5034,
389,
2896,
30206,
548,
13,
203,
3639,
1071,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
5059,
2502,
1409,
273,
3853,
63,
67,
... |
./full_match/5/0x81c7a9d494c74F113cCa32d174925352bD3875f1/sources/_connext/nxtp-contracts/contracts/nomad-core/contracts/Replica.sol | * @notice Emitted when the value for optimisticTimeout is set @param timeout The new value for optimistic timeout/ | event SetOptimisticTimeout(uint256 timeout);
| 1,910,475 | [
1,
1514,
11541,
1347,
326,
460,
364,
5213,
5846,
2694,
353,
444,
225,
2021,
1021,
394,
460,
364,
5213,
5846,
2021,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
1000,
13930,
5846,
2694,
12,
11890,
5034,
2021,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.5.6;
import "../interfaces/ILinkdropCommon.sol";
import "../storage/LinkdropStorage.sol";
import "openzeppelin-solidity/contracts/cryptography/ECDSA.sol";
contract LinkdropCommon is ILinkdropCommon, LinkdropStorage {
/**
* @dev Function called only once to set owner, linkdrop master, contr... | * @dev Function to pause contract, can only be called by linkdrop master @return True if success/ | function pause() external onlyLinkdropMaster whenNotPaused returns (bool) {
_paused = true;
emit Paused(now);
return true;
}
| 14,052,050 | [
1,
2083,
358,
11722,
6835,
16,
848,
1338,
506,
2566,
635,
1692,
7285,
4171,
327,
1053,
309,
2216,
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,
565,
445,
11722,
1435,
3903,
1338,
2098,
7285,
7786,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
3639,
389,
8774,
3668,
273,
638,
31,
203,
3639,
3626,
21800,
3668,
12,
3338,
1769,
203,
3639,
327,
638,
31,
203,
565,
289,
203... |
./partial_match/1/0xcDdc0F6053432dE3dd0F8dB3786D696fffC3A860/sources/OriginEthStrategy.sol | * @dev withdraw from strategy via curve swap @param baseAmount - base token amount/ | function _withdrawViaSwap(uint256 baseAmount) private returns(uint256, int256){
uint256 strategyTokenIn = _calcStrategyTokenWithdraw(baseAmount);
uint256 baseTrueOut = _swapToBase(strategyTokenIn, OETH);
int256 currentProfit = int256(baseTrueOut)- int256(baseAmount);
totalProfit += ... | 15,778,621 | [
1,
1918,
9446,
628,
6252,
3970,
8882,
7720,
225,
1026,
6275,
300,
1026,
1147,
3844,
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,
389,
1918,
9446,
21246,
12521,
12,
11890,
5034,
1026,
6275,
13,
3238,
1135,
12,
11890,
5034,
16,
509,
5034,
15329,
203,
3639,
2254,
5034,
6252,
1345,
382,
273,
389,
12448,
4525,
1345,
1190,
9446,
12,
1969,
6275,
1769,
203... |
pragma solidity ^0.5.0;
interface JudgeInterface {
function judge(bytes32[13] calldata res, uint q,
bytes32[] calldata _proof, bytes32[] calldata _proof2,
bytes32 vm_, bytes32 op, uint[4] calldata regs,
bytes32[10] calldata roots, uint[4] call... | TODO: check the array here, too If last segment was selected, do not change last index size eventually becomes zero here | function query(bytes32 gameID, uint i1, uint i2, uint num) public {
Game storage g = games[gameID];
require(g.state == State.Running && num <= g.size && i1 == g.idx1 && i2 == g.idx2 && msg.sender == g.challenger && g.challenger == g.next);
g.clock = block.number;
blocked[g.task_id] =... | 12,884,920 | [
1,
6241,
30,
866,
326,
526,
2674,
16,
4885,
971,
1142,
3267,
1703,
3170,
16,
741,
486,
2549,
1142,
770,
963,
18011,
12724,
3634,
2674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
843,
12,
3890,
1578,
7920,
734,
16,
2254,
277,
21,
16,
2254,
277,
22,
16,
2254,
818,
13,
1071,
288,
203,
3639,
14121,
2502,
314,
273,
28422,
63,
13957,
734,
15533,
203,
3639,
2583,
12,
75,
18,
2019,
422,
3287,
18,
7... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/ICoverFeeReceiver.sol";
import "./interfaces/IRouter.sol";
import "./utils/Ownable.sol";
import "./ERC20/IERC20.sol";
import "./ERC20/SafeERC20.sol";
contract CoverFeeReceiver is Ownable, ICoverFeeReceiver {
using SafeERC20 for IERC20;
... | state vars owner actions | interface ICoverFeeReceiver {
event BuyBack(IERC20 _token, uint256 _amount);
event Collected(IERC20 _token, uint256 _amount);
function cover() external returns (address);
function forge() external returns (address);
function treasury() external returns (address);
function feeNumToTreasury() ext... | 9,952,673 | [
1,
2019,
4153,
3410,
4209,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
8084,
14667,
12952,
288,
203,
565,
871,
605,
9835,
2711,
12,
45,
654,
39,
3462,
389,
2316,
16,
2254,
5034,
389,
8949,
1769,
203,
565,
871,
9302,
329,
12,
45,
654,
39,
3462,
389,
2316,
16,
2254,
5034,
389,
8949,
1769,... |
// SPDX-License-Identifier: GPL-3.0
/*
▄████████ ▄▄▄▄███▄▄▄▄ ▄██████▄ ▄█
███ ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███
███ █▀ ███ ███ ███ ███ ███ ███
███ ███ ███ ██... | @notice Encodes some bytes to the base64 representation multiply by 4/3 rounded up Add some extra buffer at the end | function encode(bytes memory data) internal pure returns (string memory) {
uint256 len = data.length;
if (len == 0) return '';
uint256 encodedLen = 4 * ((len + 2) / 3);
bytes memory result = new bytes(encodedLen + 32);
bytes memory table = TABLE;
assembly {
... | 1,174,732 | [
1,
19771,
2690,
1731,
358,
326,
1026,
1105,
4335,
10194,
635,
1059,
19,
23,
16729,
731,
1436,
2690,
2870,
1613,
622,
326,
679,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2017,
12,
3890,
3778,
501,
13,
2713,
16618,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
2254,
5034,
562,
273,
501,
18,
2469,
31,
203,
3639,
309,
261,
1897,
422,
374,
13,
327,
26028,
203,
203,
3639,
2254,
5034,
3749,
28... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.7;
/*
██████ ██████ ██ ██ ███ ██ ██████
██ ██ ██ ██ ██ ████ ██ ██ ██
███████ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██████ ██████ ██ ████ ██████
*/
import {IERC2981Upgr... | * @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... | library ECDSAUpgradeable {
function _authorizeUpgrade(address newImplementation) internal virtual;
uint256[50] private __gap;
}
pragma solidity ^0.8.0;
import "../StringsUpgradeable.sol";
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignat... | 5,724,280 | [
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,
12083,
7773,
19748,
10784,
429,
288,
203,
565,
445,
389,
22488,
10784,
12,
2867,
394,
13621,
13,
2713,
5024,
31,
203,
565,
2254,
5034,
63,
3361,
65,
3238,
1001,
14048,
31,
203,
97,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
//
// This contract handles swapping to and from PlatinumNugget, LuckySwap's staking token.
cont... | * @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s... | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())... | 176,024 | [
1,
15608,
815,
19588,
628,
1573,
8452,
358,
1375,
22216,
73,
68,
225,
7152,
73,
1021,
1758,
358,
7152,
19588,
358,
225,
7448,
1021,
6835,
919,
1931,
358,
845,
326,
3372,
225,
10839,
1021,
813,
622,
1492,
358,
6930,
326,
3372,
225,
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,
7152,
858,
8267,
12,
203,
3639,
1758,
7152,
73,
16,
203,
3639,
2254,
7448,
16,
203,
3639,
2254,
10839,
16,
203,
3639,
2254,
28,
331,
16,
203,
3639,
1731,
1578,
436,
16,
203,
3639,
1731,
1578,
272,
203,
565,
262,
203,
... |
pragma solidity >0.5.4;
import "@daostack/arc/contracts/controller/Avatar.sol";
import "@daostack/arc/contracts/controller/ControllerInterface.sol";
import "../../identity/Identity.sol";
import "../../identity/IdentityGuard.sol";
import "./SchemeGuard.sol";
/* @title Scheme contract responsible for adding address gi... | @title Scheme contract responsible for adding address given in constructor to identity admins./ | contract AddAdmin is SchemeGuard, IdentityGuard {
Identity public identity;
address public admin;
constructor(
Avatar _avatar,
Identity _identity,
address _admin
) public SchemeGuard(_avatar) IdentityGuard(_identity) {
require(_admin != address(0), "admin cannot be null ... | 12,638,500 | [
1,
9321,
6835,
14549,
364,
6534,
1758,
864,
316,
3885,
358,
4215,
31116,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1436,
4446,
353,
10714,
16709,
16,
7808,
16709,
288,
203,
565,
7808,
1071,
4215,
31,
203,
565,
1758,
1071,
3981,
31,
203,
203,
565,
3885,
12,
203,
3639,
8789,
8761,
389,
19660,
16,
203,
3639,
7808,
389,
10781,
16,
203,
363... |
pragma solidity 0.5.16;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./IStakingContract.sol";
import "./IStakeChangeNotifier.sol";
contract StakingContract is IStakingContract, IMigratableStakingContract {
using SafeMath for uint256;
struct Stake {
uint256 amount;
uint256 coo... | @dev Notifies of stake change events. @param _stakeOwner address The address of the subject stake owner. @param _amount int256 The difference in the total staked amount. @param _sign bool The sign of the added (true) or subtracted (false) amount. @param _updatedStake uint256 The updated total staked amount. | function stakeChange(
address _stakeOwner,
uint256 _amount,
bool _sign,
uint256 _updatedStake
) internal {
if (!shouldNotifyStakeChange()) {
return;
}
notifier.stakeChange(_stakeOwner, _amount, _sign, _updatedStake);
}
| 1,815,900 | [
1,
1248,
5032,
434,
384,
911,
2549,
2641,
18,
225,
389,
334,
911,
5541,
1758,
1021,
1758,
434,
326,
3221,
384,
911,
3410,
18,
225,
389,
8949,
509,
5034,
1021,
7114,
316,
326,
2078,
384,
9477,
3844,
18,
225,
389,
2977,
1426,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
384,
911,
3043,
12,
203,
3639,
1758,
389,
334,
911,
5541,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1426,
389,
2977,
16,
203,
3639,
2254,
5034,
389,
7007,
510,
911,
203,
565,
262,
2713,
288,
203,
3639,
309,... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/*
* Merkle Tree Utilities for Rollup
*/
contract RollupMerkleUtils {
/* Structs */
// A partial merkle tree which can be updated with new nodes, recomputing the root
struct SparseMerkleTree {
// The root
bytes32 root;
uint... | Check if the computed node (_root) is equal to the provided root | return computedNode;
| 5,448,920 | [
1,
1564,
309,
326,
8470,
756,
261,
67,
3085,
13,
353,
3959,
358,
326,
2112,
1365,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
327,
8470,
907,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x6aD5f5A36733DCEfb3c5Cb9e09FDEc734ED8E339/sources/src/Token.sol | cant overflow because: MAX_BUY_ON_END > MAX_BUY_ON_START MAX_BUY_END_TIME >= block.timestamp all numbers are small enough for type(uint256).max | function _revertOnMaxBuyExceeded(uint256 newAmount) internal view {
if (block.timestamp > MAX_BUY_DISABLED_TIME) {
return;
}
if (block.timestamp > MAX_BUY_END_TIME) {
if (newAmount > MAX_BUY_ON_END) revert MaxBuyExceeded(MAX_BUY_ON_END, newAmount);
}
... | 3,844,626 | [
1,
71,
970,
9391,
2724,
30,
4552,
67,
3000,
61,
67,
673,
67,
4415,
405,
4552,
67,
3000,
61,
67,
673,
67,
7570,
4552,
67,
3000,
61,
67,
4415,
67,
4684,
1545,
1203,
18,
5508,
777,
5600,
854,
5264,
7304,
364,
618,
12,
11890,
5034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
266,
1097,
1398,
2747,
38,
9835,
10069,
12,
11890,
5034,
394,
6275,
13,
2713,
1476,
288,
203,
3639,
309,
261,
2629,
18,
5508,
405,
4552,
67,
3000,
61,
67,
24493,
67,
4684,
13,
288,
203,
5411,
327,
31,
203,
3639,
... |
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
struct FullAbsoluteTokenAmount {
AbsoluteTokenAmountMeta base;
AbsoluteTokenAmountMeta[] underlying;
}
struct AbsoluteTokenAmountMeta {
AbsoluteTokenAmount absoluteTokenAmount;
ERC20Metadata erc20metadata;
}
struct ERC20Metadata {
s... | solhint-disable-line no-empty-blocks
| ) returns (uint256[] memory) { | 7,473,294 | [
1,
18281,
11317,
17,
8394,
17,
1369,
1158,
17,
5531,
17,
7996,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
262,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
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,
... |
pragma solidity ^0.4.15;
contract Token {
/// @return total amount of tokens
// function totalSupply() public constant returns (uint supply);
// `totalSupply` is defined below because the automatically generated
// getter function does not match the abstract function above
uint public tota... | Change exchange rate to new value, influences the counter of when the sale is over.
| ethToUsdExchangeRate = newEthToUsdExchangeRate; | 12,977,093 | [
1,
3043,
7829,
4993,
358,
394,
460,
16,
13947,
89,
2369,
326,
3895,
434,
1347,
326,
272,
5349,
353,
1879,
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,
... | [
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,
13750,
774,
3477,
72,
11688,
4727,
273,
394,
41,
451,
774,
3477,
72,
11688,
4727,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// contracts/Pandas.sol
// SPDX-License-Identifier: MIT
// ~Forked from Anonymice~
pragma solidity ^0.8.0;
import "./ERC721Enumerable.sol";
import "./IShoots.sol";
import "./PandaLibrary.sol";
import "hardhat/console.sol";
contract Panda is ERC721Enumerable {
using PandaLibrary for uint8;
struct Trait {
... | * @dev Burns and mints new. @param _tokenId The token to burn./Burn token | function burnForMint(uint256 _tokenId) public {
require(ownerOf(_tokenId) == msg.sender);
_transfer(
msg.sender,
0x000000000000000000000000000000000000dEaD,
_tokenId
);
mintInternal(msg.sender);
}
| \ / _] / || \ | || | ... | 53,627 | [
1,
38,
321,
87,
471,
312,
28142,
394,
18,
225,
389,
2316,
548,
1021,
1147,
358,
18305,
18,
19,
38,
321,
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,... | [
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,
18305,
1290,
49,
474,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
288,
203,
3639,
2583,
12,
8443,
951,
24899,
2316,
548,
13,
422,
1234,
18,
15330,
1769,
203,
203,
3639,
389,
13866,
12,
203,
5411,
1234,
18,
15330,
16,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
/* work in progress -- USE AT OWN RISK.
** simple boolean Advance Requirement confirmation / condition precedent to deal closing
** owner inputs Advance Re... | check if the requirement/condition is satisfied (bool) | function isRequirementSatisfied() public view returns(bool) {
return requirementSatisfied;
}
| 13,019,755 | [
1,
1893,
309,
326,
12405,
19,
4175,
353,
18958,
261,
6430,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
18599,
15163,
21501,
1435,
1071,
1476,
1135,
12,
6430,
13,
288,
203,
3639,
327,
12405,
15163,
21501,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x6e55e0e3ae67C6f2056dE2DB8e2B0032f55e2542/sources/Booster.sol | @title Events emitted by a pool @notice Contains all events emitted by the pool | interface IUniswapV3PoolEvents {
event Initialize(uint160 sqrtPriceX96, int24 tick);
event Mint(
address sender,
address indexed owner,
int24 indexed tickLower,
int24 indexed tickUpper,
uint128 amount,
uint256 amount0,
uint256 amount1
);
event Co... | 2,592,954 | [
1,
3783,
17826,
635,
279,
2845,
225,
8398,
777,
2641,
17826,
635,
326,
2845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
984,
291,
91,
438,
58,
23,
2864,
3783,
288,
203,
565,
871,
9190,
12,
11890,
16874,
5700,
5147,
60,
10525,
16,
509,
3247,
4024,
1769,
203,
203,
565,
871,
490,
474,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8808,... |
pragma solidity 0.4.26; // optimization enabled, runs: 500
/************** TPL Extended Jurisdiction - YES token integration *************
* This digital jurisdiction supports assigning YES token, or other contracts *
* with a similar validation mechanism, as additional attribute validators. *
* https://gi... | log the addition of the attribute | emit AttributeAdded(validator, account, attributeTypeID, value);
| 1,829,717 | [
1,
1330,
326,
2719,
434,
326,
1566,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3626,
3601,
8602,
12,
7357,
16,
2236,
16,
1566,
559,
734,
16,
460,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-24
*/
// Verified using https://dapp.tools
// hevm: flattened sources of /nix/store/fs14a1fn2n0n355szi63iq33n5yzygnk-geb/dapp/geb/src/AccountingEngine.sol
pragma solidity =0.6.7;
////// /nix/store/fs14a1fn2n0n355szi63iq33n5yzygnk-geb/dapp/geb/src/Accountin... | --- Debt Queueing ---* @notice Push bad debt into a queue @dev Debt is locked in a queue to give the system enough time to auction collateral and gather surplus @param debtBlock Amount of debt to push/ | function pushDebtToQueue(uint256 debtBlock) external isAuthorized {
debtQueue[now] = addition(debtQueue[now], debtBlock);
totalQueuedDebt = addition(totalQueuedDebt, debtBlock);
emit PushDebtToQueue(now, debtQueue[now], totalQueuedDebt);
}
| 2,295,124 | [
1,
6062,
1505,
23602,
7530,
310,
9948,
225,
8547,
5570,
18202,
88,
1368,
279,
2389,
225,
1505,
23602,
353,
8586,
316,
279,
2389,
358,
8492,
326,
2619,
7304,
813,
358,
279,
4062,
4508,
2045,
287,
1377,
471,
11090,
5056,
10103,
225,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1817,
758,
23602,
774,
3183,
12,
11890,
5034,
18202,
88,
1768,
13,
3903,
353,
15341,
288,
203,
3639,
18202,
88,
3183,
63,
3338,
65,
273,
2719,
12,
323,
23602,
3183,
63,
3338,
6487,
18202,
88,
1768,
1769,
203,
3639,
2078... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
interface IUniswap {
// To convert DAI to ETH
function SWAPEXACTTOKENSFORETH436(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[]... | inject NONSTANDARD NAMING
| function SUB46(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { | 977,124 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10025,
8749,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
16,
533,
3778,
9324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/secur... | * @notice internal _harvest function, called in external harvest @param _user => msg.sender @param _cid => collection id - Calculating daysStaked by converting unix epoch to days (dividing on 60 / 60 / 24) - Collection must be stakable - daysStaked must be over maturityPeriod of given collection - ... | function _harvest(address _user, uint256 _cid) internal {
UserInfo storage user = userInfo[_user];
CollectionInfo memory collection = collectionInfo[_cid];
uint256 daysStaked = (block.timestamp - user.daysStaked) / 86400;
require(
collection.isStakable == true,
... | 7,213,409 | [
1,
7236,
389,
30250,
26923,
445,
16,
2566,
316,
3903,
17895,
26923,
377,
389,
1355,
516,
1234,
18,
15330,
377,
389,
13478,
516,
1849,
612,
565,
300,
15994,
1776,
4681,
510,
9477,
635,
14540,
9753,
7632,
358,
4681,
261,
2892,
10415,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30250,
26923,
12,
2867,
389,
1355,
16,
2254,
5034,
389,
13478,
13,
2713,
288,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
1355,
15533,
203,
3639,
2200,
966,
3778,
1849,
273,
1849,
966,
63,
67,
13478,
15533,
20... |
./full_match/1/0x3Eb63F33eB01cb39a0ce711844FaA8b581cCbEa0/sources/contracts/Token.sol | 1% of total supply
| maxTxAmount = totalSupply / 100; | 9,816,887 | [
1,
21,
9,
434,
2078,
14467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
943,
4188,
6275,
273,
2078,
3088,
1283,
342,
2130,
31,
540,
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.24;
import "../scaccesscontrol/BuyerRole.sol";
import "../scaccesscontrol/ShopRole.sol";
import "../scaccesscontrol/StoreRole.sol";
import "../sccore/Ownable.sol";
// Define a contract 'Supplychain'
contract SupplyChain is BuyerRole,
ShopRole,
Sto... | Stock Keeping Unit (SKU)
| uint sku; | 1,760,842 | [
1,
17821,
10498,
310,
8380,
261,
11129,
57,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
565,
16731,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'DYF Token' Smart Contract
//
// OwnerAddress :
// Symbol :
// Name :
// Total Supply :
// Decimals : 18
// Copyrights of 'DYFToken' With 'DYF' Symbol October 25, 2020.
// The MIT Licence.
//... | ------------------------------------------------------------------------ Total supply ------------------------------------------------------------------------ | function totalSupply() public view returns (uint) {
return _totalSupply;
}
| 1,245,682 | [
1,
29461,
10710,
14467,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
2078,
3088,
1283,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
2463,
389,
4963,
3088,
1283,
31,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xE6cC6bf6c404fCe83aDdcC0c3dEB58b669fEE70E/sources/localhost/exchange/wrappers/UniswapWrapper.sol | @notice Buys a _destAmount of tokens at Uniswap @param _srcAddr From token @param _destAddr To token @param _destAmount To amount @return uint srcAmount if we are selling ether if we are buying ether if we are buying token to token | function buy(address _srcAddr, address _destAddr, uint _destAmount) external payable returns(uint) {
address uniswapExchangeAddr;
uint srcAmount;
if (_srcAddr == WETH_ADDRESS) {
uniswapExchangeAddr = UniswapFactoryInterface(UNISWAP_FACTORY).getExchange(_destAddr);
s... | 16,467,087 | [
1,
38,
89,
1900,
279,
389,
10488,
6275,
434,
2430,
622,
1351,
291,
91,
438,
225,
389,
4816,
3178,
6338,
1147,
225,
389,
10488,
3178,
2974,
1147,
225,
389,
10488,
6275,
2974,
3844,
327,
2254,
1705,
6275,
309,
732,
854,
357,
2456,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
30143,
12,
2867,
389,
4816,
3178,
16,
1758,
389,
10488,
3178,
16,
2254,
389,
10488,
6275,
13,
3903,
8843,
429,
1135,
12,
11890,
13,
288,
203,
3639,
1758,
640,
291,
91,
438,
11688,
3178,
31,
203,
3639,
2254,
1705,
6275,
... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma abicoder v2;
import "./BatchAction.sol";
import "./nTokenRedeemAction.sol";
import "./ActionGuards.sol";
import "../FreeCollateralExternal.sol";
import "../../global/StorageLayoutV1.sol";
import "../../math/SafeInt256.sol";
import "../../internal/... | @notice Checks approval state for an account, will first check if global transfer operator is enabled before falling through to an account specific transfer operator. @param account address of the account @param operator address of the operator @return true for approved | function isApprovedForAll(address account, address operator)
public
view
override
returns (bool)
{
if (globalTransferOperator[operator]) return true;
return accountAuthorizedTransferOperator[account][operator];
}
| 1,749,915 | [
1,
4081,
23556,
919,
364,
392,
2236,
16,
903,
1122,
866,
309,
2552,
7412,
3726,
353,
3696,
1865,
31678,
3059,
358,
392,
2236,
2923,
7412,
3726,
18,
225,
2236,
1758,
434,
326,
2236,
225,
3726,
1758,
434,
326,
3726,
327,
638,
364,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
31639,
1290,
1595,
12,
2867,
2236,
16,
1758,
3726,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
309,
261,
6347,
5912,
5592,
63,
9497,
5717,
327,
... |
pragma solidity ^0.4.16;
contract EmpresaConsulta {
struct Empresa {
bytes32 empCIF;
bytes32 nombre;
}
// This is a namespace where we will store EmpresaConsulta
mapping(bytes32 => Empresa) public empresas;
// Set values in storage
function storeEmpresa(bytes32 key, bytes32... | Set values in storage | function storeEmpresa(bytes32 key, bytes32 _empCIF, bytes32 _nombre) returns (bool success) {
empresas[key].empCIF = _empCIF;
empresas[key].nombre = _nombre;
return true;
}
| 1,036,121 | [
1,
694,
924,
316,
2502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1707,
41,
1291,
455,
69,
12,
3890,
1578,
498,
16,
1731,
1578,
389,
30752,
39,
5501,
16,
1731,
1578,
389,
12306,
6073,
13,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
801,
12202,
345,
63,
856,
8009,
30752,
39,
5501,
273... |
pragma solidity ^0.5.11;
// Voken Shareholders Contract for Voken2.0
//
// More info:
// https://vision.network
// https://voken.io
//
// Contact us:
// support@vision.network
// support@voken.io
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow checks.
*/
librar... | Sun, 30 Aug 2020 23:59:59 +0000
| uint256 private _ALLOCATION_TIMESTAMP = 1598918399; | 12,667,721 | [
1,
29636,
16,
5196,
432,
637,
26599,
20,
10213,
30,
6162,
30,
6162,
397,
2787,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
3238,
389,
1013,
15277,
67,
17201,
273,
4711,
29,
6675,
31672,
2733,
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,
-... |
pragma solidity ^0.6.12;
// ----------------------------------------------------------------------------
// DreamFrames Crowdsale Contract - Purchase FrameRush Tokens with ETH
//
// Deployed to : {TBA}
//
// Enjoy.
//
// (c) BokkyPooBah / Bok Consulting Pty Ltd for GazeCoin 2018. The MIT Licence.
// (c) Adrian Guerrer... | @notice Operator allocates frames to tokenOwner for offchain purchases Only operator and owner can allocate frames offline | function offlineFramesPurchase(address _tokenOwner, uint256 _frames) external {
claimFrames(_tokenOwner,_frames);
emit Purchased(_tokenOwner, _frames, 0, framesSold, contributedUsd);
}
| 7,285,671 | [
1,
5592,
4767,
815,
7793,
358,
1147,
5541,
364,
3397,
5639,
5405,
343,
3304,
5098,
3726,
471,
3410,
848,
10101,
7793,
13493,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13493,
15162,
23164,
12,
2867,
389,
2316,
5541,
16,
2254,
5034,
389,
10278,
13,
3903,
225,
288,
203,
203,
3639,
7516,
15162,
24899,
2316,
5541,
16,
67,
10278,
1769,
203,
3639,
3626,
14466,
343,
8905,
24899,
2316,
5541,
16... |
./full_match/5/0x67dA37AbD98C317CE03bF428d3cA67d1d9128a07/sources/contracts/NokkoCollection.sol | uint256 public tokenCounter; | contract nokko is ERC721URIStorage, Ownable, ContractMetadata {
using SafeMath for uint256;
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
pragma solidity ^0.8.0;
struct Transaction {
address sender;
address recipient;
uint amount;
uint timestam... | 1,922,889 | [
1,
11890,
5034,
1071,
1147,
4789,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
290,
601,
28179,
353,
4232,
39,
27,
5340,
3098,
3245,
16,
14223,
6914,
16,
13456,
2277,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
9354,
87,
1... |
pragma solidity 0.4.25;
contract Election {
struct Elections
{
uint electionId;
string electionName;
uint candidateCount;
}
struct Candidate
{
uint candId;
uint electionId;
string candName;
uint voteCount;
}
struct VotedFace
... | require that they haven't voted before require a valid candidate record that voter has voted update candidate vote Count trigger voted event | function vote5 (uint _candidateId) public {
require(!voters5[msg.sender]);
require(_candidateId > 0 && _candidateId <= CandidateCount);
voters5[msg.sender] = true;
candidate[_candidateId].voteCount ++;
emit votedEvent(_candidateId);
}
| 7,289,186 | [
1,
6528,
716,
2898,
15032,
1404,
331,
16474,
1865,
2583,
279,
923,
5500,
1409,
716,
331,
20005,
711,
331,
16474,
1089,
5500,
12501,
6974,
3080,
331,
16474,
871,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
445,
12501,
25,
261,
11890,
389,
19188,
548,
13,
1071,
288,
203,
540,
203,
3639,
2583,
12,
5,
90,
352,
414,
25,
63,
3576,
18,
15330,
19226,
203,
203,
3639,
2583,
24899,
19188,
548,
405,
374,
597,
389,
19188,
548,
1648,
385... |
//SPDX-License-Identifier: Unlicense
pragma solidity 0.7.0;
import "./interfaces/IBank.sol";
import "./interfaces/IPriceOracle.sol";
import "./libraries/Math.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "hardhat/console.sol";
contract Bank is IBank {
using DSMath for uint256;
addres... | Collateral ratio = (Deposited funds in HAK) / (Borrowed funds in ETH): | uint256 cur_ratio = hakBalanceinETH.mul(10000) / ethBalance;
| 7,294,380 | [
1,
13535,
2045,
287,
7169,
273,
261,
758,
1724,
329,
284,
19156,
316,
670,
14607,
13,
342,
261,
38,
15318,
329,
284,
19156,
316,
512,
2455,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
662,
67,
9847,
273,
366,
581,
13937,
267,
1584,
44,
18,
16411,
12,
23899,
13,
342,
13750,
13937,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: Unlicensed
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
//ANTIS INU (THE SHIBA KILLER)
//https://antisinu.com
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | Create a uniswap pair for this new token exclude from paying fees or having max transaction amount | constructor(address _bridge) ERC20("ANTIS INU", "ANTIS") {
address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = _uniswapV2Pair;
_setAutomatedMarke... | 1,110,227 | [
1,
1684,
279,
640,
291,
91,
438,
3082,
364,
333,
394,
1147,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
389,
18337,
13,
4232,
39,
3462,
2932,
6856,
5127,
2120,
57,
3113,
315,
6856,
5127,
7923,
288,
203,
203,
3639,
1758,
389,
318,
291,
91,
438,
58,
22,
4154,
273,
467,
984,
291,
91,
438,
58,
22,
1733,
24899,
... |
./full_match/1/0xDF19e2f273363D86DfE5A2ed44422ada32eFaa62/sources/contract.sol | it('name, symbol, decimals, totalSupply, balanceOf, DOMAIN_SEPARATOR, PERMIT_TYPEHASH', async () => { const name = await token.name() expect(name).to.eq('Uniswap V2') expect(await token.symbol()).to.eq('UNI-V2') expect(await token.decimals()).to.eq(18) expect(await token.totalSupply()).to.eq(TOTA... | contract Manager {
function performTasks() public {
}
function uniswapDepositAddress() public pure returns (address) {
return 0xcc3e0035B0cb3aC8D7D0C6E08bCC8BA4f316B1E8;
}
}
| 8,429,941 | [
1,
305,
2668,
529,
16,
3273,
16,
15105,
16,
2078,
3088,
1283,
16,
11013,
951,
16,
27025,
67,
4550,
16,
10950,
6068,
67,
2399,
15920,
2187,
4326,
1832,
516,
288,
377,
1866,
508,
273,
4273,
1147,
18,
529,
1435,
377,
4489,
12,
529,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
8558,
288,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
... |
pragma solidity ^0.4.18;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 {
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
function balanceOf(address who) public view returns (uint256);
function transfer(a... | * @dev Decreases the number of tokens a spender is allowed to spend for `msg.sender` @param _spender address The address of the spender @param _subtractedValue uint256 The amount to decrease the spenders approval by/ | function decreaseApproval(address _spender, uint256 _subtractedValue) public returns (bool) {
uint _value = allowed[msg.sender][_spender];
if (_subtractedValue > _value) {
allowed[msg.sender][_spender] = 0;
allowed[msg.sender][_spender] = _value.sub(_subtractedValue);
}
Approval(msg.sende... | 2,213,255 | [
1,
23326,
3304,
326,
1300,
434,
2430,
279,
17571,
264,
353,
2935,
358,
17571,
364,
1375,
3576,
18,
15330,
68,
225,
389,
87,
1302,
264,
1758,
1021,
1758,
434,
326,
17571,
264,
225,
389,
1717,
1575,
329,
620,
2254,
5034,
1021,
3844,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
20467,
23461,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1717,
1575,
329,
620,
13,
1071,
1135,
261,
6430,
13,
288,
203,
565,
2254,
389,
1132,
273,
2935,
63,
3576,
18,
15330,
6362,
67,
87,
1302,
264,
15533,
203... |
./full_match/1/0x0000000000aec84F5BFc2af15EAfb943bf4e3522/sources/lib/solady/src/utils/LibBit.sol | @dev Returns `x & y`. Inputs must be clean. | function rawAnd(bool x, bool y) internal pure returns (bool z) {
assembly {
z := and(x, y)
}
}
| 4,875,536 | [
1,
1356,
1375,
92,
473,
677,
8338,
24472,
1297,
506,
2721,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1831,
1876,
12,
6430,
619,
16,
1426,
677,
13,
2713,
16618,
1135,
261,
6430,
998,
13,
288,
203,
203,
203,
3639,
19931,
288,
203,
5411,
998,
519,
471,
12,
92,
16,
677,
13,
203,
3639,
289,
203,
565,
289,
203,
2,
-100,
... |
//Address: 0xd571788859897023b500c6c7fd295bba1e7ff71c
//Contract name: SportStarMaster
//Balance: 0.003422924159669719 Ether
//Verification Date: 3/9/2018
//Transacion Count: 4
// CODE STARTS HERE
pragma solidity ^0.4.18; // solhint-disable-line
/// @title Interface for contracts conforming to ERC-721: Non-Fungib... | @notice Returns all the relevant information about a specific token. @param _tokenId The tokenId of the token of interest. | function getToken(uint256 _tokenId) public view returns (
string tokenName,
address owner
) {
Token storage token = tokens[_tokenId];
tokenName = token.name;
owner = tokenIndexToOwner[_tokenId];
}
| 1,008,795 | [
1,
1356,
777,
326,
9368,
1779,
2973,
279,
2923,
1147,
18,
225,
389,
2316,
548,
1021,
1147,
548,
434,
326,
1147,
434,
16513,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9162,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
1135,
261,
203,
3639,
533,
1147,
461,
16,
203,
3639,
1758,
3410,
203,
565,
262,
288,
203,
3639,
3155,
2502,
1147,
273,
2430,
63,
67,
2316,
548,
15533,
203,
3639,
... |
pragma solidity ^0.5.7;
// Batch transfer Ether and Wesion
/**
* @title SafeMath for uint256
* @dev Unsigned math operations with safety checks that revert on error.
*/
library SafeMath256 {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) i... | inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
| assert(Wesion.transferFrom(msg.sender, accounts[i], wesionValue)); | 1,004,694 | [
1,
22170,
18708,
14939,
8350,
13255,
40,
6953,
17187,
478,
21163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1815,
12,
59,
281,
285,
18,
13866,
1265,
12,
3576,
18,
15330,
16,
9484,
63,
77,
6487,
341,
281,
285,
620,
10019,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0xf03518534Ec76AEb697C99cFE0CDA08077091c7B/sources/Heroes.sol | * @dev Gets the owner of the specified token ID @param tokenID uint256 ID of the token to query the owner of @return address currently marked as the owner of the given token ID/ | function ownerOf(uint256 tokenID) public view returns (address) {
address owner = _tokenOwner[tokenID];
require(owner != address(0));
return owner;
}
| 5,226,180 | [
1,
3002,
326,
3410,
434,
326,
1269,
1147,
1599,
225,
1147,
734,
2254,
5034,
1599,
434,
326,
1147,
358,
843,
326,
3410,
434,
327,
1758,
4551,
9350,
487,
326,
3410,
434,
326,
864,
1147,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3410,
951,
12,
11890,
5034,
1147,
734,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
1758,
3410,
273,
389,
2316,
5541,
63,
2316,
734,
15533,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
10019,
203,
3639,
327,
... |
//Address: 0x77e01450fd870dafa3a545bdfc2b6e13c879f645
//Contract name: TokenVesting
//Balance: -
//Verification Date: 1/31/2018
//Transacion Count: 0
// CODE STARTS HERE
//File: node_modules/zeppelin-solidity/contracts/token/ERC20Basic.sol
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version o... | true if address is allowed to invest allow managers to whitelist and confirm contributions by manager accounts managers can be set and altered by owner, multiple manager accounts are possible for convenience we store vesting wallets | contract MtnCrowdsale is Ownable, Crowdsale {
uint256 public constant VESTING_DURATION_4Y = 4 years;
uint256 public constant VESTING_DURATION_2Y = 2 years;
mapping(address => bool) public isWhitelisted;
mapping(address => bool) public isManager;
uint256 public maxContributionInWei;
mapping(... | 1,044,070 | [
1,
3767,
309,
1758,
353,
2935,
358,
2198,
395,
1699,
21103,
358,
10734,
471,
6932,
13608,
6170,
635,
3301,
9484,
21103,
848,
506,
444,
471,
22349,
635,
3410,
16,
3229,
3301,
9484,
854,
3323,
364,
13553,
732,
1707,
331,
10100,
17662,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
5088,
39,
492,
2377,
5349,
353,
14223,
6914,
16,
385,
492,
2377,
5349,
288,
203,
203,
203,
565,
2254,
5034,
1071,
5381,
776,
11027,
1360,
67,
24951,
67,
24,
61,
273,
1059,
11387,
31,
203,
565,
2254,
5034,
1071,
5381,
... |
pragma solidity ^0.7.0;
// import files from common directory
import { TokenInterface , MemoryInterface } from "../common/interfaces.sol";
import { Stores } from "../common/stores.sol";
interface AccountInterface {
function enable(address) external;
function disable(address) external;
}
interface DydxFlashIn... | * @dev Borrow Flashloan and Cast spells. @param token Token Address. @param tokenAmt Token Amount. @param data targets & data for cast./ | function borrowAndCast(address token, uint tokenAmt, bytes memory data) public payable {
AccountInterface(address(this)).enable(getDydxLoanAddr());
address _token = token == ethAddr ? getWethAddr() : token;
DydxFlashInterface(getDydxLoanAddr()).initiateFlashLoan(_token, tokenAmt, data);
... | 12,782,021 | [
1,
38,
15318,
15014,
383,
304,
471,
19782,
22377,
87,
18,
225,
1147,
3155,
5267,
18,
225,
1147,
31787,
3155,
16811,
18,
225,
501,
5774,
473,
501,
364,
4812,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
29759,
1876,
9735,
12,
2867,
1147,
16,
2254,
1147,
31787,
16,
1731,
3778,
501,
13,
1071,
8843,
429,
288,
203,
3639,
6590,
1358,
12,
2867,
12,
2211,
13,
2934,
7589,
12,
588,
40,
93,
13437,
1504,
304,
3178,
10663,
203,
... |
./full_match/3/0xAcEFfcedB82101De103d2ff802f3D1ab330548e1/sources/contracts/4_Market.sol | Offer can only be cacelled by the seller while it is pending and there is no buyer If the offered amount increases, deposit more Tokens If the offered amount decreases, return Tokens | function updateOffer(uint _id, address _offeredContract, address _wantedContract, uint _offeredAmount, uint _wantedAmount) public {
require(msg.sender == idToOffer[_id].seller, "You are not the owner of the offer");
require(idToOffer[_id].status == 0 && idToOffer[_id].buyer == address(0), "The offer... | 8,210,926 | [
1,
10513,
848,
1338,
506,
276,
1077,
292,
1259,
635,
326,
29804,
1323,
518,
353,
4634,
471,
1915,
353,
1158,
27037,
971,
326,
10067,
329,
3844,
7033,
3304,
16,
443,
1724,
1898,
13899,
971,
326,
10067,
329,
3844,
23850,
3304,
16,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
10513,
12,
11890,
389,
350,
16,
1758,
389,
23322,
329,
8924,
16,
1758,
389,
25861,
8924,
16,
2254,
389,
23322,
329,
6275,
16,
2254,
389,
25861,
6275,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
612,
... |
pragma solidity ^0.5.12;
contract Election{
//model candidate
//state variables dont have underscore
//local variables prefixed with underscore
struct Candidate {
uint id;
string name;
uint voteCount;
}
//store accounts that have voted
mapping(address => bool) publ... | model candidatestate variables dont have underscorelocal variables prefixed with underscore | contract Election{
struct Candidate {
uint id;
string name;
uint voteCount;
}
addCandidate("Candidate 2");
mapping(address => bool) public voters;
addCandidate("Candidate 1");
}
| 15,820,256 | [
1,
2284,
4225,
270,
395,
340,
3152,
14046,
1240,
13677,
3729,
3152,
12829,
598,
13677,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
512,
942,
95,
203,
565,
1958,
385,
8824,
288,
203,
3639,
2254,
612,
31,
203,
3639,
533,
508,
31,
203,
3639,
2254,
12501,
1380,
31,
203,
565,
289,
203,
203,
203,
377,
203,
203,
3639,
527,
11910,
2932,
11910,
576,
8863,
20... |
./full_match/4/0x5BC253b9fE40d92f8a01e62899A77ae124F68C5a/sources/contracts/NestStaking.sol | @dev To ensure that all of governance-addresses be consist with each other governance = INestPool(C_NestPool).governance(); | function loadGovernance() override external
{
}
| 12,496,821 | [
1,
774,
3387,
716,
777,
434,
314,
1643,
82,
1359,
17,
13277,
506,
7111,
598,
1517,
1308,
314,
1643,
82,
1359,
273,
2120,
395,
2864,
12,
39,
67,
50,
395,
2864,
2934,
75,
1643,
82,
1359,
5621,
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,
1,
0,
0,
0,
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,
1262,
43,
1643,
82,
1359,
1435,
3849,
3903,
7010,
565,
288,
7010,
565,
289,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/to... | * @dev store eth inside a box @param boxId id of the box @param amount amount of eth to store/ update the box | function _storeEth(uint256 boxId, uint256 amount) private {
_indexedEth[boxId] += amount;
}
| 979,301 | [
1,
2233,
13750,
4832,
279,
3919,
225,
3919,
548,
612,
434,
326,
3919,
225,
3844,
3844,
434,
13750,
358,
1707,
19,
1089,
326,
3919,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2233,
41,
451,
12,
11890,
5034,
3919,
548,
16,
2254,
5034,
3844,
13,
3238,
288,
203,
3639,
389,
19626,
41,
451,
63,
2147,
548,
65,
1011,
3844,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.0;
import "./ecOps.sol";
contract dkg {
/**
* DKG phases (optimistic case):
*
* 0) Deploy the contract with a threshold (t), number of participants (n)
* and deposit in Wei.
*
* 1) Enrollment - Each of the participants sends a deposit and a public key
... | Returns the group PK. This can only be performed after the DKG has ended. This means only when the current phase is Phase.End . | function getGroupPK()
inPhase(Phase.EndSuccess)
public view returns(uint256[2] groupPK)
{
uint16 nParticipants = n;
groupPK = participants[1].publicCommitmentsG1[0];
for(uint16 i = 2; i <= nParticipants; i++) {
groupPK = ecOps.ecadd(groupPK, participant... | 7,282,313 | [
1,
1356,
326,
1041,
11327,
18,
1220,
848,
1338,
506,
9591,
1839,
326,
31176,
43,
711,
16926,
18,
1220,
4696,
1338,
1347,
326,
783,
6855,
353,
19459,
18,
1638,
263,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11751,
8784,
1435,
7010,
3639,
316,
11406,
12,
11406,
18,
1638,
4510,
13,
203,
3639,
1071,
1476,
1135,
12,
11890,
5034,
63,
22,
65,
1041,
8784,
13,
203,
565,
288,
203,
203,
3639,
2254,
2313,
290,
1988,
27620,
273,
290,
... |
./full_match/42220/0x97AB3Ea0437Dccfedeb40d223918388943DB2c8f/sources/contracts/ACFI/strategies/ubeswap/StrategyStakingTripleRewardLP.sol | * @dev Event that is fired each time someone harvests the strat./ console.log("stratMgr %s ", stratMgr.vault); setup lp routing setup 2nd output setup 3rd output outputs are not the same | ) public StratManager(stratMgr) {
want = _want;
chef = _chef;
require(_outputToNativeRoute.length >= 2);
output = _outputToNativeRoute[0];
native = _outputToNativeRoute[_outputToNativeRoute.length - 1];
outputToNativeRoute = _outputToNativeRoute;
lpToken0 = IUniswapV2Pair(want).token0();
... | 16,323,021 | [
1,
1133,
716,
353,
15950,
1517,
813,
18626,
17895,
90,
25563,
326,
609,
270,
18,
19,
2983,
18,
1330,
2932,
701,
270,
9455,
738,
87,
3104,
609,
270,
9455,
18,
26983,
1769,
3875,
12423,
7502,
3875,
576,
4880,
876,
3875,
890,
13623,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
262,
1071,
3978,
270,
1318,
12,
701,
270,
9455,
13,
288,
203,
565,
2545,
273,
389,
17369,
31,
203,
565,
462,
10241,
273,
389,
343,
10241,
31,
203,
565,
2583,
24899,
2844,
774,
9220,
3255,
18,
2469,
1545,
576,
1769,
203,
56... |
pragma solidity ^0.4.24;
// File: contracts/math/SafeMath.sol
/**
* Copyright (c) 2016 Smart Contract Solutions, Inc.
* Released under the MIT license.
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/LICENSE
*/
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on err... | * @dev Function to check the amount of tokens that an owner allowed to a spender. @param _owner address The address which owns the funds. @param _spender address The address which will spend the funds. @return A uint256 specifying the amount of tokens still available for the spender./ | function allowance(address _owner, address _spender) external view returns (uint256) {
return allowed[_owner][_spender];
}
| 354,681 | [
1,
2083,
358,
866,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
225,
389,
8443,
1758,
1021,
1758,
1492,
29065,
326,
284,
19156,
18,
225,
389,
87,
1302,
264,
1758,
1021,
1758,
1492,
903,
17571,
326,
284,
1915... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
225,
445,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
2935,
63,
67,
8443,
6362,
67,
87,
1302,
264,
15533,
203,
225,
289,
203,
203,
2,
-100,
-1... |
// solium-disable security/no-block-members, emit
pragma solidity 0.4.25;
import 'openzeppelin-solidity/contracts/math/SafeMath.sol';
import 'openzeppelin-solidity/contracts/ownership/Ownable.sol';
import '../tcr/OceanRegistry.sol';
import '../plcrvoting/PLCRVoting.sol';
import '../OceanMarket.sol';
contract OceanDi... | mapping from service id or asset id to Dispute struct | mapping(bytes32 => Dispute) public mDisputes;
| 13,078,314 | [
1,
6770,
628,
1156,
612,
578,
3310,
612,
358,
3035,
2507,
1958,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
3890,
1578,
516,
3035,
2507,
13,
1071,
312,
1669,
458,
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,
... |
// File: contracts/libs/math/SafeMath.sol
pragma solidity 0.5.15;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* erro... | OWNER SETUP set the staking limits | function setupStakingLimit(uint256 maxAmount, uint256 initialAmount, uint256 daysInterval, uint256 unstakingPeriod)
external
onlyOwner
whenPaused
onlyDuringSetup
{
require(maxAmount > 0 && initialAmount > 0 && daysInterval > 0 && unstakingPeriod >= 0, "[Validation] Some parameters are 0"... | 1,846,482 | [
1,
29602,
7855,
3079,
444,
326,
384,
6159,
8181,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3875,
510,
6159,
3039,
12,
11890,
5034,
943,
6275,
16,
2254,
5034,
2172,
6275,
16,
2254,
5034,
4681,
4006,
16,
2254,
5034,
640,
334,
6159,
5027,
13,
203,
565,
3903,
203,
565,
1338,
5541,
203,
565,
1347,
28590,
203,
565,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "./utils/CitizenNFTTest.sol";
import "../CitizenNFT.sol";
contract NewCityDAOCitizen is CitizenTest {
/// @notice Mint new Citizen NFTs, verify that owners are correct and balance of smart contract
/// is equal to the value transfered for the mint... | @notice Mint new Citizen NFTs, verify that owners are correct and balance of smart contract is equal to the value transfered for the minting. | function testBuyCitizenNFT() public {
payable(address(bob)).transfer(1 ether);
uint256 tokenPrice = 250000000000000000;
bob.onlineApplicationForCitizenship(tokenPrice, 1);
bob.onlineApplicationForCitizenship(tokenPrice, 1);
assertEq(citizenNFT.balanceOf(address(bob), citizenN... | 6,460,131 | [
1,
49,
474,
394,
385,
305,
452,
275,
423,
4464,
87,
16,
3929,
716,
25937,
854,
3434,
471,
11013,
434,
13706,
6835,
353,
3959,
358,
326,
460,
7412,
329,
364,
326,
312,
474,
310,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
38,
9835,
39,
305,
452,
275,
50,
4464,
1435,
1071,
288,
203,
3639,
8843,
429,
12,
2867,
12,
70,
947,
13,
2934,
13866,
12,
21,
225,
2437,
1769,
203,
3639,
2254,
5034,
1147,
5147,
273,
6969,
12648,
12648,
31,
203,... |
// SPDX-License-Identifier: Unlicense
pragma solidity 0.7.6;
import "SafeMath.sol";
import "IUniswapV3Pool.sol";
import "TickMath.sol";
import "AlphaVault.sol";
import "IStrategy.sol";
/**
* @title Passive Strategy
* @notice Rebalancing strategy for Alpha Vault that maintains the two
* following rang... | * @title Passive Strategy @notice Rebalancing strategy for Alpha Vault that maintains the two following range orders: 1. Base order is placed between X - B and X + B + TS. 2. Limit order is placed between X - L and X, or between X + TS and X + L + TS, depending on which token i... | contract PassiveStrategy is IStrategy {
using SafeMath for uint256;
AlphaVault public immutable vault;
IUniswapV3Pool public immutable pool;
int24 public immutable tickSpacing;
int24 public baseThreshold;
int24 public limitThreshold;
uint256 public period;
int24 public minTickMove;
... | 1,743,262 | [
1,
6433,
688,
19736,
282,
868,
28867,
6252,
364,
24277,
17329,
716,
11566,
4167,
326,
2795,
1850,
3751,
1048,
11077,
30,
1850,
404,
18,
3360,
1353,
353,
15235,
3086,
1139,
300,
605,
471,
1139,
397,
605,
397,
15508,
18,
1850,
576,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
10311,
688,
4525,
353,
467,
4525,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
24277,
12003,
1071,
11732,
9229,
31,
203,
565,
467,
984,
291,
91,
438,
58,
23,
2864,
1071,
11732,
2845,
31,
203,
565,... |
./full_match/1/0x82a7b5842085f434c6584A8c44b6A1C15c25a512/sources/contracts/test/TestTick.sol | * @dev External wrapper function for Tick.validate()/ | function validate(
uint128 tick,
uint256 minLimit,
uint256 minDurationIndex,
uint256 maxDurationIndex,
uint256 minRateIndex,
uint256 maxRateIndex
) external pure {
return Tick.validate(tick, minLimit, minDurationIndex, maxDurationIndex, minRateIndex, maxRa... | 9,659,405 | [
1,
6841,
4053,
445,
364,
13588,
18,
5662,
1435,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1954,
12,
203,
3639,
2254,
10392,
4024,
16,
203,
3639,
2254,
5034,
1131,
3039,
16,
203,
3639,
2254,
5034,
1131,
5326,
1016,
16,
203,
3639,
2254,
5034,
943,
5326,
1016,
16,
203,
3639,
2254,
5034,
1131,
4727,
1016,
16,
20... |
/**
*Submitted for verification at Etherscan.io on 2021-09-05
*/
pragma solidity ^0.5.0;
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spender) public v... | total supply including decimals
| _totalSupply = 18000000000000000000000000000; | 7,770,160 | [
1,
4963,
14467,
6508,
15105,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
4963,
3088,
1283,
273,
6549,
12648,
12648,
12648,
3784,
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... |
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.5.0;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 ... | * @return the address where funds are collected./ | function treasury() public view returns (address payable) {
return _treasury;
}
| 1,835,700 | [
1,
2463,
326,
1758,
1625,
284,
19156,
854,
12230,
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,
225,
445,
9787,
345,
22498,
1435,
1071,
1476,
1135,
261,
2867,
8843,
429,
13,
288,
203,
1377,
327,
389,
27427,
345,
22498,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0x97b6a74BcC7Bfc03e9Ce97DE7Fb82a4a03b110Bf/sources/contracts/Pool/Pool.sol | @notice Modifier to check if the pool is not defaulted | modifier nonDefaulted() {
require(defaultedAt == 0, 'PDD');
_;
}
| 16,489,413 | [
1,
9829,
358,
866,
309,
326,
2845,
353,
486,
805,
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,
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,
9606,
1661,
1868,
329,
1435,
288,
203,
565,
2583,
12,
1886,
329,
861,
422,
374,
16,
296,
52,
5698,
8284,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2020-11-15
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
functi... | View function to see pending LSRs on frontend. | function pendingLaser(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accLaserPerShare = pool.accLaserPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
... | 2,262,518 | [
1,
1767,
445,
358,
2621,
4634,
511,
10090,
87,
603,
15442,
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,
4634,
48,
14558,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,... |
///@dev Version of this Oracle Contract is V 1.0
pragma solidity 0.4.24;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
retur... | function to blacklist the secondary owners | function removeOwnerSecondary (address _owner) onlyOwner external {
secondaryOwners[_owner] = false;
emit LogSecondaryOwnerChange(_owner, false);
}
| 7,276,729 | [
1,
915,
358,
11709,
326,
9946,
25937,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1206,
5541,
14893,
261,
2867,
389,
8443,
13,
1338,
5541,
3903,
225,
288,
203,
565,
9946,
5460,
414,
63,
67,
8443,
65,
273,
629,
31,
203,
565,
3626,
1827,
14893,
5541,
3043,
24899,
8443,
16,
629,
1769,
203,
225,
289,
2... |
// File: hardhat/console.sol
pragma solidity >= 0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
function _sendLogPayload(bytes memory payload) private view {
uint256 payloadLength = payload.length;
address consoleAddress = CONSOLE_ADDRES... | get collection name by address | function getAllCollections() public view virtual returns (CollectionMeta[] memory) {
CollectionMeta [] memory allCollections = new CollectionMeta[] (_collectionIds.current());
for (uint i = 0; i < _collectionIds.current() ; i++){
allCollections[i] = _collectionMeta[i+1];
}
... | 1,592,976 | [
1,
588,
1849,
508,
635,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5514,
15150,
1435,
1071,
1476,
5024,
1135,
261,
2532,
2781,
8526,
3778,
13,
288,
203,
3639,
2200,
2781,
5378,
3778,
777,
15150,
273,
394,
2200,
2781,
8526,
261,
67,
5548,
2673,
18,
2972,
10663,
203,
3639,
364,
261,
11890,... |
pragma solidity ^0.4.18;
/**
* @title Smart City Token http://www.smartcitycoin.io
* @dev ERC20 standard compliant / https://github.com/ethereum/EIPs/issues/20 /
* @dev Amount not sold during Crowdsale can be burned by anyone
*/
contract SmartCityToken {
using SafeMath for uint256;
address ... | * @dev Sets Corwdsale contract address & allowance @param _crowdsaleAddress address The address of the Crowdsale contract/ | function setCrowdsale(address _crowdsaleAddress) public {
require(msg.sender == owner);
require(crowdsale == address(0));
crowdsale = _crowdsaleAddress;
assert(_approve(crowdsale, amountForSale));
}
| 1,043,841 | [
1,
2785,
9557,
91,
2377,
5349,
6835,
1758,
473,
1699,
1359,
282,
389,
71,
492,
2377,
5349,
1887,
1758,
1021,
1758,
434,
326,
385,
492,
2377,
5349,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11440,
492,
2377,
5349,
12,
2867,
389,
71,
492,
2377,
5349,
1887,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
1769,
203,
3639,
2583,
12,
71,
492,
2377,
5349,
422,
1758,
12,
20,
10019,
203,
203,
363... |
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `accou... | update pool last reward block | pool.lastRewardBlock = block.number;
| 13,446,532 | [
1,
2725,
2845,
1142,
19890,
1203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2845,
18,
2722,
17631,
1060,
1768,
273,
1203,
18,
2696,
31,
21281,
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,
... |
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
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 acco... | * @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `... | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender... | 470,434 | [
1,
19297,
2430,
1375,
8949,
68,
628,
1375,
15330,
68,
358,
1375,
20367,
8338,
1220,
353,
2713,
445,
353,
7680,
358,
288,
13866,
5779,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
5859,
1147,
1656,
281,
16,
9026,
310,
1791,
28757... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628... |
./partial_match/1/0xB985eA1be961f7c4A4C45504444C02c88c4fdEF9/sources/src/MultiClaimsHatter.sol | * @notice Wrapper around a HatsModuleFactory. Deploys new HatsModule instances and sets the claimability type of multiple hats. @param _factory The HatsModuleFactory instance that will deploy the modules @param _implementations The addresses of the implementation contracts of which to deploy a clone @param _moduleHatId... | function setHatsClaimabilityAndCreateModules(
HatsModuleFactory _factory,
address[] calldata _implementations,
uint256[] calldata _moduleHatIds,
bytes[] calldata _otherImmutableArgsArray,
bytes[] calldata _initDataArray,
uint256[] memory _hatIds,
ClaimType[] memory _claimTypes
) public r... | 2,750,272 | [
1,
3611,
6740,
279,
670,
2323,
3120,
1733,
18,
4019,
383,
1900,
394,
670,
2323,
3120,
3884,
471,
1678,
326,
7516,
2967,
618,
434,
3229,
366,
2323,
18,
225,
389,
6848,
1021,
670,
2323,
3120,
1733,
791,
716,
903,
7286,
326,
4381,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
444,
44,
2323,
9762,
2967,
1876,
1684,
7782,
12,
203,
565,
670,
2323,
3120,
1733,
389,
6848,
16,
203,
565,
1758,
8526,
745,
892,
389,
10442,
1012,
16,
203,
565,
2254,
5034,
8526,
745,
892,
389,
2978,
44,
270,
2673,
16... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Lib: Safe Math
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint256 a, uint256 b) public pure returns (uint256 c) {
c = a + b;
... | ------------------------------------------------------------------------ Returns the amount of tokens approved by the owner that can be transferred to the spender's account ------------------------------------------------------------------------ | function allowance(address tokenOwner, address spender)
public
constant
returns (uint256 remaining)
{
return allowed[tokenOwner][spender];
}
| 62,167 | [
1,
29461,
2860,
326,
3844,
434,
2430,
20412,
635,
326,
3410,
716,
848,
506,
906,
4193,
358,
326,
17571,
264,
1807,
2236,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1699,
1359,
12,
2867,
1147,
5541,
16,
1758,
17571,
264,
13,
203,
3639,
1071,
203,
3639,
5381,
203,
3639,
1135,
261,
11890,
5034,
4463,
13,
203,
565,
288,
203,
3639,
327,
2935,
63,
2316,
5541,
6362,
87,
1302,
264,
15533,... |
pragma solidity ^0.4.17;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `o... | * @dev transfer token for a specified address @param _to The address to transfer to. @param _value The amount to be transferred./ | function transfer(address _to, uint256 _value) public returns (bool){
require(_to != address(0));
require(_value <= balances[msg.sender]);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
... | 6,304,083 | [
1,
13866,
1147,
364,
279,
1269,
1758,
225,
389,
869,
1021,
1758,
358,
7412,
358,
18,
225,
389,
1132,
1021,
3844,
358,
506,
906,
4193,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
15329,
203,
565,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
565,
2583,
24899,
1132,
1648,
324,
26488,
63,
3576,
18,
15330,
19226,
203... |
./full_match/77/0xcA47f86f29Ab274257792a2Cf24B7299d449cF06/sources/deploy/contracts/synthereum-pool/v5/LiquidityPool.sol | * @notice Called by a source Pool's `exchange` function to mint destination tokens @notice This functon can be called only by a pool registered in the PoolRegister contract @param collateralAmount The amount of collateral to use from the source Pool @param numTokens The number of new tokens to mint @param recipient Rec... | function exchangeMint(
uint256 collateralAmount,
uint256 numTokens,
address recipient
) external override notEmergencyShutdown nonReentrant {
poolStorage.exchangeMint(
lpPosition,
feeStatus,
FixedPoint.Unsigned(collateralAmount),
FixedPoint.Unsigned(numTokens),
recipien... | 5,047,223 | [
1,
8185,
635,
279,
1084,
8828,
1807,
1375,
16641,
68,
445,
358,
312,
474,
2929,
2430,
225,
1220,
12882,
265,
848,
506,
2566,
1338,
635,
279,
2845,
4104,
316,
326,
8828,
3996,
6835,
225,
4508,
2045,
287,
6275,
1021,
3844,
434,
4508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7829,
49,
474,
12,
203,
565,
2254,
5034,
4508,
2045,
287,
6275,
16,
203,
565,
2254,
5034,
818,
5157,
16,
203,
565,
1758,
8027,
203,
225,
262,
3903,
3849,
486,
1514,
24530,
10961,
1661,
426,
8230,
970,
288,
203,
565,
2... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
import { IERC20 } from "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
import { SafeMath } from "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import { IERC20WithC... | there won't be a case that cooldown == 0 && balance == 0 | function withdraw() external {
address msgSender = _msgSender();
Decimal.decimal memory balance = stakerWithdrawPendingBalance[msgSender];
requireNonZeroAmount(balance);
require(_blockTimestamp() >= stakerCooldown[msgSender], "Still in cooldown");
delete stakerWithdrawPendin... | 13,612,640 | [
1,
18664,
8462,
1404,
506,
279,
648,
716,
27367,
2378,
422,
374,
597,
11013,
422,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
3903,
288,
203,
3639,
1758,
1234,
12021,
273,
389,
3576,
12021,
5621,
203,
3639,
11322,
18,
12586,
3778,
11013,
273,
384,
6388,
1190,
9446,
8579,
13937,
63,
3576,
12021,
15533,
203,
3639,
2583,
3989,
7170,
... |
/**
* Original work Copyright 2016 Smart Contract Solutions, Inc.
* Modified work Copyright 2018 SECURRENCY INC.
*/
pragma solidity ^0.5.0;
/**
* @title SafeMath8
* @dev Math operations with safety checks that throw on error
*/
library SafeMath8 {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
... | * @dev Multiplies two numbers, throws on overflow./ Gas optimization: this is cheaper than asserting 'a' not being zero, but the benefit is lost if 'b' is also tested. See: https:github.com/OpenZeppelin/openzeppelin-solidity/pull/522 | function mul(uint8 _a, uint8 _b) internal pure returns (uint8 c) {
if (_a == 0) {
return 0;
}
c = _a * _b;
assert(c / _a == _b);
return c;
}
| 12,905,237 | [
1,
5002,
5259,
2795,
5600,
16,
1216,
603,
9391,
18,
19,
31849,
14850,
30,
333,
353,
19315,
7294,
2353,
1815,
310,
296,
69,
11,
486,
3832,
3634,
16,
1496,
326,
27641,
7216,
353,
13557,
309,
296,
70,
11,
353,
2546,
18432,
18,
2164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14064,
12,
11890,
28,
389,
69,
16,
2254,
28,
389,
70,
13,
2713,
16618,
1135,
261,
11890,
28,
276,
13,
288,
203,
565,
309,
261,
67,
69,
422,
374,
13,
288,
203,
1377,
327,
374,
31,
203,
565,
289,
203,
203,
565,
276,... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';
import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol';
import './ERC721Upgradeab... | * @dev See {IERC721Enumerable-totalSupply}./ | function totalSupply() public view virtual returns (uint256) {
return gen0Supply + gen1Supply - locationsBalance;
}
| 121,045 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
3572,
25121,
17,
4963,
3088,
1283,
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,... | [
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,
2078,
3088,
1283,
1435,
1071,
1476,
5024,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
3157,
20,
3088,
1283,
397,
3157,
21,
3088,
1283,
300,
7838,
13937,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x59FAB9bF88544F86aBAe89059650967e5dFa5c9c/sources/Papayahub.sol | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the 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;
mapping(address => bool) public isMultiOwner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
addMultiOwner(_msgSender());
}
fu... | 15,685,973 | [
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,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
25129,
5541,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
175... |
pragma solidity 0.4.26;
// import "./OraclizeAPI.sol"; // MAINNET
import "../test/OraclizeAPITesting.sol"; // TESTING
import "../Oracle.sol";
import "../WETH.sol";
/**
* @title Atomic Loans Oraclize Contract
* @author Atomic Loans
*/
contract Oraclize is usingOraclize, Oracle {
WETH weth;
MedianizerInterfa... | * @title Atomic Loans Oraclize Contract @author Atomic Loans/ | contract Oraclize is usingOraclize, Oracle {
WETH weth;
MedianizerInterface medm;
uint256 public gasLimit = 200000;
event Update(uint128 payment_, ERC20 token_);
event __Callback(bytes32 queryId, string result_);
import "../Oracle.sol";
constructor(MedianizerInterface med_, MedianizerInterfa... | 14,079,868 | [
1,
23102,
3176,
634,
531,
354,
830,
554,
13456,
225,
11553,
3176,
634,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
531,
354,
830,
554,
353,
1450,
51,
354,
830,
554,
16,
28544,
288,
203,
565,
678,
1584,
44,
341,
546,
31,
203,
565,
20158,
2779,
1824,
1358,
6735,
81,
31,
203,
203,
565,
2254,
5034,
1071,
16189,
3039,
273,
576,
11706,
31,... |
// SPDX-License-Identifier: UNLICENSED
// The BentoBox
// ▄▄▄▄· ▄▄▄ . ▐ ▄ ▄▄▄▄▄ ▄▄▄▄· ▐▄• ▄
// ▐█ ▀█▪▀▄.▀·█▌▐█•██ ▪ ▐█ ▀█▪▪ █▌█▌▪
// ▐█▀▀█▄▐▀▀▪▄▐█▐▐▌ ▐█.▪ ▄█▀▄ ▐█▀▀█▄ ▄█▀▄ ·██·
// ██▄▪▐█▐█▄▄▌██▐█▌ ▐█▌·▐█▌.▐▌██▄▪▐█▐█▌.▐▌▪▐█·█▌
// ·▀▀▀▀ ▀▀▀ ▀▀ █▪ ▀▀▀ ▀█▄▀▪·▀▀▀▀ ▀█▄▀▪•▀▀ ▀▀
// This contract... | @notice Flashloan ability. @param borrower The address of the contract that implements and conforms to `IFlashBorrower` and handles the flashloan. @param receiver Address of the token receiver. @param token The address of the token to receive. @param amount of the tokens to receive. @param data The calldata to pass to... | function flashLoan(
IFlashBorrower borrower,
address receiver,
IERC20 token,
uint256 amount,
bytes calldata data
) public {
uint256 fee = amount.mul(FLASH_LOAN_FEE) / FLASH_LOAN_FEE_PRECISION;
token.safeTransfer(receiver, amount);
borrower.onFlash... | 5,448,688 | [
1,
11353,
383,
304,
7123,
18,
225,
29759,
264,
1021,
1758,
434,
326,
6835,
716,
4792,
471,
356,
9741,
358,
1375,
45,
11353,
38,
15318,
264,
68,
471,
7372,
326,
9563,
383,
304,
18,
225,
5971,
5267,
434,
326,
1147,
5971,
18,
225,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
9563,
1504,
304,
12,
203,
3639,
467,
11353,
38,
15318,
264,
29759,
264,
16,
203,
3639,
1758,
5971,
16,
203,
3639,
467,
654,
39,
3462,
1147,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
745,
892,
501,
203,
565... |
./full_match/1/0x82a7b5842085f434c6584A8c44b6A1C15c25a512/sources/contracts/test/TestProxy.sol | * @dev Space for implementation storage/* @dev Implementation contract/* @notice TestProxy constructor @param implementation Implementation contract @param data Initialization calldata/ | constructor(address implementation, bytes memory data) {
_impl = implementation;
Address.functionDelegateCall(implementation, data);
}
| 9,659,408 | [
1,
3819,
364,
4471,
2502,
19,
225,
25379,
6835,
19,
225,
7766,
3886,
3885,
225,
4471,
25379,
6835,
225,
501,
26586,
745,
892,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
4471,
16,
1731,
3778,
501,
13,
288,
203,
3639,
389,
11299,
273,
4471,
31,
203,
3639,
5267,
18,
915,
9586,
1477,
12,
30810,
16,
501,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/42161/0x5bBacBb0EA1B5d450d92850cB8AB5f1AAD92C97A/sources/gist-17a8c2cf6c1a3e0ddc7d724e1e52f122/NFTEarthStaking.sol | * @notice Deposit NfteToken to the EARTHLINGS Pool @param _nfts Array of SingleNft structs @dev Commits 1 or more EARTHLINGS NFTs, each with an NfteToken amount to the EARTHLINGS pool.\ Each EARTHLINGS committed must attach an NfteToken amount >= 1 NfteToken and <= the EARTHLINGS pool cap amount./ | function depositEARTHLINGS(SingleNft[] calldata _nfts) external {
_depositNft(EARTHLINGS_POOL_ID, _nfts);
}
| 16,301,146 | [
1,
758,
1724,
423,
74,
736,
1345,
358,
326,
512,
985,
2455,
26789,
55,
8828,
225,
389,
82,
1222,
87,
1510,
434,
10326,
50,
1222,
8179,
225,
16854,
1282,
404,
578,
1898,
512,
985,
2455,
26789,
55,
423,
4464,
87,
16,
1517,
598,
392,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
9250,
2455,
26789,
55,
12,
5281,
50,
1222,
8526,
745,
892,
389,
82,
1222,
87,
13,
3903,
288,
203,
3639,
389,
323,
1724,
50,
1222,
12,
9250,
2455,
26789,
55,
67,
20339,
67,
734,
16,
389,
82,
1222,
87,
1769... |
./full_match/1/0x6a2Df7Fd15612079D1a72001F3a921Db792B2738/sources/lib/solady/src/utils/DateTimeLib.sol | @dev Adds `numMonths` to the unix timestamp, and returns the result. Note: If the Gregorian calendar month of the result has less days than the Gregorian calendar month day of the `timestamp`, the result's month day will be the maximum possible value for the month. (e.g. from 29th Feb to 28th Feb) | function addMonths(uint256 timestamp, uint256 numMonths)
internal
pure
returns (uint256 result)
{
(uint256 year, uint256 month, uint256 day) = epochDayToDate(timestamp / 86400);
month = _sub(month + numMonths, 1);
result = _offsetted(year + month / 12, _add(month ... | 17,179,011 | [
1,
3655,
1375,
2107,
19749,
68,
358,
326,
9753,
2858,
16,
471,
1135,
326,
563,
18,
3609,
30,
971,
326,
21913,
5686,
3138,
434,
326,
563,
711,
5242,
4681,
2353,
326,
21913,
5686,
3138,
2548,
434,
326,
1375,
5508,
9191,
326,
563,
1807... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
19749,
12,
11890,
5034,
2858,
16,
2254,
5034,
818,
19749,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
563,
13,
203,
565,
288,
203,
3639,
261,
11890,
5034,
3286,
16,
2254,
5034,
3138,
1... |
./partial_match/1/0x3Fdb3bd1ab409F0CBB2c4d919b2205ac881B99ED/sources/src/governor/Governor.sol | * @dev See {IGovernor-castVoteWithReasonAndParams}./ | function castVoteWithReasonAndParams(uint256 proposalId, uint8 support, string calldata reason, bytes memory params) public virtual override returns (uint256) {
address voter = _msgSender();
return _castVote(proposalId, voter, support, reason, params);
}
| 9,366,591 | [
1,
9704,
288,
3047,
1643,
29561,
17,
4155,
19338,
1190,
8385,
1876,
1370,
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,... | [
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,
4812,
19338,
1190,
8385,
1876,
1370,
12,
11890,
5034,
14708,
548,
16,
2254,
28,
2865,
16,
533,
745,
892,
3971,
16,
1731,
3778,
859,
13,
1071,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
1758,
331,
20005,
273... |
./full_match/80001/0x07c7D97B7c07192555FA813dE4da54285A182F84/sources/project_/contracts/interfaces/ISubscriptionManager.sol | Must only be called by a subscription contract
| function recordSubscriptionPayment(address _subscriber) external; | 840,246 | [
1,
10136,
1338,
506,
2566,
635,
279,
4915,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1409,
6663,
6032,
12,
2867,
389,
26410,
13,
3903,
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,
-10... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
functi... | *@dev internal method to add a vest in token memory/ | function vestTokens(address ad, uint tkns, uint timelimit) internal {
vestObject = TokenVest({
vestAddress:ad,
vestTokensLimit:tkns,
vestTill:timelimit
});
listofVest.push(vestObject);
}
| 14,559,377 | [
1,
7236,
707,
358,
527,
279,
331,
395,
316,
1147,
3778,
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,
377,
445,
331,
395,
5157,
12,
2867,
1261,
16,
2254,
13030,
2387,
16,
2254,
1658,
19741,
13,
2713,
288,
203,
1377,
331,
395,
921,
273,
3155,
58,
395,
12590,
203,
1850,
331,
395,
1887,
30,
361,
16,
203,
1850,
331,
395,
5157,
3039... |
// SPDX-License-Identifier:MIT
pragma solidity >=0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/GsnTypes.sol";
import "./interfaces/IPaymaster.sol";
import "./interfaces/IRelayHub.sol";
import "./utils/GsnEip712Library.sol";
import "./forwarder/IForwarder.sol";
/**
*... | function with no return value (also test revert with no msg. | function checkNoReturnValues(bool doRevert) public view {
(this);
require(!doRevert);
| 45,760 | [
1,
915,
598,
1158,
327,
460,
261,
31144,
1842,
15226,
598,
1158,
1234,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
2279,
990,
1972,
12,
6430,
741,
426,
1097,
13,
1071,
1476,
288,
203,
3639,
261,
2211,
1769,
203,
3639,
2583,
12,
5,
2896,
426,
1097,
1769,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-16
*/
// File: @openzeppelin/contracts/math/SafeMath.sol
pragma solidity ^0.7.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* i... | * @title TokenFactory @dev Factory contract for deployment of new TokenProxy contracts./ | contract TokenFactory is OwnableModule {
address public tokenImage;
constructor(address _owner, address _tokenImage) OwnableModule(_owner) {
tokenImage = _tokenImage;
}
function setTokenImage(address _tokenImage) external onlyOwner {
require(Address.isContract(_tokenImage));
t... | 2,001,579 | [
1,
1345,
1733,
225,
7822,
6835,
364,
6314,
434,
394,
3155,
3886,
20092,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
1733,
353,
14223,
6914,
3120,
288,
203,
565,
1758,
1071,
1147,
2040,
31,
203,
203,
203,
565,
3885,
12,
2867,
389,
8443,
16,
1758,
389,
2316,
2040,
13,
14223,
6914,
3120,
24899,
8443,
13,
288,
203,
3639,
1147,
2040,
2... |
./full_match/80001/0xa114Ef31a6A1F66b3129A175980aCD697D3257aa/sources/@chainlink/contracts/src/v0.8/functions/dev/v1_0_0/libraries/FunctionsRequest.sol | @notice Sets bytes args for the user run function @param self The initialized request @param args The array of bytes args (must not be empty) | function setBytesArgs(Request memory self, bytes[] memory args) internal pure {
if (args.length == 0) revert EmptyArgs();
self.bytesArgs = args;
}
| 5,585,515 | [
1,
2785,
1731,
833,
364,
326,
729,
1086,
445,
225,
365,
1021,
6454,
590,
225,
833,
1021,
526,
434,
1731,
833,
261,
11926,
486,
506,
1008,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
2160,
2615,
12,
691,
3778,
365,
16,
1731,
8526,
3778,
833,
13,
2713,
16618,
288,
203,
565,
309,
261,
1968,
18,
2469,
422,
374,
13,
15226,
8953,
2615,
5621,
203,
203,
565,
365,
18,
3890,
2615,
273,
833,
31,
203,
... |
pragma solidity ^0.4.18;
import "./OpenZeppelin/Ownable.sol";
import "./BerryToken.sol";
/*
* ICO Start time - 1512464400 - December 5, 2018 9:00:00 AM
* Default ICO End time - 1519862399 - February 28, 2018 11:59:59 PM
*/
contract BerryCrowdsale is Ownable {
using SafeMath for uint;
BerryToken public tok... | Returns number of investors | function getInvestorCount() public view returns (uint) {
return investors_number.length;
}
| 990,178 | [
1,
1356,
1300,
434,
2198,
395,
1383,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3605,
395,
280,
1380,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
2198,
395,
1383,
67,
2696,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-01
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, ... | * @dev Initializes the contract setting the deployer as the initial owner./ | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
constructor() {
_setOwner(_msgSender());
}
| 15,261,506 | [
1,
9685,
326,
6835,
3637,
326,
7286,
264,
487,
326,
2172,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
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,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,... |
//Address: 0xebaa1766c577a1ea5833f0502bd9984aef22c61f
//Contract name: DadiSale
//Balance: 0 Ether
//Verification Date: 2/5/2018
//Transacion Count: 67
// CODE STARTS HERE
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function... | **** @dev Converts an amount sent in Wei to the equivalent in USD @param _amount uint256 the amount sent to the contract, in Wei @return uint256 the amount sent to this contract, in USD/ | function ethToUsd (uint256 _amount) public constant returns (uint256) {
return (_amount * ethRate) / (uint256(10) ** 18);
}
| 7,307,308 | [
1,
5692,
392,
3844,
3271,
316,
1660,
77,
358,
326,
7680,
316,
587,
9903,
225,
389,
8949,
1377,
2254,
5034,
4202,
326,
3844,
3271,
358,
326,
6835,
16,
316,
1660,
77,
327,
2254,
5034,
225,
326,
3844,
3271,
358,
333,
6835,
16,
316,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13750,
774,
3477,
72,
261,
11890,
5034,
389,
8949,
13,
1071,
5381,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
261,
67,
8949,
380,
13750,
4727,
13,
342,
261,
11890,
5034,
12,
2163,
13,
2826,
6549,
1769,
203,
565,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.6.0;
/**
* @dev The Migrations contract is a standard truffle contract that keeps track of which migrations were done on the current network.
* For eDai, we have updated it and added functionality that enables it as well to work as a deployed contract ... | * @dev The Migrations contract is a standard truffle contract that keeps track of which migrations were done on the current network. For eDai, we have updated it and added functionality that enables it as well to work as a deployed contract registry./ | contract Migrations {
event Registered(bytes32 name, address addr);
uint public lastCompletedMigration;
string public version;
mapping(bytes32 => address) public contracts;
bytes32[] public names;
pragma solidity ^0.6.0;
constructor (string memory version_) public {
version = version_... | 12,780,831 | [
1,
1986,
490,
10475,
6835,
353,
279,
4529,
433,
10148,
6835,
716,
20948,
3298,
434,
1492,
9814,
4591,
2731,
603,
326,
783,
2483,
18,
2457,
425,
40,
10658,
16,
732,
1240,
3526,
518,
471,
3096,
14176,
716,
19808,
518,
487,
5492,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
10475,
288,
203,
565,
871,
26940,
12,
3890,
1578,
508,
16,
1758,
3091,
1769,
203,
565,
2254,
1071,
1142,
9556,
10224,
31,
203,
565,
533,
1071,
1177,
31,
203,
203,
565,
2874,
12,
3890,
1578,
516,
1758,
13,
1071,
20092,... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which... | /* @title ReserveTypes @notice Contains all reserve state structs/ | contract ReserveTypes {
Copyright 2021 Empty Set Squad <emptysetsquad@protonmail.com>
struct Order {
Decimal.D256 price;
uint256 amount;
}
struct State {
uint256 totalDebt;
mapping(address => uint256) debt;
mapping(address => mapping(address => ReserveTypes.... | 12,066,221 | [
1,
19,
225,
1124,
6527,
2016,
225,
8398,
777,
20501,
919,
8179,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1124,
6527,
2016,
288,
203,
203,
565,
25417,
26599,
21,
8953,
1000,
348,
21733,
411,
5531,
4424,
21733,
36,
685,
1917,
4408,
18,
832,
34,
203,
565,
1958,
4347,
288,
203,
3639,
11322,
18,
40,
5034,
6205,
31,
203,
203,
3639,... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity >=0.8.0;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ / /_ / /... | Check the pool ceiling | require(freeCollatBalance(col_idx).add(collat_needed) <= pool_ceilings[col_idx], "Pool ceiling");
| 12,741,533 | [
1,
1564,
326,
2845,
5898,
4973,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
9156,
914,
4801,
13937,
12,
1293,
67,
3465,
2934,
1289,
12,
1293,
4801,
67,
17471,
13,
1648,
2845,
67,
311,
330,
899,
63,
1293,
67,
3465,
6487,
315,
2864,
5898,
4973,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xf20c92fAE68c4ad05A07cEfd64fa844780d9EA58/sources/contracts/SpartanMinter.sol | * @notice the public function validating addresses @param proof_ hashes validating that a leaf exists inside merkle tree aka _merkleRoot @param mintId_ Id sent from the db to check it this token number is minted or not/ | function isAllowedToMint(bytes32[] memory proof_, bytes16 mintId_)
internal
view
returns (bool)
{
require(
MerkleProof.verify(
proof_,
_merkleRoot,
keccak256(abi.encodePacked(mintId_))
),
"SPTN: P... | 4,265,097 | [
1,
5787,
1071,
445,
18075,
6138,
225,
14601,
67,
9869,
18075,
716,
279,
7839,
1704,
4832,
30235,
2151,
28105,
389,
6592,
15609,
2375,
225,
312,
474,
548,
67,
3124,
3271,
628,
326,
1319,
358,
866,
518,
333,
1147,
1300,
353,
312,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
21956,
774,
49,
474,
12,
3890,
1578,
8526,
3778,
14601,
67,
16,
1731,
2313,
312,
474,
548,
67,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
31827... |
pragma solidity ^0.4.10;
// Miners create Elixor (EXOR), which they then convert to Elixir (ELIX)
contract elixor {
string public name;
string public symbol;
uint8 public decimals;
uint256 public startTime;
uint256 public totalSupply;
bool public balanceImportsComplete;
mapping (address => boo... | They want to convert to ELIX | function transfer(address _to, uint256 _value) {
if (!frozen){
if (balances[msg.sender] < _value) revert();
if (balances[_to] + _value < balances[_to]) revert();
if (returnIsParentAddress(_to) || isNewParent[_to]) {
if ((msg.sender==returnChildAddressForParent(_to)) || (returnChildForPare... | 1,064,010 | [
1,
1315,
402,
2545,
358,
1765,
358,
512,
2053,
60,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
915,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
288,
225,
203,
430,
16051,
28138,
15329,
203,
377,
203,
565,
309,
261,
70,
26488,
63,
3576,
18,
15330,
65,
411,
389,
1132,
13,
15226,
5621,
203,
565,
309,
261,
70,
... |
/**
*Submitted for verification at Etherscan.io on 2021-11-19
*/
// File: contracts/IERC2612Permit.sol
pragma solidity 0.7.4;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit... | * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder acc... | interface IERC2612Permit {
function permit(
address owner,
address spender,
uint256 amount,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
function nonces(address owner) external view returns (uint256);
}
| 7,808,198 | [
1,
1358,
434,
326,
4232,
39,
3462,
13813,
305,
2710,
15632,
6617,
4524,
358,
506,
7165,
3970,
14862,
16,
487,
2553,
316,
15605,
326,
288,
457,
1938,
97,
707,
16,
1492,
848,
506,
1399,
358,
2549,
392,
2236,
1807,
4232,
39,
3462,
1699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
654,
39,
5558,
2138,
9123,
305,
288,
203,
565,
445,
21447,
12,
203,
3639,
1758,
3410,
16,
203,
3639,
1758,
17571,
264,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
14096,
16,
203,
3639,
2254,
28,
331,
... |
pragma solidity ^0.4.4;
contract CompetitionFactory {
// ------ Contract member variables ------
struct Competition {
uint prize; // prize in ether (units are 'wei' so values are large: can't use uint32)
uint deadline; // end of competition (denoted in Epoch Time)
address host; ... | Modifier that requires the competitionId to be a valid/existing one.if (_competitionId >= competitions.length) throw; | modifier competitionIdCheck(uint _competitionId) {
_;
}
| 14,105,174 | [
1,
9829,
716,
4991,
326,
25163,
608,
548,
358,
506,
279,
923,
19,
11711,
1245,
18,
430,
261,
67,
31942,
608,
548,
1545,
25163,
5029,
18,
2469,
13,
604,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
25163,
608,
548,
1564,
12,
11890,
389,
31942,
608,
548,
13,
288,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity >=0.4.25 <0.6.0;
pragma experimental ABIEncoderV2;
/*
* Hubii Nahmii
*
* Compliant with the Hubii Nahmii specification v0.12.
*
* Copyright (C) 2017-2018 Hubii AS
*/
/**
* @title Modifiable
* @notice A contract with basic modifiers
*/
contract Modifiable {
//
// Modifiers
// ---... | * Concat (High gas cost) Appends two strings together and returns a new value @param _base When being used for a data type this is the extended object otherwise this is the string which will be the concatenated prefix @param _value The value to be the concatenated suffix @return string The res... | returns (string memory) {
bytes memory _baseBytes = bytes(_base);
bytes memory _valueBytes = bytes(_value);
assert(_valueBytes.length > 0);
string memory _tmpValue = new string(_baseBytes.length +
_valueBytes.length);
bytes memory _newValue = bytes(_tmpValue... | 1,005,993 | [
1,
15113,
261,
8573,
16189,
6991,
13,
6181,
87,
2795,
2064,
9475,
471,
1135,
279,
394,
460,
225,
389,
1969,
5203,
3832,
1399,
364,
279,
501,
618,
333,
353,
326,
7021,
733,
2868,
3541,
333,
353,
326,
533,
1492,
903,
506,
326,
22080,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
1731,
3778,
389,
1969,
2160,
273,
1731,
24899,
1969,
1769,
203,
3639,
1731,
3778,
389,
1132,
2160,
273,
1731,
24899,
1132,
1769,
203,
203,
3639,
1815,
24899,
1132,
2160,
18,
2469,
40... |
pragma solidity ^0.5.16;
import "./BaseJumpRateModelV2.sol";
import "./InterestRateModel.sol";
/**
* @title rLending's JumpRateModel Contract V2 for V2 cTokens
* @author rLending
* @notice Supports only for V2 cTokens
*/
contract JumpRateModelV2 is InterestRateModel, BaseJumpRateModelV2 {
/**
* @noti... | * @title rLending's JumpRateModel Contract V2 for V2 cTokens @author rLending @notice Supports only for V2 cTokens/ | contract JumpRateModelV2 is InterestRateModel, BaseJumpRateModelV2 {
function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint) {
return getBorrowRateInternal(cash, borrows, reserves);
}
constructor(uint baseRatePerYear, uint multiplierPerYear, uint jumpMultiplier... | 2,538,481 | [
1,
86,
48,
2846,
1807,
804,
2801,
4727,
1488,
13456,
776,
22,
364,
776,
22,
276,
5157,
225,
436,
48,
2846,
225,
25110,
1338,
364,
776,
22,
276,
5157,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
804,
2801,
4727,
1488,
58,
22,
353,
5294,
395,
4727,
1488,
16,
3360,
26743,
4727,
1488,
58,
22,
225,
288,
203,
203,
565,
445,
2882,
15318,
4727,
12,
11890,
276,
961,
16,
2254,
324,
280,
3870,
16,
2254,
400,
264,
3324,
13... |
pragma solidity ^0.4.11;
contract PullPayInterface {
function asyncSend(address _dest) public payable;
}
contract Governable {
// list of admins, council at first spot
address[] public admins;
function Governable() {
admins.length = 1;
admins[0] = msg.sender;
}
modifier only... | 1,000,000 WEI, used as price factor
| require(nutzAddr.balance >= activeSupply().mul(1000000).div(_newSalePrice)); | 1,002,681 | [
1,
21,
16,
3784,
16,
3784,
13880,
45,
16,
1399,
487,
6205,
5578,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
2583,
12,
82,
322,
94,
3178,
18,
12296,
1545,
2695,
3088,
1283,
7675,
16411,
12,
21,
9449,
2934,
2892,
24899,
2704,
30746,
5147,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1313161554/0xEF72330b252490648D01B242eCfFbb10b3C01B61/sources/contracts/JetStaking/JetStakingV2.sol | @dev get the streams count @return streams.length | function getStreamsCount() external view virtual returns (uint256) {
return streams.length;
}
| 13,233,181 | [
1,
588,
326,
8205,
1056,
327,
8205,
18,
2469,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
10301,
1380,
1435,
3903,
1476,
5024,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
8205,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/*
Copyright 2017-2018 Phillip A. Elsasser
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | price is greater or equal to our cap, settle to CAP price
| } else if (lastPrice >= PRICE_CAP) { | 971,429 | [
1,
8694,
353,
6802,
578,
3959,
358,
3134,
3523,
16,
444,
5929,
358,
29720,
6205,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
289,
469,
309,
261,
2722,
5147,
1545,
10365,
1441,
67,
17296,
13,
288,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Libraries
import { LibLoans } from "./libraries/LibLoans.sol";
import { LibEscrow } from "../escrow/libraries/LibEscrow.sol";
import {
EnumerableSet
} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
// Storage
import { Loan, LoanDebt, Loa... | * @notice Returns the amount of interest owed for a given loan and loan amount. @param loanID The loan ID to get the owed interest. @param amountBorrow The principal of the loan to take out. @return uint256 The interest owed./ | function getInterestOwedFor(uint256 loanID, uint256 amountBorrow)
external
view
returns (uint256)
{
return LibLoans.getInterestOwedFor(loanID, amountBorrow);
}
| 2,549,871 | [
1,
1356,
326,
3844,
434,
16513,
2523,
329,
364,
279,
864,
28183,
471,
28183,
3844,
18,
225,
28183,
734,
1021,
28183,
1599,
358,
336,
326,
2523,
329,
16513,
18,
225,
3844,
38,
15318,
1021,
8897,
434,
326,
28183,
358,
4862,
596,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
29281,
3494,
329,
1290,
12,
11890,
5034,
28183,
734,
16,
2254,
5034,
3844,
38,
15318,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
10560,
1504,
634,
18... |