file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./partial_match/1313161554/0x52614eE4f0DbaeE0C5cD08DD62324Cd2f93D895F/sources/BaseStrategy.sol | @dev - for vaults where this is true, we will also have to automate calling sweepRewards() | function _vaultDeposit(uint256 _amount) internal virtual;
function _vaultWithdraw(uint256 _amount) internal virtual;
function earn() external virtual;
function vaultSharesTotal() public virtual view returns (uint256);
function wantLockedTotal() public virtual view returns (uint256);
function _re... | 16,950,933 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
300,
364,
9229,
87,
1625,
333,
353,
638,
16,
732,
903,
2546,
1240,
358,
18472,
340,
4440,
17462,
17631,
14727,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
26983,
758,
1724,
12,
11890,
5034,
389,
8949,
13,
2713,
5024,
31,
203,
565,
445,
389,
26983,
1190,
9446,
12,
11890,
5034,
389,
8949,
13,
2713,
5024,
31,
203,
565,
445,
425,
1303,
1435,
3903,
5024,
31,
203,
565,
4... |
pragma solidity ^0.4.18; // solhint-disable-line
/// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author Dieter Shirley <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="274342534267465f4e484a5d4249094448">[email protected]</a>> (https://github.com/dete)... | make a new opinion for someone else to buy
| _createOpinion("",ceoAddress,newprice); | 10,540,572 | [
1,
4625,
348,
7953,
560,
30,
1221,
279,
394,
1061,
267,
285,
364,
18626,
469,
358,
30143,
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,
3639,
389,
2640,
3817,
267,
285,
2932,
3113,
311,
83,
1887,
16,
2704,
8694,
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,
-10... |
./full_match/3/0x67863670F710aAb255102B654ccc46B41941aA6A/sources/NewCRDT.sol | CRIA A PROCURACAO PARA O CARA PODER GASTAR - USA MUITO EM EXCHANGE - QUEM EXECUTA - OK | function approve(address spender, uint256 amount) public whenNotPaused onlyWhitelistAddress virtual override returns (bool) {
require(verifyWhitlistAddress(spender) == false, "ERC20 WhiteList: transfer to the address not whitelist");
_approve(_msgSender(), spender, amount);
return true;
... | 8,133,554 | [
1,
4625,
348,
7953,
560,
30,
385,
2259,
37,
432,
4629,
7509,
2226,
20463,
3939,
37,
531,
385,
985,
37,
453,
1212,
654,
611,
9053,
985,
300,
587,
5233,
490,
57,
1285,
51,
7141,
5675,
14473,
300,
23328,
49,
24508,
1693,
37,
300,
779... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
5034,
3844,
13,
1071,
1347,
1248,
28590,
1338,
18927,
1887,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
8705,
2888,
305,
1098,
1887,
12,
87,
1302,
264,
13,
422,
... |
//Address: 0x261ace754fba8af93e1fecdff13640540402940f
//Contract name: Phila_Token
//Balance: 0 Ether
//Verification Date: 5/23/2018
//Transacion Count: 6
// CODE STARTS HERE
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
... | Check for overflow
| require(previousBalanceTo + tokens >= previousBalanceTo); | 945,769 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
364,
9391,
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,
6647,
2583,
12,
11515,
13937,
774,
397,
2430,
1545,
2416,
13937,
774,
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,... |
./full_match/1/0x559B0C160e44e9A1e061b4300941618B164FF745/sources/10pull__1_.sol | 7% transaction fee being sent to burn wallet
| balances[0x000000000000000000000000000000000000dEaD] += value * 14/100; | 16,579,713 | [
1,
4625,
348,
7953,
560,
30,
225,
2371,
9,
2492,
14036,
3832,
3271,
358,
18305,
9230,
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,
3639,
324,
26488,
63,
20,
92,
12648,
12648,
12648,
12648,
2787,
72,
41,
69,
40,
65,
1011,
460,
380,
5045,
19,
6625,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x49c590F6a2dfB0f809E82B9e2BF788C0Dd1c31f9/sources/@mean-finance/swappers/solidity/contracts/extensions/Shared.sol | @notice An allowance to provide for the swaps to work The token that should be approved The spender The minimum allowance needed | struct Allowance {
IERC20 token;
address allowanceTarget;
uint256 minAllowance;
}
| 2,852,579 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1922,
1699,
1359,
358,
5615,
364,
326,
1352,
6679,
358,
1440,
1021,
1147,
716,
1410,
506,
20412,
1021,
17571,
264,
1021,
5224,
1699,
1359,
3577,
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,
1697,
7852,
1359,
288,
203,
225,
467,
654,
39,
3462,
1147,
31,
203,
225,
1758,
1699,
1359,
2326,
31,
203,
225,
2254,
5034,
1131,
7009,
1359,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "prb-math/contracts/PRBMathSD59x18.sol";
///@notice This library handles the execution of long term orders.
library ExecVirtualOrdersPRBLib {
using PRBMathSD59x18 for int256;
///@notice computes the result of virtual trades by the token pool... | helper function for TWAMM formula computation, helps avoid stack depth errors | function computeC(int256 tokenAStart, int256 tokenBStart, int256 tokenAIn, int256 tokenBIn) private pure returns (int256 c) {
int256 c1 = tokenAStart.sqrt().mul(tokenBIn.sqrt());
int256 c2 = tokenBStart.sqrt().mul(tokenAIn.sqrt());
int256 cNumerator = c1 - c2;
int256 cDenominator = c... | 1,794,973 | [
1,
4625,
348,
7953,
560,
30,
4222,
445,
364,
24722,
2192,
49,
8013,
16039,
16,
21814,
4543,
2110,
3598,
1334,
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,
3671,
39,
12,
474,
5034,
1147,
37,
1685,
16,
509,
5034,
1147,
38,
1685,
16,
509,
5034,
1147,
37,
382,
16,
509,
5034,
1147,
38,
382,
13,
3238,
16618,
1135,
261,
474,
5034,
276,
13,
288,
203,
3639,
509,
5034,
276,
21,... |
pragma solidity ^0.5.0;
import "./Assessment.sol";
contract Traceable {
function createTime() external view returns(uint256);
function owner() view public returns (address);
function tokenId() external view returns (uint256);
function partiallyTransferable() external view returns (bool);
func... | function markAsReady() public; function isReady() public view returns(bool); Events | contract Traceable {
function createTime() external view returns(uint256);
function owner() view public returns (address);
function tokenId() external view returns (uint256);
function partiallyTransferable() external view returns (bool);
function createBlock() external view returns(uint256);
... | 2,464,441 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
2267,
1463,
8367,
1435,
1071,
31,
445,
353,
8367,
1435,
1071,
1476,
1135,
12,
6430,
1769,
9043,
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,
16351,
2677,
429,
288,
203,
203,
565,
445,
752,
950,
1435,
3903,
1476,
1135,
12,
11890,
5034,
1769,
203,
203,
565,
445,
3410,
1435,
1476,
1071,
1135,
261,
2867,
1769,
203,
203,
565,
445,
1147,
548,
1435,
3903,
1476,
1135,
261,
11... |
pragma solidity ^0.5.3;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "./interfaces/IReserve.sol";
import "./interfaces/ISortedOracles.sol";
import "../common/FixidityLib.sol";
import "../common/Initializable.sol";
import "../common... | * @notice Remove reserve address whose balance shall no longer be included in the reserve ratio. @param reserveAddress The reserve address to remove. @param index The index of the reserve address in otherReserveAddresses. @return Returns true if the transaction succeeds./ | function removeOtherReserveAddress(address reserveAddress, uint256 index)
external
onlyOwner
returns (bool)
{
require(isOtherReserveAddress[reserveAddress], "reserve addr was never added");
require(
index < otherReserveAddresses.length && otherReserveAddresses[index] == reserveAddress,
... | 2,528,229 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3581,
20501,
1758,
8272,
11013,
24315,
1158,
7144,
506,
5849,
316,
326,
20501,
7169,
18,
632,
891,
20501,
1887,
1021,
20501,
1758,
358,
1206,
18,
632,
891,
770,
1021,
770,
434,
326,
20501,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
225,
445,
1206,
8290,
607,
6527,
1887,
12,
2867,
20501,
1887,
16,
2254,
5034,
770,
13,
203,
565,
3903,
203,
565,
1338,
5541,
203,
565,
1135,
261,
6430,
13,
203,
225,
288,
203,
565,
2583,
12,
291,
8290,
607,
6527,
1887,
63,
455,... |
./full_match/1/0xe9A1a323b4c8FD5Ce6842edaa0cd8af943cBdf22/sources/contracts/WildBunch.sol | Tells the world how many Wild Ones a given address has minted. | function claimedBy(address owner) external view returns (uint256) {
require(owner != address(0), 'The zero address cannot mint anything.');
return wildOnesClaimed[owner];
}
| 3,089,672 | [
1,
4625,
348,
7953,
560,
30,
225,
29860,
87,
326,
9117,
3661,
4906,
678,
545,
2755,
281,
279,
864,
1758,
711,
312,
474,
329,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18696,
12,
2867,
3410,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
296,
1986,
3634,
1758,
2780,
312,
474,
6967,
1093,
1769,
203,
203,
3639,
327,
23578,
1398... |
pragma solidity ^0.8.0;
import "@c-layer/common/contracts/core/OperableCore.sol";
import "./TokenStorage.sol";
import "./interface/ITokenCore.sol";
import "./interface/ITokenDelegate.sol";
/**
* @title TokenCore
*
* @author Cyril Lapinte - <cyril.lapinte@openfiz.com>
* SPDX-License-Identifier: MIT
*
* Error me... | ********** TOKEN DATA ***********/ | function token(address _token) override external view returns (
bool mintingFinished,
uint256 allTimeMinted,
uint256 allTimeBurned,
uint256 allTimeSeized,
address[] memory locks,
uint256 frozenUntil,
IRule[] memory rules) {
TokenData storage tokenData = tokens[_token];
mintingFini... | 5,418,797 | [
1,
4625,
348,
7953,
560,
30,
380,
1644,
14,
225,
14275,
8730,
282,
380,
1644,
636,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1147,
12,
2867,
389,
2316,
13,
3849,
3903,
1476,
1135,
261,
203,
565,
1426,
312,
474,
310,
10577,
16,
203,
565,
2254,
5034,
777,
950,
49,
474,
329,
16,
203,
565,
2254,
5034,
777,
950,
38,
321,
329,
16,
203,
565,
225... |
./full_match/97/0x1d4A52D1A86985EBD9C886b9776F8CC1784254Fa/sources/project_/contracts/Nft1155.sol | 批量燃烧 require(ERC1155.queryB(id) <= from.length, "Insufficient quantity"); | function batchBurnExec(
address[] memory from,
uint256 id,
uint256 amount
) public onlyOwner {
for (uint256 i = 0; i < from.length; i++) {
burn(from[i], id, amount);
}
| 5,019,345 | [
1,
4625,
348,
7953,
560,
30,
225,
167,
236,
122,
170,
234,
242,
168,
234,
230,
168,
230,
105,
225,
2583,
12,
654,
39,
2499,
2539,
18,
2271,
38,
12,
350,
13,
1648,
225,
628,
18,
2469,
16,
315,
5048,
11339,
10457,
8863,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2581,
38,
321,
1905,
12,
203,
3639,
1758,
8526,
3778,
628,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
1071,
1338,
5541,
288,
203,
203,
203,
3639,
364,
261,
11890,
5034,
277,
273,
3... |
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper ... | * @notice Get user ID from the serialized order data @param ser_data Serialized order data @return userID User ID/ | function _getOrderUserID(bytes memory ser_data) internal pure returns (uint256 userID) {
userID = ser_data.toUint32(ORDER_SIZE - 4);
}
| 15,834,826 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
729,
1599,
628,
326,
5343,
1353,
501,
632,
891,
703,
67,
892,
31822,
1353,
501,
632,
2463,
16299,
2177,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
2448,
16631,
12,
3890,
3778,
703,
67,
892,
13,
2713,
16618,
1135,
261,
11890,
5034,
16299,
13,
288,
203,
3639,
16299,
273,
703,
67,
892,
18,
869,
5487,
1578,
12,
7954,
67,
4574,
300,
1059,
1769,
203,
565,
28... |
./partial_match/1/0x89bc08BA00f135d608bc335f6B33D7a9ABCC98aF/sources/contracts/vault/OwnableERC721.sol | * @notice Specifies the owner of the underlying token ID, derived from the contract address of the contract implementing. @return ownerAddress The owner of the underlying token derived from the calling address./ | function owner() public view virtual returns (address ownerAddress) {
return IERC721(ownershipToken).ownerOf(uint256(uint160(address(this))));
}
| 15,886,985 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4185,
5032,
326,
3410,
434,
326,
6808,
1147,
1599,
16,
10379,
540,
628,
326,
6835,
1758,
434,
326,
6835,
19981,
18,
632,
2463,
3410,
1887,
540,
1021,
3410,
434,
326,
6808,
1147,
10379,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3410,
1435,
1071,
1476,
5024,
1135,
261,
2867,
3410,
1887,
13,
288,
203,
3639,
327,
467,
654,
39,
27,
5340,
12,
995,
12565,
1345,
2934,
8443,
951,
12,
11890,
5034,
12,
11890,
16874,
12,
2867,
12,
2211,
3719,
10019,
203,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./RewardPool.sol";
import "../interfaces/IRewardPool.sol";
/// @title Staging contract to receive reward tokens before starting and f... | @notice Withdraw reward tokens to owner's address. | function recoverRewards() external onlyManager {
recover(token);
}
| 12,719,805 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3423,
9446,
19890,
2430,
358,
3410,
1807,
1758,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5910,
17631,
14727,
1435,
3903,
1338,
1318,
288,
203,
3639,
5910,
12,
2316,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/5/0xd98398a279434A5ACE8cBB8ed72C4bAeA1221377/sources/contracts/L1/delegation/DelegationSlasher.sol | * @notice Used to give global slashing permission to `contracts`. @dev Callable only by the contract owner (i.e. governance)./ | function addGloballyPermissionedContracts(address[] calldata contracts) external onlyOwner {
for (uint256 i = 0; i < contracts.length;) {
_addGloballyPermissionedContract(contracts[i]);
unchecked {
++i;
}
}
}
| 7,039,292 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10286,
358,
8492,
2552,
9026,
310,
4132,
358,
1375,
16351,
87,
8338,
632,
5206,
10464,
1338,
635,
326,
6835,
3410,
261,
77,
18,
73,
18,
314,
1643,
82,
1359,
2934,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
13499,
1230,
5041,
329,
20723,
12,
2867,
8526,
745,
892,
20092,
13,
3903,
1338,
5541,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
20092,
18,
2469,
30943,
288,
203,
5411,
389,
1289,
13499,
12... |
/// GebLenderFirstResortRewardsVested.sol
// Copyright (C) 2021 Reflexer Labs, INC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your o... | @notice Request an exit for a specific amount of ancestor tokens @param wad The amount of tokens to exit/ | function requestExit(uint wad) external nonReentrant payRewards {
require(wad > 0, "GebLenderFirstResortRewardsVested/null-amount-to-exit");
exitRequests[msg.sender].deadline = addition(now, exitDelay);
exitRequests[msg.sender].lockedAmount = addition(exitRequests[msg.sender].lockedAm... | 1,791,078 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1567,
392,
2427,
364,
279,
2923,
3844,
434,
9731,
2430,
632,
891,
341,
361,
1021,
3844,
434,
2430,
358,
2427,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
590,
6767,
12,
11890,
341,
361,
13,
3903,
1661,
426,
8230,
970,
8843,
17631,
14727,
288,
203,
3639,
2583,
12,
91,
361,
405,
374,
16,
315,
18809,
70,
48,
2345,
3759,
607,
499,
17631,
14727,
58,
3149,
19,
2011,
17,
8949... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.8.0;
contract Auction {
// declare the data types to be used
struct Item {
uint8 itemId; // id of the item
uint8 itemToken; // current token for this item.
int8 personId; // the id of the person who offers the high... | only beneficiary can call the function | modifier onlyBeneficiary{
require(msg.sender == beneficiary_address);
_;
}
| 12,949,624 | [
1,
4625,
348,
7953,
560,
30,
225,
1338,
27641,
74,
14463,
814,
848,
745,
326,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
38,
4009,
74,
14463,
814,
95,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
27641,
74,
14463,
814,
67,
2867,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity >=0.5.0;
// Inheritance
import "./Ownable.sol";
import "./interfaces/ITradegenEscrow.sol";
// Libraires
import "./libraries/SafeMath.sol";
// Internal references
import "./interfaces/IERC20.sol";
import "./interfaces/IAddressResolver.sol";
contract TradegenEscrow is Ownable, ITradegenEscrow {
us... | * @notice Obtain the time at which the next schedule entry will vest for a given user./ | function getNextVestingTime(address account) external view override returns (uint) {
return getNextVestingEntry(account)[TIME_INDEX];
}
| 1,033,630 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
24850,
326,
813,
622,
1492,
326,
1024,
4788,
1241,
903,
331,
395,
364,
279,
864,
729,
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,... | [
1,
1,
1,
1,
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,
6927,
58,
10100,
950,
12,
2867,
2236,
13,
3903,
1476,
3849,
1135,
261,
11890,
13,
288,
203,
3639,
327,
6927,
58,
10100,
1622,
12,
4631,
25146,
4684,
67,
9199,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xD835cDedc20Ca3075F86DeA4e0d914499d0C5B25/sources/StrategyZaps.sol | @notice Internal function to deposit ETH to the pounder @param amount - amount of ETH @param minAmountOut - min amount of lp tokens expected @param to - address to stake on behalf of | function _depositFromEth(
uint256 amount,
uint256 minAmountOut,
address to
) internal {
uint256 _crvAmount = _ethToCrv(amount, 0);
_crvToCvxCrv(_crvAmount, address(this), minAmountOut);
IGenericVault(vault).depositAll(to);
}
| 9,370,580 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3186,
445,
358,
443,
1724,
512,
2455,
358,
326,
293,
465,
765,
632,
891,
3844,
300,
3844,
434,
512,
2455,
632,
891,
1131,
6275,
1182,
300,
1131,
3844,
434,
12423,
2430,
2665,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
323,
1724,
1265,
41,
451,
12,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
1131,
6275,
1182,
16,
203,
3639,
1758,
358,
203,
565,
262,
2713,
288,
203,
3639,
2254,
5034,
389,
3353,
90,
6275,
273,
389,
54... |
pragma solidity ^0.5.9;
pragma experimental ABIEncoderV2;
/*
Copyright 2019 ZeroEx Intl.
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
... | @dev transfers ETH to address. @param transferAmount Amount of eth to transfer. Do nothing if amount is zero | function _transferEthToAddress(
uint256 transferAmount,
address transferAddress
)
internal
{
if (transferAmount > 0) {
address payable transferAddresspayable = address(uint160(transferAddress));
transferAddresspayable.transfer(transferAmount);
... | 567,322 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
225,
29375,
512,
2455,
358,
1758,
18,
632,
891,
7412,
6275,
16811,
434,
13750,
358,
7412,
18,
2256,
5083,
309,
3844,
353,
3634,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
41,
451,
774,
1887,
12,
203,
3639,
2254,
5034,
7412,
6275,
16,
203,
3639,
1758,
7412,
1887,
203,
565,
262,
203,
3639,
2713,
203,
565,
288,
203,
3639,
309,
261,
13866,
6275,
405,
374,
13,
288,
203,
5411,
17... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | оформлять в конторе
| rus_verbs:оформлять{}, | 5,482,059 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
127,
146,
231,
145,
127,
146,
227,
145,
125,
145,
124,
146,
242,
146,
229,
146,
239,
225,
145,
115,
225,
145,
123,
145,
127,
145,
126,
146,
229,
145,
127,
146,
227,
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,
127,
146,
231,
145,
127,
146,
227,
145,
125,
145,
124,
146,
242,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.19;
contract Faucet {
function withdraw(uint withdraw_amount) public {
// Limit withdrawal amount to 0.1 ETH
require(withdraw_amount >= 100000000000000000);
msg.sender.transfer(withdraw_amount);
}
// Accept any incoming amount
function () public payable {}
} | Accept any incoming amount | function () public payable {}
| 1,064,759 | [
1,
4625,
348,
7953,
560,
30,
225,
8662,
1281,
6935,
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,
0,
0,
0,
0,
0,
0,
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,
202,
915,
1832,
1071,
8843,
429,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: Apache-2.0
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018-2021 Crossbar.io Technologies GmbH and contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | * The XBR Token has a fixed supply of 1 billion and uses 18 decimal digits./ | uint256 private constant INITIAL_SUPPLY = 10**9 * 10**18;
| 6,354,771 | [
1,
4625,
348,
7953,
560,
30,
380,
1021,
1139,
7192,
3155,
711,
279,
5499,
14467,
434,
404,
20714,
285,
471,
4692,
6549,
6970,
6815,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
5381,
28226,
67,
13272,
23893,
273,
1728,
636,
29,
380,
1728,
636,
2643,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
/**
* @dev Interface of the E... | 1.75% token listed
| uint256 public performanceFee = 175; | 378,204 | [
1,
4625,
348,
7953,
560,
30,
225,
404,
18,
5877,
9,
1147,
12889,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
9239,
14667,
273,
404,
5877,
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,
... |
pragma solidity 0.5.16;
/* is IERC20 */
interface IERC4626Vault {
/// @notice The address of the underlying token used for the Vault uses for accounting, depositing, and withdrawing
function asset() external view returns (address assetTokenAddress);
/// @notice Total amount of the underlying asset that is... | * @notice Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given current on-chain conditions. @param shares The amount of vault shares to be minted. @return assets The amount of underlying assests that will be transferred from the caller./ | function previewMint(uint256 shares) external view returns (uint256 assets) {
(assets, ) = _creditsToUnderlying(shares);
return assets;
}
| 2,367,696 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
392,
603,
17,
5639,
578,
3397,
17,
5639,
729,
358,
20089,
326,
16605,
434,
3675,
312,
474,
622,
326,
783,
1203,
16,
864,
783,
603,
17,
5639,
4636,
18,
632,
891,
24123,
1021,
384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10143,
49,
474,
12,
11890,
5034,
24123,
13,
3903,
1476,
1135,
261,
11890,
5034,
7176,
13,
288,
203,
3639,
261,
9971,
16,
262,
273,
389,
20610,
1282,
774,
14655,
6291,
12,
30720,
1769,
203,
3639,
327,
7176,
31,
203,
565,... |
//Address: 0xA25D01d15fC0e3cDeDE1BEbEE4124394aaE0DB33
//Contract name: FollowCoin
//Balance: 0 Ether
//Verification Date: 10/27/2017
//Transacion Count: 1113
// CODE STARTS HERE
pragma solidity ^0.4.13;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
fu... | * Constructor function Setup the owner/ | ) {
multisig = multiSigWallet;
owner = multiSigWallet;
hardCap = icoHardCap;
deadline = icoStartTimestamp + durationInDays * 1 days;
startTimestamp = icoStartTimestamp;
totalTokens = icoTotalTokens;
tokenLimitPerWallet = icoTokensLimitPerWallet;
tokens... | 1,014,691 | [
1,
4625,
348,
7953,
560,
30,
380,
11417,
445,
10939,
326,
3410,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
288,
203,
3639,
22945,
360,
273,
3309,
8267,
16936,
31,
203,
3639,
3410,
273,
3309,
8267,
16936,
31,
203,
3639,
7877,
4664,
273,
277,
2894,
29601,
4664,
31,
203,
3639,
14096,
273,
277,
2894,
1685,
4921,
397,
3734,
382,
... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/access/rbac/RBAC.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "eth-token-recover/contracts/TokenRecover.sol";
/**
* @title Contributions
* @author Vittorio Mi... | * @dev add contribution into the contributions array @param _address Address being contributing @param _weiAmount Amount of wei contributed @param _tokenAmount Amount of token received/ | function addBalance(
address _address,
uint256 _weiAmount,
uint256 _tokenAmount
)
public
onlyOperator
{
if (weiContributions[_address] == 0) {
addresses.push(_address);
}
weiContributions[_address] = weiContributions[_address].add(_weiAmount);
totalWeiRaised = totalWeiRaised.... | 933,192 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
527,
24880,
1368,
326,
13608,
6170,
526,
632,
891,
389,
2867,
5267,
3832,
13608,
8490,
632,
891,
389,
1814,
77,
6275,
16811,
434,
732,
77,
356,
11050,
632,
891,
389,
2316,
6275,
16811,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
527,
13937,
12,
203,
565,
1758,
389,
2867,
16,
203,
565,
2254,
5034,
389,
1814,
77,
6275,
16,
203,
565,
2254,
5034,
389,
2316,
6275,
203,
225,
262,
203,
225,
1071,
203,
225,
1338,
5592,
203,
225,
288,
203,
565,
309,
... |
./full_match/5/0xa85FAF5cA6A3201652c9eB5E8CCaC2a3975110F3/sources/contracts/CrowdFunding.sol | returns who array and how much array | function getDonators(uint256 _id) view public returns(address [] memory, uint256[] memory) {
return(campaigns[_id].donators, campaigns[_id].donations);
}
| 11,587,935 | [
1,
4625,
348,
7953,
560,
30,
1135,
10354,
526,
471,
3661,
9816,
526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2343,
265,
3062,
12,
11890,
5034,
389,
350,
13,
1476,
1071,
1135,
12,
2867,
5378,
3778,
16,
2254,
5034,
8526,
3778,
13,
288,
203,
3639,
327,
12,
14608,
87,
63,
67,
350,
8009,
19752,
3062,
16,
8965,
87,
63,
67,
350,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.7;
import "../strategy-png-farm-base.sol";
contract StrategyPngAvaxGdlLp is StrategyPngFarmBase {
// Token addresses
address public png_avax_gdl_lp_rewards = 0xA6F2408e3CD34084c37A0D88FED8C6b6490F7529;
address public png_avax_gdl_lp = 0xc5AB0C94Bc88b98f... | Token addresses **** Views **** | contract StrategyPngAvaxGdlLp is StrategyPngFarmBase {
address public png_avax_gdl_lp_rewards = 0xA6F2408e3CD34084c37A0D88FED8C6b6490F7529;
address public png_avax_gdl_lp = 0xc5AB0C94Bc88b98f55f4e21C1474F67ab2329CFD;
address public gdl = 0xD606199557c8Ab6F4Cc70bD03FaCc96ca576f142;
constructor(
... | 13,068,460 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
6138,
380,
14465,
31117,
380,
14465,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19736,
52,
3368,
3769,
651,
43,
5761,
48,
84,
353,
19736,
52,
3368,
42,
4610,
2171,
288,
203,
565,
1758,
1071,
14476,
67,
842,
651,
67,
75,
5761,
67,
9953,
67,
266,
6397,
273,
374,
21703,
26,
42,
3247,
6840,
73,
23,
10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "./token/BambooToken.sol";
import "./BambooField.sol";
interface IMigratorKeep... | Info of the additional multipliers for BAMBOO staking | mapping(uint256 => StakeMultiplierInfo) public stakeMultipliers;
| 5,366,346 | [
1,
4625,
348,
7953,
560,
30,
225,
3807,
434,
326,
3312,
3309,
8127,
414,
364,
605,
2192,
5315,
51,
384,
6159,
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,
2874,
12,
11890,
5034,
516,
934,
911,
23365,
966,
13,
1071,
384,
911,
5002,
8127,
414,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/56/0xCfC06B8E3742290B432Fa397700BB53576e58962/sources/StratX_Value.sol | Maximises yields in pancakeswap | contract StratX_Value is Ownable, ReentrancyGuard, Pausable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
address public wantAddress;
address public token0Address;
address public token1Address;
address public earnedAddress;
address public constant wbnbAddress =
0xbb4C... | 11,160,824 | [
1,
4625,
348,
7953,
560,
30,
225,
4238,
381,
6141,
16932,
316,
2800,
71,
3223,
91,
438,
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,
16351,
3978,
270,
60,
67,
620,
353,
14223,
6914,
16,
868,
8230,
12514,
16709,
16,
21800,
16665,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2021-11-12
*/
/**
*
╭━━━┳━━━━╮╭━━━╮╱╱╱╱╱╱╱╱╭╮╱╱╱╱╭━━━━╮╱╱╱╱╭╮╱╭╮
┃╭━╮┃╭╮╭╮┃┃╭━╮┃╱╱╱╱╱╱╱╭╯╰╮╱╱╱┃╭╮╭╮┃╱╱╱╭╯╰┳╯╰╮
┃┃╱╰┻╯┃┃╰╯┃┃╱╰╋━┳╮╱╭┳━┻╮╭╋━━╮╰╯┃┃┣┫╭╮╭╋╮╭┻╮╭╋━━┳━╮
┃┃╱╭╮╱┃┃╱╱┃┃╱╭┫╭┫┃╱┃┃╭╮┃┃┃╭╮┃╱╱┃┃┃╰╯╰╯┣┫┃╱┃┃┃┃━┫╭╯
┃╰━╯┃╱┃┃╱╱┃╰━╯┃┃┃╰━╯┃╰╯┃╰┫╰╯┃╱╱┃┃╰╮╭╮╭┫┃╰╮┃╰┫┃━┫┃
╰... | exclude owner and this contract from fee | constructor (address payable addr1, address payable addr2, address payable addr3, address payable addr4) public {
_rOwned[_msgSender()] = _rTotal;
devwallet = addr1;
marketingwallet = addr2;
walletb = addr3;
wallettoken = addr4;
_isExcludedFromFee[owner()]... | 15,329,620 | [
1,
4625,
348,
7953,
560,
30,
4433,
3410,
471,
333,
6835,
628,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
261,
2867,
8843,
429,
3091,
21,
16,
1758,
8843,
429,
3091,
22,
16,
1758,
8843,
429,
3091,
23,
16,
1758,
8843,
429,
3091,
24,
13,
1071,
288,
203,
3639,
389,
86,
5460,
329,
63,
67,
3576,
12021,
1435,
65,
273,
389,
86... |
./full_match/80001/0xe02102a6a6B8CCC0a7fD2313823C8186A729fD38/sources/contracts/ThriftClub.sol | import "./ChainlinkContract.sol"; | import "./NFTContract.sol";
| 863,281 | [
1,
4625,
348,
7953,
560,
30,
225,
1930,
25165,
3893,
1232,
8924,
18,
18281,
14432,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5666,
25165,
50,
4464,
8924,
18,
18281,
14432,
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... |
/**
*Submitted for verification at Etherscan.io on 2021-07-22
*/
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarv... | update stability fee rate accumulator
| JugLike(jug).drip(ilk); | 6,707,502 | [
1,
4625,
348,
7953,
560,
30,
225,
1089,
384,
2967,
14036,
4993,
13514,
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,
804,
637,
8804,
12,
78,
637,
2934,
72,
21335,
12,
330,
79,
1769,
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.8.9;
import "./IClient.sol";
import "./IBCHost.sol";
import "./IBCMsgs.sol";
import {
IbcLightclientsMockV1ClientState as ClientState,
IbcLightclientsMockV1ConsensusState as ConsensusState,
IbcLightclientsMockV1Header as Header
} from "./types/MockClient.sol";
import {GoogleProtobufAny a... | MockClient implements https:github.com/datachainlab/ibc-mock-client WARNING: This client is intended to be used for testing purpose. Therefore, it is not generally available in a production, except in a fully trusted environment. | contract MockClient is IClient {
using Bytes for bytes;
import {GoogleProtobufAny as Any} from "./types/GoogleProtobufAny.sol";
struct protoTypes {
bytes32 clientState;
bytes32 consensusState;
bytes32 header;
}
protoTypes pts;
constructor() public {
pts = protoType... | 13,048,447 | [
1,
4625,
348,
7953,
560,
30,
225,
7867,
1227,
4792,
2333,
30,
6662,
18,
832,
19,
892,
5639,
7411,
19,
495,
71,
17,
22851,
17,
2625,
9744,
30,
1220,
1004,
353,
12613,
358,
506,
1399,
364,
7769,
13115,
18,
17189,
16,
518,
353,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
7867,
1227,
353,
467,
1227,
288,
203,
565,
1450,
5985,
364,
1731,
31,
203,
203,
5666,
288,
9639,
6262,
4385,
2961,
487,
5502,
97,
628,
25165,
2352,
19,
9639,
6262,
4385,
2961,
18,
18281,
14432,
203,
565,
1958,
3760,
2016,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.4;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {SafeERC20} from "./libs/SafeERC20.sol";
import {
ReentrancyGuardUpgradeable
} from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import {... | / Update funding values Compute interest to funders Distribute interest to funders | function _payInterestToFunders(
uint64 fundingID,
uint256 currentMoneyMarketIncomeIndex
) internal virtual returns (uint256 interestAmount) {
Funding storage f = _getFunding(fundingID);
{
uint256 recordedMoneyMarketIncomeIndex =
f.recordedMoneyMarketIn... | 6,479,298 | [
1,
4625,
348,
7953,
560,
30,
342,
2315,
22058,
924,
8155,
16513,
358,
284,
26843,
3035,
887,
16513,
358,
284,
26843,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
10239,
29281,
774,
42,
26843,
12,
203,
3639,
2254,
1105,
22058,
734,
16,
203,
3639,
2254,
5034,
783,
23091,
3882,
278,
382,
5624,
1016,
203,
565,
262,
2713,
5024,
1135,
261,
11890,
5034,
16513,
6275,
13,
288,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amou... | @notice View the amount of dividend in wei that an address has withdrawn. @param _owner The address of a token holder. @return The amount of dividend in wei that `_owner` has withdrawn. | function withdrawnDividendOf(address _owner) public view override returns(uint256) {
return withdrawnDividends[_owner];
}
| 73,000 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4441,
326,
3844,
434,
31945,
316,
732,
77,
716,
392,
1758,
711,
598,
9446,
82,
18,
632,
891,
389,
8443,
1021,
1758,
434,
279,
1147,
10438,
18,
632,
2463,
1021,
3844,
434,
31945,
316,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
82,
7244,
26746,
951,
12,
2867,
389,
8443,
13,
1071,
1476,
3849,
1135,
12,
11890,
5034,
13,
288,
203,
565,
327,
598,
9446,
82,
7244,
350,
5839,
63,
67,
8443,
15533,
203,
225,
289,
203,
203,
203,
2,
-100,
... |
pragma solidity ^0.4.22;
// This contract provides an abstract interface for an ERC-20-like token standard.
contract Token {
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
function totalSupply() ... | This contract provides an abstract interface for an ERC-20-like token standard. | contract Token {
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
function totalSupply() constant public returns (uint256 supply);
function balanceOf(address _owner) constant public returns (uin... | 12,954,702 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
6835,
8121,
392,
8770,
1560,
364,
392,
4232,
39,
17,
3462,
17,
5625,
1147,
4529,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
288,
203,
565,
871,
12279,
12,
2867,
8808,
389,
2080,
16,
1758,
8808,
389,
869,
16,
2254,
5034,
389,
1132,
1769,
203,
565,
871,
1716,
685,
1125,
12,
2867,
8808,
389,
8443,
16,
1758,
8808,
389,
87,
1302,
264,
16,
22... |
./full_match/888/0x6a27F5ffC60BE131c8B5008370Eb3168f0F13705/sources/DimoFactory.sol | keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); | contract UniswapV2ERC20 is IUniswapV2ERC20 {
using SafeMath for uint;
string public constant name = 'DiMoDex LP';
string public constant symbol = 'DIMOLP';
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
mapping(address => mapping(ad... | 13,224,847 | [
1,
4625,
348,
7953,
560,
30,
225,
417,
24410,
581,
5034,
2932,
9123,
305,
12,
2867,
3410,
16,
2867,
17571,
264,
16,
11890,
5034,
460,
16,
11890,
5034,
7448,
16,
11890,
5034,
14096,
2225,
1769,
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,
16351,
1351,
291,
91,
438,
58,
22,
654,
39,
3462,
353,
467,
984,
291,
91,
438,
58,
22,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
5381,
508,
273,
296,
14521,
16727,
40,
338,
511... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/*
* @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 ... | * @title ERC-721 Non-Fungible Token Standard, optional metadata extension/ | contract IERC721Metadata is IERC721 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function tokenURI(uint256 tokenId) external view returns (string memory);
}
}
| 25,891 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
17,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
16,
3129,
1982,
2710,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
467,
654,
39,
27,
5340,
2277,
353,
467,
654,
39,
27,
5340,
288,
203,
565,
445,
508,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
445,
3273,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
4... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
... | Current Vesting stage for ShareX team Every 3 months uint256 stage = (block.timestamp.sub(lockedAt)).div(vestingMonths);Ensures team vesting stage doesn't go past teamVestingStages | function teamVestingStage() public view onlyTeamReserve returns(uint256){
uint256 vestingMonths = teamTimeLock.div(teamVestingStages);
uint256 stage = (block.timestamp).sub(firstTime).div(vestingMonths);
if(stage > teamVestingStages){
stage = teamVestingStages;
... | 12,860,356 | [
1,
4625,
348,
7953,
560,
30,
6562,
776,
10100,
6009,
364,
25805,
60,
5927,
16420,
890,
8846,
2254,
5034,
6009,
273,
261,
2629,
18,
5508,
18,
1717,
12,
15091,
861,
13,
2934,
2892,
12,
90,
10100,
19749,
1769,
19869,
5927,
331,
10100,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5927,
58,
10100,
8755,
1435,
1071,
1476,
1338,
8689,
607,
6527,
1135,
12,
11890,
5034,
15329,
203,
540,
203,
3639,
2254,
5034,
331,
10100,
19749,
273,
5927,
950,
2531,
18,
2892,
12,
10035,
58,
10100,
31359,
1769,
7010,
20... |
./full_match/1/0x8Be0D0a733Fb2f519ADe99d6D4Ea57cff56866Cf/sources/src/SneakyGenesis/SneakyGenesis.sol | @notice Override of ERC721A tokenURI(uint256) @dev returns baseURI @param tokenId the tokenId without offsets @return the tokenURI with metadata | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
if (bytes(baseURI).length > 0) {
return baseURI;
return "";
}
}
| 9,809,904 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1439,
434,
4232,
39,
27,
5340,
37,
1147,
3098,
12,
11890,
5034,
13,
632,
5206,
1135,
1026,
3098,
632,
891,
1147,
548,
326,
1147,
548,
2887,
8738,
632,
2463,
326,
1147,
3098,
598,
1982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
309,
16051,
67,
1808,
12,
2316,
548,
3719,
15226,
3699,
1138,
1290,
3989,
19041,
1345,
5621,
203,
3639,
309,
... |
pragma solidity ^0.5.0;
// import "openzeppelin-eth/contracts/ownership/Ownable.sol";
import "zos-lib/contracts/Initializable.sol";
import "openzeppelin-solidity-2.1.1/contracts/math/SafeMath.sol";
contract Propose is Initializable {
using SafeMath for uint256;
//uint256 public proposerId;
//uint256 pu... | After voting, whether proposal is adopted or not
| bool adoptStatus; | 14,034,655 | [
1,
4625,
348,
7953,
560,
30,
225,
7360,
331,
17128,
16,
2856,
14708,
353,
1261,
3838,
329,
578,
486,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1426,
1261,
3838,
1482,
31,
21821,
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,
-10... |
./full_match/137/0x17b28A8d840D79E7b38Cb0dFD7E2d6cb9a2C7db0/sources/Lottery.sol | commission per ticket
| uint256 public ticketCommission; | 4,755,571 | [
1,
4625,
348,
7953,
560,
30,
225,
1543,
19710,
1534,
9322,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
9322,
799,
3951,
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,
... |
pragma solidity 0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256... | Set the symbol for display purposes
| symbol = "FC"; | 7,956,529 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
3273,
364,
2562,
13694,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
315,
4488,
14432,
27573,
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,
-1... |
pragma solidity ^0.4.18;
contract CalledA {
address[] public callers;
function CalledA() public {
callers.push(msg.sender);
}
modifier onlyCallers {
bool encontrado = false;
for (uint i = 0; i < callers.length && !encontrado; i++) {
if (callers[i] == msg.sender) {... | @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens @param target Address to be frozen @param freeze either to freeze it or not | function freezeAccount(address target, bool freeze) onlyCallers public {
frozenAccount[target] = freeze;
FrozenFunds(target, freeze);
}
| 2,158,107 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1375,
29631,
35,
19412,
571,
7852,
68,
1375,
3299,
68,
628,
5431,
473,
15847,
2430,
632,
891,
1018,
5267,
358,
506,
12810,
632,
891,
16684,
3344,
358,
16684,
518,
578,
486,
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,
16684,
3032,
12,
2867,
1018,
16,
1426,
16684,
13,
1338,
1477,
414,
1071,
288,
203,
3639,
12810,
3032,
63,
3299,
65,
273,
16684,
31,
203,
3639,
478,
9808,
42,
19156,
12,
3299,
16,
16684,
1769,
203,
565,
289,
203,
203,
... |
./partial_match/42/0xc7721Dba419C5524d64f8303E44D7dc0a9c17e6d/sources/PynthetixState.sol | ERROR: type should be string, got " https:docs.pynthetix.io/contracts/source/contracts/pynthetixstate A struct for handing values associated with an individual user's debt position" | contract PynthetixState is Owned, State, LimitedSetup, IPynthetixState {
using SafeMath for uint;
using SafeDecimalMath for uint;
struct IssuanceData {
uint initialDebtOwnership;
uint debtEntryIndex;
}
struct IssuanceKindsData {
uint periAmount;
uint usdcAmount;
... | 8,922,596 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
8532,
18,
84,
878,
451,
278,
697,
18,
1594,
19,
16351,
87,
19,
3168,
19,
16351,
87,
19,
84,
878,
451,
278,
697,
2019,
432,
1958,
364,
948,
310,
924,
3627,
598,
392,
7327,
729,
1807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
453,
878,
451,
278,
697,
1119,
353,
14223,
11748,
16,
3287,
16,
7214,
329,
7365,
16,
2971,
878,
451,
278,
697,
1119,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1450,
14060,
5749,
10477,
364,
2254,
31,
203,... |
pragma solidity ^0.5.0;
contract Context {
constructor () internal { }
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode... | * @dev Get status of a cover claim. @param _tokenId Id of the token we're checking. @return Status of the claim being made on the token./ | function getCoverStatus(uint256 _tokenId) external view returns (uint8 coverStatus, bool payoutCompleted) {
(, coverStatus, , , ) = _getCover2(_tokenId);
payoutCompleted = _payoutIsCompleted(claimIds[_tokenId]);
}
| 7,960,206 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
1267,
434,
279,
5590,
7516,
18,
632,
891,
389,
2316,
548,
3124,
434,
326,
1147,
732,
4565,
6728,
18,
632,
2463,
2685,
434,
326,
7516,
3832,
7165,
603,
326,
1147,
18,
19,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1927,
1643,
1482,
12,
11890,
5034,
389,
2316,
548,
13,
3903,
1476,
1135,
261,
11890,
28,
5590,
1482,
16,
1426,
293,
2012,
9556,
13,
288,
203,
3639,
261,
16,
5590,
1482,
16,
269,
269,
262,
273,
389,
588,
8084,
22,
2489... |
./full_match/4/0xEeAad2bC2490860AAE97dCc19a9f0c9fFACa2E93/sources/contracts/CryptoodleToken.sol | Pauses or resumes the TODL airdrop for Loot Bags. Used instead of burning TODL from each bag of the air drop for gas savings | function pauseAirdrop(bool value, uint256 contractId) external onlyOwner {
if(contractId == 0){
airdropForOGLootActive = value;
airdropForToodleLootActive = value;
airdropForMoreLootActive = value;
}
}
| 805,773 | [
1,
4625,
348,
7953,
560,
30,
225,
453,
9608,
578,
400,
6411,
326,
399,
1212,
48,
279,
6909,
1764,
364,
511,
1632,
605,
1341,
18,
10286,
3560,
434,
18305,
310,
399,
1212,
48,
628,
1517,
13189,
434,
326,
23350,
3640,
364,
16189,
4087,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11722,
37,
6909,
1764,
12,
6430,
460,
16,
2254,
5034,
6835,
548,
13,
3903,
1338,
5541,
288,
203,
3639,
309,
12,
16351,
548,
422,
374,
15329,
203,
5411,
279,
6909,
1764,
1290,
13369,
1504,
352,
3896,
273,
460,
31,
203,
... |
pragma solidity 0.4.25;
/**
*
* Get your 7,77% every day profit with Fortune 777 Contract!
* GitHub https://github.com/fortune333/fortune777
* Site https://fortune333.online/
*
* With the refusal of ownership, without the human factor, on the most reliable blockchain in the world!
* Only 6% for technical supp... | 888/10000 *100% = 8.88%
| Percent.percent private m_8_percent = Percent.percent(888,10000); | 922,873 | [
1,
4625,
348,
7953,
560,
30,
225,
1725,
5482,
19,
23899,
380,
6625,
9,
273,
1725,
18,
5482,
9,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
8410,
18,
8849,
3238,
312,
67,
28,
67,
8849,
273,
21198,
18,
8849,
12,
5482,
28,
16,
23899,
1769,
2398,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/100/0x2327dB49Af92d468F00127AA9037334CFed3CB38/sources/contracts/TokenSale.sol | @notice Allow the owner of the contract to withdraw our custom token. @param amount Amount of the custom token requesting to be sent to admin. @dev Whichever admin calls this function will receive the custom tokens being held in this contract. | function withdrawTokens(uint amount) external onlyAdmin payable {
uint256 thisBalance = tokenToSell.balanceOf(address(this));
require(thisBalance > 0, "No contract balance of our token to withdraw");
require(thisBalance >= amount, "Contract does not hold amount requested");
(bool ... | 14,291,248 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
7852,
326,
3410,
434,
326,
6835,
358,
598,
9446,
3134,
1679,
1147,
18,
632,
891,
3844,
16811,
434,
326,
1679,
1147,
18709,
358,
506,
3271,
358,
3981,
18,
632,
5206,
3497,
335,
580,
502,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
5157,
12,
11890,
3844,
13,
3903,
1338,
4446,
8843,
429,
288,
203,
3639,
2254,
5034,
333,
13937,
273,
1147,
774,
55,
1165,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
7010,
3639,
2583,
12,
2211,
13937,
405,
374... |
pragma solidity ^0.4.25;
contract IStdToken {
function balanceOf(address _owner) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
function transferFrom(address _from, address _to, uint256 _value) public returns(bool);
}
contract EtheramaCommon {
... | the user is not going to receive any reward for the current purchase | _core.addUserRewardPayouts(msg.sender, _data.getBonusPerShare() * tokenAmount);
| 1,321,893 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
729,
353,
486,
8554,
358,
6798,
1281,
19890,
364,
326,
783,
23701,
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,
3639,
389,
3644,
18,
1289,
1299,
17631,
1060,
52,
2012,
87,
12,
3576,
18,
15330,
16,
389,
892,
18,
588,
38,
22889,
2173,
9535,
1435,
380,
1147,
6275,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0xBCF9F4c6FC589c89d4aAdE063010D0f5B3733680/sources/contracts/staking/Staking.sol | * @dev Return the allocation by ID. @param _allocationID Address used as allocation identifier @return Allocation data/ | function getAllocation(address _allocationID)
external
override
view
returns (Allocation memory)
{
return allocations[_allocationID];
}
| 4,905,262 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2000,
326,
13481,
635,
1599,
18,
632,
891,
389,
29299,
734,
5267,
1399,
487,
13481,
2756,
632,
2463,
24242,
501,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
17353,
12,
2867,
389,
29299,
734,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1476,
203,
3639,
1135,
261,
17353,
3778,
13,
203,
565,
288,
203,
3639,
327,
23804,
63,
67,
29299,
734,
15533,
203,
565,
289,
203,
... |
pragma solidity 0.4.24;
import "../ownership/KeyManageable.sol";
/**
* @title KeyDestructible
* @author Wu Di
* @notice Base contract that can be destroyed by MANAGEMENT_KEY or the identity itself
* @dev Inspired by
* https://github.com/OpenZeppelin/openzeppelin-solidity/tree/v1.12.0/contracts/lifecycle/Destruc... | * @dev Transfers the current balance and terminates the contract @param _recipient All funds in contract will be sent to this recipient/ | {
require(_recipient != address(0), "Invalid address");
selfdestruct(_recipient);
}
| 12,846,287 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
326,
783,
11013,
471,
30559,
326,
6835,
632,
891,
389,
20367,
4826,
284,
19156,
316,
6835,
903,
506,
3271,
358,
333,
8027,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
2583,
24899,
20367,
480,
1758,
12,
20,
3631,
315,
1941,
1758,
8863,
203,
3639,
365,
5489,
8813,
24899,
20367,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract StrongHolder... | @dev Returns reward per position by pool id | function getReward(uint8 _poolId, uint8 _position)
external
view
returns (uint256 reward)
{
reward = generalPoolInfo[_poolId].rewards[_position];
}
| 13,002,097 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
19890,
1534,
1754,
635,
2845,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4170,
359,
1060,
12,
11890,
28,
389,
6011,
548,
16,
2254,
28,
389,
3276,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
19890,
13,
203,
565,
288,
203,
3639,
19890,
273,
7470,
2864,
966,
63,
6... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.6;
interface IERC1155 {
/****************************************|
| Events |
|_______________________________________*/
/**
* @dev Either TransferSingle or TransferBatch MUST emit when tokens are transferred, includ... | Constants Routing State Modifier | contract WOWSERC1155RootTunnel is FxBaseRootTunnel, ERC1155Holder, IRootTunnel {
using TokenIds for uint256;
using SafeMath for uint256;
bytes32 private constant DEPOSIT = keccak256('DEPOSIT');
bytes32 private constant DEPOSIT_BATCH = keccak256('DEPOSIT_BATCH');
bytes32 private constant MIGRATE = keccak256(... | 13,861,341 | [
1,
4625,
348,
7953,
560,
30,
225,
5245,
19349,
3287,
12832,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
678,
7306,
2123,
39,
2499,
2539,
2375,
20329,
353,
478,
92,
2171,
2375,
20329,
16,
4232,
39,
2499,
2539,
6064,
16,
467,
2375,
20329,
288,
203,
225,
1450,
3155,
2673,
364,
2254,
5034,
31,
203,
225,
1450,
14060,
10477,
364,
... |
./full_match/80001/0xbB7Bf10aB05d0ed4B351C43197aB2Cbbd86c6abd/sources/contracts/pools/Pool.sol | @notice Emergency function to disable contract's core functionality @dev wraps _pause(), only Admin | function pause() external virtual {
onlyWithRole(PAUSER_ROLE);
_pause();
}
| 9,448,123 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
512,
6592,
75,
2075,
445,
358,
4056,
6835,
1807,
2922,
14176,
632,
5206,
9059,
389,
19476,
9334,
1338,
7807,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11722,
1435,
3903,
5024,
288,
203,
3639,
1338,
1190,
2996,
12,
4066,
4714,
67,
16256,
1769,
203,
3639,
389,
19476,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-FileCopyrightText: 2021 ShardLabs
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/Reen... | @notice Allows to unstake staked tokens after withdraw delay. @dev after the unstake the operator and waiting for the Polygon withdraw_delay the owner can transfer back his staked balance by calling unsttakeClaim, after that the operator status is set to CLAIMED | function unstakeClaim() external override whenNotPaused {
(uint256 operatorId, NodeOperator storage no) = getOperator(0);
checkCondition(
getOperatorStatus(no) == NodeOperatorStatus.UNSTAKED,
"Invalid status"
);
uint256 amount = IValidator(no.validatorProxy).u... | 6,084,887 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25619,
358,
640,
334,
911,
384,
9477,
2430,
1839,
598,
9446,
4624,
18,
632,
5206,
1839,
326,
640,
334,
911,
326,
3726,
471,
7336,
364,
326,
12681,
598,
9446,
67,
10790,
326,
3410,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
334,
911,
9762,
1435,
3903,
3849,
1347,
1248,
28590,
288,
203,
3639,
261,
11890,
5034,
3726,
548,
16,
2029,
5592,
2502,
1158,
13,
273,
24379,
12,
20,
1769,
203,
3639,
866,
3418,
12,
203,
5411,
24379,
1482,
12,
2135... |
./full_match/1/0x0fFe9697c852cBBB35e4EeF49Cbc948dAF855d63/sources/contracts/terraformSandbox.sol | Duration increases for each class
| a.durationInc = a.duration; | 9,654,944 | [
1,
4625,
348,
7953,
560,
30,
225,
4822,
7033,
3304,
364,
1517,
667,
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,
5411,
279,
18,
8760,
14559,
273,
279,
18,
8760,
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,
-10... |
./partial_match/1/0xD8162D9703d1c13476FEE3f20ADF2c6468683F0e/sources/contracts/MasterContract.sol | @title Bulls and Apes Project - Master Contract @author BAP Dev Team @notice Handle interactions between several BAP contracts | contract MasterContract is Ownable {
BAPMethaneInterface public bapMeth;
BAPUtilitiesInterface public bapUtilities;
BAPTeenBullsInterface public bapTeenBulls;
mapping(address => bool) public isAuthorized;
constructor(
address _bapMethane,
address _bapUtilities,
address _bap... | 4,471,970 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
605,
420,
87,
471,
1716,
281,
5420,
300,
13453,
13456,
632,
4161,
605,
2203,
9562,
10434,
632,
20392,
5004,
23877,
3086,
11392,
605,
2203,
20092,
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,
16351,
13453,
8924,
353,
14223,
6914,
288,
203,
565,
605,
2203,
49,
546,
8806,
1358,
1071,
324,
438,
49,
546,
31,
203,
565,
605,
2203,
11864,
1358,
1071,
324,
438,
11864,
31,
203,
565,
28143,
1856,
73,
275,
38,
420,
87,
1358,
1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";
import "./BattleRoyale.sol";
import "./AddressArray.sol";
import "./CustomAccessControl.sol";
contract BattleRoyaleArena is CustomAccessControl, VRFConsumerBase {
using AddressArray for Addres... | Set Interval @param {[type]} uint256 [description]/ | function setIntervalTime(uint256 _intervalTime) external payable returns (uint256) {
require(msg.sender == delegate || msg.sender == owner());
intervalTime = _intervalTime;
}
| 1,384,343 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
10803,
632,
891,
288,
63,
723,
18322,
2254,
5034,
306,
3384,
18537,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
27058,
950,
12,
11890,
5034,
389,
6624,
950,
13,
3903,
8843,
429,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2583,
12,
3576,
18,
15330,
422,
7152,
747,
1234,
18,
15330,
422,
3410,
10663,
203,
565,
3673,
950,
273,
389,
... |
pragma solidity 0.4.26;
import "./ERC20.sol";
import "./Oracle.sol";
import "./DSMath.sol";
/**
* @title Atomic Loans Medianizer Contract
* @author Atomic Loans
*/
contract Medianizer is DSMath {
bool hasPrice;
bytes32 assetPrice;
uint256 public minOraclesRequired = 5;
bool on;
address deplo... | Ensure amount fits in uint128
| require(amount_ < 2**128-1, "Medianizer.fund: amount is greater than max uint128"); | 2,576,407 | [
1,
4625,
348,
7953,
560,
30,
225,
7693,
3844,
13351,
316,
2254,
10392,
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,
2583,
12,
8949,
67,
411,
576,
636,
10392,
17,
21,
16,
315,
13265,
2779,
1824,
18,
74,
1074,
30,
3844,
353,
6802,
2353,
943,
2254,
10392,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
import "../proxy/Proxy.sol";
import "../PolymathRegistry.sol";
import "../interfaces/IModule.sol";
import "./SecurityTokenStorage.sol";
import "../libraries/TokenLib.sol";
import "../interfaces/IDataStore.sol";
import "../interfaces/IUpgradableTokenFactory.sol";
import "../interfaces/IModuleFac... | * @notice Allows the owner to withdraw unspent POLY stored by them on the ST or any ERC20 token. @dev Owner can transfer POLY to the ST which will be used to pay for modules that require a POLY fee. @param _tokenContract Address of the ERC20Basic compliance token @param _value amount of POLY to withdraw/ | function withdrawERC20(address _tokenContract, uint256 _value) external {
_onlyOwner();
IERC20 token = IERC20(_tokenContract);
require(token.transfer(owner(), _value));
}
| 5,505,163 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
326,
3410,
358,
598,
9446,
640,
20693,
19383,
61,
4041,
635,
2182,
603,
326,
2347,
578,
1281,
4232,
39,
3462,
1147,
18,
632,
5206,
16837,
848,
7412,
19383,
61,
358,
326,
2347,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
598,
9446,
654,
39,
3462,
12,
2867,
389,
2316,
8924,
16,
2254,
5034,
389,
1132,
13,
3903,
288,
203,
3639,
389,
3700,
5541,
5621,
203,
3639,
467,
654,
39,
3462,
1147,
273,
467,
654,
39,
3462,
24899,
2316,
8924,
1769,
2... |
pragma solidity 0.4.15;
import './IInvestmentsWalletConnector.sol';
import '../security/ArgumentsChecker.sol';
/**
* @title Stores investments in specified external account.
* @author Eenae
*/
contract ExternalAccountWalletConnector is ArgumentsChecker, IInvestmentsWalletConnector {
function ExternalAccountW... | @dev process and forward investment | function storeInvestment(address /*investor*/, uint payment) internal
{
m_wcStored += payment;
m_walletAddress.transfer(payment);
}
| 997,541 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1207,
471,
5104,
2198,
395,
475,
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,
1707,
3605,
395,
475,
12,
2867,
1748,
5768,
395,
280,
5549,
16,
2254,
5184,
13,
2713,
203,
565,
288,
203,
3639,
312,
67,
27594,
18005,
1011,
5184,
31,
203,
3639,
312,
67,
19177,
1887,
18,
13866,
12,
9261,
1769,
203,
5... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma abicoder v2;
import "./interfaces.sol";
import "./helpers.sol";
contract Resolver is Helpers {
/**
* @dev Sort token address
* @param _token0: token0 Address
* @param _token1: token1 Address
*/
function sort(address _token0, add... | pool.burn(tickLower, tickUpper, 0); | function collectInfo(uint256 tokenId) internal returns (uint256 amount0, uint256 amount1) {
(
,
,
address _token0,
address _token1,
uint24 _fee,
int24 tickLower,
int24 tickUpper,
uint128 liquidity,
ui... | 13,768,808 | [
1,
4625,
348,
7953,
560,
30,
225,
2845,
18,
70,
321,
12,
6470,
4070,
16,
4024,
5988,
16,
374,
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... | [
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,
3274,
966,
12,
11890,
5034,
1147,
548,
13,
2713,
1135,
261,
11890,
5034,
3844,
20,
16,
2254,
5034,
3844,
21,
13,
288,
203,
3639,
261,
203,
5411,
269,
203,
5411,
269,
203,
5411,
1758,
389,
2316,
20,
16,
203,
5411,
1758... |
./partial_match/1/0x92903E1d4F2b4d9F3E0d51C2C502dEAca0A484E5/sources/Innovus.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 sell on buy | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(!isBlacklisted[from] && !isBlackliste... | 15,900,431 | [
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,
... |
pragma solidity ^0.4.21;
/**
* Changes by https://www.docademic.com/
*/
/**
* @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 /... | * @dev Allows the owner to change the broker. @param _broker The broker address/ | function changeBroker(address _broker) public onlyOwner {
emit BrokerChanged(broker, _broker);
broker = _broker;
}
| 10,419,211 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
326,
3410,
358,
2549,
326,
8625,
18,
632,
891,
389,
21722,
1021,
8625,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
202,
915,
2549,
11194,
12,
2867,
389,
21722,
13,
1071,
1338,
5541,
288,
203,
202,
202,
18356,
20438,
5033,
12,
21722,
16,
389,
21722,
1769,
203,
202,
202,
21722,
273,
389,
21722,
31,
203,
202,
97,
203,
202,
203,
2,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../../interfaces/common/IUniswapRouterETH.sol";
import "../../interfaces/common/IUnis... | * @dev Function to synchronize balances before new user deposit. Can be overridden in the strategy./ | function beforeDeposit() external virtual {}
| 444,767 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
16978,
324,
26488,
1865,
394,
729,
443,
1724,
18,
4480,
506,
11000,
316,
326,
6252,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1865,
758,
1724,
1435,
3903,
5024,
2618,
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.18;
import 'zeppelin-solidity/contracts/math/SafeMath.sol';
import './IVideoBase.sol';
contract VideoBaseAccessor {
using SafeMath for uint256;
/*** STORAGE ***/
/// @dev VideoBase contract.
IVideoBase videoBase;
/// @dev Payee who receive partial value in a payable transaction.
a... | @dev get split of payee, if payee is 0x0, returns 0. @param _value to be split. | function getPayeeSplit(uint256 _value)
internal
view
returns (uint256) {
if (payee == address(0)) {
return 0;
}
return _value.mul(payeeRatio).div(10000);
}
| 7,320,851 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
336,
1416,
434,
8843,
1340,
16,
309,
8843,
1340,
353,
374,
92,
20,
16,
1135,
374,
18,
632,
891,
389,
1132,
358,
506,
1416,
18,
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,
1,
0,
0,
0,
0,
0,
0,
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,
1689,
528,
1340,
5521,
12,
11890,
5034,
389,
1132,
13,
203,
1377,
2713,
203,
1377,
1476,
203,
1377,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
261,
10239,
1340,
422,
1758,
12,
20,
3719,
288,
203,
1377,
327,
374,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;
interface IBasisAsset {
function mint(address recipient, uint256 amount) external returns (bool);
function burn(uint256 amount) external;
function burnFrom(address from, uint256 amount) external;
function isOperator() external returns (bool);
... | If anyone sends tokens directly to the contract we can refund them. | function cleanUpDust(uint256 amount, address tokenAddress, address sendTo) onlyOperator public {
IERC20(tokenAddress).safeTransfer(sendTo, amount);
}
| 6,140,258 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
1281,
476,
9573,
2430,
5122,
358,
326,
6835,
732,
848,
16255,
2182,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26384,
40,
641,
12,
11890,
5034,
3844,
16,
1758,
1147,
1887,
16,
1758,
29091,
13,
1338,
5592,
1071,
225,
288,
1377,
203,
5411,
467,
654,
39,
3462,
12,
2316,
1887,
2934,
4626,
5912,
12,
4661,
774,
16,
3844,
1769,
203,
... |
./full_match/4/0xa97Ab6BA1aD70f0b63E9F5bDe5b00558fcdC1B96/sources/contracts/artifacts/FundMe.sol | si alguien invierte más de una vez el array será redundante, pero lo dejaremos pasar por el momento
| funders.push(msg.sender); | 13,349,657 | [
1,
4625,
348,
7953,
560,
30,
7533,
11989,
4881,
275,
316,
522,
264,
736,
312,
132,
99,
87,
443,
28842,
331,
6664,
415,
526,
703,
132,
99,
1755,
1074,
7974,
16,
1534,
83,
437,
443,
78,
834,
26719,
14699,
297,
22471,
415,
10382,
83,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
284,
26843,
18,
6206,
12,
3576,
18,
15330,
1769,
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/1/0x1111306F3d849B133f533D6E9F7341d40De0cB4b/sources/src/RPVault.sol | @notice farmer asset balance insufficient | error FarmerInsufficientBalance();
| 8,293,568 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
284,
4610,
264,
3310,
11013,
2763,
11339,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
555,
478,
4610,
264,
5048,
11339,
13937,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract EnumsSempoi{
uint8 rarity = 0;
enum Rarity{
original, // 0
rare, // 1
super_rare // 2
}
Rarity public rarity;
// constructor get call only once during deployment
// constructor diseru sekali ... | constructor get call only once during deployment constructor diseru sekali sahaja ketika deployment | constructor() {
rarity = Rarity.rare;
}
| 12,946,215 | [
1,
4625,
348,
7953,
560,
30,
225,
3885,
336,
745,
1338,
3647,
4982,
6314,
3885,
1015,
264,
89,
695,
79,
18083,
7864,
3395,
12333,
417,
278,
21256,
6314,
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,
3885,
1435,
288,
203,
3639,
436,
20498,
273,
534,
20498,
18,
354,
266,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
//import only the used Gnosis files
import "./OwnerManager.sol";
import "./Executor.sol";
import "./Enum.sol";
/**
* @dev Implementation of the Multisig Contract.
*
* This contract uses the functionalities provided by Gnosis contracts(OwnerManager, Executor... | * @dev returns information about a lockTime/ | function getCurrentTimeInfo(uint _nonce) external view returns(uint256 _timeStamp, uint256 _lockTimePeriod,uint256 _lockTime)
{
return (block.timestamp,lockTimePeriod,lockTime[_nonce]);
}
| 12,533,769 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
1779,
2973,
279,
2176,
950,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5175,
950,
966,
12,
11890,
389,
12824,
13,
3903,
1476,
1135,
12,
11890,
5034,
389,
957,
8860,
16,
2254,
5034,
389,
739,
26540,
16,
11890,
5034,
389,
739,
950,
13,
203,
565,
288,
203,
3639,
327,
261,
2629,
18,
5508,
16... |
./full_match/5/0x8EF16546A498e9210e0841dC3e891368f2fE5150/sources/contracts/nftMint.sol | Validate the caller is not already part of the whitelist. Set whitelist boolean to true. | function addMultipleWhiteListAddresses(address[] memory _addressesToAdd)
public
onlyOwner
{
for (uint256 i = 0; i <= _addressesToAdd.length; i++) {
if (!whitelistedAddresses[_addressesToAdd[i]]){
whiteListedAddressesArray.push(_addressesToAdd[i]);
... | 1,927,628 | [
1,
4625,
348,
7953,
560,
30,
225,
3554,
326,
4894,
353,
486,
1818,
1087,
434,
326,
10734,
18,
1000,
10734,
1250,
358,
638,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
8438,
13407,
682,
7148,
12,
2867,
8526,
3778,
389,
13277,
13786,
13,
203,
3639,
1071,
203,
3639,
1338,
5541,
203,
565,
288,
203,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
1648,
389,
13277,
13786,
18... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.9;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./CurveStable.sol";
import "./ConvexBase.sol";
/// @notice Implements the strategy using Convex. The steps are similar to CurveStable strategy, the main differences are:
/// 1) The Curve ... | @dev Deposits the LP tokens to Curve gauge. | function _depositLPTokens() internal virtual {
address poolLPToken = curveGauge.lp_token();
uint256 balance = IERC20(poolLPToken).balanceOf(address(this));
if (balance > 0) {
curveGauge.deposit(balance);
}
}
| 519,090 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4019,
538,
1282,
326,
511,
52,
2430,
358,
22901,
13335,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
323,
1724,
48,
1856,
3573,
1435,
2713,
5024,
288,
203,
565,
1758,
2845,
14461,
1345,
273,
8882,
18941,
18,
9953,
67,
2316,
5621,
203,
565,
2254,
5034,
11013,
273,
467,
654,
39,
3462,
12,
6011,
14461,
1345,
2934,
12... |
./partial_match/137/0xF1EEa613CC855e663ec860fBc5bAe55747421300/sources/MarbleNFTFactory.sol | * @dev Optional enumeration extension for ERC-721 non-fungible token standard./ | interface ERC721Enumerable {
function totalSupply()
external
view
returns (uint256);
function tokenByIndex(
uint256 _index
)
external
view
returns (uint256);
function tokenOfOwnerByIndex(
address _owner,
uint256 _index
)
external
view
returns (uint256);
}
}... | 3,521,087 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4055,
16836,
2710,
364,
4232,
39,
17,
27,
5340,
1661,
17,
12125,
75,
1523,
1147,
4529,
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,... | [
1,
1,
1,
1,
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,
5831,
4232,
39,
27,
5340,
3572,
25121,
288,
203,
203,
225,
445,
2078,
3088,
1283,
1435,
203,
565,
3903,
203,
565,
1476,
203,
565,
1135,
261,
11890,
5034,
1769,
203,
203,
225,
445,
1147,
21268,
12,
203,
565,
2254,
5034,
389,
1615,... |
./full_match/1/0x0c48250Eb1f29491F1eFBeEc0261eb556f0973C7/sources/contracts/AimBotDividends.sol | @notice Withdraws the ether distributed to the sender. @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. | function withdrawDividend() public virtual {
_withdrawDividendOfUser(payable(msg.sender));
}
| 8,403,517 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3423,
9446,
87,
326,
225,
2437,
16859,
358,
326,
5793,
18,
632,
5206,
2597,
24169,
279,
1375,
7244,
26746,
1190,
9446,
82,
68,
871,
309,
326,
3844,
434,
598,
9446,
82,
225,
2437,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
7244,
26746,
1435,
1071,
5024,
288,
203,
565,
389,
1918,
9446,
7244,
26746,
951,
1299,
12,
10239,
429,
12,
3576,
18,
15330,
10019,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.... | Get the current tokens of owner | contract BridgedERC721 is ERC721, ERC721Enumerable, ERC721URIStorage, Pausable, Ownable, ERC721Burnable {
string public baseURI;
pragma solidity ^0.8.2;
constructor(string memory _name, string memory _symbol) ERC721(_name, _symbol) {}
function tokensOfOwner(address _owner) external view returns (uint256[]... | 14,435,217 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
326,
783,
2430,
434,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
1691,
2423,
654,
39,
27,
5340,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
4232,
39,
27,
5340,
3098,
3245,
16,
21800,
16665,
16,
14223,
6914,
16,
4232,
39,
27,
5340,
38,
321,
429,
288,
203,
5... |
./full_match/3/0x25386db36d0e57E90Bd143C8c97d8ed66DE4a78F/sources/browser/hopdong.sol | * @dev Emitted during finish minting/* @dev Tokens can be minted only before minting finished./ | modifier canMint() {
require(!_mintingFinished, "Kawazi: minting is finished");
_;
}
constructor (
string memory name,
string memory symbol,
uint8 decimals,
uint256 cap,
uint256 initialBalance,
address payable feeReceiver
| 8,149,127 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
4982,
4076,
312,
474,
310,
20308,
632,
5206,
13899,
848,
506,
312,
474,
329,
1338,
1865,
312,
474,
310,
6708,
18,
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,
9606,
848,
49,
474,
1435,
288,
203,
3639,
2583,
12,
5,
67,
81,
474,
310,
10577,
16,
315,
47,
2219,
1561,
77,
30,
312,
474,
310,
353,
6708,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
565,
3885,
261,
203,
3639,
5... |
./full_match/1/0x64eD4a6805673F7fdF1D98F3Db63009291982e81/sources/foo.sol | File contracts/Libraries/SafeHelper.sol | library SafeHelper {
function approve(
GnosisSafe safe,
ERC20 token,
address spender,
uint256 amount
function execTransactionFromModule(
address to,
uint256 value,
bytes memory data,
Operation operation
) external returns (bool);
function ... | 8,334,041 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
20092,
19,
31909,
19,
9890,
2276,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
14060,
2276,
288,
203,
565,
445,
6617,
537,
12,
203,
3639,
611,
18050,
291,
9890,
4183,
16,
203,
3639,
4232,
39,
3462,
1147,
16,
203,
3639,
1758,
17571,
264,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
445,
1196,
3342,
1265... |
pragma solidity ^0.4.25;
import "./owned.sol";
import "./safemath.sol";
import "./erc20.sol";
contract goldcash is owned, ERC20 {
using SafeMath for uint256;
//coin details
string public name = "goldcash";
string public symbol = "GAS";
uint256 public totalSupply;
address public contractAddre... | Update total supply with the decimal amount
| totalSupply = initialSupply.mul(10 ** uint256(decimals)); | 1,324,184 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
2078,
14467,
598,
326,
6970,
3844,
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,
2078,
3088,
1283,
273,
2172,
3088,
1283,
18,
16411,
12,
2163,
2826,
2254,
5034,
12,
31734,
10019,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x7eE001d235C6C5e0a6Df156888792b607535Bf00/sources/ASTRO_TOKEN.sol | SPDX-License-Identifier:MIT | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount)
external
returns (bool);
function approve(address spender, uint256 amount) externa... | 17,195,270 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
6068,
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,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
741... |
/* Copyright (C) 2020 NexusMutual.io
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 distribu... | * @dev Used to pause claim assessor activity for 3 days @param user Member address whose claim voting ability needs to be paused/ | function setUserClaimVotePausedOn(address user) external {
require(ms.checkIsAuthToGoverned(msg.sender));
userClaimVotePausedOn[user] = now;
}
| 2,578,253 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10286,
358,
11722,
7516,
1551,
403,
280,
5728,
364,
890,
4681,
632,
891,
729,
8596,
1758,
8272,
7516,
331,
17128,
7123,
4260,
358,
506,
17781,
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,
225,
445,
14365,
9762,
19338,
28590,
1398,
12,
2867,
729,
13,
3903,
288,
203,
565,
2583,
12,
959,
18,
1893,
2520,
1730,
774,
43,
1643,
11748,
12,
3576,
18,
15330,
10019,
203,
565,
729,
9762,
19338,
28590,
1398,
63,
1355,
65,
273,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
// contract Greet is contract to store string value inside `greet` variable.
contract Greet {
string public greet;
constructor(string memory text) {
greet = text;
}
}
| contract Greet is contract to store string value inside `greet` variable. | contract Greet {
string public greet;
constructor(string memory text) {
greet = text;
}
}
| 15,843,210 | [
1,
4625,
348,
7953,
560,
30,
225,
6835,
611,
9015,
353,
6835,
358,
1707,
533,
460,
4832,
1375,
75,
9015,
68,
2190,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
611,
9015,
288,
203,
202,
1080,
1071,
5174,
278,
31,
203,
203,
203,
202,
12316,
12,
1080,
3778,
977,
13,
288,
203,
202,
202,
75,
9015,
273,
977,
31,
203,
202,
97,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/3/0x079F4Fc0CcaC4fe37c4Bb6a1B5B163e6298c0ba3/sources/testcontract.sol | Uniswap srcToken => dstToken Approve Uniswap to spend tokens Setup transfer | function runTokenUniswapTransfer(uint amount, address srcTokenAddress, address dstTokenAddress) onlyOwner() external {
IERC20 srcToken = IERC20(srcTokenAddress);
IERC20 dstToken = IERC20(dstTokenAddress);
IUniswapV2Router01 uniswap = IUniswapV2Router01(uniswapAddress);
srcToken.approve(address(uniswa... | 5,271,408 | [
1,
4625,
348,
7953,
560,
30,
1351,
291,
91,
438,
1705,
1345,
516,
3046,
1345,
1716,
685,
537,
1351,
291,
91,
438,
358,
17571,
2430,
10939,
7412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1086,
1345,
984,
291,
91,
438,
5912,
12,
11890,
3844,
16,
1758,
1705,
1345,
1887,
16,
1758,
3046,
1345,
1887,
13,
1338,
5541,
1435,
3903,
288,
203,
565,
467,
654,
39,
3462,
1705,
1345,
273,
467,
654,
39,
3462,
12,
481... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one... | @notice Returns the timestamp at which a reward was last time applicable. When reward interval is pending, returns current block's timestamp. If the last reward interval ended and no other reward interval had been allocated, returns the last reward interval's end timestamp. | function lastTimeRewardApplicable() public view returns (uint256) {
return Math.min(block.timestamp, intervalFinish);
}
| 112,450 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2860,
326,
2858,
622,
1492,
279,
19890,
1703,
1142,
813,
12008,
18,
540,
5203,
19890,
3673,
353,
4634,
16,
1135,
783,
1203,
1807,
540,
2858,
18,
971,
326,
1142,
19890,
3673,
16926,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
31323,
17631,
1060,
27873,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2361,
18,
1154,
12,
2629,
18,
5508,
16,
3673,
11641,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x4B4ca2f2Ad3A5464cC8c01ECe76c2951f3aBEFB2/sources/contracts/utility/LayerZeroPacket.sol | The log consists of the destination chain id and then a bytes payload 0--------------------------------------------31 0 | total bytes size 32 | destination chain id 64 | bytes offset 96 | bytes array size 128 | payload | function getPacket(
bytes memory data,
uint16 srcChain,
uint sizeOfSrcAddress,
bytes32 ulnAddress
) internal pure returns (LayerZeroPacket.Packet memory) {
uint16 dstChainId;
address dstAddress;
uint size;
uint64 nonce;
assembly {
... | 3,173,872 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
613,
20915,
434,
326,
2929,
2687,
612,
471,
1508,
279,
1731,
2385,
1377,
374,
2443,
7620,
6938,
374,
282,
571,
225,
2078,
1731,
963,
3847,
225,
571,
225,
2929,
2687,
612,
5178,
225,
571,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30401,
278,
12,
203,
3639,
1731,
3778,
501,
16,
203,
3639,
2254,
2313,
1705,
3893,
16,
203,
3639,
2254,
29970,
7740,
1887,
16,
203,
3639,
1731,
1578,
7493,
82,
1887,
203,
565,
262,
2713,
16618,
1135,
261,
4576,
7170,
66... |
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is ERC20Basic ... | solium-disable-line uppercase
| string public constant name = "COIN"; | 4,809,843 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
5077,
17,
8394,
17,
1369,
18966,
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,
225,
533,
1071,
5381,
508,
273,
315,
3865,
706,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply ... | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./ | constructor (string memory name, string memory symbol) public {
_name = name;
_symbol = symbol;
_decimals = 18;
}
| 151,334 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5779,
11643,
288,
31734,
97,
598,
279,
805,
460,
434,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
5779,
999,
288,
67,
8401... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
261,
1080,
3778,
508,
16,
533,
3778,
3273,
13,
1071,
288,
203,
3639,
389,
529,
273,
508,
31,
203,
3639,
389,
7175,
273,
3273,
31,
203,
3639,
389,
31734,
273,
6549,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-... |
/**
*Submitted for verification at Etherscan.io on 2021-04-27
*/
// File: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol
pragma solidity >=0.4.24 <0.7.0;
/**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a funct... | * @dev Update price estimator address @param priceEstimator New price estimator address/ | function setPriceEstimator(address priceEstimator)
external
onlyOwner
onlyContract(priceEstimator)
{
require(
priceEstimator != address(0),
"[Validation]: Invalid price estimator address"
);
_priceEstimator = IPriceEstimator(priceEstimator);
}
| 7,672,734 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2315,
6205,
14470,
1758,
632,
891,
6205,
31080,
1166,
6205,
14470,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
5147,
31080,
12,
2867,
6205,
31080,
13,
203,
565,
3903,
203,
565,
1338,
5541,
203,
565,
1338,
8924,
12,
8694,
31080,
13,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
6205,
31080,
480,
1758,
12,
20,
3631,
203,
5... |
pragma solidity ^0.4.18;
interface ConflictResolutionInterface {
function minHouseStake(uint activeGames) public pure returns(uint);
function maxBalance() public pure returns(int);
function isValidBet(uint8 _gameType, uint _betNum, uint _betValue) public pure returns(bool);
function endGame... | @dev Modifier, which only allows function execution if paused longer than timeSpan. | modifier onlyPausedSince(uint timeSpan) {
require(paused && timePaused + timeSpan <= block.timestamp);
_;
}
| 1,034,068 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
12832,
16,
1492,
1338,
5360,
445,
4588,
309,
17781,
7144,
2353,
813,
6952,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
28590,
9673,
12,
11890,
813,
6952,
13,
288,
203,
3639,
2583,
12,
8774,
3668,
597,
813,
28590,
397,
813,
6952,
1648,
1203,
18,
5508,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
203,
203,
2,
-100,
-100,
-1... |
./full_match/5/0x5bB1a4a7AE0277588Bc7e96D33ac3F58c6b3F22e/sources/contracts/Distributor.sol | @notice The partial interfaces of the Cycle smart contract. Is used to operate with the Cycle contract. | ICycle public cycleContract;
| 11,586,176 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1021,
4702,
7349,
434,
326,
385,
3409,
13706,
6835,
18,
2585,
1399,
358,
20829,
598,
326,
385,
3409,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
467,
13279,
1071,
8589,
8924,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.11;
//import "./oraclizeAPI_0.4.sol";
//import "github.com/oraclize/ethereum-api/oraclizeAPI.sol";
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associat... | Withdraw all profit to the owner | function getProfit() public
onlyOwner
{
owner.transfer(this.balance - getBetWaitEndEther());
}
| 2,345,233 | [
1,
4625,
348,
7953,
560,
30,
3423,
9446,
777,
450,
7216,
358,
326,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3570,
7216,
1435,
1071,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
3410,
18,
13866,
12,
2211,
18,
12296,
300,
2882,
278,
5480,
1638,
41,
1136,
10663,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/42/0xD6f2A85A9B6a221E83a90e1bd6e29364c28200CB/sources/RewardEscrowV2.sol | Nominate an account to merge escrow and vesting schedule */ | function nominateAccountToMerge(address account) external {
require(accountMergingIsOpen(), "Account merging has ended");
require(issuer().debtBalanceOf(msg.sender, "sUSD") == 0, "Cannot merge accounts with debt");
nominatedReceiver[msg.sender] = account;
emit NominateAccountToMerge(... | 3,410,022 | [
1,
4625,
348,
7953,
560,
30,
225,
423,
362,
3322,
392,
2236,
358,
2691,
2904,
492,
471,
331,
10100,
4788,
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,... | [
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,
12457,
3322,
3032,
774,
6786,
12,
2867,
2236,
13,
3903,
288,
203,
3639,
2583,
12,
4631,
8478,
1998,
2520,
3678,
9334,
315,
3032,
17256,
711,
16926,
8863,
203,
3639,
2583,
12,
17567,
7675,
323,
23602,
13937,
951,
12,
3576,... |
pragma solidity 0.5.16;
import "./IETHFlashBorrower.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v2.3.0/contracts/math/SafeMath.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v2.3.0/contracts/utils/ReentrancyGuard.sol";
// @notice Any contract ... | @notice Any contract that inherits this contract becomes a flash lender of any/all ETH that it holds @dev DO NOT USE. This is has not been audited. should never be changed by inheriting contracts internal vars -- okay for inheriting contracts to change @notice Borrow ETH via a flash loan. See ETHFlashBorrower for exam... | contract ETHFlashLender is ReentrancyGuard {
using SafeMath for uint256;
uint256 private _ethBorrowerDebt;
uint256 constant internal ONE = 1e18;
function ETHFlashLoan(uint256 amount) external nonReentrant {
_ethBorrowerDebt = amount.mul(ONE.add(_ethBorrowFee)).div(ONE);
msg.sender.... | 12,653,565 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
5502,
6835,
716,
24664,
333,
6835,
12724,
279,
9563,
328,
2345,
434,
1281,
19,
454,
512,
2455,
716,
518,
14798,
632,
5206,
5467,
4269,
14988,
18,
1220,
353,
711,
486,
2118,
8215,
329,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
512,
2455,
11353,
48,
2345,
353,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
3238,
389,
546,
38,
15318,
264,
758,
23602,
31,
203,
203,
203,
565,
2254,
5034,
5... |
./full_match/5/0x24cf3F799532ABC0fF71cc7D2BA6bC8c19D249eA/sources/contracts/APIConsumer.sol | Chainlink nodes 1.0.0 and later support this format
| request.add("path", "data,temp"); | 1,919,207 | [
1,
4625,
348,
7953,
560,
30,
225,
7824,
1232,
2199,
404,
18,
20,
18,
20,
471,
5137,
2865,
333,
740,
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,
... | [
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,
590,
18,
1289,
2932,
803,
3113,
315,
892,
16,
5814,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.9;
import "./ProtoBufRuntime.sol";
import "./GoogleProtobufAny.sol";
import "./gogoproto/gogo.sol";
library Channel {
//enum definition
// Solidity enum definitions
enum State {
STATE_UNINITIALIZED_UNSPECIFIED,
STATE_INIT,
STATE_TRYOPEN,
... | * @dev The decoder for reading a field @param p The offset of bytes array to start decode @param bs The bytes array to be decoded @param r The in-memory struct @param counters The counters for repeated fields @return The number of bytes decoded/* if `r` is NULL, then only counting the number of fields./ | function _read_counterparty(
uint256 p,
bytes memory bs,
Data memory r,
uint[6] memory counters
) internal pure returns (uint) {
(ChannelCounterparty.Data memory x, uint256 sz) = _decode_ChannelCounterparty(p, bs);
if (isNil(r)) {
counters[3] += 1;
r.counterparty = x;
if (c... | 12,608,131 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
8320,
364,
6453,
279,
652,
632,
891,
293,
1021,
1384,
434,
1731,
526,
358,
787,
2495,
632,
891,
7081,
1021,
1731,
526,
358,
506,
6383,
632,
891,
436,
1021,
316,
17,
7858,
1958,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
896,
67,
7476,
21214,
12,
203,
565,
2254,
5034,
293,
16,
203,
565,
1731,
3778,
7081,
16,
203,
565,
1910,
3778,
436,
16,
203,
565,
2254,
63,
26,
65,
3778,
13199,
203,
225,
262,
2713,
16618,
1135,
261,
11890,
13,
... |
./full_match/97/0xA5f08a23365EFF63E2F801A945b98AFD2fEB92e6/sources/project_/contracts/piMarket.sol | * @notice Allows a user to buy an nft on sale. @param _saleId The Id of the sale. @param _fromCollection A boolean indicating if the nft is from a priavte collection./ | function BuyNFT(
uint256 _saleId,
bool _fromCollection
) external payable nonReentrant {
TokenMeta memory meta = _tokenMeta[_saleId];
LibShare.Share[] memory royalties;
LibShare.Share[] memory validatorRoyalties;
if (_fromCollection) {
royalties = get... | 5,040,299 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
279,
729,
358,
30143,
392,
290,
1222,
603,
272,
5349,
18,
632,
891,
389,
87,
5349,
548,
1021,
3124,
434,
326,
272,
5349,
18,
632,
891,
389,
2080,
2532,
432,
1250,
11193,
309,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
605,
9835,
50,
4464,
12,
203,
3639,
2254,
5034,
389,
87,
5349,
548,
16,
203,
3639,
1426,
389,
2080,
2532,
203,
565,
262,
3903,
8843,
429,
1661,
426,
8230,
970,
288,
203,
3639,
3155,
2781,
3778,
2191,
273,
389,
2316,
2... |