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
// SPDX-License-Identifier: MIT-open-group pragma solidity >=0.5.15; import "lib/ds-test/test.sol"; import "src/QueueLibrary.sol"; contract QueueLibraryTest is DSTest { using QueueLibrary for QueueLibrary.Queue; QueueLibrary.Queue queue; // Here is where real tests start function testInitializatio...
Here is where real tests start
contract QueueLibraryTest is DSTest { using QueueLibrary for QueueLibrary.Queue; QueueLibrary.Queue queue; pragma solidity >=0.5.15; function testInitialization() public { assertEq(queue.size(), 0); } function testEnqueue1() public { queue.enqueue(address(1)); assertEq(qu...
14,093,674
[ 1, 4625, 348, 7953, 560, 30, 225, 13743, 353, 1625, 2863, 7434, 787, 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, 7530, 9313, 4709, 353, 463, 882, 395, 288, 203, 203, 565, 1450, 7530, 9313, 364, 7530, 9313, 18, 3183, 31, 203, 203, 565, 7530, 9313, 18, 3183, 2389, 31, 203, 203, 683, 9454, 18035, 560, 1545, 20, 18, 25, 18, 3600, 31, ...
./partial_match/42/0x61803c77605d7b383f7C2750973063668c251DF7/sources/HodlerPool.sol
TODO: ADD EXTERNAL FUNCTION SO THAT IF THE TOP 40 STAKERS HAS LESS THAN 40, WHOEVER IS INTERESTED CAN CALL IT TO PUSH THE TOP FOLLOWER (1) TO THE TOP LIST...emit Log("call function: unstake");printArray(); TODO: comment it out!emit Log(strConcat("sinceBlockNumber: ", uint2str(sinceBlockNumber),"","","")); delete _all...
function unstake() private returns (uint) { address account = msg.sender; uint stakerLevel = 0; uint sinceBlockNumber = _allStakers[account].sinceBlockNumber; if (sinceBlockNumber <= first40BlockNumbers[first40BlockNumbers.length -1]) { uint index = getElementPositionInAr...
3,394,466
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 11689, 5675, 11702, 13690, 7460, 7662, 789, 11083, 12786, 18680, 8063, 2347, 14607, 11367, 21641, 21216, 7662, 1258, 8063, 16, 678, 7995, 41, 2204, 4437, 11391, 11027, 2056, 22709, 22753, 24142,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 640, 334, 911, 1435, 3238, 1135, 261, 11890, 13, 288, 203, 3639, 1758, 2236, 273, 1234, 18, 15330, 31, 203, 3639, 2254, 384, 6388, 2355, 273, 374, 31, 203, 3639, 2254, 3241, 1768, 1854, 273, 389, 454, 510, 581, 414, 6...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.10; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./amm/interfaces/ITempusAMM.sol"; import "./amm/interfaces/IVa...
@dev Redeem TPS+TYS held by msg.sender into Backing Tokens @notice `recipient` will receive the backing tokens @notice Before maturity, `principalAmount` must equal to `yieldAmount` @param targetPool The Tempus Pool from which to redeem Tempus Shares @param principalAmount Amount of Tempus Principals to redeem in Prin...
function redeemToBacking( ITempusPool targetPool, uint256 principalAmount, uint256 yieldAmount, address recipient ) external nonReentrant { require(recipient != address(0), "recipient can not be 0x0"); requireRegistered(address(targetPool)); _redeemToBacki...
1,804,480
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 868, 24903, 399, 5857, 15, 5538, 55, 15770, 635, 1234, 18, 15330, 1368, 4297, 310, 13899, 632, 20392, 1375, 20367, 68, 903, 6798, 326, 15394, 2430, 632, 20392, 11672, 29663, 16, 1375, 26138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 283, 24903, 774, 2711, 310, 12, 203, 3639, 467, 7185, 407, 2864, 1018, 2864, 16, 203, 3639, 2254, 5034, 8897, 6275, 16, 203, 3639, 2254, 5034, 2824, 6275, 16, 203, 3639, 1758, 8027, 203, 565, 262, 3903, 1661, 426, 8230,...
pragma solidity ^0.4.18; //该合约参考自openzeppelin的开源代码 //1.使用SafeMath库防止运算溢出 //2.使用Ownable,Pausable合约来做权限控制 //3.ERC20Basic,ERC20都是接口,ERC20扩展了ERC20Basic,实现了授权转移 //4.BasicToken,StandardToken,PausableToken是具体实现 //5.BlackListToken加入黑名单方法 //6.合约所有者发行和赎回 // /** * * @title ERC20Basic * @dev Simpler version of ERC20 interf...
Called when new token are issued
event Issue(uint _value);
11,935,373
[ 1, 4625, 348, 7953, 560, 30, 225, 11782, 1347, 394, 1147, 854, 16865, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11820, 12, 11890, 389, 1132, 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, -100, ...
./partial_match/8453/0x15879074Bd6c89a8a5d88A7Be08fEfb174a54511/sources/ZKWRouterV2.sol
returns sorted token addresses, used to handle return values from pairs sorted in this order
library ZKWLibrary { using SafeMath for uint; function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'ZKWLibrary: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); ...
16,794,070
[ 1, 4625, 348, 7953, 560, 30, 225, 1135, 3115, 1147, 6138, 16, 1399, 358, 1640, 327, 924, 628, 5574, 3115, 316, 333, 1353, 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, 29878, 59, 9313, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 565, 445, 1524, 5157, 12, 2867, 1147, 37, 16, 1758, 1147, 38, 13, 2713, 16618, 1135, 261, 2867, 1147, 20, 16, 1758, 1147, 21, 13, 288, 203, 363...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /// @author jpegmint.xyz import "../token/ERC721/ERC721EnumerableOrdered.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; abstract contract ERC721Collectible is ERC721, ERC721EnumerableOrdered...
* @dev Generate random tokenIds using meebits random ID strategy./ If array value exists, use, otherwise use generated random value. Keep track of seen indexes for black magic.
function _generateTokenId(address, uint256, uint256) internal virtual returns (uint256) { uint256 remainingQty = availableSupply(); uint256 randomNum = uint256(keccak256(abi.encodePacked(msg.sender, tx.gasprice, block.timestamp, remainingQty))); uint256 randomIndex = randomNum % remainingQty...
12,800,547
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6654, 2744, 1147, 2673, 1450, 312, 1340, 6789, 2744, 1599, 6252, 18, 19, 971, 526, 460, 1704, 16, 999, 16, 3541, 999, 4374, 2744, 460, 18, 10498, 3298, 434, 5881, 5596, 364, 7721, 8146, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 7163, 1345, 548, 12, 2867, 16, 2254, 5034, 16, 2254, 5034, 13, 2713, 5024, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 4463, 53, 4098, 273, 2319, 3088, 1283, 5621, 203, 3639, 2254, 5034, 2744, 2578, 273...
./full_match/1/0xc94E3Fd7270be44da019c8c3dB1D2e4d0064063A/sources/contracts/lib/ERC4626.sol
@notice Minimal ERC4626 tokenized Vault implementation. @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/mixins/ERC4626.sol)
abstract contract ERC4626 is ERC20, ReentrancyGuard { using SafeTransferLib for ERC20; using FixedPointMathLib for uint256; uint private constant MIN_DEPOSIT = 1E3; EVENTS event Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares); ...
3,007,964
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 5444, 2840, 4232, 39, 8749, 5558, 26073, 17329, 4471, 18, 632, 4161, 348, 355, 81, 340, 261, 4528, 2207, 6662, 18, 832, 19, 54, 12954, 17, 4664, 7053, 19, 18281, 81, 340, 19, 10721, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 4232, 39, 8749, 5558, 353, 4232, 39, 3462, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 5912, 5664, 364, 4232, 39, 3462, 31, 203, 565, 1450, 15038, 2148, 10477, 5664, 364, 2254, 5034, 31, 203, 203, 565, 2...
./partial_match/56/0x4cC0295a30C3c2eA5b0a76ac4BF75a7CFb423fA8/sources/TestyToken.sol
MasterChef is the master of TSTI. He can make TSTI and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once TSTI is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it's ...
contract MasterChef is Ownable { using SafeMath for uint256; using SafeBEP20 for IBEP20; struct UserInfo { } struct PoolInfo { } event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); ...
11,056,042
[ 1, 4625, 348, 7953, 560, 30, 225, 13453, 39, 580, 74, 353, 326, 4171, 434, 399, 882, 45, 18, 8264, 848, 1221, 399, 882, 45, 471, 3904, 353, 279, 284, 1826, 3058, 93, 18, 3609, 716, 518, 1807, 4953, 429, 471, 326, 3410, 341, 491,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13453, 39, 580, 74, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 5948, 52, 3462, 364, 467, 5948, 52, 3462, 31, 203, 203, 203, 203, 565, 1958, 25003, 288, 203, 565, 289, ...
./partial_match/8453/0x6A110a68aD7bb1734603BC28B82c0c9AFf98bc81/sources/FeeManager.sol
* @dev Function to set new master copy and update contract bytecode to install. Can only be called by factory owner @param _masterCopy Address of linkdrop mastercopy contract to calculate bytecode from @return True if updated successfully/
function setMasterCopy(address payable _masterCopy) public onlyOwner returns (bool) { require(_masterCopy != address(0), "INVALID_MASTER_COPY_ADDRESS"); masterCopyVersion = masterCopyVersion.add(1); require ( ILinkdropCommon(_masterCopy).initialize ...
16,757,558
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4284, 358, 444, 394, 4171, 1610, 471, 1089, 6835, 22801, 358, 3799, 18, 4480, 1338, 506, 2566, 635, 3272, 3410, 632, 891, 389, 7525, 2951, 5267, 434, 1692, 7285, 4171, 3530, 6835, 358, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 444, 7786, 2951, 12, 2867, 8843, 429, 389, 7525, 2951, 13, 203, 565, 1071, 1338, 5541, 203, 565, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 24899, 7525, 2951, 480, 1758, 12, 20, 3631, 315, 9347, 67, 28045, 6...
// SPDX-License-Identifier: MIT pragma solidity >0.5.0 <0.8.0; pragma experimental ABIEncoderV2; /* Interface Imports */ import { iOVM_L2DepositedERC721 } from "../iOVM/iOVM_L2DepositedERC721.sol"; import { iOVM_L1ERC721Gateway } from "../iOVM/iOVM_L1ERC721Gateway.sol"; /* Library Imports */ import { OVM_CrossDomainE...
* @dev initiate a withdraw of an ERC721 to a recipient's account on the other side @param _to adress to credit the withdrawal to @param _tokenId ERC721 token to withdraw/
function withdrawTo( address _to, uint _tokenId ) external override onlyInitialized() { _initiateWithdrawal(_to, _tokenId); }
12,552,337
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 18711, 279, 598, 9446, 434, 392, 4232, 39, 27, 5340, 358, 279, 8027, 1807, 2236, 603, 326, 1308, 4889, 632, 891, 389, 869, 1261, 663, 358, 12896, 326, 598, 9446, 287, 358, 632, 891, 389...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 774, 12, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 389, 2316, 548, 203, 565, 262, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1338, 11459, 1435, 203, 565, 288, 203, 3639, 389, 2738, 3840, 1190, 9446, ...
./full_match/3/0x5D0e77aA2F8a13B6892e87c05673685805118802/sources/browser/contracts/MarsPoolStaking.sol
@notice Where any user can stake their ERC20 tokens into a pool in order to farm $LPT @param _pid ID of the pool @param _amount Amount of ERC20 being staked
function deposit(uint256 _pid, uint256 _amount) external { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount.add(_amount) <= pool.maxStakingAmountPerUser, "deposit: can not exceed max staking amount per user"); updatePoo...
8,164,087
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 12177, 1281, 729, 848, 384, 911, 3675, 4232, 39, 3462, 2430, 1368, 279, 2845, 316, 1353, 358, 284, 4610, 271, 48, 1856, 632, 891, 389, 6610, 1599, 434, 326, 2845, 632, 891, 389, 8949, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 3903, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 67, 6610, 6362, 3576, ...
// SPDX-License-Identifier: AGPL-3.0-only // Code from: https://github.com/m1guelpf/lil-web3/blob/main/src/LilJuicebox.sol pragma solidity ^0.8.13; import { ERC20 } from "@rari-capital/solmate/src/tokens/ERC20.sol"; import { SafeTransferLib } from "@rari-capital/solmate/src/utils/SafeTransferLib.sol"; /// @title Pro...
@notice Deploys a LilJuicebox instance with the specified name and symbol @param name The name of the ERC20 token @param symbol The symbol of the ERC20 token
constructor(string memory name, string memory symbol) payable { manager = msg.sender; getState = State.OPEN; token = new ProjectShare(name, symbol); }
6,447,524
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4019, 383, 1900, 279, 511, 330, 46, 89, 1812, 2147, 791, 598, 326, 1269, 508, 471, 3273, 632, 891, 508, 1021, 508, 434, 326, 4232, 39, 3462, 1147, 632, 891, 3273, 1021, 3273, 434, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 12, 1080, 3778, 508, 16, 533, 3778, 3273, 13, 8843, 429, 288, 203, 565, 3301, 273, 1234, 18, 15330, 31, 203, 565, 8997, 273, 3287, 18, 11437, 31, 203, 565, 1147, 273, 394, 5420, 9535, 12, 529, 16, 3273, 1769, 203, ...
pragma solidity 0.5.3; import './ICerticolCA.sol'; import './ICerticolDAOToken.sol'; import 'openzeppelin-solidity/contracts/math/SafeMath.sol'; import 'openzeppelin-solidity/contracts/ownership/Ownable.sol'; import 'openzeppelin-solidity/contracts/token/ERC20/IERC20.sol'; import 'openzeppelin-solidity/contracts/toke...
* @notice Get the number of tokens locked for holder @param holder address the address queried @return uint256 the number of tokens locked/
function getTokensLocked(address holder) public view returns (uint256) { return _tokensLocked[holder]; }
13,141,378
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 326, 1300, 434, 2430, 8586, 364, 10438, 632, 891, 10438, 1758, 326, 1758, 23264, 632, 2463, 2254, 5034, 326, 1300, 434, 2430, 8586, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18349, 8966, 12, 2867, 10438, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 7860, 8966, 63, 4505, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: Unlicense pragma solidity >=0.7.6; import '@NutBerry/NutBerry/src/tsm/contracts/NutBerryEvents.sol'; // Audit-1: ok contract UpgradableRollup is NutBerryEvents { /// @notice Returns the address who is in charge of changing the rollup implementation. /// This contract should be managed ...
@notice Returns the address who is in charge of changing the rollup implementation. This contract should be managed by a `ExecutionProxy` that in turn verifies governance decisions from the rollup. The rollup will be managed by a multisig in the beginning until moving to community governance. It should be noted that t...
function ROLLUP_MANAGER () public virtual view returns (address) { }
898,874
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 326, 1758, 10354, 353, 316, 13765, 434, 12770, 326, 5824, 416, 4471, 18, 1220, 6835, 1410, 506, 7016, 635, 279, 1375, 3210, 3886, 68, 716, 316, 7005, 20761, 314, 1643, 82, 1359, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 534, 30922, 3079, 67, 19402, 1832, 1071, 5024, 1476, 1135, 261, 2867, 13, 288, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0xDfc1CcDadf37195228bA39E7Ae72DeC77BCE6401/sources/contracts/AchieveMint.sol
* @dev Support meta transactions/* @dev Setup roles/* @dev Set the base URI for the metadata/* @dev Set the contract level metadata/
constructor(address _forwarder) ERC1155("") { _setTrustedForwarder(_forwarder); ADMIN_ROLE = keccak256("ADMIN_ROLE"); CREATOR_ROLE = keccak256("CREATOR_ROLE"); address sender = _msgSender(); _setupRole(DEFAULT_ADMIN_ROLE, sender); _setupRole(ADMIN_ROLE, sender); ...
5,691,070
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13619, 2191, 8938, 20308, 632, 5206, 10939, 4900, 20308, 632, 5206, 1000, 326, 1026, 3699, 364, 326, 1982, 20308, 632, 5206, 1000, 326, 6835, 1801, 1982, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1884, 20099, 13, 4232, 39, 2499, 2539, 2932, 7923, 288, 203, 540, 389, 542, 16950, 30839, 24899, 1884, 20099, 1769, 203, 3639, 25969, 67, 16256, 273, 417, 24410, 581, 5034, 2932, 15468, 67, 16256, 8863, 20...
pragma solidity ^0.4.19; /** * @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; } functi...
@dev There are several checks to make sure the parameters are acceptable @param _initialTime The Unix time in which the sale starts @param _controlTime The Unix time in which the sale needs to check on the refunding start @param _ESCBDevMultisig The address that will store the donated funds and manager for the sale @p...
contract ESCBTokenSale is TokenController { event ActivatedSale(); event FinalizedSale(); event NewBuyer(address indexed holder, uint256 ESCBCoinAmount, uint256 etherAmount); event NewExternalFoundation(address indexed holder, uint256 ESCBCoinAmount, uint256 etherAmount, bytes32 externalId); event ...
2,303,022
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 6149, 854, 11392, 4271, 358, 1221, 3071, 326, 1472, 854, 14206, 632, 891, 389, 6769, 950, 1021, 9480, 813, 316, 1492, 326, 272, 5349, 2542, 632, 891, 389, 7098, 950, 1021, 9480, 813, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 6835, 512, 2312, 38, 1345, 30746, 353, 3155, 2933, 288, 203, 203, 203, 203, 203, 203, 282, 871, 26939, 690, 30746, 5621, 203, 282, 871, 16269, 1235, 30746, 5621, 203, 282, 871, 1166, 38, 16213, 12, 2867, 8808, 10438, 16, 2254, 50...
./full_match/137/0x4eEC1Dc3a43d8F53A36d4A416fC30b1B6C287d13/sources/contract-0beda585d0.sol
@custom:security-contact security@kiwanoproject.com
contract KIWANO is ERC20, ERC20Burnable, Pausable, Ownable { pragma solidity ^0.8.2; constructor() ERC20("KIWANO", "WANO") { _mint(msg.sender, 250000000 * 10 ** decimals()); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); ...
4,761,041
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 3662, 30, 7462, 17, 8994, 4373, 36, 15299, 91, 304, 556, 28290, 18, 832, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1475, 45, 26499, 51, 353, 4232, 39, 3462, 16, 4232, 39, 3462, 38, 321, 429, 16, 21800, 16665, 16, 14223, 6914, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 22, 31, 203, 565, 3885, 1435, 4232, 39, 3462, 2932, ...
/** *Submitted for verification at Etherscan.io on 2020-11-19 */ /** *Submitted for verification at Etherscan.io on 2020-10-26 */ // SPDX-License-Identifier: MIT pragma solidity >=0.4.24 <0.7.0; pragma solidity ^0.6.0; pragma solidity ^0.6.0; pragma solidity >=0.5.0; pragma solidity 0.6.12; pragma solidity ^0.6.0;...
File: contracts/TCOREv1Router.sol import "./uniswapv2/interfaces/IUniswapV2Pair.sol";
contract TCOREv1Router is OwnableUpgradeSafe { using SafeMath for uint256; mapping(address => uint256) public hardTCORE; address public _tcoreToken = address(0x7A3D5d49D64E57DBd6FBB21dF7202bD3EE7A2253); address public _tcoreWETHPair = address(0x39C0eDEf530d284b8f7820061114157C5bD78093); IFeeApprov...
239,369
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 20092, 19, 56, 15715, 90, 21, 8259, 18, 18281, 1930, 25165, 318, 291, 91, 438, 90, 22, 19, 15898, 19, 45, 984, 291, 91, 438, 58, 22, 4154, 18, 18281, 14432, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 399, 15715, 90, 21, 8259, 353, 14223, 6914, 10784, 9890, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 7877, 56, 15715, 31, 203, 203, 565, 1758, 1071, 389...
./full_match/5/0x626Cc7C3BE5dd533be2AC4DAbc4B7ef7480C15ca/sources/contracts/Crowdfunding.sol
return the idex (id) of latest campaign
function createCampaign( address _owner, string memory _title, string memory _description, uint256 _target, uint256 _deadline, string memory _image ) public returns (uint256) { Campaign storage campaign = campaigns[numberOfCampaigns]; require( ...
1,866,366
[ 1, 4625, 348, 7953, 560, 30, 327, 326, 277, 561, 261, 350, 13, 434, 4891, 8965, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 13432, 12, 203, 3639, 1758, 389, 8443, 16, 203, 3639, 533, 3778, 389, 2649, 16, 203, 3639, 533, 3778, 389, 3384, 16, 203, 3639, 2254, 5034, 389, 3299, 16, 203, 3639, 2254, 5034, 389, 22097, 1369, 16, 203, 3639, 5...
pragma solidity ^0.4.23; import "./erc721.sol"; import "./SafeMath.sol"; import "./Random.sol"; import "./Database.sol"; contract WarriorBase is ERC721 { using SafeMath for uint256; using SafeMath for uint64; Random private randomContract; Database private databaseContract; ...
@dev adopt a level 2 warrior (0.05 eth)
function adoptLvTwo() external payable returns(uint256) { require(msg.sender != address(0)); require(msg.value >= 0.05 ether); uint newWarriorId = WarriorList.length; WarriorList.length += 1; Warrior storage war = WarriorList[newWarriorId]; ...
1,821,250
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1261, 3838, 279, 1801, 576, 21983, 2432, 261, 20, 18, 6260, 13750, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1261, 3838, 48, 90, 11710, 1435, 7010, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 1135, 12, 11890, 5034, 13, 203, 3639, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 3576, ...
pragma solidity >=0.4.22 <0.6.0; contract IERC20 { function totalSupply() constant public returns (uint256); function balanceOf(address _owner) constant public returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _f...
Subtract from the sender
freezeOf[msg.sender] = SafeMath.sub(freezeOf[msg.sender], _value);
5,501,043
[ 1, 4625, 348, 7953, 560, 30, 225, 2592, 1575, 628, 326, 5793, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 16684, 951, 63, 3576, 18, 15330, 65, 273, 14060, 10477, 18, 1717, 12, 29631, 951, 63, 3576, 18, 15330, 6487, 389, 1132, 1769, 15604, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./OwnerRole.sol"; /// @title BurnerRole Contract /// @notice Only administrators can update the burner roles /// @dev Keeps track of burners and can check if an account is authorized contract BurnerRole is OwnerRole { event BurnerAdded(address index...
@dev Public function returns `true` if `account` has been granted a burner role
function isBurner(address account) public view returns (bool) { return _has(_burners, account); }
5,361,957
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 7224, 445, 1135, 1375, 3767, 68, 309, 1375, 4631, 68, 711, 2118, 17578, 279, 18305, 264, 2478, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 27057, 321, 264, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 389, 5332, 24899, 70, 321, 414, 16, 2236, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.6.0; ...
inject NONSTANDARD NAMING
function LOG40(string memory p0, address p1, uint p2, string memory p3) internal view {
1,019,073
[ 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, 202, 915, 2018, 7132, 12, 1080, 3778, 293, 20, 16, 1758, 293, 21, 16, 2254, 293, 22, 16, 533, 3778, 293, 23, 13, 2713, 1476, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0xC68a8c6A29412827018A23058E0CEd132889Ea48/sources/src/strategies/PancakeSwapPulseStrategyV2.sol
@param positionManager_ PancakeSwap v3 NonfungiblePositionManager
constructor(IPancakeNonfungiblePositionManager positionManager_) { require(address(positionManager_) != address(0), ExceptionsLibrary.ADDRESS_ZERO); positionManager = positionManager_; }
16,471,529
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 891, 1754, 1318, 67, 12913, 23780, 12521, 331, 23, 3858, 12125, 75, 1523, 2555, 1318, 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, 3885, 12, 2579, 19292, 911, 3989, 12125, 75, 1523, 2555, 1318, 1754, 1318, 67, 13, 288, 203, 3639, 2583, 12, 2867, 12, 3276, 1318, 67, 13, 480, 1758, 12, 20, 3631, 12781, 9313, 18, 15140, 67, 24968, 1769, 203, 3639, 1754, ...
./full_match/1/0x8b2185bB3750cD6eD1Ced62a8E415bf05C40644e/sources/localhost/protocol/extensions/adapters/AUniswapV2.sol
callerIsDragoOwner();canTradeTokenOnExchange(UNISWAP_V2_ROUTER_ADDRESS, path[0]);
function swapExactTokensForETH( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts) { _safeApprove(path[0], UNISWAP_V2_ROUTER_ADDRESS, 2**256 -1); amounts = IUn...
4,890,514
[ 1, 4625, 348, 7953, 560, 30, 4894, 2520, 11728, 83, 5541, 5621, 4169, 22583, 1345, 1398, 11688, 12, 2124, 5127, 59, 2203, 67, 58, 22, 67, 1457, 1693, 654, 67, 15140, 16, 589, 63, 20, 19226, 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, 7720, 14332, 5157, 1290, 1584, 44, 12, 203, 3639, 2254, 3844, 382, 16, 203, 3639, 2254, 3844, 1182, 2930, 16, 203, 3639, 1758, 8526, 745, 892, 589, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 14096, 203, 565, 262, ...
./full_match/5/0x273bb54f21E23CeA5312bE2623ED97C25CBd6F0D/sources/data/source/services/ServiceRegistry.sol
The contract can disappear.
selfdestruct(_to);
1,912,360
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 6835, 848, 1015, 438, 17964, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5489, 8813, 24899, 869, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* Fully commented standard ERC721 Distilled from OpenZeppelin Docs Base for Building ERC721 by Martin McConnell All the utility without the fluff. */ interface IERC165 { function supportsInterface(bytes4 interfaceId) external view returns (boo...
Store the starting value of the mint batch
uint256 mintSeedValue = numberMinted;
153,372
[ 1, 4625, 348, 7953, 560, 30, 4994, 326, 5023, 460, 434, 326, 312, 474, 2581, 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, 2254, 5034, 312, 474, 12702, 620, 273, 1300, 49, 474, 329, 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...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.7.0; pragma abicoder v2; import "../internal/portfolio/PortfolioHandler.sol"; import "../internal/balances/BalanceHandler.sol"; import "../internal/settlement/SettlePortfolioAssets.sol"; import "../internal/settlement/SettleBitmapAssets.sol"; import "../inter...
prettier-ignore prettier-ignore prettier-ignore
function loadNTokenPortfolioNoCashGroup(nTokenPortfolio memory nToken, uint16 currencyId) internal view { nToken.tokenAddress = nTokenAddress(currencyId); ( uint256 lastInitializedTime, uint8 assetArrayLength, bytes5 parameters ) = getN...
309,903
[ 1, 4625, 348, 7953, 560, 30, 225, 675, 748, 2453, 17, 6185, 675, 748, 2453, 17, 6185, 675, 748, 2453, 17, 6185, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1262, 50, 1345, 17163, 2279, 39, 961, 1114, 12, 82, 1345, 17163, 3778, 290, 1345, 16, 2254, 2313, 5462, 548, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 565, 288, 203, 3639, 290, 1345, 18, 2316, 1887, 273, 290, 1345, 1...
pragma ton-solidity >= 0.38.2; /// @title LiquiSOR\DEXRoot /// @author laugan /// @notice Factory contract for pool deployment, adding TIP-3 tokens and overall DEX management pragma AbiHeader time; pragma AbiHeader expire; pragma AbiHeader pubkey; import "../std/lib/TVM.sol"; import "../dex/lib/DEX.sol"; import "../...
require(cellHash == tvm.hash(_cell), ERROR_WRONG_CODE_CRC);
function updateLiqWalletCode(TvmCell _cell) external onlyOwnerAcceptOrPay { liqWalletCode_ = _cell; }
7,295,433
[ 1, 4625, 348, 7953, 560, 30, 2583, 12, 3855, 2310, 422, 268, 3489, 18, 2816, 24899, 3855, 3631, 5475, 67, 7181, 7390, 67, 5572, 67, 26803, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 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, 1089, 48, 18638, 16936, 1085, 12, 56, 3489, 4020, 389, 3855, 13, 3903, 1338, 5541, 5933, 1162, 9148, 288, 203, 1377, 4501, 85, 16936, 1085, 67, 273, 389, 3855, 31, 203, 565, 289, 1377, 203, 203, 2, -100, -100, -100, -...
./full_match/1/0xBb4BAB913E3C001b6C30059B398c0797ded84d34/sources/contracts/deploy/DSProxyContract.sol
use the proxy to execute calldata _data on contract _code deploy contract & store its address in cache
function execute( bytes memory _code, bytes memory _data, bool bools ) external payable returns (address target, bytes memory response) { target = cache.read(_code); if (target == address(0)) { target = cache.write(_code); } response = execute...
4,876,342
[ 1, 4625, 348, 7953, 560, 30, 225, 999, 326, 2889, 358, 1836, 745, 892, 389, 892, 603, 6835, 389, 710, 7286, 6835, 473, 1707, 2097, 1758, 316, 1247, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1836, 12, 203, 3639, 1731, 3778, 389, 710, 16, 203, 3639, 1731, 3778, 389, 892, 16, 203, 3639, 1426, 1426, 87, 203, 565, 262, 3903, 8843, 429, 1135, 261, 2867, 1018, 16, 1731, 3778, 766, 13, 288, 203, 3639, 1018, 273,...
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0 <0.8.0; interface IHswapV2Callee { function hswapV2Call( address sender, uint256 amount0, uint256 amount1, bytes calldata data ) external; } interface IERC20 { event Approval(address indexed owner, address indexed spe...
this low-level function should be called from a contract which performs important safety checks gas savings scope for _token{0,1}, avoids stack too deep errors optimistically transfer tokens optimistically transfer tokens scope for reserve{0,1}Adjusted, avoids stack too deep errors
function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external lock { require(amount0Out > 0 || amount1Out > 0, 'MdexSwap: INSUFFICIENT_OUTPUT_AMOUNT'); (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); require(am...
14,092,432
[ 1, 4625, 348, 7953, 560, 30, 225, 333, 4587, 17, 2815, 445, 1410, 506, 2566, 628, 279, 6835, 1492, 11199, 10802, 24179, 4271, 16189, 4087, 899, 2146, 364, 389, 2316, 95, 20, 16, 21, 5779, 24192, 2110, 4885, 4608, 1334, 5213, 5846, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7720, 12, 203, 3639, 2254, 5034, 3844, 20, 1182, 16, 203, 3639, 2254, 5034, 3844, 21, 1182, 16, 203, 3639, 1758, 358, 16, 203, 3639, 1731, 745, 892, 501, 203, 565, 262, 3903, 2176, 288, 203, 3639, 2583, 12, 8949, 20, ...
pragma solidity ^0.4.18; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of...
Amount of Team supply could be released after 18 months
uint256 public teamSupply18Months;
366,303
[ 1, 4625, 348, 7953, 560, 30, 16811, 434, 10434, 14467, 3377, 506, 15976, 1839, 6549, 8846, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5927, 3088, 1283, 2643, 19749, 31, 21821, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.11; // Created for conduction of Zaber ICO - http://www.zabercoin.io/ // Copying in whole or in part is prohibited. // This code is the property of ICORating and ICOmachine - http://ICORating.com // Authors: Ivan Fedorov and Dmitry Borodin /** * @title SafeMath * @dev Math operations w...
assert(b > 0); Solidity automatically throws when dividing by 0 assert(a == b * c + a % b); There is no case in which this does not hold
function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; }
2,524,372
[ 1, 4625, 348, 7953, 560, 30, 225, 1815, 12, 70, 405, 374, 1769, 225, 348, 7953, 560, 6635, 1216, 1347, 3739, 10415, 635, 374, 1815, 12, 69, 422, 324, 380, 276, 397, 279, 738, 324, 1769, 225, 6149, 353, 1158, 648, 316, 1492, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3739, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 5381, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 273, 279, 342, 324, 31, 203, 3639, 327, 276, 31, 203, 565, 289, 203, 377, 203, 2, -100, -...
./partial_match/42/0xB2189eDD7A76775332dE02ab69F6C88bb05Aeeed/sources/MasterChefStageOne.sol
calculate modified weight : 10% self + 5% invitees
uint256 nextTermInviteesModifiedWeight = user.termInfo[nextTerm].inviteeWeight;
3,333,655
[ 1, 4625, 348, 7953, 560, 30, 225, 4604, 4358, 3119, 294, 1728, 9, 365, 397, 1381, 9, 19035, 281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 1024, 4065, 22730, 281, 4575, 6544, 273, 729, 18, 6408, 966, 63, 4285, 4065, 8009, 27154, 73, 6544, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/4/0xE3eB157642964E9335E4459F7AF9761333bc89B3/sources/ATMLiquidityMining.sol
*/*/*/*/*/*/*/*/*/*/*/* @dev Collection of functions related to the address type/
library Address { @notice This interface defines the functions to manage the Escrow contracts associated to borrowers and loans. @author develop@teller.finance } function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c92...
8,700,348
[ 1, 4625, 348, 7953, 560, 30, 1195, 5549, 5549, 5549, 5549, 5549, 5549, 5549, 5549, 5549, 5549, 14, 632, 5206, 2200, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5267, 288, 203, 565, 632, 20392, 1220, 1560, 11164, 326, 4186, 358, 10680, 326, 512, 1017, 492, 20092, 3627, 358, 29759, 414, 471, 437, 634, 18, 203, 203, 565, 632, 4161, 17196, 36, 19261, 749, 18, 926, 1359, 203, 97, 203,...
./partial_match/4/0x2d2F65e372d4808e020e2e3E7c0c6A7DfBd28f51/sources/FarmProRata.sol
If there are any undistributed or unclaimed tokens left in contract after this time Admin can claim them
uint public constant adminCanClaimAfter = 70 minutes;
8,526,722
[ 1, 4625, 348, 7953, 560, 30, 225, 971, 1915, 854, 1281, 640, 2251, 11050, 578, 6301, 80, 4581, 329, 2430, 2002, 316, 6835, 1839, 333, 813, 7807, 848, 7516, 2182, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 5381, 3981, 2568, 9762, 4436, 273, 16647, 6824, 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, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; contract Migrations { address public owner = msg.sender; uint public last_completed_migration; modifier restricted() { require( msg.sender == owner, "This function is restricted to the contract's owner" ); _; } functio...
@notice Return current position ID
function getCurrPositionId() external override view returns (uint) { return CURR_POSITION_ID; }
1,495,864
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2000, 783, 1754, 1599, 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, 14135, 86, 2555, 548, 1435, 3903, 3849, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 4706, 54, 67, 15258, 67, 734, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity >=0.4.21 <0.7.0; contract SimpleStorage { uint storedData; event LogSet(address sender, uint newValue); function set(uint x) public { storedData = x; emit LogSet(msg.sender, x); } function get() public view returns (uint) { return storedData; } struct Organization { ...
uses for loop to count votes from votes mapping if majority in favor returns true called by splitGroup function i think this is not needed in UI, just for testing
function countVotes(uint groupNumber) public view returns(bool) { uint yesVote = 0; uint noVote = 0; uint[] memory membersInGroup = readMemberListInGroup(groupNumber); for (uint i = 0; i < membersInGroup.length; i++) { if (readMemberVote(membersInGroup[i])...
2,478,361
[ 1, 4625, 348, 7953, 560, 30, 225, 4692, 364, 2798, 358, 1056, 19588, 628, 19588, 2874, 309, 7888, 560, 316, 18552, 1135, 638, 2566, 635, 1416, 1114, 445, 277, 15507, 333, 353, 486, 3577, 316, 6484, 16, 2537, 364, 7769, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1056, 29637, 12, 11890, 1041, 1854, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 12, 6430, 13, 203, 565, 288, 203, 3639, 2254, 12465, 19338, 273, 374, 31, 203, 3639, 2254, 1158, 19338, 273, 374, 31, 203, 3639, ...
pragma solidity ^0.7.6; import "./Token.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract TokenBank { uint tokenEthRate = 1; event BuyTokens(address buyer, uint256 amountOfETH, uint256 amountOfTokens); Token private token; constructor(Token _token) public { token ...
Check that the Vendor's balance is enough to do the swap
uint256 amountOfETHToTransfer = tokenAmountToSell / tokenEthRate;
12,721,778
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 716, 326, 776, 5227, 1807, 11013, 353, 7304, 358, 741, 326, 7720, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 3844, 951, 1584, 44, 774, 5912, 273, 1147, 6275, 774, 55, 1165, 342, 1147, 41, 451, 4727, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/44787/0xb8EC5Ee136A409ce5035AE59B1d95E244ee2a1b2/sources/contracts/StarFarm.sol
We do some fancy math here. Basically, any point in time, the amount of STARs entitled to a user but is pending to be distributed is: pending reward = (user.amount * pool.accStarPerShare) - user.rewardDebt Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: 1. The pool's `accStarPerShar...
struct UserInfo { uint256 lastDeposit; }
13,264,575
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 741, 2690, 31701, 4233, 2674, 18, 7651, 1230, 16, 1281, 1634, 316, 813, 16, 326, 3844, 434, 21807, 87, 3281, 305, 1259, 358, 279, 729, 1496, 353, 4634, 358, 506, 16859, 353, 30, 282, 4634, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 25003, 288, 203, 3639, 2254, 5034, 1142, 758, 1724, 31, 203, 565, 289, 203, 202, 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.24; contract Owned { address public aOwner; address public coOwner1; address public coOwner2; constructor() public { aOwner = msg.sender; coOwner1 = msg.sender; coOwner2 = msg.sender; } /* Modifiers */ modifier onlyOwner { require(msg.s...
time of stage in minutes
uint private stageTime = 86400;
1,715,622
[ 1, 4625, 348, 7953, 560, 30, 225, 813, 434, 6009, 316, 6824, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 3238, 6009, 950, 273, 21451, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol"; impor...
* @dev See {IERC721Mintable-minterOf}./
function minterOf( uint256 tokenId ) public view returns (address) { return _minters.get(tokenId); }
12,957,888
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 49, 474, 429, 17, 1154, 387, 951, 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, ...
[ 1, 1, 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, 1131, 387, 951, 12, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 389, 1154, 5432, 18, 588, 12, 2316, 548, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, ...
pragma solidity ^0.4.20; /** * @author FadyAro * * 22.07.2018 * * */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; } modifier onlyOwner() {...
* @dev let the user comment 64 letters for a winning round @param round the winning round @param a the first 32 letters comment @param b the second 32 letters comment @return user comment/
function comment(uint round, bytes32 a, bytes32 b) whenNotPaused public { address winner = _winners[round]; require(winner == msg.sender, 'not a winner'); require(_history[winner].blacklist != FLAG_BLACKLIST, 'blacklisted'); _wincomma[round] = a; _wincommb[round] = b; ...
6,355,296
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2231, 326, 729, 2879, 5178, 13768, 364, 279, 5657, 2093, 3643, 632, 891, 3643, 326, 5657, 2093, 3643, 632, 891, 279, 326, 1122, 3847, 13768, 2879, 632, 891, 324, 326, 2205, 3847, 13768, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2879, 12, 11890, 3643, 16, 1731, 1578, 279, 16, 1731, 1578, 324, 13, 1347, 1248, 28590, 1071, 288, 203, 203, 3639, 1758, 5657, 1224, 273, 389, 8082, 9646, 63, 2260, 15533, 203, 203, 3639, 2583, 12, 91, 7872, 422, 1234, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol'; import './BLOBLeague.sol'; import './BLOBUtils.sol'; import './BLOBRegistry.sol'; import './BLOBTeam.sol'; contract BLOBPlayer is ERC...
update physical strength and maturity age < 25: physicalStrength increases 4 percentage points 25 <= age < 30: physicalStrength increases 2 percentage points 30 <= age < 35: physicalStrength decreases 2 percentage points, 35 <= age: physicalStrength decreases 4 percentage points,
function UpdatePlayerConditions(uint _playerId, uint16 _playerSeasonMinutesAvg, uint16 _playMinutesInSeason, uint _seed) external seasonOnly returns(uint seed) { Player storage player = idToPlayer...
12,663,311
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 11640, 21638, 471, 29663, 9388, 411, 6969, 30, 11640, 27624, 7033, 3304, 1059, 11622, 3143, 6969, 1648, 9388, 411, 5196, 30, 11640, 27624, 7033, 3304, 576, 11622, 3143, 5196, 1648, 9388, 411, 1319...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2315, 12148, 8545, 12, 11890, 389, 14872, 548, 16, 203, 4766, 565, 2254, 2313, 389, 14872, 1761, 2753, 13050, 22823, 16, 203, 4766, 565, 2254, 2313, 389, 1601, 13050, 382, 1761, 2753, 16, 203, 4766, 565, 2254, 389, 12407,...
./full_match/1287/0xA535E7ECA76BF1dbdbED9d8745b9158632Dca0d7/sources/project_/contracts/treasury/TreasuryCoreContract.sol
@dev Modifier to check that the caller is the treasury contract
modifier onlyTreasuryContract() { require( msg.sender == TREASURY_CONTRACT_ADDRESS, "UNAUTHORIZED: CANNOT_PERFORM_ACTION" ); _; }
7,096,861
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 12832, 358, 866, 716, 326, 4894, 353, 326, 9787, 345, 22498, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 56, 266, 345, 22498, 8924, 1435, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 399, 862, 3033, 1099, 61, 67, 6067, 2849, 1268, 67, 15140, 16, 203, 5411, 315, 2124, 28383, 30, 385, 16791, 67, 3194, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import '@openzeppelin/contracts/access/Ownable.sol'; import './ModaAware.sol'; import './EscrowedModaERC20.sol'; /** * @title Moda Core Pool * * @notice Core pools represent permanent pools like MODA or MODA/ETH Pair pool, * core pools allow staking for...
* @notice Decreases MODA/block reward by 3%, can be executed no more than once per `blocksPerUpdate` blocks/ checks if ratio can be updated i.e. if blocks/update (91252 blocks) have passed decreases MODA/block reward by 3% set current block as the last ratio update block emit an event
function updateMODAPerBlock() internal { require(shouldUpdateRatio(), 'too frequent'); modaPerBlock = (modaPerBlock * 97) / 100; lastRatioUpdate = block.number; emit ModaRatioUpdated(msg.sender, modaPerBlock); }
6,352,998
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 31073, 3304, 8663, 37, 19, 2629, 19890, 635, 890, 9, 16, 848, 506, 7120, 1377, 1158, 1898, 2353, 3647, 1534, 1375, 7996, 2173, 1891, 68, 4398, 19, 4271, 309, 7169, 848, 506, 3526, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 6720, 37, 2173, 1768, 1435, 2713, 288, 203, 202, 202, 6528, 12, 13139, 1891, 8541, 9334, 296, 16431, 13821, 319, 8284, 203, 203, 202, 202, 1711, 69, 2173, 1768, 273, 261, 1711, 69, 2173, 1768, 380, 16340, 13, 342,...
// SPDX-License-Identifier: MIT pragma solidity =0.6.12; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol...
query cyn token ripe
function queryCynReward(address _address, address tokenA, address tokenB) public view returns (uint256) { address lpToken = UniswapV2Library.pairFor(factory, tokenA, tokenB); if (poolInfo[lpToken] == 0) { return 0; } TradeInfo memory tradeInfo = trader[_address][lpToken];...
10,730,971
[ 1, 4625, 348, 7953, 560, 30, 225, 843, 276, 878, 1147, 436, 3151, 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, 843, 39, 878, 17631, 1060, 12, 2867, 389, 2867, 16, 1758, 1147, 37, 16, 1758, 1147, 38, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 1758, 12423, 1345, 273, 1351, 291, 91, 438, 58, 22, 9313, 18, 6017, ...
// SPDX-License-Identifier: MIT // If you think you may have found a vulnerability // File: @opengsn/contracts/src/interfaces/IRelayRecipient.sol pragma solidity >=0.6.0; /** * a contract must implement this interface in order to support relayed transaction. * It is better to inherit the BaseRelayRecipient as its ...
In case we need to "undo" a signature/prevent it from being used, This is easier than changing the signer we would also need to remake all unused signatures
function setNonces(uint256 nonceClaim, uint256 nonceWL) external onlyOwner { _nonceClaim = nonceClaim; _nonceWL = nonceWL; }
14,387,831
[ 1, 4625, 348, 7953, 560, 30, 225, 657, 648, 732, 1608, 358, 315, 31226, 6, 279, 3372, 19, 29150, 518, 628, 3832, 1399, 16, 1220, 353, 15857, 2353, 12770, 326, 10363, 732, 4102, 2546, 1608, 358, 849, 911, 777, 10197, 14862, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 3989, 764, 12, 11890, 5034, 7448, 9762, 16, 2254, 5034, 7448, 59, 48, 13, 3903, 1338, 5541, 288, 203, 3639, 389, 12824, 9762, 273, 7448, 9762, 31, 203, 3639, 389, 12824, 59, 48, 273, 7448, 59, 48, 31, 203, 565, ...
./full_match/3/0x7F0e93339F45683B122d4d10498ACaa1aCcF7BD5/sources/auction.sol
mapping(uint256 => auction)auctiondetails;mapping(address => mapping(uint256 => uint256))biddersdetails;bidder[] internal bidders;
contract Auction is IERC721Receiver{ using Counters for Counters.Counter; using SafeMath for uint256; using EnumerableSet for EnumerableSet.UintSet; IERC721 public TokenX; mapping(address => uint256)conductedAuction; mapping(address => mapping(uint256 =>uint256))participatedAuc...
8,189,052
[ 1, 4625, 348, 7953, 560, 30, 2874, 12, 11890, 5034, 516, 279, 4062, 13, 69, 4062, 6395, 31, 6770, 12, 2867, 516, 2874, 12, 11890, 5034, 516, 2254, 5034, 3719, 70, 1873, 414, 6395, 31, 19773, 765, 8526, 2713, 324, 1873, 414, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 432, 4062, 353, 467, 654, 39, 27, 5340, 12952, 95, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 6057, 25121, 694, 364, 6057, 25121, 694, 18, 54...
/** Source code of Opium Protocol Web https://opium.network Telegram https://t.me/opium_network Twitter https://twitter.com/opium_network */ // File: LICENSE /** The software and documentation available in this repository (the "Software") is protected by copyright law and accessible pursuant to the licens...
* @dev Gets the approved address for a token ID, or zero if no address set @param _tokenId uint256 ID of the token to query the approval of @return address currently approved for the given token ID/
function getApproved(uint256 _tokenId) public view returns (address) { if (exists(_tokenId)) { return address(this); } return address(0); }
1,368,058
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11881, 326, 20412, 1758, 364, 279, 1147, 1599, 16, 578, 3634, 309, 1158, 1758, 444, 632, 891, 389, 2316, 548, 2254, 5034, 1599, 434, 326, 1147, 358, 843, 326, 23556, 434, 632, 2463, 1758,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 336, 31639, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 565, 309, 261, 1808, 24899, 2316, 548, 3719, 288, 203, 1377, 327, 1758, 12, 2211, 1769, 203, 565, 289, 203, 203, 565, 327, 17...
// File: @openzeppelin\contracts\token\ERC20\IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @...
safe as we return if liquidity == 0
crETH.redeemUnderlying(amountWithdrawn);
14,005,302
[ 1, 4625, 348, 7953, 560, 30, 4183, 487, 732, 327, 309, 4501, 372, 24237, 422, 374, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 4422, 1584, 44, 18, 266, 24903, 14655, 6291, 12, 8949, 1190, 9446, 82, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// 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_404(address spender, uint value) public returns (bool ok) { _approvals[msg.sender][spender] = value; emit Approval( msg.sender, spender, value ); return true; }
6,454,117
[ 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, 11746, 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, 685, ...
./partial_match/1/0x11b2164DDf1C3c0a420cEaD050d422B26530d11C/sources/contracts/facets/ERC721A/ERC721AUpgradeableFacet.sol
* @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. Requirements: - The caller must own the token or be an approved operator./
function approve(address to, uint256 tokenId) public payable onlyAllowedOperatorApproval(to) virtual { _approve(to, tokenId, true); }
9,188,652
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 611, 3606, 4132, 358, 1375, 869, 68, 358, 7412, 1375, 2316, 548, 68, 1147, 358, 4042, 2236, 18, 2164, 288, 654, 39, 27, 5340, 37, 17, 67, 12908, 537, 5496, 29076, 30, 300, 1021, 4894, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 12, 2867, 358, 16, 2254, 5034, 1147, 548, 13, 1071, 8843, 429, 225, 1338, 5042, 5592, 23461, 12, 869, 13, 225, 5024, 288, 203, 3639, 389, 12908, 537, 12, 869, 16, 1147, 548, 16, 638, 1769, 203, 565, 289, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.5.16; pragma experimental ABIEncoderV2; contract Health { //mappings mapping(address => uint) authCaller; mapping(address => string) userType; mapping(address => patient) PData; mapping(address=> address[]) patToDoctor; mapping(address => ...
return patient treatmentId and precautions as well
function getPatient(address _Padd) public returns(string memory,uint[] memory,string memory){ require(msg.sender == _Padd); require(keccak256(abi.encodePacked(userType[msg.sender])) == keccak256(abi.encodePacked("patient"))); return (PData[msg.sender].Phash,PData[msg.sender].treatme...
956,158
[ 1, 4625, 348, 7953, 560, 30, 327, 18608, 24266, 548, 471, 675, 5353, 6170, 487, 5492, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1689, 270, 1979, 12, 2867, 389, 52, 1289, 13, 1071, 1135, 12, 1080, 3778, 16, 11890, 8526, 3778, 16, 1080, 3778, 15329, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 389, 52, 1289, 1769, 203, 3639, 2583, 12, 79, 24410, 5...
./partial_match/56/0x3056Ae2701fB1c97c57a1A5a9521E6E62D173499/sources/BEP20Polkadot.sol
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), Reverts with custom message when dividing by zero. Counterpart to Solidity's `%` operator. This function uses a `revert` opcode (which leaves remaining gas untouched) while Solidity uses an invalid opcode to revert (consuming all...
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
11,124,795
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 10022, 434, 3739, 10415, 2795, 9088, 12321, 18, 261, 22297, 3571, 26109, 3631, 868, 31537, 598, 1679, 883, 1347, 3739, 10415, 635, 3634, 18, 9354, 2680, 358, 348, 7953, 560, 1807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 915, 681, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 16, 533, 3778, 9324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 6528, 12, 70, 480, 374, 16, 9324, 1769, 203, 2463, 279, 738, 324, 31, 203, 97, 203, 2, -100, -10...
./full_match/1/0x23599275e58005cBf1c348fe9a19a0076FBB1635/sources/ERC20.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; constructor(string memory name_, string memory ...
9,752,027
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 22...
./full_match/80001/0xd3cFB1CE690B52006c90d8425D4EbAa9c86aBC77/sources/contracts/module/NTS-Single.sol
Update the user's total rewards earned and store the reward payment information.
users[msg.sender].rewardsEarned += _myReward;
5,581,709
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 326, 729, 1807, 2078, 283, 6397, 425, 1303, 329, 471, 1707, 326, 19890, 5184, 1779, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3677, 63, 3576, 18, 15330, 8009, 266, 6397, 41, 1303, 329, 1011, 389, 4811, 17631, 1060, 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.19; // File: contracts\MultiOwnable.sol /** * FEATURE 2): MultiOwnable implementation * Transactions approved by _multiRequires of _multiOwners' addresses will be executed. * All functions needing unit-tests cannot be INTERNAL */ contract MultiOwnable { address[8] m_owners; ...
* FEATURE : Buyable minimum of 0.001 ether for purchase in the public, pre-ico, and private sale Code caculates the endtime via python: d1 = datetime.datetime.strptime("2018-10-31 23:59:59", '%Y-%m-%d %H:%M:%S') t = time.mktime(d1.timetuple()) d2 = datetime.datetime.fromtimestamp(t) assert (d1 == d2) # print d...
function buy() payable whenNotPaused public returns (bool) { Deposit(msg.sender, msg.value); require(msg.value >= 0.001 ether); return true; }
12,791,489
[ 1, 4625, 348, 7953, 560, 30, 380, 25201, 294, 605, 9835, 429, 5224, 434, 374, 18, 11664, 225, 2437, 364, 23701, 316, 326, 1071, 16, 675, 17, 10764, 16, 471, 3238, 272, 5349, 3356, 276, 1077, 17099, 326, 31361, 3970, 5790, 30, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30143, 1435, 8843, 429, 1347, 1248, 28590, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 4019, 538, 305, 12, 3576, 18, 15330, 16, 1234, 18, 1132, 1769, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 374, 18, 11664, 225, 2437, ...
pragma solidity 0.4.24; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two ...
price that user paid to buy token
uint256 soldPrice;
461,962
[ 1, 4625, 348, 7953, 560, 30, 225, 6205, 716, 729, 30591, 358, 30143, 1147, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 272, 1673, 5147, 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, ...
./partial_match/1/0xb10ba7323c130D2865b37468e1daCA74d265312A/sources/contracts/_external/IERC20.sol
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function decimals() external view returns (uint8); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner,...
15,931,146
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 288, 203, 225, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 225, 445, 15105, 1435, 3903, 1476, 1135, 261, 11890, 28, 1769, 203, 203, 225, 445, 11013, 951, 12, 2867, 22...
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; pragma experimental ABIEncoderV2; import "../../../DS/DSMath.sol"; import "../../ActionBase.sol"; import "../../../utils/TokenUtils.sol"; import "./helpers/UniV3Helper.sol"; /// @title Collects tokensOwed from a position represented by tokenId contract UniColle...
@inheritdoc ActionBase
function executeActionDirect(bytes[] memory _callData) public payable override { IUniswapV3NonfungiblePositionManager.CollectParams memory uniData = parseInputs(_callData); _uniCollect(uniData); }
1,039,764
[ 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, 445, 1836, 1803, 5368, 12, 3890, 8526, 3778, 389, 1991, 751, 13, 1071, 8843, 429, 3849, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 23, 3989, 12125, 75, 1523, 2555, 1318, 18, 10808, 1370, 3778, 7738, 751, 273, 1109, 10059, ...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./AMM.sol"; import "../lib/CappedPool.sol"; import "../lib/CombinedActionsGuard.sol";...
How much A Im getting for rescuing one A that i've deposited
uint256 AA;
88,981
[ 1, 4625, 348, 7953, 560, 30, 225, 9017, 9816, 432, 2221, 8742, 364, 400, 6319, 310, 1245, 432, 716, 277, 8081, 443, 1724, 329, 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, ...
[ 1, 1, 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, 3639, 2254, 5034, 27343, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* 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...
@return executionQuantity Array of token addresses invovled in rebalancing/ Make sure the rebalancingSetToken is tracked by Core Receive bidding parameters of current auction If quantity is greater than remainingCurrentSets round amount to nearest multiple of minimumBid that is less than remainingCurrentSets
function calculateExecutionQuantity( address _rebalancingSetToken, uint256 _quantity, bool _allowPartialFill ) internal view returns (uint256) { require( coreInstance.validSets(_rebalancingSetToken), "RebalanceAuctionModule.bid:...
15,818,171
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2463, 4588, 12035, 4202, 1510, 434, 1147, 6138, 2198, 1527, 1259, 316, 283, 28867, 19, 4344, 3071, 326, 283, 28867, 694, 1345, 353, 15200, 635, 4586, 17046, 324, 1873, 310, 1472, 434, 783, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4604, 3210, 12035, 12, 203, 3639, 1758, 389, 266, 28867, 694, 1345, 16, 203, 3639, 2254, 5034, 389, 16172, 16, 203, 3639, 1426, 389, 5965, 9447, 8026, 203, 565, 262, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 26...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.4; // Uncomment if needed. // import "hardhat/console.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@ope...
@dev current total nIZI.
uint256 public totalNIZI;
5,850,508
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 783, 2078, 290, 6867, 45, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 2078, 50, 6867, 45, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0xa35A4972D74d4B3e4486163066E5fFed6d62b213/sources/browser/flatgenlenderiron.sol
Liquidate as many assets as possible to `want`, irregardless of slippage, up to `_amountNeeded`. Any excess should be re-invested here as well./if we don't set reserve here withdrawer will be sent our full balance
function liquidatePosition(uint256 _amountNeeded) internal override returns (uint256 _amountFreed, uint256 _loss) { uint256 _balance = want.balanceOf(address(this)); if (_balance >= _amountNeeded) { return (_amountNeeded,0); uint256 received = _withdrawSome(_amountNeeded - _...
3,044,112
[ 1, 4625, 348, 7953, 560, 30, 225, 511, 18988, 350, 340, 487, 4906, 7176, 487, 3323, 358, 1375, 17369, 9191, 9482, 1574, 1060, 2656, 434, 272, 3169, 2433, 16, 731, 358, 1375, 67, 8949, 11449, 8338, 5502, 23183, 1410, 506, 283, 17, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4501, 26595, 340, 2555, 12, 11890, 5034, 389, 8949, 11449, 13, 2713, 3849, 1135, 261, 11890, 5034, 389, 8949, 42, 15656, 16, 2254, 5034, 389, 7873, 13, 288, 203, 3639, 2254, 5034, 389, 12296, 273, 2545, 18, 12296, 951, ...
/** *Submitted for verification at Etherscan.io on 2022-04-05 */ // File: kintarotoken.sol //Telegram: https://t.me/KintaroToken //Twitter: https://twitter.com/kintarotoken pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { retur...
solhint-disable Anti-whale limits these values are pretty much arbitrary since they get overwritten for every txn, but the placeholders make it easier to work with current contract. Here is where you set the fee breakdown These values are % of team fees to distribute (add extra 0: 333 = 33.3%) These combined values mu...
contract Kintaro is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress = payable(0x99bAD48e3455B750c5B8817bA2fBD4d0b2f39528); address payable public devAddress = payable(0x99bAD48e3455B750c5B8817bA2fBD4d0b2f39528); ...
7,843,337
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 18830, 77, 17, 3350, 5349, 8181, 4259, 924, 854, 7517, 9816, 11078, 3241, 2898, 336, 15345, 364, 3614, 7827, 16, 1496, 326, 12150, 1221, 518, 15857, 358, 1440, 598, 783, 6835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1475, 474, 14349, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 1758, 8843, 429, 1071, 13667, 310, 1887, 273...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "@1001-digital/erc721-extensions/contracts/WithContractMetaData.sol"; import "@1001-digital/erc721-extensions/contracts/WithIPFSMetaData.sol"; import "@1001-digital/erc721-extensions/contracts/WithWithdrawals.sol"; import "@openzeppelin/contracts/access/O...
* @dev Emitted when `tokenId` token is transferred from `from` to `to`./* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token./* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets./* @dev Returns the number of tokens in ``owner``'s account./* @dev Re...
library Counters { function _beforeTokenTransfer( address from, address to, uint256 tokenId } pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; } pragma solidity ^0.8.0; struct Counter { } function current(Counter storage counter) internal view retur...
1,367,814
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 512, 7948, 1347, 1375, 2316, 548, 68, 1147, 353, 906, 4193, 628, 1375, 2080, 68, 358, 1375, 869, 8338, 20308, 632, 5206, 512, 7948, 1347, 1375, 8443, 68, 19808, 1375, 25990, 68, 358, 1068...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9354, 87, 288, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 97, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31...
//Address: 0x32cf691c1a07677e68af4b315fdb6a5fe65703ee //Contract name: Bitwords //Balance: 0.001 Ether //Verification Date: 6/23/2018 //Transacion Count: 2 // CODE STARTS HERE pragma solidity ^0.4.23; /** * @title Ownable * * @dev The Ownable contract has an owner address, and provides basic authorization contr...
* Anybody who deposits ether to the smart contract will be considered as an advertiser and will get that much ether debitted into his account./
function() public payable { advertiserBalances[msg.sender] += msg.value; emit Deposit(msg.sender, msg.value, advertiserBalances[msg.sender]); }
12,832,872
[ 1, 4625, 348, 7953, 560, 30, 380, 5502, 3432, 10354, 443, 917, 1282, 225, 2437, 358, 326, 13706, 6835, 903, 506, 7399, 487, 392, 16738, 15914, 471, 903, 336, 716, 9816, 225, 2437, 443, 3682, 2344, 1368, 18423, 2236, 18, 19, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1435, 1071, 8843, 429, 288, 203, 3639, 16738, 15914, 38, 26488, 63, 3576, 18, 15330, 65, 1011, 1234, 18, 1132, 31, 203, 3639, 3626, 4019, 538, 305, 12, 3576, 18, 15330, 16, 1234, 18, 1132, 16, 16738, 15914, 38, 26488, ...
/** *Submitted for verification at Etherscan.io on 2022-03-31 */ // SPDX-License-Identifier: MIT pragma solidity =0.6.12; // /* * @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.d...
MasterChef is the master of VEMP. He can make VEMP and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once VEMP is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it's ...
contract MasterChefAPE is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; struct UserInfo { } struct PoolInfo { } event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed ...
2,416,948
[ 1, 4625, 348, 7953, 560, 30, 225, 13453, 39, 580, 74, 353, 326, 4171, 434, 776, 3375, 52, 18, 8264, 848, 1221, 776, 3375, 52, 471, 3904, 353, 279, 284, 1826, 3058, 93, 18, 3609, 716, 518, 1807, 4953, 429, 471, 326, 3410, 341, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13453, 39, 580, 29534, 1423, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 1958, 25003, 288, 203, 565, 289, 203,...
./partial_match/8453/0x0a041C5f5f4c1fbFE521E47d4a3009f5777ebA59/sources/BaseBuyBot.sol
Anti-bot and anti-whale mappings and variables
contract BaseBuyBot is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); address public uniV2router = 0xfCD3842f85ed87ba2889b4D35893403796e67FF1; bool ...
16,758,040
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3360, 38, 9835, 6522, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259,...
pragma solidity ^0.5.6; import "./ownership/Ownable.sol"; import "./math/SafeMath.sol"; import "./Guseul.sol"; contract Game is Ownable { using SafeMath for uint256; Guseul public gsl; uint256 public round = 1; mapping(uint256 => mapping(address => uint256)) private _betGsl; mapping...
이번 라운드 벳 했는지 안했는지 호출
function betOrNot(address adr) public returns (bool) { bool didbet = _betBool[round][adr]; return didbet; }
955,632
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 173, 256, 117, 172, 115, 235, 225, 172, 256, 125, 173, 253, 117, 172, 246, 255, 225, 172, 115, 116, 225, 174, 249, 235, 172, 237, 247, 173, 105, 227, 225, 173, 248, 235, 174, 249, 235, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2701, 1162, 1248, 12, 2867, 1261, 86, 13, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 1426, 5061, 70, 278, 273, 389, 70, 278, 7464, 63, 2260, 6362, 361, 86, 15533, 203, 3639, 327, 5061, 70, 278, 31, 203, 565, 289, 20...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.7.0; contract Keccak { uint8[24] rho = [ 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 2, 14, 27, 41, 56, 8, 25, 43, 62, 18, 39, 61, 20, 44 ]; uint8[24] pi = [ 10, 7, 11, 17, 18, 3, ...
This is the memory location where the input data resides. first byte is for the size of the array https:docs.soliditylang.org/en/v0.7.4/internals/layout_in_storage.html#bytes-and-string Thetauint64 temp = b[0];a[x + y] ^= temp;t = a[1]b[0] = a[piIndex];a[piIndex] = temp;b[x] = a[y + x];a[y + x] = temp;a[0] ^= rcValue;
{ uint aPtr; assembly { aPtr := add(a, 32) } uint64[5] memory b; uint bPtr; assembly { bPtr := add(b, 32) } for (uint8 i = 0; i < rounds; i++) { for(uint8 x = 0; x < 5; x++) { ...
5,423,697
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 353, 326, 3778, 2117, 1625, 326, 810, 501, 400, 4369, 18, 1122, 1160, 353, 364, 326, 963, 434, 326, 526, 2333, 30, 8532, 18, 30205, 560, 4936, 18, 3341, 19, 275, 19, 90, 20, 18, 27, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 288, 203, 203, 3639, 2254, 279, 5263, 31, 203, 3639, 19931, 203, 3639, 288, 203, 5411, 279, 5263, 519, 527, 12, 69, 16, 3847, 13, 203, 3639, 289, 203, 3639, 2254, 1105, 63, 25, 65, 3778, 324, 31, 203, 3639, 2254, 324, 52...
pragma solidity 0.4.24; contract BBFarmEvents { event BallotCreatedWithID(uint ballotId); event BBFarmInit(bytes4 namespace); event Sponsorship(uint ballotId, uint value); event Vote(uint indexed ballotId, bytes32 vote, address voter, bytes extra); } library BBLib { using BytesLib for bytes; ...
we are certain that the first 8 bytes are for index use only. truncating extraData like this means we can occasionally save on gas. we need to use uint192 first because that will take the _last_ 24 bytes of extraData.
bytes24(uint192(extraData)));
296,403
[ 1, 4625, 348, 7953, 560, 30, 225, 732, 854, 8626, 716, 326, 1122, 1725, 1731, 854, 364, 770, 999, 1338, 18, 6956, 1776, 2870, 751, 3007, 333, 4696, 732, 848, 9145, 345, 285, 1230, 1923, 603, 16189, 18, 732, 1608, 358, 999, 2254, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5411, 1731, 3247, 12, 11890, 15561, 12, 7763, 751, 3719, 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, ...
/** *Submitted for verification at Etherscan.io on 2020-09-18 */ /** *Submitted for verification at Etherscan.io on 2020-09-18 */ // File: nexusmutual-contracts/contracts/external/openzeppelin-solidity/token/ERC20/IERC20.sol pragma solidity 0.5.7; /** * @title ERC20 interface * @dev see https://github.com/ethe...
@dev updates daiFeedAddress address. @param _add address of DAI feed.
function changeDAIfeedAddress(address _add) external onlyInternal { daiFeedAddress = _add; }
7,286,822
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 4533, 5248, 77, 8141, 1887, 1758, 18, 632, 891, 389, 1289, 1758, 434, 463, 18194, 4746, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9793, 2047, 73, 329, 1887, 12, 2867, 389, 1289, 13, 3903, 1338, 3061, 288, 203, 3639, 5248, 77, 8141, 1887, 273, 389, 1289, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0x59aa7D92e88A456e66F90374abd1d4C125e7CEBc/sources/src/universal/Proxy.sol
@title Proxy @notice Proxy is a transparent proxy that passes through the call if the caller is the owner or if the caller is address(0), meaning that the call originated from an off-chain simulation.
contract Proxy { event Upgraded(address indexed implementation); event AdminChanged(address previousAdmin, address newAdmin); pragma solidity 0.8.15; import { Constants } from "../libraries/Constants.sol"; modifier proxyCallIfNotAdmin() { if (msg.sender == _getAdmin() || msg.sender == address(0)) ...
15,776,577
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 7659, 632, 20392, 7659, 353, 279, 17270, 2889, 716, 11656, 3059, 326, 745, 309, 326, 4894, 353, 326, 3410, 578, 540, 309, 326, 4894, 353, 1758, 12, 20, 3631, 12256, 716, 326, 745, 4026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 16351, 7659, 288, 203, 565, 871, 1948, 19305, 12, 2867, 8808, 4471, 1769, 203, 203, 565, 871, 7807, 5033, 12, 2867, 2416, 4446, 16, 1758, 394, 4446, 1769, 203, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 3600, 31, 203, 5666, 2...
pragma solidity ^0.4.24; /** * @title ERC20 interface * */ contract ERC20 { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function allowance(address owner,...
* @title EDPrivateSale @dev Only owner or admin can allocate tokens. Tokens can be booked in advanced without the token contract. Tokens will be released in 3 steps / dates. A token needs to be attached to this contract and this contract needs to have balance to be able to send tokens to collector No whitelist in contr...
contract EDPrivateSale is LockedPrivatesale { constructor( uint256 _step1, uint256 _step2, uint256 _step3, ERC20 _token ) public LockedPrivatesale(_step1, _step2, _step3, _token) { hardCap = 50000000 * (10**uint256(18)); } }
1,798,386
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 15585, 6014, 30746, 632, 5206, 5098, 3410, 578, 3981, 848, 10101, 2430, 18, 13899, 848, 506, 6978, 329, 316, 16111, 2887, 326, 1147, 6835, 18, 13899, 903, 506, 15976, 316, 890, 6075, 342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15585, 6014, 30746, 353, 3488, 329, 15475, 815, 5349, 288, 203, 225, 3885, 12, 203, 565, 2254, 5034, 389, 4119, 21, 16, 7010, 565, 2254, 5034, 389, 4119, 22, 16, 7010, 565, 2254, 5034, 389, 4119, 23, 16, 377, 203, 565, 4...
./partial_match/1/0x751d136E0E203c27de76F5AF2AE1bDeb6862626F/sources/XBaseBridge.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("XBaseBridge", "$XBB") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair...
3,628,853
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 2932, 60, 2171, 13691, 3113, 4662, 60, 9676, 7923, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58, 22, 8259, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUtil { /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) ...
mappings for balance data
mapping(address => Balances) public balances;
1,374,681
[ 1, 4625, 348, 7953, 560, 30, 7990, 364, 11013, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 605, 26488, 13, 1071, 324, 26488, 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, -10...
./partial_match/42/0x3e6d34F22878A10b8F49f4ba8B9d42cBc2fF0037/sources/EtherCollateralsUSD.sol
Get the loan from storage
function timeSinceInterestAccrualOnLoan(address _account, uint256 _loanID) external view returns (uint256) { PynthLoanStruct memory pynthLoan = _getLoanFromStorage(_account, _loanID); return _timeSinceInterestAccrual(pynthLoan); }
3,308,167
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 326, 28183, 628, 2502, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 813, 9673, 29281, 8973, 86, 1462, 1398, 1504, 304, 12, 2867, 389, 4631, 16, 2254, 5034, 389, 383, 304, 734, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 453, 878, 451, 1504, 304, 3823, 3778, 293, 878, 4...
./full_match/80001/0x63ca16Ba5E3d1f3E427de27578A12C6429CE9c9a/sources/contracts/trove-factory.sol
* @dev returns fee from redeeming the amount/
function getRedemptionFeeRatio(address _trove) public view override returns (uint256) { return feeRecipient.getRedemptionFeeRatio(ITrove(_trove).collateralization(), ITrove(_trove).mcr()); }
5,672,515
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1135, 14036, 628, 283, 24903, 310, 326, 3844, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 5561, 19117, 375, 14667, 8541, 12, 2867, 389, 88, 303, 537, 13, 1071, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 14036, 18241, 18, 588, 426, 19117, 375, 14667, 8541, 12, 1285, 303, 537, 24899, 88, 303, ...
pragma solidity ^0.4.22; contract Voting { // Number of blocks to challenge this block (10 minutes, 5 blocks per minute) uint constant private NUM_BLOCKS_TO_LOCK = 10 * 5; struct Stake { address staker; uint256 stake; } struct Value { string value; uint totalStake;...
Sender address -> stakeId
mapping (address => uint) ids;
5,409,297
[ 1, 4625, 348, 7953, 560, 30, 225, 15044, 1758, 317, 384, 911, 548, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2874, 261, 2867, 516, 2254, 13, 3258, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.21; /** * @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 c) { if (a == 0) { return 0; } c =...
30 days => 2592000 secs
uint256 public secondsPerMonth = 2592000;
2,370,038
[ 1, 4625, 348, 7953, 560, 30, 225, 5196, 4681, 516, 576, 6162, 17172, 18043, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 1071, 3974, 2173, 5445, 273, 576, 6162, 17172, 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, ...
./partial_match/1/0xbF243A78aBa2A95674E7787029b2b16B15ca7d8E/sources/MatrixBot.sol
stable then open for swapping Anti-bot and anti-whale mappings and variables exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract MatrixBot is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public revShareWallet; address public t...
3,886,506
[ 1, 4625, 348, 7953, 560, 30, 225, 14114, 1508, 1696, 364, 7720, 1382, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4433, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 16351, 7298, 6522, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, 203, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "../../BdStable/BDStable.sol"; import "../../Oracle/ICryp...
After a redemption happens, transfer the newly minted BDX and owed collateral from this pool contract to the user. Redemption is split into two functions to prevent flash loans from being able to take out BdStable/collateral from the system, use an AMM to trade the new price, and then mint back into the system. Use Ch...
function collectRedemption(bool useNativeToken) external { require((lastRedeemed[msg.sender] + redemption_delay) <= block.number, "Must wait for redemption_delay blocks before collecting redemption"); bool sendBDX = false; bool sendCollateral = false; uint256 BDXAmount; uint2...
13,085,549
[ 1, 4625, 348, 7953, 560, 30, 225, 7360, 279, 283, 19117, 375, 10555, 16, 7412, 326, 10894, 312, 474, 329, 605, 28826, 471, 2523, 329, 4508, 2045, 287, 628, 333, 2845, 6835, 358, 326, 729, 18, 868, 19117, 375, 353, 1416, 1368, 2795, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3274, 426, 19117, 375, 12, 6430, 999, 9220, 1345, 13, 3903, 288, 203, 3639, 2583, 12443, 2722, 426, 24903, 329, 63, 3576, 18, 15330, 65, 397, 283, 19117, 375, 67, 10790, 13, 1648, 1203, 18, 2696, 16, 315, 10136, 2529, ...
pragma solidity 0.5.16; // version of solidity compiler // create contract and name it. contract SimpleStorage { //unsigned integer ( a int higher than 0) uint storeData; // declare a function // set: will change the state of the variable // public: keyword allowing function to be accessible outsi...
getting the values of the function create a function to do so. view: keyword that declares the function data to only be viewed
function get() public view returns (uint) { return storeData; }
12,662,815
[ 1, 4625, 348, 7953, 560, 30, 225, 8742, 326, 924, 434, 326, 445, 752, 279, 445, 358, 741, 1427, 18, 1476, 30, 4932, 716, 3496, 4807, 326, 445, 501, 358, 1338, 506, 1476, 329, 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, 336, 1435, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 1707, 751, 31, 203, 565, 289, 203, 2, -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-03-26 */ /* 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...
If the upgrade hasn't been registered, register with the current time.
timeLockedUpgrades[upgradeHash] = block.timestamp;
968,937
[ 1, 4625, 348, 7953, 560, 30, 225, 971, 326, 8400, 13342, 1404, 2118, 4104, 16, 1744, 598, 326, 783, 813, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 813, 8966, 1211, 13088, 63, 15097, 2310, 65, 273, 1203, 18, 5508, 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, -10...
./partial_match/1/0x741E47CFA0Ff046130CC9436D2bd2aB062f7546D/sources/FraxUnifiedFarm_ERC20_Other.sol
@notice Owner or governance can pause/unpause staking, withdrawals, rewards collection, and collectRewardsOnWithdrawal @param _stakingPaused Whether staking is paused @param _withdrawalsPaused Whether withdrawals are paused @param _rewardsCollectionPaused Whether rewards collection is paused @param _collectRewardsOnWi...
function setPauses( bool _stakingPaused, bool _withdrawalsPaused, bool _rewardsCollectionPaused, bool _collectRewardsOnWithdrawalPaused ) external onlyByOwnGov { stakingPaused = _stakingPaused; withdrawalsPaused = _withdrawalsPaused; rewardsCollectionPause...
2,658,906
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 16837, 578, 314, 1643, 82, 1359, 848, 11722, 19, 318, 19476, 384, 6159, 16, 598, 9446, 1031, 16, 283, 6397, 1849, 16, 471, 3274, 17631, 14727, 1398, 1190, 9446, 287, 632, 891, 389, 334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17004, 9608, 12, 203, 3639, 1426, 389, 334, 6159, 28590, 16, 203, 3639, 1426, 389, 1918, 9446, 1031, 28590, 16, 203, 3639, 1426, 389, 266, 6397, 2532, 28590, 16, 203, 3639, 1426, 389, 14676, 17631, 14727, 1398, 1190, 9446...
/** *Submitted for verification at Etherscan.io on 2021-11-26 */ // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.3.2 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implemente...
* @dev Returns whether `tokenId` exists. Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. Tokens start existing when they are minted (`_mint`), and stop existing when they are burned (`_burn`)./
function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); }
1,699,993
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 2856, 1375, 2316, 548, 68, 1704, 18, 13899, 848, 506, 7016, 635, 3675, 3410, 578, 20412, 9484, 3970, 288, 12908, 537, 97, 578, 288, 542, 23461, 1290, 1595, 5496, 13899, 787, 2062, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1808, 12, 11890, 5034, 1147, 548, 13, 2713, 1476, 5024, 1135, 261, 6430, 13, 288, 203, 3639, 327, 389, 995, 414, 63, 2316, 548, 65, 480, 1758, 12, 20, 1769, 203, 565, 289, 203, 377, 203, 203, 2, -100, -100, -10...
//Address: 0x1d688a985f56a48a022a98de59fd37b32e2c72f2 //Contract name: Beercoin //Balance: 0 Ether //Verification Date: 1/1/2018 //Transacion Count: 5 // CODE STARTS HERE pragma solidity ^0.4.16; contract ERC20Token { event Transfer(address indexed from, address indexed _to, uint256 _value); event Approval(ad...
* Internal transfer, only can be called by this contract/
function _transfer(address _from, address _to, uint _value) internal { require(_to != 0x0 && _to != address(this)); require(balanceOf[_from] >= _value); require(balanceOf[_to] + _value > balanceOf[_to]); uint previousBalances = balanceOf[_from] + balanceOf[_to]; balanceOf[_fr...
5,480,418
[ 1, 4625, 348, 7953, 560, 30, 380, 3186, 7412, 16, 1338, 848, 506, 2566, 635, 333, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 13866, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 389, 1132, 13, 2713, 288, 203, 3639, 2583, 24899, 869, 480, 374, 92, 20, 597, 389, 869, 480, 1758, 12, 2211, 10019, 203, 3639, 2583, 12, 12296, 951, 63, ...
/* Copyright 2019 Wanchain Foundation. 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 wri...
@notice lock quota in mint direction @param tokenId tokenPairId of crosschain @param storemanGroupId PK of source storeman group @param value amount of exchange token
function userMintLock( uint tokenId, bytes32 storemanGroupId, uint value ) external onlyHtlc { Quota storage quota = quotaMap[tokenId][storemanGroupId]; uint mintQuota = getUserMintQuota(tokenId, storemanGroupId); require( mintQuota >= value, ...
7,274,956
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4766, 2176, 13257, 316, 312, 474, 4068, 632, 891, 1147, 548, 12900, 1147, 4154, 548, 434, 6828, 5639, 632, 891, 1707, 4728, 8722, 5375, 11327, 434, 1084, 1707, 4728, 1041, 632, 891, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 729, 49, 474, 2531, 12, 203, 3639, 2254, 1147, 548, 16, 203, 3639, 1731, 1578, 1707, 4728, 8722, 16, 203, 3639, 2254, 460, 203, 565, 262, 3903, 1338, 44, 14596, 288, 203, 3639, 4783, 25441, 2502, 13257, 273, 13257, 863,...
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** *...
* @notice Gets the current votes balance for `account` @param account The address to get votes balance @return The number of current votes for `account`/
function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; }
17,059
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11881, 326, 783, 19588, 11013, 364, 1375, 4631, 68, 632, 891, 2236, 1021, 1758, 358, 336, 19588, 11013, 632, 2463, 1021, 1300, 434, 783, 19588, 364, 1375, 4631, 68, 19, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5175, 29637, 12, 2867, 2236, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2254, 1578, 290, 1564, 4139, 273, 818, 1564, 4139, 63, 4631, 15533, 203, 3639, 327, 290...
./full_match/11155111/0x08B6863c0A81E477e39CcF2A4BfD14463B2F5847/sources/project_/contracts/RobotToken.sol
calculate amount of tokens to exchange from ether send tokens to buyer
fallback() external payable{ uint256 amount = msg.value; uint256 numberOfTokens= calculateAmount(msg.value); RobotToken(_token).mint(_msgSender(),numberOfTokens); }
3,808,202
[ 1, 4625, 348, 7953, 560, 30, 225, 4604, 3844, 434, 2430, 358, 7829, 628, 225, 2437, 1366, 2430, 358, 27037, 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, 5922, 1435, 3903, 8843, 429, 95, 203, 3639, 2254, 5034, 3844, 273, 1234, 18, 1132, 31, 203, 3639, 2254, 5034, 7922, 5157, 33, 4604, 6275, 12, 3576, 18, 1132, 1769, 203, 3639, 19686, 352, 1345, 24899, 2316, 2934, 81, 474, 248...
/** * This code is licensed under the MIT License * * Copyright (c) 2019 Aion Foundation https://aion.network/ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, in...
@notice Adds the address to the list of accounts authorized to request message transfers mode is not checked. It's not necessary to add senders only if we're validating them
function addAuthorizedSender(address _newSender) public onlyOwner { authorizedSenders[_newSender] = true; AuthorizedSenderAdded(_newSender); }
12,720,370
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 15605, 326, 1758, 358, 326, 666, 434, 9484, 10799, 358, 590, 883, 29375, 1965, 353, 486, 5950, 18, 2597, 1807, 486, 4573, 358, 527, 1366, 414, 1338, 309, 732, 4565, 18075, 2182, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 15341, 12021, 12, 2867, 389, 2704, 12021, 13, 1071, 1338, 5541, 288, 203, 3639, 10799, 3826, 414, 63, 67, 2704, 12021, 65, 273, 638, 31, 203, 3639, 6712, 1235, 12021, 8602, 24899, 2704, 12021, 1769, 203, 565, 289, ...
library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividin...
in case we want to completely abort
function abort() onlyStateControl requireState(States.Paused) { moveToState(States.Underfunded); }
12,862,539
[ 1, 4625, 348, 7953, 560, 30, 316, 648, 732, 2545, 358, 14416, 6263, 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, 6263, 1435, 203, 565, 1338, 1119, 3367, 203, 565, 2583, 1119, 12, 7629, 18, 28590, 13, 203, 565, 288, 203, 3639, 13863, 1119, 12, 7629, 18, 14655, 12125, 785, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
pragma solidity ^0.6.0; import "../utils/GasBurner.sol"; import "../interfaces/IAToken.sol"; import "../interfaces/ILendingPool.sol"; import "../interfaces/ILendingPoolAddressesProvider.sol"; import "../utils/SafeERC20.sol"; /// @title Basic compound interactions through the DSProxy contract AaveBasicProxy is GasBur...
@notice Fetches Aave collateral factors for tokens @param _market Address of LendingPoolAddressesProvider for specific market @param _tokens Arr. of tokens for which to get the coll. factors @return collFactors Array of coll. factors
function getCollFactors(address _market, address[] memory _tokens) public view returns (uint256[] memory collFactors) { IAaveProtocolDataProviderV2 dataProvider = getDataProvider(_market); collFactors = new uint256[](_tokens.length); for (uint256 i = 0; i < _tokens.length; ++i) { ...
381,324
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 8065, 281, 432, 836, 4508, 2045, 287, 14490, 364, 2430, 632, 891, 389, 27151, 5267, 434, 511, 2846, 2864, 7148, 2249, 364, 2923, 13667, 632, 891, 389, 7860, 10371, 18, 434, 2430, 364, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 13535, 23535, 12, 2867, 389, 27151, 16, 1758, 8526, 3778, 389, 7860, 13, 1071, 1476, 1135, 261, 11890, 5034, 8526, 3778, 4508, 23535, 13, 288, 203, 3639, 467, 37, 836, 5752, 20757, 58, 22, 14383, 273, 4303, 2249, 2...
pragma solidity ^0.4.16; contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { uint256 z = x + y; assert((z >= x) && (z >= y)); return z; } function safeSubtract(uint256 x, uint256 y) internal pure returns(uint256) { asser...
@dev decrease the token's supply
function decreaseSupply (uint256 _value) onlyOwner public{ if (balances[owner] < _value) revert(); uint256 value = safeMult(_value , 10 ** decimals); balances[owner] = safeSubtract(balances[owner],value); totalSupply = safeSubtract(totalSupply, value); emit DecreaseSupply(v...
5,458,426
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 20467, 326, 1147, 1807, 14467, 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, 20467, 3088, 1283, 261, 11890, 5034, 389, 1132, 13, 1338, 5541, 225, 1071, 95, 203, 3639, 309, 261, 70, 26488, 63, 8443, 65, 411, 389, 1132, 13, 225, 15226, 5621, 203, 3639, 2254, 5034, 460, 273, 4183, 5049, 24899, 1132...
pragma solidity ^0.4.24; import "../story/story.sol"; import "../register.sol"; /// @title Scene /// @author ["Cryptape Technologies <contact@cryptape.com>"] contract Scene { Register register; string public name; string public description; uint location_x; uint location_y; address public pro...
@notice Call proxy info function
function info() public view returns (bytes32[8]) { return Story(proxy).info(msg.sender); }
13,051,823
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3049, 2889, 1123, 445, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1123, 1435, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 3890, 1578, 63, 28, 5717, 203, 565, 288, 203, 3639, 327, 934, 630, 12, 5656, 2934, 1376, 12, 3576, 18, 15330, 1769, 203, 565, 289, 203, 203, 2, -100,...
/* * SPDX-License-Identifier: MIT * */ pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0; pragma experimental ABIEncoderV2; /* pragma solidity ^0.8.0; */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal v...
1.4% from total supply maxWallet
maxWallet = 14_000_000 * 1e18;
10,233,494
[ 1, 4625, 348, 7953, 560, 30, 225, 404, 18, 24, 9, 628, 2078, 14467, 943, 16936, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 943, 16936, 273, 5045, 67, 3784, 67, 3784, 380, 404, 73, 2643, 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, ...
/** *Submitted for verification at Etherscan.io on 2022-04-30 */ /** *Submitted for verification at Etherscan.io on 2022-04-20 */ /** *Submitted for verification at Etherscan.io on 2022-04-14 */ // SPDX-License-Identifier: UNLICENSED /* tg: elonsbird twitter: elonsbirdeth website: elonsbird.com */ pragma sol...
Buy FeeSell FeeOriginal Fee
contract elonsbird is Context, IERC20, Ownable { using SafeMath for uint256; string private constant _name = "Elon's Bird"; string private constant _symbol = "ELONSBIRD"; uint8 private constant _decimals = 9; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tO...
15,400,808
[ 1, 4625, 348, 7953, 560, 30, 605, 9835, 30174, 55, 1165, 30174, 8176, 30174, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 415, 7008, 31245, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 3238, 5381, 389, 529, 273, 315, 4958, 265, 1807, 605, 6909, 14432, 203,...
./partial_match/1/0x33d6282665DECC570C0b5a8B34465c1029A5C9f6/sources/PEANUT.sol
set as marketing wallet
marketingWallet = address(0x059b43B631e1BE848973Afc5e587A8585014937B);
9,176,775
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 487, 13667, 310, 9230, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 13667, 310, 16936, 273, 1758, 12, 20, 92, 20, 6162, 70, 8942, 38, 4449, 21, 73, 21, 5948, 5193, 6675, 9036, 37, 7142, 25, 73, 8204, 27, 37, 7140, 7140, 1611, 7616, 6418, 38, 1769, 225, 2, -100, -100, -100, -100, -100, -...