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 |
|---|---|---|---|---|---|---|
pragma solidity ^0.5.8;
pragma experimental ABIEncoderV2;
import {RTokenStructs} from './RTokenStructs.sol';
import {IERC20} from 'openzeppelin-solidity/contracts/token/ERC20/IERC20.sol';
import {IAllocationStrategy} from './IAllocationStrategy.sol';
/**
* @notice RToken interface a ERC20 interface and one can mint ... | * @notice RToken interface a ERC20 interface and one can mint new tokens by trasfering underlying token into the contract, configure _hats_ for addresses and pay earned interest in new _rTokens_./ For external transactions Essential info views statistics views admin functions Events | contract IRToken is RTokenStructs, IERC20 {
function mint(uint256 mintAmount) external returns (bool);
function mintWithSelectedHat(uint256 mintAmount, uint256 hatID)
external
returns (bool);
function mintWithNewHat(
uint256 mintAmount,
address[] calldata recipients,
... | 6,353,173 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
534,
1345,
1560,
279,
4232,
39,
3462,
1560,
471,
1245,
848,
312,
474,
394,
2430,
635,
1377,
433,
345,
586,
310,
6808,
1147,
1368,
326,
6835,
16,
5068,
389,
76,
2323,
67,
364,
1377,
613... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15908,
1345,
353,
534,
1345,
3823,
87,
16,
467,
654,
39,
3462,
288,
203,
565,
445,
312,
474,
12,
11890,
5034,
312,
474,
6275,
13,
3903,
1135,
261,
6430,
1769,
203,
203,
565,
445,
312,
474,
1190,
7416,
44,
270,
12,
11890,... |
./partial_match/3/0xB028F26c30083FF795ca996D9cB72A9847dCdd06/sources/liqwid.sol | @notice Sell `amount` tokens to contract @param amount amount of tokens to be sold | function sell(uint256 amount) public {
address myAddress = this;
}
| 16,614,890 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
348,
1165,
1375,
8949,
68,
2430,
358,
6835,
632,
891,
3844,
3844,
434,
2430,
358,
506,
272,
1673,
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,
565,
445,
357,
80,
12,
11890,
5034,
3844,
13,
1071,
288,
203,
3639,
1758,
3399,
1887,
273,
333,
31,
203,
203,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/56/0x13dCC638AB89f0059cBA505feb47De895B06f359/sources/GoatToken.sol | GoatToken with Governance. | contract GoatToken is BEP20('Goat Token', 'GOAT') {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
mapping (address => address) internal _delegates;
struct Checkpoint {
uint32 fromBlo... | 11,264,081 | [
1,
4625,
348,
7953,
560,
30,
225,
4220,
270,
1345,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4220,
270,
1345,
353,
9722,
52,
3462,
2668,
5741,
270,
3155,
2187,
296,
16387,
789,
6134,
288,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
81,
4... |
//Address: 0x500bdb15c836cd6562c8624b7441fef6eca5786a
//Contract name: UnicornContract
//Balance: 0.0957875 Ether
//Verification Date: 6/4/2018
//Transacion Count: 754
// CODE STARTS HERE
pragma solidity 0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (... | change freezing time for megacandyне минусуем на уже размороженных коняхне используем safeMath, т.к. subFreezingTime в теории не должен быть больше now %) | function minusFreezingTime(uint _unicornId, uint _count) public {
uint price = getUnfreezingPrice(_unicornId);
require(megaCandyToken.burn(msg.sender, price.mul(_count)));
require(breedingDB.freezeEndTime(_unicornId) > now);
breedingDB.minusFreezeEndTime(_unicornId, uint(unicornManag... | 7,222,321 | [
1,
4625,
348,
7953,
560,
30,
2549,
4843,
94,
310,
813,
364,
312,
1332,
1077,
464,
93,
145,
126,
145,
118,
225,
145,
125,
145,
121,
145,
126,
146,
230,
146,
228,
146,
230,
145,
118,
145,
125,
225,
145,
126,
145,
113,
225,
146,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12647,
9194,
94,
310,
950,
12,
11890,
389,
318,
335,
14245,
548,
16,
2254,
389,
1883,
13,
1071,
288,
203,
3639,
2254,
6205,
273,
10833,
9156,
94,
310,
5147,
24899,
318,
335,
14245,
548,
1769,
203,
3639,
2583,
12,
81,
... |
./full_match/5/0x1955444E2872d97396439954798d9A6F492f9027/sources/contracts/WorldCup.sol | 记录玩家对每个国家的下注的次数(后续计算份额)
| mapping (Country => uint) counts; | 1,861,618 | [
1,
4625,
348,
7953,
560,
30,
225,
169,
111,
113,
166,
126,
248,
168,
241,
107,
166,
111,
119,
166,
112,
122,
167,
112,
242,
165,
121,
108,
166,
254,
126,
166,
111,
119,
168,
253,
231,
165,
121,
238,
167,
116,
106,
168,
253,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
2874,
261,
8142,
516,
2254,
13,
6880,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.23;
contract Token {
mapping(address => uint) balances;
mapping (address => mapping (address => uint256)) allowed;
uint public totalSupply;
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _... | ERC20 spec required functions | contract Token {
mapping(address => uint) balances;
mapping (address => mapping (address => uint256)) allowed;
uint public totalSupply;
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
function to... | 14,376,773 | [
1,
4625,
348,
7953,
560,
30,
225,
4232,
39,
3462,
857,
1931,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
288,
203,
203,
202,
6770,
12,
2867,
516,
2254,
13,
324,
26488,
31,
203,
202,
6770,
261,
2867,
516,
2874,
261,
2867,
516,
2254,
5034,
3719,
2935,
31,
203,
202,
11890,
1071,
2078,
3088,
1283,
31,
203,
202,
203,
202,
... |
./full_match/1/0x75af3FD37d7CA74447e865F792f263b2b1159B58/sources/contracts/USDT.sol | Issue a new amount of tokens these tokens are deposited into the owner() address @param _amount Number of tokens to be issued | function issue(uint amount) public onlyOwner {
_mint(owner(), amount);
emit Issue(amount);
}
| 2,924,187 | [
1,
4625,
348,
7953,
560,
30,
225,
11820,
279,
394,
3844,
434,
2430,
4259,
2430,
854,
443,
1724,
329,
1368,
326,
3410,
1435,
1758,
632,
891,
389,
8949,
3588,
434,
2430,
358,
506,
16865,
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,
5672,
12,
11890,
3844,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
81,
474,
12,
8443,
9334,
3844,
1769,
203,
3639,
3626,
11820,
12,
8949,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import "hardhat/console.sol";
import "./IKetherHomepage.sol";
/// KetherHomepage is same as the old one, but ported to solidity v0.8
contract KetherHomepageV2 is IKetherHomepage {
/// Price is 1 kether divided by 1,000,000 pixels
uint public constant w... | forceNSFW allows the owner to override the NSFW status for a specific ad unit. | function forceNSFW(uint _idx, bool _NSFW) public override {
require(msg.sender == contractOwner);
Ad storage ad = ads[_idx];
ad.forceNSFW = _NSFW;
emit Publish(_idx, ad.link, ad.image, ad.title, ad.NSFW || ad.forceNSFW);
}
| 12,640,347 | [
1,
4625,
348,
7953,
560,
30,
225,
2944,
3156,
29753,
5360,
326,
3410,
358,
3849,
326,
11472,
29753,
1267,
364,
279,
2923,
1261,
2836,
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,
... | [
1,
1,
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,
2944,
3156,
29753,
12,
11890,
389,
3465,
16,
1426,
389,
3156,
29753,
13,
1071,
3849,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
6835,
5541,
1769,
203,
3639,
4052,
2502,
1261,
273,
12767,
63,
67,
3465,
15533,
203,
3... |
./partial_match/4/0xB59c7E225A7645E03c57E77053392C5e5D51bb24/sources/GET_NFT_V3.sol | Transfer the NFT to destinationAddress | _relayerTransferFrom(originAddress, destinationAddress, nftIndex);
| 8,751,959 | [
1,
4625,
348,
7953,
560,
30,
225,
12279,
326,
423,
4464,
358,
2929,
1887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
2878,
1773,
5912,
1265,
12,
10012,
1887,
16,
2929,
1887,
16,
290,
1222,
1016,
1769,
203,
2,
-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: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* 2 ways to call parent constructors.
* Order of initialization.
*/
/**
* @notice Mom is a parent contract of the Child contract.
*/
contract Mom {
string public firstName;
constructor(string memory _firstName) {
firstName = _f... | here you can add your code as nomal | constructor(string memory _firstName, string memory _lastName) Mom(_firsName) Dad(_lastName) {
}
| 5,477,833 | [
1,
4625,
348,
7953,
560,
30,
225,
2674,
1846,
848,
527,
3433,
981,
487,
12457,
287,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
12,
1080,
3778,
389,
3645,
461,
16,
533,
3778,
389,
2722,
461,
13,
490,
362,
24899,
74,
10539,
461,
13,
463,
361,
24899,
2722,
461,
13,
288,
203,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
//Address: 0x8799e7801c602c78e45bcd64196bef0ed16f2d20
//Contract name: Crowdsale
//Balance: 1.292712002 Ether
//Verification Date: 6/19/2018
//Transacion Count: 30
// CODE STARTS HERE
// текущая версия - 9 тестовая для развертывания в Rinkeby
// добавлены комменты в require
// исправлена ф-ия refund
// блокировки пе... | PreSale minimum 10 days | function startPreICO() public onlyOwner onlyInState(State.PreSale) {
require (now >= preSaleStartTime + 1 days, "Mimimum period Pre-Sale is 10 days");
setState(State.PreICO);
preICOStartTime = uint64(now);
}
| 2,482,927 | [
1,
4625,
348,
7953,
560,
30,
225,
2962,
30746,
5224,
1728,
4681,
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,
787,
1386,
2871,
51,
1435,
1071,
1338,
5541,
1338,
382,
1119,
12,
1119,
18,
1386,
30746,
13,
288,
203,
3639,
2583,
261,
3338,
1545,
675,
30746,
13649,
397,
404,
4681,
16,
315,
49,
381,
2422,
3879,
2962,
17,
30746,
353,
... |
./full_match/1/0x3592954497dAFb830469d25F8c46ab0Afd9C27F1/sources/browser/CoreUtils.sol | 要清算的质押物数量X = (AC*price - PCR*PD)/(price*(1-PCR*Discount))X = (PCR*PD - AC*price)/(price*(PCR*Discount-1))若质押资产不能清偿债务,全额清算逾期未还款 | function X(uint256 id) public view returns (uint256 res) {
IBondData b = bondData(id);
if (!isUnsafe(id)) {
return 0;
}
if (isInsolvency(id)) {
return b.getBorrowAmountGive();
}
if (now >= b.bondExpired().add(b.gracePeriod())) {
... | 4,923,191 | [
1,
4625,
348,
7953,
560,
30,
225,
169,
104,
228,
167,
121,
232,
168,
111,
250,
168,
253,
231,
169,
117,
106,
167,
237,
125,
168,
236,
107,
167,
248,
113,
170,
234,
242,
60,
273,
261,
2226,
14,
8694,
300,
453,
5093,
14,
21527,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
12,
11890,
5034,
612,
13,
1071,
1476,
1135,
261,
11890,
5034,
400,
13,
288,
203,
3639,
16178,
751,
324,
273,
8427,
751,
12,
350,
1769,
203,
203,
3639,
309,
16051,
291,
23912,
12,
350,
3719,
288,
203,
5411,
327,
... |
/**
*Submitted for verification at Etherscan.io on 2021-11-25
*/
// Sources flattened with hardhat v2.6.7 https://hardhat.org
// File @openzeppelin/contracts/utils/[email protected]
//SPDX-License-Identifier: Unlicense
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution con... | value is available idresult, user will get $skinsInBox skinsoffset 4 bytes very time to generate random id | function _mintLoot(address _receiveAddress) internal {
bytes32 seed = keccak256(abi.encode(_receiveAddress, block.number));
uint256[] memory availableIds = new uint256[](allSkins);
uint256 length = availableIds.length;
uint256[] memory selectedIds = new uint256[](skinsInBox);
... | 15,079,027 | [
1,
4625,
348,
7953,
560,
30,
460,
353,
2319,
612,
2088,
16,
729,
903,
336,
271,
7771,
2679,
382,
3514,
4343,
2679,
3348,
1059,
1731,
8572,
813,
358,
2103,
2744,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
1504,
352,
12,
2867,
389,
18149,
1887,
13,
2713,
288,
203,
3639,
1731,
1578,
5009,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
24899,
18149,
1887,
16,
1203,
18,
2696,
10019,
203,
3639,
2254,
5034,
852... |
./full_match/5/0x381DbFe11E19fC254341E0Db9810d3E8ED016f9E/sources/contracts/OwnableTokenAccessControl.sol | @dev Emitted when `account` is revoked `access`. | event AccessRevoked(bytes32 indexed access, address indexed account);
| 1,939,184 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
512,
7948,
1347,
1375,
4631,
68,
353,
22919,
1375,
3860,
8338,
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,
871,
5016,
10070,
14276,
12,
3890,
1578,
8808,
2006,
16,
1758,
8808,
2236,
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,
... |
./full_match/137/0x6498B795a4F334958690C3Bd6C008D1C859eddb7/sources/contracts/PrmntAdapterXp.sol | * @dev gets a color hue for the matching level @param _level represents the score level @param _settingsId represents the Settings ID/ | function getHue(uint _level, uint _settingsId) public view returns (uint){
return settingsMap[_settingsId].hues[_level];
}
| 4,729,464 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
5571,
279,
2036,
16846,
364,
326,
3607,
1801,
632,
891,
389,
2815,
8686,
326,
4462,
1801,
632,
891,
389,
4272,
548,
8686,
326,
8709,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
7628,
344,
12,
11890,
389,
2815,
16,
2254,
389,
4272,
548,
13,
1071,
1476,
1135,
261,
11890,
15329,
203,
3639,
327,
1947,
863,
63,
67,
4272,
548,
8009,
76,
3610,
63,
67,
2815,
15533,
203,
565,
289,
203,
203,
2,
-100,
... |
./partial_match/84531/0xE87F8BeEb04bb303D2D6B4785bc800DdBF7bbD83/sources/contracts/src/diamond/facets/reentrancy/ReentrancyGuard.sol | * @notice lock functions that use the nonReentrant modifier/ | function _lockReentrancyGuard() internal virtual {
ReentrancyGuardStorage.layout().status = REENTRANCY_STATUS_LOCKED;
}
| 16,682,525 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2176,
4186,
716,
999,
326,
1661,
426,
8230,
970,
9606,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
739,
426,
8230,
12514,
16709,
1435,
2713,
5024,
288,
203,
565,
868,
8230,
12514,
16709,
3245,
18,
6741,
7675,
2327,
273,
2438,
2222,
54,
1258,
16068,
67,
8608,
67,
6589,
2056,
31,
203,
225,
289,
203,
203,
2,
-100,
... |
./full_match/11155111/0x6B086AA45FDC47ea899f7881FF511D89a59CA4B3/sources/@lukso/lsp-smart-contracts/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol | * @title Interface of the LSP7 - Digital Asset standard, a fungible digital asset./ --- Events --- Token queries --- Token owner queries --- Operator functionality --- Transfer functionality | interface ILSP7DigitalAsset is IERC165, IERC725Y {
event Transfer(
address indexed operator,
address indexed from,
address indexed to,
uint256 amount,
bool allowNonLSP1Recipient,
bytes data
);
event AuthorizedOperator(
address indexed operator,
... | 3,835,883 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
6682,
434,
326,
511,
3118,
27,
300,
11678,
7053,
10494,
4529,
16,
279,
9831,
75,
1523,
25615,
3310,
18,
19,
9948,
9043,
9948,
3155,
6218,
9948,
3155,
3410,
6218,
9948,
11097,
14176,
9948,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
467,
3045,
52,
27,
4907,
7053,
6672,
353,
467,
654,
39,
28275,
16,
467,
654,
39,
27,
2947,
61,
288,
203,
203,
565,
871,
12279,
12,
203,
3639,
1758,
8808,
3726,
16,
203,
3639,
1758,
8808,
628,
16,
203,
3639,
1758,
8808,
... |
// LC->24.10.2015
tree_scorers ОдушОбъект
tree_scorer ОдушОбъект language=Russian
{
if context { местоим_сущ:кто{} }
then 1
}
tree_scorer ОдушОбъект language=Russian
{
if context { местоим_сущ:кто-нибудь{} }
then 1
}
tree_scorer ОдушОбъект language=Russian
{
if context { местоим_сущ:кто-то{} }
then 1
}
... | такое устройство для моих целей бесполезно. ~~~~~~~~~~ ^^^ ^^^^^^^^^^ | tree_scorer language=Russian { if context { прилагательное:бесполезный{}.предлог:для{} } then 2 }
| 12,629,382 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
146,
229,
145,
113,
145,
123,
145,
127,
145,
118,
225,
146,
230,
146,
228,
146,
229,
146,
227,
145,
127,
145,
122,
146,
228,
146,
229,
145,
115,
145,
127,
225,
145,
117,
145,
124,
146,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3413,
67,
1017,
8922,
2653,
33,
54,
5567,
2779,
288,
309,
819,
288,
225,
145,
128,
146,
227,
145,
121,
145,
124,
145,
113,
145,
116,
145,
113,
146,
229,
145,
118,
145,
124,
146,
239,
145,
126,
145,
127,
145,
118,
30,
145,
1... |
pragma solidity 0.7.6;
import "contracts/protocol/futures/StreamFuture.sol";
/**
* @title Contract for Aave Future
* @notice Handles the future mechanisms for the Aave platform
* @dev Implement directly the stream future abstraction as it fits the aToken IBT
*/
contract AaveFuture is StreamFuture {
}
pragma soli... | * @notice Getter for FYT address of a particular period @param _periodIndex period index @return FYT address/ | function getFYTofPeriod(uint256 _periodIndex) public view returns (address) {
require(_periodIndex < getNextPeriodIndex(), "No FYT for this period yet");
return address(fyts[_periodIndex]);
}
| 5,944,926 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
387,
364,
478,
61,
56,
1758,
434,
279,
6826,
3879,
632,
891,
389,
6908,
1016,
3879,
770,
632,
2463,
478,
61,
56,
1758,
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,
1,
0,
0,
0,
0,
0,
0,
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,
2812,
61,
774,
74,
5027,
12,
11890,
5034,
389,
6908,
1016,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
2583,
24899,
6908,
1016,
411,
6927,
5027,
1016,
9334,
315,
2279,
478,
61,
56,
364,
333,
3879,
4671,
8863,
... |
pragma solidity ^0.4.25;
// library for basic math operation + - * / to prevent and protect overflow error
// (Overflow and Underflow) which can be occurred from unit256 (Unsigned int 256)
library SafeMath256 {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if(a==0 || b==0)
... | Start Send Token to Found and Advisor | for(i=0;i<advisors.length;i++)
| 2,573,329 | [
1,
4625,
348,
7953,
560,
30,
225,
3603,
2479,
3155,
358,
10750,
471,
4052,
10227,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
1884,
12,
77,
33,
20,
31,
77,
32,
361,
3516,
1383,
18,
2469,
31,
77,
27245,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity >=0.4.22 <0.6.0;
// 代币系统
contract Token {
uint tokenTotal; // 代币总和
uint tokenPrice; // 代币价格
uint balanceTokens; // 合约余额
// 所有用户余额记录
mapping(address=>uint) balances;
event buySuccess(address addr, uint num);
event sellSuccess(address addr, uint num);
// 获取余额信息 [代币... | 代币系统 所有用户余额记录 获取余额信息 [代币总和 代币价格 合约余额 合约金币 用户余额 用户金币] | contract Token {
mapping(address=>uint) balances;
event buySuccess(address addr, uint num);
event sellSuccess(address addr, uint num);
function getBalanceInfo() public view returns (
uint, uint, uint, uint, uint, uint) {
return (tokenTotal, tokenPrice,
balanceTokens, address(t... | 12,874,683 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
165,
124,
101,
166,
121,
228,
168,
116,
124,
168,
124,
258,
225,
167,
236,
227,
167,
255,
236,
168,
247,
106,
167,
235,
120,
165,
126,
252,
170,
100,
256,
169,
111,
113,
166,
126,
248,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3155,
288,
203,
203,
565,
2874,
12,
2867,
9207,
11890,
13,
324,
26488,
31,
203,
203,
565,
871,
30143,
4510,
12,
2867,
3091,
16,
2254,
818,
1769,
203,
565,
871,
357,
80,
4510,
12,
2867,
3091,
16,
2254,
818,
1769,
203,
203... |
pragma solidity 0.8.7;
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@//
//@@@@@@@@& (@@@@@@@@@@@@@ /@@@@@@@@@//
//@@@@@@ /@@@@@@@ /@@@@@@//
//@@@@@ (@@@@@ (@@@@@//
//@@@@@( @@@@@( &@@@@@//
//@@@@@@@ &@@@@@@ @@@@@@@//
//@@@@@@@@@@@@@@% ... | All time initialization is rounded to the week | constructor(uint256 _startTime) public {
uint256 t = (_startTime / WEEK) * WEEK;
}
| 12,161,606 | [
1,
4625,
348,
7953,
560,
30,
225,
4826,
813,
10313,
353,
16729,
358,
326,
4860,
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,
3885,
12,
11890,
5034,
389,
1937,
950,
13,
1071,
288,
203,
3639,
2254,
5034,
268,
273,
261,
67,
1937,
950,
342,
26664,
13,
380,
26664,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.5.17;
import "./WLToken.sol";
import "./PriceOracle.sol";
contract UnitrollerAdminStorage {
/**
* @notice Administrator for this contract
*/
address public admin;
/**
* @notice Pending administrator for this contract
*/
address public pendingAdmin;
... | @notice The portion of welRate that each market currently receives | mapping(address => uint) public welSpeeds;
| 6,366,741 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1021,
14769,
434,
341,
292,
4727,
716,
1517,
13667,
4551,
17024,
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,
565,
2874,
12,
2867,
516,
2254,
13,
1071,
341,
292,
16562,
87,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d3b7b2a5b693b2b8bcbeb1b2fdb0bcbe">[email protected]</a>
// released under Apache 2.0 licence
contract ERC20Basic {
function totalSupply(... | ------------------------------------------------------------------------ Process and settle balances for all buyers with a nonzero balance for a specific api ------------------------------------------------------------------------ if buyer has never paid, assume they paid a week ago. or whatever now - defaultBuyerLas... | function processSalesForAllBuyers(uint apiId) private returns (uint totalPayable, uint totalBuyers) {
APIBalance storage apiBalance = owed[apiId];
uint currentTime = now;
address[] memory oldNonzeroAddresses = apiBalance.nonzeroAddresses;
apiBalance.nonzeroAddresses = new address[](... | 2,307,838 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
4389,
471,
444,
5929,
324,
26488,
364,
777,
30143,
414,
598,
279,
16966,
11013,
364,
279,
2923,
1536,
8879,
17082,
309,
27037,
711,
5903,
30591,
16,
6750,
2898,
30591,
279,
4860,
20325,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
23729,
1290,
1595,
38,
9835,
414,
12,
11890,
1536,
548,
13,
3238,
1135,
261,
11890,
2078,
9148,
429,
16,
2254,
2078,
38,
9835,
414,
13,
288,
203,
3639,
1491,
13937,
2502,
1536,
13937,
273,
2523,
329,
63,
2425,
548... |
//Address: 0x049a5bf874f241d94232137ef728a9c7dd0d7550
//Contract name: DataTradingToken
//Balance: 0 Ether
//Verification Date: 1/9/2018
//Transacion Count: 682
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title ERC20Interface
* @dev Standart version of ERC20 interface
*/
contract ERC20Interface {
uin... | * @title DataTradingToken @dev Implemantation of the DataTrading token/ | contract DataTradingToken is Ownable, ERC20Interface {
string public constant symbol = "DTT";
string public constant name = "DataTrading Token";
uint8 public constant decimals = 18;
uint256 private _unmintedTokens = 360000000*uint(10)**decimals;
mapping(address => uint256) balances;
mapping... | 1,071,385 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1910,
1609,
7459,
1345,
632,
5206,
9457,
3269,
970,
367,
434,
326,
1910,
1609,
7459,
1147,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1910,
1609,
7459,
1345,
353,
14223,
6914,
16,
4232,
39,
3462,
1358,
288,
203,
565,
533,
1071,
5381,
3273,
273,
315,
40,
1470,
14432,
203,
565,
533,
1071,
5381,
508,
273,
315,
751,
1609,
7459,
3155,
14432,
203,
565,
2254,
2... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./ERC20MintableDetailed.sol";
import "../math/DecimalMath.sol";
/**
* @title ERC20DividendableEth
* @dev Implements an ERC20MintableDetailed token with a dividend distribution procedure for etehreum received
* @notice This contrac... | * @dev Function to update the account of the sender @notice Will revert if account need not be updated/ | function claimDividends() public virtual returns(uint256) {
return _claimDividends(msg.sender);
}
| 7,302,515 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
1089,
326,
2236,
434,
326,
5793,
632,
20392,
9980,
15226,
309,
2236,
1608,
486,
506,
3526,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
7244,
350,
5839,
1435,
1071,
5024,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
389,
14784,
7244,
350,
5839,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.24;
/**
* , ,
* $, $, ,
* "ss.$ss. .s'
* , .ss$$$$$$$$$$s,
* $. s$$$$$$$$$$$$$$`$$Ss
* ... | 25% to winner, 25% to next round, 3% to com
| potSplit_[0] = F3Ddatasets.PotSplit(47,0); | 30,011 | [
1,
4625,
348,
7953,
560,
30,
6969,
9,
358,
5657,
1224,
16,
6969,
9,
358,
1024,
3643,
16,
890,
9,
358,
532,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5974,
5521,
67,
63,
20,
65,
273,
478,
23,
40,
21125,
18,
18411,
5521,
12,
9462,
16,
20,
1769,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Sources flattened with hardhat v2.6.8 https://hardhat.org
// File @aragon/os/contracts/common/UnstructuredStorage.sol@v4.4.0
/*
* SPDX-License-Identifier: MIT
*/
pragma solidity ^0.4.24;
library UnstructuredStorage {
function getStorageBool(bytes32 position) internal view returns (bool data) {
... | keccak256("CREATE_VOTES_ROLE");
| bytes32 public constant CREATE_VOTES_ROLE = 0xe7dcd7275292e064d090fbc5f3bd7995be23b502c1fed5cd94cfddbbdcd32bbc; | 12,111,133 | [
1,
4625,
348,
7953,
560,
30,
417,
24410,
581,
5034,
2932,
9344,
67,
16169,
7296,
67,
16256,
8863,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1731,
1578,
1071,
5381,
13278,
67,
16169,
7296,
67,
16256,
273,
374,
6554,
27,
72,
4315,
27,
5324,
25,
5540,
22,
73,
20,
1105,
72,
5908,
20,
74,
13459,
25,
74,
23,
16410,
27,
2733,
25,
2196,
4366,
70,
25,
3103,
71,
21,
... |
./partial_match/5/0x89D9f11e962f2Eb5a4c8c3c057199b6e7Eafb63B/sources/Factory.sol | replace value with last value | self.valueList[index] = lastVal;
| 16,834,083 | [
1,
4625,
348,
7953,
560,
30,
225,
1453,
460,
598,
1142,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
365,
18,
1132,
682,
63,
1615,
65,
273,
1142,
3053,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.8.0;
// hero contract
contract Hero {
// enum creates types
//The Boolean type, for example is often a pre-defined enumeration of the values False and True.
// no semicolon
enum Class { Mage, Healer, Barbarian }
//for every address assign a dynamic list
mapping(address => u... | to access the strength bits (2-7), shift, then & to read the other bits greater than 32 will be zero, which ignores other stats | function getHealth(uint hero) public pure returns(uint32) {
return uint32((hero >> 5) & 0x1F);
}
| 12,860,556 | [
1,
4625,
348,
7953,
560,
30,
358,
2006,
326,
21638,
4125,
261,
22,
17,
27,
3631,
4654,
16,
1508,
473,
358,
855,
326,
1308,
4125,
6802,
2353,
3847,
903,
506,
3634,
16,
1492,
17868,
1308,
3177,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
7802,
12,
11890,
366,
2439,
13,
1071,
16618,
1135,
12,
11890,
1578,
13,
288,
203,
3639,
327,
2254,
1578,
12443,
1614,
83,
1671,
1381,
13,
473,
374,
92,
21,
42,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
./full_match/5/0x48F97bEd386E31d3Efcb52C0B6C4065B50f45E91/sources/contracts/genesis.sol | * @dev See {IERC165-supportsInterface}./ | function supportsInterface(bytes4 interfaceId)
public
view
virtual
override
returns (bool)
{
return
super.supportsInterface(interfaceId) ||
interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981;
}
| 11,596,069 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
28275,
17,
28064,
1358,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
203,
5411,
2240,
18,
28064,
1358,
12,
5831,
5... |
pragma solidity ^0.4.24;
contract SafeMath {
function safeMul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeSub(uint a, uint b) internal pure returns (uint) {
assert(b <= a);
return a... | The volume filled so far on the sell side in the current auction
| uint executionSellVolume; | 2,570,653 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3940,
6300,
1427,
10247,
603,
326,
357,
80,
4889,
316,
326,
783,
279,
4062,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
4588,
55,
1165,
4545,
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/0x68c4cc21378301cfdd5702D66D58a036D7bAFE28/sources/src/RealitioForeignArbitrationProxyWithAppeals.sol | Multiplier for calculating the appeal fee that must be paid for the answer that the arbitrator didn't rule for in the previous round.
| uint256 public immutable loserMultiplier; | 8,333,623 | [
1,
4625,
348,
7953,
560,
30,
225,
5991,
5742,
364,
21046,
326,
7226,
287,
14036,
716,
1297,
506,
30591,
364,
326,
5803,
716,
326,
10056,
86,
639,
10242,
1404,
1720,
364,
316,
326,
2416,
3643,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
11732,
437,
550,
23365,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/100/0xe6b9f1766068BdFB4c59dD416A9FDe1E471276F2/sources/contracts/AssetTokenized.sol | One token costs 1 ether
| pricePerEth = 1000000000000000000; | 14,283,134 | [
1,
4625,
348,
7953,
560,
30,
225,
6942,
1147,
22793,
404,
225,
2437,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
6205,
2173,
41,
451,
273,
2130,
12648,
12648,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2020-12-18
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Address.sol
pragma solidity ^0.6.2;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.... | * @dev Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`/ | function admin() external ifAdmin returns (address) {
return _admin();
}
| 2,453,197 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
783,
3981,
18,
5219,
30,
5098,
326,
3981,
848,
745,
333,
445,
18,
2164,
288,
3886,
4446,
17,
588,
3886,
4446,
5496,
399,
2579,
30,
2974,
336,
333,
460,
7712,
848,
855,
5122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3981,
1435,
3903,
309,
4446,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
3666,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// to test issue with nodes breaking with large clients over WS
// fixed in web3 with fragmentationThreshold: 8192
pragma solidity ^0.4.17;
contract BigFreakingContract {
event Transfer(address indexed from, address indexed to, uint value);
event Approval( address indexed owner, address indexed spender, uint valu... | TODO: should increase instead | function approve_893(address spender, uint value) public returns (bool ok) {
_approvals[msg.sender][spender] = value;
emit Approval( msg.sender, spender, value );
return true;
}
| 6,454,606 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
1410,
10929,
3560,
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,
225,
445,
6617,
537,
67,
6675,
23,
12,
2867,
17571,
264,
16,
2254,
460,
13,
1071,
1135,
261,
6430,
1529,
13,
288,
203,
565,
389,
12908,
4524,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
65,
273,
460,
31,
203,
565,
3626,
1716,
6... |
./full_match/42220/0x468B6Fb3b70CBD06290786190bB633c288C6c545/sources/contracts/OnChainEscrow.sol | Check escrow value is greater than minimum value
| require(_value > 1, "Escrow value too small"); | 16,348,077 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
2904,
492,
460,
353,
6802,
2353,
5224,
460,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2583,
24899,
1132,
405,
404,
16,
315,
6412,
492,
460,
4885,
5264,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.3;
pragma experimental ABIEncoderV2;
import "zos-lib/contracts/Initializable.sol";
import "openzeppelin-eth/contracts/token/ERC721/ERC721Metadata.sol";
import "openzeppelin-eth/contracts/token/ERC721/ERC721.sol";
import "contracts/erc721/ERC721Enumerable.sol";
import "contracts/AnchorRepository.so... | * @dev Checks that the document has a read rule set using precise proofs and extract the index of the role @param signingRoot bytes32 hash of all invoice fields which is signed @param property bytes property for leaf construction @param value bytes value for leaf construction @param salt bytes32 salt for leaf construct... | function _requireReadRole(
bytes32 signingRoot,
bytes memory property,
bytes memory value,
bytes32 salt,
bytes32[] memory proof
)
internal
pure
returns (bytes8 readRuleIndex)
{
bytes8 readRuleIndex_ = Utilities.extractIndex(property, 8);
bytes8 readRuleRoleIndex_ = Utilities.extr... | 1,799,903 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13074,
716,
326,
1668,
711,
279,
855,
1720,
444,
1450,
31293,
14601,
87,
471,
2608,
326,
770,
434,
326,
2478,
632,
891,
10611,
2375,
1731,
1578,
1651,
434,
777,
9179,
1466,
1492,
353,
672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6528,
1994,
2996,
12,
203,
565,
1731,
1578,
10611,
2375,
16,
203,
565,
1731,
3778,
1272,
16,
203,
565,
1731,
3778,
460,
16,
203,
565,
1731,
1578,
4286,
16,
203,
565,
1731,
1578,
8526,
3778,
14601,
203,
225,
262,
... |
pragma solidity ^0.4.24;
/**
* @title It holds the storage variables related to ERC20DividendCheckpoint module
*/
contract ERC20DividendCheckpointStorage {
// Mapping to token address for each dividend
mapping (uint256 => address) public dividendTokens;
}
/**
* @title Holds the storage varia... | * @title ERC20 interface/ | interface IERC20 {
function decimals() external view returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address _owner) external view returns (uint256);
function allowance(address _owner, address _spender) external view returns (uint256);
function transfer(ad... | 926,200 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
1560,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
15105,
1435,
3903,
1476,
1135,
261,
11890,
28,
1769,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
11013,
951,
12,
2867,
389,
8443,
1... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Address.so... | using address from openzeppelin Token name Token symbol struct | contract freeZone is ERC721, ERC721Enumerable, ERC721URIStorage, AccessControl {
using Address for address payable;
using Counters for Counters. Counter;
using Strings for uint256;
string private _name;
string private _symbol;
pragma solidity ^0.8.6;
struct Customer {
string pseudo;... | 14,121,074 | [
1,
4625,
348,
7953,
560,
30,
225,
1450,
1758,
628,
1696,
94,
881,
84,
292,
267,
3155,
508,
3155,
3273,
1958,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4843,
4226,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
4232,
39,
27,
5340,
3098,
3245,
16,
24349,
288,
203,
203,
565,
1450,
5267,
364,
1758,
8843,
429,
31,
203,
565,
1450,
9354,
87,
364,
9354,
87,
... |
// SPDX-License-Identifier: AGPL-3.0
// MgvRoot.sol
// Copyright (C) 2021 Giry SAS.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your... | Convenience function to check whether given pair is locked */ | function locked(address outbound_tkn, address inbound_tkn)
external
view
returns (bool)
{
P.Local.t local = locals[outbound_tkn][inbound_tkn];
return local.lock();
}
| 12,999,672 | [
1,
4625,
348,
7953,
560,
30,
225,
735,
9080,
445,
358,
866,
2856,
864,
3082,
353,
8586,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8586,
12,
2867,
11663,
67,
16099,
82,
16,
1758,
13357,
67,
16099,
82,
13,
203,
565,
3903,
203,
565,
1476,
203,
565,
1135,
261,
6430,
13,
203,
225,
288,
203,
565,
453,
18,
2042,
18,
88,
1191,
273,
8985,
63,
659,
3653... |
./full_match/5/0x08fA73274Dc7EF3Eb0CDBb5D6D07C8454cD48b5A/sources/_superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/Definitions.sol | * @title Super app definitions library @author Superfluid/ The app is at the final level, hence it doesn't want to interact with any other app The app is at the second level, it may interact with other final level apps if whitelisted | library SuperAppDefinitions {
/ App manifest config word
uint256 constant internal APP_LEVEL_MASK = 0xFF;
uint256 constant internal APP_LEVEL_FINAL = 1 << 0;
uint256 constant internal APP_LEVEL_SECOND = 1 << 1;
pragma solidity >= 0.8.4;
function getAppCallbackLevel(uint256 configWord) internal ... | 1,889,999 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14845,
595,
6377,
5313,
632,
4161,
14845,
2242,
1911,
19,
1021,
595,
353,
622,
326,
727,
1801,
16,
20356,
518,
3302,
1404,
2545,
358,
16592,
598,
1281,
1308,
595,
1021,
595,
353,
622,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14845,
3371,
7130,
288,
203,
203,
565,
342,
4677,
5643,
642,
2076,
203,
203,
565,
2254,
5034,
5381,
2713,
9146,
67,
10398,
67,
11704,
273,
374,
6356,
31,
203,
203,
565,
2254,
5034,
5381,
2713,
9146,
67,
10398,
67,
7263,
10... |
/*
Copyright 2018 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | Record taker token and amount to return values | uint256 orderCount = scannedBytes >> 6;
| 5,518,610 | [
1,
4625,
348,
7953,
560,
30,
225,
5059,
268,
6388,
1147,
471,
3844,
358,
327,
924,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1353,
1380,
273,
22711,
2160,
1671,
1666,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `own... | @dev A mapping from CobeFriendIDs to an address that has been approved to call transferFrom(). Each CobeFriend can only have one approved address for transfer at any time. A zero value means no approval is outstanding. | mapping (uint256 => address) public CobeFriendIndexToApproved;
| 13,736,937 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
432,
2874,
628,
385,
947,
73,
42,
7522,
5103,
358,
392,
1758,
716,
711,
2118,
20412,
358,
745,
225,
7412,
1265,
7675,
8315,
385,
947,
73,
42,
7522,
848,
1338,
1240,
1245,
20412,
1758,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
202,
6770,
261,
11890,
5034,
516,
1758,
13,
1071,
385,
947,
73,
42,
7522,
1016,
774,
31639,
31,
203,
2,
-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;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint25... | * @title Standard ERC20 token @dev Implementation of the basic standard token./ | contract StandardToken is ERC20 {
using SafeMath
for uint256;
mapping(address => uint256) balances;
mapping(address => mapping(address => uint256)) allowed;
function balanceOf(address _owner) public view returns(uint256 balance) {
return balances[_owner];
}
function transfer(addr... | 509,646 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
8263,
4232,
39,
3462,
1147,
632,
5206,
25379,
434,
326,
5337,
4529,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8263,
1345,
353,
4232,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
203,
565,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
324,
26488,
31,
203,
565,
2874,
12,
2867,
516,
2874,
12,
2867,
516,
2... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error.
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
... | Mon, 30 Apr 2018 00:00:00 +0000 (GMT)
| uint256 public publicRelease = 1525046400; | 1,792,638 | [
1,
4625,
348,
7953,
560,
30,
225,
9041,
16,
5196,
432,
683,
14863,
9631,
30,
713,
30,
713,
397,
2787,
261,
25315,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
2254,
5034,
1071,
1071,
7391,
282,
273,
4711,
2947,
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,
-... |
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.6;
import "./CToken.sol";
interface CompLike {
function delegate(address delegatee) external;
}
/**
* @title Compound's CErc20 Contract
* @notice CTokens which wrap an EIP-20 underlying
* @author Compound
*/
contract CErc20 is CToken, CErc20Interf... | * @notice Sender supplies assets into the market and receives cTokens in exchange @dev Accrues interest whether or not the operation succeeds, unless reverted @param mintAmount The amount of the underlying asset to supply @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)/ | function mint(uint mintAmount) override external returns (uint) {
mintInternal(mintAmount);
return NO_ERROR;
}
| 1,632,422 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15044,
1169,
5259,
7176,
1368,
326,
13667,
471,
17024,
276,
5157,
316,
7829,
632,
5206,
15980,
86,
3610,
16513,
2856,
578,
486,
326,
1674,
21933,
16,
3308,
15226,
329,
632,
891,
312,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
12,
11890,
312,
474,
6275,
13,
3849,
3903,
1135,
261,
11890,
13,
288,
203,
3639,
312,
474,
3061,
12,
81,
474,
6275,
1769,
203,
3639,
327,
3741,
67,
3589,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-... |
./full_match/7001/0xAc3c7d8E322c8f00F1aAC7FBB41C93cF285F082C/sources/contracts/Swap.sol | bool success1 = ZetaEth(zetaToken).approve(address(connector), zetaValueAndGas); address recipientAddr = BytesHelperLib.bytesToAddress(context.origin, 0); (, uint256 gasFee) = IZRC20(zrc20).withdrawGasFee(); IWETH9(targetZRC20).approve(targetZRC20, gasFee); IWETH9(targetZRC20).transfer(recipientAddr, outputAmount - ga... | function onCrossChainCall(zContext calldata context, address zrc20, uint256 amount, bytes calldata message)
external
virtual
override
{
if (msg.sender != address(systemContract)) {
revert SenderNotSystemContract();
}
uint32 targetChainID;
byte... | 13,228,923 | [
1,
4625,
348,
7953,
560,
30,
225,
1426,
2216,
21,
273,
2285,
1066,
41,
451,
12,
94,
1066,
1345,
2934,
12908,
537,
12,
2867,
12,
23159,
3631,
998,
1066,
620,
1876,
27998,
1769,
1758,
8027,
3178,
273,
5985,
2276,
5664,
18,
3890,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
13941,
3893,
1477,
12,
94,
1042,
745,
892,
819,
16,
1758,
998,
1310,
3462,
16,
2254,
5034,
3844,
16,
1731,
745,
892,
883,
13,
203,
3639,
3903,
203,
3639,
5024,
203,
3639,
3849,
203,
565,
288,
203,
3639,
309,
261,... |
./full_match/80001/0xaBc7fce253385A543D37fF29D248B5EfB157CF7A/sources/contracts/YieldManagers/MarketLiquidityManagerSimple.sol | / Look here for info what those variables where: https:polygonscan.com/address/0x19ac199be93a9d06ee259ff3a39f71d35bbd3234#code#F16#L31 uint256 public amountReservedInCaseOfInsufficientYieldProviderLiquidity; | contract MarketLiquidityManagerSimple is AccessControlledAndUpgradeable {
using NoRevertERC20 for IERC20;
║ VARIABLES ║
╚═════════════════════════════╝*/
uint256[10] private __dirtyStorageFromOldYieldManagerVersions;
address public immutable market;
IERC20 public immutable paymentT... | 5,636,133 | [
1,
4625,
348,
7953,
560,
30,
342,
10176,
2674,
364,
1123,
4121,
5348,
3152,
1625,
30,
2333,
30,
20917,
9871,
18,
832,
19,
2867,
19,
20,
92,
3657,
1077,
19818,
2196,
11180,
69,
29,
72,
7677,
1340,
2947,
29,
1403,
23,
69,
5520,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6622,
278,
48,
18988,
24237,
1318,
5784,
353,
24349,
1259,
1876,
10784,
429,
288,
203,
225,
1450,
2631,
426,
1097,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
225,
163,
248,
244,
1850,
22965,
55,
1850,
225,
... |
// SPDX-License-Identifier: MIT
// File: contracts/SafeMath.sol
pragma solidity >=0.6 <0.7.0;
/**
* @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 ... | * @dev Returns the symbol of the token, usually a shorter version of the name./ | function symbol() public pure returns (string memory) {
return "LLE";
}
| 11,981,644 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
3273,
434,
326,
1147,
16,
11234,
279,
19623,
1177,
434,
326,
508,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3273,
1435,
1071,
16618,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
315,
48,
900,
14432,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/**
*Submitted for verification at Etherscan.io on 2021-05-19
*/
// File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.9;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic... | Get a location of some free memory and store it in tempBytes as Solidity does for memory variables. The first word of the slice result is potentially a partial word read from the original array. To read it, we calculate the length of that partial word and start copying that many bytes into the array. The first word we... | function slice(
bytes memory _bytes,
uint256 _start,
uint256 _length
)
internal
pure
returns (bytes memory)
{
require(_length + 31 >= _length, "slice_overflow");
require(_start + _length >= _start, "slice_overflow");
require(_bytes.leng... | 7,956,987 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
279,
2117,
434,
2690,
4843,
3778,
471,
1707,
518,
316,
1906,
2160,
487,
348,
7953,
560,
1552,
364,
3778,
3152,
18,
1021,
1122,
2076,
434,
326,
2788,
563,
353,
13935,
279,
4702,
2076,
855,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2788,
12,
203,
3639,
1731,
3778,
389,
3890,
16,
203,
3639,
2254,
5034,
389,
1937,
16,
203,
3639,
2254,
5034,
389,
2469,
203,
565,
262,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
3890,
3778,
13,
203,
565,
... |
pragma solidity ^0.4.19;
// File: contracts/erc/erc721/IERC721Base.sol
/// @title ERC-721 Non-Fungible Token Standard
/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
/// Note: the ERC-165 identifier for this interface is 0x6466353c
interface IERC721Base /* is IERC165 */ {
/// @dev This e... | @dev Escrows the NFT, assigning ownership to this contract. Throws if the escrow fails. @param _nftAddress - The address of the NFT. @param _owner - Current owner address of token to escrow. @param _tokenId - ID of token whose approval to verify. It will throw if transfer fails | function _escrow(address _nftAddress, address _owner, uint256 _tokenId) private {
IERC721Base _nftContract = _getNftContract(_nftAddress);
_nftContract.transferFrom(_owner, this, _tokenId);
}
| 1,320,403 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
512,
1017,
3870,
326,
423,
4464,
16,
28639,
23178,
358,
333,
6835,
18,
22435,
309,
326,
2904,
492,
6684,
18,
632,
891,
389,
82,
1222,
1887,
300,
1021,
1758,
434,
326,
423,
4464,
18,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
742,
492,
12,
2867,
389,
82,
1222,
1887,
16,
1758,
389,
8443,
16,
2254,
5034,
389,
2316,
548,
13,
3238,
288,
203,
565,
467,
654,
39,
27,
5340,
2171,
389,
82,
1222,
8924,
273,
389,
588,
50,
1222,
8924,
24899,
82... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.12;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./HasContractURI.sol";
import "./HasSecondarySaleFees.sol";
/**
* @title Full ERC721 Token with support for baseURI... | Token name Now in openzeppelin ERC721 string public override name; Token symbol Now in openzeppelin ERC721 string public override symbol; | {
abstract contract ERC721Base is
struct Fee {
address payable recipient;
uint256 value;
}
string memory _name,
string memory _symbol,
string memory contractURI,
string memory _baseURI
mapping(uint256 => Fee[]) public fees;
bytes4 private constant _I... | 1,017,594 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
508,
4494,
316,
1696,
94,
881,
84,
292,
267,
4232,
39,
27,
5340,
533,
1071,
3849,
508,
31,
3155,
3273,
4494,
316,
1696,
94,
881,
84,
292,
267,
4232,
39,
27,
5340,
533,
1071,
3849,
3273,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
95,
203,
203,
203,
203,
17801,
6835,
4232,
39,
27,
5340,
2171,
353,
203,
565,
1958,
30174,
288,
203,
3639,
1758,
8843,
429,
8027,
31,
203,
3639,
2254,
5034,
460,
31,
203,
565,
289,
203,
203,
203,
203,
3639,
533,
3778,
389,
529,... |
./full_match/1/0x09D15aD7DED83411C5D46699610758C191AA6AAD/sources/contracts/diamond/DiamondLoupeFacet.sol | @notice Gets all the function selectors supported by a specific facet. @param _facet The facet address. @return _facetFunctionSelectors The selectors associated with a facet address. loop through function selectors Set the number of selectors in the array | function facetFunctionSelectors(address _facet) external override view returns (bytes4[] memory _facetFunctionSelectors) {
LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();
uint256 numSelectors;
_facetFunctionSelectors = new bytes4[](ds.selectorCount);
uint256 selec... | 4,978,163 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11881,
777,
326,
445,
11424,
3260,
635,
279,
2923,
11082,
18,
632,
891,
389,
21568,
1021,
11082,
1758,
18,
632,
2463,
389,
21568,
2083,
19277,
1021,
11424,
3627,
598,
279,
11082,
1758,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11082,
2083,
19277,
12,
2867,
389,
21568,
13,
3903,
3849,
1476,
1135,
261,
3890,
24,
8526,
3778,
389,
21568,
2083,
19277,
13,
288,
203,
3639,
10560,
14521,
301,
1434,
18,
14521,
301,
1434,
3245,
2502,
3780,
273,
10560,
14... |
pragma solidity 0.8.0;
/*
Digital Toast
There are only 21 for the bread burners.
This toast must be earned and not purchased! Do not buy or sell toast.
*/
... | * @dev Removes a NFT from owner. @notice Use and override this function with caution. Wrong usage can have serious consequences. @param _from Address from wich we want to remove the NFT. @param _tokenId Which NFT we want to remove./ | function _removeNFToken(
address _from,
uint256 _tokenId
)
internal
virtual
{
require(idToOwner[_tokenId] == _from, NOT_OWNER);
ownerToNFTokenCount[_from] = ownerToNFTokenCount[_from] - 1;
delete idToOwner[_tokenId];
}
| 460,825 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20284,
279,
423,
4464,
628,
3410,
18,
632,
20392,
2672,
471,
3849,
333,
445,
598,
3474,
1421,
18,
24668,
4084,
848,
1240,
703,
22774,
356,
17190,
18,
632,
891,
389,
2080,
5267,
628,
341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4479,
26473,
1345,
12,
203,
565,
1758,
389,
2080,
16,
203,
565,
2254,
5034,
389,
2316,
548,
203,
225,
262,
203,
565,
2713,
203,
565,
5024,
203,
225,
288,
203,
565,
2583,
12,
350,
774,
5541,
63,
67,
2316,
548,
6... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol... | * @param hcAddr Initialize HC Address @param hnPoolAddr Initialize HNPool Address @param manager Initialize Manager Role/ | ) {
hc = IHC(hcAddr);
hnPool = IHNPool(hnPoolAddr);
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(MANAGER_ROLE, manager);
_setupRole(HNPOOL_ROLE, hnPoolAddr);
}
| 6,486,020 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
11684,
3178,
9190,
31979,
5267,
632,
891,
366,
82,
2864,
3178,
9190,
670,
50,
2864,
5267,
632,
891,
3301,
9190,
8558,
6204,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
288,
203,
3639,
11684,
273,
467,
23408,
12,
28353,
3178,
1769,
203,
3639,
366,
82,
2864,
273,
467,
44,
50,
2864,
12,
76,
82,
2864,
3178,
1769,
203,
203,
3639,
389,
8401,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,... |
./partial_match/1/0x5781460Ff09189D239908a27a0297001503A1fD7/sources/OpenTermLoan.sol | Deposits a specific amount of tokens into this smart contract Check balance and allowance Calculate the expected outcome, per check-effects-interaction pattern Let the borrower deposit the predefined collateral through a partially-compliant ERC20 Check the new balance | function _depositToken (IERC20NonCompliant tokenInterface, address senderAddr, uint256 depositAmount) private {
require(depositAmount > 0, "Deposit amount required");
require(tokenInterface.allowance(senderAddr, address(this)) >= depositAmount, "Insufficient allowance");
require(tokenInterf... | 2,825,683 | [
1,
4625,
348,
7953,
560,
30,
225,
4019,
538,
1282,
279,
2923,
3844,
434,
2430,
1368,
333,
13706,
6835,
2073,
11013,
471,
1699,
1359,
9029,
326,
2665,
12884,
16,
1534,
866,
17,
13867,
87,
17,
30303,
1936,
10559,
326,
29759,
264,
443,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
323,
1724,
1345,
261,
45,
654,
39,
3462,
3989,
799,
18515,
1147,
1358,
16,
1758,
5793,
3178,
16,
2254,
5034,
443,
1724,
6275,
13,
3238,
288,
203,
3639,
2583,
12,
323,
1724,
6275,
405,
374,
16,
315,
758,
1724,
384... |
pragma solidity ^0.5.16;
/**
* @title Compound's InterestRateModel Interface
* @author Compound
*/
contract InterestRateModel {
/// @notice Indicator that this is an InterestRateModel contract (for inspection)
bool public constant isInterestRateModel = true;
/**
* @notice Calculates the curren... | * @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 level programming languages. `SafeMath` restor... | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
uint256 c... | 30,857 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4266,
10422,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
10477,
288,
203,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
276,
273,
279,
397,
324,
31,
203,
3639,
2583,
12,
71,
1545,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @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,... | @dev Helper to differentially calculate an asset value based on if it is a primitive or derivative asset. Handle case that asset is a primitive | function __calcAssetValue(
address _baseAsset,
uint256 _amount,
address _quoteAsset
) private returns (uint256 value_) {
if (_baseAsset == _quoteAsset || _amount == 0) {
return _amount;
}
if (isSupportedPrimitiveAsset(_baseAsset)) {
return... | 1,406,585 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9705,
358,
3775,
6261,
4604,
392,
3310,
460,
2511,
603,
309,
518,
353,
279,
8225,
578,
16417,
3310,
18,
5004,
648,
716,
3310,
353,
279,
8225,
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,
1001,
12448,
6672,
620,
12,
203,
3639,
1758,
389,
1969,
6672,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1758,
389,
6889,
6672,
203,
565,
262,
3238,
1135,
261,
11890,
5034,
460,
67,
13,
288,
203,
3639,
309,
... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
abstract contract IManager {
function last(address) virtual public returns (uint);
function cdpCan(address, uint, address) virtual public view returns (uint);
function ilks(uint) virtual public view returns (byt... | @inheritdoc ActionBase | ) public payable override returns (bytes32) {
(
uint256 vaultId,
uint256 amount,
address joinAddr,
address from,
address mcdManager
) = parseInputs(_callData);
vaultId = _parseParamUint(vaultId, _paramMapping[0], _subData, _returnV... | 13,786,143 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
4382,
2171,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
8843,
429,
3849,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
261,
203,
5411,
2254,
5034,
9229,
548,
16,
203,
5411,
2254,
5034,
3844,
16,
203,
5411,
1758,
1233,
3178,
16,
203,
5411,
1758,
628,
16,
203,
5411,
1758,
... |
./full_match/1/0x2fC246149B4B8d7bcEF6188A10AF1791380227f1/sources/src/BaseWithStorage/ERC20Group.sol | @dev mint more tokens of a several subToken . @param to address receiving the tokens. @param ids subToken ids (also the index at which it was added). @param amounts for each token minted. | function batchMint(
address to,
uint256[] calldata ids,
uint256[] calldata amounts
) external {
require(_minters[msg.sender], "NOT_AUTHORIZED_MINTER");
require(ids.length == amounts.length, "INVALID_INCONSISTENT_LENGTH");
_batchMint(to, ids, amounts);
}
| 8,434,505 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
312,
474,
1898,
2430,
434,
279,
11392,
720,
1345,
263,
632,
891,
358,
1758,
15847,
326,
2430,
18,
632,
891,
3258,
720,
1345,
3258,
261,
31144,
326,
770,
622,
1492,
518,
1703,
3096,
2934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2581,
49,
474,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
3258,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
30980,
203,
565,
262,
3903,
288,
203,
3639,
2583,
24899,
1154,
5432,
63,
3576,
18,
1... |
./full_match/1/0xd1Ad8a5D9Be8267D833f23c7D2349b6A2B30b0AD/sources/contracts/Boneyard.sol | * @dev Calculates all racer positions iteratively during the specified number of blocks/ Calculate and cache per-level bonuses The per-level bonus is defined as: BONUS_POINTS = (LEVEL - 1) / LEVELS_PER_BONUS_POINT + 1 TOTAL_BONUS = BONUS * BONUS_POINTS E.g., +1 for levels 1-4, +2 for levels 5-8, +3 for levels... | function _calcRacePositions(Race memory race, uint256 blocks) private view returns (uint256[] memory) {
uint256[] memory racers = _racers[race.id].values();
uint256[] memory levelBonuses = new uint256[](racers.length);
unchecked {
for (uint256 i = 0; i < racers.length; ++i) {
... | 8,352,539 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
777,
767,
2750,
6865,
1400,
17526,
4982,
326,
1269,
1300,
434,
4398,
19,
9029,
471,
1247,
1534,
17,
2815,
324,
265,
6117,
1021,
1534,
17,
2815,
324,
22889,
353,
2553,
487,
30,
1377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12448,
54,
623,
11024,
12,
54,
623,
3778,
17996,
16,
2254,
5034,
4398,
13,
3238,
1476,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
8526,
3778,
767,
13062,
273,
389,
8836,
414,
63,
9963,
18,
... |
./full_match/44787/0xdDB915f2bA8bc379ed4f53c462eE7Ccb07F7Ce39/sources/contracts/tier/ValueTier.sol | Converts a Tier to the minimum value it requires. tier 0 is always value 0 as it is the fallback. @param tier_ The Tier to convert to a value. | function tierToValue(uint256[8] memory tierValues_, uint256 tier_)
internal
pure
returns (uint256)
{
unchecked {
return tier_ > TierConstants.TIER_ZERO ? tierValues_[tier_ - 1] : 0;
}
}
| 13,251,665 | [
1,
4625,
348,
7953,
560,
30,
225,
20377,
279,
399,
2453,
358,
326,
5224,
460,
518,
4991,
18,
17742,
374,
353,
3712,
460,
374,
487,
518,
353,
326,
5922,
18,
632,
891,
17742,
67,
1021,
399,
2453,
358,
1765,
358,
279,
460,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17742,
31183,
12,
11890,
5034,
63,
28,
65,
3778,
17742,
1972,
67,
16,
2254,
5034,
17742,
67,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
22893,
288,
203,
5411,... |
./full_match/1/0x28abcf030A255D79Cb0c8E28f0A3a80EC6Cab1f4/sources/BASE.sol | * @dev Sets the values for {name} and {symbol}. The default value of {decimals} is 18. To select a different value for {decimals} you should overload it. All two of these values are immutable: they can only be set once during construction./ | constructor() payable {
_name = "BOBBOT";
_symbol = "BBOT";
_balances[msg.sender] = _totalSupply;
}
| 3,001,063 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
1021,
805,
460,
434,
288,
31734,
97,
353,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
97,
1846,
1410,
30402,
518,
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,
0... | [
1,
565,
3885,
1435,
8843,
429,
288,
203,
3639,
389,
529,
273,
315,
5315,
9676,
1974,
14432,
203,
3639,
389,
7175,
273,
315,
9676,
1974,
14432,
203,
3639,
389,
70,
26488,
63,
3576,
18,
15330,
65,
273,
389,
4963,
3088,
1283,
31,
203,
... |
./full_match/432204/0x010224949cCa211Fb5dDfEDD28Dc8Bf9D2990368/sources/contracts/PortfolioSub.sol | * @notice Wrapper for emit event @param _trader Address of the trader @param _symbol Symbol of the token @param _quantity Amount of token used in the transaction @param _feeCharged Fee charged for the transaction @param _transaction Transaction type/ | function emitPortfolioEvent(
address _trader,
bytes32 _symbol,
uint256 _quantity,
uint256 _feeCharged,
Tx _transaction
) private {
emit PortfolioUpdated(
_transaction,
_trader,
_symbol,
_quantity,
_feeCha... | 16,380,968 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
225,
18735,
364,
3626,
871,
632,
891,
282,
389,
313,
1143,
225,
5267,
434,
326,
1284,
765,
632,
891,
282,
389,
7175,
225,
8565,
434,
326,
1147,
632,
891,
282,
389,
16172,
225,
16811,
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,
445,
3626,
17163,
1133,
12,
203,
3639,
1758,
389,
313,
1143,
16,
203,
3639,
1731,
1578,
389,
7175,
16,
203,
3639,
2254,
5034,
389,
16172,
16,
203,
3639,
2254,
5034,
389,
21386,
2156,
2423,
16,
203,
3639,
6424,
389,
7958,
203... |
./full_match/80001/0x2b2666C612a7790aE79ba0D6F10fd0E4ADfd2775/sources/contracts/NYW/NYW_Factory.sol | only use cutoffs for string attributes, that's why the loop is until lenght -5 Here we will give each yacht different stats based on their type: | function decodeTokenId(uint256 randomValue, uint256 _tokenId)
public
view
returns (uint256[] memory)
{
require(randomValue != 0, "Tokens have not been revealed yet");
uint256 tokenCode = uint256(
keccak256(abi.encode(randomValue, _tokenId))
);
... | 9,458,624 | [
1,
4625,
348,
7953,
560,
30,
225,
1338,
999,
6391,
26600,
364,
533,
1677,
16,
716,
1807,
11598,
326,
2798,
353,
3180,
562,
75,
647,
300,
25,
13743,
732,
903,
8492,
1517,
677,
497,
88,
3775,
3177,
2511,
603,
3675,
618,
30,
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,
2495,
1345,
548,
12,
11890,
5034,
2744,
620,
16,
2254,
5034,
389,
2316,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
8526,
3778,
13,
203,
565,
288,
203,
3639,
2583,
12,
9188,
620,
480,
... |
pragma solidity ^0.5.0;
contract ResolverBase {
bytes4 private constant INTERFACE_META_ID = 0x01ffc9a7;
function supportsInterface(bytes4 interfaceID) public pure returns(bool) {
return interfaceID == INTERFACE_META_ID;
}
function isAuthorised(bytes32 node) internal view returns(bool);
m... | @dev Returns the n byte value at the specified index of self. @param self The byte string. @param idx The index into the bytes. @param len The number of bytes. @return The specified 32 bytes of the string./ | function readBytesN(bytes memory self, uint idx, uint len) internal pure returns (bytes32 ret) {
require(len <= 32);
require(idx + len <= self.length);
assembly {
let mask := not(sub(exp(256, sub(32, len)), 1))
ret := and(mload(add(add(self, 32), idx)), mask)
... | 15,495 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
326,
290,
1160,
460,
622,
326,
1269,
770,
434,
365,
18,
632,
891,
365,
1021,
1160,
533,
18,
632,
891,
2067,
1021,
770,
1368,
326,
1731,
18,
632,
891,
562,
1021,
1300,
434,
1731,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25825,
50,
12,
3890,
3778,
365,
16,
2254,
2067,
16,
2254,
562,
13,
2713,
16618,
1135,
261,
3890,
1578,
325,
13,
288,
203,
3639,
2583,
12,
1897,
1648,
3847,
1769,
203,
3639,
2583,
12,
3465,
397,
562,
1648,
365,
18,
246... |
pragma solidity 0.6.11;
// SPDX-License-Identifier: BSD-3-Clause
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
... | Make sure to double-check BURN_ADDRESS | address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;
| 1,114,777 | [
1,
4625,
348,
7953,
560,
30,
225,
4344,
3071,
358,
1645,
17,
1893,
605,
8521,
67,
15140,
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,
1758,
1071,
5381,
605,
8521,
67,
15140,
273,
374,
92,
12648,
12648,
12648,
12648,
2787,
72,
41,
69,
40,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either... | inject NONSTANDARD NAMING
| function REMOVE614(bytes32) external; | 12,918,605 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26056,
26,
3461,
12,
3890,
1578,
13,
3903,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/3/0x9A8560DaFAceFc5F04643f7658cb723DF4F6C5AC/sources/MyCoin.sol | Allow another contract to spend some tokens in your behalf */找一个人A帮你花费token,这部分钱并不打A的账户,只是对A进行花费的授权A: 1万allowance[管理员][A] = 1万 | function approve(address _spender, uint256 _value) public
returns (bool success) {
require (_value >= 0);
allowance[msg.sender][_spender] = _value;
return true;
}
| 5,181,794 | [
1,
4625,
348,
7953,
560,
30,
225,
7852,
4042,
6835,
358,
17571,
2690,
2430,
316,
3433,
12433,
6186,
1195,
167,
236,
127,
165,
121,
227,
165,
121,
108,
165,
123,
123,
37,
166,
121,
111,
165,
126,
259,
169,
237,
114,
169,
117,
122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
1071,
203,
565,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
261,
67,
1132,
1545,
374,
1769,
203,
3639,
1699,
1359,
63,
3576,
18,
15330,
6362... |
./full_match/84531/0xd7149865d07cCfdfB10f858AFAb297A8251882Cc/sources/contracts/api/Positions.sol | Remove order and transfer funds out | orderStore.remove(orderId);
| 11,525,763 | [
1,
4625,
348,
7953,
560,
30,
225,
3581,
1353,
471,
7412,
284,
19156,
596,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1353,
2257,
18,
4479,
12,
1019,
548,
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,
... |
./partial_match/4/0xc48Fa737c77cf8A4bE0d7f43ef16dD5D6fBbd473/sources/LvChefV3.sol | devaddr = _devaddr; | ) public {
tfk = _tfk;
tfkPerBlock = _tfkPerBlock;
bonusEndBlock = _bonusEndBlock;
startBlock = _startBlock;
endBlock = _endBlock;
}
| 8,651,506 | [
1,
4625,
348,
7953,
560,
30,
225,
4461,
4793,
273,
389,
5206,
4793,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
288,
203,
3639,
3253,
79,
273,
389,
6632,
79,
31,
203,
3639,
3253,
79,
2173,
1768,
273,
389,
6632,
79,
2173,
1768,
31,
203,
3639,
324,
22889,
1638,
1768,
273,
389,
18688,
407,
1638,
1768,
31,
203,
3639,
787,
176... |
./partial_match/1/0x1aa435ed226014407Fa6b889e9d06c02B1a12AF3/sources/AaveEcosystemReserveV2.sol | @inheritdoc IAdminControlledEcosystemReserve | modifier onlyFundsAdmin() {
require(msg.sender == _fundsAdmin, "ONLY_BY_FUNDS_ADMIN");
_;
}
| 3,658,719 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
4446,
3367,
1259,
41,
14445,
1108,
607,
6527,
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,
9606,
1338,
42,
19156,
4446,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
74,
19156,
4446,
16,
315,
10857,
67,
6486,
67,
42,
2124,
3948,
67,
15468,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
... |
./full_match/3/0x72AED2ff5c0083658661DA6736Eb198d65c8E616/sources/browser/contracts/Token.sol | Metodi Standard ERC20 | function name() public view returns (string memory) {
return tokenName;
}
| 14,154,038 | [
1,
4625,
348,
7953,
560,
30,
225,
21604,
369,
77,
8263,
4232,
39,
3462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
508,
1435,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
1147,
461,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x1eA67cD6DA0fea19d270BE6B8Bfa44B5aDa81Fcd/sources/browser/coinbase.sol | 主入口 uni 借款 IUniswapV2Pair(_pair).swap(_amount0Out, _amount1Out, address(this), data); 回调执行了 uniswapV2Call()其它token, 全部打给sender | function go(
uint _coinbasePercent,
address _coinbaseAddress,
address _token,
address _target,
bytes memory _payload
) public onlyOwner returns (uint _profit){
require(_coinbasePercent>=0 && _coinbasePercent<100, "CaV3: invalid coinbasePercent");
uint ba... | 2,971,598 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
165,
121,
124,
166,
232,
103,
166,
242,
101,
7738,
225,
166,
227,
258,
167,
110,
127,
467,
984,
291,
91,
438,
58,
22,
4154,
24899,
6017,
2934,
22270,
24899,
8949,
20,
1182,
16,
389,
8949,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1960,
12,
203,
3639,
2254,
389,
12645,
1969,
8410,
16,
203,
3639,
1758,
389,
12645,
1969,
1887,
16,
203,
3639,
1758,
389,
2316,
16,
203,
3639,
1758,
389,
3299,
16,
7010,
3639,
1731,
3778,
389,
7648,
203,
565,
262,
1071,... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import {VRFBaseMainnet as VRFBase} from './VRFBase.sol';
import './ERC721A.sol';
error P... | * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). Does not support burning tokens to address(0)./ | contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
{}
{}
{}
struct TokenOwnership {
address addr;
uint56 startTimestamp;
bool nextTokenOwnerShipSet;
}
struct UserData {
uint128 balance;
uint... | 638,179 | [
1,
4625,
348,
7953,
560,
30,
380,
326,
6912,
471,
6057,
25121,
2710,
18,
27376,
358,
10979,
364,
2612,
16189,
4982,
2581,
312,
28142,
18,
25374,
2734,
87,
854,
695,
6979,
6261,
312,
474,
329,
5023,
622,
374,
261,
73,
18,
75,
18,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
27,
5340,
37,
353,
1772,
16,
4232,
39,
28275,
16,
467,
654,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
2277,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
2916,... |
./full_match/42220/0x81D26FB4BbdEd3931F26F572cbC853946B2087De/sources/contracts/UbeswapOrderBook.sol | @notice Admin function to change the reward distributor contract @param _rewardDistributor The new reward distributor. 0 address will disable rewards | function changeRewardDistributor(IOrderRewardDistributor _rewardDistributor)
external
onlyOwner
{
emit RewardDistributorChanged(
address(rewardDistributor),
address(_rewardDistributor)
);
rewardDistributor = _rewardDistributor;
}
| 16,357,780 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
7807,
445,
358,
2549,
326,
19890,
1015,
19293,
6835,
632,
891,
389,
266,
2913,
1669,
19293,
1021,
394,
19890,
1015,
19293,
18,
374,
1758,
903,
4056,
283,
6397,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
17631,
1060,
1669,
19293,
12,
45,
2448,
17631,
1060,
1669,
19293,
389,
266,
2913,
1669,
19293,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
3626,
534,
359,
1060,
1669,
19293,
5033,
12,
203,
... |
pragma solidity ^0.5.10;
/** @title ValidateSPV*/
/** @author Summa (https://summa.one) */
import {BytesLib} from "./BytesLib.sol";
import {SafeMath} from "./SafeMath.sol";
import {BTCUtils} from "./BTCUtils.sol";
library ValidateSPV {
using BTCUtils for bytes;
using BTCUtils for uint256;
using BytesLib ... | @notice Parses a tx output from raw output bytes @dev Differentiates by output script prefix, handles legacy and witness @param _output Raw bytes tx output @return Tx output value, output type, payload OP_RETURN P2WSH P2WPKH PKH SH | function parseOutput(bytes memory _output)
internal
pure
returns (
uint64 _value,
uint8 _outputType,
bytes memory _payload
)
{
_value = _output.extractValue();
if (_output.keccak256Slice(9, 1) == keccak256(hex"6a")) {
... | 12,914,197 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
540,
2280,
2420,
279,
2229,
876,
628,
1831,
876,
1731,
632,
5206,
5411,
21104,
3518,
16020,
635,
876,
2728,
1633,
16,
7372,
8866,
471,
15628,
632,
891,
389,
2844,
225,
6576,
1731,
2229,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
1447,
12,
3890,
3778,
389,
2844,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
5411,
2254,
1105,
389,
1132,
16,
203,
5411,
2254,
28,
389,
2844,
559,
16,
203,
5411,
1731,
3778,
389,
7648,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Part: IFund
interface IFund {
function underlying() external view returns (address);
function relayer() external view returns (address);
function deposit(uint256 amountWei) external;
function depositFor(... | if deposit limit is 0, then there is no deposit limit if deposit limit is 0, then there is no deposit limit if deposit limit is 0, then there is no deposit limit | function _deposit(
uint256 amount,
address sender,
address beneficiary
) internal {
require(amount > 0, "Cannot deposit 0");
if (_depositLimit() > 0) {
require(
underlyingBalanceWithInvestment().add(amount) <=
_depositLimit... | 149,869 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
443,
1724,
1800,
353,
374,
16,
1508,
1915,
353,
1158,
443,
1724,
1800,
309,
443,
1724,
1800,
353,
374,
16,
1508,
1915,
353,
1158,
443,
1724,
1800,
309,
443,
1724,
1800,
353,
374,
16,
1508,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
323,
1724,
12,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
27641,
74,
14463,
814,
203,
565,
262,
2713,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
315,
4515,
443,
1724,
374,
886... |
pragma solidity ^0.4.24;
import "./properties/Ownable.sol";
import "./tokens/Likoin.sol";
import "./ArtifactsManager.sol";
/**
* @title Contract used to vote Artifacts proposals
*/
contract Voting is Ownable {
// The artifacts manager
ArtifactsManager private _artifactsManager;
// The token used for votes w... | * @dev Finish vote, count the votes proposal and execute/ | function executeProposal(uint proposalID) public onlyOwner {
require(proposalID < _numProposals);
Proposal storage p = _proposals[proposalID];
require(now >= p.minExecutionDate && !p.executed);
p.executed = true;
uint256 tmpMax = 0;
uint256 tmpTotal = p.suggestions[tm... | 7,212,824 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
18560,
12501,
16,
1056,
326,
19588,
14708,
471,
1836,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1836,
14592,
12,
11890,
14708,
734,
13,
1071,
1338,
5541,
288,
203,
565,
2583,
12,
685,
8016,
734,
411,
389,
2107,
626,
22536,
1769,
203,
565,
19945,
2502,
293,
273,
389,
685,
22536,
63,
685,
8016,
734,
15533,
203,
565,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "./AelinERC20.sol";
import "./AelinDeal.sol";
import "./MinimalProxyFactory.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract AelinPool is AelinERC20, MinimalProxyFactory {
using SafeERC20 for IERC20;
... | * @dev the withdraw and partial withdraw methods allow a purchaser to take their purchase tokens back in exchange for pool tokens if they do not accept a deal Requirements: - the pool has expired either due to the creation of a deal or the end of the duration/ | function withdrawMaxFromPool() external {
_withdraw(balanceOf(msg.sender));
}
| 12,811,960 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
326,
598,
9446,
471,
4702,
598,
9446,
2590,
1699,
279,
5405,
343,
14558,
358,
4862,
3675,
23701,
2430,
1473,
316,
7829,
364,
2845,
2430,
309,
2898,
741,
486,
2791,
279,
10490,
29076,
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,
0... | [
1,
565,
445,
598,
9446,
2747,
1265,
2864,
1435,
3903,
288,
203,
3639,
389,
1918,
9446,
12,
12296,
951,
12,
3576,
18,
15330,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be... | * @dev Registers the contract as an implementer of the interface defined by `interfaceId`. Support of the actual ERC165 interface is automatic and registering its interface id is not required. See {IERC165-supportsInterface}. Requirements: - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`)./ | function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
| 1,139,735 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2526,
6045,
326,
6835,
487,
392,
2348,
264,
434,
326,
1560,
2553,
635,
1375,
5831,
548,
8338,
13619,
434,
326,
3214,
4232,
39,
28275,
1560,
353,
5859,
471,
22845,
2097,
1560,
612,
353,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4861,
1358,
12,
3890,
24,
1560,
548,
13,
2713,
5024,
288,
203,
202,
202,
6528,
12,
5831,
548,
480,
374,
28857,
16,
315,
654,
39,
28275,
30,
2057,
1560,
612,
8863,
203,
202,
202,
67,
4127,
10273,
63,
5831,
548,
... |
./full_match/5/0x973A0969E0a0fb31f2DaEda528df694417bb634B/sources/browser/qoph.sol | set stack to QOPh x QOPh
| st = s2; | 1,927,796 | [
1,
4625,
348,
7953,
560,
30,
282,
444,
2110,
358,
2238,
3665,
76,
619,
2238,
3665,
76,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
384,
273,
272,
22,
31,
4766,
3639,
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,
-... |
./partial_match/97/0xc9Ce5868AF290ca09Aa6fd8DcF87d79Ed0E90451/sources/BEP20Token.sol | * @dev Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {BEP20-_burn} and {BEP20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`./ | function burnFrom(address account, uint256 amount) public onlyOwner returns (bool) {
uint256 decreasedAllowance = _allowances[account][_msgSender()].sub(amount, "BEP20: burn amount exceeds allowance");
_approve(account, _msgSender(), decreasedAllowance);
_burn(account, amount);
}
| 11,470,694 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
11140,
853,
310,
628,
326,
4894,
1807,
1699,
1359,
18,
2164,
288,
5948,
52,
3462,
17,
67,
70,
321,
97,
471,
288,
5948,
52,
346... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18305,
1265,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
1071,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
1377,
2254,
5034,
23850,
8905,
7009,
1359,
273,
389,
5965,
6872,
63,
4631,
6362,
67,
3576,
12021,
1435,
8009,
1717,
... |
pragma solidity ^0.5.0;
contract Polling {
uint private optionA = 2022;
uint private optionB = 2024;
address public pollOwner ;
uint private winningYear;
bool private winningYearDeclared;
//datastructure for voter
struct Voter{
address voteAddress;
uint chosenOption;
uint stakeValue;
boo... | keeping track of the voters, default bool is false | mapping(address => bool) public votersA;
| 14,024,267 | [
1,
4625,
348,
7953,
560,
30,
19966,
3298,
434,
326,
331,
352,
414,
16,
805,
1426,
353,
629,
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,
2874,
12,
2867,
516,
1426,
13,
1071,
331,
352,
414,
37,
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,
... |
./full_match/5/0xf31cEA731Cd6CC0F60C2280f2084A6D603caA346/sources/contracts/Staker.sol | TODO: Collect funds in a payable `stake()` function and track individual `balances` with a mapping: ( make sure to add a `Stake(address,uint256)` event and emit it for the frontend <List/> display ) Must accept more than 0 ETH for a coffee. Emit a NewMemo event with details about the memo. | function stake() public payable notCompleted {
require(msg.value > 0, "can't buy coffee for free!");
balances[msg.sender] = msg.value;
emit Stake(msg.sender, msg.value);
}
| 1,909,851 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
9302,
284,
19156,
316,
279,
8843,
429,
1375,
334,
911,
20338,
445,
471,
3298,
7327,
1375,
70,
26488,
68,
598,
279,
2874,
30,
225,
261,
1221,
3071,
358,
527,
279,
1375,
510,
911,
12,
2867... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
384,
911,
1435,
1071,
8843,
429,
486,
9556,
288,
203,
565,
2583,
12,
3576,
18,
1132,
405,
374,
16,
315,
4169,
1404,
30143,
276,
3674,
1340,
364,
4843,
4442,
1769,
203,
565,
324,
26488,
63,
3576,
18,
15330,
65,
273,
12... |
./full_match/1/0x2EcCB2100cE90f4A68b130E992A032E0eCEf263e/sources/contracts/UncleClaims.sol | @notice Withdraws specified ERC20 tokens to the multisig @param tokens - the tokens to retrieve @param to - address to send the tokens to @dev This is needed to handle tokens that don't have ETH pairs on sushi or need to be swapped on other chains (NBST, WormholeLUNA...) | function retrieveTokens(
address[] calldata tokens,
address to
) external onlyOwner {
require(to != address(0));
for (uint256 i; i < tokens.length; ++i) {
address token = tokens[i];
uint256 tokenBalance = IERC20(token).balanceOf(address(this));
... | 9,790,519 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3423,
9446,
87,
1269,
4232,
39,
3462,
2430,
358,
326,
22945,
360,
632,
891,
2430,
300,
326,
2430,
358,
4614,
632,
891,
358,
300,
1758,
358,
1366,
326,
2430,
358,
632,
5206,
1220,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4614,
5157,
12,
203,
3639,
1758,
8526,
745,
892,
2430,
16,
203,
3639,
1758,
358,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
10019,
203,
3639,
364,
261,
11890,
5034,
277,
31,
277... |
./partial_match/1/0x0F382411c2A5d5281eC9ff44D0A789769AC8259C/sources/CompliantTokenSwitch.sol | * @dev activates token switch after which no validator approval is required for transfer */ | function activateTokenSwitch() public onlyValidator {
tokenSwitch = true;
emit TokenSwitchActivated();
}
| 9,181,006 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
5981,
815,
1147,
1620,
1839,
1492,
1158,
4213,
23556,
353,
1931,
364,
7412,
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,
... | [
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,
10235,
1345,
10200,
1435,
1071,
1338,
5126,
288,
203,
3639,
1147,
10200,
273,
638,
31,
203,
3639,
3626,
3155,
10200,
28724,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity >=0.4.21 <0.6.0;
interface ERC20 {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function transferFrom(address fro... | * @title SafeMath @dev Math operations with safety checks that throw on error/ | library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
... | 302,172 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14060,
10477,
632,
5206,
2361,
5295,
598,
24179,
4271,
716,
604,
603,
555,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
565,
445,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
69,
422,
374,
13,
288,
203,
5411,
327,
374,
31,
203,
3639,
289,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IInterep.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@appliedzkp/semaphore-contracts/interfaces/IVerifier.sol";
import "@appliedzkp/semaphore-contracts/base/SemaphoreCore.sol";
import "@appliedzkp/semaphore-contracts/base/Semaphor... | @dev See {IInterep-removeMember}. | function removeMember(
uint256 groupId,
uint256 identityCommitment,
uint256[] calldata proofSiblings,
uint8[] calldata proofPathIndices
) external override onlyGroupAdmin(groupId) {
_removeMember(groupId, identityCommitment, proofSiblings, proofPathIndices);
}
| 12,774,656 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2164,
288,
45,
2465,
881,
17,
4479,
4419,
5496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
4419,
12,
203,
3639,
2254,
5034,
6612,
16,
203,
3639,
2254,
5034,
4215,
5580,
475,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
14601,
31555,
16,
203,
3639,
2254,
28,
8526,
745,
892,
14601,
743,
8776,
203,
565,
262,... |
./partial_match/1/0xd6F2E30B99214B6eaffBE2B270d2e42c762a929B/sources/DisputeManager.sol | Ensure current term and check that the last adjudication round has ended. Note that there will always be at least one round. | uint256 lastRoundId = _dispute.rounds.length - 1;
| 4,343,479 | [
1,
4625,
348,
7953,
560,
30,
225,
7693,
783,
2481,
471,
866,
716,
326,
1142,
8307,
1100,
829,
3643,
711,
16926,
18,
3609,
716,
1915,
903,
3712,
506,
622,
4520,
1245,
3643,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
1142,
11066,
548,
273,
389,
2251,
2507,
18,
27950,
18,
2469,
300,
404,
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/9001/0xdE9A07E5F1eaF3236e84724e0a221Ce44D7b2657/sources/contracts/N2MTokenCommon.sol | @title NFTs2Me.com Smart Contracts @author The NFTs2Me Team @notice Read our terms of service @custom:security-contact security@nfts2me.com @custom:terms-of-service https://nfts2me.com/terms-of-service/ @custom:website https://nfts2me.com/ | abstract contract N2MTokenCommon is N2MCommonStorage, IN2M_ERCBase {
address internal immutable LIBRARY_ADDRESS;
constructor(address libraryAddress, address payable factoryAddress) N2MCommonStorage(factoryAddress) {
LIBRARY_ADDRESS = libraryAddress;
}
function _mint(address to, uint256 tokenId... | 11,532,145 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
423,
4464,
87,
22,
4667,
18,
832,
19656,
30131,
632,
4161,
1021,
423,
4464,
87,
22,
4667,
10434,
632,
20392,
2720,
3134,
6548,
434,
1156,
632,
3662,
30,
7462,
17,
8994,
4373,
36,
82,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
423,
22,
49,
1345,
6517,
353,
423,
22,
49,
6517,
3245,
16,
2120,
22,
49,
67,
654,
39,
2171,
288,
203,
565,
1758,
2713,
11732,
8961,
28254,
67,
15140,
31,
203,
203,
565,
3885,
12,
2867,
5313,
1887,
16,
1758,
8843,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-25
*/
// SPDX-License-Identifier: MIT
/* ----------------------------------------- Imports ------------------------------------------ */
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) e... | ------------------------------------ State Variables ----------------------------------- */ --------------------------------- Contract Constructor --------------------------------- */ | constructor(address _skywardToken) {
skywardToken = IERC20(_skywardToken);
emergencyWithdrawTime = block.timestamp + 365 * 1 days;
transferOwnership(msg.sender);
}
| 10,511,587 | [
1,
4625,
348,
7953,
560,
30,
225,
19134,
6062,
3287,
23536,
19134,
413,
1195,
19134,
13456,
11417,
19134,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2867,
389,
22921,
2913,
1345,
13,
288,
203,
3639,
15513,
2913,
1345,
273,
467,
654,
39,
3462,
24899,
22921,
2913,
1345,
1769,
203,
3639,
801,
24530,
1190,
9446,
950,
273,
1203,
18,
5508,
397,
21382,
380,
404,
4681,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import ... | solhint-disable var-name-mixedcase | contract BaseController {
address public immutable manager;
address public immutable accessControl;
IAddressRegistry public immutable addressRegistry;
bytes32 public immutable ADD_LIQUIDITY_ROLE = keccak256("ADD_LIQUIDITY_ROLE");
bytes32 public immutable REMOVE_LIQUIDITY_ROLE = keccak256("REMOVE_L... | 11,934,547 | [
1,
4625,
348,
7953,
560,
30,
3704,
11317,
17,
8394,
569,
17,
529,
17,
19562,
3593,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3360,
2933,
288,
203,
203,
565,
1758,
1071,
11732,
3301,
31,
203,
565,
1758,
1071,
11732,
2006,
3367,
31,
203,
565,
467,
1887,
4243,
1071,
11732,
1758,
4243,
31,
203,
203,
565,
1731,
1578,
1071,
11732,
11689,
67,
2053,
53,
... |
./partial_match/1/0x7497C39F11d2b39b4eF3dBB1e9A9857Df6FD5BdC/sources/SuperChoice.sol | if no custom reward token or reward token is ignored, send ETH. | function _withdrawDividendOfUser(address payable user) internal returns (uint256) {
uint256 _withdrawableDividend = withdrawableDividendOf(user);
if (_withdrawableDividend > 0) {
if(!userHasCustomRewardToken[user] && !isIgnoredToken(userCurrentRewardToken[user])){
withdrawnDividends... | 4,333,608 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
1158,
1679,
19890,
1147,
578,
19890,
1147,
353,
5455,
16,
1366,
512,
2455,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
1918,
9446,
7244,
26746,
951,
1299,
12,
2867,
8843,
429,
729,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
389,
1918,
9446,
429,
7244,
26746,
273,
598,
9446,
429,
7244,
26746,
951,
12,
1355,
176... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title: Ledger
/// @author: manifold.xyz
import "@manifoldxyz/creator-core-solidity/contracts/ERC1155Creator.sol";
/////////////////////////////////////////////////
// //
// ... | * Approve a transfer/ | function _approveTransfer(address from, address to, uint256[] memory tokenIds, uint256[] memory amounts) internal {
require(tokenIds.length > 0, "Invalid input");
address extension = _tokensExtension[tokenIds[0]];
for (uint i = 0; i < tokenIds.length; i++) {
require(_tokensExtens... | 1,598,604 | [
1,
4625,
348,
7953,
560,
30,
380,
1716,
685,
537,
279,
7412,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
12908,
537,
5912,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
8526,
3778,
1147,
2673,
16,
2254,
5034,
8526,
3778,
30980,
13,
2713,
288,
203,
3639,
2583,
12,
2316,
2673,
18,
2469,
405,
374,
16,
315,
1941,
810,
8... |
pragma solidity 0.4.24;
pragma experimental "v0.5.0";
import "../Math/SafeMath.sol";
import "../Modules/Administration.sol";
import "../Interfaces/RTCoinInterface.sol";
/*
This contract is used to facilitate payments between frequent TEMPORAL users (ie, API users). It allows us to continue the same payment model as i... | this is the current state of the channel
| ChannelState state; | 979,076 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
353,
326,
783,
919,
434,
326,
1904,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5307,
1119,
919,
31,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2021-10-23
*/
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarv... | ========== CONSTRUCTOR ========== */ You can set these parameters on deployment to whatever you want these are our standard approvals. want = Curve LP token set our keepCRV this is the pool specific to this vault, used for depositing set our curve gauge contract set our strategy's name set our max gas price | ) public StrategyCurveBase(_vault) {
want.approve(address(proxy), type(uint256).max);
crv.approve(sushiswap, type(uint256).max);
keepCRV = 1000;
curve = ICurveFi(_curvePool);
gauge = address(_gauge);
stratName = _name;
maxGasPrice = 100 * 1e9;
}
| 10,657,227 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
3492,
13915,
916,
422,
1432,
1195,
4554,
848,
444,
4259,
1472,
603,
6314,
358,
15098,
1846,
2545,
4259,
854,
3134,
4529,
6617,
4524,
18,
2545,
273,
22901,
511,
52,
1147,
444,
3134,
3455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
19736,
9423,
2171,
24899,
26983,
13,
288,
203,
203,
3639,
2545,
18,
12908,
537,
12,
2867,
12,
5656,
3631,
618,
12,
11890,
5034,
2934,
1896,
1769,
203,
3639,
4422,
90,
18,
12908,
537,
12,
87,
1218,
291,
91,
438,
... |
/*
* Copyright ©️ 2018 Galt•Space Society Construction and Terraforming Company
* (Founded by [Nikolai Popeka](https://github.com/npopeka),
* [Dima Starodubcev](https://github.com/xhipster),
* [Valery Litvin](https://github.com/litvintech) by
* [Basic Agreement](http://cyb.ai/QmSAWEG5u5aSsUyMNYuX2A2Eaz4kEuoYWUkVBR... | Change candidate reputation _candidateReputation[currentCandidate] = _candidateReputation[currentCandidate] - reputationBefore + _reputationAfter; | _candidateReputation[currentCandidate] = _candidateReputation[currentCandidate].add(_oracleReputationAfter).sub(oracleReputationBefore);
| 12,570,433 | [
1,
4625,
348,
7953,
560,
30,
225,
7576,
5500,
283,
458,
367,
389,
19188,
426,
458,
367,
63,
2972,
11910,
65,
273,
389,
19188,
426,
458,
367,
63,
2972,
11910,
65,
300,
283,
458,
367,
4649,
397,
389,
266,
458,
367,
4436,
31,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
389,
19188,
426,
458,
367,
63,
2972,
11910,
65,
273,
389,
19188,
426,
458,
367,
63,
2972,
11910,
8009,
1289,
24899,
280,
16066,
426,
458,
367,
4436,
2934,
1717,
12,
280,
16066,
426,
458,
367,
4649,
1769,
203,
2,
-100,
-100,
... |
./full_match/137/0x7b81717428bAAd84879D6F8956C2DBB5C150F2af/sources/factoryv1/InscriptionFactory.sol | Contract address of inscribed token
| address addr; | 3,744,657 | [
1,
4625,
348,
7953,
560,
30,
225,
13456,
1758,
434,
316,
15802,
1147,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
3091,
31,
5411,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |