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 |
|---|---|---|---|---|---|---|
./full_match/80001/0x5a8aA28b00b27f67425633D790DEA7aAA22EA1c7/sources/Token.sol | * @dev Sets the token allowance to another spender/ | function approve(address spender, uint256 amount) public returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| 846,694 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
1147,
1699,
1359,
358,
4042,
17571,
264,
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,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
5034,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
389,
12908,
537,
24899,
3576,
12021,
9334,
17571,
264,
16,
3844,
1769,
203,
203,
3639,
327,
638,
31,
203,
565,
289,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "../interfaces/IConnector.sol";
import "./curve/interfaces/iCurvePool.sol";
contract... | TODO: use withdrawAmount? | uint256 retAmount = pool.remove_liquidity_one_coin(lpTokAmount, int128(uint128(i)), 0);
| 5,401,397 | [
1,
4625,
348,
7953,
560,
30,
2660,
30,
999,
598,
9446,
6275,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
2254,
5034,
325,
6275,
273,
2845,
18,
4479,
67,
549,
372,
24237,
67,
476,
67,
12645,
12,
9953,
20477,
6275,
16,
509,
10392,
12,
11890,
10392,
12,
77,
13,
3631,
374,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-12
*/
// File: contracts/interfaces/ILayerZeroUserApplicationConfig.sol
pragma solidity >=0.5.0;
interface ILayerZeroUserApplicationConfig {
// @notice set the configuration of the LayerZero messaging library of the specified version
// @param _ve... | This allows the devs to receive kind donations | function withdraw(uint amt) external onlyOwner {
require(sent, "GG: Failed to withdraw Ether");
}
| 7,929,661 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
5360,
326,
4461,
87,
358,
6798,
3846,
2727,
1012,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
25123,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
7569,
16,
315,
19491,
30,
11175,
358,
598,
9446,
512,
1136,
8863,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.17;
import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contracts/Patients.sol";
contract TestAdoption {
// The address of the adoption contract to be tested
Patients patients = Patients(DeployedAddresses.Patients());
// Testing the getLength() function
... | Testing the reset() function | function test_reset() public {
patients.reset();
uint returnedLength = patients.getLength();
Assert.equal(returnedLength, expectedLength_empty, "After reset return length should match empty.");
}
uint expectedLength_array = 4;
string expected_t3 = "t3";
string expected_t1 =... | 7,263,430 | [
1,
4625,
348,
7953,
560,
30,
225,
7766,
310,
326,
2715,
1435,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
67,
6208,
1435,
1071,
288,
203,
3639,
9670,
5828,
18,
6208,
5621,
203,
3639,
2254,
2106,
1782,
273,
9670,
5828,
18,
588,
1782,
5621,
203,
203,
3639,
5452,
18,
9729,
12,
2463,
329,
1782,
16,
2665,
1782,
67,
5531,
... |
pragma solidity >=0.4.24 <0.6.0;
/* 安全操作函数
* SafeMath to avoid data overwrite
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
require(a == 0 || c / a == b, "overwrite error");
return c;
}
function div(uint a, uint b) internal pure ... | 直接发行JR,用于挖矿奖励以及其他奖励 | function issueJR(address _to, uint _balance) public returns(uint){
balanceOf[_to] = balanceOf[_to].add(_balance);
totalSupply = totalSupply.add(_balance);
emit IssueEvent(_to, _balance);
}
| 12,887,371 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
168,
254,
117,
167,
241,
103,
166,
242,
244,
169,
99,
239,
46,
54,
176,
125,
239,
168,
247,
106,
165,
123,
241,
167,
239,
249,
168,
258,
128,
166,
103,
249,
166,
237,
114,
165,
124,
103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
5672,
46,
54,
12,
2867,
389,
869,
16,
2254,
389,
12296,
13,
1071,
1135,
12,
11890,
15329,
203,
3639,
11013,
951,
63,
67,
869,
65,
273,
11013,
951,
63,
67,
869,
8009,
1289,
24899,
12296,
1769,
203,
3639,
2078,
3088,
12... |
pragma solidity >=0.4.2 <0.6.0;
/// https://www.dappuniversity.com/articles/the-ultimate-ethereum-dapp-tutorial
contract Election {
struct Candidate {
uint id; // 0
string name; // 1
uint voteCount; // 2
}
address public admin;
// Store Candidates
// Like a hash... | allows to vote require they have not voted require valid candidate voter has voted (one user, one vote) increase candidate's voteCount trigger voted event | function vote(uint _candidateId) public {
require(_candidateId > 0 && _candidateId < candidatesCount,"invalid candidate");
voters[msg.sender] = true;
candidates[_candidateId].voteCount++;
emit votedEvent(_candidateId);
}
| 12,730,295 | [
1,
4625,
348,
7953,
560,
30,
225,
5360,
358,
12501,
2583,
2898,
1240,
486,
331,
16474,
2583,
923,
5500,
331,
20005,
711,
331,
16474,
261,
476,
729,
16,
1245,
12501,
13,
10929,
5500,
1807,
12501,
1380,
3080,
331,
16474,
871,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12501,
12,
11890,
389,
19188,
548,
13,
1071,
288,
203,
203,
3639,
2583,
24899,
19188,
548,
405,
374,
597,
389,
19188,
548,
411,
7965,
1380,
10837,
5387,
5500,
8863,
203,
203,
3639,
331,
352,
414,
63,
3576,
18,
15330,
65... |
pragma solidity ^0.5.0;
import "@openzeppelin/upgrades/contracts/Initializable.sol";
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a d... | @notice Restrict a function to refundable darknodes. | modifier onlyRefundable(address _darknodeID) {
require(
isRefundable(_darknodeID),
"DarknodeRegistry: must be deregistered for at least one epoch"
);
_;
}
| 287,207 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1124,
5792,
279,
445,
358,
16255,
429,
23433,
4690,
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... | [
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,
9606,
1338,
21537,
429,
12,
2867,
389,
25045,
2159,
734,
13,
288,
203,
3639,
2583,
12,
203,
5411,
353,
21537,
429,
24899,
25045,
2159,
734,
3631,
203,
5411,
315,
40,
1313,
2159,
4243,
30,
1297,
506,
24310,
329,
364,
622,
452... |
./partial_match/56/0x166efCE6778689521C21eA31bBc6f40F930370A3/sources/TokenTimelock.sol | 02/01/2023 12:00:00 AM
| _releaseTime = 1675209600; | 11,223,847 | [
1,
4625,
348,
7953,
560,
30,
225,
17896,
19,
1611,
19,
18212,
23,
2593,
30,
713,
30,
713,
20653,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
9340,
950,
273,
2872,
5877,
3462,
10525,
713,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x695264D984A5E45C2d89f261C8668d6C1F7D214c/sources/IporProtocolRouter.sol | @notice Gets the AssetManagement configuration for the given asset. @param asset The address of the asset. @return AssetManagementConfiguration The AssetManagement configuration for the given asset. @notice Gets balance of the AmmTreasury contract in the AssetManagement. @dev This includes assets transferred to AssetM... | library IporTypes {
function getAssetManagementConfiguration(address asset) external view returns (AssetManagementConfiguration memory);
function balanceOfAmmTreasuryInAssetManagement(address asset) external view returns (uint256);
}
pragma solidity 0.8.20;
enum SwapState {
INACTIVE,
AC... | 16,153,458 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11881,
326,
10494,
10998,
1664,
364,
326,
864,
3310,
18,
632,
891,
3310,
1021,
1758,
434,
326,
3310,
18,
632,
2463,
10494,
10998,
1750,
1021,
10494,
10998,
1664,
364,
326,
864,
3310,
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,
12083,
467,
3831,
2016,
288,
203,
565,
445,
24689,
10998,
1750,
12,
2867,
3310,
13,
3903,
1476,
1135,
261,
6672,
10998,
1750,
3778,
1769,
203,
203,
565,
445,
11013,
951,
37,
7020,
56,
266,
345,
22498,
382,
6672,
10998,
12,
2867,
... |
pragma solidity ^0.5.0;
// Everyone who deposits funds is issued time tokens.
// 1 CHAR token is equivalent to 1 DAI for 1 block and represents your voting power
// There are three phases - voting, deposit and donate
// In the voting phase CHAR holders vote on the address they would like to receive funds from the next... | To make sure the transfer doesn't fail due to insufficient funds make sure we add any accrued governance tokens before trying to transfer | function transfer(address _recipient, uint256 _amount) public returns (bool) {
deFiDonate.update(msg.sender);
super.transfer(_recipient, _amount);
return true;
}
| 5,347,696 | [
1,
4625,
348,
7953,
560,
30,
225,
2974,
1221,
3071,
326,
7412,
3302,
1404,
2321,
6541,
358,
2763,
11339,
284,
19156,
1221,
3071,
732,
527,
1281,
4078,
86,
5957,
314,
1643,
82,
1359,
2430,
1865,
8374,
358,
7412,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
389,
20367,
16,
2254,
5034,
389,
8949,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
443,
42,
77,
22293,
340,
18,
2725,
12,
3576,
18,
15330,
1769,
203,
3639,
2240,
18,
13866,
24899,
20367,
16,
389,
89... |
pragma solidity ^0.4.21;
contract Owned {
/// 'owner' is the only address that can call a function with
/// this modifier
address public owner;
address internal newOwner;
///@notice The constructor assigns the message sender to be 'owner'
function Owned() public {
owner = msg... | Flag that determines if the token is transferable or not | contract Controlled is Owned, ERC20Token {
using SafeMath for uint;
uint256 public releaseStartTime;
uint256 oneMonth = 3600 * 24 * 30;
bool public emergencyStop = false;
}
struct userToken {
uint256 UST;
uint256 addrLockType;
}
mapping (address => userToken) publi... | 1,540,099 | [
1,
4625,
348,
7953,
560,
30,
225,
9960,
716,
12949,
309,
326,
1147,
353,
7412,
429,
578,
486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8888,
1259,
353,
14223,
11748,
16,
4232,
39,
3462,
1345,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
2254,
5034,
1071,
3992,
13649,
31,
203,
565,
2254,
5034,
1245,
5445,
273,
12396,
380,
4248,
380,
5196,
31,
... |
./partial_match/1/0xBFcc973A3662c91cd2C28F575Ff201927479b1D8/sources/contracts/Fund.sol | * @notice Updates Grant Recommendation and emits a `GrantUpdated` event. @param grantId UUID representing this grant @param description The address of the Owner. @param value The value of the grant in base units. @param recipient The address of the recieving organization's contract./ | function updateGrant(
string calldata grantId,
string calldata description,
uint256 value,
address recipient
)
public
onlyAddressOrAdminOrRole(
manager,
fundFactoryContract.endaomentAdmin(),
IEndaomentAdmin.Role.REVIEWER
)
{
require(!isEqual(grantId, ""), "Fund: M... | 2,650,344 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15419,
19689,
25546,
18782,
471,
24169,
279,
1375,
9021,
7381,
68,
871,
18,
632,
891,
225,
7936,
548,
5866,
5123,
333,
7936,
632,
891,
225,
2477,
1021,
1758,
434,
326,
16837,
18,
632,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1089,
9021,
12,
203,
565,
533,
745,
892,
7936,
548,
16,
203,
565,
533,
745,
892,
2477,
16,
203,
565,
2254,
5034,
460,
16,
203,
565,
1758,
8027,
203,
225,
262,
203,
565,
1071,
203,
565,
1338,
1887,
1162,
4446,
1162,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
import '@openzeppelin/contracts/math/SafeMath.sol';
import './interfaces/IAmesoToken.sol';
import './interfaces/ITreasury.sol';
import 'hardhat/console.sol';
contract Ameso {
using SafeMath for uint256;
modifier onlyTreasury() {
require(msg.send... | * @dev Review calls this function to approve/disapprove job done by contractor/ Add caller to mapping of reviewers Caller cannot review a job multiple times | function reviewJob(
string memory _ipfsID,
bool _approve
) public
onlyReviewer
{
}
| 15,840,698 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
21354,
4097,
333,
445,
358,
6617,
537,
19,
2251,
12908,
537,
1719,
2731,
635,
6835,
280,
19,
1436,
4894,
358,
2874,
434,
10725,
414,
20646,
2780,
10725,
279,
1719,
3229,
4124,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10725,
2278,
12,
203,
3639,
533,
3778,
389,
625,
2556,
734,
16,
203,
3639,
1426,
389,
12908,
537,
203,
565,
262,
1071,
203,
3639,
1338,
9159,
264,
203,
565,
288,
203,
203,
203,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
./partial_match/1/0x2E2BD1FDaBE3450c97b6Bd0C168C8639d6728341/sources/RugStubs.sol | * @dev Override primary sale receiver/ | function changePrimarySaleReceiver(address newPrimarySaleReceiver)
external
{
if (!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) revert UnauthorisedUser();
if (newPrimarySaleReceiver == address(0)) revert ZeroAddress();
_primarySaleReceiver = newPrimarySaleReceiver;
emit NewPr... | 3,690,029 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1439,
3354,
272,
5349,
5971,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
6793,
30746,
12952,
12,
2867,
394,
6793,
30746,
12952,
13,
203,
3639,
3903,
203,
565,
288,
203,
3639,
309,
16051,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
3719,
15226,
1351,
4161,
5918,
1299,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.4 <0.7.0;
pragma experimental ABIEncoderV2;
import "./ERC20.sol";
contract loteria {
// Instancia del contrato Token
ERC20Basic private token;
// Direcciones
address public owner;
address public contrato;
// Numero de tokens a... | Obtener el balance de tokens acumulados en el Bote | function Bote() public view returns(uint) {
return token.balanceOf(owner);
}
| 12,946,452 | [
1,
4625,
348,
7953,
560,
30,
225,
19659,
88,
708,
415,
11013,
443,
2430,
1721,
5283,
18739,
570,
415,
605,
1168,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
605,
1168,
1435,
1071,
1476,
1135,
12,
11890,
13,
288,
203,
3639,
327,
1147,
18,
12296,
951,
12,
8443,
1769,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: GPL-3.0
/// @title The Nouns DAO auction house
/*********************************
* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
* ░░░░░░█████████░░█████████░░░ *
* ░░░░░░██░░░████░░██░░░████░░░ *
* ░░██████░░░████████░░░████░░░ *
* ░░██░░██░░░████░░██░░░████░░░ ... | * @notice Settle an auction, finalizing the bid and paying out to the owner. @dev If there are no bids, the Noun is burned./ | function _settleAuction() internal {
IAuctionHouse.Auction memory _auction = auction;
require(ohm != address(0), "ohm token address not set");
require(_auction.startTime != 0, "Auction hasn't begun");
require(!_auction.settled, "Auction has already been settled");
require(
... | 14,719,213 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1000,
5929,
392,
279,
4062,
16,
727,
6894,
326,
9949,
471,
8843,
310,
596,
358,
326,
3410,
18,
632,
5206,
971,
1915,
854,
1158,
30534,
16,
326,
423,
465,
353,
18305,
329,
18,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
5929,
37,
4062,
1435,
2713,
288,
203,
3639,
467,
37,
4062,
44,
3793,
18,
37,
4062,
3778,
389,
69,
4062,
273,
279,
4062,
31,
203,
3639,
2583,
12,
16699,
81,
480,
1758,
12,
20,
3631,
315,
16699,
81,
1147,
17... |
./full_match/44787/0x2D65b8a41013148C0d6386E783A587E0ba802fFC/sources/contracts/moneymarkets/moola/MoolaMarket.sol | Verify input addresses | ) external initializer {
__MoneyMarket_init(_rescuer);
require(
_provider.isContract() &&
_aToken.isContract() &&
_rewards != address(0) &&
_stablecoin.isContract(),
"MoolaMarket: An input address is not a contract"
);
... | 13,253,751 | [
1,
4625,
348,
7953,
560,
30,
225,
8553,
810,
6138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
3903,
12562,
288,
203,
3639,
1001,
23091,
3882,
278,
67,
2738,
24899,
455,
71,
6211,
1769,
203,
203,
3639,
2583,
12,
203,
5411,
389,
6778,
18,
291,
8924,
1435,
597,
203,
7734,
389,
69,
1345,
18,
291,
8924,
1435,
597,
... |
pragma solidity ^0.8.10;
import "ds-test/test.sol";
import "../Vault/VaultFactory.sol";
import "../Ethernaut.sol";
import "./utils/vm.sol";
contract VaultTest is DSTest {
Vm vm = Vm(address(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D));
Ethernaut ethernaut;
function setUp() public {
// Setup insta... | LEVEL SETUP LEVEL ATTACK Cheat code to load contract storage at specific slot Log bytes stored at that memory location The following lines just convert from bytes32 to a string and logs it so you can see that the password we have obtained is correct | function testVaultHack() public {
VaultFactory vaultFactory = new VaultFactory();
ethernaut.registerLevel(vaultFactory);
vm.startPrank(tx.origin);
address levelAddress = ethernaut.createLevelInstance(vaultFactory);
Vault ethernautVault = Vault(payable(levelAddress));
... | 1,841,396 | [
1,
4625,
348,
7953,
560,
30,
225,
15080,
7855,
3079,
225,
15080,
7907,
3649,
225,
22682,
270,
981,
358,
1262,
6835,
2502,
622,
2923,
4694,
1827,
1731,
4041,
622,
716,
3778,
2117,
1021,
3751,
2362,
2537,
1765,
628,
1731,
1578,
358,
279... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
12003,
44,
484,
1435,
1071,
288,
203,
203,
3639,
17329,
1733,
9229,
1733,
273,
394,
17329,
1733,
5621,
203,
3639,
225,
2437,
82,
5854,
18,
4861,
2355,
12,
26983,
1733,
1769,
203,
3639,
4268,
18,
1937,
2050,
2304,
... |
./partial_match/1/0xd3EB37fB35b6944cAF0ac591D625e8e70db433F1/sources/COCOLInu.sol | * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. This internal function is equivalent to `approve`, and can be used to e.g. set automatic allowances for certain subsystems, etc. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero add... | function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount... | 4,139,567 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
1375,
8949,
68,
487,
326,
1699,
1359,
434,
1375,
87,
1302,
264,
68,
1879,
326,
1375,
8443,
68,
272,
2430,
18,
1220,
2713,
445,
353,
7680,
358,
1375,
12908,
537,
9191,
471,
848,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
12908,
537,
12,
203,
3639,
1758,
3410,
16,
203,
3639,
1758,
17571,
264,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,... |
/**
*Submitted for verification at Etherscan.io on 2021-03-31
*/
/**
Copyright 2020 PoolTogether Inc.
This file is part of PoolTogether.
PoolTogether is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation under versio... | * @notice Emits the Committed event for the current open draw./ | function emitCommitted() internal {
uint256 drawId = currentOpenDrawId();
emit Committed(drawId);
if (address(poolToken) != address(0)) {
poolToken.poolMint(openSupply());
}
}
| 8,015,381 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7377,
1282,
326,
1286,
7948,
871,
364,
326,
783,
1696,
3724,
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,... | [
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,
445,
3626,
27813,
1435,
2713,
288,
203,
565,
2254,
5034,
3724,
548,
273,
783,
3678,
6493,
548,
5621,
203,
565,
3626,
1286,
7948,
12,
9446,
548,
1769,
203,
565,
309,
261,
2867,
12,
6011,
1345,
13,
480,
1758,
12,
20,
3719,
2... |
/**
*Submitted for verification at Etherscan.io on 2022-04-28
*/
// SPDX-License-Identifier: MIT
// @title GangsterSapiens NFT Smart Contract
// @authors Nathan Smyth & Jon Leveille
// @notice This contract provides 6'666 Gangster Sapiens NFTs
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma ... | @notice read URI of Token for Metadata @dev overrides the erc721 standard because of the reveal mechanic. If revealSingle is true, it returns a url to the single point NFT. Else generic reply. @param _tokenId represents the ID of the NFT to view | function tokenURI(uint256 _tokenId) public view virtual override
returns (string memory)
{
require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
if(revealed) {
return string(abi.encodePacked(baseURI, _tokenId.toString(), baseExtension));
... | 10,837,716 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
855,
3699,
434,
3155,
364,
6912,
632,
5206,
9515,
326,
6445,
71,
27,
5340,
4529,
2724,
434,
326,
283,
24293,
1791,
7472,
335,
18,
971,
283,
24293,
5281,
353,
638,
16,
518,
1135,
279,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1147,
3098,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
5024,
3849,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
203,
3639,
2583,
24899,
1808,
24899,
2316,
548,
3631,
315,
654,
39,
27,
5340,
2277,
30,
3699,... |
pragma solidity ^0.4.24;
contract GNSlib {
constructor() public {
}
/** @notice Verifies name validness. Name should not contain dots (".")
*/
function isValidName(
string _name)
pure
public
returns (bool)
{
bytes memory nameInByteArray = bytes(_name);
for... | * @notice Verifies validness of part of record/ | function isValidString(
bytes _str,
uint32 _offset,
uint32 _length)
pure
public
returns (bool)
{
if (_str.length < _offset + _length)
return false;
for (uint128 i = _offset; i < _length; i++)
if (_str[i] == 0)
return fal... | 6,418,403 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
6160,
5032,
923,
4496,
434,
1087,
434,
1409,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4908,
780,
12,
203,
3639,
1731,
389,
701,
16,
203,
3639,
2254,
1578,
389,
3348,
16,
203,
3639,
2254,
1578,
389,
2469,
13,
203,
565,
16618,
203,
565,
1071,
203,
565,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
309,
... |
pragma solidity ^0.4.25;
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
// -----------... | @notice Gauge whether the proposal for the given wallet and currency has terminated @param wallet The address of the concerned wallet @param currency The concerned currency @return true if proposal has terminated, else false 1-based index | function hasProposalTerminated(address wallet, MonetaryTypesLib.Currency currency)
public
view
returns (bool)
{
uint256 index = proposalIndexByWalletCurrency[wallet][currency.ct][currency.id];
require(0 != index);
return proposals[index - 1].terminated;
}
| 415,363 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
19766,
2856,
326,
14708,
364,
326,
864,
9230,
471,
5462,
711,
14127,
632,
891,
9230,
1021,
1758,
434,
326,
356,
2750,
11748,
9230,
632,
891,
5462,
1021,
356,
2750,
11748,
5462,
632,
2463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
711,
14592,
21888,
12,
2867,
9230,
16,
26196,
2016,
5664,
18,
7623,
5462,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2254,
5034,
770,
273,
14708,
1016,
858,
16936,
7623,... |
./partial_match/1/0x8e7dafD670532889822f1a313E325e1A8B0B2dd0/sources/TaalPair.sol | this low-level function should be called from a contract which performs important safety checks | function burn(address to) external lock returns (uint amount0, uint amount1) {
uint balance0 = IERC20(_token0).balanceOf(address(this));
uint balance1 = IERC20(_token1).balanceOf(address(this));
uint liquidity = balanceOf[address(this)];
bool feeOn = _mintFee(_reserve0, _reserve1);
... | 9,276,637 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
4587,
17,
2815,
445,
1410,
506,
2566,
628,
279,
6835,
1492,
11199,
225,
10802,
24179,
4271,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
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,
18305,
12,
2867,
358,
13,
3903,
2176,
1135,
261,
11890,
3844,
20,
16,
2254,
3844,
21,
13,
288,
203,
3639,
2254,
11013,
20,
273,
467,
654,
39,
3462,
24899,
2316,
20,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
36... |
pragma solidity ^0.6.0;
// import "@openzeppelin/contracts/math/SafeMath.sol";
// import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "../vendered/@openzeppelin/contracts-ethereum-package-3.0.0/contracts/math/SafeMath.sol";
contract BasicMetaTransaction {
using SafeMath for uint2... | uint256 public chainId; function setChainID public { reuire(chainId == 0); chainId = } | contract BasicMetaTransaction {
using SafeMath for uint256;
event MetaTransactionExecuted(
address userAddress,
address payable relayerAddress,
bytes functionSignature
);
mapping(address => uint256) private nonces;
import "../vendered/@openzeppelin/contracts-ethereum-package-3... | 938,025 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
1071,
2687,
548,
31,
445,
444,
3893,
734,
1071,
288,
282,
283,
89,
577,
12,
5639,
548,
422,
374,
1769,
282,
2687,
548,
273,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
7651,
2781,
3342,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
6565,
3342,
23839,
12,
203,
3639,
1758,
729,
1887,
16,
203,
3639,
1758,
8843,
429,
1279,
1773,
1887,
16,
203,
3639,
1731,
445,
5... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.11;
pragma experimental ABIEncoderV2;
import "deps/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "deps/@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "deps/@openzeppelin/contracts-upgradeable/utils/AddressU... | The supply only changes at rebase
| lastDiggTotalSupply = tokenList[0].token.totalSupply(); | 1,039,431 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
14467,
1338,
3478,
622,
283,
1969,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1142,
4907,
75,
5269,
3088,
1283,
273,
1147,
682,
63,
20,
8009,
2316,
18,
4963,
3088,
1283,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2021-12-10
*/
// TG: https://t.me/icuminpeasETH
pragma solidity ^0.8.7;
interface IUniswapV2Router02 {
//function swapExactTokensForETHSupportingFeeOnTransferTokens(
function swapExactTokensForETH(
uint256 amountIn,
uint256 amountOutMin,
... | File: contracts/I CUM IN PEAS.sol | contract ICUMINPEAS is TradableErc20 {
address _owner;
address _withdrawAddress =
address(0xA93E6EfC1E99bf3178EBd9BEe041b0DBa72e7c9d);
function getFeePercent() internal virtual returns (uint256);
function getMaxContractBalancePercent() internal virtual returns (uint256);
function _withdra... | 10,606,735 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
45,
385,
2799,
2120,
16628,
3033,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16351,
26899,
2799,
706,
1423,
3033,
353,
2197,
17394,
41,
1310,
3462,
288,
203,
565,
1758,
389,
8443,
31,
203,
565,
1758,
389,
1918,
9446,
1887,
273,
203,
3639,
1758,
12,
20,
21703,
11180,
41,
26,
41,
74,
39,
21,
41,
2733,
171... |
./partial_match/1/0xe90065434d0D0D0bB5D69e9cf48d44a812504590/sources/CentaurStakingV2.sol | Events CentaurStakingV1 Contract CNTR Token Contract & Funding Address Reward Percentage Rewards Release Interval Stake Lock Constants Contract status | contract CentaurStakingV2 is Ownable {
using SafeMath for uint;
event StakingStart(uint256 _timestamp);
event StakingEnd(uint256 _timestamp);
event Deposit(uint256 _timestmap, address indexed _address, uint256 _amount);
event Withdraw(uint256 _timestamp, address indexed _address, uint256 _amount);
event Collect... | 16,197,888 | [
1,
4625,
348,
7953,
560,
30,
225,
9043,
22321,
28659,
510,
6159,
58,
21,
13456,
385,
16158,
3155,
13456,
473,
478,
14351,
5267,
534,
359,
1060,
21198,
410,
534,
359,
14727,
10819,
10803,
934,
911,
3488,
5245,
13456,
1267,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
22321,
28659,
510,
6159,
58,
22,
353,
14223,
6914,
288,
203,
203,
202,
9940,
14060,
10477,
364,
2254,
31,
203,
203,
202,
2575,
934,
6159,
1685,
12,
11890,
5034,
389,
5508,
1769,
203,
202,
2575,
934,
6159,
1638,
12,
11890,
... |
pragma solidity ^0.4.18;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal pure returns (uint) {
// assert(b > 0); // Solid... | FIELDS Initialization contract grants msg.sender all of existing tokens. | contract MACHToken is VestedToken {
string public name = "Machdary";
string public symbol = "MACH";
uint public decimals = 18;
uint public INITIAL_SUPPLY = 990000000 * 1 ether;
function MACHToken() public {
totalSupply = INITIAL_SUPPLY;
address toAddress = msg.sender;
balances[toAddress] = tot... | 2,091,984 | [
1,
4625,
348,
7953,
560,
30,
4011,
11608,
26586,
6835,
25638,
1234,
18,
15330,
777,
434,
2062,
2430,
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,
... | [
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,
16351,
490,
18133,
1345,
353,
776,
3149,
1345,
288,
203,
225,
533,
1071,
508,
273,
315,
49,
497,
72,
814,
14432,
203,
225,
533,
1071,
3273,
273,
315,
5535,
1792,
14432,
203,
225,
2254,
1071,
15105,
273,
6549,
31,
203,
225,
2254,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.
... | inject NONSTANDARD NAMING
| function _WRITECHECKPOINT898(address delegatee, uint32 nCheckpoints, uint oldVotes, uint newVotes) internal { | 12,787,872 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11677,
10687,
8941,
6675,
28,
12,
2867,
7152,
73,
16,
2254,
1578,
290,
1564,
4139,
16,
2254,
1592,
29637,
16,
2254,
394,
29637,
13,
2713,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.23;
import "./DefaultUserAccount.sol";
contract UserAccountTest {
string constant SUCCESS = "success";
string longString = "longString";
string testServiceFunctionSig = "serviceInvocation(address,uint256,bytes32)";
/**
* @dev Tests the DefaultUserAccount call forwarding logic
*/
funct... | * @dev Contract providing typical service functions to use as target for call forwarding./ | contract TestService {
address public currentEntity;
uint public currentState;
bytes32 public currentKey;
address public lastCaller;
string public storedString = "Hello World";
function serviceInvocation(address _entity, uint _newState, bytes32 _key) public returns (bytes32) {
currentEntity = _entity;
curr... | 7,314,209 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
17721,
24917,
1156,
4186,
358,
999,
487,
1018,
364,
745,
20635,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7766,
1179,
288,
203,
203,
202,
2867,
1071,
783,
1943,
31,
203,
202,
11890,
1071,
17773,
31,
203,
202,
3890,
1578,
1071,
19447,
31,
203,
202,
2867,
1071,
1142,
11095,
31,
203,
202,
1080,
1071,
4041,
780,
273,
315,
18601,
2... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.7.6;
pragma abicoder v2;
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {EnumerableSet} from "@openzeppelin/contracts/utils/EnumerableSet.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {OwnableUp... | @notice Lock ERC20 tokens in the vault access control: called by delegate with signed permission from owner state machine: anytime state scope: - insert or update _locks - increase _nonce token transfer: none @param token Address of token being locked @param amount Amount of tokens being locked @param permission Permi... | function lock(
address token,
uint256 amount,
bytes calldata permission
)
external
override
onlyValidSignature(getPermissionHash(LOCK_TYPEHASH, msg.sender, token, amount, _nonce), permission)
{
bytes32 lockID = calculateLockID(msg.sender, token);
... | 6,862,012 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3488,
4232,
39,
3462,
2430,
316,
326,
9229,
2006,
3325,
30,
2566,
635,
7152,
598,
6726,
4132,
628,
3410,
919,
5228,
30,
1281,
957,
919,
2146,
30,
300,
2243,
578,
1089,
389,
23581,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2176,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
745,
892,
4132,
203,
565,
262,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1338,
1556,
5374,
12,
588,
5041,
2310,
12,
6589,
67,
2... |
./partial_match/1/0xCc982d33525EBFB14B9c504428d02082043817D7/sources/contracts/ERC1155Bridges/L1ERC1155Bridge.sol | /** * @inheritdoc iL1ERC1155Bridge */ | function depositBatchTo(
address _l1Contract,
address _to,
uint256[] memory _tokenIds,
uint256[] memory _amounts,
bytes memory _data,
uint32 _l2Gas
)
external
virtual
override
nonReentrant()
whenNotPaused()
{
_in... | 9,296,492 | [
1,
4625,
348,
7953,
560,
30,
282,
1783,
225,
380,
632,
10093,
277,
48,
21,
654,
39,
2499,
2539,
13691,
225,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
443,
1724,
4497,
774,
12,
203,
3639,
1758,
389,
80,
21,
8924,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
2316,
2673,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
8949,
87,
16,
203,
3639,... |
./full_match/3/0x8d309b2e0E1220b9a805CA9B6551B06ee9aF475D/sources/browser/contracts/2_Owner.sol | адрес последнего инвестора | address payable public last_investor;
| 8,205,492 | [
1,
4625,
348,
7953,
560,
30,
225,
145,
113,
145,
117,
146,
227,
145,
118,
146,
228,
225,
145,
128,
145,
127,
146,
228,
145,
124,
145,
118,
145,
117,
145,
126,
145,
118,
145,
116,
145,
127,
225,
145,
121,
145,
126,
145,
115,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
1758,
8843,
429,
1071,
1142,
67,
5768,
395,
280,
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,
-10... |
./full_match/1001/0xCe12C887FAe83A5f94f6cF3C8d4C1ceE8B1C7786/sources/contracts/libraries/DexLibrary.sol | fetches and sorts the reserves for a pair | function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
(address token0,) = sortTokens(tokenA, tokenB);
(uint reserve0, uint reserve1,) = IDexPair(pairFor(factory, tokenA, tokenB)).getReserves();
(reserveA, reserveB) = toke... | 16,364,046 | [
1,
4625,
348,
7953,
560,
30,
225,
17675,
471,
18524,
326,
400,
264,
3324,
364,
279,
3082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
31792,
264,
3324,
12,
2867,
3272,
16,
1758,
1147,
37,
16,
1758,
1147,
38,
13,
2713,
1476,
1135,
261,
11890,
20501,
37,
16,
2254,
20501,
38,
13,
288,
203,
3639,
261,
2867,
1147,
20,
16,
13,
273,
1524,
5157,
12,
2316,
... |
./full_match/80001/0x9310e3ff6D3Fb88AdFD2910ecffDFc5Cf220209D/sources/contracts/modules/Map.sol | ---- internals ---- | function rebuild() public onlyInternals {
uint8 depth = 0;
for (uint8 x = 0; x < CFG_MAP_MAX_SIZE; x++) {
depth = x;
for (uint8 y = 0; y < CFG_MAP_MAX_SIZE; y++) {
uint8 depthY;
for (uint8 z = 0; z < CFG_MAP_MAX_SIZE; z++) {
... | 9,503,436 | [
1,
4625,
348,
7953,
560,
30,
225,
27927,
8216,
1031,
27927,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13419,
1435,
1071,
1338,
21843,
1031,
288,
203,
3639,
2254,
28,
3598,
273,
374,
31,
203,
203,
3639,
364,
261,
11890,
28,
619,
273,
374,
31,
619,
411,
7577,
67,
8352,
67,
6694,
67,
4574,
31,
619,
27245,
288,
203,
5411,... |
pragma solidity ^0.4.21;
// File: zeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint... | * @title Smart Contract which defines the token managed by the Pentacore Hedge Fund. @author Jordan Stojanovski/ Unlike the common practice to put the whitelist checks in the crowdsale, the PentacoreToken does these tests itself. This is mandated by legal issues, as follows: - The exchange can be anywhere and it shoul... | contract PentacoreToken is StandardToken {
using SafeMath for uint256;
string public name = 'PentacoreToken';
string public symbol = 'PENT';
uint256 public constant million = 1000000;
bool public isPaused = true;
mapping(address => bool) public whitelist;
bool public isFreeTransferAllowed = false;
... | 13,828,666 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
19656,
13456,
1492,
11164,
326,
1147,
7016,
635,
326,
453,
319,
1077,
479,
670,
7126,
478,
1074,
18,
632,
4161,
804,
517,
304,
20296,
78,
304,
1527,
7771,
77,
19,
25448,
326,
2975,
27164,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
453,
319,
1077,
479,
1345,
353,
8263,
1345,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
533,
1071,
508,
273,
296,
52,
319,
1077,
479,
1345,
13506,
203,
225,
533,
1071,
3273,
273,
296,
52,
2222,
... |
./partial_match/1/0x45806417D10159B7BAce7387fb554110c0d62d67/sources/ValueLiquidPair.sol | called once by the factory at time of deployment sufficient check | function initialize(
address _token0,
address _token1,
uint32 _tokenWeight0,
uint32 _swapFee
) external {
require(msg.sender == factory, "VLP: FORBIDDEN");
string memory _symbol0 = IERC20(_token0).symbol();
string memory _symbol1 = IERC20(_token1).symbol()... | 3,948,577 | [
1,
4625,
348,
7953,
560,
30,
225,
2566,
3647,
635,
326,
3272,
622,
813,
434,
6314,
18662,
866,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
203,
3639,
1758,
389,
2316,
20,
16,
203,
3639,
1758,
389,
2316,
21,
16,
203,
3639,
2254,
1578,
389,
2316,
6544,
20,
16,
203,
3639,
2254,
1578,
389,
22270,
14667,
203,
565,
262,
3903,
288,
203,
3639,
2583,
12... |
./full_match/43114/0x78F48e2e68A7C09E22fBa362C0FccA51b4772683/sources/IglooMasterV7.10_Strategies.sol | owned by an IglooStrategy contractscaled up by ACC_PEFI_PRECISIONpending reward = (user.amount * rewardTokensPerShare) / ACC_PEFI_PRECISION - user.rewardDebt | contract IglooStrategyStorage is Ownable {
uint256 public rewardTokensPerShare;
uint256 internal constant ACC_PEFI_PRECISION = 1e18;
mapping(address => uint256) public rewardDebt;
function increaseRewardDebt(address user, uint256 shareAmount) external onlyOwner {
rewardDebt[user] += (rewardTok... | 4,505,856 | [
1,
4625,
348,
7953,
560,
30,
16199,
635,
392,
467,
75,
383,
83,
4525,
20092,
12825,
731,
635,
18816,
67,
1423,
1653,
67,
3670,
26913,
9561,
19890,
273,
261,
1355,
18,
8949,
380,
19890,
5157,
2173,
9535,
13,
342,
18816,
67,
1423,
165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
16351,
467,
75,
383,
83,
4525,
3245,
353,
14223,
6914,
288,
203,
565,
2254,
5034,
1071,
19890,
5157,
2173,
9535,
31,
203,
565,
2254,
5034,
2713,
5381,
18816,
67,
1423,
1653,
67,
3670,
26913,
273,
404,
73,
2643,
31,
203,
203,
565,... |
./full_match/1/0xE7B4451e568CFeCa708aD17dFE0918D0905dc811/sources/contracts/redeemers/IRedeemer.sol | For some assets, closing a portion directly to the user is not possible Or some assets only allow the claiming all rewards to the owner (you can't claim a portion of the rewards) In this case these operations have to happen first, returning those assets to the vault And then being distributed to the withdrawer during ... | interface IRedeemer is IRedeemerEvents {
function preWithdraw(
uint tokenId,
address asset,
address withdrawer,
uint portion
) external payable;
function withdraw(
uint tokenId,
address asset,
address withdrawer,
uint portion
) external pa... | 3,152,315 | [
1,
4625,
348,
7953,
560,
30,
225,
2457,
2690,
7176,
16,
7647,
279,
14769,
5122,
358,
326,
729,
353,
486,
3323,
2965,
2690,
7176,
1338,
1699,
326,
7516,
310,
777,
283,
6397,
358,
326,
3410,
261,
19940,
848,
1404,
7516,
279,
14769,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
426,
24903,
264,
353,
467,
426,
24903,
264,
3783,
288,
203,
565,
445,
675,
1190,
9446,
12,
203,
3639,
2254,
1147,
548,
16,
203,
3639,
1758,
3310,
16,
203,
3639,
1758,
598,
9446,
264,
16,
203,
3639,
2254,
14769,
203,
... |
./full_match/44787/0x3966196588981E29e85f5EDCc31ddc8754cD5b20/sources/Users/monk/celo/clabs/contracts/common/MultiSig.sol | Public functions/ @dev Contract constructor sets initial owners and required number of confirmations. @param _owners List of initial owners. @param _required Number of required confirmations for external transactions. @param _internalRequired Number of required confirmations for internal transactions. | function initialize(address[] calldata _owners, uint256 _required, uint256 _internalRequired)
external
initializer
validRequirement(_owners.length, _required)
validRequirement(_owners.length, _internalRequired)
{
for (uint256 i = 0; i < _owners.length; i = i.add(1)) {
require(
!isO... | 13,255,089 | [
1,
4625,
348,
7953,
560,
30,
225,
7224,
4186,
19,
632,
5206,
13456,
3885,
1678,
2172,
25937,
471,
1931,
1300,
434,
6932,
1012,
18,
632,
891,
389,
995,
414,
987,
434,
2172,
25937,
18,
632,
891,
389,
4718,
3588,
434,
1931,
6932,
1012,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
2867,
8526,
745,
892,
389,
995,
414,
16,
2254,
5034,
389,
4718,
16,
2254,
5034,
389,
7236,
3705,
13,
203,
565,
3903,
203,
565,
12562,
203,
565,
923,
18599,
24899,
995,
414,
18,
2469,
16,
389,
4718,
13,
203,
... |
pragma solidity >=0.5.0 <0.9.0;
contract Projects {
uint256 public projectCount = 0;
mapping(uint256 => Project) public project;
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner() {
// only the owner of the contract can call those methods
... | method should be called when the project is considered finished and it sets it's state to finished | function finishProject(uint256 _id) public {
require(
project[_id].programer == msg.sender,
"Only assigned programmer may finish project"
);
require(project[_id].state != 0, "The project is not taken");
require(project[_id].state != 2, "The project is already ... | 1,791,324 | [
1,
4625,
348,
7953,
560,
30,
225,
707,
1410,
506,
225,
2566,
1347,
326,
1984,
353,
7399,
6708,
471,
518,
1678,
518,
1807,
919,
358,
6708,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4076,
4109,
12,
11890,
5034,
389,
350,
13,
1071,
288,
203,
3639,
2583,
12,
203,
5411,
1984,
63,
67,
350,
8009,
12890,
264,
422,
1234,
18,
15330,
16,
203,
5411,
315,
3386,
6958,
5402,
6592,
2026,
4076,
1984,
6,
203,
36... |
./partial_match/41/0x44DCDe1bEDBB42B0119c22DeF19925fa39965d4c/sources/project_/contracts/cp06/BikeChain_flat.sol | / Keeps track of balances for address that are included in receiving reward. Keeps track of balances for address that are excluded from receiving reward. Keeps track of which address are excluded from fee. Keeps track of which address are excluded from reward. An array of addresses that are excluded from reward. ERC20 ... | contract ExtendedReflections is Context, IERC20, Ownable {
mapping (address => uint256) private _reflectionBalances;
mapping (address => uint256) private _tokenBalances;
mapping (address => bool) private _isExcludedFromFee;
mapping (address => bool) private _isExcludedFromReward;
address[] ... | 3,504,158 | [
1,
4625,
348,
7953,
560,
30,
342,
10498,
87,
3298,
434,
324,
26488,
364,
1758,
716,
854,
5849,
316,
15847,
19890,
18,
10498,
87,
3298,
434,
324,
26488,
364,
1758,
716,
854,
8845,
628,
15847,
19890,
18,
10498,
87,
3298,
434,
1492,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
14094,
9801,
87,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
26606,
38,
26488,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
3... |
pragma solidity 0.7.3;
import "./IdleFinanceStrategy.sol";
/**
* Adds the mainnet addresses to the PickleStrategy3Pool
*/
contract IdleStrategyDAIMainnet is IdleFinanceStrategy {
// token addresses
address constant public __weth = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
address constant public __da... | should only be called by controller | interface IStrategy {
function unsalvagableTokens(address tokens) external view returns (bool);
function underlying() external view returns (address);
function vault() external view returns (address);
function withdrawAllToVault() external;
function withdrawToVault(uint256 amount) external;
... | 13,544,846 | [
1,
4625,
348,
7953,
560,
30,
225,
1410,
1338,
506,
2566,
635,
2596,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
467,
4525,
288,
203,
203,
565,
445,
16804,
287,
90,
346,
429,
5157,
12,
2867,
2430,
13,
3903,
1476,
1135,
261,
6430,
1769,
203,
203,
565,
445,
6808,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
565,
445,
9229,
1435,
3903,
... |
/*
Introducing "STAKE THEM ALL" Version 1.0
"STAKE THEM ALL" is playable @ https://stakethemall.io (Ethereum Edition) and https://trx.stakethemall.io (TRON Edition)
About the game :
"STAKE THEM ALL" IS A FUN AND REWARDING PHYSICS GAME RUNNING ON THE BLOCKCHAIN
HAVE FUN WHILE PARTICIPATING TO THE HDX20 TOKEN ... | [0] = mode1 percentage treasure
| uint32[4] extraData; | 15,787,525 | [
1,
4625,
348,
7953,
560,
30,
306,
20,
65,
273,
1965,
21,
11622,
565,
9787,
3619,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
282,
2254,
1578,
63,
24,
65,
1082,
202,
7763,
751,
31,
1082,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at BscScan.com on 2021-04-29
*/
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While the... | * @dev Returns the addition of two unsigned integers, reverting on overflow. Counterpart to Solidity's `+` operator. Requirements: - Addition cannot overflow./ | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| 10,230 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
2719,
434,
2795,
9088,
12321,
16,
15226,
310,
603,
9391,
18,
9354,
2680,
358,
348,
7953,
560,
1807,
1375,
15,
68,
3726,
18,
29076,
30,
300,
1436,
608,
2780,
9391,
18,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
276,
273,
279,
397,
324,
31,
203,
565,
2583,
12,
71,
1545,
279,
16,
315,
9890,
10477,
30,
2719,
... |
./partial_match/1/0x88825Ffbced3f9E2777334552bB6605D833F1A3D/sources/VeriFame.sol | @dev internal function to @param from user address where token belongs @param to user address @param tokenId number of tokenId | function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
public payable
override
onlyAllowedOperator(from)
{
super.safeTransferFrom(from, to, tokenId, data);
}
| 4,008,876 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2713,
445,
358,
632,
891,
628,
225,
729,
1758,
1625,
1147,
11081,
632,
891,
358,
225,
729,
1758,
632,
891,
1147,
548,
225,
1300,
434,
1147,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
2868,
445,
4183,
5912,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
16,
1731,
3778,
501,
13,
203,
2868,
1071,
8843,
429,
203,
2868,
3849,
203,
2868,
1338,
5042,
5592,
12,
2080,
13,
203,
2868,
288,
203,
2868,
2... |
pragma solidity ^0.6.6;
contract Puzzle{
address payable public owner;
bool public locked;
uint public reward;
bytes32 public diff;
bytes public solution;
constructor() payable public{
owner = msg.sender;
reward = msg.value;
locked = false;
diff = bytes32(uint256(11111)); //pre-defined difficulty
}
re... | main code, runs at every invocation
| receive () payable external { | 5,345,043 | [
1,
4625,
348,
7953,
560,
30,
2774,
981,
16,
7597,
622,
3614,
9495,
202,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
202,
18149,
1832,
8843,
429,
3903,
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,
-100,
-100,
-100,... |
./partial_match/1/0xb36C690fe3FD6bCecA5be12D383ccB43220f1e52/sources/BREAD.sol | Anti-bot and anti-whale mappings and variables exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract BREAD is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public devWallet;
uint256 public maxTransactio... | 3,667,073 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
869,
14,
4259,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
6949,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,
203,
... |
./full_match/137/0x2A29dB56F0e7e9Dd6f8e1e16EE69D1F48D6A43D9/sources/contracts/MasterChef.sol | Add a new lp to the pool. Can only be called by the owner. | function add(
uint256 _allocPoint,
IBEP20 _lpToken,
uint16 _depositFeeBP,
bool _withUpdate
) public onlyOwner nonDuplicated(_lpToken) {
require(_depositFeeBP <= 400, "add: invalid deposit fee basis points");
if (_withUpdate) {
massUpdatePools();
... | 4,722,211 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
279,
394,
12423,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
203,
3639,
2254,
5034,
389,
9853,
2148,
16,
203,
3639,
467,
5948,
52,
3462,
389,
9953,
1345,
16,
203,
3639,
2254,
2313,
389,
323,
1724,
14667,
30573,
16,
203,
3639,
1426,
389,
1918,
1891,
203,
565,
262,
1071,
... |
./full_match/4/0x21f44849d9490749c9EC9b49Fba383Bc4e5240d9/sources/pugzilla1.sol | subtract from sender update amount in recipient address reflect fee add amount in charity and marketing address burn transacton % | function _transferStandard(address sender_address, address recipient_address, uint256 tAmount) private {
(uint256 tTransferAmount, uint256 tFee, uint256 charity_amount, uint256 marketing_amount, uint256 burn_amount) = _getTValues(tAmount);
uint256 currentRate = _getRate();
(uint256 rAmount,... | 734,940 | [
1,
4625,
348,
7953,
560,
30,
225,
10418,
628,
5793,
1089,
3844,
316,
8027,
1758,
3037,
14036,
527,
3844,
316,
1149,
560,
471,
13667,
310,
1758,
18305,
906,
621,
265,
738,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
8336,
12,
2867,
5793,
67,
2867,
16,
1758,
8027,
67,
2867,
16,
2254,
5034,
268,
6275,
13,
3238,
288,
203,
3639,
261,
11890,
5034,
268,
5912,
6275,
16,
2254,
5034,
268,
14667,
16,
2254,
5034,
1149,
560,
67,
... |
./partial_match/1/0xbB67cF157beE9c5208CC9E6A18480e647E25EEaB/sources/MoneyMaker.sol | AST tokens created per block. | uint256 public ASTPerBlock;
| 4,383,658 | [
1,
4625,
348,
7953,
560,
30,
225,
9183,
2430,
2522,
1534,
1203,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
9183,
2173,
1768,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "../../abstract/MasterAware.sol";
import "../../interfaces/IClaimsReward.sol"... | * @dev Verifies cover details signed off chain. @param from address of funder. @param scAddress Smart Contract Address/ | function verifyCoverDetails(
address payable from,
address scAddress,
bytes4 coverCurr,
uint[] memory coverDetails,
uint16 coverPeriod,
uint8 _v,
bytes32 _r,
bytes32 _s
) public onlyInternal {
_verifyCoverDetails(
from,
scAddress,
coverCurr,
coverDetails,
... | 386,771 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6160,
5032,
5590,
3189,
6726,
3397,
2687,
18,
632,
891,
628,
1758,
434,
284,
9341,
18,
632,
891,
888,
1887,
19656,
13456,
5267,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3929,
8084,
3790,
12,
203,
565,
1758,
8843,
429,
628,
16,
203,
565,
1758,
888,
1887,
16,
203,
565,
1731,
24,
5590,
20143,
16,
203,
565,
2254,
8526,
3778,
5590,
3790,
16,
203,
565,
2254,
2313,
5590,
5027,
16,
203,
565,... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;
pragma abicoder v2;
import "../../common/implementation/FixedPoint.sol";
// Simple contract used to withdraw liquidations using a DSProxy from legacy contracts (1.2.2 and below).
contract LiquidationWithdrawer {
function withdrawLiquidation(
... | GovernorTest exposes internal methods in the Governor for testing. | contract GovernorTest is Governor {
function addPrefix(
bytes32 input,
bytes32 prefix,
uint256 prefixLength
pragma solidity ^0.8.0;
constructor(address _timerAddress) Governor(address(0), 0, _timerAddress) {}
) external pure returns (bytes32) {
return _addPrefix(input, prefi... | 272,133 | [
1,
4625,
348,
7953,
560,
30,
225,
611,
1643,
29561,
4709,
431,
10522,
2713,
2590,
316,
326,
611,
1643,
29561,
364,
7769,
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,
... | [
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,
16351,
611,
1643,
29561,
4709,
353,
611,
1643,
29561,
288,
203,
203,
565,
445,
527,
2244,
12,
203,
3639,
1731,
1578,
810,
16,
203,
3639,
1731,
1578,
1633,
16,
203,
3639,
2254,
5034,
31106,
203,
683,
9454,
18035,
560,
3602,
20,
18... |
./full_match/80001/0xe04b01412500CF0515A29D389A4AcB84A944f675/sources/contracts/Tan.sol | * @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements - `to` cannot be the zero address./ | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "TAN: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
... | 5,614,955 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
471,
22698,
2182,
358,
1375,
4631,
9191,
21006,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
2080,
68,
444,
358,
326,
3634,
1758,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
56,
1258,
30,
312,
474,
358,
326,
3634,
1758,
8863,
203,
203,
3639,
389,
5771,
1345,
... |
./full_match/80001/0x2085aC8a9De1684D9Da5fe5d40Fb2F388965B6e6/sources/contracts/RoboNounsVRGDA.sol | @notice Time of sale of the first RoboNoun, used to calculate VRGDA price @notice How often the VRGDA price will update to reflect VRGDA pricing rules @notice the last block at which the last roboNoun was sold @notice The minimum price accepted in an auction @notice The Nouns ERC721 token contract @notice Target price... | ) {
decayConstant = wadLn(1e18 - _priceDecayPercent);
require(decayConstant < 0, "NON_NEGATIVE_DECAY_CONSTANT");
roboNounsToken = RoboNounsToken(_token);
startTime = block.timestamp;
reservePrice = _reservePrice;
targetPrice = _targetPrice;
perTimeUnit = _per... | 873,472 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2647,
434,
272,
5349,
434,
326,
1122,
19686,
83,
50,
465,
16,
1399,
358,
4604,
776,
19380,
9793,
6205,
632,
20392,
9017,
16337,
326,
776,
19380,
9793,
6205,
903,
1089,
358,
3037,
776,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
288,
203,
3639,
22286,
6902,
273,
341,
361,
13780,
12,
21,
73,
2643,
300,
389,
8694,
1799,
528,
8410,
1769,
203,
3639,
2583,
12,
26039,
6902,
411,
374,
16,
315,
3993,
67,
5407,
22421,
67,
1639,
3587,
61,
67,
25878,
88... |
./full_match/1/0x1e3778Dd6dBfDc1C5B89f95F7C098B21e80eC4FA/sources/contracts/VICToken.sol | * @dev Transfers are optionally transfer taxed. If `from` or `to` is tax exempt, no tax is applied. The transfer tax rate cannot exceed the maximum tax rate. If neither `from` nor `to` is tax exempt, the transfer is subject to a transfer tax, which is calculated as `amount` multiplied by `transferTaxRate` and divided b... | function _transfer(address from, address to, uint256 amount) internal virtual override {
uint256 taxAmount;
TaxStatus fromStatus = status[from];
TaxStatus toStatus = status[to];
if (fromStatus != TaxStatus.EXEMPT && toStatus != TaxStatus.EXEMPT) {
if (fromStatus == TaxSt... | 9,821,577 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
854,
8771,
7412,
5320,
329,
18,
971,
1375,
2080,
68,
578,
1375,
869,
68,
353,
5320,
431,
5744,
16,
1158,
5320,
353,
6754,
18,
1021,
7412,
5320,
4993,
2780,
9943,
326,
4207,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
5024,
3849,
288,
203,
3639,
2254,
5034,
5320,
6275,
31,
203,
3639,
18240,
1482,
628,
1482,
273,
1267,
63,
2080,
15533,
203,
3639,
18240,
1482,
35... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol";
import "@openzepp... | * Mint function which initializes the pool position Must be called before any liquidity can be deposited/ | function mintInitial(uint256 amount0, uint256 amount1)
external
onlyOwnerOrManager
{
require(tokenId == 0);
require(amount0 > 0 || amount1 > 0);
checkTwap();
if (amount0 > 0) {
token0.safeTransferFrom(msg.sender, address(this), amount0);
}
... | 11,924,296 | [
1,
4625,
348,
7953,
560,
30,
380,
490,
474,
445,
1492,
11643,
326,
2845,
1754,
6753,
506,
2566,
1865,
1281,
4501,
372,
24237,
848,
506,
443,
1724,
329,
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,
312,
474,
4435,
12,
11890,
5034,
3844,
20,
16,
2254,
5034,
3844,
21,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
1162,
1318,
203,
565,
288,
203,
3639,
2583,
12,
2316,
548,
422,
374,
1769,
203,
3639,
2583,
12,
8949,
20... |
./full_match/4/0x23fAcd05C010AbAdF678c158EA26759661Fa3242/sources/browser/hook.sol | this applies only on payoutType 4 to do custom distribution and custom things also can be done
| mapping(uint256 => address) public externalContract; | 655,144 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
10294,
1338,
603,
293,
2012,
559,
1059,
358,
741,
1679,
7006,
471,
1679,
9198,
2546,
848,
506,
2731,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
1758,
13,
1071,
3903,
8924,
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,
-1... |
/*
Copyright 2017 ZeroEx Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | @title Token Registry - Stores metadata associated with ERC20 tokens. See ERC22 https://github.com/ethereum/EIPs/issues/22 @author Amir Bandeali - <amir@0xProject.com>, Will Warren - <will@0xProject.com> | contract TokenRegistry is Ownable {
event LogAddToken(
address token,
string name,
string symbol,
string url,
uint8 decimals,
bytes32 ipfsHash,
bytes32 swarmHash
);
event LogRemoveToken(
address token,
string name,
string symb... | 2,464,247 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
3155,
5438,
300,
20296,
455,
1982,
3627,
598,
4232,
39,
3462,
2430,
18,
2164,
4232,
39,
3787,
2333,
2207,
6662,
18,
832,
19,
546,
822,
379,
19,
41,
18246,
19,
9618,
19,
3787,
632,
4161,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3155,
4243,
353,
14223,
6914,
288,
203,
203,
565,
871,
1827,
986,
1345,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
533,
508,
16,
203,
3639,
533,
3273,
16,
203,
3639,
533,
880,
16,
203,
3639,
2254,
28,
15105,
16,
203,
3639... |
./partial_match/1/0x73dF03B5436C84Cf9d5A758fb756928DCEAf19d7/sources/ExchangeIssuanceModule.sol | * Calculates required tokens to receive, executes orders, and checks post-exchange receive balances. @param _exchangeIssuanceParams A Struct containing exchange issuance metadata @param _orderData Bytes array containing the exchange orders to execute/ Calculate expected receive to... | function executeOrders(
ExchangeIssuanceLibrary.ExchangeIssuanceParams memory _exchangeIssuanceParams,
bytes memory _orderData
)
private
{
uint256[] memory requiredBalances = calculateReceiveTokenBalances(
_exchangeIssuanceParams
);
executeExchang... | 4,492,787 | [
1,
4625,
348,
7953,
560,
30,
380,
26128,
1931,
2430,
358,
6798,
16,
11997,
11077,
16,
471,
4271,
1603,
17,
16641,
6798,
324,
26488,
18,
632,
891,
389,
16641,
7568,
89,
1359,
1370,
2868,
432,
7362,
4191,
7829,
3385,
89,
1359,
1982,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1836,
16528,
12,
203,
3639,
18903,
7568,
89,
1359,
9313,
18,
11688,
7568,
89,
1359,
1370,
3778,
389,
16641,
7568,
89,
1359,
1370,
16,
203,
3639,
1731,
3778,
389,
1019,
751,
203,
565,
262,
203,
3639,
3238,
203,
565,
288,... |
// File: contracts/interfaces/IDelegable.sol
pragma solidity ^0.6.10;
interface IDelegable {
function ADDDELEGATE653(address) external; //inject NONSTANDARD NAMING
function ADDDELEGATEBYSIGNATURE882(address, address, uint, uint8, bytes32, byt... | inject NONSTANDARD NAMING
| function ADDLIQUIDITY157(IPool pool, uint256 daiUsed, uint256 maxFYDai) external returns (uint256) { | 12,707,220 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11689,
2053,
53,
3060,
4107,
27985,
12,
2579,
1371,
2845,
16,
2254,
5034,
5248,
77,
6668,
16,
2254,
5034,
943,
42,
61,
40,
10658,
13,
3903,
1135,
261,
11890,
5034,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x53Dfbe1a54617f9B3289e81E3dA34AB278AfEA9b/sources/contracts/token/CMS.sol | CMS with Governance. | contract CMS is ERC20("CMS", "CMS"), Ownable {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
function burnFrom(address _account, uint256 _amount) public {
uint256 decreasedAllowance = allo... | 5,568,442 | [
1,
4625,
348,
7953,
560,
30,
225,
16621,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
16621,
353,
4232,
39,
3462,
2932,
13802,
3113,
315,
13802,
6,
3631,
14223,
6914,
288,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
81,
474,
24899,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./DSSFToken.sol";
contract DefiQStake {
address internal constant DEV_ADDRESS = 0xAA8404b5982cfe8D3bEe2284Ac3744f466675b88; // Dev Address
address internal constant DAI_TOKEN_ADDRESS = 0xaD6D458402F60fD3Bd25163575031ACDce07538D; // DAI Token Addr... | send Reward Token for owner who is swaped token | function deposit(address _owner, address _sender, uint256 _amount) public {
require(_amount > 0, "The amount can be 0");
dai.transferFrom(_sender, address(this), _amount);
_balances[_owner] += _amount;
uint256 rewardAmount = _amount.div(stakePercent).mul(100);
... | 1,049,138 | [
1,
4625,
348,
7953,
560,
30,
225,
1366,
534,
359,
1060,
3155,
364,
3410,
10354,
353,
1352,
5994,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
443,
1724,
12,
2867,
389,
8443,
16,
1758,
389,
15330,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
315,
1986,
3844,
848,
506,
374,
8863,
203,
540,
203,
3639,
5248,
77,
18,
1386... |
./full_match/1/0x5377c667acc68ea7cc5768D75388d7a97af5492c/sources/contracts/Phase2_LayerTokens.sol | check if token is 1/1 check owner emit event | function emitTransferForOgOneOfOne(uint256 _tokenId) public
{
if(!TokenToIsOgOneOfOneMap[_tokenId]) revert ThisIsNotAnOgOneOfOneToken();
if(msg.sender != ownerOf(_tokenId)) revert YouDontEvenOwnThisOgOneOfOne();
emit Transfer(address(this), msg.sender, _tokenId);
}
| 17,077,081 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
309,
1147,
353,
404,
19,
21,
866,
3410,
3626,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3626,
5912,
1290,
51,
75,
3335,
951,
3335,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
203,
565,
288,
203,
3639,
309,
12,
5,
1345,
774,
2520,
51,
75,
3335,
951,
3335,
863,
63,
67,
2316,
548,
5717,
15226,
1220,
28041,
... |
./full_match/1/0x43c48De17c702E89cc90A43DB7F859074605Cd70/sources/SecuriBlaze.sol | at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch. if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address.");
require(to != address(0), "ERC20: transfer to the zero address.");
if (amount == 0) {
sup... | 4,875,781 | [
1,
4625,
348,
7953,
560,
30,
225,
622,
8037,
309,
326,
7412,
4624,
353,
3696,
16,
3387,
326,
1203,
11267,
364,
5405,
343,
345,
414,
353,
444,
1493,
4982,
8037,
18,
309,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
150... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
7010,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
./partial_match/1/0x5810380CBC47E1F2Ab42Eeaa69A142CC6C419F27/sources/TrueFarm.sol | * @title TrueFarm @notice Deposit liquidity tokens to earn TRU rewards over time @dev Staking pool where tokens are staked for TRU rewards A Distributor contract decides how much TRU a farm can earn over time/ ================ WARNING ================== ===== THIS CONTRACT IS INITIALIZABLE ====== === STORAGE VARIABLES ... | contract TrueFarm is ITrueFarm, Initializable {
using SafeMath for uint256;
uint256 constant PRECISION = 1e30;
IERC20 public override stakingToken;
IERC20 public override trustToken;
ITrueDistributor public override trueDistributor;
string public override name;
uint256 public override tot... | 4,129,948 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1053,
42,
4610,
632,
20392,
4019,
538,
305,
4501,
372,
24237,
2430,
358,
425,
1303,
4235,
57,
283,
6397,
1879,
813,
632,
5206,
934,
6159,
2845,
1625,
2430,
854,
384,
9477,
364,
4235,
57,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1053,
42,
4610,
353,
467,
5510,
42,
4610,
16,
10188,
6934,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
2254,
5034,
5381,
7071,
26913,
273,
404,
73,
5082,
31,
203,
203,
203,
565,
467,
654,
39,
3462,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Web3NFT is ERC721URIStorage, Ownable {
using Counters for Count... | update the your balance | contract Web3NFT is ERC721URIStorage, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
mapping(address => uint256[]) private balance;
pragma solidity ^0.8.4;
constructor() ERC721("Web3 TTT Token", "WEB3T") {}
function updateMyNFTs(uint256 tokenId) public {
... | 12,619,138 | [
1,
4625,
348,
7953,
560,
30,
225,
1089,
326,
3433,
11013,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2999,
23,
50,
4464,
353,
4232,
39,
27,
5340,
3098,
3245,
16,
14223,
6914,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
9354,
87,
18,
4789,
3238,
389,
2316,
2673,
31,
203,
377,
203,
565,
2874,
1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "../base/AbstractStrateg... | Re-invest supply token to obtain more lpToken | uint256 obtainedAssetAmount = IERC20(supplyToken).balanceOf(address(this)) - originalBalance;
| 12,805,704 | [
1,
4625,
348,
7953,
560,
30,
225,
868,
17,
5768,
395,
14467,
1147,
358,
7161,
1898,
12423,
1345,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
12700,
6672,
6275,
273,
467,
654,
39,
3462,
12,
2859,
1283,
1345,
2934,
12296,
951,
12,
2867,
12,
2211,
3719,
300,
2282,
13937,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// File openzeppelin-contracts-upgradable-v4/utils/cryptography/MerkleProofUpgradeable.sol@v4.3.2
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs... | * @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 OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
function __Ownable_init() internal initializer {
__Context_init_unchained();
__Own... | 13,644,549 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10784,
429,
353,
10188,
6934,
16,
1772,
10784,
429,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
203,
3639,
1758,
8808,
2416,
5541,
16,
203,
3639,
1758,
... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | * Check if airline is registered/ | function isAirlineRegistered
(
address _airline
)
external
view
requireIsOperational
returns(bool)
{
for (uint i=0; i < reg... | 7,302,060 | [
1,
4625,
348,
7953,
560,
30,
380,
1377,
2073,
309,
23350,
1369,
353,
4104,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25997,
481,
1369,
10868,
203,
13491,
261,
203,
18701,
1758,
389,
1826,
1369,
203,
13491,
262,
203,
13491,
3903,
203,
13491,
1476,
203,
13491,
2583,
2520,
2988,
287,
203,
13491,
1135,
12,
6430,
13,
203,
565,
288,
203,
540,... |
/**
* @title Governance
* @author Ferit Tunçer - <ferit@cryptolab.net>
* This contract implements the governance mechanism of Kleros Athena release.
* Bug Bounties: This code hasn't undertaken a bug bounty program yet.
*/
pragma solidity ^0.4.24;
import "kleros-interaction/contracts/standard/permission/Arbit... | Necessary when calculating required quorum as it is halved periodically.
| lastTimeQuorumReached = block.timestamp; | 2,486,250 | [
1,
4625,
348,
7953,
560,
30,
225,
423,
4128,
1347,
21046,
1931,
31854,
487,
518,
353,
19514,
2155,
26736,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
31323,
31488,
23646,
273,
1203,
18,
5508,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one... | @dev helper function does all the work of telling other contracts about a cross margin trade | function registerTrade(
address trader,
address inToken,
address outToken,
uint256 inAmount,
uint256 outAmount
) internal {
(uint256 extinguishAmount, uint256 borrowAmount) =
IMarginTrading(crossMarginTrading()).registerTradeAndBorrow(
... | 6,300,015 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4222,
445,
1552,
777,
326,
1440,
434,
9276,
310,
1308,
20092,
2973,
279,
6828,
7333,
18542,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1744,
22583,
12,
203,
3639,
1758,
1284,
765,
16,
203,
3639,
1758,
316,
1345,
16,
203,
3639,
1758,
596,
1345,
16,
203,
3639,
2254,
5034,
316,
6275,
16,
203,
3639,
2254,
5034,
596,
6275,
203,
565,
262,
2713,
288,
203,
3... |
pragma solidity ^0.4.17;
contract Dots {
event Update();
struct Point {
address pointTakenBy; // player who put a point to this position
address territoryBelongsTo; // player who owns this territory
uint areaId;
}
uint currentMove;
address public player1;
address pu... | Check if given coordinates fit within the map. | function isOnMap(int x, int y) internal pure returns (bool) {
return 0 <= x && x < width && 0 <= y && y < height;
}
| 12,917,192 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
864,
5513,
4845,
3470,
326,
852,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
28181,
863,
12,
474,
619,
16,
509,
677,
13,
2713,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
327,
374,
1648,
619,
597,
619,
411,
1835,
597,
374,
1648,
677,
597,
677,
411,
2072,
31,
203,
565,
289,
203,
2,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import { ReentrancyGuard } from "./external/openzeppelin/ReentrancyGuard.sol";
import { StableMath } from "./libraries/StableMath.sol";
import { IERC20 } from "./interfaces/IERC20.sol";
import { Ownable } from "./abstract/Ownable.sol";
import { Lockable } from ... | * @dev Read total number of sale contracts @return number of SaleContracts/ | function getSaleContractsCount() external view returns (uint256) {
return saleContracts.length;
}
| 5,431,703 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2720,
2078,
1300,
434,
272,
5349,
20092,
632,
2463,
1300,
434,
348,
5349,
20723,
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,
445,
1322,
5349,
20723,
1380,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
272,
5349,
20723,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
//
/**
* @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 amou... | * @dev Transfers the ownership of the account to another address. The new owner can be an zero address which means renouncing the ownership. @param _owner New owner address/ | function transferOwnership(address _owner) public {
require(msg.sender == owner, "not owner");
owner = _owner;
}
| 2,315,425 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
326,
23178,
434,
326,
2236,
358,
4042,
1758,
18,
1021,
394,
3410,
848,
506,
392,
3634,
1758,
1492,
4696,
1654,
465,
2822,
326,
23178,
18,
632,
891,
389,
8443,
1166,
3410,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
5460,
12565,
12,
2867,
389,
8443,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
16,
315,
902,
3410,
8863,
203,
3639,
3410,
273,
389,
8443,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.2/contracts/token/ERC20/IERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.2/contracts/token/ERC20/utils/SafeERC20.sol";
import "https:/... | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.timestamp <= pool.lastRewardSecond) {
return;
}
if (currentMint == totalMint) {
return;
}
uint256 lpSupply = pool.totalLp;
if (lpSupply == 0) {... | 12,610,123 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
5508,
1648,
2845,
18,
2722,
17631,
1060,
8211,
13,
288,
203,
... |
./partial_match/1/0x9CE7448986B77C20Ac309a3cBda3f5FC4c0f4A72/sources/WheatFarm.sol | solhint-disable-next-line no-inline-assembly | $WHEAT is the governance token of the protocol, functions include voting on updates to smart contract code, fee model constants and claims assessment.
WHEAT Yield Vault allows users to deposit their WHEAT tokens in the Nexus Mutual ecosystem and earn yield without requiring KYC.
$WHEAT FARM is the yield bearing token... | 15,948,366 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8,
59,
3900,
789,
353,
326,
314,
1643,
82,
1359,
1147,
434,
326,
1771,
16,
4186,
2341,
331,
17128,
603,
4533,
358,
13706,
6835,
981,
16,
14036,
938,
6810,
471,
11955,
14158,
18,
203,
203,
59,
3900,
789,
31666,
17329,
5360,
3677,
... |
./full_match/4/0x38d5620f4c90575A6E7A744A6Ee5F75cabdf34A0/sources/contracts/SFT.sol | * @dev Set right after deployment and verified/ | function setFacesAddress(address facesAddress) onlyOwner public {
require(_facesAddress == address(0), "Already set");
_facesAddress = facesAddress;
}
| 675,475 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
2145,
1839,
6314,
471,
13808,
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,
444,
17268,
1887,
12,
2867,
11058,
1887,
13,
1338,
5541,
1071,
288,
203,
3639,
2583,
24899,
4601,
1887,
422,
1758,
12,
20,
3631,
315,
9430,
444,
8863,
203,
3639,
389,
4601,
1887,
273,
11058,
1887,
31,
203,
565,
289,
203... |
./full_match/28/0xe1d278F46C5Bea82B4427a8ec23F47A40cCEcCE3/sources/contracts/tokens/MojitoToken.sol | * @notice Approve `spender` to transfer up to `amount` from `src` @dev This will overwrite the approval amount for `spender` @param spender The address of the account which may transfer tokens @param rawAmount The number of tokens that are approved (2^256-1 means infinite) @return Whether or not the approval succeeded/ | function approve(address spender, uint rawAmount) external returns (bool) {
uint96 amount;
if (rawAmount == uint(-1)) {
amount = uint96(-1);
amount = safe96(rawAmount, "Moji::approve: amount exceeds 96 bits");
}
allowances[msg.sender][spender] = amount;
... | 16,364,445 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1716,
685,
537,
1375,
87,
1302,
264,
68,
358,
7412,
731,
358,
1375,
8949,
68,
628,
1375,
4816,
68,
632,
5206,
1220,
903,
6156,
326,
23556,
3844,
364,
1375,
87,
1302,
264,
68,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
1831,
6275,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
10525,
3844,
31,
203,
3639,
309,
261,
1899,
6275,
422,
2254,
19236,
21,
3719,
288,
203,
5411,
3844,
273,
2254,
... |
./partial_match/42/0x0e4E1135EB9dE57B48cd5119ca6900cBF2e23BaB/sources/SIGHBoosters.sol | Returns the Address currently approved for the Booster with ID = boosterId | function getApproved(uint256 boosterId) public view override(IERC721,ISIGHBoosters) returns (address) {
require(_exists(boosterId), "BOOSTERS: Non-existent Booster");
return _BoosterApprovals[boosterId];
}
| 3,363,101 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
326,
5267,
4551,
20412,
364,
326,
17980,
29811,
598,
1599,
273,
14994,
264,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
31639,
12,
11890,
5034,
14994,
264,
548,
13,
1071,
1476,
3849,
12,
45,
654,
39,
27,
5340,
16,
45,
2320,
16715,
26653,
414,
13,
1135,
261,
2867,
13,
288,
203,
3639,
2583,
24899,
1808,
12,
25018,
264,
548,
3631,
31... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IER... | * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case./ Counter overflow is impossible as the loop breaks when uint256 i is... | function tokenOfOwnerByIndex(address tokenOwner, uint256 index) public view override returns (uint256) {
require(index < balanceOf(tokenOwner), 'Owner index is out of bounds');
uint256 tokenIdsIdx;
address currOwnershipAddr;
unchecked {
for (uint256 i = 1; i < currentInd... | 14,482,760 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
3572,
25121,
17,
2316,
951,
5541,
21268,
5496,
1220,
855,
445,
353,
531,
12,
4963,
3088,
1283,
2934,
971,
4440,
628,
279,
9004,
6835,
16,
506,
3071,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1147,
951,
5541,
21268,
12,
2867,
1147,
5541,
16,
2254,
5034,
770,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
1615,
411,
11013,
951,
12,
2316,
5541,
3631,
296,
5541,
770,
353,
596,
434,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
import "base64-sol/base64.sol";
import "./constants/Colors.sol";
/// @title Accessory SVG generator
library AccessoryDetail {
/// @dev Accessory N°1 => Classic
function item_1() public pure returns (string memory) {
return ""... | @dev Generate glasses with the given color and opacity | function glasses(
string memory color,
string memory stroke,
string memory opacity
) private pure returns (string memory) {
return
string(
abi.encodePacked(
'<circle fill="none" stroke="#',
stroke,
... | 1,145,547 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6654,
314,
459,
281,
598,
326,
864,
2036,
471,
12636,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
314,
459,
281,
12,
203,
3639,
533,
3778,
2036,
16,
203,
3639,
533,
3778,
11040,
16,
203,
3639,
533,
3778,
12636,
203,
565,
262,
3238,
16618,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
203,
5411,
533,
12,
203,
773... |
/**
*Submitted for verification at Etherscan.io on 2021-11-16
*/
/*
____ __ __ __ _
/ __/__ __ ___ / /_ / / ___ / /_ (_)__ __
_\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
/___/
* Synthetix: ExchangerWithFeeRecAlternatives.sol
*
* Late... | Internal function to aggregate each individual rebate and reclaim entry for a synth Need to sum up all reclaim and rebate amounts for the user and the currency key For each unsettled exchange fetch the entry from storage determine the last round ids for src and dest pairs when period ended or latest if not over given ... | function _settlementOwing(address account, bytes32 currencyKey)
internal
view
returns (
uint reclaimAmount,
uint rebateAmount,
uint numEntries,
ExchangeEntrySettlement[] memory
)
{
numEntries = exchangeState().getLengthOfEnt... | 15,250,137 | [
1,
4625,
348,
7953,
560,
30,
225,
3186,
445,
358,
7047,
1517,
7327,
283,
70,
340,
471,
283,
14784,
1241,
364,
279,
6194,
451,
12324,
358,
2142,
731,
777,
283,
14784,
471,
283,
70,
340,
30980,
364,
326,
729,
471,
326,
5462,
498,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
88,
806,
3494,
310,
12,
2867,
2236,
16,
1731,
1578,
5462,
653,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
2254,
283,
14784,
6275,
16,
203,
5411,
2254,
283,
70,
340,
6275,
16,
203,... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.0;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
... | the case of not initial claim
| if(lastClaimedTime[msg.sender][tokenIds[i]] != 0){ | 13,770,778 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
648,
434,
486,
2172,
7516,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
5411,
309,
12,
2722,
9762,
329,
950,
63,
3576,
18,
15330,
6362,
2316,
2673,
63,
77,
13563,
480,
374,
15329,
225,
2,
-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.4;
library BondingCurveMath {
/// @dev Calculate linear function
/// @param x (uint256): Input
/// @return (uint256): Result
function lin(uint256 x) internal pure returns (uint256) {
return 10 * x;
}
/// @dev Calculate exponential fu... | @dev Calculate linear function @param x (uint256): Input @return (uint256): Result | function lin(uint256 x) internal pure returns (uint256) {
return 10 * x;
}
| 5,535,144 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9029,
9103,
445,
632,
891,
619,
261,
11890,
5034,
4672,
2741,
632,
2463,
261,
11890,
5034,
4672,
3438,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4739,
12,
11890,
5034,
619,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1728,
380,
619,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
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 c)
{
if (a == 0) {
return 0;
}
c... | round timer at infective stage ready time
| uint256 constant private rndInfectiveReadyTime_ = 1 minutes; | 13,039,440 | [
1,
4625,
348,
7953,
560,
30,
225,
3643,
5441,
622,
8286,
386,
688,
6009,
5695,
813,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
5381,
3238,
20391,
13149,
386,
688,
8367,
950,
67,
273,
404,
6824,
31,
4202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/44787/0xB1948a9623856f933Ba654CFa5933A0ac73136E2/sources/contracts/microcredit/MicrocreditImplementation.sol | * @notice Repay a loan @param _loanId Loan ID @param _tokenRepaymentAmount Repayment amount/all repaymentAmount should go to microcredit addressall repaymentAmount should go to revenue addressa part of the repayment should go to microcredit address and the rest should go to the revenue address | function repayLoan(uint256 _loanId, uint256 _tokenRepaymentAmount) external override nonReentrant {
require(_tokenRepaymentAmount > 0, "Microcredit: Invalid amount");
_checkUserLoan(msg.sender, _loanId);
WalletMetadata memory _metadata = _walletMetadata[msg.sender];
User storage _u... | 13,245,371 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
868,
10239,
279,
28183,
632,
891,
389,
383,
304,
548,
3176,
304,
1599,
632,
891,
389,
2316,
426,
9261,
6275,
868,
9261,
3844,
19,
454,
2071,
2955,
6275,
1410,
1960,
358,
6481,
20688,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2071,
528,
1504,
304,
12,
11890,
5034,
389,
383,
304,
548,
16,
2254,
5034,
389,
2316,
426,
9261,
6275,
13,
3903,
3849,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
24899,
2316,
426,
9261,
6275,
405,
374,
16,
315,
13617,
... |
/*
Copyright 2021 Index Coop
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | * OPERATOR ONLY: Calls wrapWithEther on the WrapModule. @param _wrappedToken address of wrapped token @param _underlyingUnits units of weth to wrap @param _integrationName Set Protocol integreation name for the wrap adapter/ | function wrapWithEther(
address _wrappedToken,
uint256 _underlyingUnits,
string calldata _integrationName
)
external
onlyOperator
{
bytes memory data = abi.encodeWithSelector(
wrapModule.wrapWithEther.selector,
setToken,
_wr... | 12,837,939 | [
1,
4625,
348,
7953,
560,
30,
380,
25500,
20747,
30,
23665,
2193,
1190,
41,
1136,
603,
326,
4266,
3120,
18,
632,
891,
389,
18704,
1345,
377,
1758,
434,
5805,
1147,
632,
891,
389,
9341,
6291,
7537,
225,
4971,
434,
341,
546,
358,
2193,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
2193,
1190,
41,
1136,
12,
203,
3639,
1758,
389,
18704,
1345,
16,
203,
3639,
2254,
5034,
389,
9341,
6291,
7537,
16,
203,
3639,
533,
745,
892,
389,
27667,
461,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
5592,
203,
... |
./partial_match/1/0xB1A7f8CB8Ef3A8dF2554Ca2D5F8f2Be9bC43da18/sources/staking.sol | NFT token multiplier
| uint112 nftBoost; | 2,681,149 | [
1,
4625,
348,
7953,
560,
30,
423,
4464,
1147,
15027,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
17666,
290,
1222,
26653,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint... | * @title CryptoSagaCorrectedHeroStats @dev Corrected hero stats is needed to fix the bug in hero stats./ The hero contract. @dev Constructor. | contract CryptoSagaCorrectedHeroStats {
CryptoSagaHero private heroContract;
function CryptoSagaCorrectedHeroStats(address _heroContractAddress)
public
{
heroContract = CryptoSagaHero(_heroContractAddress);
}
function getCorrectedStats(uint256 _tokenId)
external view
returns (uint32 current... | 1,143,318 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
15629,
55,
346,
69,
16147,
329,
44,
2439,
4195,
632,
5206,
30626,
329,
366,
2439,
3177,
353,
3577,
358,
2917,
326,
7934,
316,
366,
2439,
3177,
18,
19,
1021,
366,
2439,
6835,
18,
632,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
15629,
55,
346,
69,
16147,
329,
44,
2439,
4195,
288,
203,
203,
225,
15629,
55,
346,
69,
44,
2439,
3238,
366,
2439,
8924,
31,
203,
203,
225,
445,
15629,
55,
346,
69,
16147,
329,
44,
2439,
4195,
12,
2867,
389,
1614,
83,
... |
./full_match/5/0x6F33c38298a1D50fdae35af410Bba2D6eF1CFead/sources/src/interfaces/ILockedRevenueDistributionToken.sol | * @notice Emitted when an account cancels any existing withdrawal requests. @param pos_ Index/position of the withdrawal request cancelled./ | event WithdrawalRequestCancelled(uint256 pos_);
| 7,053,883 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
512,
7948,
1347,
392,
2236,
3755,
87,
1281,
2062,
598,
9446,
287,
3285,
18,
632,
891,
225,
949,
67,
282,
3340,
19,
3276,
434,
326,
598,
9446,
287,
590,
13927,
18,
19,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
3423,
9446,
287,
691,
21890,
12,
11890,
5034,
949,
67,
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,
-1... |
pragma solidity 0.5.8;
pragma experimental ABIEncoderV2;
import "./IERC20.sol";
import "./IERC721.sol";
import "./SafeMath.sol";
/// @title EthlanceJob
/// @dev A contract for issuing jobs on Ethereum paying in ETH, ERC20, or ERC721 tokens
/// @author Mark Beylin <mark.beylin@consensys.net>, Gonçalo Sá <goncalo.sa@c... | @dev cancelInvoice(): Allows the sender of the invoice to cancel it @param _sender the sender of the transaction issuing the job (should be the same as msg.sender unless the txn is called by the meta tx relayer) @param _jobId the index of the job @param _invoiceId the index of the invoice to be accepted | function cancelInvoice(
address _sender,
uint _jobId,
uint _invoiceId
)
public
senderIsValid(_sender)
validateJobArrayIndex(_jobId)
validateInvoiceArrayIndex(_jobId, _invoiceId)
{
Invoice storage ... | 12,943,833 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3755,
10467,
13332,
25619,
326,
5793,
434,
326,
9179,
358,
3755,
518,
632,
891,
389,
15330,
326,
5793,
434,
326,
2492,
3385,
22370,
326,
1719,
261,
13139,
506,
326,
1967,
487,
1234,
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... | [
1,
225,
445,
3755,
10467,
12,
203,
7682,
1758,
389,
15330,
16,
203,
7682,
2254,
389,
4688,
548,
16,
203,
7682,
2254,
389,
16119,
548,
203,
7682,
262,
203,
565,
1071,
203,
565,
5793,
20536,
24899,
15330,
13,
203,
565,
1954,
2278,
107... |
pragma solidity 0.4.18;
/// @author Pablo Ruiz - 2017 - me@pabloruiz.co
/// @title MilestoneVault - A vault to store funds received during a token sale.
/// Funds are released in milestones, approved by the original contributors
//
// Permissions
//
// crowdsale contract admin contributor
... | @dev contract constructor. Called by crowdsale contract @param _admin The administrator of the vault. Responsible for requesting withdrawals @param _wallet The address where the funds withdrawn by admin will be forwarded to @param _milestones An array with the percentaje (uint values) to be withdrawn at each milestone | function MilestoneVault(address _admin,address _wallet, uint8[] _milestones) public {
require(_wallet != address(0));
require(_admin != address(0));
require(_milestones.length >0);
uint8 _milestonesSum = 0;
for(uint8 i; i<_milestones.length;i++){
_milestonesSum +... | 894,732 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6835,
3885,
18,
11782,
635,
276,
492,
2377,
5349,
6835,
632,
891,
389,
3666,
1021,
22330,
434,
326,
9229,
18,
1124,
500,
2736,
364,
18709,
598,
9446,
1031,
632,
891,
389,
19177,
1021,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
490,
18270,
12003,
12,
2867,
389,
3666,
16,
2867,
389,
19177,
16,
2254,
28,
8526,
389,
81,
14849,
5322,
13,
1071,
288,
203,
3639,
2583,
24899,
19177,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
24899,
3666,
480,
1758,
12... |
pragma solidity 0.5.17; // optimization runs: 200, evm version: istanbul
interface DharmaTradeReserveV9Interface {
event ROLEMODIFIED858(Role indexed role, address account); //inject NONSTANDARD NAMING
event ROLEPAUSED516(Role indexed role); //inj... | inject NONSTANDARD NAMING
| function TRANSFERFROM59(address, address, uint256) external returns (bool); | 12,960,420 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4235,
17598,
11249,
6162,
12,
2867,
16,
1758,
16,
2254,
5034,
13,
3903,
1135,
261,
6430,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma abicoder v2;
import "./TradingAction.sol";
import "./ActionGuards.sol";
import "./nTokenMintAction.sol";
import "./nTokenRedeemAction.sol";
import "../SettleAssetsExternal.sol";
import "../FreeCollateralExternal.sol";
import "../../math/SafeInt256... | @notice Used as a wrapper for tokens that are interest bearing for an underlying token. Follows the cToken interface, however, can be adapted for other interest bearing tokens. | interface AssetRateAdapter {
function token() external view returns (address);
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
function underlying() external view returns (address... | 12,603 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10286,
487,
279,
4053,
364,
2430,
716,
854,
16513,
30261,
364,
392,
6808,
1147,
18,
16093,
87,
326,
276,
1345,
1560,
16,
14025,
16,
848,
506,
28345,
364,
1308,
16513,
30261,
2430,
18,
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,
5831,
10494,
4727,
4216,
288,
203,
565,
445,
1147,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
565,
445,
15105,
1435,
3903,
1476,
1135,
261,
11890,
28,
1769,
203,
203,
565,
445,
2477,
1435,
3903,
1476,
1135,
261,
1080,
3778,... |
./partial_match/1/0x4E7B20bd41d54D46974A199aA09C7534e0716796/sources/GTK.sol | * @dev Sets {decimals} to a value other than the default one of 18. Requirements: - this function can only be called from a constructor./ | function _setupDecimals(uint8 decimals_) internal {
require(!address(this).isContract(), "ERC20: decimals cannot be changed after construction");
_decimals = decimals_;
}
| 2,848,900 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
288,
31734,
97,
358,
279,
460,
1308,
2353,
326,
805,
1245,
434,
6549,
18,
29076,
30,
300,
333,
445,
848,
1338,
506,
2566,
628,
279,
3885,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
8401,
31809,
12,
11890,
28,
15105,
67,
13,
2713,
288,
203,
3639,
2583,
12,
5,
2867,
12,
2211,
2934,
291,
8924,
9334,
315,
654,
39,
3462,
30,
15105,
2780,
506,
3550,
1839,
16171,
8863,
203,
3639,
389,
31734,
273,
... |
/**
*Submitted for verification at Etherscan.io on 2021-04-24
*/
// SPDX-License-Identifier: UNLICENSED
// Copyright (c) 2021 0xdev0 - All rights reserved
// https://twitter.com/0xdev0
pragma solidity ^0.8.0;
interface IERC20 {
function initialize() external;
function totalSupply() external view returns (uint)... | 50% - share of borrowRate earned by the system
| uint public constant SYSTEM_RATE = 50e18; | 2,084,985 | [
1,
4625,
348,
7953,
560,
30,
225,
6437,
9,
300,
7433,
434,
29759,
4727,
425,
1303,
329,
635,
326,
2619,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
1071,
5381,
225,
18786,
67,
24062,
3639,
273,
6437,
73,
2643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { AddressUtils } from '../../../utils/AddressUtils.sol';
import { EnumerableMap } from '../../../utils/EnumerableMap.sol';
import { EnumerableSet } from '../../../utils/EnumerableSet.sol';
import { IERC721 } from '../IERC721.sol';
import { IERC721Receiver... | * @title Base ERC721 implementation, excluding optional extensions/ | abstract contract ERC721Base is IERC721, ERC721BaseInternal {
using AddressUtils for address;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using EnumerableSet for EnumerableSet.UintSet;
import { AddressUtils } from '../../../utils/AddressUtils.sol';
import { EnumerableMap } from '../../../utils... | 13,056,195 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3360,
4232,
39,
27,
5340,
4471,
16,
19560,
3129,
4418,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
27,
5340,
2171,
353,
467,
654,
39,
27,
5340,
16,
4232,
39,
27,
5340,
2171,
3061,
288,
203,
565,
1450,
5267,
1989,
364,
1758,
31,
203,
565,
1450,
6057,
25121,
863,
364,
6057,
25121,
863,
18,
5487,
774,
188... |
pragma solidity ^0.4.13;
contract CentraAsiaWhiteList {
using SafeMath for uint;
address public owner;
uint public operation;
mapping(uint => address) public operation_address;
mapping(uint => uint) public operation_amount;
// Functions with this modi... | assert(b > 0); Solidity automatically throws when dividing by 0 assert(a == b * c + a % b); There is no case in which this doesn't hold | function div(uint a, uint b) internal returns (uint) {
uint c = a / b;
return c;
}
| 6,538,467 | [
1,
4625,
348,
7953,
560,
30,
225,
1815,
12,
70,
405,
374,
1769,
225,
348,
7953,
560,
6635,
1216,
1347,
3739,
10415,
635,
374,
1815,
12,
69,
422,
324,
380,
276,
397,
279,
738,
324,
1769,
225,
6149,
353,
1158,
648,
316,
1492,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3739,
12,
11890,
279,
16,
2254,
324,
13,
2713,
1135,
261,
11890,
13,
288,
203,
1377,
2254,
276,
273,
279,
342,
324,
31,
203,
1377,
327,
276,
31,
203,
565,
289,
203,
7010,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |