file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/1/0xDF8704582C08f9A208fF86F42876dCF4308d5435/sources/browser/staking.sol | set users token voted for | usr[msg.sender].voted = tkn;
| 3,101,271 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
3677,
1147,
331,
16474,
364,
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,
13640,
63,
3576,
18,
15330,
8009,
90,
16474,
273,
13030,
82,
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,
-1... |
// pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
// import "@openzeppelin/contracts/access/Ownable.sol"; //https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@o... | mapping of tokenId to (user/timestamp)
| mapping(uint256 => StakedData) public staked; | 5,534,742 | [
1,
4625,
348,
7953,
560,
30,
225,
2874,
434,
1147,
548,
358,
261,
1355,
19,
5508,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
934,
9477,
751,
13,
1071,
384,
9477,
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,... |
./full_match/43114/0x9727D535165e19590013bdDea8Fd85dd618b9aF7/sources/contracts/rewards/VestingStakingRewards.sol | Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders | function recoverERC20(address tokenAddress, uint256 tokenAmount)
external
onlyOwnerExec
nonReentrant
{
require(
tokenAddress != address(stakingToken),
"Cannot withdraw the staking token"
);
IERC20(tokenAddress).safeTransfer(owner(), tokenAm... | 4,628,627 | [
1,
4625,
348,
7953,
560,
30,
225,
25808,
358,
2865,
5910,
310,
511,
52,
534,
359,
14727,
628,
1308,
14908,
4123,
487,
605,
1013,
358,
506,
16859,
358,
366,
4665,
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,
5910,
654,
39,
3462,
12,
2867,
1147,
1887,
16,
2254,
5034,
1147,
6275,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
1905,
203,
3639,
1661,
426,
8230,
970,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
1147,
1887,
480,
... |
./full_match/4/0x0274e3DBbbE2Bc6f0e6F64e0b0406c34701639B1/sources/contracts/fuckup.sol | Edit reserved whitelist spots | function editWhitelistReserved(address[] memory _a, uint256[] memory _amount) public onlyOwner {
for(uint256 i; i < _a.length; i++){
whitelistReserved[_a[i]] = _amount[i];
}
}
| 788,557 | [
1,
4625,
348,
7953,
560,
30,
225,
15328,
8735,
10734,
1694,
6968,
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,
3874,
18927,
10435,
12,
2867,
8526,
3778,
389,
69,
16,
2254,
5034,
8526,
3778,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
364,
12,
11890,
5034,
277,
31,
277,
411,
389,
69,
18,
2469,
31,
277,
27245,
95,
203,
5411... |
pragma solidity ^0.4.15;
interface TokenInterface {
function mint(address _to, uint256 _amount) public returns (bool);
function finishMinting() public returns (bool);
function totalSupply() public constant returns (uint);
function balanceOf(address _address) public constant returns (uint);
function burn(address b... | * @dev transfer token for a specified address @param _to The address to transfer to. @param _value The amount to be transferred./ SafeMath.sub will throw if there is not enough balance. | function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
| 12,948,359 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7412,
1147,
364,
279,
1269,
1758,
632,
891,
389,
869,
1021,
1758,
358,
7412,
358,
18,
632,
891,
389,
1132,
1021,
3844,
358,
506,
906,
4193,
18,
19,
14060,
10477,
18,
1717,
903,
604,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
915,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
13,
288,
203,
202,
202,
6528,
24899,
869,
480,
1758,
12,
20,
10019,
203,
203,
202,
202,
70,
26488,
63,
3576,
18,
15330,
65,
273,
324,
2... |
./full_match/80001/0x9e931a143eC263C2eF9302ca6D859F80751f6941/sources/contracts/upgradeable/tokens/OpenSeaCollection.sol | solhint-disable-next-line ordering | function setName(string memory _name) public onlyRole(ADMIN_ROLE) nonEmptyString("name", _name) {
contractMetadata.name = _name;
_afterMetadataChange();
}
| 5,641,139 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
9543,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6788,
12,
1080,
3778,
389,
529,
13,
1071,
1338,
2996,
12,
15468,
67,
16256,
13,
1661,
1921,
780,
2932,
529,
3113,
389,
529,
13,
288,
203,
3639,
6835,
2277,
18,
529,
273,
389,
529,
31,
203,
3639,
389,
5205,
2277,
3043,... |
pragma solidity ^0.5.0;
// Spec L1
// LTLVariables: user:Ref
// LTLFairness: <>(finished(Crowdsale.buyTokens, (user == msg.sender))) && <>(finished(RefundableCrowdsale.claimRefund(ref), (ref == user)))
// LTLProperty: []((finished(FinalizableCrowdsale.finalize)) ==> <>(finished(send(from, to, amt), (to == user && amt ... | * @dev Source of tokens. Override this method to modify the way in which the crowdsale ultimately gets and sends its tokens. @param beneficiary Address performing the token purchase @param tokenAmount Number of tokens to be emitted/ | function _deliverTokens(address beneficiary, uint256 tokenAmount) internal {
SafeERC20.safeTransfer(_token, beneficiary, tokenAmount);
}
| 15,821,475 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4998,
434,
2430,
18,
1439,
333,
707,
358,
5612,
326,
4031,
316,
1492,
326,
276,
492,
2377,
5349,
225,
406,
381,
5173,
5571,
471,
9573,
2097,
2430,
18,
632,
891,
27641,
74,
14463,
814,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
389,
26672,
5157,
12,
2867,
27641,
74,
14463,
814,
16,
2254,
5034,
1147,
6275,
13,
2713,
288,
203,
3639,
14060,
654,
39,
3462,
18,
4626,
5912,
24899,
2316,
16,
27641,
74,
14463,
814,
16,
1147,
6275,
1769,
203,
565,
289,... |
./partial_match/1/0x32d5830F8d6D9Cdb36965C521E0e638d24c6B889/sources/Token.sol | * @dev Transfer token to a specified address. @param to The address to transfer to. @param value The amount to be transferred./ | function transfer(address to, uint256 value) public returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
| 4,218,585 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12279,
1147,
358,
279,
1269,
1758,
18,
632,
891,
358,
1021,
1758,
358,
7412,
358,
18,
632,
891,
460,
1021,
3844,
358,
506,
906,
4193,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
1071,
225,
1135,
261,
6430,
13,
288,
203,
3639,
389,
13866,
12,
3576,
18,
15330,
16,
358,
16,
460,
1769,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,... |
pragma solidity ^0.4.17;
import "./PayrollInterface.sol";
import "github.com/ConsenSys/Tokens/contracts/HumanStandardToken.sol";
import "github.com/pipermerriam/ethereum-datetime/contracts/DateTime.sol";
import "github.com/Dexaran/ERC223-token-standard/token/ERC223/ERC223_receiving_contract.sol";
/**
* @title Payrol... | * Tokens Handled @dev A list of Tokens managed by the contract/ | Token[] tokensHandled;
| 12,603,184 | [
1,
4625,
348,
7953,
560,
30,
380,
13899,
2841,
1259,
632,
5206,
432,
666,
434,
13899,
7016,
635,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
3155,
8526,
2430,
23186,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;
import "./Address.sol";
import "./IACOPool2.sol";
/**
* @title ACOPoolFactory
* @dev The contract is the implementation for the ACOProxy.
*/
contract ACOPoolFactory2 {
/**
* @dev Struct to store the ACO pool basic data.
*/
struct ACOP... | * @dev Function to set the ACO pool strategies permitted. Only can be called by the factory admin. @param strategy Address of the strategy. @param newPermission The permission to be set./ | function setAcoPoolStrategyPermission(address strategy, bool newPermission) onlyFactoryAdmin external virtual {
_setAcoPoolStrategyPermission(strategy, newPermission);
}
| 128,870 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
444,
326,
432,
3865,
2845,
20417,
15498,
18,
5098,
848,
506,
2566,
635,
326,
3272,
3981,
18,
632,
891,
6252,
5267,
434,
326,
6252,
18,
632,
891,
394,
5041,
1021,
4132,
358,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
37,
2894,
2864,
4525,
5041,
12,
2867,
6252,
16,
1426,
394,
5041,
13,
1338,
1733,
4446,
3903,
5024,
288,
203,
3639,
389,
542,
37,
2894,
2864,
4525,
5041,
12,
14914,
16,
394,
5041,
1769,
203,
565,
289,
203,
202,
20... |
pragma solidity ^0.4.11;
/*
This FYN token contract is derived from the vSlice ICO contract, based on the ERC20 token contract.
Additional functionality has been integrated:
* the function mintTokens() only callable from wallet, which makes use of the currentSwapRate() and safeToAdd() helpers
* the function mintR... | An additional parent of wallet contract called tokenswap, implementing almost the wallet fallback function calls the buyTokens function the wallet contract cannot selfdestruct during the tokenswap/ TYPES struct for the status of a pending operation. | contract multiowned {
function mintTokens(address newTokenHolder, uint etherAmount)
external
}
function mintReserve(address beneficiary)
external
}
function disableTokenSwapLock()
external
}
}
}
The standard Wallet contract, retrievable at
modified to include additional functionality, ... | 6,421,040 | [
1,
4625,
348,
7953,
560,
30,
225,
1922,
3312,
982,
434,
9230,
6835,
2566,
2430,
91,
438,
16,
19981,
23889,
326,
9230,
5922,
445,
4097,
326,
30143,
5157,
445,
326,
9230,
6835,
2780,
365,
5489,
8813,
4982,
326,
2430,
91,
438,
19,
3463... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3309,
995,
329,
288,
203,
203,
203,
225,
445,
312,
474,
5157,
12,
2867,
394,
1345,
6064,
16,
2254,
225,
2437,
6275,
13,
203,
565,
3903,
203,
225,
289,
203,
203,
225,
445,
312,
474,
607,
6527,
12,
2867,
27641,
74,
14463,
... |
./full_match/1/0x42c98B354Ea1232Bf2820842905f45732665969F/sources/contracts/ChainLinkTest.sol | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
function symbol() external view returns (string memory);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount)
external
returns (bool);
f... | 9,602,025 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
3273,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
22... |
/*
https://powerpool.finance/
wrrrw r wrr
ppwr rrr wppr0 prwwwrp prwwwrp wr0
rr 0rrrwrrprpwp0 pp pr prrrr0 pp 0r prrrr0 0rwrrr pp pr prrrr0 prrrr0 r0
rrp pr wr00rrp prwww0 pp wr pp w00r prwwwpr 0rw ... | Absorb any tokens that have been sent to this contract into the pool | function gulp(address token)
external
_logs_
_lock_
{
_checkBound(token);
_records[token].balance = IERC20(token).balanceOf(address(this));
}
| 360,489 | [
1,
4625,
348,
7953,
560,
30,
225,
15084,
16640,
1281,
2430,
716,
1240,
2118,
3271,
358,
333,
6835,
1368,
326,
2845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
18568,
12,
2867,
1147,
13,
203,
3639,
3903,
203,
3639,
389,
10011,
67,
203,
3639,
389,
739,
67,
203,
565,
288,
203,
3639,
389,
1893,
3499,
12,
2316,
1769,
203,
3639,
389,
7094,
63,
2316,
8009,
12296,
273,
467,
654,
39... |
pragma solidity 0.5.8;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
// DO NOT USE. Not complete
contract DAO
{
using SafeMath for uint;
enum Vote
{
NoVote,
For,
Against
}
struct Member
{
address payable memberA... | If you added the proposal, you're assumed to be in favor | function addProposal(
address contractAddress,
bytes memory transactionBytes,
uint value
) onlyMembers public
{
require(contractAddress != address(0));
require(transactionBytes.length != 0);
uint proposalId = proposalCount++;
idToProposal[proposalId] = Proposal(contractAddress, transac... | 6,480,293 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
1846,
3096,
326,
14708,
16,
1846,
4565,
12034,
358,
506,
316,
18552,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
527,
14592,
12,
203,
565,
1758,
6835,
1887,
16,
203,
565,
1731,
3778,
2492,
2160,
16,
203,
565,
2254,
460,
203,
225,
262,
1338,
6918,
1071,
203,
225,
288,
203,
565,
2583,
12,
16351,
1887,
480,
1758,
12,
20,
10019,
203... |
./full_match/1/0x3265224513e1a9bA039D8cf64c71F69135e3D063/sources/browser/presale1.sol | @dev ERC20 token address and decimals@dev amount of tokens per ether 100 indicates 1 token per eth@dev decimal for tokenRatePerEth,2 means if you want 100 tokens per eth then set the rate as 100 + number of rateDecimals i.e => 10000@dev max and min token buy limit per account | contract Presale is Owned {
using SafeMath for uint256;
bool public isPresaleOpen;
address public tokenAddress;
uint256 public tokenDecimals = 18;
uint256 public tokenRatePerEth = 1000_00;
uint256 public rateDecimals = 2;
uint256 public minEthLimit = 500 finney;
uint2... | 16,519,268 | [
1,
4625,
348,
7953,
560,
30,
632,
5206,
4232,
39,
3462,
1147,
1758,
471,
15105,
36,
5206,
3844,
434,
2430,
1534,
225,
2437,
2130,
8527,
404,
1147,
1534,
13750,
36,
5206,
6970,
364,
1147,
4727,
2173,
41,
451,
16,
22,
4696,
309,
1846,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18346,
5349,
353,
14223,
11748,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
377,
203,
565,
1426,
1071,
353,
12236,
5349,
3678,
31,
203,
377,
203,
565,
1758,
1071,
1147,
1887,
31,
203,
565,
2254,
5034,
1071,
... |
./full_match/1/0xA05F7363d32d96A611bdF252379d3719964ECA02/sources/contracts/FloorJackv1.sol | called when someone wants to buy a token held by the contract | function buy(uint256 _tokenId) payable external {
uint256 price = floorPrice + floorMarkup;
require(msg.value == price, "Check price");
require(ownedTokenIDs[_tokenId] == true, "Token not available");
ownedTokenIDs[_tokenId] = false;
emit NFTBought(msg.sender, price);
... | 17,151,861 | [
1,
4625,
348,
7953,
560,
30,
225,
2566,
1347,
18626,
14805,
358,
30143,
279,
1147,
15770,
635,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
30143,
12,
11890,
5034,
389,
2316,
548,
13,
8843,
429,
3903,
288,
203,
3639,
2254,
5034,
6205,
273,
6346,
5147,
397,
6346,
13111,
31,
203,
3639,
2583,
12,
3576,
18,
1132,
422,
6205,
16,
315,
1564,
6205,
8863,
203,
3639,... |
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
... | mint the cTokens and assert there is no error | _cToken.mint.value(address(this).balance)();
| 10,418,648 | [
1,
4625,
348,
7953,
560,
30,
225,
312,
474,
326,
276,
5157,
471,
1815,
1915,
353,
1158,
555,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
389,
71,
1345,
18,
81,
474,
18,
1132,
12,
2867,
12,
2211,
2934,
12296,
13,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/40/0x3f7Bcc8F5B0e720a798b464A29126197E9292a15/sources/contracts/ZappyAVAXwTLOS.sol | Modular function to set the transaction path output-lpToken0 | function setWrappedToLp1Path(address[] memory _path) external onlyAdmin {
require (_path[0] == output && _path[_path.length - 1] == avax, "!path");
wrappedToLp1Path = _path;
emit SetOutputToLp1Path(_path);
}
| 9,549,385 | [
1,
4625,
348,
7953,
560,
30,
225,
3431,
2490,
445,
358,
444,
326,
2492,
589,
876,
17,
9953,
1345,
20,
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,
445,
444,
17665,
774,
48,
84,
21,
743,
12,
2867,
8526,
3778,
389,
803,
13,
3903,
1338,
4446,
288,
203,
3639,
2583,
261,
67,
803,
63,
20,
65,
422,
876,
597,
389,
803,
63,
67,
803,
18,
2469,
300,
404,
65,
422,
1712,
651,... |
./full_match/80001/0xFdEB246f818404b8F3c9a8aD88b7fe3d6D809f72/sources/contracts/PledgeStakeV2.sol | Update rewards after unstaking
| _updateRewards(msg.sender); | 5,598,510 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
283,
6397,
1839,
640,
334,
6159,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
2725,
17631,
14727,
12,
3576,
18,
15330,
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,... |
// SPDX-License-Identifier: MIT
// Smart Contract Written by: Ian Olson
pragma solidity ^0.8.4;
pragma abicoder v2;
contract DummyContract {
// ---
// Properties
// ---
address private _payoutAddress;
// ---
// Mappings
// ---
mapping(address => bool) isAdmin;
// ---
// Modi... | @dev Update the payout address. @author Ian Olson | function updatePayoutAddress(address payoutAddress) public onlyAdmin {
_payoutAddress = payoutAddress;
}
| 7,692,463 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2315,
326,
293,
2012,
1758,
18,
632,
4161,
467,
304,
531,
80,
816,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
52,
2012,
1887,
12,
2867,
293,
2012,
1887,
13,
1071,
1338,
4446,
288,
203,
3639,
389,
84,
2012,
1887,
273,
293,
2012,
1887,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.8.6;
import "./libraries/Margin.sol";
import "./libraries/ReplicationMath.sol";
import "./libraries/Reserve.sol";
import "./libraries/SafeCast.sol";
import "./libraries/Transfers.sol";
import "./libraries/Units.sol";
import "./interfaces/callback/IPrimitiveCr... | @inheritdoc IPrimitiveEngineView | uint256 public immutable override scaleFactorRisky;
| 14,610,506 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
9840,
4410,
1767,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
11732,
3849,
3159,
6837,
54,
10175,
93,
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,
... |
pragma solidity ^0.4.20;
/*
ETC Version:
https://etherhub.io/addr/0xc2dc5e825faeb9bd274b61a2993f4f8949af4a21
*/
contract BlackPearlETH {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders()... | * Function for the frontend to dynamically retrieve the price scaling of sell orders./ | function calculateEthereumReceived(uint256 _tokensToSell)
public
view
returns(uint256)
{
require(_tokensToSell <= tokenSupply_);
uint256 _ethereum = tokensToEthereum_(_tokensToSell);
uint256 _dividends = SafeMath.div(SafeMath.mul(_ethereum, exitFee_), 100);
... | 565,036 | [
1,
4625,
348,
7953,
560,
30,
380,
4284,
364,
326,
15442,
358,
18373,
4614,
326,
6205,
10612,
434,
357,
80,
11077,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4604,
41,
18664,
379,
8872,
12,
11890,
5034,
389,
7860,
774,
55,
1165,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
12,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
24899,
7860,
774,
55,
1165,
1648,
1147,
... |
//Address: 0x1ffdbcecea31ea4f8a659f6ba0dc314983db872d
//Contract name: ClientsHandler
//Balance: 0 Ether
//Verification Date: 4/30/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.21;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control... | clients tasks counter
| uint256[] internal pf_m_count; | 898,062 | [
1,
4625,
348,
7953,
560,
30,
225,
7712,
4592,
3895,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
8526,
2713,
10811,
67,
81,
67,
1883,
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,
-10... |
// SPDX-License-Identifier: MIT
// Special Thanks to @BoringCrypto for his ideas and patience
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SignedSafeMath.sol
library SignedSafeMath {
int256 constant private _I... | @notice Add a new LP to the pool. Can only be called by the owner. DO NOT add the same LP token more than once. Rewards will be messed up if you do. @param allocPoint AP of the new pool. @param _lpToken Address of the LP ERC-20 token. @param _rewarder Address of the rewarder delegate. | function add(uint256 allocPoint, IERC20 _lpToken, IRewarder _rewarder) public onlyOwner {
uint256 lastRewardBlock = block.number;
totalAllocPoint = totalAllocPoint.add(allocPoint);
lpToken.push(_lpToken);
rewarder.push(_rewarder);
poolInfo.push(PoolInfo({
allocPo... | 1,099,146 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1436,
279,
394,
511,
52,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
5467,
4269,
527,
326,
1967,
511,
52,
1147,
1898,
2353,
3647,
18,
534,
359,
14727,
903,
506,
1521... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
11890,
5034,
4767,
2148,
16,
467,
654,
39,
3462,
389,
9953,
1345,
16,
15908,
359,
297,
765,
389,
266,
20099,
13,
1071,
1338,
5541,
288,
203,
3639,
2254,
5034,
1142,
17631,
1060,
1768,
273,
1203,
18,
2696,
31,
... |
./full_match/1/0xD9F65f0d2135BeE238db9c49558632Eb6030CAa7/sources/contracts/party/PartyGovernanceNFT.sol | @notice Burn governance NFTs and remove their voting power. Can only be called by an authority before the party has started. @param tokenIds The IDs of the governance NFTs to burn. Authority needs to be able to burn cards during the initial crowdfund to process refunds but not after the party has started. Used... | function burn(uint256[] memory tokenIds) public onlyAuthority {
if (_governanceValues.totalVotingPower != 0) revert UnauthorizedToBurnError();
_burnAndUpdateVotingPower(tokenIds, false);
}
| 2,943,997 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
605,
321,
314,
1643,
82,
1359,
423,
4464,
87,
471,
1206,
3675,
331,
17128,
7212,
18,
4480,
1338,
540,
506,
2566,
635,
392,
11675,
1865,
326,
18285,
711,
5746,
18,
632,
891,
1147,
2673,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
11890,
5034,
8526,
3778,
1147,
2673,
13,
1071,
1338,
10962,
288,
203,
3639,
309,
261,
67,
75,
1643,
82,
1359,
1972,
18,
4963,
58,
17128,
13788,
480,
374,
13,
15226,
15799,
774,
38,
321,
668,
5621,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openze... | * @dev change mode to before public sale/ | function startBeforePublicSale() public onlyOwner {
_mode = 2;
}
| 1,530,471 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2549,
1965,
358,
1865,
1071,
272,
5349,
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,
... | [
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,
787,
4649,
4782,
30746,
1435,
1071,
1338,
5541,
288,
203,
3639,
389,
3188,
273,
576,
31,
203,
565,
289,
203,
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.8.9;
// Author: Khashkhuu 'Xass1on' Gankhuyag
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/TokenTimelock.sol";
import "@openzeppelin/contracts/utils/math... | ICO Founders, team and advisors World Cashmere Platform Airdrop Strategic resource Liquidity Marketing Strategic Investor Reserve Marketing | constructor() ERC20(_tokenName, _tokenSymbol) {
_mint(_tokenOfferAddress, _tokenToOffer * 10**18);
teamTimelock = new TokenTimelock(
this,
_tokenTeamReserveAddress,
block.timestamp + 60 * 60 * 24 * 365 * 1
);
_mint(address(teamTimelock), _tokenTea... | 15,789,605 | [
1,
4625,
348,
7953,
560,
30,
225,
467,
3865,
10750,
414,
16,
5927,
471,
1261,
3516,
1383,
21820,
385,
961,
81,
822,
11810,
432,
6909,
1764,
3978,
1287,
335,
1058,
511,
18988,
24237,
6622,
21747,
3978,
1287,
335,
5454,
395,
280,
1124,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
1435,
4232,
39,
3462,
24899,
2316,
461,
16,
389,
2316,
5335,
13,
288,
203,
3639,
389,
81,
474,
24899,
2316,
10513,
1887,
16,
389,
2316,
774,
10513,
380,
1728,
636,
2643,
1769,
203,
203,
3639,
5927,
10178,
292,
975,
273... |
./full_match/42/0x720a59AC0dD62bD9c87D5b051BF026Ce8DC0EA99/sources/browser/test_presale_staking.sol | listed as tokens for an entire Ether (10^18 wei). assumes sold tokens have 18 decimals in calculations.
| tokensPerEth[0] = (5500000 * 1e18); | 16,253,582 | [
1,
4625,
348,
7953,
560,
30,
12889,
487,
2430,
364,
392,
7278,
512,
1136,
261,
2163,
66,
2643,
732,
77,
2934,
13041,
272,
1673,
2430,
1240,
6549,
15105,
316,
20882,
18,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
7860,
2173,
41,
451,
63,
20,
65,
273,
261,
2539,
11706,
380,
404,
73,
2643,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/137/0xfecE55912861a401738604c52998604ba45115a1/sources/FuncAuthorizer.sol | @dev Default success. | function _postExecCheck(
TransactionData calldata transaction,
TransactionResult calldata callResult,
AuthorizerReturnData calldata preData
) internal view override returns (AuthorizerReturnData memory authData) {
authData.result = AuthResult.SUCCESS;
}
| 3,513,953 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2989,
2216,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2767,
1905,
1564,
12,
203,
3639,
5947,
751,
745,
892,
2492,
16,
203,
3639,
5947,
1253,
745,
892,
745,
1253,
16,
203,
3639,
25685,
990,
751,
745,
892,
675,
751,
203,
565,
262,
2713,
1476,
3849,
1135,
261,
17170,
9... |
/**
*Submitted for verification at Etherscan.io on 2021-07-08
*/
// Sources flattened with hardhat v2.4.0 https://hardhat.org
// File contracts/external/polygon/lib/RLPReader.sol
// Copied mostly from Polygon demo FxTunnel repo: https://github.com/jdkanani/fx-portal.
// There are two modifications such that this co... | * @title Adapter deployed on mainnet that validates and sends price requests from sidechain to the DVM on mainnet. @dev This contract must be a registered financial contract in order to make DVM price requests./ | contract OracleRootTunnel is OracleBaseTunnel, FxBaseRootTunnel, Lockable {
constructor(
address _checkpointManager,
address _fxRoot,
address _finderAddress
function publishPrice(
bytes32 identifier,
uint256 time,
bytes memory ancillaryData
) OracleBaseTunne... | 2,026,088 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14238,
19357,
603,
2774,
2758,
716,
11964,
471,
9573,
6205,
3285,
628,
4889,
5639,
358,
326,
463,
7397,
603,
2774,
2758,
18,
632,
5206,
1220,
6835,
1297,
506,
279,
4104,
574,
19292,
649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
28544,
2375,
20329,
353,
28544,
2171,
20329,
16,
478,
92,
2171,
2375,
20329,
16,
3488,
429,
288,
203,
565,
3885,
12,
203,
3639,
1758,
389,
25414,
1318,
16,
203,
3639,
1758,
389,
19595,
2375,
16,
203,
3639,
1758,
389,
15356,
... |
./partial_match/1/0xBCF85224fc0756B9Fa45aA7892530B47e10b6433/sources/src/v0.8/dev/OptimismSequencerUptimeFeed.sol | * @notice Helper function to update when a round was last updated @param roundId The round ID to update @param status Sequencer status/ | function updateRound(uint80 roundId, bool status) private {
uint64 updatedAt = uint64(block.timestamp);
s_rounds[roundId].updatedAt = updatedAt;
s_feedState.updatedAt = updatedAt;
emit RoundUpdated(getStatusAnswer(status), updatedAt);
}
| 4,175,997 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9705,
445,
358,
1089,
1347,
279,
3643,
1703,
1142,
3526,
632,
891,
3643,
548,
1021,
3643,
1599,
358,
1089,
632,
891,
1267,
3265,
372,
23568,
1267,
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,
225,
445,
1089,
11066,
12,
11890,
3672,
3643,
548,
16,
1426,
1267,
13,
3238,
288,
203,
565,
2254,
1105,
31944,
273,
2254,
1105,
12,
2629,
18,
5508,
1769,
203,
565,
272,
67,
27950,
63,
2260,
548,
8009,
7007,
861,
273,
31944,
31,
... |
./full_match/80001/0xCF65E807111c2CC4FCA69818107E3f8DCD570F70/sources/lib/contracts/contracts/smart-wallet/utils/BaseAccountFactory.sol | //*/ @notice Returns the address of an Account that would be deployed with the given admin signer. | View functions
function getAddress(address _adminSigner) public view returns (address) {
bytes32 salt = keccak256(abi.encode(_adminSigner));
return Clones.predictDeterministicAddress(accountImplementation, salt);
}
| 847,494 | [
1,
4625,
348,
7953,
560,
30,
368,
5549,
632,
20392,
2860,
326,
1758,
434,
392,
6590,
716,
4102,
506,
19357,
598,
326,
864,
3981,
10363,
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,
... | [
1,
1,
1,
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,
18701,
4441,
4186,
203,
203,
565,
445,
14808,
12,
2867,
389,
3666,
15647,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
1731,
1578,
4286,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
24899,
3666,
15647,
10019,
203,
3639,... |
./full_match/5/0x61b3E0fcEF001A8bcBd216c72bd78902ef8EA325/sources/project_/contracts/lib/env/Structs.sol | Check {Reward} type
| Reward reward; | 1,920,222 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
288,
17631,
1060,
97,
618,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
534,
359,
1060,
19890,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42161/0x26EFF6c28EB96330BE02d1C2CA1fF68Ae3b4bC08/sources/project_/contracts/Darwin1155.sol | * @return The Address of the implementation./ | function implementation() public override virtual view returns (address){
return _implementation;
}
| 16,305,661 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
1021,
5267,
434,
326,
4471,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4471,
1435,
1071,
3849,
5024,
1476,
1135,
261,
2867,
15329,
203,
1377,
327,
389,
30810,
31,
203,
225,
289,
203,
377,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// File: @openzeppelin/contracts/math/Math.sol
//
pragma solidity ^0.6.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a... | stake visibility is public as overriding LPTokenWrapper's stake() function | function stake(uint256 amount)
public
override
updateReward(msg.sender)
checkStart
{
require(amount > 0, 'BACUSDTPool: Cannot stake 0');
uint256 newDeposit = deposits[msg.sender].add(amount);
require(
newDeposit <= 20000e6,
'BACUSDT... | 5,976,903 | [
1,
4625,
348,
7953,
560,
30,
225,
384,
911,
9478,
353,
1071,
487,
19488,
511,
52,
1345,
3611,
1807,
384,
911,
1435,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
384,
911,
12,
11890,
5034,
3844,
13,
203,
3639,
1071,
203,
3639,
3849,
203,
3639,
1089,
17631,
1060,
12,
3576,
18,
15330,
13,
203,
3639,
866,
1685,
203,
565,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
296,
38,
2226... |
./full_match/1/0xBEcdC0946F21550B418152de05bbCF49D30b92aA/sources/browser/Reward.sol | not eligible for rewards | EnumerableSet.AddressSet private _blacklist;
| 4,850,756 | [
1,
4625,
348,
7953,
560,
30,
225,
486,
21351,
364,
283,
6397,
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,
6057,
25121,
694,
18,
1887,
694,
3238,
389,
22491,
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,
-... |
./partial_match/3/0xB615b32113106e4ed09C37488c3C8a4db6eA2795/sources/OhOhOh.sol | then until December 7 2020
| } else if(blockTime < 1607299200) { | 5,125,404 | [
1,
4625,
348,
7953,
560,
30,
225,
1508,
3180,
1505,
311,
81,
744,
2371,
26599,
20,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
289,
469,
309,
12,
2629,
950,
411,
2872,
8642,
22,
2733,
6976,
13,
288,
1850,
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,
... |
// SPDX-License-Identifier: GPL-3.0
/// @title The Nouns NFT descriptor
/*********************************
* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
* ░░░░░░█████████░░█████████░░░ *
* ░░░░░░██░░░████░░██░░░████░░░ *
* ░░██████░░░████████░░░████░░░ *
* ░░██░░██░░░████░░██░░░████░░░ *
... | * @notice Add a single color to a color palette. @dev This function can only be called by the owner./ | function addColorToPalette(uint8 _paletteIndex, string calldata _color)
external
override
onlyOwner
{
require(
palettes[_paletteIndex].length <= 287,
"Palettes can only hold 288 colors"
);
_addColorToPalette(_paletteIndex, _color);
}
| 10,042,698 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1436,
279,
2202,
2036,
358,
279,
2036,
12127,
18,
632,
5206,
1220,
445,
848,
1338,
506,
2566,
635,
326,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
2957,
774,
25863,
12,
11890,
28,
389,
26474,
1016,
16,
533,
745,
892,
389,
3266,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
25995,
278,
1078,
63,
6... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/uti... | * @dev Allows anyone to mint by purchasing/make sure the minter signed this offget priceif there is a price and the amount sent is less thanwe are okay to mint | function buy(address to, uint256 id, uint256 quantity, bytes memory proof)
external payable nonReentrant
{
if (ECDSA.recover(
ECDSA.toEthSignedMessageHash(
keccak256(abi.encodePacked("authorized", to))
),
proof
) != owner()) revert InvalidMint();
uint256 price = mintPr... | 14,365,843 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
1281,
476,
358,
312,
474,
635,
5405,
343,
11730,
19,
6540,
3071,
326,
1131,
387,
6726,
333,
3397,
588,
6205,
430,
1915,
353,
279,
6205,
471,
326,
3844,
3271,
353,
5242,
2353,
1814,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
30143,
12,
2867,
358,
16,
2254,
5034,
612,
16,
2254,
5034,
10457,
16,
1731,
3778,
14601,
13,
7010,
565,
3903,
8843,
429,
1661,
426,
8230,
970,
7010,
225,
288,
203,
565,
309,
261,
7228,
19748,
18,
266,
3165,
12,
203,
1... |
pragma solidity 0.5.8;
contract MessageReceiver {
// Each receiver manages messages for only one topic
string public topicName;
// Message key to message mapping for look-up
mapping(bytes32 => Message) public messages;
// Message key stored in an array for ordering/indexing
bytes32[] public messageList;
... | * @notice Send a new message to the "bus". Emits a MessageReceived event. @param key bytes32 The key for your message, should be unique @param newMessage string The message contents/ | function sendMessage(bytes32 key, string memory newMessage) public {
messageList.push(key);
messages[key].sender = msg.sender;
messages[key].message = newMessage;
emit MessageReceived(topicName, msg.sender, key);
}
| 14,065,407 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2479,
279,
394,
883,
358,
326,
315,
9274,
9654,
7377,
1282,
279,
2350,
8872,
871,
18,
632,
891,
498,
1731,
1578,
1021,
498,
364,
3433,
883,
16,
1410,
506,
3089,
632,
891,
394,
1079,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
15399,
12,
3890,
1578,
498,
16,
533,
3778,
394,
1079,
13,
1071,
288,
203,
565,
883,
682,
18,
6206,
12,
856,
1769,
203,
565,
2743,
63,
856,
8009,
15330,
273,
1234,
18,
15330,
31,
203,
565,
2743,
63,
856,
8009,
2150,
... |
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @notice s... | Set the name for display purposes
| name = "LADEMIA"; | 4,814,541 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
508,
364,
2562,
13694,
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,
3639,
508,
273,
315,
2534,
1639,
7492,
37,
14432,
4766,
565,
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,
... |
./full_match/1/0x9837Ce9825D52672Ca02533B5A160212bf901963/sources/contracts/plugins/assets/FiatCollateral.sol | set defaultThreshold to zero to create SelfReferentialCollateral | struct CollateralConfig {
pragma solidity 0.8.17;
}
| 16,407,557 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
805,
7614,
358,
3634,
358,
752,
18954,
426,
586,
2001,
13535,
2045,
287,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1697,
17596,
2045,
287,
809,
288,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
4033,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-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 2021-06-21
*/
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed... | eg: pay minor (if you don't, you can't do anything).. 'flashbots' minor? | uint256 _ethBalance = address(this).balance;
| 15,390,473 | [
1,
4625,
348,
7953,
560,
30,
225,
9130,
30,
8843,
8439,
261,
430,
1846,
2727,
1404,
16,
1846,
848,
1404,
741,
6967,
13,
838,
296,
13440,
4819,
87,
11,
8439,
35,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
389,
546,
13937,
273,
1758,
12,
2211,
2934,
12296,
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,
... |
./partial_match/1/0xBaBbfEEE65AB0c84337dc223169B2b8c91094f1B/sources/FXCMStake.sol | * @dev Library for managing an enumerable variant of Solidity's type. Maps have the following properties: - Entries are added, removed, and checked for existence in constant time (O(1)). - Entries are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { using EnumerableMap for Enumerab... | library EnumerableMap {
struct MapEntry {
bytes32 _key;
bytes32 _value;
}
struct Map {
MapEntry[] _entries;
mapping(bytes32 => uint256) _indexes;
}
function _set(
Map storage map,
bytes32 key,
bytes32 value
) private returns (bool) {
... | 2,893,911 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
18694,
364,
30632,
392,
14873,
5437,
434,
348,
7953,
560,
1807,
618,
18,
19837,
1240,
326,
3751,
1790,
30,
300,
19411,
854,
3096,
16,
3723,
16,
471,
5950,
364,
15782,
316,
5381,
813,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6057,
25121,
863,
288,
203,
203,
565,
1958,
1635,
1622,
288,
203,
3639,
1731,
1578,
389,
856,
31,
203,
3639,
1731,
1578,
389,
1132,
31,
203,
565,
289,
203,
203,
565,
1958,
1635,
288,
203,
3639,
1635,
1622,
8526,
389,
8219,... |
./partial_match/97/0x25e059fBe7d81b6ad6Ed8E325DcAC65F45E6eE8F/sources/GET_NFT_V3.sol | Mappings for the ticketIsuer data storage Mappings for the event data storage | contract metadataLogic {
mapping(address => TicketIssuerStruct) public allTicketIssuerStructs;
address[] public ticketIssuerAddresses;
mapping(address => EventStruct) public allEventStructs;
address[] public eventAddresses;
event newEventRegistered(address indexed eventAddress, string indexed e... | 11,423,061 | [
1,
4625,
348,
7953,
560,
30,
225,
1635,
4675,
364,
326,
9322,
2520,
6211,
501,
2502,
1635,
4675,
364,
326,
871,
501,
2502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1982,
20556,
288,
203,
203,
565,
2874,
12,
2867,
516,
22023,
16667,
3823,
13,
1071,
777,
13614,
16667,
3823,
87,
31,
203,
565,
1758,
8526,
1071,
9322,
16667,
7148,
31,
203,
203,
565,
2874,
12,
2867,
516,
2587,
3823,
13,
10... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';
import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol';
import './ERC721Upgradeab... | * @dev location_ == -1 – any location/ | function getSamsarTokensPool(int8 location_)
public
view
returns (TokenData[] memory)
{
TokenData[] memory samsarPool = new TokenData[](samsarIds.length);
uint256 samsarPoolIndex;
for (uint16 index; index < samsarIds.length; index++) {
uint256 tokenId... | 10,339,184 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2117,
67,
422,
300,
21,
225,
163,
227,
246,
1281,
2117,
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,
... | [
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,
1322,
301,
87,
297,
5157,
2864,
12,
474,
28,
2117,
67,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
1345,
751,
8526,
3778,
13,
203,
565,
288,
203,
3639,
3155,
751,
8526,
3778,
16260,
87,
297,
2864,
273,... |
./partial_match/1/0xAd100C81305244a32372Bc307AB247864ce6c68a/sources/BKRW.sol | * @dev Sets individual's transferFeeNumerator and transferFeeDenominator. Its precedence is higher than global transfer fee./ | function setIndividualTransferFee(
address addr,
uint256 numerator,
uint256 denominator
) public onlyOwner {
require(
numerator < denominator,
"numerator is equal to or greater than denominator"
);
_individualTransferFee[addr].numerator = n... | 3,982,375 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
7327,
1807,
7412,
14667,
2578,
7385,
471,
7412,
14667,
8517,
26721,
18,
29517,
14172,
353,
10478,
2353,
2552,
7412,
14036,
18,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29834,
5912,
14667,
12,
203,
3639,
1758,
3091,
16,
203,
3639,
2254,
5034,
16730,
16,
203,
3639,
2254,
5034,
15030,
203,
565,
262,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
16730,
411,
15030,
16,
203,
5... |
./full_match/80001/0x318bb19Ffe50bbbd30d750dD5a8474a5856e8d81/sources/_thirdweb-dev/contracts/base/ERC1155LazyMint.sol | //*/* @notice Returns the total supply of NFTs of a given tokenId @dev Mapping from tokenId => total circulating supply of NFTs of that tokenId.///*/ | ) internal onlyInitializing {
__ERC1155_init(_name, _symbol);
_setupOwner(_msgSender());
_setupPlatformFeeInfo(_royaltyRecipient, _royaltyBps);
_setupDefaultRoyaltyInfo(_royaltyRecipient, _royaltyBps);
_setupPrimarySaleRecipient(_royaltyRecipient);
_... | 5,674,121 | [
1,
4625,
348,
7953,
560,
30,
368,
5549,
14,
225,
632,
20392,
2860,
326,
2078,
14467,
434,
423,
4464,
87,
434,
279,
864,
1147,
548,
225,
632,
5206,
9408,
628,
1147,
548,
516,
2078,
5886,
1934,
1776,
14467,
434,
423,
4464,
87,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
2713,
1338,
29782,
288,
203,
3639,
1001,
654,
39,
2499,
2539,
67,
2738,
24899,
529,
16,
389,
7175,
1769,
203,
3639,
389,
8401,
5541,
24899,
3576,
12021,
10663,
203,
540,
203,
3639,
389,
8401,
8201,
14667,
966,
24899,
3800... |
pragma solidity ^0.5.4;
/**
* ERC20 contract interface.
*/
contract ERC20 {
function totalSupply() public view returns (uint);
function decimals() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spen... | * @dev Get the amount of investment in a given token. @param _wallet The target wallet. @param _token The token address. @return The value in tokens of the investment (including interests) and the time at which the investment can be removed./ | function getInvestment(
BaseWallet _wallet,
address _token
)
external
view
returns (uint256 _tokenValue, uint256 _periodEnd)
{
_tokenValue = _token == address(daiToken) ? dsrBalance(_wallet) : 0;
_periodEnd = 0;
}
| 2,472,132 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
326,
3844,
434,
2198,
395,
475,
316,
279,
864,
1147,
18,
632,
891,
389,
19177,
1021,
1018,
9230,
18,
632,
891,
389,
2316,
1021,
1147,
1758,
18,
632,
2463,
1021,
460,
316,
2430,
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,
336,
3605,
395,
475,
12,
203,
3639,
3360,
16936,
389,
19177,
16,
203,
3639,
1758,
389,
2316,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
389,
2316,
620,
16,
2254,
5034,
389,
6908,... |
// SPDX-License-Identifier: MIT
// Copyright 2021 Primitive Finance
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// us... | * @notice Uses this contract's balance of underlyingTokens to mint optionTokens to `receiver`. @param optionToken The Primitive Option to mint. @param receiver The address that will received the minted long and short optionTokens. @return (uint, uint) Returns the (long, short) option tokens minted/ | function _mintOptionsToReceiver(IOption optionToken, address receiver)
internal
returns (uint256, uint256)
{
address underlying = optionToken.getUnderlyingTokenAddress();
return optionToken.mintOptions(receiver);
}
| 11,694,694 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
225,
14854,
333,
6835,
1807,
11013,
434,
6808,
5157,
358,
312,
474,
1456,
5157,
358,
1375,
24454,
8338,
632,
891,
282,
1456,
1345,
1021,
14488,
2698,
358,
312,
474,
18,
632,
891,
282,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1320,
774,
12952,
12,
45,
1895,
1456,
1345,
16,
1758,
5971,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
11890,
5034,
16,
2254,
5034,
13,
203,
565,
288,
203,
3639,
1758,
6808,
273,
1456,
1345,
18,
588,
146... |
pragma solidity 0.7.0;
import "./Modules/Administration.sol";
import "./Math/SafeMath.sol";
import "./Interfaces/ERC20Interface.sol";
contract PaymentChannels is Administration {
using SafeMath for uint256;
string constant public VERSION = "0.4.3alpha";
bytes private prefix = "\x19Ethereum Signed Message:\n32"... | / make sure that only the source is allowed to invoke this function | function expireErcChannel(
bytes32 _channelId,
address _tokenAddress)
public
returns (bool)
{
require(channelIds[_channelId]);
require(ercChannels[_channelId].state == ChannelStates.opened);
require(msg.sender == ercChannels[_channelId].source);
require(_tokenAddress == ercChannels[_channelId].tokenAd... | 1,779,692 | [
1,
4625,
348,
7953,
560,
30,
342,
1221,
3071,
716,
1338,
326,
1084,
353,
2935,
358,
4356,
333,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
202,
915,
6930,
41,
1310,
2909,
12,
203,
202,
202,
3890,
1578,
389,
4327,
548,
16,
203,
202,
202,
2867,
389,
2316,
1887,
13,
203,
202,
202,
482,
203,
202,
202,
6154,
261,
6430,
13,
203,
202,
95,
203,
202,
202,
6528,
12,
4327,... |
/**
*Submitted for verification at Etherscan.io on 2021-04-01
*/
// SPDX-License-Identifier: Unlicense
pragma solidity 0.6.12;
// Part: AddressUpgradeable
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
... | * @notice Get price in USD multiplied by 1e8. Returns 0 if no feed found. @param currencyKey Token symbol converted to bytes32/ USD feeds are already scaled by 1e8 so don't need to scale again USD feeds are scaled by 1e8 and ETH feeds by 1e18 so need to divide by 1e18 For USD just return a price of 1 | function getPrice(bytes32 currencyKey) public view returns (uint256) {
address usdFeed = usdFeeds[currencyKey];
if (usdFeed != address(0)) {
return _latestPrice(usdFeed);
}
address ethFeed = ethFeeds[currencyKey];
address ethUsdFeed = usdFeeds[ETH];
if (e... | 7,646,888 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
6205,
316,
587,
9903,
27789,
635,
404,
73,
28,
18,
2860,
374,
309,
1158,
4746,
1392,
18,
632,
891,
5462,
653,
3155,
3273,
5970,
358,
1731,
1578,
19,
587,
9903,
27684,
854,
1818,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25930,
12,
3890,
1578,
5462,
653,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
1758,
584,
72,
8141,
273,
584,
72,
8141,
87,
63,
7095,
653,
15533,
203,
3639,
309,
261,
407,
72,
8141,
480,
1758,
12,
20,
... |
./full_match/1/0x9b036F89B2B52fc735719E71a6d31B6c3633F4B4/sources/contracts/OraclePoS.sol | @notice Functino to return the latest day on which the Oracle is updated | function getLastIndexedDay() external view override returns (uint32) {
return lastIndexedDay;
}
| 17,148,412 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
478,
6931,
15020,
358,
327,
326,
4891,
2548,
603,
1492,
326,
28544,
353,
3526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7595,
15034,
4245,
1435,
3903,
1476,
3849,
1135,
261,
11890,
1578,
13,
288,
203,
3639,
327,
7536,
329,
4245,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x9DAdbc52D12e24b7D7dE68477c8478Aed4468DA6/sources/contracts/libraries/CrossDomainEnabledFast.sol | * @title CrossDomainEnabledFast @dev Helper contract for contracts performing cross-domain communications Compiler used: defined by inheriting contract Runtime target: defined by inheriting contract/ Messenger contract used to send and receive messages from the other domain. | contract CrossDomainEnabledFast {
address public senderMessenger;
address public relayerMessenger;
constructor(
address _senderMessenger,
address _relayerMessenger
pragma solidity >0.7.5;
import { ICrossDomainMessenger } from "@eth-optimism/contracts/contracts/libraries/bridge/ICrossDomain... | 3,712,459 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
19742,
3748,
1526,
12305,
632,
5206,
9705,
6835,
364,
20092,
14928,
6828,
17,
4308,
18279,
87,
12972,
1399,
30,
2553,
635,
6811,
310,
6835,
2509,
1018,
30,
2553,
635,
6811,
310,
6835,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19742,
3748,
1526,
12305,
288,
203,
203,
565,
1758,
1071,
5793,
29329,
31,
203,
565,
1758,
1071,
1279,
1773,
29329,
31,
203,
203,
565,
3885,
12,
203,
3639,
1758,
389,
15330,
29329,
16,
203,
3639,
1758,
389,
2878,
1773,
29329... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.2;
pragma experimental ABIEncoderV2;
/**
* @title An Ether or token balance scanner
* @author Maarten Zuidhoorn
* @author Luit Hollander
*/
contract BalanceScanner {
/**
* @notice Get the Ether balance for all addresses specified
* @param addresses The ... | * @notice Get the Ether balance for all addresses specified @param addresses The addresses to get the Ether balance for @return balances The Ether balance for all addresses in the same order as specified/ | function etherBalances(address[] calldata addresses) external view returns (uint256[] memory balances) {
balances = new uint256[](addresses.length);
for (uint256 i = 0; i < addresses.length; i++) {
balances[i] = addresses[i].balance;
}
}
| 2,048,599 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
326,
512,
1136,
11013,
364,
777,
6138,
1269,
632,
891,
6138,
1021,
6138,
358,
336,
326,
512,
1136,
11013,
364,
632,
2463,
324,
26488,
1021,
512,
1136,
11013,
364,
777,
6138,
316,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
225,
2437,
38,
26488,
12,
2867,
8526,
745,
892,
6138,
13,
3903,
1476,
1135,
261,
11890,
5034,
8526,
3778,
324,
26488,
13,
288,
203,
565,
324,
26488,
273,
394,
2254,
5034,
8526,
12,
13277,
18,
2469,
1769,
203,
203,
565,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
/**
* @title Abstract prize split contract for adding unique award distrib... | * @notice Updates a previously set prize split config. @dev Updates a prize split config by passing a new PrizeSplitConfig struct and current index position. Limited to contract owner. @param prizeStrategySplit PrizeSplitConfig config struct @param prizeSplitIndex Index position of PrizeSplitConfig to update/ Update th... | function setPrizeSplit(PrizeSplitConfig memory prizeStrategySplit, uint8 prizeSplitIndex) external onlyOwner {
require(prizeSplitIndex < _prizeSplits.length, "MultipleWinners/nonexistent-prizesplit");
require(prizeStrategySplit.token <= 1, "MultipleWinners/invalid-prizesplit-token");
require(prizeStrategy... | 7,325,416 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15419,
279,
7243,
444,
846,
554,
1416,
642,
18,
632,
5206,
15419,
279,
846,
554,
1416,
642,
635,
9588,
279,
394,
2301,
554,
5521,
809,
1958,
471,
783,
770,
1754,
18,
7214,
329,
358,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
444,
2050,
554,
5521,
12,
2050,
554,
5521,
809,
3778,
846,
554,
4525,
5521,
16,
2254,
28,
846,
554,
5521,
1016,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
12,
683,
554,
5521,
1016,
411,
389,
683,
554,
16582,
18,
2469,... |
pragma solidity ^ 0.4 .25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyApp {
using SafeMath
for uint256;
//Data Variables
FlightSuretyData flightSuretyData;
// Flight status codes
uint8 private constant STATUS_CODE_UNKNOWN = 0;
uint8 pr... | Model for responses from oracles This lets us group responses and identify the response that majority of the oracles | struct ResponseInfo {
}
event FlightStatusInfo(address airline, bytes32 flight, uint256 timestamp, uint8 status);
event OracleReport(address airline, bytes32 flight, uint256 timestamp, uint8 status);
event CreditAccount(bytes32 flight, address insuredAddress);
| 12,783,981 | [
1,
4625,
348,
7953,
560,
30,
225,
3164,
364,
7220,
628,
578,
69,
9558,
1220,
14557,
584,
1041,
7220,
471,
9786,
326,
766,
716,
7888,
560,
434,
326,
578,
69,
9558,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
2306,
966,
288,
203,
565,
289,
203,
203,
203,
203,
565,
871,
3857,
750,
1482,
966,
12,
2867,
23350,
1369,
16,
1731,
1578,
25187,
16,
2254,
5034,
2858,
16,
2254,
28,
1267,
1769,
203,
203,
565,
871,
28544,
4820,
12,
28... |
// SPDX-License-Identifier: MIT
/*
This is a smart contract to implement the functionality of Decentralised Domain Authentication on Ethereum blockchain.
Authors : Mohammed Sufiyan Aman, Riyanchhi Agrawal, Shakshi Pandey, Shehyaaz Khan Nayazi
*/
pragma solidity ^0.6.0;
import "./CheckAbstract.sol";
import "./DRPAbstr... | internal misbehaviour payment(mi) = 90%
| uint8 constant private internal_misbehaviour = 9; | 5,369,834 | [
1,
4625,
348,
7953,
560,
30,
225,
2713,
7524,
31772,
477,
5184,
12,
9197,
13,
273,
8566,
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,
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,
2254,
28,
5381,
3238,
2713,
67,
11173,
31772,
477,
273,
2468,
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,
-1... |
./full_match/335/0x0f187eF0E6AD1993bE507e3Bdc01e1FB86db9F31/sources/contracts/DarkMarketAuction.sol | Total incentives paid to bidders who are outbid
| uint256 totalIncentives; | 7,098,787 | [
1,
4625,
348,
7953,
560,
30,
225,
10710,
316,
2998,
3606,
30591,
358,
324,
1873,
414,
10354,
854,
596,
19773,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
2078,
382,
2998,
3606,
31,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x54FFCE9bE0C17840103e5b28408932A2C6cC7ED4/sources/contracts/FiveDollarRenewalController.sol | Convert the unit price from USD to Wei. | function rentPrice(bytes memory name, uint256 duration)
public
view
override (BaseRenewalController, IRenewalController)
returns (uint256)
{
return usdToWei(dollarsPerSecond * duration);
}
| 7,064,032 | [
1,
4625,
348,
7953,
560,
30,
225,
4037,
326,
2836,
6205,
628,
587,
9903,
358,
1660,
77,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
496,
5147,
12,
3890,
3778,
508,
16,
2254,
5034,
3734,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
261,
2171,
24058,
287,
2933,
16,
15908,
275,
359,
287,
2933,
13,
203,
3639,
1135,
261,
11890,
5034,
13,
... |
./full_match/84531/0xc2AFA9372f6Aba05961Ba35C017f8a4b1790C466/sources/ERC20.sol | * @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements: - `account` cannot be the zero address./ | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
require(_totalSupply+amount<=_maxTotalSupply, "ERC20: mint amount exceeds maxTotalSupply");
_beforeTokenTransfer(address(0), account, amount);
_total... | 14,313,647 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
471,
22698,
2182,
358,
1375,
4631,
9191,
21006,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
2080,
68,
444,
358,
326,
3634,
1758,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
312,
474,
358,
326,
3634,
1758,
8863,
203,
3639,
2583,
24899,
4963,
... |
/**
░█████╗░██╗░░░░░██╗░░░░░ ░██████╗████████╗░█████╗░██████╗░░██████╗ ████████╗░█████╗░██╗░░██╗███████╗███╗░░██╗
██╔══██╗██║░░░░░██║░░░░░ ██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔════╝ ╚══██╔══╝██╔══██╗██║░██╔╝██╔════╝████╗░██║
███████║██║░░░░░██║░░░░░ ╚█████╗░░░░██║░░░███████║██████╔╝╚█████╗░ ░░░██║░░░██║░░██║███... | Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract CHAMPS is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public ecosystemWallet;
address public charit... | 1,336,178 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
6469,
2192,
5857,
225,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount o... | * @dev ERC20 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug./ | abstract contract ERC20Pausable is ERC20, Pausable {
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual override {
super._beforeTokenTransfer(from, to, amount);
require(!paused(), "ERC20Pausable: token transfer while paused");
... | 250,772 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4232,
39,
3462,
1147,
598,
6790,
16665,
1147,
29375,
16,
312,
474,
310,
471,
18305,
310,
18,
19256,
364,
22456,
4123,
487,
5309,
310,
1284,
5489,
3180,
326,
679,
434,
392,
9873,
3879,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
3462,
16507,
16665,
353,
4232,
39,
3462,
16,
21800,
16665,
288,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
262,... |
./full_match/10/0x51058D7bdA2661E134cC40137fC04Cf3a9087e53/sources/contracts/core/connext/facets/StableSwapFacet.sol | * @notice Calculate the amount of underlying token available to withdraw when withdrawing via only single token @param key Hash of the canonical id + domain @param tokenAmount the amount of LP token to burn @param tokenIndex index of which token will be withdrawn @return availableTokenAmount calculated amount of underl... | function calculateRemoveSwapLiquidityOneToken(
bytes32 key,
uint256 tokenAmount,
uint8 tokenIndex
) external view returns (uint256 availableTokenAmount) {
return s.swapStorages[key].calculateWithdrawOneToken(tokenAmount, tokenIndex);
}
| 3,781,474 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9029,
326,
3844,
434,
6808,
1147,
2319,
358,
598,
9446,
1347,
598,
9446,
310,
3970,
1338,
2202,
1147,
632,
891,
498,
2474,
434,
326,
7378,
612,
397,
2461,
632,
891,
1147,
6275,
326,
3844... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
3288,
12521,
48,
18988,
24237,
3335,
1345,
12,
203,
565,
1731,
1578,
498,
16,
203,
565,
2254,
5034,
1147,
6275,
16,
203,
565,
2254,
28,
1147,
1016,
203,
225,
262,
3903,
1476,
1135,
261,
11890,
5034,
2319,
1345,
62... |
pragma solidity 0.6.2;
//based on smartcheck
contract Crowdsale {
uint256 private rate;
uint256 private cap;
address public owner1;
address public owner2;
//There is little chance that both addresses will fail
constructor(address _user1, address _user2) public {
owner1 = _user1;
... | There is little chance that both addresses will fail | contract Crowdsale {
uint256 private rate;
uint256 private cap;
address public owner1;
address public owner2;
constructor(address _user1, address _user2) public {
owner1 = _user1;
owner2 = _user2;
rate = 0;
cap = 0;
}
function setRate(uint256 _rate) pu... | 6,470,615 | [
1,
4625,
348,
7953,
560,
30,
6149,
353,
12720,
17920,
716,
3937,
6138,
903,
2321,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
385,
492,
2377,
5349,
288,
203,
565,
2254,
5034,
3238,
4993,
31,
203,
565,
2254,
5034,
3238,
3523,
31,
203,
565,
1758,
1071,
3410,
21,
31,
203,
565,
1758,
1071,
3410,
22,
31,
203,
377,
203,
203,
565,
3885,
12,
2867,
389,... |
pragma solidity ^0.4.24;
/**
New808token ERC20 contract
Symbol : T808
Name : New808token
Decimals : 0
Owner Account : 0x9BDD969B35b0BA80014A9Ba771a3842883Eac1bA
(c) by Didar Metu 2021. MIT Licence.
*/
/** Lib: Safe Math */
contract SafeMath {
function safeAdd(uint a, uint b) public pure retu... | Updates totalSupply
| _totalSupply = safeSub(_totalSupply, tokens); | 5,994,288 | [
1,
4625,
348,
7953,
560,
30,
225,
15419,
2078,
3088,
1283,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
4963,
3088,
1283,
273,
4183,
1676,
24899,
4963,
3088,
1283,
16,
2430,
1769,
15604,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
import "./reward.sol";
import "./tether.sol";
contract DecentralBank {
string public name = "Decentral Bank";
address public owner;
Tether public tether;
Reward public reward;
address[] public stakers;
mapping(address => uint256... | 10% reward tokens from the total amount of staking will be issued
| reward.transfer(recipient, balance/10); | 12,757,735 | [
1,
4625,
348,
7953,
560,
30,
225,
1728,
9,
19890,
2430,
628,
326,
2078,
3844,
434,
384,
6159,
903,
506,
16865,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19890,
18,
13866,
12,
20367,
16,
11013,
19,
2163,
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,
... |
./full_match/80001/0x144e1C4a983f352f691a14A590B4a01faF8CCf09/sources/contracts/ERC20EscrowToPay.sol | * @notice Refunds to payer after twelve months and delete the escrow. @param _paymentRef Reference of the Invoice related. @dev requires that the request .isFrozen = true and .unlockDate to be lower or equal to block.timestamp./ | function refundFrozenFunds(bytes memory _paymentRef)
external
IsInEscrow(_paymentRef)
IsNotInEmergencyState(_paymentRef)
{
require(requestMapping[_paymentRef].isFrozen, "Not frozen!");
require(requestMapping[_paymentRef].unlockDate <= block.timestamp, "Not Yet!");
... | 5,670,107 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3941,
19156,
358,
293,
1773,
1839,
2339,
292,
537,
8846,
471,
1430,
326,
2904,
492,
18,
632,
891,
225,
389,
9261,
1957,
6268,
434,
326,
15458,
3746,
18,
632,
5206,
4991,
716,
326,
590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16255,
42,
9808,
42,
19156,
12,
3890,
3778,
389,
9261,
1957,
13,
7010,
3639,
3903,
7010,
3639,
2585,
382,
6412,
492,
24899,
9261,
1957,
13,
203,
3639,
2585,
21855,
1514,
24530,
1119,
24899,
9261,
1957,
13,
203,
565,
288,
... |
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/drafts/Counter.sol";
contract BountyApp {
using SafeMath for uint256;
using Counter for Counter.Counter;
address public owner;
bool public stopped = false;
/**
... | Mapping from creator to number of bounty created | mapping(address => uint256) public createdBountyCount;
| 12,945,424 | [
1,
4625,
348,
7953,
560,
30,
225,
9408,
628,
11784,
358,
1300,
434,
324,
592,
93,
2522,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
2522,
38,
592,
93,
1380,
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,
... |
./full_match/1/0x07493F6d027De62A9A84D1F6359c85F66D55fF70/sources/Shikigami/IROIRORemix.sol | Setting up address of the IROIRO NFT contract instance
| iroiroNftAddress = _iroiroNftAddress; | 16,552,402 | [
1,
4625,
348,
7953,
560,
30,
225,
13274,
731,
1758,
434,
326,
467,
1457,
45,
1457,
423,
4464,
6835,
791,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
277,
303,
11373,
50,
1222,
1887,
273,
389,
11373,
11373,
50,
1222,
1887,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.6.6;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
contract LinkFitToken is ERC20, Ownable, ChainlinkClient {
uint private constant TOTAL_SUPPLY = 10**27;
string priva... | step rate in wei/step
| uint256 private stepRate; | 910,523 | [
1,
4625,
348,
7953,
560,
30,
225,
2235,
4993,
316,
732,
77,
19,
4119,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
2235,
4727,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x8Ee90A3524229A47E4b6Cd601E6Db4FE6904F340/sources/contracts/ChaiLabsGovernance.sol | * @dev Check if the proposer is authorized to submit a proposal with the given description. If the proposal description ends with `#proposer=0x???`, where `0x???` is an address written as a hex string (case insensitive), then the submission of this proposal will only be authorized to said address. This is used for fron... | function _isValidDescriptionForProposer(
address proposer,
string memory description
) public view virtual returns (bool) {
uint256 len = bytes(description).length;
if (len < 52) {
return true;
}
assembly {
marker := mload(add(description... | 7,070,138 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2073,
309,
326,
450,
5607,
353,
10799,
358,
4879,
279,
14708,
598,
326,
864,
2477,
18,
971,
326,
14708,
2477,
3930,
598,
1375,
7,
685,
5607,
33,
20,
92,
14646,
35,
9191,
1625,
1375,
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,
565,
445,
389,
26810,
3291,
1290,
626,
5607,
12,
203,
3639,
1758,
450,
5607,
16,
203,
3639,
533,
3778,
2477,
203,
565,
262,
1071,
1476,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
5034,
562,
273,
1731,
12,
3384,
2934,
2469,
... |
./full_match/4/0x93AB4fbdE0ac5677bE146CEA96aA7b77A67Af6BF/sources/StakePool.sol | * @dev contract constructor @param _stakeContract the address of the staking contract/mechanism/ set owner to users[0] because unknown user will return 0 from userIndex this also allows owners to withdraw their own earnings using same functions as regular users | constructor(address payable _stakeContract) public {
owner = msg.sender;
require(_stakeContract != address(0));
stakeContract = _stakeContract;
sc = StakeContract(stakeContract);
users.push(owner);
}
| 12,518,139 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6835,
3885,
632,
891,
389,
334,
911,
8924,
326,
1758,
434,
326,
384,
6159,
6835,
19,
3501,
10641,
19,
444,
3410,
358,
3677,
63,
20,
65,
2724,
5917,
729,
903,
327,
374,
628,
729,
1016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
3885,
12,
2867,
8843,
429,
389,
334,
911,
8924,
13,
1071,
288,
203,
565,
3410,
273,
1234,
18,
15330,
31,
7010,
565,
2583,
24899,
334,
911,
8924,
480,
1758,
12,
20,
10019,
203,
565,
384,
911,
8924,
273,
389,
334,
911,
8924,... |
pragma solidity ^0.4.18;
import "./TUMOracle.sol";
contract Tipping {
// interface for the grade results
address tumOracle;
mapping(string => mapping(uint8 => TutorGroup)) tutorGroups;
constructor (address _tumOracle) public {
tumOracle = _tumOracle;
}
struct Contribution {
... | interface for the grade results | contract Tipping {
address tumOracle;
mapping(string => mapping(uint8 => TutorGroup)) tutorGroups;
constructor (address _tumOracle) public {
tumOracle = _tumOracle;
}
struct Contribution {
}
struct TutorGroup {
uint8 nContributions;
mapping(uint8 => Contr... | 12,641,644 | [
1,
4625,
348,
7953,
560,
30,
225,
1560,
364,
326,
7324,
1686,
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,
16351,
399,
6771,
288,
203,
21281,
565,
1758,
268,
379,
23601,
31,
203,
203,
565,
2874,
12,
1080,
516,
2874,
12,
11890,
28,
516,
399,
3408,
1114,
3719,
268,
3408,
3621,
31,
203,
377,
203,
565,
3885,
261,
2867,
389,
88,
379,
236... |
pragma solidity ^0.5.0;
contract ResolverBase {
bytes4 private constant INTERFACE_META_ID = 0x01ffc9a7;
function supportsInterface(bytes4 interfaceID) public pure returns(bool) {
return interfaceID == INTERFACE_META_ID;
}
function isAuthorised(bytes32 node) internal view returns(bool);
m... | Copy word-length chunks while possible | function memcpy(uint dest, uint src, uint len) private pure {
for (; len >= 32; len -= 32) {
assembly {
mstore(dest, mload(src))
}
dest += 32;
src += 32;
}
assembly {
let srcpart := and(mload(src), not(mask))
... | 15,497 | [
1,
4625,
348,
7953,
560,
30,
225,
5631,
2076,
17,
2469,
6055,
1323,
3323,
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,
1663,
71,
2074,
12,
11890,
1570,
16,
2254,
1705,
16,
2254,
562,
13,
3238,
16618,
288,
203,
3639,
364,
261,
31,
562,
1545,
3847,
31,
562,
3947,
3847,
13,
288,
203,
5411,
19931,
288,
203,
7734,
312,
2233,
12,
10488,
16,... |
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address publi... | @dev Calcultes whether a position captures an enemy group, or whether it's a suicide. Updates the board accoridngly (clears captured groups, or the suiciding stone). @param board the board to check and update @param position the position of the new stone @param positionColor the color of the new stone (this param is ... | function updateCaptures(GoBoard storage board, uint8 position, uint8 positionColor) private {
uint8[BOARD_SIZE] memory group;
bool isGroupCaptured;
bool shouldCheckSuicide = true;
uint8[MAX_ADJACENT_CELLS] memory adjacentArray = getAdjacentCells(position);
for (uint8 cur... | 941,565 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
29128,
406,
281,
2856,
279,
1754,
21922,
392,
570,
351,
93,
1041,
16,
578,
2856,
518,
1807,
279,
1597,
335,
831,
18,
225,
15419,
326,
11094,
4078,
280,
350,
3368,
715,
261,
2131,
5913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
26294,
1823,
12,
5741,
22233,
2502,
11094,
16,
2254,
28,
1754,
16,
2254,
28,
1754,
2957,
13,
3238,
288,
203,
203,
3639,
2254,
28,
63,
5315,
8085,
67,
4574,
65,
3778,
1041,
31,
203,
203,
3639,
1426,
353,
1114,
26... |
./full_match/4/0x5B39bC9BbE7174718ca696BdE5AEB22B4Dd338B2/sources/browser/github/project/ChainlinkCNYUSDPriceConsumer.sol | (,int ethusdprice,,,) = priceFeed.latestRoundData(); | function setPrice(uint256 _price,uint _cny2usd,uint256 _timestamp) public onlyOperator{
currRoundId++;
roundInfo[currRoundId].timestamp = _timestamp;
roundInfo[currRoundId].cny2usd = _cny2usd;
}
| 704,626 | [
1,
4625,
348,
7953,
560,
30,
225,
261,
16,
474,
13750,
407,
72,
8694,
16408,
16,
13,
273,
6205,
8141,
18,
13550,
11066,
751,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
5147,
12,
11890,
5034,
389,
8694,
16,
11890,
389,
10305,
93,
22,
407,
72,
16,
11890,
5034,
389,
5508,
13,
1071,
1338,
5592,
95,
203,
1377,
4306,
11066,
548,
9904,
31,
203,
1377,
3643,
966,
63,
17016,
11066,
548,
... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'PhoneCoin' CROWDSALE token contract
//
// Deployed to : 0xf16cd2CF1d67713FfFDeF3AE395A18bef48332CF
// Symbol : PHONE
// Name : PhoneCoin
// Total supply: 100M
// Decimals : 18
//
// Enjoy.
//
// ... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract PhoneCoin is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
uint public startDate;
uint public bonusEnds;
uint public endDate;
mapping(address => uint) balances;
mapping(address => mapping(addres... | 14,428,092 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
12895,
27055,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
3088... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IVoteStaking.sol";
interface IStaking {
function userInfo(uint256 pid, ad... | View function to see pending BLES on frontend. | function pendingReward(uint256 _pid, address _user)
external
view
override
returns (uint256)
{
UserInfo storage user = userInfo[_pid][_user];
uint256 accRewardPerShare = poolInfo[_pid].accRewardPerShare;
if (block.number > poolInfo[_pid].lastRewardBlock ... | 5,425,480 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
605,
11386,
603,
15442,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
4634,
17631,
1060,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
25003,
2502,
729,
273,
16753,
6... |
./full_match/80001/0x64Aa500f7aa45b20DfA59F41A50baDfd92316c08/sources/_thirdweb-dev/contracts/extension/plugin/PermissionsLogic.sol | * @notice Returns the admin role that controls the specified role. @dev See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. @param role keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")/ | function getRoleAdmin(bytes32 role) external view override returns (bytes32) {
PermissionsStorage.Data storage data = PermissionsStorage.permissionsStorage();
return data._getRoleAdmin[role];
}
| 854,466 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
540,
2860,
326,
3981,
2478,
716,
11022,
326,
1269,
2478,
18,
225,
632,
5206,
5411,
2164,
288,
16243,
2996,
97,
471,
288,
9083,
3056,
2996,
5496,
5375,
2974,
2549,
279,
2478,
1807,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
15673,
4446,
12,
3890,
1578,
2478,
13,
3903,
1476,
3849,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
15684,
3245,
18,
751,
2502,
501,
273,
15684,
3245,
18,
9612,
3245,
5621,
203,
3639,
327,
501,
6315,
588,
2996,
4446,
63... |
pragma solidity ^0.4.17;
/**
* @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;
... | Vesting logic The following cases are checked for _beneficiary's actions: Ensure vesting cannot be done once TRS starts | function vest(bool _vestingDecision) external isWhitelisted returns(bool) {
bool existingDecision = contributions[msg.sender].hasVested;
require(existingDecision != _vestingDecision);
require(block.timestamp >= publicTGEStartBlockTimeStamp);
require(contributions[msg.sender].weiContributed > 0);
i... | 972,714 | [
1,
4625,
348,
7953,
560,
30,
225,
776,
10100,
4058,
1021,
3751,
6088,
854,
5950,
364,
389,
70,
4009,
74,
14463,
814,
1807,
4209,
30,
7693,
331,
10100,
2780,
506,
2731,
3647,
4235,
55,
2542,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
331,
395,
12,
6430,
389,
90,
10100,
15861,
13,
3903,
353,
18927,
329,
1135,
12,
6430,
13,
288,
203,
565,
1426,
2062,
15861,
273,
13608,
6170,
63,
3576,
18,
15330,
8009,
5332,
58,
3149,
31,
203,
565,
2583,
12,
11711,
1... |
./full_match/80001/0xEA0671B9d3183dBb54F47B70a7004A77dd9b68a9/sources/project_/contracts/SwapFactory.sol | for sell token0 We are charging a fee of `1%` Input amount with fee = (input amount - (1*(input amount)/100)) = ((input amount)*99)/100 | function getAmountOfTokens(
uint256 inputAmount,
uint256 inputReserve,
uint256 outputReserve
) public pure returns (uint256) {
uint256 inputAmountWithFee = inputAmount * 97;
uint256 numerator = inputAmountWithFee * outputReserve;
uint256 denominator = (inputReser... | 5,621,632 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
357,
80,
1147,
20,
1660,
854,
1149,
1998,
279,
14036,
434,
1375,
21,
9,
68,
2741,
3844,
598,
14036,
273,
261,
2630,
3844,
300,
261,
21,
21556,
2630,
3844,
13176,
6625,
3719,
273,
14015,
2630,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24418,
951,
5157,
12,
203,
3639,
2254,
5034,
810,
6275,
16,
203,
3639,
2254,
5034,
810,
607,
6527,
16,
203,
3639,
2254,
5034,
876,
607,
6527,
203,
565,
262,
1071,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,... |
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title Cell
*/
contract Cell is ERC721Enumerable, Ownable {
string private _baseTokenURI;
// Mapping from token ID to 10x10 cell image
m... | * Event for token change image logging @param tokenId uint256 ID of the token to be change image @param image byte code that represents the image of a 10 x 10 pixel @param url link of image/ | constructor (string memory name, string memory symbol, uint256 cellCount) ERC721(name, symbol) {
_cellCount = cellCount;
}
| 1,256,559 | [
1,
4625,
348,
7953,
560,
30,
380,
2587,
364,
1147,
2549,
1316,
2907,
632,
891,
1147,
548,
2254,
5034,
1599,
434,
326,
1147,
358,
506,
2549,
1316,
632,
891,
1316,
1160,
981,
716,
8686,
326,
1316,
434,
279,
1728,
619,
1728,
4957,
632,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
3885,
261,
1080,
3778,
508,
16,
533,
3778,
3273,
16,
2254,
5034,
2484,
1380,
13,
4232,
39,
27,
5340,
12,
529,
16,
3273,
13,
288,
7010,
3639,
389,
3855,
1380,
273,
2484,
1380,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-... |
/*
Copyright 2019 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... | * Converts component quantity to Set quantity/ | function componentToSet(
uint256 _componentQuantity,
uint256 _componentUnit,
uint256 _naturalUnit
)
internal
pure
returns(uint256)
{
return _componentQuantity.mul(_naturalUnit).div(_componentUnit);
}
| 7,319,335 | [
1,
4625,
348,
7953,
560,
30,
380,
20377,
1794,
10457,
358,
1000,
10457,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1794,
25208,
12,
203,
3639,
2254,
5034,
389,
4652,
12035,
16,
203,
3639,
2254,
5034,
389,
4652,
2802,
16,
203,
3639,
2254,
5034,
389,
18757,
3766,
2802,
203,
565,
262,
7010,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
... |
pragma solidity ^0.4.21;
import "zeppelin-solidity/contracts/lifecycle/Pausable.sol";
import "zeppelin-solidity/contracts/math/SafeMath.sol";
import "zeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "./ArbiterStaking.sol";
import "./NectarToken.sol";
contract BountyRegistry is Pausable {
using Safe... | * Function to calculate the reward disbursment of a bounty @param bountyGuid the guid of the bounty to calculate @return Rewards distributed by the bounty/ Check if this bountiesByGuid[bountyGuid] has been initialized Check if this bounty has been previously resolved for the sender Check that the voting round has close... | function calculateBountyRewards(
uint128 bountyGuid
)
public
view
returns (uint256 bountyRefund, uint256 arbiterReward, uint256[] expertRewards)
{
Bounty memory bounty = bountiesByGuid[bountyGuid];
Assertion[] memory assertions = assertionsByGuid[bountyGuid];
... | 13,128,718 | [
1,
4625,
348,
7953,
560,
30,
380,
4284,
358,
4604,
326,
19890,
1015,
70,
25152,
475,
434,
279,
324,
592,
93,
632,
891,
324,
592,
93,
22549,
326,
9875,
434,
326,
324,
592,
93,
358,
4604,
632,
2463,
534,
359,
14727,
16859,
635,
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,
4604,
38,
592,
93,
17631,
14727,
12,
203,
3639,
2254,
10392,
324,
592,
93,
22549,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
324,
592,
93,
21537,
16,
2254,
5034,
419,
70,
2165,
... |
pragma solidity ^0.4.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexe... | Total sold tokens for presale
| uint256 public savedPresaleTokenBalance; | 12,560,508 | [
1,
4625,
348,
7953,
560,
30,
225,
10710,
272,
1673,
2430,
364,
4075,
5349,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5198,
12236,
5349,
1345,
13937,
31,
11794,
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,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// TODO: remove ERC165
import {IERC1155} from './IERC1155.sol';
import {IERC1155Receiver} from './IERC1155Receiver.sol';
import {ERC1155BaseStorage} from './ERC1155BaseStorage.sol';
import {ERC165} from '../../introspection/ERC165.sol';
import {AddressUtils} fr... | * @notice transfer batch of tokens between given addresses @param operator executor of transfer @param sender sender of tokens @param recipient receiver of tokens @param ids token IDs @param amounts quantities of tokens to transfer @param data data payload/ | function _safeTransferBatch (
address operator,
address sender,
address recipient,
uint[] memory ids,
uint[] memory amounts,
bytes memory data
) virtual internal {
_doSafeBatchTransferAcceptanceCheck(operator, sender, recipient, ids, amounts, data);
_transferBatch(operator, sender, r... | 909,039 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7412,
2581,
434,
2430,
3086,
864,
6138,
632,
891,
3726,
6601,
434,
7412,
632,
891,
5793,
5793,
434,
2430,
632,
891,
8027,
5971,
434,
2430,
632,
891,
3258,
1147,
7115,
632,
891,
30980,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
4626,
5912,
4497,
261,
203,
565,
1758,
3726,
16,
203,
565,
1758,
5793,
16,
203,
565,
1758,
8027,
16,
203,
565,
2254,
8526,
3778,
3258,
16,
203,
565,
2254,
8526,
3778,
30980,
16,
203,
565,
1731,
3778,
501,
203,
22... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./IERC1363.sol";
import "./IERC1363Receiver.sol";
import "./IERC1363Spender.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/introspection/ERC165Checker.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.so... | * @title ONECRO @dev Implementation of the ONECRO/ | contract ONECRO is ERC20Capped, ERC20Mintable, ERC20Burnable, ERC1363, TokenRecover, Roles {
constructor (
string memory name,
string memory symbol,
uint8 decimals,
uint256 cap,
uint256 initialBalance
)
ERC1363(name, symbol)
ERC20Capped(cap)
}
{
... | 11,937,216 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
15623,
39,
1457,
632,
5206,
25379,
434,
326,
15623,
39,
1457,
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,
... | [
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,
16351,
15623,
39,
1457,
353,
4232,
39,
3462,
4664,
1845,
16,
4232,
39,
3462,
49,
474,
429,
16,
4232,
39,
3462,
38,
321,
429,
16,
4232,
39,
3437,
4449,
16,
3155,
27622,
16,
19576,
288,
203,
203,
565,
3885,
261,
203,
3639,
533,
... |
./full_match/8453/0x41515205f2F5208645b802a88458d45068758E8B/sources/contracts/Router.sol | 4 rounds of iteration to perform up to 4 swaps | function getPrice(address[] calldata path, uint256[3][] calldata swapParams) external view returns (uint256 price) {
address inputToken = path[0];
if (inputToken == address(0)) inputToken = WETH_ADDRESS;
price = 10 ** 18;
for (uint256 i = 1; i < path.length / 2 + 1; ++i) {
... | 11,554,272 | [
1,
4625,
348,
7953,
560,
30,
225,
1059,
21196,
434,
6532,
358,
3073,
731,
358,
1059,
1352,
6679,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25930,
12,
2867,
8526,
745,
892,
589,
16,
2254,
5034,
63,
23,
6362,
65,
745,
892,
7720,
1370,
13,
3903,
1476,
1135,
261,
11890,
5034,
6205,
13,
288,
203,
3639,
1758,
810,
1345,
273,
589,
63,
20,
15533,
203,
3639,
309,... |
/**
PRINCE - PrincessAzula Protector
Every Princess needs her Prince to protect her,
To rise to the top, AZULA will need support.
I have been chosen to support and protect her to the top.
Together, we will reach the top, and rule everything, and everyone.
... | / | .'/ \ ``-.) \
| _.-''``';'-''-) ,. \ ' '+ | 5,926,406 | [
1,
4625,
348,
7953,
560,
30,
342,
571,
282,
263,
11,
19,
282,
521,
225,
12176,
17,
12998,
521,
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... | [
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,
8227,
29053,
17,
6309,
10335,
11,
4359,
17,
6309,
17,
13,
269,
18,
225,
521,
296,
225,
15126,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.13;
// potprotocol.com
// Decentralized Coffee Pot Control Protocol Contract
// move along, nothing to see here, only the copy-pasted stuff
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
... | crowdsale end time
| uint256 public constant fundingEndTime = 5404107600; | 13,438,301 | [
1,
4625,
348,
7953,
560,
30,
225,
276,
492,
2377,
5349,
679,
813,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
5381,
22058,
25255,
273,
1381,
11746,
2163,
6669,
713,
31,
11794,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.s... | */ function burn(address _burner, uint256 _id, uint256 _amount) external virtual hasItemRight(_id, BURN) { require(_burner != address(0), "Super721::burn: burn from the zero address"); Retrieve the group ID from the given item `_id` and check burn validity. uint256 shiftedGroupId = (_id & GROUP_MASK); ui... | This function allows an address to destroy some of its items.
@param _burner The address whose item is burning.
@param _id The item ID to burn.
@param _amount The amount of the corresponding item ID to burn.
This function allows an address to destroy multiple different items in a
single call.
... | 13,775,934 | [
1,
4625,
348,
7953,
560,
30,
1195,
445,
18305,
12,
2867,
389,
70,
321,
264,
16,
2254,
5034,
389,
350,
16,
2254,
5034,
389,
8949,
13,
282,
3903,
5024,
711,
1180,
4726,
24899,
350,
16,
605,
8521,
13,
288,
282,
2583,
24899,
70,
321,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1220,
445,
5360,
392,
1758,
358,
5546,
2690,
434,
2097,
1516,
18,
203,
565,
632,
891,
389,
70,
321,
264,
1021,
1758,
8272,
761,
353,
18305,
310,
18,
203,
565,
632,
891,
389,
350,
1021,
761,
1599,
358,
18305,
18,
203,
565,
... |
./full_match/43113/0x8A493188A5E8F885c7b4Cab0f8F8B6c686A443A9/sources/JoeHatBondingCurve.sol | * @notice Calculates the required amount of $HAT to buy a given amount of AVAX with fees taken into account. @param avaxAmount - The amount of AVAX to buy. @return hatAmount - The amount of $HAT required./ | function getHatAmountInForExactAvaxAmountOutWithFees(uint256 avaxAmount) public view returns (uint256) {
uint256 hatAmountWithFees = _getHatAmountInForExactAvaxAmountOut(avaxAmount * _b / _a);
require(getReserveHat() + hatAmountWithFees <= maxSupply, 'getHatAmountInForExactAvaxAmountOutWithFees: Not... | 7,157,648 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
26128,
326,
1931,
3844,
434,
271,
44,
789,
358,
30143,
279,
864,
3844,
434,
15068,
2501,
598,
1656,
281,
9830,
1368,
2236,
18,
632,
891,
1712,
651,
6275,
300,
1021,
3844,
434,
15068,
250... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
7628,
270,
6275,
382,
1290,
14332,
3769,
651,
6275,
1182,
1190,
2954,
281,
12,
11890,
5034,
1712,
651,
6275,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
366,
270,
6275,
1190,
2954,
281,
273,
... |
./full_match/5/0x6Da7F63172653eea0b99B04Ce3404f92597459C0/sources/contracts/ERC721IA.sol | @dev Checks a request to claim NFTs against the active claim condition's criteria. uint256 _tokenId, if(isQueued(_tokenId)){ revert("token has already been claimed"); } | function verifyClaims(
address _claimer,
uint256 _quantity,
address _currency,
uint256 _pricePerToken,
AllowlistProof calldata _allowlistProof
) public view returns (bool isOverride) {
ClaimCondition memory currentClaimPhase = claimCondition;
uint256 claim... | 1,863,008 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
13074,
279,
590,
358,
7516,
423,
4464,
87,
5314,
326,
2695,
7516,
2269,
1807,
3582,
18,
2254,
5034,
389,
2316,
548,
16,
309,
12,
291,
21039,
24899,
2316,
548,
3719,
95,
377,
15226,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
15925,
12,
203,
3639,
1758,
389,
830,
69,
4417,
16,
203,
3639,
2254,
5034,
389,
16172,
16,
203,
3639,
1758,
389,
7095,
16,
203,
3639,
2254,
5034,
389,
8694,
2173,
1345,
16,
203,
3639,
7852,
1098,
20439,
745,
892,
... |
./partial_match/1/0xc39b13960D0B1BBD09FAB90969960f7a56e89E92/sources/Exchange.sol | address of a taker, if applies.
| address specificTaker; | 3,714,713 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
434,
279,
268,
6388,
16,
309,
10294,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
2923,
56,
6388,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x50D7cB8eE3e347E22cB6210C1Ca57458EF1B59ec/sources/Users/lugondev/DEV/truffle-sample/contracts/TokenCrowdsale.sol | * @dev Determines how ETH is stored/forwarded on purchases./ | function _forwardFunds(address payable _ref) internal {
uint256 weiAmount = msg.value;
uint256 refAmount = weiAmount.mul(5).div(100);
getRefReceiver(_ref).transfer(refAmount);
_wallet.transfer(weiAmount.sub(refAmount));
}
| 690,663 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
30778,
3661,
512,
2455,
353,
4041,
19,
1884,
11804,
603,
5405,
343,
3304,
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,
565,
445,
389,
11565,
42,
19156,
12,
2867,
8843,
429,
389,
1734,
13,
2713,
288,
203,
3639,
2254,
5034,
732,
77,
6275,
273,
1234,
18,
1132,
31,
203,
3639,
2254,
5034,
1278,
6275,
273,
732,
77,
6275,
18,
16411,
12,
25,
2934,
2892... |
// File: contracts\interfaces\IERC165.sol
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*... | @notice dummy function for unit testing | function getCurrentTokenId() view external returns (uint256) {
return CURRENT_TOKEN_ID;
}
| 4,808,704 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
9609,
445,
364,
2836,
7769,
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,
5175,
1345,
548,
1435,
1476,
3903,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
18484,
67,
8412,
67,
734,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.24;
import '@gnosis.pm/gnosis-core-contracts/contracts/Oracles/FutarchyOracleFactory.sol';
import '@gnosis.pm/gnosis-core-contracts/contracts/MarketMakers/LMSRMarketMaker.sol';
import '../Registry.sol';
import "./Oracles/ScalarPriceOracle.sol";
import "./ChallengeInterface.sol";
contract FutarchyC... | Oracle to resolve scalar prediction markets
| ScalarPriceOracle public scalarPriceOracle; | 1,020,564 | [
1,
4625,
348,
7953,
560,
30,
225,
28544,
358,
2245,
4981,
8239,
2267,
2413,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15791,
5147,
23601,
1071,
4981,
5147,
23601,
31,
2868,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
* This contract acts as a controller for front-end
* requests. The DB file is separate incase, solidity adds
* functionality to return structs. In that case, only
* this contract needs to be redeployed and data migration
* will not be needed as the data is stored in DB.sol
* contract.
*/
pragma solidity ^0.4... | @description gets the total number of users registered so far @return uint count of users registered so far | function getTotalUsers() public view isOwner(msg.sender) returns(uint) {
return db.totalUsers();
}
| 15,863,060 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
3384,
5571,
326,
2078,
1300,
434,
3677,
4104,
1427,
10247,
632,
2463,
2254,
1056,
434,
3677,
4104,
1427,
10247,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
12831,
6588,
1435,
1071,
1476,
353,
5541,
12,
3576,
18,
15330,
13,
1135,
12,
11890,
13,
288,
203,
1082,
202,
2463,
1319,
18,
4963,
6588,
5621,
203,
202,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./lib/ColorUtils.sol";
import "./DixelSVGGenerator.sol";
import "./DixelArt.sol";... | multiply 1e21 to preserve decimals on calculation
| accRewardPerContribution += (1e21 * reward) / totalContribution; | 5,448,801 | [
1,
4625,
348,
7953,
560,
30,
225,
10194,
404,
73,
5340,
358,
9420,
15105,
603,
11096,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
4078,
17631,
1060,
2173,
442,
4027,
1011,
261,
21,
73,
5340,
380,
19890,
13,
342,
2078,
442,
4027,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |