file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/80001/0x416E2d3E39dF69bBc30244eC90477fD042812E6B/sources/src/Interfaces/IHyphenRouter.sol | ERROR: type should be string, got " https:github.com/bcnmy/hyphen-contract/blob/master/contracts/hyphen/LiquidityPool.sol" | interface IHyphenRouter {
function depositErc20(
uint256 toChainId,
address tokenAddress,
address receiver,
uint256 amount,
string calldata tag
) external;
function depositNative(
address receiver,
uint256 toChainId,
string calldata tag
) ... | 5,585,594 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
6662,
18,
832,
19,
70,
10305,
4811,
19,
18112,
13819,
17,
16351,
19,
10721,
19,
7525,
19,
16351,
87,
19,
18112,
13819,
19,
48,
18988,
24237,
2864,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
17507,
13819,
8259,
288,
203,
565,
445,
443,
1724,
41,
1310,
3462,
12,
203,
3639,
2254,
5034,
358,
3893,
548,
16,
203,
3639,
1758,
1147,
1887,
16,
203,
3639,
1758,
5971,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
... |
pragma solidity ^0.4.24;
/**#@dev interface to contract that contains ether distributed among several receivers */
contract IFund {
/**@dev Returns how much ether can be claimed */
function etherBalanceOf(address receiver) public view returns (uint balance) {receiver;balance;}
/**@dev Withdraws calle... | *@dev Returns how much ether can be claimed */ | function etherBalanceOf(address receiver) public view returns (uint balance) {receiver;balance;}
| 14,036,616 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
5206,
2860,
3661,
9816,
225,
2437,
848,
506,
7516,
329,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
225,
2437,
13937,
951,
12,
2867,
5971,
13,
1071,
1476,
1135,
261,
11890,
11013,
13,
288,
24454,
31,
12296,
31,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
// zeppelin-solidity: 1.5.0
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b)... | set initial price based on initial rate
| calculatePrice(); | 1,721,871 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
2172,
6205,
2511,
603,
2172,
4993,
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,
4604,
5147,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/5/0x8cc4E47adB9D01070c6aC41420355F33FA543b59/sources/contracts/upgrades/GraphProxyAdmin.sol | * @dev Accepts a proxy. @param _implementation Address of the implementation accepting the proxy. @param _proxy Address of the proxy being accepted./ | function acceptProxy(GraphUpgradeable _implementation, IGraphProxy _proxy) public onlyGovernor {
_implementation.acceptProxy(_proxy);
}
| 1,895,928 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
27158,
279,
2889,
18,
632,
891,
389,
30810,
5267,
434,
326,
4471,
25806,
326,
2889,
18,
632,
891,
389,
5656,
5267,
434,
326,
2889,
3832,
8494,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
2791,
3886,
12,
4137,
10784,
429,
389,
30810,
16,
467,
4137,
3886,
389,
5656,
13,
1071,
1338,
43,
1643,
29561,
288,
203,
3639,
389,
30810,
18,
9436,
3886,
24899,
5656,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,... |
// SPDX-License-Identifier: CC0-1.0
/**
Contract to enable someone to submit a ZKP transaction for processing.
It is possible we will move this off-chain in the future as blockchain
functionality is not really required - it's just a data availability aid.
@Author Westlad
*/
pragma solidity ^0.8.0;
pragma experimental... | set new owner of transaction, settign fee to zero. | advancedFeeWithdrawals[withdrawTransactionHash] = 0;
| 1,848,733 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
394,
3410,
434,
2492,
16,
26319,
724,
14036,
358,
3634,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
16111,
14667,
1190,
9446,
1031,
63,
1918,
9446,
3342,
2310,
65,
273,
374,
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,
-1... |
./partial_match/1/0x0092CD4044E1672c9c513867eb75e6213AF9742f/sources/src/strategies/absolute/LlamaAbsoluteStrategyBase.sol | @notice Minimum time, in seconds, between queueing and execution of action. | uint64 public queuingPeriod;
| 9,330,047 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
23456,
813,
16,
316,
3974,
16,
3086,
2389,
310,
471,
4588,
434,
1301,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
1105,
1071,
6597,
22370,
5027,
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,... |
./full_match/1/0xD875e7e690Dcb00997b0247022f87Dedb40176E4/sources/contracts/feeDistributorFactory/FeeDistributorFactory.sol | * @notice Set a new reference implementation of FeeDistributor contract @param _referenceFeeDistributor the address of the new reference implementation contract/ | function setReferenceInstance(address _referenceFeeDistributor) external onlyOwner {
if (!ERC165Checker.supportsInterface(_referenceFeeDistributor, type(IFeeDistributor).interfaceId)) {
revert FeeDistributorFactory__NotFeeDistributor(_referenceFeeDistributor);
}
s_referenceFeeDi... | 8,305,102 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1000,
279,
394,
2114,
4471,
434,
30174,
1669,
19293,
6835,
632,
891,
389,
6180,
14667,
1669,
19293,
326,
1758,
434,
326,
394,
2114,
4471,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
31098,
1442,
12,
2867,
389,
6180,
14667,
1669,
19293,
13,
3903,
1338,
5541,
288,
203,
3639,
309,
16051,
654,
39,
28275,
8847,
18,
28064,
1358,
24899,
6180,
14667,
1669,
19293,
16,
618,
12,
5501,
1340,
1669,
19293,
2934,
5... |
// SPDX-License-Identifier: WTFPL
pragma solidity 0.8.12;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./BaseERC721IDO.sol";
interface IERC721Mintable {
function mint(address to, uint256 tokenId) external;
}
/**
* @notice In this IDO, the `asset` *MUST* conform to `IERC721` and `IERC721Mi... | * @notice Mints `asset`s of `tokenIds` to `to` address. Parameter `amounts` is ignored./ | function _offerAssets(
address to,
uint256[] memory tokenIds,
uint256[] memory
) internal override {
for (uint256 i; i < tokenIds.length; i++) {
IERC721Mintable(asset).mint(to, tokenIds[i]);
}
}
| 13,118,492 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
490,
28142,
1375,
9406,
68,
87,
434,
1375,
2316,
2673,
68,
358,
1375,
869,
68,
1758,
18,
5498,
1375,
8949,
87,
68,
353,
5455,
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,
1,
1,
1,
0,
0,
0,
0,
0,
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,
23322,
10726,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
8526,
3778,
1147,
2673,
16,
203,
3639,
2254,
5034,
8526,
3778,
203,
565,
262,
2713,
3849,
288,
203,
3639,
364,
261,
11890,
5034,
277,
31,
277,
411,... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view retu... | When a user withdraws, we need to pull the user's share out from all the contracts and split its tokens Next we need to calculate our percent of pTokens Update user balance | function withdraw(address payable _depositor, uint256 _share, uint256 _total) public onlyZSToken returns (uint256) {
require(_totalBalancePTokens > 0, "There are no LP tokens in this strategy");
bool _takeAll = false;
if(_share == _total){
}
uint256 pTokenAm... | 15,090,211 | [
1,
4625,
348,
7953,
560,
30,
225,
5203,
279,
729,
598,
9446,
87,
16,
732,
1608,
358,
6892,
326,
729,
1807,
7433,
596,
628,
777,
326,
20092,
471,
1416,
2097,
2430,
4804,
732,
1608,
358,
4604,
3134,
5551,
434,
293,
5157,
2315,
729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
2867,
8843,
429,
389,
323,
1724,
280,
16,
2254,
5034,
389,
14419,
16,
2254,
5034,
389,
4963,
13,
1071,
1338,
62,
882,
969,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
24899,
4963,
13937,
1856,
3573,... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.6.11;
import "arbos-precompiles/arbos/builtin/ArbSys.sol";
import "arb-bridge-eth/contracts/libraries/AddressAliasHelper.sol";
import "./Greeter.sol";
contract GreeterL2 is Greeter {
ArbSys constant arbsys = ArbSys(100);
address public l1Target;
... | @notice only l1Target can update greeting To check that message came from L1, we check that the sender is the L1 contract's L2 alias. | function setGreeting(string memory _greeting) public override {
require(
msg.sender == AddressAliasHelper.applyL1ToL2Alias(l1Target),
"Greeting only updateable by L1"
);
Greeter.setGreeting(_greeting);
}
| 14,039,770 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1338,
328,
21,
2326,
848,
1089,
5174,
21747,
2974,
866,
716,
883,
22497,
628,
511,
21,
16,
732,
866,
716,
326,
5793,
353,
326,
511,
21,
6835,
1807,
511,
22,
2308,
18,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26770,
9015,
310,
12,
1080,
3778,
389,
75,
9015,
310,
13,
1071,
3849,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
5267,
2936,
2276,
18,
9010,
48,
21,
774,
48,
22,
2936,
12,
80,
21,
2326,
3631,
203,
54... |
./full_match/43114/0x717955905bf71b84651f4eD75AAC4C6A4b33b410/sources/contracts/LB/libraries/BitMath.sol | @notice Returns the closest non-zero bit of `integer` to the right (of left) of the `bit` bits that is not `bit` @param _integer The integer as a uint256 @param _bit The bit index @param _rightSide Whether we're searching in the right side of the tree (true) or the left side (false) @return The index of the closest no... | ) internal pure returns (uint256) {
return _rightSide ? closestBitRight(_integer, _bit - 1) : closestBitLeft(_integer, _bit + 1);
}
| 4,624,893 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2860,
326,
9219,
1661,
17,
7124,
2831,
434,
1375,
7745,
68,
358,
326,
2145,
261,
792,
2002,
13,
434,
326,
1375,
3682,
68,
4125,
716,
353,
486,
1375,
3682,
68,
632,
891,
389,
7745,
1021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
4083,
8895,
692,
9219,
5775,
4726,
24899,
7745,
16,
389,
3682,
300,
404,
13,
294,
9219,
5775,
3910,
24899,
7745,
16,
389,
3682,
397,
404,
1769,
203,
565... |
./partial_match/3/0x4bd0993EC3328C52B63E70b6A3591F13E0Ff88ae/sources/ERC20.sol | * @dev allow owner and property contract `amount` tokens from `account`, reducing the total supply. Internally calls _burn function Requirements: - only `onwer` and `property contract` can call this function./ | function burn(uint256 amount) public onlyAuthority returns (bool){
_burn(msg.sender, amount);
return true;
}
| 5,080,872 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1699,
3410,
471,
1272,
6835,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
31048,
1230,
4097,
389,
70,
321,
445,
29076,
30,
300,
1338,
1375,
265,
2051,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
11890,
5034,
3844,
13,
1071,
1338,
10962,
1135,
261,
6430,
15329,
203,
3639,
389,
70,
321,
12,
3576,
18,
15330,
16,
3844,
1769,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.5.13;
pragma experimental ABIEncoderV2;
import "./libs/SafeMath.sol";
import "./libs/SafeERC20.sol";
// AIP: https://github.com/AdExNetwork/aips/issues/18
// Quick overview:
// - it's divided into pools, each pool may represent a validator; it may represent something else too (for example, we may l... | could be 2**64 too, since we use uint64 | uint constant MAX_SLASH = 10 ** 18;
| 12,558,671 | [
1,
4625,
348,
7953,
560,
30,
225,
3377,
506,
576,
636,
1105,
4885,
16,
3241,
732,
999,
2254,
1105,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11890,
5381,
4552,
67,
24079,
273,
1728,
2826,
6549,
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,
... |
pragma solidity 0.5.16;
... | inject NONSTANDARD NAMING
| function UPGRADETO124(address newImplementation) external IFADMIN310 { | 6,436,019 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7376,
6997,
1880,
1584,
51,
24734,
12,
2867,
394,
13621,
13,
3903,
11083,
15468,
23,
2163,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/*
Copyright 2021 Pulsar Trading 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 agree... | ============ Events ============ ============ Mutable Storage ============ The oracle price. The timestamp of the last oracle update. The number of signers required to update the oracle price. Authorized signers. Value is equal to 0 or 1. Addresses with permission to get the oracle price. Value is equal to 0 or 1. Map... | {
event LogMedianPrice(
uint256 val,
uint256 age
);
event LogSetSigner(
address signer,
bool authorized
);
event LogSetBar(
uint256 bar
);
event LogSetReader(
address reader,
bool authorized
);
uint128 internal _VAL_;
... | 2,542,877 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
631,
9043,
422,
1432,
631,
422,
1432,
631,
10960,
5235,
422,
1432,
631,
1021,
20865,
6205,
18,
1021,
2858,
434,
326,
1142,
20865,
1089,
18,
1021,
1300,
434,
1573,
414,
1931,
358,
1089,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
95,
203,
203,
565,
871,
1827,
13265,
2779,
5147,
12,
203,
3639,
2254,
5034,
1244,
16,
203,
3639,
2254,
5034,
9388,
203,
565,
11272,
203,
203,
565,
871,
1827,
694,
15647,
12,
203,
3639,
1758,
10363,
16,
203,
3639,
1426,
10799,
203... |
./partial_match/42/0xAf5d2BC0A47f0aE99b7E7225349e3d5C48F46Fd5/sources/STERegistryV1.sol | Deletes from mapping (bytes32 => bytes32[]) at index _index | function deleteArrayBytes32(bytes32 _key, uint256 _index) internal {
bytes32[] storage array = bytes32ArrayStorage[_key];
require(_index < array.length, "Index should less than length of the array");
array[_index] = array[array.length - 1];
array.length = array.length - 1;
}
| 3,412,051 | [
1,
4625,
348,
7953,
560,
30,
17973,
628,
2874,
261,
3890,
1578,
516,
1731,
1578,
63,
5717,
622,
770,
389,
1615,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1430,
1076,
2160,
1578,
12,
3890,
1578,
389,
856,
16,
2254,
5034,
389,
1615,
13,
2713,
288,
203,
3639,
1731,
1578,
8526,
2502,
526,
273,
1731,
1578,
1076,
3245,
63,
67,
856,
15533,
203,
3639,
2583,
24899,
1615,
411,
526... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
import "./vault/MochiVaultFactory.sol";
import "./assets/usdm.sol";
import "./interfaces/IMochiEngine.sol";
contract MochiEngine is IMochiEngine {
// immutable values
IMochiVaultFactory public immutable override vaultFactory;
// mutable values
... | immutable values mutable values | contract MochiEngine is IMochiEngine {
IMochiVaultFactory public immutable override vaultFactory;
IMochi public override mochi;
IVMochi public override vMochi;
address public override governance;
address public override treasury;
address public override operationWallet;
IUSDM public override... | 7,009,320 | [
1,
4625,
348,
7953,
560,
30,
225,
11732,
924,
16074,
924,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
9842,
77,
4410,
353,
6246,
9842,
77,
4410,
288,
203,
565,
6246,
9842,
77,
12003,
1733,
1071,
11732,
3849,
9229,
1733,
31,
203,
565,
6246,
9842,
77,
1071,
3849,
7344,
24010,
31,
203,
565,
467,
7397,
9842,
77,
1071,
384... |
./partial_match/42/0x0C3498b6d3030C46E50e35eF64d8280725dB4991/sources/Implementation.sol | all parameters should be given "fixed point style" given "fixed point" style | contract PidController {
using SafeMath for uint256;
using SignedSafeMath for int256;
function pid(
int256[] memory values,
int256 setPoint,
int256 coeffP,
int256 coeffI,
int256 coeffD,
)
internal
returns (int256)
{
require(value... | 3,451,649 | [
1,
4625,
348,
7953,
560,
30,
225,
777,
1472,
1410,
506,
864,
315,
12429,
1634,
2154,
6,
864,
315,
12429,
1634,
6,
2154,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27041,
2933,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
16724,
9890,
10477,
364,
509,
5034,
31,
203,
203,
565,
445,
4231,
12,
203,
3639,
509,
5034,
8526,
3778,
924,
16,
203,
3639,
509,
5034,
44... |
pragma solidity ^0.5.0;
/*
Author : Ashish Thapa
For Sem Project
*/
contract IMSToken{
string public name = "IMSToken";
string public symbol = "IMST";
uint public totalSupply = 1000000000000000000000000000;// billion tokens
// 1 IMS Token can be divided into 10^18 pieces.
uint public de... | address who instantiates the constructor gets full balance; | constructor() public {
balanceOf[msg.sender] = totalSupply;
}
| 13,079,591 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
10354,
5934,
16020,
326,
3885,
5571,
1983,
11013,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3885,
1435,
1071,
288,
203,
5411,
11013,
951,
63,
3576,
18,
15330,
65,
273,
2078,
3088,
1283,
31,
203,
3639,
289,
203,
540,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppel... | @notice Right to up vote or down vote any posts. @dev The storage vote instance is matched on identifier and updated with the vote. Emits PostVote event @param _postId The unique identifier of post @param _upVote True to upVote, false to downVote | function vote(uint256 _postId, bool _upVote) external onlyRegisteredUser(msg.sender){
Vote storage voteInstance = voteMap[_postId];
voteInstance.postId = _postId;
if (_upVote) voteInstance.upVote += 1;
else voteInstance.downVote += 1;
emit PostVote(_postId, _upVote, msg.send... | 2,513,554 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
13009,
358,
731,
12501,
578,
2588,
12501,
1281,
10775,
18,
632,
5206,
1021,
2502,
12501,
791,
353,
4847,
603,
2756,
471,
3526,
598,
326,
12501,
18,
7377,
1282,
5616,
19338,
871,
632,
891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
12501,
12,
11890,
5034,
389,
2767,
548,
16,
1426,
389,
416,
19338,
13,
3903,
1338,
10868,
1299,
12,
3576,
18,
15330,
15329,
203,
3639,
27540,
2502,
12501,
1442,
273,
12501,
863,
63,
67,
2767,
548,
15533,
203,
3639,
12501,... |
./partial_match/1313161554/0x2d2D380e4BDF9A3D77C3703FaB728749BB2e2009/sources/StrategyBastionEth.sol | Market collateral factor How much can we redeem If the amount we're redeeming is exceeding the target supplyAmount, adjust accordingly | function deleverageUntil(uint256 _supplyAmount)
public
override
onlyBenevolent
{
uint256 unleveragedSupply = getSuppliedUnleveraged();
uint256 supplied = getSupplied();
require(
_supplyAmount >= unleveragedSupply && _supplyAmount <= supplied,
... | 16,946,913 | [
1,
4625,
348,
7953,
560,
30,
225,
6622,
278,
4508,
2045,
287,
5578,
9017,
9816,
848,
732,
283,
24903,
971,
326,
3844,
732,
4565,
283,
24903,
310,
353,
9943,
310,
326,
1018,
14467,
6275,
16,
5765,
15905,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1464,
73,
5682,
9716,
12,
11890,
5034,
389,
2859,
1283,
6275,
13,
203,
3639,
1071,
203,
3639,
3849,
203,
3639,
1338,
38,
4009,
15416,
319,
203,
565,
288,
203,
3639,
2254,
5034,
640,
298,
502,
11349,
3088,
1283,
273,
107... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@... | @notice Allows members of the `LIQUIDATOR_ROLE` to liquidate a position. Positions can only be liquidated once their debt amount exceeds the minimum liquidation debt to collateral value rate. In order to liquidate a position, the liquidator needs to repay the user's outstanding debt. If the position is not insured, it... | function liquidate(uint256 _nftIndex)
external
onlyRole(LIQUIDATOR_ROLE)
validNFTIndex(_nftIndex)
nonReentrant
{
accrue();
address posOwner = positionOwner[_nftIndex];
require(posOwner != address(0), "position_not_exist");
Position storage positi... | 1,423,339 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25619,
4833,
434,
326,
1375,
2053,
53,
3060,
3575,
67,
16256,
68,
358,
4501,
26595,
340,
279,
1754,
18,
6818,
5029,
848,
1338,
506,
4501,
26595,
690,
3647,
3675,
18202,
88,
3844,
14399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4501,
26595,
340,
12,
11890,
5034,
389,
82,
1222,
1016,
13,
203,
3639,
3903,
203,
3639,
1338,
2996,
12,
2053,
53,
3060,
3575,
67,
16256,
13,
203,
3639,
923,
50,
4464,
1016,
24899,
82,
1222,
1016,
13,
203,
3639,
1661,
... |
./full_match/97/0xE1142aEf59C82a615b0a71D96e136849bA89a0bb/sources/project_/contracts/PhotoNFTFactory.sol | / [Note]: IPFS hash + URL
| string memory tokenURI = getTokenURI(ipfsHashOfPhoto); | 5,026,066 | [
1,
4625,
348,
7953,
560,
30,
342,
306,
8067,
14542,
2971,
4931,
1651,
397,
1976,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
533,
3778,
1147,
3098,
273,
9162,
3098,
12,
625,
2556,
2310,
951,
19934,
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,
... |
pragma solidity 0.5 .7;
interface IERC20 {
function totalSupply() external view returns(uint256);
function balanceOf(address who) external view returns(uint256);
function allowance(address owner, address spender) external view returns(uint256);
function transfer(address to, uint256 value) external r... | * @dev Airdrops some tokens to some accounts. @param source The address of the current token holder. @param dests List of account addresses. @param values List of token amounts. Note that these are in whole tokens. Fractions of tokens are not supported./ This simple validation will catch most mistakes without consumi... | function airdrop(address source, address[] memory dests, uint256[] memory values) public onlyOwner {
require(dests.length == values.length, "Address and values doesn't match");
for (uint256 i = 0; i < dests.length; i++) {
require(transferFrom(source, dests[i], values[i]));
}
... | 5,366,271 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
432,
6909,
16703,
2690,
2430,
358,
2690,
9484,
18,
632,
891,
1084,
1021,
1758,
434,
326,
783,
1147,
10438,
18,
632,
891,
1570,
87,
987,
434,
2236,
6138,
18,
632,
891,
924,
987,
434,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
6909,
1764,
12,
2867,
1084,
16,
1758,
8526,
3778,
1570,
87,
16,
2254,
5034,
8526,
3778,
924,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
10488,
87,
18,
2469,
422,
924,
18,
2469,
16,
315,
1887,
471,
924,
3302,... |
./full_match/43114/0x100Cc3a819Dd3e8573fD2E46D1E66ee866068f30/sources/DragonCryptoAurum.sol | @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). | function mint(address _to, uint256 _amount) public onlyOwner {
require(totalSupply() + _amount <= MINTLIMIT, "Dragon: Mint reached to limit");
_mint(_to, _amount);
}
| 4,627,953 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10210,
1375,
67,
8949,
68,
1147,
358,
1375,
67,
869,
8338,
6753,
1338,
506,
2566,
635,
326,
3410,
261,
7786,
39,
580,
74,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
4963,
3088,
1283,
1435,
397,
389,
8949,
1648,
490,
3217,
8283,
16,
315,
11728,
265,
30,
490,
474,
8675,
358,
180... |
/**
*Submitted for verification at Etherscan.io on 2020-09-30
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 o... | inject UNINIT LOCAL/STATE VAR
| uint newTokenBalanceIn ; | 6,361,418 | [
1,
4625,
348,
7953,
560,
30,
4590,
5019,
12919,
15234,
19,
7998,
8350,
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,
2254,
394,
1345,
13937,
382,
274,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// File: contracts/interfaces/IDiamondCut.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
/******************************************************************************\
* Author: Nick Mudge <nick@perfectabstractions.com> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/ei... | * @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but tokensReceived() was not registered for the recipient @param operator address operator requesting the transfer @param from address token holder address @param to address recipient address @param amount uint256 amo... | function _callTokensReceived(
address operator,
address from,
address to,
uint256 amount,
bytes memory userData,
bytes memory operatorData,
bool requireReceptionAck
) private {
address implementer = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C... | 1,690,120 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3049,
358,
18,
7860,
8872,
1435,
309,
326,
1560,
353,
4104,
18,
868,
31537,
309,
326,
8027,
353,
279,
6835,
1496,
2430,
8872,
1435,
1703,
486,
4104,
364,
326,
8027,
632,
891,
3726,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
1991,
5157,
8872,
12,
203,
3639,
1758,
3726,
16,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
3778,
13530,
16,
203,
3639,
1731,
3778,
3726,
751,
16,
203,
3... |
pragma solidity 0.4.21;
pragma experimental "v0.5.0";
interface Token {
function totalSupply() external returns (uint256);
function balanceOf(address) external returns (uint256);
function transfer(address, uint256) external returns (bool);
function transferFrom(address, address, uint256) external returns (bool... | <original token amount> = <scaleFactor> x <DEx amountE8> / 1e8
| uint64 scaleFactor; | 6,262,468 | [
1,
4625,
348,
7953,
560,
30,
225,
411,
8830,
1147,
3844,
34,
273,
411,
5864,
6837,
34,
619,
411,
40,
424,
3844,
41,
28,
34,
342,
404,
73,
28,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
1105,
225,
3159,
6837,
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,
... |
./full_match/3/0xd95b61d9C3eb332B9ab89EC9Cf728DFc30EB850d/sources/contracts/lilcoin_v5.sol | * @dev overrides transfer, transfers dividends (rewards) if necessary./ | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual override {
uint256 _dividendsTransferred = (amount * _dividendsClaimed[sender])/(balanceOf(sender));
if (_dividendsTransferred > 0) {
_dividendsClaimed[sender] -= _dividen... | 14,168,541 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9515,
7412,
16,
29375,
3739,
350,
5839,
261,
266,
6397,
13,
309,
4573,
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,
13866,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
3849,
288,
203,
3639,
2254,
5034,
389,
2892,
350,
5839,
1429,
4193,
273,
261,
8949,
380,
389,... |
pragma solidity ^0.5.0;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*
* Subtraction and addition only here.
*/
library SafeMath {
/**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
... | * METHOD: The message sender sends some amount of token to receiver. @dev It will call the logic contract to send some token to receiver. It is the standard method of ERC20. @return success or not/ | function transfer(address _to, uint256 _value) public returns (bool success) {
return bicaLogic.transferWithSender(msg.sender, _to, _value);
}
| 2,479,150 | [
1,
4625,
348,
7953,
560,
30,
380,
10152,
30,
1021,
883,
5793,
9573,
2690,
3844,
434,
1147,
358,
5971,
18,
632,
5206,
2597,
903,
745,
326,
4058,
6835,
358,
1366,
2690,
1147,
358,
5971,
18,
2597,
353,
326,
4529,
707,
434,
4232,
39,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
327,
324,
26433,
20556,
18,
13866,
1190,
12021,
12,
3576,
18,
15330,
16,
389,
869,
16,
389,
1132,
1769,
203,
56... |
./full_match/1/0x3b985118468164b310C5254b0710888dd57c7599/sources/contracts/pool/PoolBase.sol | @notice Function is used to distribute insurance and close pool after period to start auction passed | function allowWithdrawalAfterNoAuction() external {
_accrueInterest();
bool isDefaulting = _state(_info) == State.Default;
bool auctionNotStarted = IAuction(factory.auction()).state(
address(this)
) == IAuction.State.NotStarted;
bool periodToStartPassed = block.t... | 3,086,570 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4284,
353,
1399,
358,
25722,
2763,
295,
1359,
471,
1746,
2845,
1839,
3879,
358,
787,
279,
4062,
2275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1699,
1190,
9446,
287,
4436,
2279,
37,
4062,
1435,
3903,
288,
203,
3639,
389,
8981,
86,
344,
29281,
5621,
203,
203,
3639,
1426,
20652,
310,
273,
389,
2019,
24899,
1376,
13,
422,
3287,
18,
1868,
31,
203,
3639,
1426,
279,... |
/**
* Copyright 2017-2020, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.8;
pragma experimental ABIEncoderV2;
import "./SplittableToken.sol";
interface IBZx {
function closeLoanPartiallyFromCollateral(
bytes32 loanOrderHash,
uint256... | will revert if the position needs to be liquidated allow at most 5% loss here | function _burnToken(
uint256 burnAmount,
uint256 minPriceAllowed)
internal
returns (uint256)
{
require(burnAmount != 0, "burnAmount == 0");
if (burnAmount > balanceOf(msg.sender)) {
burnAmount = balanceOf(msg.sender);
}
(uint256 netCo... | 12,951,095 | [
1,
4625,
348,
7953,
560,
30,
225,
903,
15226,
309,
326,
1754,
4260,
358,
506,
4501,
26595,
690,
1699,
622,
4486,
1381,
9,
8324,
2674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
70,
321,
1345,
12,
203,
3639,
2254,
5034,
18305,
6275,
16,
203,
3639,
2254,
5034,
1131,
5147,
5042,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
12,
70,
321,
6275,
4... |
automat sg
{
#region MODIF_TYPE:ADV
// ------------------------------------------------------
// наречия, которые могут модифицировать другие наречия,
// выступая в роли предшествующих модификаторов.
// ------------------------------------------------------
tag eng_adverb:straight{ MODIF_TYPE:ADV } // Go straight bac... | Melodically interesting themes
| tag eng_adverb:Melodically{ MODIF_TYPE:ADJ } | 6,445,822 | [
1,
4625,
348,
7953,
560,
30,
225,
490,
292,
369,
6478,
26122,
15455,
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,
2692,
24691,
67,
361,
16629,
30,
49,
292,
369,
6478,
95,
8663,
5501,
67,
2399,
30,
1880,
46,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - ... | @notice event emitted upon construction of this contract, used to bootstrap external indexers @notice event emitted when a contributor buys a Genesis NFT @notice event emitted when a admin mints a Genesis NFT @notice event emitted when a contributors amount is increased @notice event emitted when end date is changed @... | contract DigitalaxGenesisNFT is ERC721WithSameTokenURIForAllTokens("DigitalaxGenesis", "DXG") {
using SafeMath for uint256;
event DigitalaxGenesisNFTContractDeployed();
event GenesisPurchased(
address indexed buyer,
uint256 indexed tokenId,
uint256 contribution
);
... | 7,483,593 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
871,
17826,
12318,
16171,
434,
333,
6835,
16,
1399,
358,
7065,
3903,
31932,
632,
20392,
871,
17826,
1347,
279,
31123,
25666,
1900,
279,
31637,
423,
4464,
632,
20392,
871,
17826,
1347,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
11678,
7053,
651,
7642,
16786,
50,
4464,
353,
4232,
39,
27,
5340,
1190,
8650,
1345,
3098,
1290,
1595,
5157,
2932,
4907,
7053,
651,
7642,
16786,
3113,
315,
28826,
43,
7923,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5... |
/**
*Submitted for verification at Etherscan.io on 2021-12-23
*/
// Sources flattened with hardhat v2.6.8 https://hardhat.org
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/utils/[email protected]
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context,... | @dev return the pending claimable XALD token for given user. @param _user The address of user. | function pendingXALD(address _user) external view returns (uint256) {
uint256 _share = shares[_user];
return IWXALD(wxald).wrappedXALDToXALD(_share);
}
| 10,888,730 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
327,
326,
4634,
7516,
429,
1139,
1013,
40,
1147,
364,
864,
729,
18,
632,
891,
389,
1355,
1021,
1758,
434,
729,
18,
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,
225,
445,
4634,
60,
1013,
40,
12,
2867,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
389,
14419,
273,
24123,
63,
67,
1355,
15533,
203,
565,
327,
467,
59,
60,
1013,
40,
12,
27226,
287,
72,
... |
/**
*Submitted for verification at Etherscan.io on 2021-07-03
*/
pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 in... | transfer 7% to token manager.
| manager.transfer( ( ( cost/ 100) * m ) ); | 14,682,456 | [
1,
4625,
348,
7953,
560,
30,
225,
7412,
2371,
9,
358,
1147,
3301,
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,
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,
3301,
18,
13866,
12,
261,
261,
6991,
19,
2130,
13,
380,
312,
262,
11272,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2020-02-25
*/
pragma solidity ^0.5.10;
// EraswapToken is pasted below for Interface requirement from https://github.com/KMPARDS/EraSwapSmartContracts/blob/master/Eraswap/contracts/EraswapToken/EraswapToken.sol
pragma solidity ^0.5.9;
contract ERC20Basic {
funct... | * @dev Function to trigger balance update of a list of users @param TokenTransferList - List of user addresses @param TokenTransferBalance - Amount of token to be sent/ | function UpdateBalance(address[100] calldata TokenTransferList, uint256[100] calldata TokenTransferBalance) OnlyTimeAlly external returns(bool){
for (uint256 i = 0; i < TokenTransferList.length; i++) {
require(allowance(msg.sender, address(this)) >= TokenTransferBalance[i]);
require(transferFrom... | 13,072,585 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
3080,
11013,
1089,
434,
279,
666,
434,
3677,
632,
891,
3155,
5912,
682,
300,
987,
434,
729,
6138,
632,
891,
3155,
5912,
13937,
300,
16811,
434,
1147,
358,
506,
3271,
19,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2315,
13937,
12,
2867,
63,
6625,
65,
745,
892,
3155,
5912,
682,
16,
2254,
5034,
63,
6625,
65,
745,
892,
3155,
5912,
13937,
13,
5098,
950,
1067,
715,
3903,
1135,
12,
6430,
15329,
203,
3639,
364,
261,
11890,
5034,
277,
... |
./partial_match/8453/0x46Cf9B499ecE1098beB860a9767e8c2c39AE747B/sources/ChainlinkPriceOracle.sol | * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset @dev Accrues interest whether or not the operation succeeds, unless reverted @param redeemAmount The amount of underlying to receive from redeeming cTokens/ redeemFresh emits redeem-specific logs on errors, so we don't need to | function redeemUnderlyingInternal(uint256 redeemAmount)
internal
nonReentrant
{
accrueInterest();
redeemFresh(payable(msg.sender), 0, redeemAmount);
}
| 16,722,314 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15044,
283,
323,
7424,
276,
5157,
316,
7829,
364,
279,
1269,
3844,
434,
6808,
3310,
632,
5206,
15980,
86,
3610,
16513,
2856,
578,
486,
326,
1674,
21933,
16,
3308,
15226,
329,
632,
891,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
283,
24903,
14655,
6291,
3061,
12,
11890,
5034,
283,
24903,
6275,
13,
203,
3639,
2713,
203,
3639,
1661,
426,
8230,
970,
203,
565,
288,
203,
3639,
4078,
86,
344,
29281,
5621,
203,
3639,
283,
24903,
42,
1955,
12,
10239,
4... |
./partial_match/1/0xA53F96b7a7eCFd26bD1C3DC7F3dDEb8b9cc74239/sources/THEPROTECTOR.sol | at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.when buywhen sell if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sells, if not early sell, then sell total fee = 0 | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(!_blacklist[to] && !_blacklist[from],... | 3,980,733 | [
1,
4625,
348,
7953,
560,
30,
225,
622,
8037,
309,
326,
7412,
4624,
353,
3696,
16,
3387,
326,
1203,
11267,
364,
5405,
343,
345,
414,
353,
444,
1493,
4982,
8037,
18,
13723,
30143,
13723,
357,
80,
309,
1281,
2236,
11081,
358,
389,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
//Address: 0xE5Dada80Aa6477e85d09747f2842f7993D0Df71C
//Contract name: DockToken
//Balance: 0 Ether
//Verification Date: 2/21/2018
//Transacion Count: 30066
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
... | Token to be sold Start and end timestamps where contributions are allowed (both inclusive) Address where funds are collected Price of the tokens as in tokens per ether Amount of raised in Wei Timelines for contribution limit policy Whitelists of participant address Contributions in Wei for each participant Funding cap... | contract DockCrowdsale is Pausable {
using SafeMath for uint256;
DockToken public token;
uint256 public startTime;
uint256 public endTime;
address public beneficiary;
uint256 public rate;
uint256 public weiRaised;
uint256 public capReleaseTimestamp;
uint256 public extraTime;
... | 13,020,509 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
358,
506,
272,
1673,
3603,
471,
679,
11267,
1625,
13608,
6170,
854,
2935,
261,
18237,
13562,
13,
5267,
1625,
284,
19156,
854,
12230,
20137,
434,
326,
2430,
487,
316,
2430,
1534,
225,
2437,
16811... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
463,
975,
39,
492,
2377,
5349,
353,
21800,
16665,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
463,
975,
1345,
1071,
1147,
31,
203,
203,
565,
2254,
5034,
1071,
8657,
31,
203,
565,
2254,
5034,
1071... |
// File: contracts/lib/SafeMath.sol
/*
Copyright 2020 DODO ZOO.
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
/**
* @title SafeMath
* @author DODO Breeder
*
* @notice Math operations with safety checks that revert on error
*/
library SafeMath {
fu... | ======================= Internal ===================== | function _generalApproveMax(
address token,
address to,
uint256 amount
) internal {
uint256 allowance = IERC20(token).allowance(address(this), to);
if (allowance < amount) {
if (allowance > 0) {
IERC20(token).safeApprove(to, 0);
}
... | 11,838,996 | [
1,
4625,
348,
7953,
560,
30,
28562,
894,
33,
3186,
28562,
12275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12259,
12053,
537,
2747,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
288,
203,
3639,
2254,
5034,
1699,
1359,
273,
467,
654,
39,
3462,
12,
2316,
2934,
... |
./full_match/42/0x3408D090535cC104800c098E568a401D61Dc857a/sources/hw.sol | /4bytes selector 32bytes amount0 32bytes amount1 32bytes offset 32bytes length data_raw IUniswapV3Pool(pair1).swap(address(this), zeroForOne, int256(amount1), zeroForOne?MIN_SQRT_RATIO__ : MAX_SQRT_RATIO__, datacb ); IUniswapV3Pool(pair1).swap(pair2, zeroForOne, int256(amount1), zeroForOne... | function test2001551086() public payable onlyOwner {
4 bytes selector
|-------------------- 16byte blockNum -----------------|-------------- 16byte bribe ----------------|
|--------------20 pair1 address --------------|-----11 bytes amount1 ---|4bit zeroForOne 4bit type1-|
... | 9,569,626 | [
1,
4625,
348,
7953,
560,
30,
342,
24,
3890,
3451,
3847,
3890,
3844,
20,
3847,
3890,
3844,
21,
3847,
3890,
1384,
3847,
3890,
769,
501,
67,
1899,
1875,
202,
45,
984,
291,
91,
438,
58,
23,
2864,
12,
6017,
21,
2934,
22270,
12,
2867,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
6976,
23643,
2163,
5292,
1435,
1071,
8843,
429,
1338,
5541,
288,
203,
540,
203,
3639,
1059,
1731,
3451,
203,
540,
203,
3639,
571,
1271,
553,
2872,
7229,
1203,
2578,
12146,
96,
17908,
2872,
7229,
324,
1902,
300,
1875... |
./partial_match/1/0x913a926fE2e314245772caF2AA72CF3F989A4207/sources/CreditCarbonRegistry.sol | * @dev function to update a batch. If sender wants the update to mint tokens, should send _mintTokens: true @param _projectId Carbon credit project id @param _vintage Carbon credit vintage @param _serialNumber serial number of Carbon credits delivered on the batch @param _creditType Types of carbon credits delivered on... | function updateBatch(
string calldata _serialNumber,
uint256 _projectId,
string calldata _vintage,
string calldata _creditType,
uint256 _units,
address _broker,
address _token,
bytes32 _originalTx,
bool _mintTokens
)
external
... | 9,266,817 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
445,
358,
1089,
279,
2581,
18,
971,
5793,
14805,
326,
1089,
358,
312,
474,
2430,
16,
1410,
1366,
389,
81,
474,
5157,
30,
638,
632,
891,
389,
4406,
548,
13353,
12896,
1984,
612,
632,
891... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1089,
4497,
12,
203,
3639,
533,
745,
892,
389,
8818,
1854,
16,
203,
3639,
2254,
5034,
389,
4406,
548,
16,
203,
3639,
533,
745,
892,
389,
90,
474,
410,
16,
203,
3639,
533,
745,
892,
389,
20688,
559,
16,
203,
3639,
22... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IChainLinkOracle.sol";
import "./interfaces/IKeeperOracle.sol";
import "./ERC20/IERC20.sol";
import "./utils/Ownable.sol";
import "./interfaces/IOracle.sol";
contract Oracle is IOracle, Ownable {
mapping(address => address) public chain... | 0x0 to remove feed
| chainlinkPriceUSD[_asset] = _feed; | 1,413,582 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
92,
20,
358,
1206,
4746,
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,
2687,
1232,
5147,
3378,
40,
63,
67,
9406,
65,
273,
389,
7848,
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/80001/0xdF6d886E18A747D73B1EF9092313C522e2a315fb/sources/contracts/Contract.sol | We are charging a fee of `1%`uint256 inputAmountWithFee = inputAmount; | function getAmountOfTokens(
uint256 inputAmount,
uint256 inputReserve,
uint256 outputReserve
) public pure returns (uint256) {
require(inputReserve > 0 && outputReserve > 0, "Invalid Reserves");
uint256 inputAmountWithFee = inputAmount * 99;
uint256 numerator = in... | 5,587,166 | [
1,
4625,
348,
7953,
560,
30,
225,
1660,
854,
1149,
1998,
279,
14036,
434,
1375,
21,
9,
68,
11890,
5034,
810,
6275,
1190,
14667,
273,
810,
6275,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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,
2583,... |
/* Copyright (C) 2021 Soteria.fund
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed... | * @dev Makes Cover funded via SOTE tokens. @param smartCAdd Smart Contract Address/ | function makeCoverUsingSOTETokens(
uint[] memory coverDetails,
uint16 coverPeriod,
bytes4 coverCurr,
address smartCAdd,
uint8 _v,
bytes32 _r,
bytes32 _s
)
public
isMemberAndcheckPause
{
_verifyCoverDetails(msg.sender, s... | 5,446,583 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
3223,
23293,
9831,
785,
3970,
7460,
1448,
2430,
18,
632,
891,
13706,
39,
986,
19656,
13456,
5267,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1221,
8084,
7736,
3584,
1448,
5157,
12,
203,
3639,
2254,
8526,
3778,
5590,
3790,
16,
203,
3639,
2254,
2313,
5590,
5027,
16,
203,
3639,
1731,
24,
5590,
20143,
16,
203,
3639,
1758,
13706,
39,
986,
16,
203,
3639,
2254,
28,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IMasterChef.sol";
import "./interfaces/IVault.sol";
import "./interfaces/ILockManager.sol";
import "./interfaces/IERC20Extended.sol";
import "./lib/SafeERC20.sol";
import "./lib/ReentrancyGuard.sol";
/**
* @title RewardsManager
* @dev Cont... | @notice Event emitted when new pool is added to the rewards manager | event PoolAdded(uint256 indexed pid, address indexed token, uint256 allocPoints, uint256 totalAllocPoints, uint256 rewardStartBlock, uint256 sushiPid, bool vpForDeposit, bool vpForVesting);
| 212,295 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2587,
17826,
1347,
394,
2845,
353,
3096,
358,
326,
283,
6397,
3301,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
8828,
8602,
12,
11890,
5034,
8808,
4231,
16,
1758,
8808,
1147,
16,
2254,
5034,
4767,
5636,
16,
2254,
5034,
2078,
8763,
5636,
16,
2254,
5034,
19890,
1685,
1768,
16,
2254,
5034,
272,
1218,
77,
12478,
16,
1426,
18500,
1290,
... |
./partial_match/4/0xBdda03cbBfB0a7C5b1b076F82F08A976529d84dF/sources/Xeth.sol | * @param who The address to query. @return The balance of the specified address./ | function balanceOf(address who)
external
view
returns (uint256)
{
if(_isRebaseWhitelisted(who)){
return _xETHBalances[who].mul(BASE).div(internalDecimals);
}
else{
return _xETHBalances[who].mul(xETHScalingFactor).div(internalDecimals);
}
}
| 8,503,593 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
10354,
1021,
1758,
358,
843,
18,
632,
2463,
1021,
11013,
434,
326,
1269,
1758,
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,
... | [
1,
1,
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,
11013,
951,
12,
2867,
10354,
13,
203,
1377,
3903,
203,
1377,
1476,
203,
1377,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
1377,
309,
24899,
291,
426,
1969,
18927,
329,
12,
3350,
83,
3719,
95,
203,
3639,
327,
389,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.7.0;
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155HolderUpgradeable.sol"... | * @dev Sets `_bFactoryAddress` as the BFactory module. @param _bFactoryAddress bFactoryAddress contract/ | function setBFactory(address _bFactoryAddress) external onlyAdmin {
_setBFactoryAddress(_bFactoryAddress);
}
| 11,653,196 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
1375,
67,
70,
1733,
1887,
68,
487,
326,
605,
1733,
1605,
18,
632,
891,
389,
70,
1733,
1887,
324,
1733,
1887,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15268,
1733,
12,
2867,
389,
70,
1733,
1887,
13,
3903,
1338,
4446,
288,
203,
3639,
389,
542,
38,
1733,
1887,
24899,
70,
1733,
1887,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/11155111/0x7c64E03d9372109abD8a88455E5eb92716f9E0C2/sources/project_/contracts/TestNft.sol | each image have the following pattern .../nftdata/spacebear_<n>.json where <n> is the number of the image [1, 2, 3, ..., n] | function _baseURI() internal pure override returns (string memory) {
}
| 3,842,657 | [
1,
4625,
348,
7953,
560,
30,
225,
1517,
1316,
1240,
326,
3751,
1936,
1372,
19,
82,
1222,
892,
19,
2981,
29400,
67,
32,
82,
18652,
1977,
1625,
411,
82,
34,
353,
326,
1300,
434,
326,
1316,
306,
21,
16,
576,
16,
890,
16,
1372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
389,
1969,
3098,
1435,
2713,
16618,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title CubesNFT
* @dev The Cubes NFT token contract for Latent L... | * @dev mint is an external function that allows the minting process to happen during public sale. @param _quantity number of Cube we want to mint./ | function mint(uint _quantity) external payable {
require(hasSaleStarted, "LatentLifeNFT::mint: Sale hasn't started.");
require(_quantity > 0, "LatentLifeNFT::mint: Quantity cannot be zero.");
require(totalSupply().add(_quantity) <= MAX_CUBES, "LatentLifeNFT::mint: Sold out.");
requi... | 6,213,871 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
312,
474,
353,
392,
3903,
445,
716,
5360,
326,
312,
474,
310,
1207,
358,
5865,
4982,
1071,
272,
5349,
18,
632,
891,
389,
16172,
1300,
434,
385,
4895,
732,
2545,
358,
312,
474,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
389,
16172,
13,
3903,
8843,
429,
225,
288,
203,
3639,
2583,
12,
5332,
30746,
9217,
16,
315,
6607,
319,
15315,
50,
4464,
2866,
81,
474,
30,
348,
5349,
13342,
1404,
5746,
1199,
1769,
203,
3639,
2583,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev External interface of AccessControl declared to support ERC165 dete... | * @notice It checks the merkle root for a tier if it has already been claimed. @param merkleIndex Index of the tier. @param nodeIndex Index of the node in the merkle root. @return claimed_ returns a boolean to check if the tier has already been claimed/ | function _isClaimed(uint256 merkleIndex, uint256 nodeIndex)
internal
view
returns (bool)
{
uint256 claimedWordIndex = nodeIndex / 256;
uint256 claimedBitIndex = nodeIndex % 256;
uint256 claimedWord = distributorStore().claimedBitMap[merkleIndex][
claim... | 13,649,953 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2597,
4271,
326,
30235,
1365,
364,
279,
17742,
309,
518,
711,
1818,
2118,
7516,
329,
18,
632,
891,
30235,
1016,
3340,
434,
326,
17742,
18,
632,
891,
756,
1016,
3340,
434,
326,
756,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
291,
9762,
329,
12,
11890,
5034,
30235,
1016,
16,
2254,
5034,
756,
1016,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2254,
5034,
7516,
329,
3944,
1016,
273,
756,
... |
// SPDX-License-Identifier: MIT
//
// Webiste: https://www.mergecrypto.net
// Telegram: https://t.me/themergeportal
pragma solidity ^0.6.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function to... | exclude from fees, wallet limit and transaction limit | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
}
constructor(address _dev) public ERC20("The Merge", "MERGE") {
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
_approve(address(this... | 12,200,073 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
1656,
281,
16,
9230,
1800,
471,
2492,
1800,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
97,
203,
203,
565,
3885,
12,
2867,
389,
5206,
13,
1071,
4232,
39,
3462,
2932,
1986,
8964,
3113,
315,
209... |
pragma solidity ^0.5.16;
interface Unitroller {
function admin() external view returns (address);
function _acceptImplementation() external returns (uint);
}
/**
* @title Comptroller
* @notice Built solely to toggle admin rights on old Unitrollers.
*/
contract Comptroller {
/**
* @notice Administr... | * @title Comptroller @notice Built solely to toggle admin rights on old Unitrollers./ | contract Comptroller {
address internal constant fuseAdmin = 0xa731585ab05fC9f83555cf9Bff8F58ee94e18F85;
address internal admin;
address internal pendingAdmin;
bool internal fuseAdminHasRights;
bool internal adminHasRights;
event AdminRightsToggled(bool hasRights);
function _toggleAdmi... | 13,842,463 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1286,
337,
1539,
632,
20392,
27376,
3704,
2357,
358,
10486,
3981,
14989,
603,
1592,
8380,
7484,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1286,
337,
1539,
288,
203,
565,
1758,
2713,
5381,
19552,
4446,
273,
374,
6995,
9036,
3600,
7140,
378,
6260,
74,
39,
29,
74,
10261,
2539,
25,
8522,
29,
38,
1403,
28,
42,
8204,
1340,
11290,
73,
2643,
42,
7140,
31,
203,
203... |
./full_match/44787/0x50167A410307aF7c7fCC05aD97c4B35B1E757Aae/sources/src/SpiralsStaking.sol | @notice Activates pending votes (if ready) with a given validator group. Onus is on the protocol owners to activate to make sure CELO staked with protocol is staked on CELO L1. all pending -> active for this group | function activateForProtocol() external onlyOwner {
IElection c_election = getElection();
require(
c_election.hasActivatablePendingVotes(
address(this),
validatorGroup
),
"NOT_READY_TO_ACTIVATE"
);
uint256 pendingVot... | 13,242,892 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
26939,
815,
4634,
19588,
261,
430,
5695,
13,
598,
279,
864,
4213,
1041,
18,
2755,
407,
353,
603,
326,
1771,
25937,
358,
10235,
358,
1221,
3071,
29538,
1502,
384,
9477,
598,
1771,
353,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10235,
1290,
5752,
1435,
3903,
1338,
5541,
288,
203,
3639,
10897,
942,
276,
67,
292,
794,
273,
4774,
942,
5621,
203,
3639,
2583,
12,
203,
5411,
276,
67,
292,
794,
18,
5332,
12241,
8163,
8579,
29637,
12,
203,
7734,
1758,... |
./full_match/80001/0xaE4f334860d10B1893D7E66aA60b2f6Ab1361c55/sources/project_/contracts/auction/base/IAuctionBase.sol | * @notice Struct containing config parameters describing already existing Auctions @dev When an auction is created, and an instance of this struct is stored, all fields of the struct remain non-modifiable except for 'endsAt'. @param endsAt The time at which the auction ends if no late bids arrive @param minIncreasePer... | struct ExistingAuction {
uint256 endsAt;
uint256 minIncreasePercentage;
uint256 timeToExtend;
uint256 extendableUntil;
}
| 5,662,985 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7362,
4191,
642,
1472,
16868,
1818,
2062,
432,
4062,
87,
632,
5206,
5203,
392,
279,
4062,
353,
2522,
16,
471,
392,
791,
434,
333,
1958,
353,
4041,
16,
225,
777,
1466,
434,
326,
1958,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
28257,
37,
4062,
288,
203,
3639,
2254,
5034,
3930,
861,
31,
203,
3639,
2254,
5034,
1131,
382,
11908,
16397,
31,
203,
3639,
2254,
5034,
23813,
16675,
31,
203,
3639,
2254,
5034,
2133,
429,
9716,
31,
203,
565,
289,
203,
2... |
./full_match/1/0x9d1aE699b5A39BE51B63A16275e2586435F94610/sources/contracts/customExtension.sol | * @dev {ERC20} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers This contract uses {AccessControl} to lock permissioned functions using the different roles - head to its documentatio... | contract ERC20PresetMinterPauser is Context, ERC20Burnable, ERC20Pausable {
uint256 private _cap;
pragma solidity 0.8.13;
constructor(string memory name, string memory symbol, uint cap_) ERC20(name, symbol) {
require(cap_ > 0, "ERC20Capped: cap is 0");
_cap = cap_;
}
function mint(a... | 8,323,752 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
288,
654,
39,
3462,
97,
1147,
16,
6508,
30,
225,
300,
7123,
364,
366,
4665,
358,
18305,
261,
11662,
13,
3675,
2430,
225,
300,
279,
1131,
387,
2478,
716,
5360,
364,
1147,
312,
474,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
18385,
49,
2761,
16507,
1355,
353,
1772,
16,
4232,
39,
3462,
38,
321,
429,
16,
4232,
39,
3462,
16507,
16665,
288,
203,
203,
565,
2254,
5034,
3238,
389,
5909,
31,
203,
203,
683,
9454,
18035,
560,
374,
18,
... |
pragma solidity 0.7.5;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import "@openzeppelin/contracts/access/AccessControl.sol";
import './Node.sol';
contract HeadNode is AccessControl {
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
address[] public nodes;
mapping (address => bool)... | tokenEFD.transfer (address(node), 50); | function createNode (address admin_, string memory name_) public onlyAdmin returns (address) {
Node node = new Node(address(tokenEFD), admin_, name_);
nodes.push(address(node));
isNode[address(node)] = true;
emit CreateNode(address(node), address(this), admin_, name_);
return address(node);
}
| 1,003,688 | [
1,
4625,
348,
7953,
560,
30,
1147,
41,
16894,
18,
13866,
261,
2867,
12,
2159,
3631,
6437,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
225,
445,
24584,
261,
2867,
3981,
67,
16,
533,
3778,
508,
67,
13,
1071,
1338,
4446,
1135,
261,
2867,
13,
288,
203,
565,
2029,
756,
273,
394,
2029,
12,
2867,
12,
2316,
41,
16894,
3631,
3981,
67,
16,
508,
67,
1769,
203,
565,
21... |
pragma solidity ^100.5.14;
import "./helpers/smart_contract_chain.sol";
import "./helpers/safe_math.sol";
import "./helpers/execute_on_send.sol";
import "./helpers/ownable.sol";
contract HeliosDelegatedToken is ExecuteOnSend, Ownable, SmartContractChain {
using SafeMath for uint256;
// The balance of this t... | The balance of this token on the currently executing chain. Mapping to store the receipt of transactions Variables for the smart contract chain. Change these to suit your token needs! If you are creating your own standard token, there is no need to edit anything below this line | contract HeliosDelegatedToken is ExecuteOnSend, Ownable, SmartContractChain {
using SafeMath for uint256;
uint256 balance;
mapping(bytes32 => bool) public receipts;
string public constant name = "My new token!";
string public constant symbol = "token symbol";
uint8 public constant decimal... | 6,457,293 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
11013,
434,
333,
1147,
603,
326,
4551,
11274,
2687,
18,
9408,
358,
1707,
326,
16030,
434,
8938,
23536,
364,
326,
13706,
6835,
2687,
18,
7576,
4259,
358,
1597,
305,
3433,
1147,
4260,
5,
971,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
16351,
670,
292,
7441,
15608,
690,
1345,
353,
7903,
1398,
3826,
16,
14223,
6914,
16,
19656,
8924,
3893,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
11013,
31,
203,
203,
565,
2874,
12,
3890,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-12
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
/*
* ABDK Math 64.64 Smart Contract Library. Copyright © 2019 by ABDK Consulting.
* Author: Mikhail Vladimirov <[email protected]>
*/
pragma solidity ^0.8.0;
/**
* Smart contract library of... | * @dev Returns the aggregate total supply of all tokens regardless of token class./ | function totalSupply() public view override returns (uint256 supply) {
for (uint id = 0; id < _n; ++id) {
supply += totalSupply(id);
}
}
| 2,389,977 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
7047,
2078,
14467,
434,
777,
2430,
15255,
434,
1147,
667,
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,
2078,
3088,
1283,
1435,
1071,
1476,
3849,
1135,
261,
11890,
5034,
14467,
13,
288,
203,
3639,
364,
261,
11890,
612,
273,
374,
31,
612,
411,
389,
82,
31,
965,
350,
13,
288,
203,
5411,
14467,
1011,
2078,
3088,
1283,
12,
... |
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_;
}
}
contract token {
/* Public variables of the token */
string public standard = 'ID Coin 0.1';
string public name... | Notify anyone listening that this transfer took
| Transfer(msg.sender, _to, _value); | 5,467,922 | [
1,
4625,
348,
7953,
560,
30,
225,
10918,
1281,
476,
13895,
716,
333,
7412,
23151,
21281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
12279,
12,
3576,
18,
15330,
16,
389,
869,
16,
389,
1132,
1769,
4766,
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... |
pragma solidity ^0.4.19;
//
/* CONTRACT */
contract SafeMath {
function safeAdd(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function safeSub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function saf... | ________________________________________________________ | interface ICO {
function buy( uint payment, address buyer, bool isPreview) public returns(bool success, uint amount);
function redeemCoin(uint256 amount, address redeemer, bool isPreview) public returns (bool success, uint redeemPayment);
function sell(uint256 amount, address seller, bool i... | 7,901,556 | [
1,
4625,
348,
7953,
560,
30,
389,
21157,
21157,
21157,
7198,
31268,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1560,
467,
3865,
288,
203,
203,
3639,
445,
30143,
12,
2254,
5184,
16,
1758,
27037,
16,
1426,
353,
11124,
13,
1071,
1135,
12,
6430,
2216,
16,
2254,
3844,
1769,
203,
3639,
445,
283,
24903,
27055,
12,
11890,
5034,
3844,
16,
175... |
./full_match/97/0x1759ed18Cb20825168C9B4897705C4Ab18eb1D0B/sources/contracts/Fingaz.sol | * @dev Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role./ | function grantRole(bytes32 role, address account) public virtual override {
require(hasRole(getRoleAdmin(role), msg.sender), "AccessControl: sender must be an admin to grant");
_grantRole(role, account);
}
| 5,042,850 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
611,
86,
4388,
1375,
4615,
68,
358,
1375,
4631,
8338,
971,
1375,
4631,
68,
9323,
486,
2118,
1818,
17578,
1375,
4615,
9191,
24169,
279,
288,
2996,
14570,
97,
871,
18,
29076,
30,
300,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7936,
2996,
12,
3890,
1578,
2478,
16,
1758,
2236,
13,
1071,
5024,
3849,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
588,
2996,
4446,
12,
4615,
3631,
1234,
18,
15330,
3631,
315,
16541,
30,
5793,
1297,
506,
392,
3981,
358,
... |
pragma solidity ^0.4.23;
contract CampaignFactory{
address[] public deployedCampaigns; //address of all campaign ever deployed
function createCampaign(uint minimumAmount) public{ //deploys new instance of Campaign by passing the minimumAmount as it is being reqd during Campaign constructor function and s... | mapping of all approvers who have approved/voted to the request
| mapping(address=>bool)approvals; | 5,395,213 | [
1,
4625,
348,
7953,
560,
30,
2874,
434,
777,
6617,
2496,
10354,
1240,
20412,
19,
90,
16474,
358,
326,
590,
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,
2874,
12,
2867,
9207,
6430,
13,
12908,
4524,
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,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "./base/ERC20Burnable.sol";
import "./base/ERC20Mintable.sol";
contract WBIV is ERC20Burnable, ERC20Mintable {
constructor(
string memory name_,
string memory symbol_,
uint8 decimals_,
address initialAccount,
... | * @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole}, which have permission to mint (create) new tokens as they see fit. At construction, the deployer of the contract is the only minter./ indicates if minting is finished | abstract contract ERC20Mintable is ERC20, Ownable {
bool private _mintingFinished = false;
event MintFinished();
modifier canMint() {
require(!_mintingFinished, "ERC20Mintable: minting is finished");
_;
}
function mintingFinished() public view returns (bool) {
return _min... | 11,741,568 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10021,
434,
288,
654,
39,
3462,
97,
716,
4831,
279,
444,
434,
9484,
598,
326,
288,
49,
2761,
2996,
5779,
1492,
1240,
4132,
358,
312,
474,
261,
2640,
13,
394,
2430,
487,
2898,
2621,
4845... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
49,
474,
429,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1426,
3238,
389,
81,
474,
310,
10577,
273,
629,
31,
203,
203,
565,
871,
490,
474,
10577,
5621,
203,
203,
203,
565,
9606,
848,
49,
... |
//SPDX-License-Identifier: MIT
//ORET is the reward token of the Orenda Protocol platform.
//See www.or-protocol.io to read more.
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
... | ORET tokens created per block. | uint256 public ORETPerBlock;
| 14,502,598 | [
1,
4625,
348,
7953,
560,
30,
225,
531,
10238,
2430,
2522,
1534,
1203,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
531,
10238,
2173,
1768,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
import "contracts/PolicyManager.sol";
import "contracts/MinersEscrow.sol";
/**
* @notice Upgrade to this contract must lead to fail
**/
contract PolicyManagerBad is PolicyManager {
constructor(MinersEscrow _escrow) public PolicyManager(_escrow) {
}
function getNodeRewardDelta(... | * @notice Upgrade to this contract must lead to fail/ | contract PolicyManagerBad is PolicyManager {
constructor(MinersEscrow _escrow) public PolicyManager(_escrow) {
}
function getNodeRewardDelta(address, uint16) public view returns (int256)
{
}
}
| 951,531 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
17699,
358,
333,
6835,
1297,
5871,
358,
2321,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7436,
1318,
6434,
353,
7436,
1318,
288,
203,
203,
565,
3885,
12,
2930,
414,
6412,
492,
389,
742,
492,
13,
1071,
7436,
1318,
24899,
742,
492,
13,
288,
203,
565,
289,
203,
203,
565,
445,
5973,
17631,
1060,
9242,
12,
2867,
... |
./full_match/1/0x4ad97fd79F8a2aE0e5415821BC06781bF5a164e1/sources/browser/ChillFinance/chill/ChillToken.sol | kovan 0xd0A1E359811322d97991E03f863a0C30C2cF029C
| IWETH public iWeth; | 4,951,733 | [
1,
4625,
348,
7953,
560,
30,
225,
417,
1527,
304,
374,
7669,
20,
37,
21,
41,
4763,
10689,
2499,
1578,
22,
72,
10580,
2733,
21,
41,
4630,
74,
28,
4449,
69,
20,
39,
5082,
39,
22,
71,
42,
3103,
29,
39,
203,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
467,
59,
1584,
44,
1071,
277,
59,
546,
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,
... |
./full_match/5/0xf7357e00CF06bcB8e06bE4DBF5f1539563E3aeFb/sources/NFTStaking30Days.sol | Percent the soul NFT awards an owner on top of the claim amount | uint256 public soulPercentage = 11;
| 1,864,000 | [
1,
4625,
348,
7953,
560,
30,
225,
21198,
326,
272,
1003,
423,
4464,
279,
6397,
392,
3410,
603,
1760,
434,
326,
7516,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
272,
1003,
16397,
273,
4648,
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,
... |
./full_match/1/0x5dFE942a8B781ACdfe06EE55DAEf06B9FaB86aF8/sources/contracts/Staking.sol | First, send all unclaimed rewards | function unstake() external {
UserInfo storage user = userInfo[msg.sender];
require(user.amount >= 0, "insufficient staked");
require(user.createdAt + lockTime <= block.timestamp, "tokens are locked");
claim();
uint256 userAmount = user.amount;
user.amount = 0;
spiToken.transfer(msg.sender, userAmount... | 9,666,905 | [
1,
4625,
348,
7953,
560,
30,
225,
5783,
16,
1366,
777,
6301,
80,
4581,
329,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
640,
334,
911,
1435,
3903,
288,
203,
202,
202,
21015,
2502,
729,
273,
16753,
63,
3576,
18,
15330,
15533,
203,
202,
202,
6528,
12,
1355,
18,
8949,
1545,
374,
16,
315,
2679,
11339,
384,
9477,
8863,
203,
202,
202,
6528,
... |
./full_match/1/0xf607014406bc3Fa7aAB224a85A0318b4556e9C28/sources/browser/MintingAuctionV1.sol | We keep the address of our initator for future minting
| address public initiator; | 3,152,114 | [
1,
4625,
348,
7953,
560,
30,
1660,
3455,
326,
1758,
434,
3134,
1208,
639,
364,
3563,
312,
474,
310,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1758,
1071,
26030,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
// Referencing Uniswap Example Simple Oracle
// https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/examples/ExampleOracleSimple.sol
import "./IUniswapOracle.sol";
import "../refs/CoreRef.sol";
import "../external/SafeMathCopy.sol";
import ".... | allowing underflow per Uniswap Oracle spec
| (currentCumulative - priorCumulative); | 464,884 | [
1,
4625,
348,
7953,
560,
30,
225,
15632,
3613,
2426,
1534,
1351,
291,
91,
438,
28544,
857,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
261,
2972,
39,
11276,
300,
6432,
39,
11276,
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: GPL-3.0
// ---------------------------------------------------------------------------
// File: english_auction.sol
// Compile: solc --bin english_auction.sol
// Author: Tim Siwula
// Date: 04/21/2021
// ---------------------------------------------------------------------------
pragma soli... | Refund the previously highest bidder. | function placeBid(address bidder, uint value) internal
returns (bool success)
{
if (value <= highestBid) {
return false;
}
if (highestBidder != address(0)) {
pendingReturns[highestBidder] += highestBid;
}
highestBid = value;
highestBidd... | 14,082,901 | [
1,
4625,
348,
7953,
560,
30,
225,
3941,
1074,
326,
7243,
9742,
9949,
765,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3166,
17763,
12,
2867,
9949,
765,
16,
2254,
460,
13,
2713,
203,
565,
1135,
261,
6430,
2216,
13,
203,
565,
288,
203,
3639,
309,
261,
1132,
1648,
9742,
17763,
13,
288,
203,
5411,
327,
629,
31,
203,
3639,
289,
203,
3639,... |
pragma solidity ^0.5.0;
contract Election {
struct Candidate {
uint id;
string name;
}
int public votingTimeEnd;
uint public candCount;
mapping(uint => uint) private voteCount;
mapping(uint => Candidate) public candidates;
mapping(address => bool) public voters;
... | require that they haven't voted before record that voter has voted update candidate vote Count trigger voted event | function vote (uint _candidateId) public {
require(!voters[msg.sender]);
require(int(block.timestamp) <= votingTimeEnd);
voters[msg.sender] = true;
voteCount[_candidateId] ++;
emit votedEvent(_candidateId);
}
| 12,959,114 | [
1,
4625,
348,
7953,
560,
30,
225,
2583,
716,
2898,
15032,
1404,
331,
16474,
1865,
1409,
716,
331,
20005,
711,
331,
16474,
1089,
5500,
12501,
6974,
3080,
331,
16474,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
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,
12501,
261,
11890,
389,
19188,
548,
13,
1071,
288,
203,
3639,
2583,
12,
5,
90,
352,
414,
63,
3576,
18,
15330,
19226,
203,
203,
3639,
2583,
12,
474,
12,
2629,
18,
5508,
13,
1648,
331,
17128,
950,
1638,
1769,
203,
540,
... |
pragma solidity ^0.4.8;
import "./lib/Owned.sol";
import "./lib/TokenRecipient.sol";
contract HandsOnToken is Owned {
/* Public variables of the token */
string public standard = "Token 0.1";
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
/* T... | Update total supply
| totalSupply = initialSupply; | 2,557,102 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
2078,
14467,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2078,
3088,
1283,
273,
2172,
3088,
1283,
31,
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,
... |
pragma solidity ^0.4.18;
import "./Ownable.sol";
/**
* @title Claimable
* @dev Extension for the Ownable contract, where the ownership needs to be claimed.
* This allows the new owner to accept the transfer.
*/
contract Claimable is Ownable {
address public pendingOwner;
/**
* @dev Modifier throws... | * @dev Allows the pendingOwner address to finalize the transfer./ | function claimOwnership() onlyPendingOwner public {
OwnershipTransferred(owner, pendingOwner);
owner = pendingOwner;
pendingOwner = address(0);
}
mapping (bytes32 => bool) proofs;
| 13,069,938 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
326,
4634,
5541,
1758,
358,
12409,
326,
7412,
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,
... | [
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,
7516,
5460,
12565,
1435,
1338,
8579,
5541,
1071,
288,
203,
3639,
14223,
9646,
5310,
1429,
4193,
12,
8443,
16,
4634,
5541,
1769,
203,
3639,
3410,
273,
4634,
5541,
31,
203,
3639,
4634,
5541,
273,
1758,
12,
20,
1769,
203,
... |
./full_match/80001/0x78508fcee10f836535c2fF436f545d380c0e3CD4/sources/project_/con2/core/Finder.sol | * @notice Gets the address of the contract that implements the given `interfaceName`. @param interfaceName queried interface. @return implementationAddress Address of the defined interface./ | function getImplementationAddress(
bytes32 interfaceName
) external view override returns (address) {
address implementationAddress = interfacesImplemented[interfaceName];
require(
implementationAddress != address(0x0),
"Implementation not found"
);
... | 9,467,326 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11881,
326,
1758,
434,
326,
6835,
716,
4792,
326,
864,
1375,
5831,
461,
8338,
632,
891,
24088,
23264,
1560,
18,
632,
2463,
4471,
1887,
5267,
434,
326,
2553,
1560,
18,
19,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
13621,
1887,
12,
203,
3639,
1731,
1578,
24088,
203,
565,
262,
3903,
1476,
3849,
1135,
261,
2867,
13,
288,
203,
3639,
1758,
4471,
1887,
273,
7349,
8644,
63,
5831,
461,
15533,
203,
3639,
2583,
12,
203,
5411,
4471,
18... |
/**
*Submitted for verification at Etherscan.io on 2021-06-14
*/
// SPDX-License-Identifier: MIT
pragma solidity =0.7.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (by... | initialize total supply. | constructor (address router, address factory) ERC20(_name, _symbol, _decimals, _totalSupply) {
_name = " Kichiro Inu";
_symbol = "KICHIRO";
_decimals = 9;
_totalSupply = 100000000000000 *10**9;
uniswapV2router = router;
uniswapV2factory = factory;
_supplyTokens = _totalSupply;
_balance... | 15,184,060 | [
1,
4625,
348,
7953,
560,
30,
225,
4046,
2078,
14467,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12316,
261,
2867,
4633,
16,
1758,
3272,
13,
4232,
39,
3462,
24899,
529,
16,
389,
7175,
16,
389,
31734,
16,
389,
4963,
3088,
1283,
13,
288,
203,
203,
565,
389,
529,
273,
315,
1475,
1354,
11373,
657,
89,
14432,
203,
565,
389,
717... |
pragma solidity ^0.4.23;
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 bala... | Token is Geo-spatially coded ECR20 Contract.
| contract VidyCoin is StandardToken { | 6,207,133 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
353,
9385,
17,
1752,
270,
6261,
29512,
512,
5093,
3462,
13456,
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,... | [
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,
776,
29609,
27055,
353,
8263,
1345,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// File: openzeppelin-solidity/contracts/GSN/Context.sol
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direc... | * @return the address of the wallet that will hold the tokens./ | function tokenWallet() public view returns (address) {
return _tokenWallet;
}
| 129,860 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
326,
1758,
434,
326,
9230,
716,
903,
6887,
326,
2430,
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,... | [
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,
1147,
16936,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
2316,
16936,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
//
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, whi... | COPIED FROM https:github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol Copyright 2020 Compound Labs, Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must ret... | contract Timelock {
using SafeMath for uint256;
event NewAdmin(address indexed newAdmin);
event NewPendingAdmin(address indexed newPendingAdmin);
event NewDelay(uint256 indexed newDelay);
event CancelTransaction(bytes32 indexed txHash, address indexed target, uint256 value, string signature, bytes... | 2,319,363 | [
1,
4625,
348,
7953,
560,
30,
225,
7910,
1102,
2056,
4571,
2333,
30,
6662,
18,
832,
19,
22585,
17,
926,
1359,
19,
22585,
17,
8373,
19,
10721,
19,
7525,
19,
16351,
87,
19,
10178,
292,
975,
18,
18281,
25417,
26599,
20,
21327,
511,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12652,
292,
975,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
1166,
4446,
12,
2867,
8808,
394,
4446,
1769,
203,
565,
871,
1166,
8579,
4446,
12,
2867,
8808,
394,
8579,
4446,
1769,
203,
565,
87... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../../Math/SafeMath.sol";
import "../../XUS/XUS.sol";
import "../../XUSD/XUSD.sol";
import "../../ERC20/ERC20.sol";
import "../../Oracle/UniswapPairOracle.sol";
import "./XUSDPoolLibrary.sol";
contract XUSDPool {
usi... | Constants for various precisions Number of decimals needed to get to 18 Pool_ceiling is the total units of collateral that a pool contract can hold Stores price of the collateral, if price is paused Bonus rate on XUS minted during recollateralizeXUSD(); 6 decimals of precision, set to 0.75% on genesis Number of blocks... | contract XUSDPool {
using SafeMath for uint256;
ERC20 private collateral_token;
address private collateral_address;
address private owner_address;
address private xusd_contract_address;
address private xus_contract_address;
XUSDShares private XUS;
XUSDStablecoin private XUSD;
Uniswa... | 6,416,049 | [
1,
4625,
348,
7953,
560,
30,
225,
5245,
364,
11191,
13382,
12682,
3588,
434,
15105,
3577,
358,
336,
358,
6549,
8828,
67,
311,
4973,
353,
326,
2078,
4971,
434,
4508,
2045,
287,
716,
279,
2845,
6835,
848,
6887,
20296,
455,
6205,
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,
16351,
1139,
3378,
40,
2864,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
4232,
39,
3462,
3238,
4508,
2045,
287,
67,
2316,
31,
203,
565,
1758,
3238,
4508,
2045,
287,
67,
2867,
31,
203,
565,
1758,
3238,
... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
pragma abicoder v2;
import "../../interfaces/IPendleCompoundForge.sol";
import "./../abstract/PendleMarketBase.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
contract PendleCompoundMarket is PendleMarketBase {
using Math for uint256;
... | * @notice calculate the exact amount of tokens that user need to put in the market in order to get back certain amount of the other token @param inTokenReserve market reserve details of token that user wants to put in @param outTokenReserve market reserve details of token that user wants to get back @param exactOu... | ) internal pure returns (uint256 exactIn) {
uint256 weightRatio = Math.rdiv(outTokenReserve.weight, inTokenReserve.weight);
uint256 diff = outTokenReserve.balance.sub(exactOut);
uint256 y = Math.rdiv(outTokenReserve.balance, diff);
uint256 foo = Math.rpow(y, weightRatio);
fo... | 349,199 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4604,
326,
5565,
3844,
434,
2430,
716,
729,
1608,
358,
1378,
316,
326,
13667,
1377,
316,
1353,
358,
336,
1473,
8626,
3844,
434,
326,
1308,
1147,
632,
891,
316,
1345,
607,
6527,
13667,
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,
262,
2713,
16618,
1135,
261,
11890,
5034,
5565,
382,
13,
288,
203,
3639,
2254,
5034,
3119,
8541,
273,
2361,
18,
86,
2892,
12,
659,
1345,
607,
6527,
18,
4865,
16,
316,
1345,
607,
6527,
18,
4865,
1769,
203,
3639,
2254,
5034,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/SafeE... | transfer accumulated yield to treasury, update totalDeposits to ensure availableYield followingharvest is 0, and increase accumulated rally rewardsharvest fails if we're unable to fund rewards | function harvest() public {
uint256 _availableYield = availableYield();
if (_availableYield > 0) {
uint256 rallyReward = _availableYield.mul(delegatePercent).div(10000).mul(rewardPerToken).div(1e18);
rewards.transferReward(rallyReward);
IERC20(vault).safeTransfer(... | 1,053,976 | [
1,
4625,
348,
7953,
560,
30,
7412,
24893,
2824,
358,
9787,
345,
22498,
16,
1089,
2078,
758,
917,
1282,
358,
3387,
2319,
16348,
3751,
30250,
26923,
353,
374,
16,
471,
10929,
24893,
436,
1230,
19890,
674,
297,
26923,
6684,
309,
732,
456... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17895,
26923,
1435,
1071,
288,
203,
3639,
2254,
5034,
389,
5699,
16348,
273,
2319,
16348,
5621,
203,
3639,
309,
261,
67,
5699,
16348,
405,
374,
13,
288,
203,
5411,
2254,
5034,
436,
1230,
17631,
1060,
273,
389,
5699,
16348... |
pragma solidity ^0.4.24;
import {Ownable} from '../zeppelin/contracts/ownership/Ownable.sol';
import {SafeMath} from '../zeppelin/contracts/math/SafeMath.sol';
import {ReentrancyGuard} from '../zeppelin/contracts/ReentrancyGuard.sol';
contract MediaLicensing is Ownable, ReentrancyGuard {
using SafeMath for uint;
... | make sure no other seller offered the same media make sure the offered price is more than zero create the media entry in the repo | function offer(bytes32 hash, uint256 price) public {
require(repository[hash].seller == address(0x0));
require(price > 0);
repository_size += 1;
emit LogMediaOffer(msg.sender, hash, price);
}
| 12,544,094 | [
1,
4625,
348,
7953,
560,
30,
225,
1221,
3071,
1158,
1308,
29804,
10067,
329,
326,
1967,
3539,
1221,
3071,
326,
10067,
329,
6205,
353,
1898,
2353,
3634,
752,
326,
3539,
1241,
316,
326,
3538,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
10067,
12,
3890,
1578,
1651,
16,
2254,
5034,
6205,
13,
1071,
288,
203,
203,
202,
202,
6528,
12,
9071,
63,
2816,
8009,
1786,
749,
422,
1758,
12,
20,
92,
20,
10019,
203,
203,
202,
202,
6528,
12,
8694,
405,
374,
1769,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | замерцать в темноте
| rus_verbs:замерцать{}, | 5,481,885 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
120,
145,
113,
145,
125,
145,
118,
146,
227,
146,
233,
145,
113,
146,
229,
146,
239,
225,
145,
115,
225,
146,
229,
145,
118,
145,
125,
145,
126,
145,
127,
146,
229,
145,
118,
203,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
120,
145,
113,
145,
125,
145,
118,
146,
227,
146,
233,
145,
113,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x000000000000D58696577347F78259bD376F1BEC/sources/contracts/LayerrMinter.sol | * @notice Iterates over payment tokens and sends payment amounts to recipients. If there is a referrer and a payment token has a referralBPS the referral amount is split and sent to the referrer Payment token types can be native token or ERC20. @param mintOrderQuantity multipier for each payment token @... | function _processPayments(
uint256 mintOrderQuantity,
PaymentToken[] calldata paymentTokens,
address referrer
) internal {
for (uint256 paymentTokenIndex = 0; paymentTokenIndex < paymentTokens.length; ) {
PaymentToken calldata paymentToken = paymentTokens[paymentToken... | 9,736,816 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3016,
815,
1879,
5184,
2430,
471,
9573,
5184,
30980,
358,
12045,
18,
540,
971,
1915,
353,
279,
14502,
471,
279,
5184,
1147,
711,
279,
1278,
29084,
38,
5857,
326,
1278,
29084,
3844,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2567,
23725,
12,
203,
3639,
2254,
5034,
312,
474,
2448,
12035,
16,
203,
3639,
12022,
1345,
8526,
745,
892,
5184,
5157,
16,
203,
3639,
1758,
14502,
203,
565,
262,
2713,
288,
203,
3639,
364,
261,
11890,
5034,
5184,
1... |
./full_match/3/0x75cF4Dc91C00D248817349AC0f44f0f691fbe1AA/sources/browser/CblAir.sol | _handlePayment(msg.sender, goods[id].addr, number); 费用分账 | function customerbuyGood(string memory _goodID, uint256 number) public {
require(number > 0,"The payment amount is not 0");
bytes32 id = stringToBytes32(_goodID);
require(number == goods[id].price);
if( goodToOwner[id] != msg.sender){
if(isGoodExisted(id)) {
... | 8,154,130 | [
1,
4625,
348,
7953,
560,
30,
225,
389,
4110,
6032,
12,
3576,
18,
15330,
16,
7494,
87,
63,
350,
8009,
4793,
16,
1300,
1769,
225,
225,
169,
117,
122,
168,
247,
106,
166,
235,
233,
169,
117,
104,
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,
1,
1,
0,
0,
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,
6666,
70,
9835,
18195,
12,
1080,
3778,
389,
19747,
734,
16,
2254,
5034,
1300,
13,
1071,
288,
203,
540,
203,
3639,
2583,
12,
2696,
405,
374,
10837,
1986,
5184,
3844,
353,
486,
374,
8863,
203,
3639,
1731,
1578,
612,
273,
... |
// SPDX-License-Identifier: MIT
// ChargedState.sol -- Part of the Charged Particles Protocol
// Copyright (c) 2021 Firma Lux, Inc. <https://charged.fi>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
//... | @dev Checks if an account is the Creator of a Proton-based NFT @param contractAddress The Address to the Contract of the Proton-based NFT to check @param tokenId The Token ID of the Proton-based NFT to check @param sender The Address of the Account to check @return True if the account is the creato... | function isTokenCreator(address contractAddress, uint256 tokenId, address sender) internal view virtual returns (bool) {
IERC721Chargeable tokenInterface = IERC721Chargeable(contractAddress);
address tokenCreator = tokenInterface.creatorOf(tokenId);
return (sender == tokenCreator);
}
| 354,574 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
13074,
309,
392,
2236,
353,
326,
29525,
434,
279,
1186,
1917,
17,
12261,
423,
4464,
632,
891,
6835,
1887,
225,
1021,
5267,
358,
326,
13456,
434,
326,
1186,
1917,
17,
12261,
423,
4464,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
353,
1345,
10636,
12,
2867,
6835,
1887,
16,
2254,
5034,
1147,
548,
16,
1758,
5793,
13,
2713,
1476,
5024,
1135,
261,
6430,
13,
288,
203,
565,
467,
654,
39,
27,
5340,
17649,
429,
1147,
1358,
273,
467,
654,
39,
27,
5340,... |
pragma solidity ^0.4.13;
contract IERC20 {
function balanceOf(
address whom
)
external
view
returns (uint);
function transfer(
address _to,
uint256 _value
)
external
returns (bool);
function transferFrom(
address _from,
address _to,
... | * @notice Function which can only be called by TwoKeyAdmin contract to remove any whitelisted address from the contract. @param _addressToBeRemovedFromWhitelist is the new whitelisted address we want to remove/ | function removeWhitelistedAddress(
address _addressToBeRemovedFromWhitelist
)
public
onlyTwoKeyAdmin
{
bytes32 keyHash = keccak256(_isAddressWhitelisted, _addressToBeRemovedFromWhitelist);
PROXY_STORAGE_CONTRACT.setBool(keyHash, false);
}
| 6,009,881 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4284,
1492,
848,
1338,
506,
2566,
635,
16896,
653,
4446,
6835,
358,
1206,
1281,
26944,
1758,
628,
326,
6835,
18,
632,
891,
389,
2867,
15360,
10026,
1265,
18927,
353,
326,
394,
26944,
1758,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
18927,
329,
1887,
12,
203,
3639,
1758,
389,
2867,
15360,
10026,
1265,
18927,
203,
565,
262,
203,
565,
1071,
203,
565,
1338,
11710,
653,
4446,
203,
565,
288,
203,
3639,
1731,
1578,
498,
2310,
273,
417,
24410,
581,
... |
./full_match/5/0xC766Ff6854008270D768195Cb93b7D7452B01f63/sources/project_/contracts/FeralfileArtworkV3.sol | @notice Called with the sale price to determine how much royalty is owed and to whom. @param tokenId - the NFT asset queried for royalty information @param salePrice - the sale price of the NFT asset specified by tokenId @return receiver - address of who should be sent the royalty payment @return royaltyAmoun... | function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
override
returns (address receiver, uint256 royaltyAmount)
{
require(
_exists(tokenId),
"ERC2981: query royalty info for nonexistent token"
);
receiver = royalt... | 7,047,843 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11782,
598,
326,
272,
5349,
6205,
358,
4199,
3661,
9816,
721,
93,
15006,
1850,
353,
2523,
329,
471,
358,
600,
362,
18,
632,
891,
1147,
548,
300,
326,
423,
4464,
3310,
23264,
364,
721,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
721,
93,
15006,
966,
12,
11890,
5034,
1147,
548,
16,
2254,
5034,
272,
5349,
5147,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
2867,
5971,
16,
2254,
5034,
721,
93,
15006,
6275,
13,
203,
... |
pragma solidity ^0.4.9;
import "./safeMath.sol";
/* Receiver must implement this function to receive tokens
* otherwise token transaction will fail
*/
contract ContractReceiver {
function tokenFallback(address _from, uint _value, bytes _data){
//Incoming transaction code here
}
}
/* Dexaran Ba... | Standard function transfer similar to ERC20 transfer with no _data . Retrieve the size of the code on target address, this needs assembly . | function transfer(address to, uint value) {
uint codeLength;
assembly {
codeLength := extcodesize(to)
}
balanceOf[msg.sender] = balanceOf[msg.sender].sub(value);
balanceOf[to] = balanceOf[to].add(value);
if(codeLength>0) {
ContractReceiver re... | 12,585,852 | [
1,
4625,
348,
7953,
560,
30,
225,
8263,
445,
7412,
7281,
358,
4232,
39,
3462,
7412,
598,
1158,
389,
892,
263,
10708,
326,
963,
434,
326,
981,
603,
1018,
1758,
16,
333,
4260,
19931,
263,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
460,
13,
288,
203,
3639,
2254,
981,
1782,
31,
203,
203,
3639,
19931,
288,
203,
5411,
981,
1782,
519,
1110,
7000,
554,
12,
869,
13,
203,
3639,
289,
203,
203,
3639,
11013,
951,
63,
3576,
... |
./full_match/73799/0x56e6C1ef5061d1c69bC8CaE8D2d1B5033af05308/sources/contracts/libraries/LibAdmin.sol | * @notice - setAdminFunction - sets the function selector as an admin function or not @param functionSelector signature of the function @param isAllowed boolean flag indicating whether the function selector is an admin function or not @dev - only the admin can set the function selector as an admin function or not/ | function setAdminFunction(bytes4 functionSelector, bool isAllowed) internal {
LibClaimManager.checkOwnership();
getStorage().isAdminFunction[functionSelector] = isAllowed;
}
| 16,363,348 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
300,
444,
4446,
2083,
300,
1678,
326,
445,
3451,
487,
392,
3981,
445,
578,
486,
632,
891,
445,
4320,
3372,
434,
326,
445,
632,
891,
21956,
1250,
2982,
11193,
2856,
326,
445,
3451,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
4446,
2083,
12,
3890,
24,
445,
4320,
16,
1426,
21956,
13,
2713,
288,
203,
3639,
10560,
9762,
1318,
18,
1893,
5460,
12565,
5621,
203,
3639,
13840,
7675,
291,
4446,
2083,
63,
915,
4320,
65,
273,
21956,
31,
203,
565,
... |
// _ _______ _________ _ ______ _______ _______
// | \ /\( ____ \|\ /|\__ __/( ( /|( __ \ ( ___ )( ___ )
// | \ / /| ( \/| ) ( | ) ( | \ ( || ( \ )| ( ) || ( ) |
// | (_/ / | (__ | | | | | | | \ | || | ) || (___) || | | |
// | _ ( | _... | setBaseURI(baseURI); team gets first NFTs | constructor() ERC721("KevinDAO", "KEVIN") {
_safeMint( t1, 0);
_safeMint( t1, 1);
}
| 5,722,683 | [
1,
4625,
348,
7953,
560,
30,
26435,
3098,
12,
1969,
3098,
1769,
5927,
5571,
1122,
423,
4464,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
4232,
39,
27,
5340,
2932,
47,
14965,
267,
18485,
3113,
315,
6859,
58,
706,
7923,
225,
288,
203,
203,
3639,
389,
4626,
49,
474,
12,
268,
21,
16,
374,
1769,
203,
3639,
389,
4626,
49,
474,
12,
268,
21,
16,
404,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
// Sources flattened with hardhat v2.6.1 https://hardhat.org
// File libraries/DecimalScale.sol
pragma solidity ^0.8.4;
library DecimalScale {
uint8 internal constant DECIMALS = 18; // 18 decimal places
function scaleFrom(uint256 value, uint8 decimals) internal p... | * Wrapper used for converting a Chainlink ETH Oracle to a USD Oracle./ | contract ChainlinkUsdWrapper is IChainlinkOracle {
using DecimalScale for uint256;
IChainlinkOracle private immutable _ethOracle =
IChainlinkOracle(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419);
IChainlinkOracle private immutable _oracle;
uint8 private immutable _decimals;
constructor(addres... | 6,234,055 | [
1,
4625,
348,
7953,
560,
30,
380,
18735,
1399,
364,
14540,
279,
7824,
1232,
512,
2455,
28544,
358,
279,
587,
9903,
28544,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7824,
1232,
3477,
72,
3611,
353,
467,
3893,
1232,
23601,
288,
203,
565,
1450,
11322,
5587,
364,
2254,
5034,
31,
203,
203,
565,
467,
3893,
1232,
23601,
3238,
11732,
389,
546,
23601,
273,
203,
3639,
467,
3893,
1232,
23601,
12,... |
./partial_match/1/0x41A028f0B8C83C4D02bbEA9497ea6092271b1ced/sources/NyanVoting.sol | * @notice Returns proposal details of a specific proposal. @param _address Address of a specific proposal./ bytes[] memory, currentBids[_address].bytesArr, | function getBid(address _address) public view returns(
string memory,
string memory,
address[] memory,
uint256[] memory,
string[] memory,
string[] memory,
uint256
)
{
return (
curren... | 3,580,449 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
14708,
3189,
434,
279,
2923,
14708,
18,
632,
891,
389,
2867,
5267,
434,
279,
2923,
14708,
18,
19,
225,
1731,
8526,
3778,
16,
565,
783,
38,
2232,
63,
67,
2867,
8009,
3890,
5715,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
350,
12,
2867,
389,
2867,
13,
1071,
1476,
1135,
12,
203,
5411,
533,
3778,
16,
203,
5411,
533,
3778,
16,
203,
5411,
1758,
8526,
3778,
16,
203,
5411,
2254,
5034,
8526,
3778,
16,
203,
5411,
533,
8526,
3778,
16,
203... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when d... | Ensure token is minted sequentially
| assert(tokenId == _totalSupply); | 450,303 | [
1,
4625,
348,
7953,
560,
30,
225,
7693,
1147,
353,
312,
474,
329,
695,
6979,
6261,
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,
5411,
1815,
12,
2316,
548,
422,
389,
4963,
3088,
1283,
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/100/0xe61521f9E55befeccac47faa0F42E3491f2a1D98/sources/contracts/lib/Aragon/TokenManagerHook.sol | @dev Called when this hook is being removed from the Token Manager @param _hookId The position in which the hook is going to be called @param _token The token controlled by the Token Manager/ | function onRevokeAsHook(uint256 _hookId, address _token) external onlyTokenManager nonReentrant {
_onRevokeAsHook(msg.sender, _hookId, _token);
}
| 14,265,637 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
11782,
1347,
333,
3953,
353,
3832,
3723,
628,
326,
3155,
8558,
632,
891,
389,
4476,
548,
1021,
1754,
316,
1492,
326,
3953,
353,
8554,
358,
506,
2566,
632,
891,
389,
2316,
1021,
1147,
2593... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
29196,
1463,
5394,
12,
11890,
5034,
389,
4476,
548,
16,
1758,
389,
2316,
13,
3903,
1338,
1345,
1318,
1661,
426,
8230,
970,
288,
203,
565,
389,
265,
29196,
1463,
5394,
12,
3576,
18,
15330,
16,
389,
4476,
548,
16,
... |
/**
* Edgeless Casino Proxy Contract. Serves as a proxy for game functionality.
* Allows the players to deposit and withdraw funds.
* Allows authorized addresses to make game transactions.
* author: Julia Altenried
**/
pragma solidity ^0.4.17;
contract token {
function transferFrom(address sender, a... | * lets the owner close the contract if there are no player funds on it or if nobody has been using it for at least 30 days/ | function close() onlyOwner public{
if(playerBalance == 0) selfdestruct(owner);
if(closeAt == 0) closeAt = now + 30 days;
else if(closeAt < now) selfdestruct(owner);
}
| 12,636,033 | [
1,
4625,
348,
7953,
560,
30,
380,
14557,
326,
3410,
1746,
326,
6835,
309,
1915,
854,
1158,
7291,
284,
19156,
603,
518,
578,
309,
290,
947,
973,
711,
2118,
1450,
518,
364,
622,
4520,
5196,
4681,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1746,
1435,
1338,
5541,
1071,
95,
203,
202,
202,
430,
12,
14872,
13937,
422,
374,
13,
365,
5489,
8813,
12,
8443,
1769,
203,
202,
202,
430,
12,
4412,
861,
422,
374,
13,
1746,
861,
273,
2037,
397,
5196,
4681,
31,
203,
... |
./full_match/1/0xb95986bE662FE52b8554b9aD92c2bB2da0927DF9/sources/TheApesKing.sol | * @title TheApesKing @dev The Apes King (TAK) ERC20 token contract with snapshot and burnable features./ Event emitted when a new snapshot is created | contract TheApesKing is ERC20Burnable, ERC20Snapshot, Ownable {
event SnapshotTaken(uint256 snapshotId);
pragma solidity ^0.8.9;
constructor() ERC20("The Apes King", "TAK") {
_mint(msg.sender, INITIAL_SUPPLY);
}
function snapshot() public onlyOwner {
_snapshot();
emit Snapshot... | 17,018,592 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1021,
1294,
281,
47,
310,
632,
5206,
1021,
1716,
281,
1475,
310,
261,
9833,
47,
13,
4232,
39,
3462,
1147,
6835,
598,
4439,
471,
18305,
429,
4467,
18,
19,
2587,
17826,
1347,
279,
394,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1021,
1294,
281,
47,
310,
353,
4232,
39,
3462,
38,
321,
429,
16,
4232,
39,
3462,
4568,
16,
14223,
6914,
288,
203,
203,
565,
871,
10030,
27486,
12,
11890,
5034,
4439,
548,
1769,
203,
203,
683,
9454,
18035,
560,
3602,
20,
... |