file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/42/0x512364155BD156170f5484B863baf82108F5298b/sources/browser/ViolasMProofDatas-V1.sol | get first empty index | function _updateVaildManager(address managerAddr)
internal
returns(bool)
{
uint saveIndex = managerMaxCount;
for(uint32 i = 0; i < managerMaxCount; i++) {
address findAddr = manager[i];
if (findAddr == managerAddr) {
return true;
}
... | 16,235,639 | [
1,
4625,
348,
7953,
560,
30,
336,
1122,
1008,
770,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2725,
21557,
545,
1318,
12,
2867,
3301,
3178,
13,
7010,
565,
2713,
203,
565,
1135,
12,
6430,
13,
203,
565,
288,
203,
3639,
2254,
1923,
1016,
273,
3301,
2747,
1380,
31,
203,
3639,
364,
12,
11890,
1578,
277,
273,
3... |
./full_match/56/0x08d37d8d9E49eA1c52F487128de52Ac99ed79CF7/sources/project_/contracts/YWL.sol | generate the uniswap pair path of weth -> busd make the swap | function swapTokensForDividendToken(uint256 tokenAmount) public lockTheSwap{
address[] memory path = new address[](3);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
path[2] = usdtAddr;
_approve(address(this), address(uniswapV2Router), tokenAmount);
unis... | 3,235,365 | [
1,
4625,
348,
7953,
560,
30,
225,
2103,
326,
640,
291,
91,
438,
3082,
589,
434,
341,
546,
317,
5766,
72,
1221,
326,
7720,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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,
7720,
5157,
1290,
7244,
26746,
1345,
12,
11890,
5034,
1147,
6275,
13,
1071,
2176,
1986,
12521,
95,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
23,
1769,
203,
3639,
589,
63,
20,
65,
273,
1758,
12,
2211,
... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
*... | * @dev Mints `quantity` tokens and transfers them to `to`. Requirements: - `to` cannot be the zero address. - `quantity` must be greater than 0. Emits a {Transfer} event./ Overflows are incredibly unrealistic. balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 updatedIndex overf... | function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(ad... | 190,455 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
28142,
1375,
16172,
68,
2430,
471,
29375,
2182,
358,
1375,
869,
8338,
29076,
30,
300,
1375,
869,
68,
2780,
506,
326,
3634,
1758,
18,
300,
1375,
16172,
68,
1297,
506,
6802,
2353,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
81,
474,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
10457,
16,
203,
3639,
1731,
3778,
389,
892,
16,
203,
3639,
1426,
4183,
203,
565,
262,
2713,
288,
203,
3639,
2254,
5034,
787,
1345,
548,
273,
389,
2972... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.7.6;
import "@openzeppelin/contracts-upgradeable/cryptography/ECDSAUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import '@uniswap... | * @dev Activate the price calculation by using ZONE/ETH SLP./ | function activatePoolPrice(bool _usePoolPrice, uint256 _zoneReserveAmount, uint256 _ethReserveAmount) onlyOwner external {
_activatePoolPrice(_usePoolPrice, _zoneReserveAmount, _ethReserveAmount);
emit ActivatePoolPrice(usePoolPrice, zoneReserveInLP, ethReserveInLP);
}
| 13,721,248 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
30936,
326,
6205,
11096,
635,
1450,
2285,
5998,
19,
1584,
44,
348,
14461,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10235,
2864,
5147,
12,
6430,
389,
1202,
2864,
5147,
16,
2254,
5034,
389,
3486,
607,
6527,
6275,
16,
2254,
5034,
389,
546,
607,
6527,
6275,
13,
1338,
5541,
3903,
288,
203,
3639,
389,
10014,
2864,
5147,
24899,
1202,
2864,
... |
./full_match/80001/0x14e39aDc79A7610c685143c4cd891F94dB3B40cD/sources/@aragon/osx/framework/dao/DAOFactory.sol | @notice Creates a new DAO, registers it on the DAO registry, and installs a list of plugins via the plugin setup processor. @param _daoSettings The DAO settings to be set during the DAO initialization. @param _pluginSettings The array containing references to plugins and their settings to be installed after the DAO h... | function createDao(
DAOSettings calldata _daoSettings,
PluginSettings[] calldata _pluginSettings
) external returns (DAO createdDao) {
if (_pluginSettings.length == 0) {
revert NoPluginProvided();
}
bytes32 applyInstallationPermissionID = pluginSetupProcess... | 5,569,327 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10210,
279,
394,
463,
20463,
16,
10285,
518,
603,
326,
225,
463,
20463,
4023,
16,
471,
31011,
279,
666,
434,
4799,
3970,
326,
1909,
3875,
6659,
18,
632,
891,
389,
2414,
83,
2628,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
752,
11412,
12,
203,
3639,
463,
20463,
2628,
745,
892,
389,
2414,
83,
2628,
16,
203,
3639,
6258,
2628,
8526,
745,
892,
389,
4094,
2628,
203,
565,
262,
3903,
1135,
261,
18485,
2522,
11412,
13,
288,
203,
3639,
309,
261,
... |
./full_match/80001/0x16B10caAacc1a87C7C92Ec281A96323faA0f3CA0/sources/project_/contracts/handlers/PermissionedGenericHandler.sol | / Skipping 32 bytes of length prefix and depositorOffset bytes. | @notice Data passed into the function should be constructed as follows:
len(data) uint256 bytes 0 - 32
data bytes bytes 64 - END
function deposit(bytes32 resourceID, address depositor, bytes calldata data) external o... | 875,351 | [
1,
4625,
348,
7953,
560,
30,
342,
27455,
3847,
1731,
434,
769,
1633,
471,
443,
1724,
280,
2335,
1731,
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,
... | [
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,
632,
20392,
1910,
2275,
1368,
326,
445,
1410,
506,
15688,
487,
13040,
30,
203,
3639,
562,
12,
892,
13,
17311,
2254,
5034,
377,
1731,
225,
374,
225,
300,
3847,
203,
3639,
501,
4766,
282,
1731,
4202,
1731,
225,
5178,
300,
727... |
./partial_match/1/0x9939eF794a51E16EC04d1e80e901C0583904Fa4b/sources/JOHNNYS.sol | * @dev Wrappers over Solidity's arithmetic operations. NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler now has built in overflow checking./ | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b... | 9,185,744 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4266,
10422,
1879,
348,
7953,
560,
1807,
30828,
5295,
18,
5219,
30,
1375,
9890,
10477,
68,
353,
19190,
486,
3577,
5023,
598,
348,
7953,
560,
374,
18,
28,
16,
3241,
326,
5274,
2037,
711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12083,
14060,
10477,
288,
203,
203,
203,
203,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
279,
397,
324,
31,
203,
565,
289,
203,
203,
565,
445... |
pragma solidity ^0.4.18;
contract SCTFBank{
event LogBalance(address addr, uint256 value);
mapping (address => uint256) private balance;
uint256 private donation_deposit;
address private owner;
//constructor
constructor() public{
owner = msg.sender;
}
//logging balance of ... | balance deposit, simple fallback function | function () payable public {
balance[msg.sender]+=msg.value;
}
| 891,307 | [
1,
4625,
348,
7953,
560,
30,
11013,
443,
1724,
16,
4143,
5922,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
8843,
429,
1071,
288,
203,
3639,
11013,
63,
3576,
18,
15330,
3737,
33,
3576,
18,
1132,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//Address: 0xe3d1690ced0245997c13318bc8c131393316eb7e
//Contract name: ENOCrowdsale
//Balance: 0 Ether
//Verification Date: 9/23/2017
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.15;
/**
* Ethino Crowdsale Contract
*
* This is the crowdsale contract for the Ethino token. It utilizes Majoolr's
... | @dev send ether from the completed crowdsale to the owners wallet address @param self Stored crowdsale from crowdsale contract @return true if owner withdrew eth | function withdrawOwnerEth(CrowdsaleStorage storage self) returns (bool) {
if (!crowdsaleEnded(self)) {
LogErrorMsg("Cannot withdraw owner ether until after the sale!");
return false;
}
require(msg.sender == self.owner);
require(self.ownerBalance > 0);
uint256 amount = self.ownerBalan... | 14,100,357 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1366,
225,
2437,
628,
326,
5951,
276,
492,
2377,
5349,
358,
326,
25937,
9230,
1758,
632,
891,
365,
26548,
276,
492,
2377,
5349,
628,
276,
492,
2377,
5349,
6835,
632,
2463,
638,
309,
3410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
5541,
41,
451,
12,
39,
492,
2377,
5349,
3245,
2502,
365,
13,
1135,
261,
6430,
13,
288,
203,
565,
309,
16051,
71,
492,
2377,
5349,
28362,
12,
2890,
3719,
288,
203,
1377,
1827,
668,
3332,
2932,
4515,
598,
944... |
./partial_match/4/0x3b91c5A82850734AfCa4417Ee7e8114b6fBeB680/sources/IlikeTests.sol | User needs to call approval function on ROT Contract with HFLY contract address as spenderrequire(RotStorageAddress!=address(0), "Liq lock storage contract should not be 0");New trading path of 2 addressesFirst Path is HFLY addressSecond Path is ROT addressApprove UNIV2Router to spend ROT on this contract behalfApprove... | function swapROTforMAGGOTwithROTAmount(uint256 amountROT) public {
require(amountROT!=0, "Can't swap with 0 ROT");
uint256 rotBefore = ERC20(ROTAddress).balanceOf(address(this));
ERC20(ROTAddress).transferFrom(tx.origin, address(this), amountROT);
uint256 rotAfter = ERC20(ROTAddress)... | 8,673,151 | [
1,
4625,
348,
7953,
560,
30,
2177,
4260,
358,
745,
23556,
445,
603,
534,
1974,
13456,
598,
670,
42,
7076,
6835,
1758,
487,
17571,
264,
6528,
12,
8570,
3245,
1887,
5,
33,
2867,
12,
20,
3631,
315,
48,
18638,
2176,
2502,
6835,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7720,
1457,
56,
1884,
49,
1781,
43,
1974,
1918,
1457,
56,
6275,
12,
11890,
5034,
3844,
1457,
56,
13,
1071,
288,
203,
3639,
2583,
12,
8949,
1457,
56,
5,
33,
20,
16,
315,
2568,
1404,
7720,
598,
374,
534,
1974,
8863,
2... |
./partial_match/1/0x909e2dc5e3E4E562E25B73589E9b31F49Abfc2aD/sources/src/BaseRewardPool.sol | * @dev Generic internal staking function that basically does 3 things: update rewards based on previous balance, trigger also on any child contracts, then update balances. @param _amount Units to add to the users balance @param _receiver Address of user who will receive the stake/also stake to linked rewards | function _processStake(uint256 _amount, address _receiver) internal updateReward(_receiver) {
require(_amount > 0, 'RewardPool : Cannot stake 0');
for(uint i=0; i < extraRewards.length; i++){
IRewards(extraRewards[i]).stake(_receiver, _amount);
}
_totalSupply = ... | 4,160,731 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7928,
2713,
384,
6159,
445,
716,
23772,
1552,
890,
9198,
30,
1089,
283,
6397,
2511,
1377,
603,
2416,
11013,
16,
3080,
2546,
603,
1281,
1151,
20092,
16,
1508,
1089,
324,
26488,
18,
632,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
2567,
510,
911,
12,
11890,
5034,
389,
8949,
16,
1758,
389,
24454,
13,
2713,
1089,
17631,
1060,
24899,
24454,
13,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
296,
17631,
1060,
2864,
294,
14143,
384,
911,
374,
8... |
pragma solidity ^0.8.0;
import "../call/DelegateCallView.sol";
/**
* @title DelegateCallViewMock
*
* @author Cyril Lapinte - <cyril.lapinte@openfiz.com>
* SPDX-License-Identifier: MIT
*
* Error messages
*/
contract DelegateCallViewMock is DelegateCallView {
address public delegate;
constructor(address _... | * @title DelegateCallViewMock @author Cyril Lapinte - <cyril.lapinte@openfiz.com> SPDX-License-Identifier: MIT Error messages/ | contract DelegateCallViewMock is DelegateCallView {
address public delegate;
constructor(address _delegate) {
delegate = _delegate;
}
function delegateCallBoolMock(bool) public view returns (bool) {
return _delegateCallBool(delegate);
}
function delegateCallUint256Mock(uint256) public view retur... | 14,018,960 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
27687,
1477,
1767,
9865,
632,
4161,
22337,
86,
330,
511,
438,
474,
73,
300,
411,
2431,
86,
330,
18,
3762,
474,
73,
36,
3190,
74,
452,
18,
832,
34,
11405,
28826,
17,
13211,
17,
3004,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
27687,
1477,
1767,
9865,
353,
27687,
1477,
1767,
288,
203,
203,
225,
1758,
1071,
7152,
31,
203,
203,
225,
3885,
12,
2867,
389,
22216,
13,
288,
203,
565,
7152,
273,
389,
22216,
31,
203,
225,
289,
203,
203,
225,
445,
7152,
... |
./full_match/43114/0x88619079e3B475bb9309E09C9C80CA342DfC0559/sources/github/DreesusChrist/olympus-contracts/contracts/BondDepository.sol | * @notice determine maximum bond size @return uint/ | function maxPayout() public view returns ( uint ) {
return IERC20( RUG ).totalSupply().mul( terms.maxPayout ).div( 100000 );
}
| 4,522,384 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
4199,
4207,
8427,
963,
225,
632,
2463,
2254,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
943,
52,
2012,
1435,
1071,
1476,
1135,
261,
2254,
262,
288,
203,
3639,
327,
467,
654,
39,
3462,
12,
534,
57,
43,
262,
18,
4963,
3088,
1283,
7675,
16411,
12,
6548,
18,
1896,
52,
2012,
262,
18,
2892,
12,
25259,
11272,
... |
./partial_match/1/0xa0A907b90FFeda1326234D612D0CC2e63402d22B/sources/ReceiptToken.sol | * @notice Revokes the right to issue new tokens from the address specified. @dev This function can be called by the owner only. @param addr The destination address/ | function revokeMinter (address addr) public onlyOwner {
require(_authorizedMinters[addr], "Address was never authorized");
_authorizedMinters[addr] = false;
emit OnMinterRevoked(addr);
}
| 3,716,032 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14477,
601,
281,
326,
2145,
358,
5672,
394,
2430,
628,
326,
1758,
1269,
18,
632,
5206,
1220,
445,
848,
506,
2566,
635,
326,
3410,
1338,
18,
632,
891,
3091,
1021,
2929,
1758,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18007,
49,
2761,
261,
2867,
3091,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
8434,
49,
2761,
87,
63,
4793,
6487,
315,
1887,
1703,
5903,
10799,
8863,
203,
3639,
389,
8434,
49,
2761,
87,
63,
4793,
65,
273,
629,
... |
./full_match/1/0x00337a31aEE3Ed37f5D5FBF892031d0090Da2EeF/sources/contracts/relayer/wormholeRelayer/WormholeRelayerDelivery.sol | Determine price of an 'empty' delivery (Note: assumes refund chain is an EVM chain) | LocalNative baseDeliveryPrice;
| 17,096,544 | [
1,
4625,
348,
7953,
560,
30,
225,
10229,
6205,
434,
392,
296,
5531,
11,
7912,
261,
8067,
30,
13041,
16255,
2687,
353,
392,
512,
7397,
2687,
13,
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,
3639,
3566,
9220,
1026,
8909,
5147,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "... | * @dev Returns the total quantity for a token ID @param _id uint256 ID of the token to query @return amount of token in existence/ | function totalSupply(uint256 _id) public view returns (uint256) {
console.log("tokenSupply : ", tokenSupply[_id]);
return tokenSupply[_id];
}
| 5,896,710 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
2078,
10457,
364,
279,
1147,
1599,
632,
891,
389,
350,
2254,
5034,
1599,
434,
326,
1147,
358,
843,
632,
2463,
3844,
434,
1147,
316,
15782,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
2078,
3088,
1283,
12,
11890,
5034,
389,
350,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
8698,
18,
1330,
2932,
2316,
3088,
1283,
294,
3104,
1147,
3088,
1283,
63,
67,
350,
19226,
203,
202,
202,
2463,
... |
pragma solidity >=0.5.0 <0.6.0;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../../libs/NoteUtils.sol";
import "../../interfaces/IACE.sol";
import "../../interfaces/IAZTEC.sol";
import "../../interfaces/IZkAsset.sol";
import "../../interfaces/IERC20Mintable.sol";
import "../../libs/LibEIP712.so... | * @dev Executes a basic unilateral, confidential transfer of AZTEC notes Will submit _proofData to the validateProof() function of the Cryptography Engine. Upon successfull verification, it will update note registry state - creating output notes and destroying input notes. @param _proofData - bytes variable outputted f... | function confidentialTransfer(bytes memory _proofData, bytes memory _signatures) public {
confidentialTransfer(JOIN_SPLIT_PROOF, _proofData, _signatures);
}
| 6,466,251 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3889,
993,
279,
5337,
640,
330,
2045,
287,
16,
2195,
350,
2001,
7412,
434,
432,
62,
1448,
39,
10913,
9980,
4879,
389,
24207,
751,
358,
326,
1954,
20439,
1435,
445,
434,
326,
22752,
15669,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2195,
350,
2001,
5912,
12,
3890,
3778,
389,
24207,
751,
16,
1731,
3778,
389,
30730,
13,
1071,
288,
203,
3639,
2195,
350,
2001,
5912,
12,
18800,
67,
17482,
67,
3373,
3932,
16,
389,
24207,
751,
16,
389,
30730,
1769,
203,
... |
pragma solidity 0.4.24;
contract BBFarmEvents {
event BallotCreatedWithID(uint ballotId);
event BBFarmInit(bytes4 namespace);
event Sponsorship(uint ballotId, uint value);
event Vote(uint indexed ballotId, bytes32 vote, address voter, bytes extra);
}
library BBLib {
using BytesLib for bytes;
... | * Sets the SECP256k1 public key associated with an ENS node. @param node The ENS node to query @param x the X coordinate of the curve point for the public key. @param y the Y coordinate of the curve point for the public key./ | function setPubkey(bytes32 node, bytes32 x, bytes32 y) public only_owner(node) {
records[node].pubkey = PublicKey(x, y);
emit PubkeyChanged(node, x, y);
}
| 296,469 | [
1,
4625,
348,
7953,
560,
30,
380,
11511,
326,
3174,
4258,
5034,
79,
21,
1071,
498,
3627,
598,
392,
512,
3156,
756,
18,
632,
891,
756,
1021,
512,
3156,
756,
358,
843,
632,
891,
619,
326,
1139,
7799,
434,
326,
8882,
1634,
364,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
9581,
856,
12,
3890,
1578,
756,
16,
1731,
1578,
619,
16,
1731,
1578,
677,
13,
1071,
1338,
67,
8443,
12,
2159,
13,
288,
203,
3639,
3853,
63,
2159,
8009,
23428,
273,
11951,
12,
92,
16,
677,
1769,
203,
3639,
3626,
... |
./full_match/40/0x4b493b450a87fCaace6a543B4543DB2Fd4E4C7D7/sources/contracts/OTLOS.sol | @dev Interface contracts should use to report its type and version. | interface ITypeAndVersion {
function typeAndVersion()
external
pure
returns (string memory);
}
| 9,553,909 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6682,
20092,
1410,
999,
358,
2605,
2097,
618,
471,
1177,
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,
... | [
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,
5831,
467,
559,
1876,
1444,
288,
203,
203,
225,
445,
618,
1876,
1444,
1435,
203,
565,
3903,
203,
565,
16618,
203,
565,
1135,
261,
1080,
3778,
1769,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.18;
// File: contracts/ERC721Draft.sol
/// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author Dieter Shirley <dete@axiomzen.co> (https://github.com/dete)
contract ERC721 {
function implementsERC721() public pure returns (bool);
function totalSupply() pub... | @notice Creates the main CryptoKitties smart contract instance. Starts paused. the creator of the contract is the initial CEO the creator of the contract is also the initial COO start with the mythical kitten 0 - so we don't have generation-0 parent issues | function KittyCore() public {
paused = true;
ceoAddress = msg.sender;
cooAddress = msg.sender;
_createKitty(0, 0, 0, uint256(-1), address(0));
}
| 6,444,623 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10210,
326,
2774,
15629,
14102,
88,
606,
13706,
6835,
791,
18,
30620,
17781,
18,
326,
11784,
434,
326,
6835,
353,
326,
2172,
29538,
51,
326,
11784,
434,
326,
6835,
353,
2546,
326,
2172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1475,
305,
4098,
4670,
1435,
1071,
288,
203,
3639,
17781,
273,
638,
31,
203,
203,
3639,
276,
4361,
1887,
273,
1234,
18,
15330,
31,
203,
203,
3639,
1825,
83,
1887,
273,
1234,
18,
15330,
31,
203,
203,
3639,
389,
2640,
1... |
./full_match/10/0x7cc13c5c3A38718aF2A7c36d8311F80AD47ef0Ab/sources/contracts/financial-templates/common/financial-product-libraries/long-short-pair-libraries/CoveredCallLongShortPairFinancialProductLibrary.sol | * @notice Returns a number between 0 and 1e18 to indicate how much collateral each long and short token are entitled to per collateralPerPair. @param expiryPrice price from the optimistic oracle for the LSP price identifier. @return expiryPercentLong to indicate how much collateral should be sent between long and short... | function percentageLongCollateralAtExpiry(int256 expiryPrice)
public
view
override
nonReentrantView()
returns (uint256)
{
uint256 contractStrikePrice = longShortPairStrikePrices[msg.sender];
require(contractStrikePrice != 0, "Params not set for calling LSP... | 3,784,381 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
279,
1300,
3086,
374,
471,
404,
73,
2643,
358,
10768,
3661,
9816,
4508,
2045,
287,
1517,
1525,
471,
3025,
1147,
854,
3281,
305,
1259,
358,
1534,
4508,
2045,
287,
2173,
4154,
18,
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,
565,
445,
11622,
3708,
13535,
2045,
287,
861,
14633,
12,
474,
5034,
10839,
5147,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1661,
426,
8230,
970,
1767,
1435,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./interfaces/IStackOsNFT.sol... | @title Must be deployed only by GenerationManager/ | constructor() ERC721("", "") {
require(Address.isContract(msg.sender));
generations = GenerationManager(msg.sender);
}
| 5,460,370 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
6753,
506,
19357,
1338,
635,
23234,
1318,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
27,
5340,
2932,
3113,
1408,
13,
288,
203,
540,
203,
3639,
2583,
12,
1887,
18,
291,
8924,
12,
3576,
18,
15330,
10019,
203,
3639,
1215,
1012,
273,
23234,
1318,
12,
3576,
18,
15330,
1769,
203,
565,
289,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-02
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implemente... | September 30, 2021 20:00 EST
| uint private saleTime = 1633046400; | 7,730,290 | [
1,
4625,
348,
7953,
560,
30,
225,
3265,
337,
2558,
5196,
16,
26599,
21,
4200,
30,
713,
512,
882,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
3238,
272,
5349,
950,
273,
2872,
3707,
3028,
1105,
713,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x1d1FF45dcf564E6A46F304a89882c5F2247A3EfB/sources/FFT.sol | 25% tax for the first 10 mins of launch
| totalFee = 250; | 9,330,484 | [
1,
4625,
348,
7953,
560,
30,
6969,
9,
5320,
364,
326,
1122,
1728,
26381,
434,
8037,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2078,
14667,
273,
16927,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/4/0x72045d1c828763431d0a793B6d810f1e74881e25/sources/LegacyDBKCSMAP.sol | TEAM wallter address
| walletAddress = 0x138d249b4C1A0F12FBE4BF1F6214BE9dDfCd1fD4; | 8,567,708 | [
1,
4625,
348,
7953,
560,
30,
25156,
2192,
17662,
387,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
9230,
1887,
273,
374,
92,
26645,
72,
3247,
29,
70,
24,
39,
21,
37,
20,
42,
2138,
42,
5948,
24,
15259,
21,
42,
8898,
3461,
5948,
29,
72,
40,
74,
19728,
21,
74,
40,
24,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma ton-solidity >=0.52.0;
pragma AbiHeader time;
pragma AbiHeader pubkey;
pragma AbiHeader expire;
//================================================================================
//
import "../interfaces/IBase.sol";
import "../interfaces/ILiquidToken.sol";
//====================================================... | ======================================== | function getInfo(bool includeMetadata) external responsible view override reserve returns (
address collectionAddress,
uint256 tokenID,
address ownerAddress,
address authorityAddress,
string metadata,
bool metadataLocked,
... | 7,282,004 | [
1,
4625,
348,
7953,
560,
30,
422,
4428,
894,
631,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17142,
12,
6430,
2341,
2277,
13,
3903,
14549,
1476,
3849,
20501,
1135,
261,
203,
3639,
1758,
3639,
1849,
1887,
16,
203,
3639,
2254,
5034,
3639,
1147,
734,
16,
203,
3639,
1758,
3639,
3410,
1887,
16,
203,
3639,
1758,
3639,
... |
./full_match/1/0x1f64eA8745E316CfDE4B92353a1bB9654198A793/sources/src/x-pods/XPodAuctions.sol | burning the pod for the minted droid | _burn(tokenId, false);
| 17,076,714 | [
1,
4625,
348,
7953,
560,
30,
225,
18305,
310,
326,
3713,
364,
326,
312,
474,
329,
302,
5560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
70,
321,
12,
2316,
548,
16,
629,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.4.24;
import "./SafeMath.sol";
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
* @dev more info: https://github.com/OpenZeppelin/openzeppelin-contracts/tree/release-v2.3.0/contracts/access
*/
library Roles {
struct Role {
mapping (address => bool) bearer;... | * @dev isSuperAdmin check if the account is super admin @param account the address that will be checked @return bool, true if account is super admin./ | function isSuperAdmin(address account) public view returns (bool) {
return _SuperAdmins.has(account);
}
| 1,787,087 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
353,
8051,
4446,
866,
309,
326,
2236,
353,
2240,
3981,
632,
891,
2236,
326,
1758,
716,
903,
506,
5950,
632,
2463,
1426,
16,
638,
309,
2236,
353,
2240,
3981,
18,
19,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
8051,
4446,
12,
2867,
2236,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
8051,
4446,
87,
18,
5332,
12,
4631,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.8.0;
// Copyright 2020 Keyko GmbH.
// This product includes software developed at BigchainDB GmbH and Ocean Protocol
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0
import '../Common.sol';
import '../libraries/EpochLibrary.sol';
import './Conditio... | * @dev getCondition @return typeRef the type reference @return state condition state @return timeLock the time lock @return timeOut time out @return blockNumber block number @return createdBy address @return lastUpdatedBy address @return blockNumberUpdated block number updated/ | function getCondition(bytes32 _id)
external
view
returns (
address typeRef,
ConditionStoreLibrary.ConditionState state,
uint timeLock,
uint timeOut,
uint blockNumber,
address createdBy,
address lastUpdatedBy,... | 12,853,052 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26659,
632,
2463,
618,
1957,
326,
618,
2114,
632,
2463,
919,
2269,
919,
632,
2463,
813,
2531,
326,
813,
2176,
632,
2463,
813,
1182,
813,
596,
632,
2463,
1203,
1854,
1203,
1300,
632,
2463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
26659,
12,
3890,
1578,
389,
350,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
1758,
618,
1957,
16,
203,
5411,
7949,
2257,
9313,
18,
3418,
1119,
919,
16,
203,
5411,
2254,
813,
2531,
16,
203,
5... |
pragma solidity ^0.4.21;
import './TokenIterableMapping.sol';
import './BurnableUpgradeableMintableToken.sol';
contract PIERToken is BurnableUpgradeableMintableToken {
string public constant name = "PIER Stable Token";
string public constant symbol = "PIER";
uint public constant decimals = 18;
uint... | Expected PIERToken price (target - 0.4 USD) Struct holding mapping with the list of involved ERC20 Tokens. | contract PIERToken is BurnableUpgradeableMintableToken {
string public constant name = "PIER Stable Token";
string public constant symbol = "PIER";
uint public constant decimals = 18;
uint public constant initialSupply = 1000000000 * 10 ** 18;
uint256 targetPrice;
TokenIterableMapping.itm... | 12,595,610 | [
1,
4625,
348,
7953,
560,
30,
225,
13219,
7024,
654,
1345,
6205,
261,
3299,
300,
374,
18,
24,
587,
9903,
13,
7362,
19918,
2874,
598,
326,
666,
434,
24589,
4232,
39,
3462,
13899,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7024,
654,
1345,
353,
605,
321,
429,
10784,
429,
49,
474,
429,
1345,
288,
203,
203,
565,
533,
1071,
5381,
508,
273,
315,
1102,
654,
934,
429,
3155,
14432,
203,
565,
533,
1071,
5381,
3273,
273,
315,
1102,
654,
14432,
203,
... |
pragma solidity ^0.5.0;
import '../client/node_modules/@openzeppelin/contracts/math/SafeMath.sol';
import '../client/node_modules/@openzeppelin/contracts/drafts/SignedSafeMath.sol';
import './provableAPI.sol';
// Import SafeMath library from github (this import only works on Remix).
// import "https://github.com/Op... | add name to the bank Struct | function createBank(string memory _name, bool _isUsingOracle) public payable{
require(Banks[msg.sender].isCreated == false, "You can only own one bank");
require(bytes(_name).length < 21);
require(bytes(_name).length > 0);
require(msg.value >= 0.1 ether);
setBanks(msg.value, _name, true, _isUsingOracle... | 13,095,139 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
508,
358,
326,
11218,
7362,
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,
202,
915,
752,
16040,
12,
1080,
3778,
389,
529,
16,
1426,
389,
291,
7736,
23601,
13,
1071,
8843,
429,
95,
203,
202,
202,
6528,
12,
16040,
87,
63,
3576,
18,
15330,
8009,
291,
6119,
422,
629,
16,
315,
6225,
848,
1338,
4953,
1245,... |
./full_match/80001/0x1098B35828bf70A2209FC6fEA916f378841d7fdD/sources/contracts/TicTacToe/TicTacToe.sol | getCurrentPlayer returns the address of the player that should make the next move. Returns the `0x0` address if it is no player's turn. | function getCurrentPlayer(Game storage _game) private view returns (Player memory player) {
if (_game.playerTurn == Players.PlayerOne) {
return _game.playerOne;
}
if (_game.playerTurn == Players.PlayerTwo) {
return _game.playerTwo;
}
}
| 9,526,718 | [
1,
4625,
348,
7953,
560,
30,
225,
5175,
12148,
1135,
326,
1758,
434,
326,
7291,
716,
1410,
1221,
326,
1024,
3635,
18,
2860,
326,
1375,
20,
92,
20,
68,
1758,
309,
518,
353,
1158,
7291,
1807,
7005,
18,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5175,
12148,
12,
12496,
2502,
389,
13957,
13,
3238,
1476,
1135,
261,
12148,
3778,
7291,
13,
288,
203,
3639,
309,
261,
67,
13957,
18,
14872,
15858,
422,
3008,
3907,
18,
12148,
3335,
13,
288,
203,
5411,
327,
389,
13957,
1... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/utils/Address.sol";
import {LibMathSigned, LibMathUnsigned} from "../lib/LibMath.sol";
import "../lib/LibTypes.sol";
import "../interface/IGlobalConfig.sol";
import "../interface/IPriceFeeder.sol";
import "... | get governance data structure. | function getGovernance() public view returns (LibTypes.FundingGovernanceConfig memory) {
return governance;
}
| 12,709,018 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
314,
1643,
82,
1359,
501,
3695,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7162,
1643,
82,
1359,
1435,
1071,
1476,
1135,
261,
5664,
2016,
18,
42,
14351,
43,
1643,
82,
1359,
809,
3778,
13,
288,
203,
3639,
327,
314,
1643,
82,
1359,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
// Tokens
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
... | @dev Checks whether the protocol is paused. | modifier onlyProtocolAdmin() {
require(
controlCenter.hasRole(controlCenter.DEFAULT_ADMIN_ROLE(), _msgSender()),
"Market: only a protocol admin can call this function."
);
_;
}
| 12,741,404 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
13074,
2856,
326,
1771,
353,
17781,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5752,
4446,
1435,
288,
203,
3639,
2583,
12,
203,
5411,
3325,
8449,
18,
5332,
2996,
12,
7098,
8449,
18,
5280,
67,
15468,
67,
16256,
9334,
389,
3576,
12021,
1435,
3631,
203,
5411,
315,
3882,
278,
30,
1338,
279,
177... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2021, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | * @notice Verify that the given address is staked and not actively in a challenge @param stakerAddress Address to check/ | function requireUnchallengedStaker(address stakerAddress) private view {
require(isStaked(stakerAddress), "NOT_STAKED");
require(currentChallenge(stakerAddress) == address(0), "IN_CHAL");
}
| 1,811,985 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
8553,
716,
326,
864,
1758,
353,
384,
9477,
471,
486,
1328,
4492,
316,
279,
12948,
632,
891,
384,
6388,
1887,
5267,
358,
866,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2583,
984,
343,
7862,
2423,
510,
6388,
12,
2867,
384,
6388,
1887,
13,
3238,
1476,
288,
203,
3639,
2583,
12,
291,
510,
9477,
12,
334,
6388,
1887,
3631,
315,
4400,
67,
882,
14607,
2056,
8863,
203,
3639,
2583,
12,
2972,
... |
./full_match/11155111/0xa98e420e5417170e55EA073FbD19Cab5aF89EfCc/sources/project_/contracts/Bounty.sol | variables set by bounty provider at Tx 1 (constructor) reward amount is not stored, use contract balance instead variables set by bounty hunter at Tx 2 variables set by bounty provider at Tx 3 variables set by bounty hunter at Tx 4 ! current design only allows one bounty hunter to submit proof TODO: allow multiple bou... | contract Bounty is Initializable {
uint public completedStep;
IEncryptionVerifier public encryptionVerifier;
address public vscAddress;
string public name;
string public description;
bytes[] public dataCIDs;
uint[] public labels;
address public bountyHunter;
bytes public zkeyCID;
... | 3,807,601 | [
1,
4625,
348,
7953,
560,
30,
225,
3152,
444,
635,
324,
592,
93,
2893,
622,
6424,
404,
261,
12316,
13,
19890,
3844,
353,
486,
4041,
16,
999,
6835,
11013,
3560,
3152,
444,
635,
324,
592,
93,
366,
318,
387,
622,
6424,
576,
3152,
444,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
592,
93,
353,
10188,
6934,
288,
203,
565,
2254,
1071,
5951,
4160,
31,
203,
565,
467,
7894,
17758,
1071,
8731,
17758,
31,
203,
565,
1758,
1071,
331,
1017,
1887,
31,
203,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1... |
pragma solidity 0.5.13;
import "./interfaces/IERC721Full.sol";
import "./utils/SafeMath.sol";
/// @title Augur Markets interface
/// @notice Gets the winner of each market from Augur
interface IMarket
{
function getWinningPayoutNumerator(uint256 _outcome) external view returns (uint256);
}
/// @title Dai contrac... | returns true if all resolved, false otherwise | return (_resolvedOutcomesCount == numberOfTokens);
| 15,828,446 | [
1,
4625,
348,
7953,
560,
30,
225,
1135,
638,
309,
777,
4640,
16,
629,
3541,
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,
327,
261,
67,
11792,
1182,
10127,
1380,
422,
7922,
5157,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x85B74bD4281E468eA751bD32393a9730491bAdBb/sources/Sunder.sol | Sunder erc20 Token Contract. for minters | contract Sunder is DeligateERC20, Ownable {
address private idoAdmin = msg.sender;
address private preMineAdmin = 0xf8e835232daE0295Ac12FD326EA75b22a6F732E7;
using EnumerableSet for EnumerableSet.AddressSet;
EnumerableSet.AddressSet private _minters;
constructor() public ERC20("S... | 3,589,058 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
9341,
6445,
71,
3462,
3155,
13456,
18,
364,
1131,
5432,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
348,
9341,
353,
6603,
360,
340,
654,
39,
3462,
16,
14223,
6914,
288,
203,
203,
565,
1758,
3238,
612,
83,
4446,
3639,
273,
1234,
18,
15330,
31,
203,
377,
203,
565,
1758,
3238,
675,
49,
558,
4446,
565,
273,
374,
5841,
28,
... |
pragma solidity >=0.4.24;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/
imp... | Returns array of three non-duplicating integers from 0-9 | function generateIndexes(address account) internal returns(uint8[3] memory)
{
uint8[3] memory indexes;
indexes[0] = getRandomIndex(account);
indexes[1] = indexes[0];
while(indexes[1] == indexes[0]) {
indexes[1] = getRandomIndex(account);
}
in... | 1,823,527 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
526,
434,
8925,
1661,
17,
12262,
1776,
12321,
628,
374,
17,
29,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2103,
8639,
12,
2867,
2236,
13,
2713,
1135,
12,
11890,
28,
63,
23,
65,
3778,
13,
203,
565,
288,
203,
3639,
2254,
28,
63,
23,
65,
3778,
5596,
31,
203,
3639,
5596,
63,
20,
65,
273,
20581,
1016,
12,
4631,
1769,
203,
... |
./full_match/5/0x52579b440A951F0e4F032c164C9EFA7F3EC3a981/sources/project_/contracts/ShellzOrbV2.sol | within a single storage slot */ | modifier onlyLaunchpad() {
require(launchpad != address(0), "launchpad address must set");
require(msg.sender == launchpad, "must call by launchpad");
_;
}
| 1,863,178 | [
1,
4625,
348,
7953,
560,
30,
225,
3470,
279,
2202,
2502,
4694,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
1338,
9569,
6982,
1435,
288,
203,
3639,
2583,
12,
20738,
6982,
480,
1758,
12,
20,
3631,
315,
20738,
6982,
1758,
1297,
444,
8863,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
8037,
6982,
16,
315,
11926,
745,
635,
8037,
69... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.11;
import "./external/@openzeppelin/token/ERC20/utils/SafeERC20.sol";
import "./external/@openzeppelin/security/ReentrancyGuard.sol";
import "./interfaces/IFastWithdraw.sol";
import "./interfaces/IController.sol";
import "./interfaces/ISpool.sol";
import "./i... | used for calculating rewards
| uint128 instantDeposit; | 6,889,063 | [
1,
4625,
348,
7953,
560,
30,
225,
1399,
364,
21046,
283,
6397,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
10392,
5934,
758,
1724,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x19A1b89A83B2729C5C3920e5719b01F80AF49621/sources/contracts/common/SignatureVerification.sol | Skip signature verification if the signer is the caller | ) internal view {
if (signer == msg.sender) {
return;
}
bytes32 originalDigest = _getEIP712Hash(intentHash);
uint256 originalSignatureLength = signature.length;
bytes32 digest;
if (_isValidBulkOrderSize(originalSignatureLength)) {
(intentHash... | 4,992,177 | [
1,
4625,
348,
7953,
560,
30,
225,
6611,
3372,
11805,
309,
326,
10363,
353,
326,
4894,
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,
262,
2713,
1476,
288,
203,
3639,
309,
261,
2977,
264,
422,
1234,
18,
15330,
13,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
203,
3639,
1731,
1578,
2282,
9568,
273,
389,
588,
41,
2579,
27,
2138,
2310,
12,
474,
319,
2310,
... |
./full_match/43114/0x5EE8198876839441082289A1853Bd7644A3CD94B/sources/MutantAxApes.sol | See how long nft has been held to calculate voting power | mapping(uint => uint) private timeSinceTrade;
| 4,540,975 | [
1,
4625,
348,
7953,
560,
30,
225,
2164,
3661,
1525,
290,
1222,
711,
2118,
15770,
358,
4604,
331,
17128,
7212,
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,
2874,
12,
11890,
516,
2254,
13,
3238,
813,
9673,
22583,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warni... | exclude from paying fees or having max transaction amount | constructor() ERC20("Spirit", "Spirit") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uni... | 10,132,695 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
3389,
29901,
3113,
315,
3389,
29901,
7923,
288,
203,
7010,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
82... |
/**
*Submitted for verification at Etherscan.io on 2019-12-19
*/
// hevm: flattened sources of src/Redeemer.sol
pragma solidity =0.5.11 >0.4.13 >0.4.20 >=0.4.23 >=0.5.0 <0.6.0 >=0.5.5 <0.6.0 >=0.5.11 <0.6.0;
////// lib/dpass/lib/openzeppelin-contracts/src/GSN/Context.sol
/* pragma solidity ^0.5.0; */
/*
* @dev Pro... | if feed invalid revert if manualEthRate is NOT allowed
| require(manualRate[token_], "dex-feed-provides-invalid-data"); | 13,091,170 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
4746,
2057,
15226,
309,
11297,
41,
451,
4727,
353,
4269,
2935,
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,
5411,
2583,
12,
19840,
4727,
63,
2316,
67,
6487,
315,
561,
17,
7848,
17,
685,
13427,
17,
5387,
17,
892,
8863,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
* Copyright 2017-2020, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
import "../../../core/State.sol";
import "../../../openzeppelin/SafeERC20.sol";
import "../../ISwapsImpl.sol";
import "../../../feeds/IPriceFeeds.sol";
import "../../../testhelp... | * @notice Calculate the expected price rate of swapping a given amount of tokens. @param sourceTokenAddress The address of the source tokens. @param destTokenAddress The address of the destiny tokens. @param sourceTokenAmount The amount of source tokens. @param unused Fourth parameter ignored. @return precision The e... | function internalExpectedRate(
address sourceTokenAddress,
address destTokenAddress,
uint256 sourceTokenAmount,
address unused
) public view returns (uint256) {
(uint256 sourceToDestRate, uint256 sourceToDestPrecision) = IPriceFeeds(priceFeeds).queryRate(sourceTokenAddress, destTokenAddress);
return sour... | 5,451,026 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9029,
326,
2665,
6205,
4993,
434,
7720,
1382,
279,
864,
3844,
282,
434,
2430,
18,
632,
891,
1084,
1345,
1887,
1021,
1758,
434,
326,
1084,
2430,
18,
632,
891,
1570,
1345,
1887,
1021,
1758... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
2713,
6861,
4727,
12,
203,
202,
202,
2867,
1084,
1345,
1887,
16,
203,
202,
202,
2867,
1570,
1345,
1887,
16,
203,
202,
202,
11890,
5034,
1084,
1345,
6275,
16,
203,
202,
202,
2867,
10197,
203,
202,
13,
1071,
1476,
1135,
... |
./full_match/11155111/0x6735d02CcCAE04004D87D06211f8A65eb6eb5d00/sources/project:/contracts/YieldFarming.sol | Kullanıcının staking yapmış olduğundan emin olun
| require(isStaking[_address], "User is not staking"); | 3,788,162 | [
1,
4625,
348,
7953,
560,
30,
225,
1475,
29336,
133,
114,
71,
133,
114,
82,
133,
114,
82,
384,
6159,
677,
438,
81,
133,
114,
134,
258,
1592,
89,
133,
258,
1074,
304,
801,
267,
8793,
318,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2583,
12,
291,
510,
6159,
63,
67,
2867,
6487,
315,
1299,
353,
486,
384,
6159,
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,
... |
//Address: 0x5e26d1d62b77d59ee54d97eb5b4bf7aef679067b
//Contract name: IdentityManager
//Balance: 0 Ether
//Verification Date: 3/6/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity 0.4.15;
contract Owned {
address public owner;
modifier onlyOwner() {
require(isOwner(msg.sender));
... | @dev Allows an owner to change the recoveryKey instantly | {
recoveryKeys[identity] = recoveryKey;
LogRecoveryChanged(identity, recoveryKey, msg.sender);
}
| 1,088,778 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
25619,
392,
3410,
358,
2549,
326,
11044,
653,
5934,
715,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
11044,
2396,
63,
10781,
65,
273,
11044,
653,
31,
203,
3639,
1827,
11548,
5033,
12,
10781,
16,
11044,
653,
16,
1234,
18,
15330,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/44787/0xFd5487808Ee8782831a7f71FF2497068C0b8BB9e/sources/contracts/StarFarm.sol | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this)).add(pool.extraAmount);
if (lpSupply == 0) {
pool.lastRewar... | 13,243,458 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
2845,
18,
2722,
17631,
1060,
1768,
13,
288,
203,
... |
pragma solidity ^0.4.18;
contract Hurify {
/* Public variables of the token */
string public name = "Hurify Token"; // Token Name
string public symbol = "HUR"; // Token symbol
uint public decimals = 18; // Token Decimal Point
address public owner... | Total Token for the Crowdsale
| uint256 totalHurify; | 906,292 | [
1,
4625,
348,
7953,
560,
30,
225,
10710,
3155,
364,
326,
385,
492,
2377,
5349,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
11890,
5034,
2078,
44,
295,
1164,
31,
4766,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma experimental ABIEncoderV2;
pragma solidity 0.6.4;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot ... | 入金token in, 为还款和存款的组合没有借款时,无需还款,有借款时,先还款,单独写一个进行入金,而不是直接调用mint和repay,原因在于在ETH存款时会有bug,msg.value会复用。先进行冲账操作还清欠款 还款数量有剩余,转为存款 | function tokenIn(address token, uint256 amountIn)
public
payable
whenUnpaused
rewardFor(msg.sender, RewardType.TokenIn)
{
IFToken fToken = IFToken(controller.getFTokeAddress(token));
require(
controller.marketsContains(address(fToken)),
"un... | 516,778 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
166,
232,
103,
170,
234,
244,
2316,
316,
16,
225,
165,
121,
123,
169,
128,
251,
167,
110,
127,
166,
245,
239,
166,
260,
251,
167,
110,
127,
168,
253,
231,
168,
124,
231,
166,
243,
235,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1147,
382,
12,
2867,
1147,
16,
2254,
5034,
3844,
382,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
1347,
984,
8774,
3668,
203,
3639,
19890,
1290,
12,
3576,
18,
15330,
16,
534,
359,
1060,
559,
18,
1345,
382,
1... |
./full_match/137/0x8F0772AC6F90E1704dc2a10cCe9623B8E335cEAE/sources/GAH.sol | * @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` mus... | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
... | 4,674,075 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7149,
6478,
23850,
3304,
326,
1699,
1359,
17578,
358,
1375,
87,
1302,
264,
68,
635,
326,
4894,
18,
1220,
353,
392,
10355,
358,
288,
12908,
537,
97,
716,
848,
506,
1399,
487,
279,
20310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
915,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
10418,
329,
620,
13,
1071,
5024,
1135,
261,
6430,
13,
288,
203,
11890,
5034,
783,
7009,
1359,
273,
389,
5965,
6872,
63,
67,
3576,
12021,
1435,
6362,
87,
1302,
264,
155... |
./partial_match/1/0x86498eDf9C5D6c0c5DB9f0f54e3893494fB38651/sources/contracts/NinfaMarketplace.sol | order structs are deleted after succesful trades, as well as after calling cancelOrder(). all functions using `orderValid` modifier (except for `fillOrder`) already check that offers[_id].from != 0 , i.e. there is no need to check this here duplicating code | modifier orderValid(uint256 _id) {
_;
}
| 3,548,795 | [
1,
4625,
348,
7953,
560,
30,
225,
1353,
8179,
854,
4282,
1839,
8667,
764,
2706,
1284,
5489,
16,
487,
5492,
487,
1839,
4440,
3755,
2448,
7675,
777,
4186,
1450,
1375,
1019,
1556,
68,
9606,
261,
14137,
364,
1375,
5935,
2448,
24065,
1818,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
9606,
1353,
1556,
12,
11890,
5034,
389,
350,
13,
288,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/3/0xbCFB57B7E39A590d7dee734975875f3712Ca5a5B/sources/contracts/5_Token.sol | * @dev Create a ERC-20 token with ERC20 OpenZeppelin setup/ | constructor() ERC20("Alyra - Casper Token", "CASP") {
owner = msg.sender;
_mint(owner, 100000000000000000000);
}
| 14,256,700 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1788,
279,
4232,
39,
17,
3462,
1147,
598,
4232,
39,
3462,
3502,
62,
881,
84,
292,
267,
3875,
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,
... | [
1,
1,
1,
1,
1,
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,
4232,
39,
3462,
2932,
37,
715,
354,
300,
23561,
457,
3155,
3113,
315,
20221,
52,
7923,
288,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
3639,
389,
81,
474,
12,
8443,
16,
2130,
12648,
2787,
9449,
1769,
203,
... |
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.7;
interface IERC20 {
function approve(address spender, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function ba... | * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement on the return value: the return value is optional (but if data is returned, it must not be false). @param token The token targeted by the call. @param data The call data (encoded using abi.encode or one of ... | function _callOptionalReturn(IERC20 token, bytes memory data) private {
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
| 1,096,590 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
467,
1938,
815,
279,
348,
7953,
560,
3551,
17,
2815,
745,
261,
77,
18,
73,
18,
279,
6736,
445,
745,
358,
279,
6835,
3631,
25744,
310,
326,
12405,
603,
326,
327,
460,
30,
326,
327,
460... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
389,
1991,
6542,
990,
12,
45,
654,
39,
3462,
1147,
16,
1731,
3778,
501,
13,
3238,
288,
203,
203,
202,
202,
3890,
3778,
327,
892,
273,
1758,
12,
2316,
2934,
915,
1477,
12,
892,
16,
315,
9890,
654,
39,
3462,
30,
4587,... |
./partial_match/1/0xeC263491905Bcf713d81e73493761d8aB450241C/sources/ERC1155Ikasumi.sol | @notice Redeems an NFTVoucher for an actual NFT, creating it in the process. make sure signature is valid and get the address of the signer allow to mint less qty of the amounts in voucher, until all qtys are minted first time minting? find the next available tokenId or use the existing NFT Id if it was passed to the ... | ) external nonReentrant {
require(chainId == getChainId(), "Ikasumi: Wrong chain");
require(vouchersMintedQty[id] + qtyToMint <= qty, "Ikasumi: the qty exceeds the amount available for minting");
require(nftId == 0 || exists(nftId), "Ikasumi: Wrong NFT ID");
verify(id, nftPostId, q... | 4,060,370 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
868,
323,
7424,
392,
423,
4464,
19585,
364,
392,
3214,
423,
4464,
16,
4979,
518,
316,
326,
1207,
18,
1221,
3071,
3372,
353,
923,
471,
336,
326,
1758,
434,
326,
10363,
1699,
358,
312,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
3903,
1661,
426,
8230,
970,
288,
203,
203,
3639,
2583,
12,
5639,
548,
422,
30170,
548,
9334,
315,
45,
79,
345,
30865,
30,
24668,
2687,
8863,
203,
3639,
2583,
12,
90,
31952,
49,
474,
329,
53,
4098,
63,
350,
65,
397,
... |
./full_match/1/0xE155F64B9aD8c81318c313196a60c72e72fD2cD1/sources/ChaintoolsFinal.sol | Protocol FUNCTIONSprevent liquidity fragmentationShutdown tokenomics [emergency only!]Change issuance rateExclude from taxNew YIELD_VAULT implementationUnlock LP | function adjustFomo(
uint16 flag,
uint256 amount,
address who
) external {
if (flag == 5) {
if (msg.sender != address(YIELD_BOOSTER)) revert Auth();
require(who != uniswapV3Pool);
badPool[who] = !badPool[who];
if (msg.sender != mult... | 4,971,775 | [
1,
4625,
348,
7953,
560,
30,
4547,
13690,
55,
29150,
4501,
372,
24237,
5481,
367,
10961,
1147,
362,
2102,
306,
351,
24530,
1338,
5,
65,
3043,
3385,
89,
1359,
4993,
12689,
628,
5320,
1908,
1624,
45,
5192,
67,
27722,
2274,
4471,
7087,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5765,
42,
362,
83,
12,
203,
3639,
2254,
2313,
2982,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1758,
10354,
203,
565,
262,
3903,
288,
203,
3639,
309,
261,
6420,
422,
1381,
13,
288,
203,
5411,
309,
261,
3576,
18,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8;
import "./USDSatMetadata.sol";
import "./Ownable.sol";
import "./ERC721.sol";
import "./ReentrancyGuard.sol";
import "./ERC721Enumerable.sol";
/// ``..
/// ... | @dev Set { _genesisId } for { epoch } as true | epochMintingRegistry[epoch][_genesisId] = true;
| 5,878,543 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1000,
288,
389,
4507,
16786,
548,
289,
364,
288,
7632,
289,
487,
638,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
7632,
49,
474,
310,
4243,
63,
12015,
6362,
67,
4507,
16786,
548,
65,
273,
638,
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,
... |
./full_match/43113/0x31a4a1A4d81f3c7044EB0Ca2C727Ff78FB7ff91f/sources/contracts/TinyDragonArena.sol | take a copy of the stats at the start of the match so the user can't increase stats to exploit the levelcap while match is running | function enterMatch(uint256 tokenId, uint256 matchId) external {
require(ITinyDragon(TINYDRAGONTOKEN).ownerOf(tokenId) == msg.sender, "you must own this token");
require(_activeMatches[matchId], "match must be active");
_matchDragonStats[matchId][tokenId] = getStats(tokenId);
requ... | 7,124,568 | [
1,
4625,
348,
7953,
560,
30,
4862,
279,
1610,
434,
326,
3177,
622,
326,
787,
434,
326,
845,
1427,
326,
729,
848,
1404,
10929,
3177,
358,
15233,
305,
326,
1801,
5909,
1323,
845,
353,
3549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6103,
2060,
12,
11890,
5034,
1147,
548,
16,
2254,
5034,
845,
548,
13,
3903,
288,
203,
3639,
2583,
12,
1285,
11652,
11728,
265,
12,
56,
31853,
6331,
1781,
673,
8412,
2934,
8443,
951,
12,
2316,
548,
13,
422,
1234,
18,
1... |
./full_match/1/0x1E36E8F509EEC5b569b62404764009dff0867F88/sources/Vendor.sol | Our Token Contract token price for ETH Event that log buy operation | contract Vendor is Context, Ownable, PausableSell, Presale, PriceConsumerV3 {
DevToken devToken;
using SafeMath for uint256;
uint256 public tokensPerEth = 100;
event BuyTokens(address buyer, uint256 amountOfETH, uint256 amountOfTokens);
event BonusTreeTokens(address inviter, uint256 commissionIn... | 4,959,114 | [
1,
4625,
348,
7953,
560,
30,
225,
29613,
3155,
13456,
1147,
6205,
364,
512,
2455,
2587,
716,
613,
30143,
1674,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
776,
5227,
353,
1772,
16,
14223,
6914,
16,
21800,
16665,
55,
1165,
16,
18346,
5349,
16,
20137,
5869,
58,
23,
288,
203,
565,
9562,
1345,
4461,
1345,
31,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,... |
/**
*Submitted for verification at Etherscan.io on 2020-10-20
*/
/*
██╗ ███████╗██╗ ██╗
██║ ██╔════╝╚██╗██╔╝
██║ █████╗ ╚███╔╝
██║ ██╔══╝ ██╔██╗
███████╗███████╗██╔╝ ██╗
╚══════╝╚══════╝╚═╝ ╚═╝ ... | details token offering, redemption, etc. - updateable by manager
| string public details; | 50,023 | [
1,
4625,
348,
7953,
560,
30,
225,
3189,
1147,
10067,
310,
16,
283,
19117,
375,
16,
5527,
18,
300,
1089,
429,
635,
3301,
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,
... | [
1,
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,
533,
225,
1071,
3189,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.8.0;
import "../openzeppelin-contracts-upgradeable-master/contracts/token/ERC20/IERC20Upgradeable.sol";
import "../openzeppelin-contracts-upgradeable-master/contracts/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "../openzeppelin-contracts-upgradeable-master/contracts/access/AccessControlUpgra... | Deposit LP tokens to PureFiFarming for Token allocation. | function depositTo(uint16 _pid, uint256 _amount, address _beneficiary) public payable override whenNotPaused {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_beneficiary];
require(_amount + user.amount <= maxStakingAmountForPool[_pid], "Deposited amount excee... | 881,142 | [
1,
4625,
348,
7953,
560,
30,
225,
4019,
538,
305,
511,
52,
2430,
358,
16616,
42,
77,
42,
4610,
310,
364,
3155,
13481,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
774,
12,
11890,
2313,
389,
6610,
16,
2254,
5034,
389,
8949,
16,
1758,
389,
70,
4009,
74,
14463,
814,
13,
1071,
8843,
429,
3849,
1347,
1248,
28590,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
... |
// Permit pattern copied from BAL https://etherscan.io/address/0xba100000625a3754423978a60c9317c58a424e3d#code
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract ERC20Permit is ERC20 {
string public constant version = "1";
bytes32 public immutable DOMAIN_SEPARATOR;
// kecca... | EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature unique. Appendix F in the Ethereum Yellow paper (https:ethereum.github.io/yellowpaper/paper.pdf), defines the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most signatur... | function _recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) private pure returns (address) {
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
revert("ECDSA: invalid signature 's' value");
}
if (v != 27 && v != 28) {
revert("ECDSA: invalid signature... | 491,652 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
2579,
17,
22,
4859,
5360,
3372,
312,
22534,
2967,
364,
425,
1793,
3165,
7675,
3581,
333,
25547,
471,
1221,
326,
3372,
3089,
18,
6181,
697,
478,
316,
326,
512,
18664,
379,
1624,
11394,
15181,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
266,
3165,
12,
3890,
1578,
1651,
16,
2254,
28,
331,
16,
1731,
1578,
436,
16,
1731,
1578,
272,
13,
3238,
16618,
1135,
261,
2867,
13,
288,
203,
565,
309,
261,
11890,
5034,
12,
87,
13,
405,
374,
92,
27,
8998,
8998... |
pragma solidity ^0.4.22;
// File: node_modules/zeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure ... | * Transfer a valid subscription from msg.sender to a new address. If the address already has a valid subscription, extends the subscription by the msg.sender's remaining period./ | function transferSubscription(bytes32 productId, address newSubscriber) public whenNotHalted {
var (isValid, product, sub) = _getSubscription(productId, msg.sender);
require(isValid, "error_subscriptionNotValid");
uint secondsLeft = sub.endTimestamp.sub(block.timestamp);
Time... | 11,970,120 | [
1,
4625,
348,
7953,
560,
30,
380,
12279,
279,
923,
4915,
628,
1234,
18,
15330,
358,
279,
394,
1758,
18,
971,
326,
1758,
1818,
711,
279,
923,
4915,
16,
3231,
326,
4915,
635,
326,
1234,
18,
15330,
1807,
4463,
3879,
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,
7412,
6663,
12,
3890,
1578,
23820,
16,
1758,
394,
11118,
13,
1071,
1347,
1248,
44,
287,
2344,
288,
203,
3639,
569,
261,
26810,
16,
3017,
16,
720,
13,
273,
389,
588,
6663,
12,
5896,
548,
16,
1234,
18,
15330,
1769,
203,... |
// File: contracts/upgradeability/EternalStorage.sol
pragma solidity 0.7.5;
/**
* @title EternalStorage
* @dev This contract holds all the necessary state variables to carry out the storage of any contract.
*/
contract EternalStorage {
mapping(bytes32 => uint256) internal uintStorage;
mapping(bytes32 => st... | * @dev Internal function for recording bridge operation for further usage. Recorded information is used for fixing failed requests on the other side. @param _messageId id of the sent message. @param _token bridged token address. @param _sender address of the tokens sender. @param _tokenId unique id of the bridged token... | function _recordBridgeOperation(
bytes32 _messageId,
address _token,
address _sender,
uint256 _tokenId
) internal {
require(isTokenBridgingAllowed(_token));
setMessageToken(_messageId, _token);
setMessageRecipient(_messageId, _sender);
setMessageV... | 13,489,648 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
364,
14949,
10105,
1674,
364,
9271,
4084,
18,
868,
3850,
785,
1779,
353,
1399,
364,
28716,
2535,
3285,
603,
326,
1308,
4889,
18,
632,
891,
389,
2150,
548,
612,
434,
326,
3271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3366,
13691,
2988,
12,
203,
3639,
1731,
1578,
389,
2150,
548,
16,
203,
3639,
1758,
389,
2316,
16,
203,
3639,
1758,
389,
15330,
16,
203,
3639,
2254,
5034,
389,
2316,
548,
203,
565,
262,
2713,
288,
203,
3639,
2583,
... |
pragma solidity ^0.4.23;
// todo: allow participants to be able to withdraw supported tokens if softcap not reached
// todo: allow participants to contribute other ethereum based cryptocurrency with approve function
// todo: then allow them to notify contract of approval
// todo: create a way to buy tokens using ether... | can only get refund per phase, if bought in multiple phase must getRefund for each phase | function getRefund() external {
require(refundAllowed, "refund Not Allowed");
require(isCompleted());
uint weiContributed = totalContributions[msg.sender];
uint prevAllowed = totalAllowed[msg.sender];
emit RefundSent(msg.sender, weiContrib... | 2,491,440 | [
1,
4625,
348,
7953,
560,
30,
225,
848,
1338,
336,
16255,
1534,
6855,
16,
309,
800,
9540,
316,
3229,
6855,
1297,
17404,
1074,
364,
1517,
6855,
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,
445,
17404,
1074,
1435,
3903,
225,
288,
203,
540,
203,
3639,
2583,
12,
1734,
1074,
5042,
16,
315,
1734,
1074,
2288,
16740,
8863,
203,
3639,
2583,
12,
291,
9556,
10663,
203,
540,
203,
3639,
2254,
732,
77,
442,
11050,
273,
207... |
./full_match/11155111/0x9e90F364f26dA40EcFA275f31848892c70a38310/sources/contracts/BalancerTokenAdmin.sol | * @title Balancer Token Admin @notice This contract holds all admin powers over the BAL token passing through calls while delegating access control to the Balancer Authorizer In addition, calls to the mint function must respect the inflation schedule as defined in this contract. As this contract is the only way to mint... | contract BalancerTokenAdmin is IBalancerTokenAdmin, Authentication, ReentrancyGuard {
using Math for uint256;
uint256 public constant override RATE_REDUCTION_TIME = 365 days;
uint256 public constant override RATE_DENOMINATOR = 1e18;
IVault private immutable _vault;
IBalancerToken private immutable... | 3,840,940 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
605,
5191,
3155,
7807,
632,
20392,
1220,
6835,
14798,
777,
3981,
7602,
414,
1879,
326,
605,
1013,
1147,
9588,
3059,
4097,
1323,
11158,
1776,
2006,
3325,
358,
326,
605,
5191,
25685,
657,
271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
5191,
1345,
4446,
353,
467,
6444,
1345,
4446,
16,
8665,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
2361,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1071,
5381,
3849,
534,
1777,
67,
5879,
27035,
67,
4684,
2... |
./partial_match/42/0xAc35A91201708081a4eb2d868dc1B5610f60Cd7a/sources/Dollar.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20Mintable}. TIP: For a detailed writeup see our guide to implement supply mechanisms]. ... | contract ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
address public dao;
uint256 public taxRate;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _taxFree;
uint256 p... | 8,841,680 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
565,
1758,
1... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma abicoder v2;
import "./TradingAction.sol";
import "./ActionGuards.sol";
import "./nTokenMintAction.sol";
import "./nTokenRedeemAction.sol";
import "../SettleAssetsExternal.sol";
import "../FreeCollateralExternal.sol";
import "../../math/SafeInt256... | @notice Sets the new market state @return netAssetCashToAccount: the positive or negative change in asset cash to the account assetCashToReserve: the positive amount of cash that accrues to the reserve Set storage checks that total asset cash is above zero Sets the trade time for the next oracle update | function _setNewMarketState(
MarketParameters memory market,
AssetRateParameters memory assetRate,
int256 netCashToAccount,
int256 netCashToMarket,
int256 netCashToReserve
) private view returns (int256, int256) {
int256 netAssetCashToMarket = assetRate.convertFro... | 12,239 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11511,
326,
394,
13667,
919,
632,
2463,
377,
2901,
6672,
39,
961,
774,
3032,
30,
326,
6895,
578,
6092,
2549,
316,
3310,
276,
961,
358,
326,
2236,
377,
3310,
39,
961,
774,
607,
6527,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
542,
1908,
3882,
278,
1119,
12,
203,
3639,
6622,
278,
2402,
3778,
13667,
16,
203,
3639,
10494,
4727,
2402,
3778,
3310,
4727,
16,
203,
3639,
509,
5034,
2901,
39,
961,
774,
3032,
16,
203,
3639,
509,
5034,
2901,
39,
... |
pragma solidity >= 0.5.17;
import "./math.sol";
import "./IERC20.sol";
library useDecimal{
using uintTool for uint;
function m278(uint n) internal pure returns(uint){
return n.mul(278)/1000;
}
}
library Address {
function toPayable(address account) internal pure returns (address payable) {
... | Closing at Mon Feb 28 2022 23:59:59 UTC+0800.
| uint256 public ClosingTime = 1646063999; | 2,507,346 | [
1,
4625,
348,
7953,
560,
30,
385,
10910,
622,
9041,
5782,
70,
9131,
26599,
22,
10213,
30,
6162,
30,
6162,
9951,
15,
6840,
713,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
202,
11890,
5034,
1071,
385,
10910,
950,
273,
404,
1105,
4848,
4449,
11984,
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,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
impor... | Set CUP token contract
| CUP = ICupDAOToken(cupAddress); | 12,729,641 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
385,
3079,
1147,
6835,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
385,
3079,
273,
26899,
416,
18485,
1345,
12,
71,
416,
1887,
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,
-... |
// SPDX-License-Identifier: MIT
/**
∩~~~~∩
ξ ・×・ ξ
ξ ~ ξ
ξ ξ
ξ “~~~~〇
ξ ξ
ξ ξ ξ~~~ξ ξ ξ
ξ_ξξ_ξ ξ_ξξ_ξ
Alpaca Fin Corporation
*/
pragma solidity 0.6.6;
import "@pancakeswap-libs/pancake-swap-core/contracts/interfaces/IPancakePair.sol";
import "../apis/pancake/IPancakeRouter02.sol";
imp... | @dev Return the inverse of the path that worker is using for convert BTOKEN->...->FTOKEN | function getReversedPath() external override view returns (address[] memory) {
address tmp;
address[] memory reversedPath = path;
for (uint i = 0; i < reversedPath.length / 2; i++) {
tmp = reversedPath[i];
reversedPath[i] = reversedPath[reversedPath.length - i - 1];
reversedPath[reverse... | 6,401,687 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2000,
326,
8322,
434,
326,
589,
716,
4322,
353,
1450,
364,
1765,
605,
8412,
2122,
2777,
2122,
4464,
6239,
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,
225,
445,
5561,
7548,
743,
1435,
3903,
3849,
1476,
1135,
261,
2867,
8526,
3778,
13,
288,
7010,
565,
1758,
1853,
31,
203,
565,
1758,
8526,
3778,
9553,
743,
273,
589,
31,
203,
565,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
95... |
pragma solidity >=0.4.26;
pragma experimental ABIEncoderV2;
interface IKyberNetworkProxy {
function maxGasPrice() external view returns(uint);
function getUserCapInWei(address user) external view returns(uint);
function getUserCapInTokenWei(address user, ERC20 token) external view returns(uint);
funct... | interface OrFeedInterface {function arb(address fundsReturnToAddress, address liquidityProviderContractAddress, string calldata, tokens, uint256 amount, string[] exchanges) external payable returns (bool);function arb(address fundsReturnToAddress, address liquidityProviderContractAddress, string calldata tokens, uint... | interface OrFeedInterface {
function getExchangeRate ( string calldata fromSymbol, string calldata toSymbol, string calldata venue, uint256 amount ) external view returns ( uint256 );
function getTokenDecimalCount ( address tokenAddress ) external view returns ( uint256 );
function getTokenAddress ( string callda... | 13,582,756 | [
1,
4625,
348,
7953,
560,
30,
1560,
2965,
8141,
1358,
288,
915,
419,
70,
12,
2867,
284,
19156,
990,
774,
1887,
16,
1758,
4501,
372,
24237,
2249,
8924,
1887,
16,
533,
745,
892,
16,
2430,
16,
225,
2254,
5034,
3844,
16,
533,
8526,
431... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
2965,
8141,
1358,
288,
203,
225,
445,
336,
11688,
4727,
261,
533,
745,
892,
628,
5335,
16,
533,
745,
892,
358,
5335,
16,
533,
745,
892,
331,
275,
344,
16,
2254,
5034,
3844,
262,
3903,
1476,
1135,
261,
2254,
5034,
11272,
2... |
./full_match/1/0x4E0528b9478C9A90B84F80fF771f6e4Cf07920F5/sources/browser/atomic.sol | Create Exchange Get Exchange and Token Info Never use | interface IUniswapFactory {
function createExchange(address token) external returns (address exchange);
function getExchange(address token) external view returns (address exchange);
function getToken(address exchange) external view returns (address token);
function getTokenWithId(uint256 tokenId) ex... | 3,014,088 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
18903,
968,
18903,
471,
3155,
3807,
24496,
999,
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,
5831,
225,
467,
984,
291,
91,
438,
1733,
225,
288,
203,
565,
445,
752,
11688,
12,
2867,
1147,
13,
3903,
1135,
261,
2867,
7829,
1769,
203,
565,
445,
336,
11688,
12,
2867,
1147,
13,
3903,
1476,
1135,
261,
2867,
7829,
1769,
203,
2... |
//Address: 0x30166a2323cf969216a40850c923e52957443284
//Contract name: SaleController
//Balance: 0 Ether
//Verification Date: 4/3/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.18;
// File: contracts/TokenController.sol
/** The interface for a token contract to notify a controller of every tra... | * @dev Allow transfers from the `seller` and the `owner`, but nobody else. No state changes. */ | function allowTransfer(address /* _sender */, address _from, address /* _to */, uint256 /* _value */, bytes /* _purpose */)
public returns (bool)
{
return _from == seller || _from == owner;
}
| 5,415,543 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7852,
29375,
628,
326,
1375,
1786,
749,
68,
471,
326,
1375,
8443,
9191,
1496,
290,
947,
973,
469,
18,
2631,
919,
3478,
18,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1699,
5912,
12,
2867,
1748,
389,
15330,
1195,
16,
1758,
389,
2080,
16,
1758,
1748,
389,
869,
1195,
16,
2254,
5034,
1748,
389,
1132,
1195,
16,
1731,
1748,
389,
22987,
1195,
13,
203,
3639,
1071,
1135,
261,
6430,
13,
203,
... |
pragma solidity ^0.4.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b)
internal
pure
returns (uint25... | Token metadata Token supply breakdown Initial Token holder addresses. one billion token holders one hundred million token holders the rest token holder mint configuration | contract PetCoin is StandardToken, Owned {
using SafeMath for uint256;
string public constant name = "Petcoin";
string public constant symbol = "PETC";
uint256 public constant decimals = 18;
address public constant appWallet = 0x9F6899364610B96D7718Fe3c03A6BD1Deb8623CE;
address public constant genWallet... | 5,417,514 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
1982,
3155,
14467,
898,
2378,
10188,
3155,
10438,
6138,
18,
1245,
20714,
285,
1147,
366,
4665,
1245,
366,
1074,
1118,
312,
737,
285,
1147,
366,
4665,
326,
3127,
1147,
10438,
312,
474,
1664,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
453,
278,
27055,
353,
8263,
1345,
16,
14223,
11748,
288,
203,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
533,
1071,
5381,
508,
273,
315,
52,
278,
12645,
14432,
203,
225,
533,
1071,
5381,
3273,
273,
3... |
./full_match/4/0x43681bbD7723F3425757e3BB2aDa964Ac73b5d39/sources/contracts/Ownable.sol | * @dev Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner./ | function transferOwnership(address newOwner) public virtual onlyMultisig {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| 12,476,748 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
23178,
434,
326,
6835,
358,
279,
394,
2236,
21863,
2704,
5541,
68,
2934,
4480,
1338,
506,
2566,
635,
326,
783,
3410,
18,
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,
445,
7412,
5460,
12565,
12,
2867,
394,
5541,
13,
1071,
5024,
1338,
5049,
291,
360,
288,
203,
3639,
2583,
12,
2704,
5541,
480,
1758,
12,
20,
3631,
315,
5460,
429,
30,
394,
3410,
353,
326,
3634,
1758,
8863,
203,
5411,
3626,
... |
pragma solidity ^0.5.8;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high l... | How much their ProgramTokens deposited users
| uint256 public programSupply; | 5,459,768 | [
1,
4625,
348,
7953,
560,
30,
225,
9017,
9816,
3675,
13586,
5157,
443,
1724,
329,
3677,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5402,
3088,
1283,
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,
... |
./full_match/5/0x9727e6550fc978522B535FbeF44f48278CAD79A5/sources/src/BullaFeeCalculator.sol | the full amountRequired to pay a claim | function fullPaymentAmount(
uint256,
address,
address,
address,
uint256 claimAmount,
uint256 paidAmount,
uint256,
ClaimBinding,
FeePayer feePayer
) external view returns (uint256) {
uint256 amountRemaining = claimAmount - paidAmount... | 1,898,695 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
1983,
3844,
3705,
358,
8843,
279,
7516,
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,
1983,
6032,
6275,
12,
203,
3639,
2254,
5034,
16,
203,
3639,
1758,
16,
203,
3639,
1758,
16,
203,
3639,
1758,
16,
203,
3639,
2254,
5034,
7516,
6275,
16,
203,
3639,
2254,
5034,
30591,
6275,
16,
203,
3639,
2254,
5034,
16,
... |
./full_match/1/0x61B24e6C2AD7726004e3eF8557f8c20eB94EA6D7/sources/contracts/VozesSitahDonaFrancisquinha.sol | * @dev Sets a new URI for all token types, by relying on the token type ID substitution mechanism By this mechanism, any occurrence of the `\{id\}` substring in either the URI or any of the amounts in the JSON file at said URI will be replaced by clients with the token type ID. interpreted by clients as for token type ... | function setURI(string memory newuri) public onlyOwner {
_setURI(newuri);
for (uint256 i = 1; i <= totalTypes(); i++) {
emit URI(newuri, i);
}
}
event PermanentURI(string _value, uint256 indexed _id);
| 16,458,081 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
279,
394,
3699,
364,
777,
1147,
1953,
16,
635,
283,
6291,
603,
326,
1147,
618,
1599,
12785,
12860,
2525,
333,
12860,
16,
1281,
13083,
434,
326,
1375,
64,
95,
350,
64,
11760,
3019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
3098,
12,
1080,
3778,
394,
1650,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
542,
3098,
12,
2704,
1650,
1769,
203,
203,
3639,
364,
261,
11890,
5034,
277,
273,
404,
31,
277,
1648,
2078,
2016,
5621,
277,
27245,
288,
... |
./partial_match/82/0x1d5935d36D0E1d812c4ea6Af40c3D6eb361eeb07/sources/GnosisSafe.sol | @title OwnerManager - Manages a set of owners and a threshold to perform actions. @author Stefan George - <stefan@gnosis.pm> @author Richard Meissner - <richard@gnosis.pm> | contract OwnerManager is SelfAuthorized {
event AddedOwner(address owner);
event RemovedOwner(address owner);
event ChangedThreshold(uint256 threshold);
address internal constant SENTINEL_OWNERS = address(0x1);
mapping(address => address) internal owners;
uint256 ownerCount;
uint256 internal threshold;
... | 16,902,065 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
16837,
1318,
300,
490,
940,
281,
279,
444,
434,
25937,
471,
279,
5573,
358,
3073,
4209,
18,
632,
4161,
7780,
74,
304,
15391,
280,
908,
300,
411,
334,
10241,
304,
36,
1600,
538,
291,
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,
16837,
1318,
353,
18954,
15341,
288,
203,
225,
871,
25808,
5541,
12,
2867,
3410,
1769,
203,
225,
871,
2663,
9952,
5541,
12,
2867,
3410,
1769,
203,
225,
871,
27707,
7614,
12,
11890,
5034,
5573,
1769,
203,
203,
225,
1758,
2713... |
./full_match/80001/0xc415006ac51e0D8adD1CC6fcAc74b25721512dc7/sources/contracts/ERC721A.sol | The maximum value of a uint256 contains 78 digits (1 byte per digit), but we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. We will need 1 word for the trailing zeros padding, 1 word for the length, and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. Update the free memory pointe... | function _toString(
uint256 value
) internal pure virtual returns (string memory str) {
assembly {
let m := add(mload(0x40), 0xa0)
mstore(0x40, m)
str := sub(m, 0x20)
mstore(str, 0)
let end := str
str := sub(str, 1)
... | 836,042 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
4207,
460,
434,
279,
2254,
5034,
1914,
22860,
6815,
261,
21,
1160,
1534,
8035,
3631,
1496,
732,
10101,
374,
6995,
20,
1731,
358,
3455,
326,
4843,
3778,
4407,
3847,
17,
7229,
2076,
13939,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
10492,
12,
203,
3639,
2254,
5034,
460,
203,
565,
262,
2713,
16618,
5024,
1135,
261,
1080,
3778,
609,
13,
288,
203,
3639,
19931,
288,
203,
5411,
2231,
312,
519,
527,
12,
81,
945,
12,
20,
92,
7132,
3631,
374,
6995,... |
./partial_match/1/0xD1CE90003a10E6daB877890aB1fD96511555E4b3/sources/cache/solpp-generated-contracts/Dice9.sol | * Being given an instance of PackedBet, decodes it into a set of parameters, specifically: 1. What would the payment amount to if the bet wins. 2. Whether the bet should play for Jackpot. 3. What is the bet's game's denominator (2 for Coin Flip, 6 for Dice etc). 4. What were the options chosen by the user (a.k.a. b... | function describePackedBet(PackedBet packedBet) internal pure returns (uint winAmount, bool playsForJackpot, uint betDenominator, uint betMask, TinyString betDescription) {
(GameOption gameOptions, uint amount, bool isJackpot) = packedBet.unpack();
(uint numerator, uint denominator, uint mask, TinyString desc... | 2,669,194 | [
1,
4625,
348,
7953,
560,
30,
380,
4823,
310,
864,
392,
791,
434,
7930,
329,
38,
278,
16,
16889,
518,
1368,
279,
444,
434,
1472,
16,
21195,
30,
225,
404,
18,
18734,
4102,
326,
5184,
3844,
358,
309,
326,
2701,
31307,
18,
225,
576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6401,
4420,
329,
38,
278,
12,
4420,
329,
38,
278,
12456,
38,
278,
13,
2713,
16618,
1135,
261,
11890,
5657,
6275,
16,
1426,
6599,
28388,
46,
484,
13130,
16,
2254,
2701,
8517,
26721,
16,
2254,
2701,
5796,
16,
399,
11652,
... |
./partial_match/1/0xFD39faae66348aa27A9E1cE3697aa185B02580EE/sources/LiquidityPoolV2Converter.sol | error message binary size optimization | function _validUniqueAddresses(address _address1, address _address2) internal pure {
_validAddress(_address1);
_validAddress(_address2);
require(_address1 != _address2, "ERR_SAME_ADDRESS");
}
| 4,233,415 | [
1,
4625,
348,
7953,
560,
30,
225,
555,
883,
3112,
963,
14850,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
877,
6303,
7148,
12,
2867,
389,
2867,
21,
16,
1758,
389,
2867,
22,
13,
2713,
16618,
288,
203,
3639,
389,
877,
1887,
24899,
2867,
21,
1769,
203,
3639,
389,
877,
1887,
24899,
2867,
22,
1769,
203,
3639,
2583,
24899,
... |
./full_match/42161/0x2Fa0C4927C57C38901E4A5A1d84fc03F06379E1b/sources/project_/contracts/arbitrum/Burnitrum.sol | Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract Burnitrum is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
uint256 public maxTransactionAmo... | 16,303,726 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
321,
305,
86,
379,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8... |
./full_match/1/0xf83c53c080E48e78A6B114eAB682d528562d33B5/sources/contracts/v2/Editions/FairxyzEditionsUpgradeable.sol | * @dev See {IFairxyzEditions-editionTotalSupply}./ | function editionTotalSupply(
uint256 editionId
) public view virtual override returns (uint256) {
return _editionMintedCount[editionId] - _editionBurnedCount[editionId];
}
| 3,850,668 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
5501,
1826,
17177,
41,
1460,
87,
17,
329,
608,
5269,
3088,
1283,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
28432,
5269,
3088,
1283,
12,
203,
3639,
2254,
5034,
28432,
548,
203,
565,
262,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
329,
608,
49,
474,
329,
1380,
63,
329,
608,
548,
65,
300,
38... |
/*
███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗
██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝
█████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗
██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝
██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ... | Eyes Mouth Mouth
| seed >>= 16; t.traits[3] = _selectTrait(uint16(seed & 0xFFFF), 3 + offset); | 2,514,987 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
9707,
282,
490,
15347,
282,
490,
15347,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
5009,
23359,
2872,
31,
268,
18,
2033,
1282,
63,
23,
65,
273,
389,
4025,
15525,
12,
11890,
2313,
12,
12407,
473,
374,
21718,
3631,
890,
397,
1384,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x78a822fa9c21C7977d0b27EA9dc8fd9f00704B01/sources/contracts/token/ERC1155/extensions/ERC1155PreMintedCollection.sol | * This implementation relies on the token type ID substitution mechanism. Clients calling this function must replace the `\{id\}` substring with the actual token type ID./ | function uri(uint tokenId) public view virtual override returns (string memory) {
require(exists(tokenId), "IERC1155MetadataURI: uri query for nonexistent token");
return string(abi.encodePacked(baseURI, "/", uint2str(tokenId), ".json"));
}
| 17,057,074 | [
1,
4625,
348,
7953,
560,
30,
380,
1220,
4471,
14719,
281,
603,
326,
1147,
618,
1599,
12785,
12860,
18,
30655,
4440,
333,
445,
1297,
1453,
326,
1375,
64,
95,
350,
64,
11760,
3019,
598,
326,
3214,
1147,
618,
1599,
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,
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,
2003,
12,
11890,
1147,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
2583,
12,
1808,
12,
2316,
548,
3631,
315,
45,
654,
39,
2499,
2539,
2277,
3098,
30,
2003,
843,
364,
1661,
19041,
1147,
... |
// File: contracts/lib/SafeMathInt.sol
/*
MIT License
Copyright (c) 2018 requestnetwork
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the righ... | action of claiming funds | function claimDividends(address account) public updateAccount(account) returns (uint256) {
uint256 owing = dividendsOwing(account);
return owing;
}
| 6,604,995 | [
1,
4625,
348,
7953,
560,
30,
225,
1301,
434,
7516,
310,
284,
19156,
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,
7516,
7244,
350,
5839,
12,
2867,
2236,
13,
1071,
1089,
3032,
12,
4631,
13,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2523,
310,
273,
3739,
350,
5839,
3494,
310,
12,
4631,
1769,
203,
3639,
327,
2523,
310,
... |
./full_match/3/0x25E826713918E8341BaD78a39706fB40B5d1020F/sources/browser/Untitled.sol | * @dev Deposit `amount` tokens back to `account`, reducing the total supply. Requirements - `account` is a number of format 309XXXXX - msg.sender must have at least `amount` tokens./ | function depositToGame(uint256 account, uint256 amount) public {
_burn(msg.sender, amount);
emit Deposit(msg.sender, account, amount);
}
| 8,194,955 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4019,
538,
305,
1375,
8949,
68,
2430,
1473,
358,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
29076,
300,
1375,
4631,
68,
353,
279,
1300,
434,
740,
5196,
29,
5619,
15639,
300,
1234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
774,
12496,
12,
11890,
5034,
2236,
16,
2254,
5034,
3844,
13,
1071,
288,
203,
3639,
389,
70,
321,
12,
3576,
18,
15330,
16,
3844,
1769,
203,
3639,
3626,
4019,
538,
305,
12,
3576,
18,
15330,
16,
2236,
16,
3844... |
/**
*Submitted for verification at Etherscan.io on 2020-07-23
*/
// File: contracts/spec_interfaces/IContractRegistry.sol
pragma solidity 0.5.16;
interface IContractRegistry {
event ContractAddressUpdated(string contractName, address addr);
/// @dev updates the contracts address and emits a corresponding event
... | inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
| _transferFunctionalOwnership(pendingFunctionalOwner); | 5,457,558 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
14939,
8350,
13255,
40,
6953,
17187,
478,
21163,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
13866,
2083,
287,
5460,
12565,
12,
9561,
2083,
287,
5541,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "../@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "../@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "../@openzeppelin/contracts/utils/Counters.sol";
im... | * Creates an auction for a new item./ Create market item Create auction | function createNewItemAuction(
address nftContract,
uint256 tokenId,
uint256 amount,
uint256 numMinutes,
uint256 minBid
) external {
uint256 itemId = createItem(nftContract, tokenId);
createItemAuction(itemId, amount, numMinutes, minBid);
}
| 2,503,652 | [
1,
4625,
348,
7953,
560,
30,
380,
10210,
392,
279,
4062,
364,
279,
394,
761,
18,
19,
1788,
13667,
761,
1788,
279,
4062,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15291,
1180,
37,
4062,
12,
203,
3639,
1758,
290,
1222,
8924,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
818,
13050,
16,
203,
3639,
2254,
5034,
1131,
17763,
203,
565... |
./full_match/1/0x72c15c73cb2161BBc2c402BE738433A472d3D622/sources/localhost/adapters/ProtocolAdapter.sol | * @title Protocol adapter interface. @dev adapterType(), tokenType(), and getBalance() functions MUST be implemented. @author Igor Sobolev <sobolev@zerion.io>/ | abstract contract ProtocolAdapter {
function adapterType() external pure virtual returns (bytes32);
function tokenType() external pure virtual returns (bytes32);
function getBalance(address token, address account) public view virtual returns (uint256);
}
| 8,469,125 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4547,
4516,
1560,
18,
632,
5206,
4516,
559,
9334,
22302,
9334,
471,
2882,
6112,
1435,
4186,
10685,
506,
8249,
18,
632,
4161,
467,
3022,
348,
947,
790,
90,
411,
87,
947,
790,
90,
36,
243... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4547,
4216,
288,
203,
203,
565,
445,
4516,
559,
1435,
3903,
16618,
5024,
1135,
261,
3890,
1578,
1769,
203,
203,
565,
445,
22302,
1435,
3903,
16618,
5024,
1135,
261,
3890,
1578,
1769,
203,
203,
565,
445,
2882,
6112,
12,... |
// Sources flattened with hardhat v2.1.1 https://hardhat.org
// File contracts/oracle/interfaces/FinderInterface.sol
pragma solidity ^0.8.0;
/**
* @title Provides addresses of the live contracts implementing certain interfaces.
* @dev Examples are the Oracle or Store interfaces.
*/
interface FinderInterface {
... | * @notice This method will ultimately be called after `publishPrice` calls `Bridge.deposit()`, which will call `GenericHandler.deposit()` and ultimately this method. @dev This method should basically check that the `Bridge.deposit()` was triggered by a valid publish event./ Advance state so that directly calling Bridge... | function validateDeposit(
uint8 sinkChainID,
bytes32 identifier,
uint256 time,
bytes memory ancillaryData,
int256 price
) public {
bytes32 priceRequestId = _encodePriceRequest(sinkChainID, identifier, time, ancillaryData);
Price storage lookup = prices[pri... | 11,893,392 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1220,
707,
903,
225,
406,
381,
5173,
506,
2566,
1839,
1375,
6543,
5147,
68,
4097,
1375,
13691,
18,
323,
1724,
1435,
9191,
1492,
903,
745,
1375,
7014,
1503,
18,
323,
1724,
20338,
471,
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,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1954,
758,
1724,
12,
203,
3639,
2254,
28,
9049,
3893,
734,
16,
203,
3639,
1731,
1578,
2756,
16,
203,
3639,
2254,
5034,
813,
16,
203,
3639,
1731,
3778,
392,
71,
737,
814,
751,
16,
203,
3639,
509,
5034,
6205,
203,
565,
... |
pragma solidity ^0.6.3;
import "./mintable.sol";
contract StakingReward is Operable, Destructor {
using SafeERC20 for IERC20;
struct UserInfo {
uint256 pendingStaking;
uint256 stakingReleaseTime;
uint256 pendingReward;
}
IERC20 public rewardToken;
IERC20 public stakingTo... | Reward tokens created per block. | uint256 public rewardPerRound;
| 891,698 | [
1,
4625,
348,
7953,
560,
30,
225,
534,
359,
1060,
2430,
2522,
1534,
1203,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19890,
2173,
11066,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../libraries/PausableLib.sol";
contract Pausable {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
e... | * @dev Returns to normal state. Requirements: - The contract must be paused./ | function _unpause() internal virtual whenPaused {
PausableLib.pausableStorage().paused = false;
emit Unpaused(msg.sender);
}
| 2,501,539 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
358,
2212,
919,
18,
29076,
30,
300,
1021,
6835,
1297,
506,
17781,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
318,
19476,
1435,
2713,
5024,
1347,
28590,
288,
203,
3639,
21800,
16665,
5664,
18,
8774,
16665,
3245,
7675,
8774,
3668,
273,
629,
31,
203,
3639,
3626,
1351,
8774,
3668,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
... |
./full_match/44787/0x3743A489DDdC4C77167db3a5dFA77D9cb6C4618d/sources/contracts/messagePassingBridge/MessagePassingBridge.sol | * @dev Bridges tokens from one chain to another, this performs burning or locking @param from The address to bridge tokens from @param target The address to bridge tokens to @param targetChainId The chain ID of the target chain @param amount The amount of tokens to bridge @param isOnTokenTransfer Whether the transfer i... | ) internal {
if (isClosed) revert BRIDGE_LIMITS('closed');
function bridgeToWithLzAdapterParams(
address target,
uint256 targetChainId,
uint256 amount,
bytes calldata adapterParams
}
}
function _bridgeTo(
address from,
address target,
... | 13,289,480 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
1691,
2852,
2430,
628,
1245,
2687,
358,
4042,
16,
333,
11199,
18305,
310,
578,
18887,
632,
891,
628,
1021,
1758,
358,
10105,
2430,
628,
632,
891,
1018,
1021,
1758,
358,
10105,
2430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
2713,
288,
203,
3639,
309,
261,
291,
7395,
13,
15226,
22427,
734,
7113,
67,
8283,
55,
2668,
12204,
8284,
203,
203,
565,
445,
10105,
774,
1190,
48,
94,
4216,
1370,
12,
203,
3639,
1758,
1018,
16,
203,
3639,
2254,
5034,
... |
pragma solidity 0.5.12;
import '@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol';
/**
* @title An implementation of the money related functions.
* @author HardlyDifficult (unlock-protocol.com)
*/
contract MixinFunds
{
/**
* The token-type that this Lock is priced in. If 0, then use... | * Ensures that the msg.sender has paid at least the price stated. With ETH, this means the function originally called was `payable` and the transaction included at least the amount requested. Security: be wary of re-entrancy when calling this function./ There are known bugs in popular ERC20 implements which means we ca... | function _chargeAtLeast(
uint _price
) internal returns (uint)
{
if(_price > 0) {
if(tokenAddress == address(0)) {
require(msg.value >= _price, 'NOT_ENOUGH_FUNDS');
return msg.value;
IERC20 token = IERC20(tokenAddress);
uint balanceBefore = token.balanceOf(address(thi... | 12,894,031 | [
1,
4625,
348,
7953,
560,
30,
380,
1374,
8421,
716,
326,
1234,
18,
15330,
711,
30591,
622,
4520,
326,
6205,
28936,
18,
3423,
512,
2455,
16,
333,
4696,
326,
445,
24000,
2566,
1703,
1375,
10239,
429,
68,
471,
326,
2492,
5849,
622,
4520... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16385,
25070,
12,
203,
565,
2254,
389,
8694,
203,
225,
262,
2713,
1135,
261,
11890,
13,
203,
225,
288,
203,
565,
309,
24899,
8694,
405,
374,
13,
288,
203,
1377,
309,
12,
2316,
1887,
422,
1758,
12,
20,
3719,
288,
... |
./partial_match/1/0xBdbcDFbca3b6Eb90F251b41806A40569c6eB18cd/sources/contracts/TwapDelay.sol | returns wrapped native currency for particular blockchain (WETH or WMATIC) | function weth() external view override returns (address) {
return tokenShares.weth;
}
| 2,747,164 | [
1,
4625,
348,
7953,
560,
30,
225,
1135,
5805,
6448,
5462,
364,
6826,
16766,
261,
59,
1584,
44,
578,
678,
49,
11781,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
341,
546,
1435,
3903,
1476,
3849,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1147,
24051,
18,
91,
546,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Lottery
* @dev Implementa a ideia de loteria atuomatiza do noso projeto
*/
contract Lottery {
address lotteryAddress;
uint256 acumulatedPrize = 0; // Valor acumulado do premio do sorteio
address payable winnerAddre... | Aqui inicializamos e limpamos a lista de participantes para cada novo sorteio | function initParticipantsList() private {
while(participants.length > 0) {
participants.pop();
}
}
| 12,992,177 | [
1,
4625,
348,
7953,
560,
30,
225,
432,
372,
77,
316,
22354,
452,
301,
538,
425,
328,
14532,
301,
538,
279,
17822,
443,
14188,
281,
12602,
276,
16524,
1158,
12307,
1524,
73,
1594,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1208,
1988,
27620,
682,
1435,
3238,
288,
203,
3639,
1323,
12,
2680,
27620,
18,
2469,
405,
374,
13,
288,
203,
5411,
22346,
18,
5120,
5621,
203,
3639,
289,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |