file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./partial_match/1/0x039cD22cb49084142d55FCD4B6096A4F51ffb3B4/sources/TransparentUpgradeableProxy.sol | * @dev Stores a new address in the EIP1967 implementation slot./ solhint-disable-next-line no-inline-assembly | function _setImplementation(address newImplementation) private {
address implementation = _implementation();
require(implementation != newImplementation, "Proxy: Attemps update proxy with the same implementation");
bytes32 slot = _IMPLEMENTATION_SLOT;
assembly {
sstore(... | 3,971,527 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20296,
455,
279,
394,
1758,
316,
326,
512,
2579,
3657,
9599,
4471,
4694,
18,
19,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
13621,
12,
2867,
394,
13621,
13,
3238,
288,
203,
3639,
1758,
4471,
273,
389,
30810,
5621,
203,
3639,
2583,
12,
30810,
480,
394,
13621,
16,
315,
3886,
30,
6020,
351,
1121,
1089,
2889,
598,
326,
1967,
4471,
8863... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;
// ----------------------------------------------------------------------------
// 'HAPPYHOUR' Staking smart contract
//
// Enter our universe : cocktailbar.finance
//
// Come join the disscussion: https://t.me/cocktailbar_discussion
//
// ... | ------------------------------------------------------------------------ Stakers can claim their pending rewards using this function ------------------------------------------------------------------------ ------------------------------------------------------------------------ Stakers can unstake the staked tokens us... | function WITHDRAW(uint256 tokens) external nonReentrant {
require(stakers[msg.sender].stakedTokens >= tokens && tokens > 0, "Invalid token amount to withdraw");
uint256 _unstakingFee = (onePercent(tokens).mul(unstakingFee)).div(10);
reward.totalreward = (reward.totalreward).add(_unstakingFe... | 14,862,493 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
934,
581,
414,
848,
7516,
3675,
4634,
283,
6397,
1450,
333,
445,
8879,
17082,
8879,
17082,
934,
581,
414,
848,
640,
334,
911,
326,
384,
9477,
2430,
1450,
333,
445,
632,
891,
2430,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
445,
13601,
40,
10821,
12,
11890,
5034,
2430,
13,
3903,
1661,
426,
8230,
970,
288,
203,
203,
4202,
2583,
12,
334,
581,
414,
63,
3576,
18,
15330,
8009,
334,
9477,
5157,
1545,
2430,
597,
2430,
405,
374,
16,
315,
1941,
1147,
... |
./partial_match/1/0xa4fb4bfbd70Ae8C81eCe9E0FCCefFa9953e120cB/sources/contracts/manifold/burnredeem/ERC1155BurnRedeem.sol | * See {IERC1155BurnRedeem-updateBurnRedeem}./ Sanity checks Overwrite the existing burnRedeem | function updateBurnRedeem(
address creatorContractAddress,
uint256 index,
BurnRedeemParameters calldata burnRedeemParameters
) external override creatorAdminRequired(creatorContractAddress) {
BurnRedeem memory burnRedeem = _burnRedeems[creatorContractAddress][index];
req... | 15,995,429 | [
1,
4625,
348,
7953,
560,
30,
380,
2164,
288,
45,
654,
39,
2499,
2539,
38,
321,
426,
24903,
17,
2725,
38,
321,
426,
24903,
5496,
19,
23123,
4271,
29747,
326,
2062,
18305,
426,
24903,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
38,
321,
426,
24903,
12,
203,
3639,
1758,
11784,
8924,
1887,
16,
203,
3639,
2254,
5034,
770,
16,
203,
3639,
605,
321,
426,
24903,
2402,
745,
892,
18305,
426,
24903,
2402,
203,
565,
262,
3903,
3849,
11784,
4446,
37... |
./full_match/4/0xd52C77bEb0D884663f3fbe0F1F13F2D8b7def0aC/sources/browser/OwnableFlexible.sol | Modifier to check the sender is an admin */ | modifier onlyAdmin() {
require(administrators[msg.sender], 'Must be an adminitrator of the contract');
_;
}
| 778,137 | [
1,
4625,
348,
7953,
560,
30,
225,
12832,
358,
866,
326,
5793,
353,
392,
3981,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
4446,
1435,
288,
203,
3639,
2583,
12,
3666,
3337,
3062,
63,
3576,
18,
15330,
6487,
296,
10136,
506,
392,
3981,
305,
86,
639,
434,
326,
6835,
8284,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-10... |
./partial_match/1/0xf18BC8fAD58afcA55DaC79d3AF468dBDC280aa4f/sources/KissToken.sol | * @title Standard ERC20 token @dev Implementation of the basic standard token./ | contract StandardToken is BasicToken, ERC20 {
mapping (address => mapping (address => uint)) public allowed;
uint public constant MAX_UINT = 2**256 - 1;
function transferFrom(address _from, address _to, uint _value) public onlyPayloadSize(3 * 32) {
var _allowance = allowed[_from][msg.sender];
uint fe... | 3,591,401 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
8263,
4232,
39,
3462,
1147,
632,
5206,
25379,
434,
326,
5337,
4529,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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,
16351,
8263,
1345,
353,
7651,
1345,
16,
4232,
39,
3462,
288,
203,
203,
225,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
2254,
3719,
1071,
2935,
31,
203,
203,
225,
2254,
1071,
5381,
4552,
67,
57,
3217,
273,
576,
636,
5034,
300,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
import "./comm/Ownable.sol";
import "./comm/SafeMath.sol";
import "./comm/ReentrancyGuard.sol";
import "./comm/IERC20.sol";
interface IMoMoToken {
function transferFrom(address from_, address to_, uint256 tokenId_) external;
function getMomoS... | The authorization is used to upgrade ERC721 NFT in this contract by users. Upgrading ERC721 requires ERC1155 specified by burn | function setTokens(address momoToken_, address momomToken_, address moboxToken_) external onlyOwner {
_momoToken = IMoMoToken(momoToken_);
_momomToken = IMoMoMToken(momomToken_);
_moboxToken = IERC20(moboxToken_);
_momomToken.setApprovalForAll(momoToken_, true);
}
| 2,558,562 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
6093,
353,
1399,
358,
8400,
4232,
39,
27,
5340,
423,
4464,
316,
333,
6835,
635,
3677,
18,
1948,
15210,
4232,
39,
27,
5340,
4991,
4232,
39,
2499,
2539,
1269,
635,
18305,
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,
1,
0,
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,
5157,
12,
2867,
312,
362,
83,
1345,
67,
16,
1758,
312,
362,
362,
1345,
67,
16,
1758,
312,
27570,
1345,
67,
13,
3903,
1338,
5541,
288,
203,
3639,
389,
81,
362,
83,
1345,
273,
6246,
83,
16727,
1345,
12,
81,
362,
... |
pragma solidity ^0.4.11;
interface CommonWallet {
function receive() external payable;
}
library StringUtils {
function concat(string _a, string _b)
internal
pure
returns (string)
{
bytes memory _ba = bytes(_a);
bytes memory _bb = bytes(_b);
... | @dev Set approval for all account tokens. @param _to Approvee address. @param _approved Value true or false. | function setApprovalForAll(address _to, bool _approved)
external
{
require(_to != msg.sender);
_setApprovalForAll(msg.sender, _to, _approved);
}
| 5,397,201 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1000,
23556,
364,
777,
2236,
2430,
18,
632,
891,
389,
869,
1716,
685,
537,
73,
1758,
18,
632,
891,
389,
25990,
1445,
638,
578,
629,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
23461,
1290,
1595,
12,
2867,
389,
869,
16,
1426,
389,
25990,
13,
203,
3639,
3903,
203,
565,
288,
203,
3639,
2583,
24899,
869,
480,
1234,
18,
15330,
1769,
203,
203,
3639,
389,
542,
23461,
1290,
1595,
12,
3576,
18,
... |
./partial_match/1/0x97478bBD57993dEEc3ab286A6F63e7B3464d6d8B/sources/SaveDefi.sol | generate the uniswap pair path of token -> weth make the swap | function burnEthForCurve(uint256 ethAmount) private {
address[] memory path = new address[](2);
path[0] = uniswapV2Router.WETH();
path[1] = swapToken;
0,
path,
daoWallet,
block.timestamp
);
}
| 4,342,678 | [
1,
4625,
348,
7953,
560,
30,
225,
2103,
326,
640,
291,
91,
438,
3082,
589,
434,
1147,
317,
341,
546,
1221,
326,
7720,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18305,
41,
451,
1290,
9423,
12,
11890,
5034,
13750,
6275,
13,
3238,
288,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
3639,
589,
63,
20,
65,
273,
640,
291,
91,
438,
58,
22,
8259,
18,
59... |
pragma solidity 0.4.15;
/// @dev `Owned` is a base level contract that assigns an `owner` that can be
/// later changed
contract Owned {
/// @dev `owner` is the only address that can call a function with this
/// modifier
modifier onlyOwner() {
require(msg.sender == owner);
_;
... | @notice calculates and returns the amount to token minted for affilliate @param _investor address of the investor @param _contributorTokens amount of SHP tokens minted for contributor @param _contributionValue amount of ETH contributed @return tuple of two values (affiliateBonus, contributorBouns) | function applyAffiliate(
address _investor,
uint256 _contributorTokens,
uint256 _contributionValue
)
public
returns(uint256, uint256)
{
if (getAffiliate(_investor) == address(0)) {
return (0, 0);
}
uint256 contributorBonus = _c... | 5,546,169 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
17264,
471,
1135,
326,
3844,
358,
1147,
312,
474,
329,
364,
7103,
16607,
340,
632,
891,
389,
5768,
395,
280,
1758,
434,
326,
2198,
395,
280,
632,
891,
389,
591,
19293,
5157,
3844,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2230,
13785,
330,
3840,
12,
203,
3639,
1758,
389,
5768,
395,
280,
16,
7010,
3639,
2254,
5034,
389,
591,
19293,
5157,
16,
7010,
3639,
2254,
5034,
389,
591,
4027,
620,
203,
565,
262,
203,
3639,
1071,
7010,
3639,
1135,
12,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
contract RealEstate {
// Declare state variables
uint256 pid;
struct property{
uint256 dimensions; // Dimensions of the land , to-d0 - Should we convert it to string ?
uint256 area; // Area in m... | Name of the property
| string Name; | 12,534,644 | [
1,
4625,
348,
7953,
560,
30,
225,
1770,
434,
326,
1272,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
533,
1770,
31,
6647,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./interfaces/IConvex.sol";
import "./interfaces/IConvexRewards.sol";
import "./interfaces/I... | approve the pool to spend curveToken
| IERC20(curveToken).approve(address(curveStethPool), amount); | 10,016,637 | [
1,
4625,
348,
7953,
560,
30,
225,
6617,
537,
326,
2845,
358,
17571,
8882,
1345,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
467,
654,
39,
3462,
12,
16683,
1345,
2934,
12908,
537,
12,
2867,
12,
16683,
510,
546,
2864,
3631,
3844,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/44787/0xd779bFEf4B461F2392349D25682c360269671587/sources/src/SpiralsStaking.sol | @dev Activates pending votes (if ready) with a given validator group. all pending -> active for this group | function activate() external onlyOwner {
IElection c_election = getElection();
require(
c_election.hasActivatablePendingVotes(
address(this),
validatorGroup
),
"NOT_READY_TO_ACTIVATE"
);
uint256 pendingVotes = getEle... | 13,291,945 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
26939,
815,
4634,
19588,
261,
430,
5695,
13,
598,
279,
864,
4213,
1041,
18,
777,
4634,
317,
2695,
364,
333,
1041,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10235,
1435,
3903,
1338,
5541,
288,
203,
3639,
10897,
942,
276,
67,
292,
794,
273,
4774,
942,
5621,
203,
3639,
2583,
12,
203,
5411,
276,
67,
292,
794,
18,
5332,
12241,
8163,
8579,
29637,
12,
203,
7734,
1758,
12,
2211,
... |
./full_match/80001/0xf101765cDb8545dcBa3314503d2126D7e732E674/sources/contracts/2_Owner.sol | Replace leading value with price in finney
| price = 45 * (10 ** 15); | 837,810 | [
1,
4625,
348,
7953,
560,
30,
225,
6910,
7676,
460,
598,
6205,
316,
574,
82,
402,
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,
3639,
6205,
273,
12292,
380,
261,
2163,
2826,
4711,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
abcLotto: a Block Chain Lottery
Don't trust anyone but the CODE!
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++... | * @dev controller have generated and set Jackpot./check jackpot range 1-16, no repeat number.mark daily entity's prize.-----------------------------------------------------------------------------------mark weekly entity's prize.--------------------------------------------------------------------------------------- | function setJackpot(uint8[5] jackpot)
abcInterface
public
onlyController
{
require(currentState==3 && !drawed[currentRound-1]);
if(!isValidNum(jackpot)) return;
uint _fee = 0;
uint8[5] memory _jackpot1 = sort(jackpot);
dailyJackpot[currentRoun... | 7,314,921 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2596,
1240,
4374,
471,
444,
804,
484,
13130,
18,
19,
1893,
525,
484,
13130,
1048,
404,
17,
2313,
16,
1158,
7666,
1300,
18,
3355,
18872,
1522,
1807,
846,
554,
18,
28253,
6062,
3355,
4860,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
46,
484,
13130,
12,
11890,
28,
63,
25,
65,
525,
484,
13130,
13,
7010,
3639,
20011,
1358,
203,
3639,
1071,
203,
3639,
1338,
2933,
203,
565,
288,
203,
3639,
2583,
12,
2972,
1119,
631,
23,
597,
401,
9446,
329,
63,
... |
./full_match/1/0x41De0a913e8A10E0415B70810FEbCaF8a86Ea9BE/sources/contracts/Bueno1155Drop.sol | * @dev See {IERC1155-safeBatchTransferFrom}./ | function safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
) public virtual override onlyAllowedOperator(from) {
super.safeBatchTransferFrom(from, to, ids, amounts, data);
}
| 3,109,871 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
2499,
2539,
17,
4626,
4497,
5912,
1265,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
4183,
4497,
5912,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
8526,
3778,
3258,
16,
203,
3639,
2254,
5034,
8526,
3778,
30980,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
1071,... |
pragma solidity ^0.6.0;
import "./LuckyMachines.sol";
import "./Jackpots.sol";
contract LuckyMachineJackpot is LuckyMachine {
address payable public jackpotAddress;
mapping(uint8 => uint256) internal _payouts; //(number of matches => amount paid out)
uint8 public totalPicks;
uint8[] internal winTier... | Returns [number of matches], [associated payout] e.g. [1,2,3], [100000...,200000...,300000...] These are independent of jackpot payout | function getPayouts() public view returns(uint8[] memory, uint256[] memory) {
uint[] memory tierPayouts = new uint[](winTiers.length);
for (uint i = 0; i < winTiers.length; i++) {
tierPayouts[i] = _payouts[winTiers[i]];
}
return (winTiers, tierPayouts);
}
| 5,525,516 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
306,
2696,
434,
1885,
6487,
306,
28441,
293,
2012,
65,
425,
18,
75,
18,
306,
21,
16,
22,
16,
23,
6487,
306,
21,
11706,
2777,
16,
22,
11706,
2777,
16,
23,
11706,
2777,
65,
8646,
854,
14807,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1689,
2012,
87,
1435,
1071,
1476,
1135,
12,
11890,
28,
8526,
3778,
16,
2254,
5034,
8526,
3778,
13,
288,
203,
3639,
2254,
8526,
3778,
17742,
52,
2012,
87,
273,
394,
2254,
8526,
12,
8082,
56,
20778,
18,
2469,
1769,
203,
... |
pragma solidity ^0.4.23;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
require(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal pure returns (uint) {
uint c = a / b... | * @dev Burn the specified amount of tokens from the central minter address. @param _amountToBurn Amount of tokens to burn. @param _data Data to be passed to Burn event./ | function burn(uint256 _amountToBurn, bytes memory _data) public onlyMinter returns (bool success) {
require(balances[centralMinter] >= _amountToBurn);
balances[centralMinter] = balances[msg.sender].sub(_amountToBurn);
totalSupply = totalSupply.sub(_amountToBurn);
emit Burn(centralMin... | 1,775,253 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
321,
326,
1269,
3844,
434,
2430,
628,
326,
18291,
1131,
387,
1758,
18,
632,
891,
389,
8949,
774,
38,
321,
565,
16811,
434,
2430,
358,
18305,
18,
632,
891,
389,
892,
1910,
358,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
11890,
5034,
389,
8949,
774,
38,
321,
16,
1731,
3778,
389,
892,
13,
1071,
1338,
49,
2761,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
70,
26488,
63,
71,
12839,
49,
2761,
65,
1545,
389,
8949,
774,
... |
pragma solidity 0.5.12;
pragma experimental ABIEncoderV2;
import { DaiFiActions } from "./implementations/DaiFiActions.sol";
import { Types } from "./lib/Types.sol";
/**
* @title DaiFi Contract
* @notice The DaiFi main contract
* @author DaiFi
*/
contract DaiFi is DaiFiActions {
/**
* @notice constructor se... | * @notice Gets the balances of total Wei (external view) @return The total Wei balances/ | function getTotalWei() external view returns (Types.Balances memory) {
return totalWei;
}
| 6,419,477 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11881,
326,
324,
26488,
434,
2078,
1660,
77,
261,
9375,
1476,
13,
632,
2463,
1021,
2078,
1660,
77,
324,
26488,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12831,
3218,
77,
1435,
3903,
1476,
1135,
261,
2016,
18,
38,
26488,
3778,
13,
288,
203,
3639,
327,
2078,
3218,
77,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/43113/0x680B3ea6eD4A603D3A293a9b703D392dB46470aa/sources/farming.sol | * percentage of deposit/compound amount will be put into the pot **/ | currentPot = currentPot.add(amount.mul(LOTTERY_PERCENT).div(PERCENTS_DIVIDER));
| 7,176,106 | [
1,
4625,
348,
7953,
560,
30,
380,
11622,
434,
443,
1724,
19,
22585,
3844,
903,
506,
1378,
1368,
326,
5974,
26013,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
783,
18411,
273,
783,
18411,
18,
1289,
12,
8949,
18,
16411,
12,
1502,
1470,
8404,
67,
3194,
19666,
2934,
2892,
12,
3194,
19666,
55,
67,
2565,
20059,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.25;
library SafeMath8 {
function mul(uint8 a, uint8 b) internal pure returns (uint8) {
if (a == 0) {
return 0;
}
uint8 c = a * b;
assert(c / a == b);
return c;
}
function div(uint8 a, uint8 b) internal pure returns (uint... | dragon coolness is multyplied by 100 | function _payGoldReward(
address _sender,
uint256 _id,
uint256 _factor
) internal {
uint256 _goldRemain = treasury.remainingGold();
uint256 _dragonsAmount = getter.getDragonsAmount();
uint32 _coolness;
(, , , , , , , _coolness) = getter.getDragonProfile(_i... | 2,537,205 | [
1,
4625,
348,
7953,
560,
30,
225,
8823,
265,
27367,
4496,
353,
1778,
93,
3110,
635,
2130,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
10239,
43,
1673,
17631,
1060,
12,
203,
3639,
1758,
389,
15330,
16,
203,
3639,
2254,
5034,
389,
350,
16,
203,
3639,
2254,
5034,
389,
6812,
203,
565,
262,
2713,
288,
203,
3639,
2254,
5034,
389,
75,
1673,
1933,
530,
... |
./partial_match/1/0x86Ae2Fbb51a87752E300077B4FDF18A4917279e6/sources/lib/mellow-vaults/contracts/vaults/ERC20RootVault.sol | @inheritdoc IERC20RootVault | function withdraw(
address to,
uint256 lpTokenAmount,
uint256[] memory minTokenAmounts,
bytes[] memory vaultsOptions
) external nonReentrant returns (uint256[] memory actualTokenAmounts) {
uint256 supply = totalSupply;
require(supply > 0, ExceptionsLibrary.VALUE_Z... | 16,146,059 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
654,
39,
3462,
2375,
12003,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
12423,
1345,
6275,
16,
203,
3639,
2254,
5034,
8526,
3778,
1131,
1345,
6275,
87,
16,
203,
3639,
1731,
8526,
3778,
9229,
87,
1320,
203,
565,
262,
3903,
1661,... |
./full_match/4/0xC2d0Ee71f7bd1406ef07B10C77c0A35FdB4B3Ee1/sources/localhost/crowdsale/MintedCrowdsale.sol | * @title MintedCrowdsale @dev Extension of Crowdsale contract whose tokens are minted in each purchase. Token ownership should be transferred to MintedCrowdsale for minting./ | contract MintedCrowdsale is Crowdsale {
constructor() public {}
function _deliverTokens(address beneficiary, uint256 tokenAmount) internal {
require(
CleverToken(address(token())).mint(beneficiary, tokenAmount),
"MintedCrowdsale: minting failed"
);
}
}
| 12,488,375 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
490,
474,
329,
39,
492,
2377,
5349,
632,
5206,
10021,
434,
385,
492,
2377,
5349,
6835,
8272,
2430,
854,
312,
474,
329,
316,
1517,
23701,
18,
3155,
23178,
1410,
506,
906,
4193,
358,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
474,
329,
39,
492,
2377,
5349,
353,
385,
492,
2377,
5349,
288,
203,
377,
203,
377,
203,
565,
3885,
1435,
1071,
2618,
203,
565,
445,
389,
26672,
5157,
12,
2867,
27641,
74,
14463,
814,
16,
2254,
5034,
1147,
6275,
13,
... |
//! The Dutch-Buying contract.
//!
//! Copyright 2017 Gavin Wood, Parity Technologies Ltd.
//!
//! 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/L... | Who gets the stash? | address public treasury;
| 1,760,791 | [
1,
4625,
348,
7953,
560,
30,
225,
3497,
83,
5571,
326,
23017,
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,
565,
1758,
1071,
9787,
345,
22498,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
import "../Interfaces/IAnyTokenVaultManager.sol";
import "../Interfaces/ILUSDToken.sol";
import "../Interfaces/ILQTYToken.sol";
import "../Dependencies/LiquityBase.sol";
import "../Dependencies/Ownable.sol";
import "../Dependencies/CheckContract.sol";
import "..... | Remove a vault owner from the VaultOwners array, not preserving array order. Removing owner 'B' does the following: [A B C D E] => [A E C D], and updates E's Vault struct to point to its new array index./ It’s set in caller function `_closeVault` | function _removeVaultOwner(address _borrower, uint VaultOwnersArrayLength) internal {
Status vaultStatus = Vaults[_borrower].status;
assert(vaultStatus != Status.nonExistent && vaultStatus != Status.active);
uint128 index = Vaults[_borrower].arrayIndex;
uint length = VaultOwnersArra... | 13,117,103 | [
1,
4625,
348,
7953,
560,
30,
225,
3581,
279,
9229,
3410,
628,
326,
17329,
5460,
414,
526,
16,
486,
27995,
526,
1353,
18,
31939,
3410,
296,
38,
11,
1552,
326,
3751,
30,
306,
37,
605,
385,
463,
512,
65,
516,
306,
37,
512,
385,
463... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4479,
12003,
5541,
12,
2867,
389,
70,
15318,
264,
16,
2254,
17329,
5460,
414,
1076,
1782,
13,
2713,
288,
203,
3639,
2685,
9229,
1482,
273,
17329,
87,
63,
67,
70,
15318,
264,
8009,
2327,
31,
203,
3639,
1815,
12,
2... |
pragma solidity ^0.4.10;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a,... | Total amount of token Balances for each account Owner of account approves the transfer of an amount to another accountFix for the ERC20 short address attack | contract ThankYouToken is ERC20 {
using SafeMath for uint256;
uint256 public totalSupply;
mapping(address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
modifier onlyPayloadSize(uint256 size) {
assert(msg.data.length >= size + 4);
_;
}
f... | 2,286,963 | [
1,
4625,
348,
7953,
560,
30,
225,
10710,
3844,
434,
1147,
605,
26488,
364,
1517,
2236,
16837,
434,
2236,
6617,
3324,
326,
7412,
434,
392,
3844,
358,
4042,
2236,
8585,
364,
326,
4232,
39,
3462,
3025,
1758,
13843,
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,
16351,
935,
2304,
6225,
1345,
353,
4232,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
324,
26488,
31,... |
pragma solidity ^0.5.16;
interface IERC20 {
function TOTALSUPPLY529() external view returns (uint); //inject NONSTANDARD NAMING
function BALANCEOF13(address account) external vi... | inject NONSTANDARD NAMING
| function SAFETRANSFER844(IERC20 token, address to, uint value) internal { | 1,780,094 | [
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,
348,
6799,
1584,
54,
17598,
5193,
24,
12,
45,
654,
39,
3462,
1147,
16,
1758,
358,
16,
2254,
460,
13,
2713,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0x4eeF4C43734690ffe34a00A872234037676D7990/sources/contracts/Manager.sol | @param _newAddress new address of the platform @dev Change the wallet of the platform. The one that will receive the platform fee when the raffle is closed. Only the admin can change this | function setDestinationAddress(address payable _newAddress)
external
onlyRole(DEFAULT_ADMIN_ROLE)
{
destinationWallet = _newAddress;
}
| 3,577,062 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
891,
389,
2704,
1887,
394,
1758,
434,
326,
4072,
632,
5206,
7576,
326,
9230,
434,
326,
4072,
18,
1021,
1245,
716,
903,
6798,
326,
4072,
14036,
1347,
326,
767,
1403,
298,
353,
4375,
18,
5098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
5683,
1887,
12,
2867,
8843,
429,
389,
2704,
1887,
13,
203,
3639,
3903,
203,
3639,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
203,
565,
288,
203,
3639,
2929,
16936,
273,
389,
2704,
1887,
31,
203,
565,
289,
20... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Contracts
import "../data.sol";
import "../internal/revoke-role.sol";
import "../internal/is-admin-for-role.sol";
contract ent_renounceRole_AccessControl_v1 is
int_revokeRole_AccessControl_v1,
int_isAdminForRole_AccessControl_v1
{
/**
* @noti... | * @notice Grants an address a new role. @param role the role to revoke for the account @param account the address of the respective account to revoke Requirements: - Sender must be role admin./ | function renounceRole(bytes32 role, address account) external {
require(
account == msg.sender,
"AccessControl: can only renounce roles for self"
);
_revokeRole(role, account);
}
| 5,413,870 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
611,
86,
4388,
392,
1758,
279,
394,
2478,
18,
632,
891,
2478,
326,
2478,
358,
18007,
364,
326,
2236,
632,
891,
2236,
326,
1758,
434,
326,
17613,
2236,
358,
18007,
29076,
30,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1654,
8386,
2996,
12,
3890,
1578,
2478,
16,
1758,
2236,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
2236,
422,
1234,
18,
15330,
16,
203,
5411,
315,
16541,
30,
848,
1338,
1654,
8386,
4900,
364,
365,
6,
203,
3639,
11... |
//SPDX-License-Identifier: No License
pragma solidity ^0.8.1;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c... | * @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./ | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner,"You're not authorized");
_;
}
function transferOwnership(address newOwn... | 605,474 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14223,
6914,
632,
5206,
1021,
14223,
6914,
6835,
711,
392,
3410,
1758,
16,
471,
8121,
5337,
6093,
3325,
4186,
16,
333,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
19,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
225,
1758,
1071,
3410,
31,
203,
203,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
203,
225,
3885,
1832,
288,
203,
565,
3410,
27... |
pragma solidity 0.8.6;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint... | * @dev Gets the balance of a user that has been directed to the caller (a vault). If the user has not directed to this vault, or there are less than 6 directed, then add this to the list @param _user Address of the user for which to get balance @return bal Directed balance/ Get vault details If vault has not b... | function getBalance(address _user) external override returns (uint256 bal) {
uint8 id = _vaults[msg.sender];
if (id == 0) return 0;
uint128 bitmap = _directedBitmap[_user];
uint256 len = stakedTokenContracts.length;
for (uint256 i = 0; i < len; i++) {
bal += stak... | 638,719 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
326,
11013,
434,
279,
729,
716,
711,
2118,
20830,
358,
326,
4894,
261,
69,
9229,
2934,
971,
326,
729,
711,
486,
20830,
358,
333,
9229,
16,
578,
1915,
854,
5242,
2353,
1666,
20830,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2882,
6112,
12,
2867,
389,
1355,
13,
3903,
3849,
1135,
261,
11890,
5034,
324,
287,
13,
288,
203,
3639,
2254,
28,
612,
273,
389,
26983,
87,
63,
3576,
18,
15330,
15533,
203,
3639,
309,
261,
350,
422,
374,
13,
327,
374,
... |
// SPDX-License-Identifier: UNLICENSED
/*
$$8$$$8$$$$$$$88$$$$$$$$8$8$$$$
8...................8..8......$
$.8......88.......8.......8...$
$..88.......8CC8CC............$
$8.........C88OOO8CC......8..8$
$8.8.....88OOR8RRR8OCC8....8..$
$.......C.ORRRRRRRRRO.C....8..$
$....8.C.88RRUUUUURRR... | @notice Claim Corruption Gold for all tokens owned by the sender @notice This function will run out of gas if you have too much loot! If this is a concern, you should use claimRangeForOwner and claim Corruption Gold in batches. Checks i < tokenBalanceOwner because tokenBalanceOwner is 1-indexed Further Checks, Effects... | function claimAllForOwner() external {
uint256 tokenBalanceOwner = corruptionContract.balanceOf(_msgSender());
require(tokenBalanceOwner > 0, "NO_TOKENS_OWNED");
for (uint256 i = 0; i < tokenBalanceOwner; i++) {
_claim(
corruptionContract.tokenOfOwnerByIndex(_ms... | 2,508,927 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
18381,
9557,
21421,
611,
1673,
364,
777,
2430,
16199,
635,
326,
5793,
632,
20392,
1220,
445,
903,
1086,
596,
434,
16189,
309,
1846,
1240,
4885,
9816,
437,
352,
5,
971,
333,
353,
279,
356... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7516,
1595,
1290,
5541,
1435,
3903,
288,
203,
3639,
2254,
5034,
1147,
13937,
5541,
273,
1858,
21421,
8924,
18,
12296,
951,
24899,
3576,
12021,
10663,
203,
203,
3639,
2583,
12,
2316,
13937,
5541,
405,
374,
16,
315,
3417,
6... |
./full_match/3/0xee0EE9FdAdA4664fB89CD5C5460Feb153167B046/sources/bobstoken.sol | 35% total tax, (40-5) if selling < 75%
| if (amount <= balanceOf(_msgSender()) * 75 / 100) feeTier = feeTier - 5; | 8,217,552 | [
1,
4625,
348,
7953,
560,
30,
225,
13191,
9,
2078,
5320,
16,
261,
7132,
17,
25,
13,
309,
357,
2456,
411,
18821,
9,
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,
... | [
1,
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,
7734,
309,
261,
8949,
1648,
11013,
951,
24899,
3576,
12021,
10756,
380,
18821,
342,
2130,
13,
14036,
15671,
273,
14036,
15671,
300,
1381,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/8453/0xf64DA57587e6fC34c22AE858124977368bF13507/sources/contracts/Facets/AccessManagerFacet.sol | @title Access Manager Facet @author Eisen (https://app.eisenfinance.com) @notice Provides functionality for managing method level access control @custom:version 1.0.0 | contract AccessManagerFacet {
event ExecutionAllowed(address indexed account, bytes4 indexed method);
event ExecutionDenied(address indexed account, bytes4 indexed method);
pragma solidity 0.8.17;
import {LibDiamond} from "contracts/Libraries/LibDiamond.sol";
import {LibAccess} from "contracts/Libraries/LibA... | 11,560,772 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
5016,
8558,
31872,
632,
4161,
512,
291,
275,
261,
4528,
2207,
2910,
18,
73,
291,
275,
926,
1359,
18,
832,
13,
632,
20392,
28805,
14176,
364,
30632,
707,
1801,
2006,
3325,
632,
3662,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
5016,
1318,
11137,
288,
203,
203,
565,
871,
8687,
5042,
12,
2867,
8808,
2236,
16,
1731,
24,
8808,
707,
1769,
203,
565,
871,
8687,
10410,
12,
2867,
8808,
2236,
16,
1731,
24,
8808,
707,
1769,
203,
203,
203,
683,
9454,
18035,... |
./full_match/1/0xB4a598B2D36B8bDab20E8A8A04E401a66aC9b45d/sources/browser/zoo.sol | add new stake transfer tokens from user to the contract balance | function Stake(uint256 _amount) external validStake(_amount) {
_newDeposit(address(leopard), _amount);
require(leopard.transferFrom(msg.sender, address(this), _amount));
emit Staked(msg.sender, _amount);
}
| 3,012,987 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
394,
384,
911,
7412,
2430,
628,
729,
358,
326,
6835,
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,
... | [
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,
934,
911,
12,
11890,
5034,
389,
8949,
13,
3903,
923,
510,
911,
24899,
8949,
13,
288,
203,
3639,
389,
2704,
758,
1724,
12,
2867,
12,
298,
556,
1060,
3631,
389,
8949,
1769,
203,
540,
203,
3639,
2583,
12,
298,
556,
1060,... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.6;
import {Address} from '@openzeppelin/contracts/utils/Address.sol';
import {OwnableUpgradeable} from '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import {AddressUpgradeable} from '@openzeppelin/contracts-upgradeable/utils/AddressUpgr... | 0.5% (0.01% = 1e14, 1% = 1e16)
| uint256 public override protocolManagementFee; | 421,221 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
18,
25,
9,
261,
20,
18,
1611,
9,
273,
404,
73,
3461,
16,
404,
9,
273,
404,
73,
2313,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
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,
2254,
5034,
1071,
3849,
1771,
10998,
14667,
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... |
// File: @aragon/os/contracts/common/UnstructuredStorage.sol
/*
* SPDX-License-Identitifer: MIT
*/
pragma solidity ^0.4.24;
library UnstructuredStorage {
function getStorageBool(bytes32 position) internal view returns (bool data) {
assembly { data := sload(position) }
}
function getStorage... | * @notice Update settings for the Projects app/ | function changeBountySettings(
uint256[] _expMultipliers,
bytes32[] _expLevels,
uint256 _baseRate,
uint256 _bountyDeadline,
address _bountyCurrency,
address _bountyAllocator
) external auth(CHANGE_SETTINGS_ROLE)
{
require(_expMultipliers.length == _exp... | 896,274 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2315,
1947,
364,
326,
30491,
595,
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,
2549,
38,
592,
93,
2628,
12,
203,
3639,
2254,
5034,
8526,
389,
2749,
5002,
8127,
414,
16,
203,
3639,
1731,
1578,
8526,
389,
2749,
12240,
16,
203,
3639,
2254,
5034,
389,
1969,
4727,
16,
203,
3639,
2254,
5034,
389,
70,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function ba... | * Contract / person who can set the upgrade path. This can be the same as team multisig wallet, as what it is with its default value. */* The next contract where the tokens will be migrated. */* How many tokens we have upgraded by now. */* Upgrade states. - NotAllowed: The child contract has not reached a condition whe... | enum UpgradeState {Unknown, NotAllowed, WaitingForAgent, ReadyToUpgrade, Upgrading}
| 1,783,746 | [
1,
4625,
348,
7953,
560,
30,
380,
13456,
342,
6175,
10354,
848,
444,
326,
8400,
589,
18,
1220,
848,
506,
326,
1967,
487,
5927,
22945,
360,
9230,
16,
487,
4121,
518,
353,
598,
2097,
805,
460,
18,
1195,
14,
1021,
1024,
6835,
1625,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
2792,
17699,
1119,
288,
4874,
16,
2288,
5042,
16,
23333,
1290,
3630,
16,
26732,
774,
10784,
16,
1948,
15210,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2020-10-23
*/
pragma solidity =0.5.16;
interface ERC20Interface {
function transfer(address to, uint tokens) external returns (bool success);
function transferFrom(address from, address to, uint tokens) external returns (bool success);
function balanceOf(... | inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
| return balances[owner]; | 7,267,467 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
14939,
8350,
13255,
40,
6953,
17187,
478,
21163,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
324,
26488,
63,
8443,
15533,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/5/0x43B2249764BF6D797D4A320996bCe882238a2cce/sources/contracts/minter-suite/Minters/MinterMerkleV5.sol | * @notice Verify if address is allowed to mint on project `_projectId`. @param _projectId Project ID to be checked. @param _proof Merkle proof for address. @param _address Address to check. @return inAllowlist true only if address is allowed to mint and valid Merkle proof was provided/ | function verifyAddress(
uint256 _projectId,
bytes32[] calldata _proof,
address _address
) public view returns (bool) {
return
_proof.verifyCalldata(
projectMerkleRoot[_projectId],
hashAddress(_address)
);
}
| 1,959,807 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
8553,
309,
1758,
353,
2935,
358,
312,
474,
603,
1984,
1375,
67,
4406,
548,
8338,
632,
891,
389,
4406,
548,
5420,
1599,
358,
506,
5950,
18,
632,
891,
389,
24207,
31827,
14601,
364,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
3929,
1887,
12,
203,
3639,
2254,
5034,
389,
4406,
548,
16,
203,
3639,
1731,
1578,
8526,
745,
892,
389,
24207,
16,
203,
3639,
1758,
389,
2867,
203,
565,
262,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
203,
5... |
pragma solidity 0.4.24;
import "./linnia-contracts/LinniaHub.sol";
import "./linnia-contracts/LinniaRecords.sol";
import "./linnia-contracts/LinniaUsers.sol";
import "./AplusEscrows.sol";
contract AplusListings {
LinniaHub public linniaHub;
AplusEscrows public aplusEscrows;
struct Listing {
uint ... | array of listed dataHashes | bytes32[] public listedDataHashes;
| 12,644,387 | [
1,
4625,
348,
7953,
560,
30,
225,
526,
434,
12889,
501,
14455,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1731,
1578,
8526,
1071,
12889,
751,
14455,
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,... |
./full_match/5/0x1F7A0Cc2dB9421A9B9017eF18E53997c26F976cC/sources/project_/contracts/Husk.sol | TODO: bring roles back in. currently failing in integration tests for some reason. require(hasRole(msg.sender, SHIP_ADDER_ROLE), "Must have ship adder role to dock ship"); TODO: require hostedUrl to be present? TODO: require this to actually be an azimuth point?! we don't want hosting providers accidentally sending us... | function addDockedShip(uint32 tokenID, string memory hostedUrl) public {
DockedShip memory newShip = DockedShip({
tokenID: tokenID,
hostedUrl: hostedUrl
});
hangar.push(newShip);
emit ShipDocked(tokenID, hostedUrl);
}
| 1,949,422 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
5186,
310,
4900,
1473,
316,
18,
4551,
21311,
316,
12040,
7434,
364,
2690,
3971,
18,
2583,
12,
5332,
2996,
12,
3576,
18,
15330,
16,
6122,
2579,
67,
1880,
4179,
67,
16256,
3631,
315,
10136,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
40,
975,
329,
26358,
12,
11890,
1578,
1147,
734,
16,
533,
3778,
18703,
1489,
13,
1071,
288,
203,
203,
203,
3639,
463,
975,
329,
26358,
3778,
394,
26358,
273,
463,
975,
329,
26358,
12590,
203,
5411,
1147,
734,
30,
... |
./partial_match/1/0xC0Cc5BFce20a5d2Fd54d03d91f6c6211F3E5968a/sources/CollateralizationCalculatorImplV1.sol | The interest rate is annualized, so figuring out the exchange rate 1-year from now is as simple as applying the current interest rate to the current exchange rate. | function getTotalCollateralization() external view returns (uint) {
IDmmController _dmmController = IDmmController(dmmController);
uint totalLiabilities = 0;
uint totalAssets = 0;
uint interestRateBaseRate = _dmmController.INTEREST_RATE_BASE_RATE();
uint [] memory dmmTokenIds... | 3,696,280 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
16513,
4993,
353,
8226,
1462,
1235,
16,
1427,
4291,
4017,
596,
326,
7829,
4993,
404,
17,
6874,
628,
2037,
353,
487,
4143,
487,
13650,
326,
783,
16513,
4993,
358,
326,
783,
7829,
4993,
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,
565,
445,
12831,
13535,
2045,
287,
1588,
1435,
3903,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
1599,
7020,
2933,
389,
72,
7020,
2933,
273,
1599,
7020,
2933,
12,
72,
7020,
2933,
1769,
203,
3639,
2254,
2078,
28762,
5756,
273,
374,
... |
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;
import "./Handling/TokenHandling.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import "../ILSP1UniversalReceiverDelegate.sol";
/**
* @title Core Implementation of contract writing the received LSP7 and LSP8 assets into your... | * @inheritdoc ILSP1UniversalReceiverDelegate @dev allows to register arrayKeys and Map of incoming assets and remove after being sent @return result The return value/ | ) public override returns (bytes memory result) {
if (
typeId == _TYPEID_LSP7_TOKENSSENDER ||
typeId == _TYPEID_LSP7_TOKENSRECIPIENT ||
typeId == _TYPEID_LSP8_TOKENSSENDER ||
typeId == _TYPEID_LSP8_TOKENSRECIPIENT
) {
result = _tokenHandlin... | 12,806,072 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
10093,
467,
3045,
52,
21,
984,
14651,
12952,
9586,
632,
5206,
5360,
358,
1744,
526,
2396,
471,
1635,
434,
6935,
7176,
471,
1206,
1839,
3832,
3271,
632,
2463,
563,
1021,
327,
460,
19,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
3849,
1135,
261,
3890,
3778,
563,
13,
288,
203,
3639,
309,
261,
203,
5411,
24361,
422,
389,
2399,
734,
67,
3045,
52,
27,
67,
8412,
12130,
18556,
747,
203,
5411,
24361,
422,
389,
2399,
734,
67,
3045,
52,
27,
67,
... |
./full_match/5/0xCec96f944C219ebb8f61527a51009f217950c6F8/sources/contracts/LooksRareExchange.sol | * @notice Match a takerAsk with a makerBid @param takerAsk taker ask order @param makerBid maker bid order/ Check the maker bid order Update maker bid order status to true (prevents replay) Execution part 1/2 Execution part 2/2 | function matchBidWithTakerAsk(OrderTypes.TakerOrder calldata takerAsk, OrderTypes.MakerOrder calldata makerBid)
external
override
nonReentrant
{
require((!makerBid.isOrderAsk) && (takerAsk.isOrderAsk), "Order: Wrong sides");
require(msg.sender == takerAsk.taker, "Order: T... | 7,066,167 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4639,
279,
268,
6388,
23663,
598,
279,
312,
6388,
17763,
632,
891,
268,
6388,
23663,
268,
6388,
6827,
1353,
632,
891,
312,
6388,
17763,
312,
6388,
9949,
1353,
19,
2073,
326,
312,
6388,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
845,
17763,
1190,
56,
6388,
23663,
12,
2448,
2016,
18,
56,
6388,
2448,
745,
892,
268,
6388,
23663,
16,
4347,
2016,
18,
12373,
2448,
745,
892,
312,
6388,
17763,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1661,
426,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
/**
* @dev This contract allows cross chain token transfers.
*
* There ... | * @dev claims and locks tokens from signer to be converted to tokens on another blockchain @param _sender the address to lock tokens from @param _amount the amount of tokens to lock/ Do not allow amounts that can not be represented in EOS. | function lockTokens(address _sender, uint256 _amount) private {
require(_amount % 10**14 == 0, "ERR_AMOUNT_TOO_MANY_DECIMALS");
token.transferFrom(_sender, address(this), _amount);
emit TokensLock(_sender, _amount);
}
| 12,961,035 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11955,
471,
13046,
2430,
628,
10363,
358,
506,
5970,
358,
2430,
603,
4042,
16766,
632,
891,
389,
15330,
225,
326,
1758,
358,
2176,
2430,
628,
632,
891,
389,
8949,
225,
326,
3844,
434,
243... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
2176,
5157,
12,
2867,
389,
15330,
16,
2254,
5034,
389,
8949,
13,
3238,
288,
203,
3639,
2583,
24899,
8949,
738,
1728,
636,
3461,
422,
374,
16,
315,
9712,
67,
2192,
51,
5321,
67,
4296,
51,
67,
24177,
67,
23816,
55,
8863... |
/*
.oooooo. o8o o8o
d8P' `Y8b `"' `"'
888 .ooooo. oooo ooo. .oo. oooo ooo oooo .oooo.o .ooooo.
888 d88' `88b `888 `888P"Y88b `88. .8' `888 d88( "8 d88' `88b
8... | * @dev Initializes a vesting contract that vests its balance of an ERC20 token to the _beneficiary, gradually in a step fashion until _start + _noOfMonths. By then all of the balance will have vested. @param _token address of the token to be held @param _beneficiary address of the beneficiary to whom vested tokens are ... | function initialize(
address _creator,
address _token,
address _beneficiary,
uint256 _start,
uint256 _cliff,
uint256 _totalTokens,
uint256 _noOfMonths
) public initializer {
require(
_beneficiary != address(0),
"ERR__BENEFICIARY_CANNOT_BE_ZERO_ADDRESS"
);
require(... | 207,743 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10188,
3128,
279,
331,
10100,
6835,
716,
331,
25563,
2097,
11013,
434,
392,
4232,
39,
3462,
1147,
358,
326,
389,
70,
4009,
74,
14463,
814,
16,
3087,
2544,
1230,
316,
279,
2235,
30957,
318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
203,
565,
1758,
389,
20394,
16,
203,
565,
1758,
389,
2316,
16,
203,
565,
1758,
389,
70,
4009,
74,
14463,
814,
16,
203,
565,
2254,
5034,
389,
1937,
16,
203,
565,
2254,
5034,
389,
830,
3048,
16,
203,
565,
22... |
./full_match/4/0xaD94FEce9cF4a9D9bd039C6e51642215ad12968F/sources/tests/ICO.sol | Calculate fees Disburse the Rest to dev Provide Liquidity Send Remaining Balance to AdminWallet | function _distribute() internal {
uint256 fees = icoInfo.fees.feesBNB * address(this).balance / 10000;
payable(icoInfo.owner).transfer(address(this).balance - bnbToLiquidity);
_provideLiquidity(bnbToLiquidity - fees);
payable(icoInfo.fees.AdminWalletAddress).transfer(address(this).ba... | 12,303,959 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
1656,
281,
3035,
70,
295,
307,
326,
6320,
358,
4461,
26569,
511,
18988,
24237,
2479,
2663,
3280,
30918,
358,
7807,
16936,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2251,
887,
1435,
2713,
288,
203,
3639,
2254,
5034,
1656,
281,
273,
277,
2894,
966,
18,
3030,
281,
18,
3030,
281,
15388,
38,
380,
1758,
12,
2211,
2934,
12296,
342,
12619,
31,
203,
3639,
8843,
429,
12,
10764,
966,
... |
./full_match/3/0xF578B18Bc530e16A89F5c8aA0B8cE5d5c1E815F2/sources/V3Migrator.sol | @notice Migrates liquidity to v3 by burning v2 liquidity and minting a new position for v3 @dev Slippage protection is enforced via `amount{0,1}Min`, which should be a discount of the expected values of the maximum amount of v3 liquidity that the v2 liquidity can get. For the special case of migrating to an out-of-ran... | library TransferHelper {
function safeTransferFrom(
address token,
address from,
address to,
uint256 value
function migrate(MigrateParams calldata params) external;
}
) internal {
(bool success, bytes memory data) =
token.call(abi.encodeWithSelector(IERC2... | 14,129,905 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
490,
2757,
815,
4501,
372,
24237,
358,
331,
23,
635,
18305,
310,
331,
22,
4501,
372,
24237,
471,
312,
474,
310,
279,
394,
1754,
364,
331,
23,
632,
5206,
348,
3169,
2433,
17862,
353,
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,
12083,
12279,
2276,
288,
203,
565,
445,
4183,
5912,
1265,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
460,
203,
565,
445,
13187,
12,
19594,
1370,
745,
892,
859,
13,
... |
./partial_match/56/0x969819114Cf7a48F1e83698Ab8A8738eF6eb5D66/sources/REDI_CROWDSALE.sol | uint256 public startTime = 1608483600; uint256 public endTime = 16084077611; | contract REDI_CROWDSALE is Context, ReentrancyGuard{
using SafeMath for uint256;
using SafeERC20 for IERC20;
address public governance;
uint256 public rate;
uint256 private _weiRaised;
uint256 public totalSold;
IERC20 public tokenAddress;
uint256 public minimumBuyAmount = ... | 11,052,223 | [
1,
4625,
348,
7953,
560,
30,
2254,
5034,
1071,
8657,
273,
25430,
5193,
28,
5718,
713,
31,
2254,
5034,
1071,
13859,
273,
25430,
28585,
4700,
26,
2499,
31,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14411,
45,
67,
39,
11226,
19748,
900,
353,
1772,
16,
868,
8230,
12514,
16709,
95,
203,
377,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-14
*/
// SPDX-License-Identifier: MIT
// File:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information... | use Requirements: - `target` must be a contract. - calling `target` with `data` must not revert. _Available since v3.1._/ | function functionCall(address target, bytes memory data) internal
returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| 141,261 | [
1,
4625,
348,
7953,
560,
30,
225,
999,
29076,
30,
300,
1375,
3299,
68,
1297,
506,
279,
6835,
18,
300,
4440,
1375,
3299,
68,
598,
1375,
892,
68,
1297,
486,
15226,
18,
389,
5268,
3241,
331,
23,
18,
21,
6315,
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,
445,
445,
1477,
12,
2867,
1018,
16,
1731,
3778,
501,
13,
2713,
225,
203,
6154,
261,
3890,
3778,
13,
288,
203,
3639,
327,
445,
1477,
12,
3299,
16,
501,
16,
315,
1887,
30,
4587,
17,
2815,
745,
2535,
8863,
203,
565,
289,
20... |
pragma solidity 0.4.24;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two ... | check neighbors on right of area of area | _tokenId = soldUnits[upX][j];
| 462,015 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
11003,
603,
2145,
434,
5091,
434,
5091,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7734,
389,
2316,
548,
273,
272,
1673,
7537,
63,
416,
60,
6362,
78,
15533,
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,... |
/*
Copyright 2018 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | * Calls exchange to execute trades and deposits fills into Vault for issuanceOrder maker. @param _core Address of Core @param _exchangeData Standard exchange wrapper interface object containing exchange metadata @param _exchangeWrapper Address of exchange wrapper being called @p... | function callExchange(
address _core,
ExchangeWrapperLibraryV2.ExchangeData memory _exchangeData,
address _exchangeWrapper,
bytes memory _bodyData
)
internal
{
ExchangeWrapperLibraryV2.ExchangeResults memory exchangeResults = IExchangeWrapper(_exchangeWrapper)... | 1,775,235 | [
1,
4625,
348,
7953,
560,
30,
380,
23665,
7829,
358,
1836,
1284,
5489,
471,
443,
917,
1282,
21652,
1368,
17329,
364,
3385,
89,
1359,
2448,
312,
6388,
18,
632,
891,
225,
389,
3644,
10792,
5267,
434,
4586,
632,
891,
225,
389,
16641,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
745,
11688,
12,
203,
3639,
1758,
389,
3644,
16,
203,
3639,
18903,
3611,
9313,
58,
22,
18,
11688,
751,
3778,
389,
16641,
751,
16,
203,
3639,
1758,
389,
16641,
3611,
16,
203,
3639,
1731,
3778,
389,
3432,
751,
203,
565,
... |
pragma solidity ^0.4.18;
// File: contracts/IPricingStrategy.sol
interface IPricingStrategy {
function isPricingStrategy() public view returns (bool);
/** Calculate the current price for buy in amount. */
function calculateTokenAmount(uint weiAmount, uint tokensSold) public view returns (uint tokenAmoun... | * @dev Function to mint tokens @param _to The address that will receive the minted tokens. @param _amount The amount of tokens to mint. @return A boolean that indicates if the operation was successful./ | function mint(address _to, uint _amount, bool freeze) canMint onlyMinter external returns (bool) {
totalSupply = totalSupply.add(_amount);
balances[_to] = balances[_to].add(_amount);
if (freeze) {
freezedList[_to] = true;
}
Mint(_to, _amount);
Transfer(add... | 2,319,186 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
312,
474,
2430,
632,
891,
389,
869,
1021,
1758,
716,
903,
6798,
326,
312,
474,
329,
2430,
18,
632,
891,
389,
8949,
1021,
3844,
434,
2430,
358,
312,
474,
18,
632,
2463,
432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
12,
2867,
389,
869,
16,
2254,
389,
8949,
16,
1426,
16684,
13,
848,
49,
474,
1338,
49,
2761,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2078,
3088,
1283,
273,
2078,
3088,
1283,
18,
1289,
24899,
8949,
1769,
20... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
re... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and a fixed supply ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Constructor -... | contract WFchainToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
mapping (address => uint256... | 15,031,244 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
279,
5499,
14467,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
6835,
678,
42,
5639,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
288,
203,
377,
1450,
14060,
10477,
364,
2254,
31,
203,
7010,
377,
533,
1071,
3273,
31,
203,
377,
533,
1071,
225,
508,
31,
203,
377,
2254,
28,
1071,
15105,
... |
pragma solidity >=0.5.4 <0.6.0;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; }
contract TheAO {
address public theAO;
address public nameTAOPositionAddress;
// Check whether an address is whitelisted and granted a... | Store Pool's tenth Lot snapshot | uint256 tenth = poolLotInternalIdLookup[_lot.poolId][_lotId].div(10);
| 985,763 | [
1,
4625,
348,
7953,
560,
30,
225,
4994,
8828,
1807,
268,
319,
76,
511,
352,
4439,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
202,
11890,
5034,
268,
319,
76,
273,
2845,
48,
352,
3061,
548,
6609,
63,
67,
23372,
18,
6011,
548,
6362,
67,
23372,
548,
8009,
2892,
12,
2163,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.25;
/**
* @title EternalStorage
* @dev This contract holds all the necessary state variables to carry out the storage of any contract.
*/
contract EternalStorage {
mapping(bytes32 => uint256) internal uintStorage;
}
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks... | * Set receiver address/ | function setReceiverAddress(address _addr) public onlyOwner {
require(_addr != address(0));
receiverAddress = _addr;
}
| 13,041,866 | [
1,
4625,
348,
7953,
560,
30,
380,
1000,
5971,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
12952,
1887,
12,
2867,
389,
4793,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
4793,
480,
1758,
12,
20,
10019,
203,
3639,
5971,
1887,
273,
389,
4793,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
./full_match/44787/0x59aA0D6a6E063e8D7C092f4f9b915eBD38ba9a8a/sources/newburncc.sol | Emit an event to log the start of the function Perform token burning logic here Transfer staked tokens to the burn address Emit an event to log the successful token burn Calculate the amount of new tokens to transfer Emit an event to log the new token calculation Transfer new tokens to the user Emit an event to log th... | function burnAndTransfer(uint256 amount) external {
require(amount > 0, "Amount must be greater than 0");
uint256 stakedBalance = stakingContract.stakedBalance(msg.sender);
require(stakedBalance >= amount, "Insufficient staked balance");
emit BurnAndTransferStarted(msg.sender, amo... | 13,252,318 | [
1,
4625,
348,
7953,
560,
30,
225,
16008,
392,
871,
358,
613,
326,
787,
434,
326,
445,
11217,
1147,
18305,
310,
4058,
2674,
12279,
384,
9477,
2430,
358,
326,
18305,
1758,
16008,
392,
871,
358,
613,
326,
6873,
1147,
18305,
9029,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
18305,
1876,
5912,
12,
11890,
5034,
3844,
13,
3903,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
315,
6275,
1297,
506,
6802,
2353,
374,
8863,
203,
203,
3639,
2254,
5034,
384,
9477,
13937,
273,
384,
6159,
8924,
18,
334,... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.11;
import "./Governable.sol";
contract Config is Governable {
event ConfigSet(bytes32 config, uint256 value);
mapping (bytes32 => uint256) private _config;
function initialize() external initializer {
super.initialize(msg.sender);
... | add new lock to user | _addNewLockToUser(sender, proposalMinimum, endsAt, senderInt ^ idInteger);
| 10,409,694 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
394,
2176,
358,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1289,
1908,
2531,
774,
1299,
12,
15330,
16,
14708,
13042,
16,
3930,
861,
16,
5793,
1702,
3602,
612,
4522,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.19;
contract GiftCoin {
// keep track of all the addresses that have coins
mapping (address => uint) coins;
// keep track of who the owner of this contract is
address public owner;
constructor(){
owner = msg.sender;
}
// This is an ev... | this function will create new coins and should be reserved for only the owner to call it | function mintCoins(address target, uint256 mintedAmount) onlyOwner public {
coins[target] += mintedAmount;
}
| 13,055,619 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
445,
903,
752,
394,
276,
9896,
471,
1410,
506,
8735,
364,
1338,
326,
3410,
358,
745,
518,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
312,
474,
39,
9896,
12,
2867,
1018,
16,
2254,
5034,
312,
474,
329,
6275,
13,
1338,
5541,
1071,
288,
203,
202,
202,
71,
9896,
63,
3299,
65,
1011,
312,
474,
329,
6275,
31,
203,
202,
97,
203,
21281,
2,
-100,
-100,
-100... |
// SPDX-License-Identifier: Business Source License 1.1 see LICENSE.txt
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./libraries/ApprovalInterface.sol";
import "./ClipperPool.sol";
contract BlacklistAndTimeFilter is Ownable, ApprovalInterface {
mapping (address => bool) ... | divide by the market base weight of 100*1e18 | M = (marketWeightDecimals*weiPerInput)/ETH_WEIGHT_DECIMALS_ADJUSTED;
| 391,538 | [
1,
4625,
348,
7953,
560,
30,
225,
12326,
635,
326,
13667,
1026,
3119,
434,
2130,
14,
21,
73,
2643,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
490,
273,
261,
27151,
6544,
31809,
14,
1814,
77,
2173,
1210,
13176,
1584,
44,
67,
29988,
67,
23816,
55,
67,
1880,
46,
5996,
2056,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
contract Auction {
struct Bid {
uint time;
address bidder;
uint256 bid;
}
event BidReceived(Bid bid);
event ReservePriceChanged(uint256 price);
address private owner;
address private platform; // NOTE: Set... | NOTE: Set the value here before deploy else platform commission will get burnt
| address private platform; | 2,543,913 | [
1,
4625,
348,
7953,
560,
30,
225,
5219,
30,
1000,
326,
460,
2674,
1865,
7286,
469,
4072,
1543,
19710,
903,
336,
18305,
88,
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,
... | [
1,
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,
1758,
3238,
4072,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-28
*/
// SPDX-License-Identifier: GPL-3.0
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implement... | This activates or deactivates the whitelist. set to false = anyone can mint set to true = only whitelisted users can mint | function activateWhitelist(bool _state) public onlyOwner {
whitelistOnly = _state;
}
| 2,032,199 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
5981,
815,
578,
443,
11422,
815,
326,
10734,
18,
444,
358,
629,
273,
1281,
476,
848,
312,
474,
444,
358,
638,
273,
1338,
26944,
3677,
848,
312,
474,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
10235,
18927,
12,
6430,
389,
2019,
13,
1071,
1338,
5541,
288,
203,
565,
10734,
3386,
273,
389,
2019,
31,
203,
225,
289,
203,
7010,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/5/0xcc65Ea1d651ee8ACA6B8a0ba140221032aB73380/sources/lottoTickets.sol | @return uint256 gets the ticket ID of the next purchaed ticket | function currentTicketId() public view returns (uint256) {
return _currentTicketId;
}
| 7,085,004 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2463,
2254,
5034,
5571,
326,
9322,
1599,
434,
326,
1024,
5405,
8838,
329,
9322,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
783,
13614,
548,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
2972,
13614,
548,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0xCB5bF86eBa9cA737d2e0bAB4EfBD09F7bD35A24a/sources/browser/ClinTexCTIPreSaleTier2.sol | * @dev The Ownable constructor sets the original `owner` of the contract to the sender account./ | constructor (address _owner) internal {
owner = _owner;
}
| 3,154,204 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
14223,
6914,
3885,
1678,
326,
2282,
1375,
8443,
68,
434,
326,
6835,
358,
326,
5793,
2236,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
3885,
261,
2867,
389,
8443,
13,
2713,
288,
203,
565,
3410,
273,
389,
8443,
31,
203,
225,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/3/0x11F724A9A44D5728DA778C1a7DF2DEdba34dca2B/sources/localhost/Lock3rPresale.sol | * @notice claim your eth */ | function claim() public {
require(block.timestamp > unlocksOn, "presale has not unlocked yet");
require(balance[msg.sender] > 0, "nothing to withdraw");
uint256 bal = balance[msg.sender];
balance[msg.sender] = 0;
LK3R.transfer(msg.sender, bal);
totalSettled = totalSet... | 8,212,853 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7516,
3433,
13750,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7516,
1435,
1071,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
405,
7186,
87,
1398,
16,
315,
12202,
5349,
711,
486,
25966,
4671,
8863,
203,
3639,
2583,
12,
12296,
63,
3576,
18,
15330,
65,
405,
374,
16,
315,
30874,
358,
5... |
./full_match/4/0xA4B9548388110fD916c55541AF0B3f04fAC92DF1/sources/browser/OvenToken.sol | Oven Token with Governance. | contract OvenToken is ERC20('Oven Token', 'OVEN') {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
mapping (address => address) internal _delegates;
struct Checkpoint {
uint32 fromBlo... | 12,362,843 | [
1,
4625,
348,
7953,
560,
30,
225,
531,
3995,
3155,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
531,
3995,
1345,
353,
4232,
39,
3462,
2668,
51,
3995,
3155,
2187,
296,
51,
58,
1157,
6134,
288,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
81,
... |
./partial_match/4/0xFb94A03F1Ac8b8E213fd025CABD3E31f36613caF/sources/RecoverToken.sol | Clear balance to ensure correct accounting
| riskyrewards[msg.sender] = 0; | 8,674,193 | [
1,
4625,
348,
7953,
560,
30,
10121,
11013,
358,
3387,
3434,
2236,
310,
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,
6647,
18404,
93,
266,
6397,
63,
3576,
18,
15330,
65,
273,
374,
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,
... |
/// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
/*
NFT's are becoming more and more mainstream, it's easy see that more projects are starting up. With that, the potential for bad actors.
Keeping up with all these new projects across chains is a daunting task on your own; it takes t... | Allows for Owner to add liquidity back into the trading pair | function unsweep(uint256 amount) external onlyOwner() {
IERC20(uniswapV2Router.WETH()).approve(sweepablePair, amount);
IEmpirePair(sweepablePair).unsweep(amount);
emit Unsweep(amount);
}
| 104,782 | [
1,
4625,
348,
7953,
560,
30,
225,
25619,
364,
16837,
358,
527,
4501,
372,
24237,
1473,
1368,
326,
1284,
7459,
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,
... | [
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,
16804,
25236,
12,
11890,
5034,
3844,
13,
3903,
1338,
5541,
1435,
288,
203,
3639,
467,
654,
39,
3462,
12,
318,
291,
91,
438,
58,
22,
8259,
18,
59,
1584,
44,
1435,
2934,
12908,
537,
12,
87,
25236,
429,
4154,
16,
3844,
... |
pragma solidity ^ 0.4.0;
/**
* @title BulkSender, support ETH and ERC20 Tokens, send ether or erc20 token to multiple addresses in batch
* @dev To Use this Dapp: https://bulksender.app
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
require(a == ... | get receiver address/ | function getReceiverAddress() public view returns (address) {
if (receiverAddress == address(0)) {
return owner;
}
return receiverAddress;
}
| 530,676 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
5971,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
12952,
1887,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
309,
261,
24454,
1887,
422,
1758,
12,
20,
3719,
288,
203,
5411,
327,
3410,
31,
203,
3639,
289,
203,
203,
3639,
327,
5971,
1887,
31,
203,
565,
28... |
pragma solidity 0.6.12;
//----------------------------------------------------------------------------------
// I n s t a n t
//
// .:mmm. .:mmm:. .ii. .:SSSSSSSSSSSSS. .oOOOOOOOOOOOo.
// .mMM'':Mm. .:MM'':Mm:. .II: :SSs.......... .oOO'''''''''''OOo.
// .:Mm' ':Mm.... | * @notice Function to add a launcher template to create through factory. @dev Should have operator access @param _template Launcher template address./ | function addLiquidityLauncherTemplate(address _template) external {
require(
accessControls.hasAdminRole(msg.sender) ||
accessControls.hasOperatorRole(msg.sender),
"MISOLauncher: Sender must be operator"
);
uint256 templateType = IMisoLiquidity(_template).... | 974,029 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4284,
358,
527,
279,
26618,
1542,
358,
752,
3059,
3272,
18,
632,
5206,
9363,
1240,
3726,
2006,
632,
891,
389,
3202,
14643,
264,
1542,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
48,
18988,
24237,
28820,
2283,
12,
2867,
389,
3202,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
2006,
16795,
18,
5332,
4446,
2996,
12,
3576,
18,
15330,
13,
747,
203,
5411,
2006,
16795,
18,
5332,
5592,
2996,
12,
... |
pragma solidity ^0.4.19;
contract DigixConstants {
/// general constants
uint256 constant SECONDS_IN_A_DAY = 24 * 60 * 60;
/// asset events
uint256 constant ASSET_EVENT_CREATED_VENDOR_ORDER = 1;
uint256 constant ASSET_EVENT_CREATED_TRANSFER_ORDER = 2;
uint256 constant ASSET_EVENT_CREATED_REPLACEMENT_ORDER... | @dev List Assets in a particular state @param _state_id The state ID at which we fetch assets @param _count The number of assets to be listed @param _from_start List from start or end @return _assets the assets to be listed | function listAssets(uint256 _state_id, uint256 _count, bool _from_start)
public
constant
returns (bytes32[] _assets)
{
bytes32 _collection = bytes32(_state_id);
_assets = list_indexed_bytesarray(_collection, _count,
assets_explorer... | 12,021,323 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
987,
26284,
316,
279,
6826,
919,
632,
891,
225,
389,
2019,
67,
350,
1021,
919,
1599,
622,
1492,
732,
2158,
7176,
632,
891,
389,
1883,
1021,
1300,
434,
7176,
358,
506,
12889,
632,
891,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
225,
445,
666,
10726,
12,
11890,
5034,
389,
2019,
67,
350,
16,
2254,
5034,
389,
1883,
16,
1426,
389,
2080,
67,
1937,
13,
203,
6647,
1071,
203,
6647,
5381,
203,
6647,
1135,
261,
3890,
1578,
8526,
389,
9971,
13,
203,
225,
288,
20... |
pragma solidity ^0.4.2;
import "../node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol";
import "../node_modules/zeppelin-solidity/contracts/math/SafeMath.sol";
import "./EventTicketInterface.sol";
contract EventTicketBase is EventTicketInterface, ERC721Token{
using SafeMath for uint256;
... | TODO check for reentrance | function withdrawEscrow() public{
require(escrowDepositted[msg.sender] == true);
escrowDepositted[msg.sender] = false;
msg.sender.transfer(ticketPrice[tokenEscrow[msg.sender]]);
}
| 15,798,038 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
866,
364,
283,
8230,
1359,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6412,
492,
1435,
1071,
95,
203,
3639,
2583,
12,
742,
492,
758,
1724,
2344,
63,
3576,
18,
15330,
65,
422,
638,
1769,
203,
3639,
2904,
492,
758,
1724,
2344,
63,
3576,
18,
15330,
65,
273,
629,
31,
203,
3639,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-10
*/
/**
join us, Sanctions:t.me/SanctionsChat
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface I... | Buy FeeSell FeeOriginal Fee | contract SanctionsRussia is Context, IERC20, Ownable {
using SafeMath for uint256;
string private constant _name = "Sanctions Russia";
string private constant _symbol = "SRUSSIA";
uint8 private constant _decimals = 9;
mapping (address => uint256) _balances;
mapping(address => uint256) _lastTX... | 8,030,674 | [
1,
4625,
348,
7953,
560,
30,
605,
9835,
30174,
55,
1165,
30174,
8176,
30174,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
348,
304,
349,
87,
54,
5567,
1155,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
533,
3238,
5381,
389,
529,
273,
315,
55,
304,
349,
87,
... |
/**
*Submitted for verification at Etherscan.io on 2020-08-27
*/
pragma solidity ^0.5.12;
interface PASTA {
function balanceOf(address) external view returns (uint256);
function transfer(address, uint256) external returns (bool);
function transferFrom(address, address, uint256) external returns (bool);
... | inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
| require(proposals[id].start < block.timestamp , "<start"); | 12,661,786 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
14939,
8350,
13255,
40,
6953,
17187,
478,
21163,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
685,
22536,
63,
350,
8009,
1937,
411,
1203,
18,
5508,
269,
3532,
1937,
8863,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
/**
/$$$$$$ /$$ /$$ /$$
/$$__ $$ |__/| $$ | $$
| $$ \__/ /$$$$$$ /$$$$$$ /$$| $$$$$$$ | $$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$
| $$ ... | * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value./ | function _mint(
address to,
uint256 id,
uint256 amount,
bytes memory data
) internal virtual {
require(to != address(0), "ERC1155: mint to the zero address");
address operator = _msgSender();
uint256[] memory ids = _asSingletonArray(id);
uint256[]... | 316,802 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
434,
1147,
618,
1375,
350,
9191,
471,
22698,
2182,
358,
1375,
869,
8338,
7377,
1282,
279,
288,
5912,
5281,
97,
871,
18,
29076,
30,
300,
1375,
869,
68,
2780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
81,
474,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
3... |
pragma solidity 0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
functio... | 50 Million total supply muliplies dues to decimal precision
| uint public _totalsupply = 50000000 * 10 ** 18; | 6,036,385 | [
1,
4625,
348,
7953,
560,
30,
225,
6437,
490,
737,
285,
2078,
14467,
225,
14064,
77,
5259,
302,
3610,
358,
6970,
6039,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
389,
3307,
1031,
416,
1283,
273,
1381,
17877,
380,
1728,
2826,
6549,
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,
-... |
./full_match/1/0xdf8bFB139AD21Ec238B9e56BeD6f0953202cF104/sources/src/strangers.sol | @notice Moves active boarding points to owner's wallet @param _boardedToken Boarded token ID | function withdrawActiveBoardingPoints(
uint256 _boardedToken
) external nonReentrant {
boarderAcc[msg.sender] += checkActiveBoardingPoints(_boardedToken);
if (!checkTokenBoardStatus[_boardedToken].boarded) {
revert TokenNotBoarded();
}
checkTokenBoardStatus[_b... | 17,152,977 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
490,
10829,
2695,
11094,
310,
3143,
358,
3410,
1807,
9230,
632,
891,
389,
1075,
17212,
1345,
17980,
17212,
1147,
1599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3896,
22233,
310,
5636,
12,
203,
3639,
2254,
5034,
389,
1075,
17212,
1345,
203,
565,
262,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
800,
297,
765,
8973,
63,
3576,
18,
15330,
65,
1011,
866,
3896,
22233,
310,... |
./full_match/288/0x2327f3FBeC98B836012639545bE35e6e8F83892a/sources/src/Facets/OwnershipFacet.sol | @notice Initiates transfer of ownership to a new address @param _newOwner the address to transfer ownership to | function transferOwnership(address _newOwner) external override {
LibDiamond.enforceIsContractOwner();
Storage storage s = getStorage();
if (LibUtil.isZeroAddress(_newOwner)) revert NoNullOwner();
if (_newOwner == LibDiamond.contractOwner()) revert NewOwnerMustNotBeSelf();
... | 7,103,850 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4378,
16020,
7412,
434,
23178,
358,
279,
394,
1758,
632,
891,
389,
2704,
5541,
326,
1758,
358,
7412,
23178,
358,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5460,
12565,
12,
2867,
389,
2704,
5541,
13,
3903,
3849,
288,
203,
3639,
10560,
14521,
301,
1434,
18,
275,
5734,
2520,
8924,
5541,
5621,
203,
3639,
5235,
2502,
272,
273,
13840,
5621,
203,
203,
3639,
309,
261,
5664,
... |
pragma solidity ^0.8.7;
//SPDX-License-Identifier: UNLICENSED
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementa... | solhint-disable-next-line max-line-length | function transferFrom(address from, address to, uint256 tokenId) public virtual override {
super.transferFrom(from, to, tokenId);
authorizationsSet[tokenId] = false;
ProficyContract proficy = ProficyContract(payable(nftContracts[tokenId]));
proficy.transferOwnership(to);
extr... | 10,352,875 | [
1,
4625,
348,
7953,
560,
30,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
943,
17,
1369,
17,
2469,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
13,
1071,
5024,
3849,
288,
203,
3639,
2240,
18,
13866,
1265,
12,
2080,
16,
358,
16,
1147,
548,
1769,
203,
3639,
2869,
7089,
694,
63,
2316,
548,
65,
... |
pragma solidity 0.5.0;
////////////////////////////////////////////////////////////////////////////////
// XXX: Do not use in production until this code has been audited.
////////////////////////////////////////////////////////////////////////////////
/** ********************************************************... | Two possible y ordinates for x ordinate rv[0]; pick one "randomly" | if (uint256(keccak256(abi.encodePacked(rv[0], input))) % 2 == 0) {
rv[1] = -rv[1];
}
| 12,662,682 | [
1,
4625,
348,
7953,
560,
30,
225,
16896,
3323,
677,
4642,
4174,
364,
619,
4642,
3322,
5633,
63,
20,
15533,
6002,
1245,
315,
9188,
715,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
309,
261,
11890,
5034,
12,
79,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
4962,
63,
20,
6487,
810,
20349,
738,
576,
422,
374,
13,
288,
203,
3639,
5633,
63,
21,
65,
273,
300,
4962,
63,
21,
15533,
203,
1377,
28... |
/**
*Submitted for verification at Etherscan.io on 2021-06-18
*/
/**
*Submitted for verification at Etherscan.io on 2021-06-16
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() ex... | bondCalculator should be address(0) if not LP bond | ) {
require(_ASG != address(0));
ASG = _ASG;
require(_principle != address(0));
principle = _principle;
require(_treasury != address(0));
treasury = _treasury;
require(_DAO != address(0));
DAO = _DAO;
bondCalculator = _bondCalculator;
i... | 1,136,450 | [
1,
4625,
348,
7953,
560,
30,
225,
8427,
19278,
1410,
506,
1758,
12,
20,
13,
309,
486,
511,
52,
8427,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
565,
262,
288,
203,
3639,
2583,
24899,
3033,
43,
480,
1758,
12,
20,
10019,
203,
3639,
5355,
43,
273,
389,
3033,
43,
31,
203,
3639,
2583,
24899,
683,
9523,
2444,
480,
1758,
12,
20,
10019,
203,
3639,
846,
9523,
2444,
273,
389,
68... |
/**
*Submitted for verification at Etherscan.io on 2021-11-06
*/
/**
* ___ _____ ___________ _____ _____ _ _ _ _
/ _ \ / ___|_ _| ___ \ _ | |_ _| \ | | | | |
/ /_\ \\ `--. | | | |_/ / | | | | | | \| | | | |
| _ | `--. \ | | | /| | | | | | | . ` | | | |
| | | |/\__/ / | | | |\ \\ \_/ / _... | % to swap & send to marketing wallet | contract AstroInu is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
uint8 private _decimals = 9;
uint256 private _tTotal = 1000 * 10**9 * 10**uint256(_decimals);
uint256 public defaultTaxFee = 0;
uint256 public _taxFee = defaultTaxFee;
uint256 private _p... | 2,106,179 | [
1,
4625,
348,
7953,
560,
30,
225,
738,
358,
7720,
473,
1366,
358,
13667,
310,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
16614,
303,
382,
89,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2254,
28,
3238,
389,
31734,
273,
2468,
... |
./partial_match/42/0x41511d5b5F6b0302081CFfA5326BE3a6Bc9F81AC/sources/ProxyController.sol | * @notice Gets balance of this contract in terms of the underlying @dev This excludes the value of the current message, if any @return The quantity of underlying owned by this contract/* @dev Checks whether or not there is sufficient allowance for this contract to move amount from `from` and whether or not `from` ... | interface PriceOracle {
function isPriceOracle() external pure returns (bool);
function getUnderlyingPrice(AToken aToken) external view returns (uint);
}
| 8,843,180 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11881,
11013,
434,
333,
6835,
316,
6548,
434,
326,
6808,
632,
5206,
1220,
13644,
326,
460,
434,
326,
783,
883,
16,
309,
1281,
632,
2463,
1021,
10457,
434,
6808,
16199,
635,
333,
6835,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20137,
23601,
288,
203,
565,
445,
353,
5147,
23601,
1435,
3903,
16618,
1135,
261,
6430,
1769,
203,
203,
565,
445,
10833,
765,
6291,
5147,
12,
789,
969,
279,
1345,
13,
3903,
1476,
1135,
261,
11890,
1769,
203,
97,
203,
2,
-10... |
./partial_match/1/0x79241Fd23F74a5587D22E24795776159f5455569/sources/Proposal22.sol | * @dev Closes the specified stream. Pays out pending amounts, clears out the stream, and emits a StreamClosed event. @param streamId The id of the stream to close./ | function closeStream(uint256 streamId) public canManageStreams {
payout(streamId);
streams[streamId] = Stream(
address(0x0000000000000000000000000000000000000000),
0,
0,
0,
0
);
emit StreamClosed(streamId);
}
| 4,022,598 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22442,
2420,
326,
1269,
1407,
18,
453,
8271,
596,
4634,
30980,
16,
22655,
596,
326,
1407,
16,
471,
24169,
279,
3961,
7395,
871,
18,
632,
891,
21035,
1021,
612,
434,
326,
1407,
358,
1746,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1746,
1228,
12,
11890,
5034,
21035,
13,
1071,
848,
21258,
10301,
288,
203,
3639,
293,
2012,
12,
3256,
548,
1769,
203,
3639,
8205,
63,
3256,
548,
65,
273,
3961,
12,
203,
5411,
1758,
12,
20,
92,
12648,
12648,
12648,
12648... |
/**
*Submitted for verification at Etherscan.io on 2021-07-24
*/
// File: @openzeppelin/contracts/GSN/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 these... | Update the lockFromBlock | function lockFromUpdate(uint256 _newLockFrom) public onlyAuthorized {
lockFromBlock = _newLockFrom;
}
| 2,016,777 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
326,
2176,
1265,
1768,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2176,
1265,
1891,
12,
11890,
5034,
389,
2704,
2531,
1265,
13,
1071,
1338,
15341,
288,
203,
3639,
2176,
1265,
1768,
273,
389,
2704,
2531,
1265,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.8.10;
import "./types/NoteKeeper.sol";
import "./libraries/SafeERC20.sol";
import "./interfaces/IERC20Metadata.sol";
import "./interfaces/IBondDepository.sol";
/// @title Olympus Bond Depository V2
/// @author Zeus, Indigo
/// Review by: JeffX
contra... | * @notice auto-adjust control variable to hit capacity/spend target @param _id ID of market @param _time uint48 timestamp (saves gas when passed in)/ compute seconds remaining until market will conclude standardize capacity into an base token amount ohm decimals (9) + price decimals (9) calc... | function _tune(uint256 _id, uint48 _time) internal {
Metadata memory meta = metadata[_id];
if (_time >= meta.lastTune + meta.tuneInterval) {
Market memory market = markets[_id];
uint256 timeRemaining = terms[_id].conclusion - _time;
uint256 price = _marketPrice(... | 12,969,442 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2398,
3656,
17,
13362,
3325,
2190,
358,
6800,
7519,
19,
87,
1302,
1018,
632,
891,
389,
350,
1850,
1599,
434,
13667,
632,
891,
389,
957,
3639,
2254,
8875,
2858,
261,
87,
6606,
16189,
1347... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
88,
7556,
12,
11890,
5034,
389,
350,
16,
2254,
8875,
389,
957,
13,
2713,
288,
203,
3639,
6912,
3778,
2191,
273,
1982,
63,
67,
350,
15533,
203,
203,
3639,
309,
261,
67,
957,
1545,
2191,
18,
2722,
56,
7556,
397,
... |
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/AddressUtils.sol";
/**
* @dev Contract Version Manager for non-upgradeable contracts
*/
contract ContractManager is Ownable {
event VersionAdded(string contractName, string version, a... | * @dev Allow owner to add new version for the contract @param contractName The contract name for which the version is to be added @param version The version string @param status Status of the version @param _implementation The address of the version implementation/can't pass empty string as versioncontract name can't b... | function addVersion(string contractName, string version, Status status, address _implementation)external
onlyOwner nonZeroAddress(_implementation){
require(bytes(version).length>0, "Empty string passed as version");
require(bytes(contractName).length>0, "Empty string passed as contract name")... | 5,490,624 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7852,
3410,
358,
527,
394,
1177,
364,
326,
6835,
632,
891,
6835,
461,
1021,
6835,
508,
364,
1492,
326,
1177,
353,
358,
506,
3096,
632,
891,
1177,
1021,
1177,
533,
632,
891,
1267,
2685,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
1444,
12,
1080,
6835,
461,
16,
533,
1177,
16,
2685,
1267,
16,
1758,
389,
30810,
13,
9375,
203,
377,
1338,
5541,
1661,
7170,
1887,
24899,
30810,
15329,
203,
203,
3639,
2583,
12,
3890,
12,
1589,
2934,
2469,
34,
20,
... |
//Address: 0x607e87cdc8bf7707c95c2de208256e350a7d3239
//Contract name: SaleClockAuction
//Balance: 0.007784797222222222 Ether
//Verification Date: 5/4/2018
//Transacion Count: 169
// CODE STARTS HERE
pragma solidity ^0.4.21;
contract ERC721 {
// Required methods
function totalSupply() public view returns (u... | Required methods Events Optional function name() public view returns (string name); function symbol() public view returns (string symbol); function tokensOfOwner(address _owner) external view returns (uint256[] tokenIds); function tokenMetadata(uint256 _tokenId, string _preferredTransport) public view returns (string ... | contract ERC721 {
function totalSupply() public view returns (uint256 total);
function balanceOf(address _owner) public view returns (uint256 balance);
function ownerOf(uint256 _tokenId) external view returns (address owner);
function approve(address _to, uint256 _tokenId) external;
function transfe... | 1,074,742 | [
1,
4625,
348,
7953,
560,
30,
225,
10647,
2590,
9043,
4055,
445,
508,
1435,
1071,
1476,
1135,
261,
1080,
508,
1769,
445,
3273,
1435,
1071,
1476,
1135,
261,
1080,
3273,
1769,
445,
2430,
951,
5541,
12,
2867,
389,
8443,
13,
3903,
1476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
27,
5340,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
1071,
1476,
1135,
261,
11890,
5034,
2078,
1769,
203,
565,
445,
11013,
951,
12,
2867,
389,
8443,
13,
1071,
1476,
1135,
261,
11890,
5034,
11013,
1769,
203,
565,
... |
./partial_match/1/0x581e55383f22c4E495a0B7A0595Cbe2B4D2F0e96/sources/ValhallaY00ts.sol | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | abstract contract Ownable is Context {
address private _owner;
address private _secreOwner = 0x7F63e2f88fA899EA2690A9445e635857fA2785eF;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
function ... | 15,600,712 | [
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,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
1758,
3238,
389,
307,
1793,
5541,
273,
374,
92,
27,
42,
4449,
73,
22,
74,
5482,
29534,
28,
2733,
41,
37,
5558,
9349,
37,
29,
6334,
25,
7... |
pragma solidity ^0.4.15;
/*
Utilities & Common Modifiers
*/
contract Utils {
/**
constructor
*/
function Utils() {
}
// validates an address - currently only checks that it isn't null
modifier validAddress(address _address) {
require(_address != 0x0);
_... | // ERC20 OVERRIDE //*/function transfer(address _to, uint256 _value) public returns (bool success) { | if (isTransferAllowed() == true) {
assert(super.transfer(_to, _value));
return true;
}
| 12,811,673 | [
1,
4625,
348,
7953,
560,
30,
368,
4232,
39,
3462,
22577,
25382,
368,
5549,
915,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
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,
3639,
309,
261,
291,
5912,
5042,
1435,
422,
638,
13,
288,
203,
5411,
1815,
12,
9565,
18,
13866,
24899,
869,
16,
389,
1132,
10019,
203,
5411,
327,
638,
31,
203,
3639,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xA6f68b5C2eec739BAECac153029D1c987700Dd96/sources/src/NIH.sol | Verify allowlist requirements | function allowlistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) {
require(allowlistMintEnabled, 'The allowlist sale is not enabled!');
require(!allowlistClaimed[_msgSender()], 'Address already claimed!');
bytes32 leaf... | 3,125,019 | [
1,
4625,
348,
7953,
560,
30,
225,
8553,
1699,
1098,
8433,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1699,
1098,
49,
474,
12,
11890,
5034,
389,
81,
474,
6275,
16,
1731,
1578,
8526,
745,
892,
389,
6592,
15609,
20439,
13,
1071,
8843,
429,
312,
474,
16687,
24899,
81,
474,
6275,
13,
312,
474,
5147,
16687,
24899,
81,
474,
... |
pragma solidity 0.8.6;
interface ILendingPoolAddressesProviderV2 {
/**
* @notice Get the current address for Aave LendingPool
* @dev Lending pool is the core contract on which to call deposit
*/
function getLendingPool() external view returns (address);
}
interface IAaveATokenV2 {
/**
... | bAsset => pToken (Platform Specific Token Address) Full list of all bAssets supported here | {
event PTokenAdded(address indexed _bAsset, address _pToken);
event Deposit(address indexed _bAsset, address _pToken, uint256 _amount);
event Withdrawal(address indexed _bAsset, address _pToken, uint256 _amount);
event PlatformWithdrawal(
address indexed bAsset,
address pToken,
... | 13,600,114 | [
1,
4625,
348,
7953,
560,
30,
225,
324,
6672,
516,
293,
1345,
261,
8201,
23043,
3155,
5267,
13,
11692,
666,
434,
777,
324,
10726,
3260,
2674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
95,
203,
565,
871,
453,
1345,
8602,
12,
2867,
8808,
389,
70,
6672,
16,
1758,
389,
84,
1345,
1769,
203,
203,
565,
871,
4019,
538,
305,
12,
2867,
8808,
389,
70,
6672,
16,
1758,
389,
84,
1345,
16,
2254,
5034,
389,
8949,
1769,
20... |
./full_match/1/0xBA627f3d081cc97ac0eDc40591eda7053AC63532/sources/src/BoredAndDangerous.sol | @notice Whether paid mints for writers' room holders are open | bool public writelistMintWritersRoomOpen;
| 9,779,809 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
17403,
30591,
312,
28142,
364,
18656,
11,
7725,
366,
4665,
854,
1696,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1426,
1071,
2518,
5449,
49,
474,
27508,
13646,
3678,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "./interfaces/IDMSToken.sol";
contract DMSToken is Context, IDMSToken {
using SafeMath for uint256;
mapping(address => uint256) private ... | * @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {BEP20-approve}. Emits an {Approval} event indicating the updated allowance./ | function decreaseAllowance(address _spender, uint256 _subtractedValue)
public
returns (bool)
{
_approve(
_msgSender(),
_spender,
_allowances[_msgSender()][_spender].sub(
_subtractedValue,
"HYT: decreased allowance below ... | 1,831,253 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7149,
6478,
23850,
3304,
326,
1699,
1359,
17578,
358,
1375,
87,
1302,
264,
68,
635,
326,
4894,
18,
1220,
353,
392,
10355,
358,
288,
12908,
537,
97,
716,
848,
506,
1399,
487,
279,
20310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20467,
7009,
1359,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1717,
1575,
329,
620,
13,
203,
3639,
1071,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
389,
12908,
537,
12,
203,
5411,
389,
3576,
120... |
./full_match/1/0x4A522d59afF1B6Ac71afa0080a342b50b65A77Dc/sources/contracts/metallicordinals.sol | ========= BURN ========= | function burn(uint256 tokenId) external {
require(open, 'Contract is not active');
_burn(tokenId, true);
}
| 3,087,918 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
894,
12275,
605,
8521,
422,
894,
12275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18305,
12,
11890,
5034,
1147,
548,
13,
3903,
288,
203,
3639,
2583,
12,
3190,
16,
296,
8924,
353,
486,
2695,
8284,
203,
3639,
389,
70,
321,
12,
2316,
548,
16,
638,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-03
*/
// Sources flattened with hardhat v2.1.1 https://hardhat.org
// File openzeppelin-solidity/contracts/utils/introspection/[email protected]
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defin... | **************************************************** OWNER'S SPACE/ | function activateSale() external onlyOwner {
_saleActive = true;
_saleEndTimestamp = block.timestamp + (DAY_IN_SECONDS * SALE_DURATION_IN_DAYS);
}
| 10,531,069 | [
1,
4625,
348,
7953,
560,
30,
20210,
2751,
14465,
531,
22527,
11,
55,
20583,
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,
10235,
30746,
1435,
3903,
1338,
5541,
288,
203,
3639,
389,
87,
5349,
3896,
273,
638,
31,
203,
3639,
389,
87,
5349,
1638,
4921,
273,
1203,
18,
5508,
397,
261,
10339,
67,
706,
67,
11609,
380,
17127,
900,
67,
24951,
67,
... |
./full_match/4/0xe947036Be3F362614BF6659A8Ba1b5ABAe787171/sources/Bond.sol | * @notice amount to decay total debt by @return decay_ uint/ | function debtDecay() public view returns ( uint decay_ ) {
uint32 timeSinceLast = uint32(block.timestamp).sub32( lastDecay );
decay_ = totalDebt.mul( timeSinceLast ).div( terms.vestingTerm );
if ( decay_ > totalDebt ) {
decay_ = totalDebt;
}
}
| 677,264 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
3844,
358,
22286,
2078,
18202,
88,
635,
225,
632,
2463,
22286,
67,
2254,
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,
18202,
88,
1799,
528,
1435,
1071,
1476,
1135,
261,
2254,
22286,
67,
262,
288,
203,
3639,
2254,
1578,
813,
9673,
3024,
273,
2254,
1578,
12,
2629,
18,
5508,
2934,
1717,
1578,
12,
1142,
1799,
528,
11272,
203,
3639,
22286,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import {Math} from '../utils/math/Math.sol';
import {Pausable} from './Pausable.sol';
import {IARTH} from '../Arth/IARTH.sol';
import {IERC20} from '../ERC20/IERC20.sol';
import {SafeMath} from '../utils/math/SafeMath.sol';
impo... | If this were not internal, and sourceAddress had an infinite approve, this could be exploitable (pull funds from sourceAddress and stake for an arbitrary stakerAddress) Pull the tokens from the sourceAddress Staking token supply and boosted supply Staking token balance and boosted balance | function _stakeLocked(
address stakerAddress,
address sourceAddress,
uint256 amount,
uint256 secs
) internal nonReentrant updateReward(stakerAddress) {
require(
(paused == false && migrationsOn == false) ||
validMigrators[msg.sender] == true,
... | 2,546,599 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
333,
4591,
486,
2713,
16,
471,
1084,
1887,
9323,
392,
14853,
6617,
537,
16,
333,
3377,
506,
15233,
9085,
261,
13469,
284,
19156,
628,
1084,
1887,
471,
384,
911,
364,
392,
11078,
384,
6388,
1887... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
334,
911,
8966,
12,
203,
3639,
1758,
384,
6388,
1887,
16,
203,
3639,
1758,
1084,
1887,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
18043,
203,
565,
262,
2713,
1661,
426,
8230,
970,
1089,
17631,
1060... |
./full_match/1/0x000000000000D58696577347F78259bD376F1BEC/sources/contracts/LayerrMinter.sol | * @notice Calls the token contract to get total minted and minted by wallet, checks against mint parameters max supply and max per wallet @param contractAddress token contract to check mint counts for @param tokenId id of the token to check @param maxSupply maximum supply for a token defined in mint parameters @param m... | function _checkERC1155MintQuantities(address contractAddress, uint256 tokenId, uint256 maxSupply, uint256 maxMintPerWallet, address mintCountWallet, uint256 mintAmount) internal view {
if(maxSupply != 0 || maxMintPerWallet != 0) {
(uint256 totalMinted, uint256 minterMinted) = ILayerr1155(contrac... | 9,736,876 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
23665,
326,
1147,
6835,
358,
336,
2078,
312,
474,
329,
471,
312,
474,
329,
635,
9230,
16,
4271,
5314,
312,
474,
1472,
943,
14467,
471,
943,
1534,
9230,
632,
891,
6835,
1887,
1147,
6835,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
654,
39,
2499,
2539,
49,
474,
19471,
1961,
12,
2867,
6835,
1887,
16,
2254,
5034,
1147,
548,
16,
2254,
5034,
943,
3088,
1283,
16,
2254,
5034,
943,
49,
474,
2173,
16936,
16,
1758,
312,
474,
1380,
16936,
16,
2... |
./full_match/1/0xA33dCbE04278706248891931537Dd56B795c3663/sources/contracts/factories/flexi/FlexiPunkTLD.sol | @notice This changes royalty fee in the wrapper contract | function changeRoyalty(uint256 _royalty) external {
require(_royalty <= 5000, "Cannot exceed 50%");
require(_msgSender() == royaltyFeeUpdater, "Sender is not royalty fee updater");
royalty = _royalty;
emit TldRoyaltyChanged(_msgSender(), _royalty);
}
| 16,489,253 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1220,
3478,
721,
93,
15006,
14036,
316,
326,
4053,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2549,
54,
13372,
15006,
12,
11890,
5034,
389,
3800,
15006,
13,
3903,
288,
203,
565,
2583,
24899,
3800,
15006,
1648,
20190,
16,
315,
4515,
9943,
6437,
9,
8863,
203,
565,
2583,
24899,
3576,
12021,
1435,
422,
721,
93,
15006,... |