file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./partial_match/1/0x9d7BB476c40D1055771fCA982876b1E2A72B54F9/sources/BatonZapRouterV1.sol
@title BatonFarm @author Baton team @notice Yield farms that allow for users to stake their NFT AMM LP positions into our yield farm @dev We note that this implementation is coupled to Caviar's Pair contract. A Pair represents a a Uniswap-V2-like CFMM pool consisting of fractions of the NFT (hence a Pair.nft() fu...
contract BatonFarm is Pausable, Owned, ERC721TokenReceiver { using SafeTransferLib for ERC20; using SafeTransferLib for address; STATE VARIABLES Pair public immutable pair; uint256 public rewardPerTokenStored; MAPPINGS mapping(address =...
3,890,596
[ 1, 38, 16799, 42, 4610, 225, 605, 16799, 5927, 225, 31666, 10247, 959, 716, 1699, 364, 3677, 358, 384, 911, 3675, 423, 4464, 432, 8206, 511, 52, 6865, 1368, 3134, 2824, 284, 4610, 225, 1660, 4721, 716, 333, 4471, 353, 1825, 416, 125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 605, 16799, 42, 4610, 353, 21800, 16665, 16, 14223, 11748, 16, 4232, 39, 27, 5340, 1345, 12952, 288, 203, 565, 1450, 14060, 5912, 5664, 364, 4232, 39, 3462, 31, 203, 565, 1450, 14060, 5912, 5664, 364, 1758, 31, 203, 18701, ...
pragma solidity ^0.5.16; import "../FuturesMarket.sol"; contract TestableFuturesMarket is FuturesMarket { constructor( address _resolver, bytes32 _baseAsset, bytes32 _marketKey ) public FuturesMarket(_resolver, _baseAsset, _marketKey) {} function entryDebtCorrection() external vie...
* The minimal margin at which liquidation can happen. Is the sum of liquidationBuffer and liquidationFee. Reverts if position size is 0. @param account address of the position account @return lMargin liquidation margin to maintain in sUSD fixed point decimal units/
function liquidationMargin(address account) external view returns (uint lMargin) { (uint price, ) = assetPrice(); return _liquidationMargin(int(positions[account].size), price); }
15,822,284
[ 1, 1986, 16745, 7333, 622, 1492, 4501, 26595, 367, 848, 5865, 18, 2585, 326, 2142, 434, 4501, 26595, 367, 1892, 471, 4501, 26595, 367, 14667, 18, 868, 31537, 309, 1754, 963, 353, 374, 18, 225, 2236, 1758, 434, 326, 1754, 2236, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 445, 4501, 26595, 367, 9524, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 328, 9524, 13, 288, 203, 3639, 261, 11890, 6205, 16, 262, 273, 3310, 5147, 5621, 203, 3639, 327, 389, 549, 26595, 367, 9524, 12, 474, 12, 12388, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma experimental ABIEncoderV2; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; import {Address}...
factory contract address
address public _factoryContract;
594,886
[ 1, 6848, 6835, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 389, 6848, 8924, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x25127685dC35d4dc96C7fEAC7370749d004C5040/sources/unibot_token.sol
* @dev Moves `amount` of tokens from `sender` to `recipient`. This internal function is equivalent to { transfer} , and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a { Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. ...
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, rec...
17,004,639
[ 1, 19297, 1375, 8949, 68, 434, 2430, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 1220, 2713, 445, 353, 7680, 358, 288, 7412, 97, 269, 471, 848, 506, 1399, 358, 425, 18, 75, 18, 2348, 5859, 1147, 1656, 281, 16, 9026, 310, 1791, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 4202, 1758, 5793, 16, 203, 4202, 1758, 8027, 16, 203, 4202, 2254, 5034, 3844, 203, 565, 262, 2713, 5024, 288, 7010, 4202, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 62...
./partial_match/3/0x08f78f413225878Dd46B08820fFdBE815C240328/sources/Token.sol
* @title Full ERC721 Token This implementation includes all the required and some optional functionality of the ERC721 standard Moreover, it includes approve all functionality using operator terminology/
contract Token is ERC721Enumerable, ERC721Metadata { string public urt; address payable public Own3r; uint256 public Tcost; uint256 public tokencap; address payable public MintyAddress; constructor( string memory name, string memory symbol, string memory url, uin...
5,268,856
[ 1, 5080, 4232, 39, 27, 5340, 3155, 1220, 4471, 6104, 777, 326, 1931, 471, 2690, 3129, 14176, 434, 326, 4232, 39, 27, 5340, 4529, 16053, 1643, 16, 518, 6104, 6617, 537, 777, 14176, 1450, 3726, 16122, 4676, 19, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 4232, 39, 27, 5340, 2277, 288, 203, 565, 533, 1071, 8896, 88, 31, 203, 565, 1758, 8843, 429, 1071, 14223, 82, 23, 86, 31, 203, 565, 2254, 5034, 1071, 399, 12398, 31, 203, ...
./full_match/8453/0x0FA35c6E11541E6ED01f18DB59E6bbdd2f4b8262/sources/periphery/BaldV2Router02.sol
refund dust eth, if any
function swapETHForExactTokens( uint amountOut, address[] calldata path, address to, uint deadline ) external payable virtual override ensure(deadline) returns (uint[] memory amounts) { require(path[0] == WETH, "BaldV2Ro...
11,562,827
[ 1, 1734, 1074, 302, 641, 13750, 16, 309, 1281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1584, 44, 1290, 14332, 5157, 12, 203, 3639, 2254, 3844, 1182, 16, 203, 3639, 1758, 8526, 745, 892, 589, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 14096, 203, 565, 262, 203, 3639, 3903, 203, 3639, 8843, 429, ...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.6.0; import "../lib/EnumerableSet.sol"; import "./Configuration.sol"; contract AccessController { using EnumerableSet for EnumerableSet.AddressSet; Configuration private _config; EnumerableSet.AddressSet private _gameAddress; EnumerableSe...
require(_config.getContractAddress('elaLottery') == msg.sender || _config.getContractAddress("bcoinLottery") == msg.sender, "AccessController: only allow elaLottery access"); _;
modifier onlyElaLottery() { require(_lotteryAddress.contains(msg.sender), "AccessController: only allow elaLottery access"); _; }
12,872,090
[ 1, 6528, 24899, 1425, 18, 588, 8924, 1887, 2668, 292, 69, 48, 352, 387, 93, 6134, 422, 1234, 18, 15330, 3639, 747, 389, 1425, 18, 588, 8924, 1887, 2932, 70, 12645, 48, 352, 387, 93, 7923, 422, 1234, 18, 15330, 16, 315, 1862, 2933,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9606, 1338, 4958, 69, 48, 352, 387, 93, 1435, 288, 203, 3639, 2583, 24899, 23372, 387, 93, 1887, 18, 12298, 12, 3576, 18, 15330, 3631, 315, 1862, 2933, 30, 1338, 1699, 415, 69, 48, 352, 387, 93, 2006, 8863, 203, 3639, 389,...
pragma solidity ^0.5.0; import "../lib/BN256.sol"; import "../Ownable.sol"; contract UserContractInterface { // Query callback. function __callback__(uint, bytes calldata) external; // Random number callback. function __callback__(uint, uint) external; } contract DOSProxyMock is Ownable { using B...
2. Update pendingGroupList
(uint prev, bool removed) = removeIdFromList(pendingGroupList, gid);
886,807
[ 1, 22, 18, 2315, 4634, 1114, 682, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 261, 11890, 2807, 16, 1426, 3723, 13, 273, 1206, 548, 1265, 682, 12, 9561, 1114, 682, 16, 11399, 1769, 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 2022-01-10 */ // SPDX-License-Identifier: MIT /* Hooter inu is the next ERC20 token fair launch, that you want to take a part in! 💎 Join the community, and join the fair launch today! Site: https://hooterinu.com Twitter: https://twitter.com/hooterinu TG: htt...
exclude from paying fees or having max transaction amount
constructor() ERC20("HooterInu", "$HooterInu") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IU...
2,252,558
[ 1, 10157, 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, 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, 3885, 1435, 4232, 39, 3462, 2932, 44, 7253, 382, 89, 3113, 4662, 44, 7253, 382, 89, 7923, 288, 203, 540, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, ...
// SPDX-License-Identifier: GPL-3.0-or-later // a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math) /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily resu...
* @dev Mint new tokens @param dst The address of the destination account @param rawAmount The number of tokens to be minted/ record the mint mint the amount transfer the amount to the recipient move delegates
function mint(address dst, uint rawAmount) external { require(msg.sender == minter, "WSG::mint: only the minter can mint"); require(block.timestamp >= mintingAllowedAfter, "WSG::mint: minting not allowed yet"); require(dst != address(0), "WSG::mint: cannot transfer to the zero address"); ...
14,012,202
[ 1, 49, 474, 394, 2430, 225, 3046, 1021, 1758, 434, 326, 2929, 2236, 225, 1831, 6275, 1021, 1300, 434, 2430, 358, 506, 312, 474, 329, 19, 1409, 326, 312, 474, 312, 474, 326, 3844, 7412, 326, 3844, 358, 326, 8027, 3635, 22310, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 3046, 16, 2254, 1831, 6275, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 1131, 387, 16, 315, 2651, 43, 2866, 81, 474, 30, 1338, 326, 1131, 387, 848, 312, 474, 8863, 203, 3639, 2583, ...
// SPDX-License-Identifier: MIT /** * Author: Lambdalf the White */ pragma solidity 0.8.10; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the on...
* @dev Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner./
function transferOwnership( address newOwner_ ) public virtual onlyOwner { address _oldOwner_ = _owner; _owner = newOwner_; emit OwnershipTransferred( _oldOwner_, newOwner_ ); }
12,673,858
[ 1, 1429, 18881, 23178, 434, 326, 6835, 358, 279, 394, 2236, 21863, 2704, 5541, 68, 2934, 4480, 1338, 506, 2566, 635, 326, 783, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 7412, 5460, 12565, 12, 1758, 394, 5541, 67, 262, 1071, 5024, 1338, 5541, 288, 203, 202, 202, 2867, 389, 1673, 5541, 67, 273, 389, 8443, 31, 203, 202, 202, 67, 8443, 273, 394, 5541, 67, 31, 203, 202, 202, 18356, 14223,...
./full_match/5/0x354F962d29Aa42978bCb658680fFe573c5ecd1D1/sources/contracts/erc20token.sol
* @dev Mint new tokens, increasing the total supply and balance of "account" Can only be called by the current owner./
function mint(address account, uint256 value) public { _mint(account, value); }
11,587,946
[ 1, 49, 474, 394, 2430, 16, 21006, 326, 2078, 14467, 471, 11013, 434, 315, 4631, 6, 4480, 1338, 506, 2566, 635, 326, 783, 3410, 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, ...
[ 1, 1, 1, 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, 312, 474, 12, 2867, 2236, 16, 2254, 5034, 460, 13, 1071, 225, 288, 203, 3639, 389, 81, 474, 12, 4631, 16, 460, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x7A9ff54A6eE4a21223036890bB8c4ea2D62c686b/sources/src/interfaces/IEthRobotKeeper.sol
* @dev Emitted when performUpkeep is called and no actions are executed. @param id proposal id of failed action. @param action action performed on the proposal which faled. @param reason reason of the failed action./* @dev Emitted when performUpkeep is called and actions are executed. @param id proposal id of successfu...
enum ProposalAction { PerformQueue, PerformExecute, PerformCancel }
8,457,258
[ 1, 1514, 11541, 1347, 3073, 1211, 10102, 353, 2566, 471, 1158, 4209, 854, 7120, 18, 225, 612, 14708, 612, 434, 2535, 1301, 18, 225, 1301, 1301, 9591, 603, 326, 14708, 1492, 284, 18931, 18, 225, 3971, 3971, 434, 326, 2535, 1301, 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, 225, 2792, 19945, 1803, 288, 203, 565, 11217, 3183, 16, 203, 565, 11217, 5289, 16, 203, 565, 11217, 6691, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/97/0xbA8d885b4029C836B05BF7A8aE5348a0e8468317/sources/project_/contracts/Ballot.sol
* @dev To extend the end of the voting @param endTime_ End time that needs to be updated @param currentTime_ Current time that needs to be updated/
function extendVotingTime(uint256 endTime_, uint256 currentTime_) public isElectionChief { require(votingStartTime < currentTime_); require(votingEndTime > currentTime_); votingEndTime = endTime_; }
5,025,386
[ 1, 774, 2133, 326, 679, 434, 326, 331, 17128, 225, 13859, 67, 4403, 813, 716, 4260, 358, 506, 3526, 225, 6680, 67, 6562, 813, 716, 4260, 358, 506, 3526, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2133, 58, 17128, 950, 12, 11890, 5034, 13859, 67, 16, 2254, 5034, 6680, 67, 13, 203, 3639, 1071, 203, 3639, 353, 29110, 782, 28515, 203, 565, 288, 203, 3639, 2583, 12, 90, 17128, 13649, 411, 6680, 67, 1769, 203, 3639, ...
/** * @authors: [@unknownunknown1] * @reviewers: [] * @auditors: [] * @bounties: [] * @deployments: [] */ /* solium-disable security/no-block-members */ /* solium-disable max-len*/ pragma solidity ^0.4.24; import "@kleros/kleros-interaction/contracts/standard/arbitration/Arbitrable.sol"; import "@kleros/k...
The time of the last approval of a transaction list.
uint public lastAction;
1,009,192
[ 1, 1986, 813, 434, 326, 1142, 23556, 434, 279, 2492, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1142, 1803, 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, ...
./full_match/5/0x87FE0723262b876A461550587989b9F1a1d89E42/sources/project_/contracts/Cryptopati.sol
* @notice This method is used to unlock the question @param questionId ID of the question @param commitAmount Amount user invests to unlock the question/
function unlockQuestion( string calldata questionId, uint256 commitAmount ) external whenNotPaused onlyValid(questionId) { require( userToQuestionId[msg.sender][questionId].unlockTimestamp == 0, "Cryptopati: Question already unlocked" ); require(co...
7,062,322
[ 1, 2503, 707, 353, 1399, 358, 7186, 326, 5073, 225, 5073, 548, 1599, 434, 326, 5073, 225, 3294, 6275, 16811, 729, 2198, 25563, 358, 7186, 326, 5073, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7186, 11665, 12, 203, 3639, 533, 745, 892, 5073, 548, 16, 203, 3639, 2254, 5034, 3294, 6275, 203, 565, 262, 3903, 1347, 1248, 28590, 1338, 1556, 12, 4173, 548, 13, 288, 203, 3639, 2583, 12, 203, 5411, 729, 774, 11665, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721A.sol"; import "....
SPDX-License-Identifier: MIT
interface IAgency { function putApesToAgency(uint[] memory ids, address owner) external; function getApesFromAgency(uint[] memory ids, address owner) external; function setStateForApes(uint[] memory ids, address sender, bytes1 newState) external; function stopStateForApe(uint id, address sender) ext...
4,022
[ 1, 3118, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 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, 5831, 467, 2577, 2075, 288, 203, 203, 565, 445, 1378, 1294, 281, 774, 2577, 2075, 12, 11890, 8526, 3778, 3258, 16, 1758, 3410, 13, 3903, 31, 203, 203, 565, 445, 336, 1294, 281, 1265, 2577, 2075, 12, 11890, 8526, 3778, 3258, 16, ...
./partial_match/1/0xFB15127f6464fcBB82b05Dc4b772283236C65167/sources/LexSecurityToken.sol
lexDAO governance transfers token balance
_transfer(from, to, amount);
3,647,138
[ 1, 4149, 18485, 314, 1643, 82, 1359, 29375, 1147, 11013, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 13866, 12, 2080, 16, 358, 16, 3844, 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, -1...
pragma solidity 0.4.23; import "./Ownable.sol"; /** @title DegreeCourse */ contract DegreeCourse is Ownable { mapping(uint => address) private intToTeaching; mapping(address => uint) private teachingToInt; uint private last = 0; bytes private degreeCourseName; bytes private degreeCoursePresident; ...
* @dev Get a teaching given an index. @param index uint of the teaching. @return address theaching contract address./
function getTeaching(uint index) public view returns(address) { require(index < last); return intToTeaching[index]; }
12,565,313
[ 1, 967, 279, 6489, 497, 310, 864, 392, 770, 18, 565, 770, 2254, 434, 326, 6489, 497, 310, 18, 282, 327, 1758, 326, 497, 310, 6835, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3181, 13798, 310, 12, 11890, 770, 13, 1071, 1476, 1135, 12, 2867, 13, 288, 203, 3639, 2583, 12, 1615, 411, 1142, 1769, 203, 3639, 327, 509, 774, 56, 13798, 310, 63, 1615, 15533, 203, 565, 289, 203, 203, 2, -100, -100,...
pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: MIT // IMPORT INTERFACE import { Task } from './task.sol'; import { UserManager } from './user_manager.sol'; import { OracleManager } from './oracle_manager.sol'; import { TokenManager } from './token_manager.sol'; contract TaskMana...
CONSUME TOKEN FEE FROM THE CREATOR
token_manager.consume(fee, msg.sender);
12,680,437
[ 1, 2248, 30590, 14275, 478, 9383, 4571, 12786, 9666, 3575, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1147, 67, 4181, 18, 21224, 12, 21386, 16, 1234, 18, 15330, 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, -1...
pragma solidity ^0.4.18; // ---------------------------------------------------------------------------- // 'CIRCLE COIN' token contract // // Deployed to : 0xFe347DDC005B9FB002c6A87aF1393d3298555a56 // Symbol : XCC // Name : CIRCLE COIN // Total supply: 100000000 // Decimals : 16 // // Enjoy. // // (c)...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract CIRCLECOIN is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function CIRCLECOIN() public { symbol = "XC...
10,371,089
[ 1, 5802, 7620, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 385, 7937, 23181, 3865, 706, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, ...
pragma solidity ^0.5.0; import "./GoAssetBank.sol"; import "./EvmAssetBank.sol"; import "../Oracle.sol"; import "../GoAssetBridge.sol"; /** * @title BridgeBank * @dev Bank contract which coordinates asset-related functionality. * GoAssetBank manages the minting and burning of tokens which * represent go...
@dev: Constructor, sets operator/
{ operator = _operatorAddress; oracle = Oracle(_oracleAddress); goAssetBridge = GoAssetBridge(_goAssetBridgeAddress); }
12,900,001
[ 1, 30, 11417, 16, 1678, 3726, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 3726, 273, 389, 9497, 1887, 31, 203, 3639, 20865, 273, 28544, 24899, 280, 16066, 1887, 1769, 203, 3639, 1960, 6672, 13691, 273, 4220, 6672, 13691, 24899, 3240, 6672, 13691, 1887, 1769, 203, 565, 289, 203, 203, ...
./full_match/8453/0x266c8f8cdA4360506b8D32Dc5C4102350a069aCD/sources/project_/contracts/Max-20-UUPS-LZ.sol
@dev Returns the admin role that controls a role @param role: Role to check @return admin role
function getRoleAdmin( bytes4 role ) external view returns (bytes4) { return ADMIN; }
11,561,662
[ 1, 1356, 326, 3981, 2478, 716, 11022, 279, 2478, 225, 2478, 30, 6204, 358, 866, 327, 3981, 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, 0, 0, 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, 15673, 4446, 12, 203, 565, 1731, 24, 2478, 203, 225, 262, 3903, 203, 565, 1476, 7010, 565, 1135, 261, 3890, 24, 13, 288, 203, 565, 327, 25969, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-06-28 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.3; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) int...
would be happy to call this from the constructor but unfortunately `this` is not set at that time yet
function setupGovernance(GovernanceFactory governanceFactory, VotedValueFactory votedValueFactory) virtual public { require(address(governance) == address(0), "already initialized"); governance = governanceFactory.createGovernance(address(this), settings.tokenAddress); governance.addVotedValue("ratio100", voted...
2,328,408
[ 1, 91, 1006, 506, 5622, 2074, 358, 745, 333, 628, 326, 3885, 1496, 640, 24233, 1375, 2211, 68, 353, 486, 444, 622, 716, 813, 4671, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 3875, 43, 1643, 82, 1359, 12, 43, 1643, 82, 1359, 1733, 314, 1643, 82, 1359, 1733, 16, 776, 16474, 620, 1733, 331, 16474, 620, 1733, 13, 5024, 1071, 288, 203, 202, 202, 6528, 12, 2867, 12, 75, 1643, 82, 1359, 13, 42...
pragma solidity 0.5.10; import "../interfaces/IBlockRewardAuRa.sol"; import "../interfaces/IERC677.sol"; import "../interfaces/IGovernance.sol"; import "../interfaces/IStakingAuRa.sol"; import "../interfaces/IValidatorSetAuRa.sol"; import "../upgradeability/UpgradeableOwned.sol"; import "../libs/SafeMath.sol"; /// @...
Save/update amount value staked by the delegator
_snapshotDelegatorStake(poolId, _staker);
13,081,032
[ 1, 4755, 19, 2725, 3844, 460, 384, 9477, 635, 326, 11158, 639, 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, 5411, 389, 11171, 15608, 639, 510, 911, 12, 6011, 548, 16, 389, 334, 6388, 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...
/* Copyright 2019-2022 StarkWare Industries Ltd. 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 https://www.starkware.co/open-source-license/ Unless required by applicable law or agre...
Copy input from calldata to memory. Call modexp precompile. Prepare expmods for denominators and numerators. expmods[0] = point^trace_length. expmods[1] = point^(trace_length / 16). expmods[2] = point^(trace_length / 2). expmods[3] = point^(trace_length / 8). expmods[4] = point^(trace_length / 256). expmods[5] = point...
fallback() external { uint256 res; assembly { let PRIME := 0x800000000000011000000000000000000000000000000000000000000000001 calldatacopy(0x0, 0x0, /*Input data size*/ 0x3380) let point := /*oods_point*/ mload(0x380) function expmod(base, exponent, mod...
13,765,245
[ 1, 2951, 810, 628, 745, 892, 358, 3778, 18, 3049, 1965, 23829, 675, 11100, 18, 7730, 1329, 22760, 364, 10716, 30425, 471, 26511, 3062, 18, 1329, 22760, 63, 20, 65, 273, 1634, 66, 5129, 67, 2469, 18, 1329, 22760, 63, 21, 65, 273, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5922, 1435, 3903, 288, 203, 3639, 2254, 5034, 400, 31, 203, 3639, 19931, 288, 203, 5411, 2231, 10365, 958, 519, 374, 92, 28, 12648, 2787, 2499, 12648, 12648, 12648, 12648, 12648, 9449, 1611, 203, 5411, 745, 892, 3530, 12, 20, ...
pragma solidity ^0.4.25; library SafeMath { 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; } function div(uint256 a, uint256 b) internal pure returns (...
tradeHash: globalHash, amountSellTaker, takerAddress, tradeNonceTaker, feePayableTokedoTaker
bytes32 tradeHash = keccak256(abi.encodePacked(orderHash[0], _values[0], _addresses[2], _values[1], _values[4]));
1,752,469
[ 1, 20077, 2310, 30, 4766, 282, 2552, 2310, 16, 3844, 55, 1165, 56, 6388, 16, 268, 6388, 1887, 16, 18542, 13611, 56, 6388, 16, 14036, 9148, 429, 56, 14276, 83, 56, 6388, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1731, 1578, 18542, 2310, 273, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 12, 1019, 2310, 63, 20, 6487, 389, 2372, 63, 20, 6487, 389, 13277, 63, 22, 6487, 389, 2372, 63, 21, 6487, 389, 2372, 63, 24, 5717, 1769,...
// SPDX-License-Identifier: MIT pragma solidity =0.8.10; import "../../utils/TokenUtils.sol"; import "../../interfaces/exchange/IExchangeV3.sol"; import "../../interfaces/exchange/IUniswapRouter.sol"; import "../../DS/DSMath.sol"; import "../../auth/AdminAuth.sol"; import "./helpers/WrapperHelper.sol"; /// @title DFS...
@title DFS exchange wrapper for UniswapV2
contract UniswapWrapperV3 is DSMath, IExchangeV3, AdminAuth, WrapperHelper { using TokenUtils for address; IUniswapRouter public constant router = IUniswapRouter(UNI_V2_ROUTER); using SafeERC20 for IERC20; pragma solidity =0.8.10; function sell(address _srcAddr, address, uint _srcAmount, bytes memor...
1,836,074
[ 1, 31999, 7829, 4053, 364, 1351, 291, 91, 438, 58, 22, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1351, 291, 91, 438, 3611, 58, 23, 353, 463, 7303, 421, 16, 467, 11688, 58, 23, 16, 7807, 1730, 16, 18735, 2276, 288, 203, 203, 565, 1450, 3155, 1989, 364, 1758, 31, 203, 203, 565, 467, 984, 291, 91, 438, 8259, 1071, 53...
pragma solidity ^0.4.10; contract Settlement { address client; address administrator; address insurer; uint clientDeductible; uint clientBalance; uint clientPayToDate; uint clientData; uint insurerData; uint insurerBalance; event PaymentStarted(address _id); event Payme...
check to see if deductible has been met
function addClientFunds(uint amount) public returns (uint balance) { clientBalance += amount; if (clientPayToDate >= clientDeductible) { ClientDeductibleMet(msg.sender); } ClientBalanceDeposit(msg.sender); return clientBalance; }
988,861
[ 1, 1893, 358, 2621, 309, 11140, 853, 1523, 711, 2118, 5100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 1227, 42, 19156, 12, 11890, 3844, 13, 1071, 1135, 261, 11890, 11013, 13, 288, 203, 3639, 1004, 13937, 1011, 3844, 31, 203, 203, 3639, 309, 261, 2625, 9148, 31264, 1545, 1004, 20563, 853, 1523, 13, 288, 203, 5411, 2...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.7.0; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability wa...
Transport requested cows from the stable Unregister each leaving cow Recalculate power collected by the master Emit event to the logs so can be effectively used later
function driveCowsOut(address master, uint256 cows) external { bool ok = _tokenCOW.transfer(master, cows); require(ok, "Stable: unable to transport cows from the stable"); uint256 unitsPerCow = TOTAL_UNITS.div(_tokenCOW.totalSupply()); uint256 units = cows.mul(unitsPerCow); ...
8,042,046
[ 1, 6568, 3764, 276, 543, 87, 628, 326, 14114, 1351, 4861, 1517, 15086, 276, 543, 868, 11162, 7212, 12230, 635, 326, 4171, 16008, 871, 358, 326, 5963, 1427, 848, 506, 23500, 1399, 5137, 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, 0, 0, 0, 0, 0, 0, 0, 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, 14316, 39, 543, 87, 1182, 12, 2867, 4171, 16, 2254, 5034, 276, 543, 87, 13, 3903, 288, 203, 203, 3639, 1426, 1529, 273, 389, 2316, 3865, 59, 18, 13866, 12, 7525, 16, 276, 543, 87, 1769, 203, 3639, 2583, 12, 601, 16,...
pragma solidity ^0.4.17; /** * @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); ...
* @dev Fix for the ERC20 short address attack./
modifier onlyPayloadSize(uint size) { require(!(msg.data.length < size + 4)); _; }
436,238
[ 1, 8585, 364, 326, 4232, 39, 3462, 3025, 1758, 13843, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 1338, 6110, 1225, 12, 11890, 963, 13, 288, 203, 3639, 2583, 12, 5, 12, 3576, 18, 892, 18, 2469, 411, 963, 397, 1059, 10019, 203, 3639, 389, 31, 203, 565, 289, 203, 7010, 2, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0-or-later // solhint-disable reason-string, avoid-low-level-calls, const-name-snakecase pragma solidity 0.8.7; import "../interfaces/IStrategy.sol"; import "../interfaces/IUniswapV2Pair.sol"; import "../interfaces/IBentoBoxMinimal.sol"; import "../libraries/UniswapV2Library.sol"; imp...
@notice Balance per ERC-20 token per account in shares. @notice Deposit an amount of `token` represented in either `amount` or `share`. @param token_ The ERC-20 token to deposit. @param from which account to pull the tokens. @param to which account to push the tokens. @param amount Token amount in native representatio...
library UniswapV2Library { function strategyData(address token) external view returns (StrategyData memory); function balanceOf(address, address) external view returns (uint256); function deposit( address token_, address from, address to, uint256 amount, uint256 sha...
9,967,504
[ 1, 13937, 1534, 4232, 39, 17, 3462, 1147, 1534, 2236, 316, 24123, 18, 225, 4019, 538, 305, 392, 3844, 434, 1375, 2316, 68, 10584, 316, 3344, 1375, 8949, 68, 578, 1375, 14419, 8338, 225, 1147, 67, 1021, 4232, 39, 17, 3462, 1147, 358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 1351, 291, 91, 438, 58, 22, 9313, 288, 203, 565, 445, 6252, 751, 12, 2867, 1147, 13, 3903, 1476, 1135, 261, 4525, 751, 3778, 1769, 203, 203, 565, 445, 11013, 951, 12, 2867, 16, 1758, 13, 3903, 1476, 1135, 261, 11890, 503...
./partial_match/56/0x6F358563E5A3063eE769D22F6eA13a5b63c5a81E/sources/NativeFarm.sol
Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. (Only if want tokens are stored here.)
function add( uint256 _allocPoint, IERC20 _want, bool _withUpdate, address _strat ) public onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPo...
11,057,340
[ 1, 986, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 11329, 5467, 4269, 527, 326, 1967, 511, 52, 1147, 1898, 2353, 3647, 18, 534, 359, 14727, 903, 506, 15216, 730, 731, 309, 1846, 741, 18, 261, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 203, 3639, 2254, 5034, 389, 9853, 2148, 16, 203, 3639, 467, 654, 39, 3462, 389, 17369, 16, 203, 3639, 1426, 389, 1918, 1891, 16, 203, 3639, 1758, 389, 701, 270, 203, 565, 262, 1071, 1338, 5541, 288, 203, 3639...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the on...
* Lazily mint some reserved tokens/
function mintReserved(uint numberOfTokens) public onlyOwner { require( _reservedTokenIdCounter.current().add(numberOfTokens) <= RESERVED_TOTAL, "Minting would exceed max reserved supply" ); for (uint i = 0; i < numberOfTokens; i++) { _safeMintGeneric(msg....
639,624
[ 1, 48, 20811, 312, 474, 2690, 8735, 2430, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 10435, 12, 11890, 7922, 5157, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 389, 18898, 1345, 548, 4789, 18, 2972, 7675, 1289, 12, 2696, 951, 5157, 13, 1648, 2438, 19501, 67, 28624, 16, 203, 5411,...
// File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] ...
Hook that when enabled manually calls _beforeTokenTransfer on Raise error again from result if error exists delegatecall returns 0 on error.
function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override { if (advancedConfig.hasTransferHook) { (bool success, ) = address(this).delegatecall( abi.encodeWithSignature( "_beforeTokenTransfer(addre...
64,730
[ 1, 5394, 716, 1347, 3696, 10036, 4097, 389, 5771, 1345, 5912, 603, 20539, 555, 3382, 628, 563, 309, 555, 1704, 7152, 1991, 1135, 374, 603, 555, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 3849, 288, 203, 3639, 309, 261, 27080, 809, 18, 5332, 5912, 5394, 13, 288, 203, 541...
// File: REMIX_FILE_SYNC/openzeppelin-solidity/contracts/math/SafeMath.sol 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) intern...
* Checks that a particular token contract address is a valid address./
function _isValidTokenContract(address _tokenContractAddress) internal view returns (bool) { return approvedTokenContracts[_tokenContractAddress]; }
890,412
[ 1, 4081, 716, 279, 6826, 1147, 6835, 1758, 353, 279, 923, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 26810, 1345, 8924, 12, 2867, 389, 2316, 8924, 1887, 13, 7010, 5411, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 20412, 1345, 20723, 63, 67, 2316, 8924, 1887, 15533, 203, 565, 289, 203, 203, 2, -100, -100,...
pragma solidity ^0.4.13; contract SimpleBank { mapping (address => uint) private balances; address public owner; // Events - publicize actions to external listeners event LogDepositMade(address accountAddress, uint amount); // Constructor, can receive one or many variables here; only one allow...
@notice Enroll a customer with the bank, giving them 1000 tokens for free @return The balance of the user after enrolling
function enroll() public returns (uint) { balances[msg.sender] = 1000; return balances[msg.sender]; }
12,884,529
[ 1, 664, 2693, 279, 6666, 598, 326, 11218, 16, 21057, 2182, 4336, 2430, 364, 4843, 327, 1021, 11013, 434, 326, 729, 1839, 14905, 2456, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 570, 2693, 1435, 1071, 1135, 261, 11890, 13, 288, 7010, 3639, 324, 26488, 63, 3576, 18, 15330, 65, 273, 4336, 31, 203, 3639, 327, 324, 26488, 63, 3576, 18, 15330, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -...
./full_match/1/0x2b8c782e71897f1cA1D93A3409EC1bA2e3460bB2/sources/browser/ponzi.sol
tell the world about it
emit newPayment(msg.sender, msg.value, betsThisGame);
3,208,518
[ 1, 88, 1165, 326, 9117, 2973, 518, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3626, 394, 6032, 12, 3576, 18, 15330, 16, 1234, 18, 1132, 16, 324, 2413, 2503, 12496, 1769, 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.0; import "./Bits.sol"; import "./ByteUtils.sol"; import "./ECRecovery.sol"; import "./Eip712StructHash.sol"; import "./Math.sol"; import "./Merkle.sol"; import "./PlasmaCore.sol"; import "./PriorityQueue.sol"; import "./PriorityQueueFactory.sol"; import "./RLP.sol"; import "./ERC20.sol"; /** ...
Update the exit mapping.
inFlightExit.bondOwner = msg.sender;
6,432,287
[ 1, 1891, 326, 2427, 2874, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 316, 24243, 6767, 18, 26425, 5541, 273, 1234, 18, 15330, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.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 user's token balance is enough to do the swap
uint256 userBalance = token.balanceOf(msg.sender);
12,721,777
[ 1, 1564, 716, 326, 729, 1807, 1147, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 729, 13937, 273, 1147, 18, 12296, 951, 12, 3576, 18, 15330, 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, -...
//Address: 0xd0c817155c4ca9459885545cb892d5ea4d699aa3 //Contract name: PetroleumToken //Balance: 0 Ether //Verification Date: 12/24/2017 //Transacion Count: 4 // CODE STARTS HERE pragma solidity ^0.4.18; library SafeMath { function smul(uint256 a, uint256 b) internal pure returns (uint256) { if(a == 0) { re...
Contract that is working with ERC223 tokens/
contract ContractReceiver { struct TKN { address sender; uint value; bytes data; bytes4 sig; } function tokenFallback(address _from, uint _value, bytes _data) public pure { TKN memory tkn; tkn.sender = _from; tkn.value = _value; tkn.data = _data; ...
1,002,756
[ 1, 8924, 716, 353, 5960, 598, 4232, 39, 3787, 23, 2430, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6835, 13456, 12952, 288, 203, 203, 565, 1958, 399, 47, 50, 288, 203, 3639, 1758, 5793, 31, 203, 3639, 2254, 460, 31, 203, 3639, 1731, 501, 31, 203, 3639, 1731, 24, 3553, 31, 203, 565, 289, 203, 203, 565, 445, 1147, 12355, 12, ...
pragma solidity 0.5.12; pragma experimental ABIEncoderV2; import { IActions } from "../interfaces/IActions.sol"; import { DaiFiCollateral } from "./DaiFiCollateral.sol"; import { DaiFiInterest } from "./DaiFiInterest.sol"; import { ReentrancyGuard } from "../lib/ReentrancyGuard.sol"; import { SafeMath } from "../lib/S...
* @notice Apply the interest accumulated (since last applied) to the borrowed Wei balance of the given account (public) param accountAddress The address of the account to apply interest to/ TODO: implement and test. Update lastApplied block number
function applyBorrowedWeiInterest(address accountAddress) public { require(accountAddress != address(0), "applied interest to address 0x0"); uint256 interest = calculateBorrowedWeiInterest(accounts[accountAddress]); accounts[accountAddress].wei_.borrowed = accounts[accountAddress].wei_.borr...
1,812,075
[ 1, 7001, 326, 16513, 24893, 261, 9256, 1142, 6754, 13, 358, 326, 29759, 329, 1660, 77, 11013, 434, 326, 864, 2236, 261, 482, 13, 579, 2236, 1887, 1021, 1758, 434, 326, 2236, 358, 2230, 16513, 358, 19, 2660, 30, 2348, 471, 1842, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2230, 38, 15318, 329, 3218, 77, 29281, 12, 2867, 2236, 1887, 13, 1071, 288, 203, 3639, 2583, 12, 4631, 1887, 480, 1758, 12, 20, 3631, 315, 438, 3110, 16513, 358, 1758, 374, 92, 20, 8863, 203, 203, 3639, 2254, 5034, 16...
/** *Submitted for verification at Etherscan.io on 2021-03-12 */ pragma solidity 0.6.6; // File: @openzeppelin/contracts/GSN/Context.sol /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.send...
* @dev Returns the total approved bond amount in U.S. dollars. Unnecessary bond must not be included in bondIDs./
function _totalBondAllowance( BondMakerInterface bondMaker, VolatilityOracleInterface volatilityOracle, BondPricerInterface bondPricer, bytes32[] memory bondIDs, uint256 maturityBorder, address sender ) internal returns (uint256 allowanceInDollars) { uint2...
6,770,856
[ 1, 1356, 326, 2078, 20412, 8427, 3844, 316, 587, 18, 55, 18, 302, 22382, 5913, 18, 1351, 82, 4128, 8427, 1297, 486, 506, 5849, 316, 8427, 5103, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4963, 9807, 7009, 1359, 12, 203, 3639, 605, 1434, 12373, 1358, 8427, 12373, 16, 203, 3639, 26861, 30139, 23601, 1358, 6626, 30139, 23601, 16, 203, 3639, 605, 1434, 52, 1512, 264, 1358, 8427, 52, 1512, 264, 16, 203, ...
pragma solidity ^0.5.0; // XXX enable returning structs from internal functions pragma experimental ABIEncoderV2; import "./PreimageManagerInterface.sol"; import "./ERC20Interface.sol"; import "./Math.sol"; // Note: Initial version does NOT support concurrent conditional payments! contract SpritesRegistry { //u...
Increment on withdrawal XXX does currently not support incremental withdrawals XXX check if failing assert undoes all changes made in tx
function withdraw(uint chId) public onlyplayers(chId) { Player storage player = lookupPlayer(chId); uint toWithdraw = Math.sub(player.withdrawal, player.withdrawn); require(ERC20Interface(channels[chId].tokenAddress) .transfer(msg.sender, toWithdraw)); player.withdrawn = ...
15,794,551
[ 1, 10798, 603, 598, 9446, 287, 11329, 1552, 4551, 486, 2865, 20649, 598, 9446, 1031, 11329, 866, 309, 21311, 1815, 15436, 281, 777, 3478, 7165, 316, 2229, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 598, 9446, 12, 11890, 462, 548, 13, 1071, 1338, 1601, 414, 12, 343, 548, 13, 288, 203, 3639, 19185, 2502, 7291, 273, 3689, 12148, 12, 343, 548, 1769, 203, 3639, 2254, 358, 1190, 9446, 273, 2361, 18, 1717, 12, 14872, 1...
./partial_match/4/0xb51E726a6FcD8723Db4634736Eb6c87C15Ad7A73/sources/contracts/PToken.sol
* @notice Transfers collateral tokens (this market) to the liquidator. @dev Called only during an in-kind liquidation, or by liquidateBorrow during the liquidation of another PToken. Its absolutely critical to use msg.sender as the seizer pToken and not a parameter. @param seizerToken The contract seizing the collater...
function seizeInternal(address seizerToken, address liquidator, address borrower, uint seizeTokens) internal returns (uint) { uint allowed = controller.seizeAllowed(address(this), seizerToken, liquidator, borrower, seizeTokens); if (allowed != 0) { return failOpaque(Error.CONTROLLER_REJE...
8,513,219
[ 1, 1429, 18881, 4508, 2045, 287, 2430, 261, 2211, 13667, 13, 358, 326, 4501, 26595, 639, 18, 225, 11782, 1338, 4982, 392, 316, 17, 9224, 4501, 26595, 367, 16, 578, 635, 4501, 26595, 340, 38, 15318, 4982, 326, 4501, 26595, 367, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 695, 554, 3061, 12, 2867, 695, 1824, 1345, 16, 1758, 4501, 26595, 639, 16, 1758, 29759, 264, 16, 2254, 695, 554, 5157, 13, 2713, 1135, 261, 11890, 13, 288, 203, 3639, 2254, 2935, 273, 2596, 18, 307, 554, 5042, 12, 286...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "../interfaces/IERC721Consumable.sol"; import "../interfaces/IMarketp...
@notice Rents an asset for a given period. Charges user for the rent upfront. Rent starts from the last rented timestamp or from the current timestamp of the transaction. @param _assetId The target asset @param _period The target rental period (in seconds) @param _maxRentStart The maximum rent start allowed for the gi...
function rent( uint256 _assetId, uint256 _period, uint256 _maxRentStart, address _paymentToken, uint256 _amount ) external payable returns (uint256, bool) { (uint256 rentId, bool rentStartsNow) = LibRent.rent( LibRent.RentParams({ _asse...
1,613,607
[ 1, 54, 4877, 392, 3310, 364, 279, 864, 3879, 18, 3703, 2852, 729, 364, 326, 283, 496, 731, 10211, 18, 534, 319, 2542, 628, 326, 1142, 283, 496, 329, 2858, 578, 628, 326, 783, 2858, 434, 326, 2492, 18, 225, 389, 9406, 548, 1021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 283, 496, 12, 203, 3639, 2254, 5034, 389, 9406, 548, 16, 203, 3639, 2254, 5034, 389, 6908, 16, 203, 3639, 2254, 5034, 389, 1896, 54, 319, 1685, 16, 203, 3639, 1758, 389, 9261, 1345, 16, 203, 3639, 2254, 5034, 389, 894...
./partial_match/3/0xA4faE6a3Bff7AeCe3d37d379C35648b7B39f8369/sources/SteToken.sol
* @dev Investor role/
contract ERC20Investable is ERC20 { struct InvestorSettings { address account; uint invested; bool accredited; } uint unaccreditedLimit; using Roles for Roles.Role; event InvestorAdded(address indexed account); event InvestorRemoved(address indexed account); Roles...
5,267,453
[ 1, 3605, 395, 280, 2478, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4232, 39, 3462, 3605, 395, 429, 353, 4232, 39, 3462, 288, 203, 565, 1958, 5454, 395, 280, 2628, 288, 203, 3639, 1758, 2236, 31, 203, 3639, 2254, 2198, 3149, 31, 203, 3639, 1426, 4078, 10430, 329, 31, 203, 565, 289, 203, ...
/** *Submitted for verification at Etherscan.io on 2021-05-18 */ // File: contracts/lib/Types.sol /* Copyright 2020 DODO ZOO. SPDX-License-Identifier: Apache-2.0 */ pragma solidity 0.6.9; pragma experimental ABIEncoderV2; library Types { enum RStatus {ONE, ABOVE_ONE, BELOW_ONE} } // File: contracts/...
here we don't require B1 <= targetBaseAmount Because it is limited at upper function See Trader.querySellBaseToken
function _RAboveSellBaseToken( uint256 amount, uint256 baseBalance, uint256 targetBaseAmount ) internal view returns (uint256 receiveQuoteToken) { uint256 B1 = baseBalance.add(amount); return _RAboveIntegrate(targetBaseAmount, B1, baseBalance); }
2,176,708
[ 1, 14852, 732, 2727, 1404, 2583, 605, 21, 1648, 1018, 2171, 6275, 15191, 518, 353, 13594, 622, 3854, 445, 2164, 2197, 765, 18, 2271, 55, 1165, 2171, 1345, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2849, 70, 841, 55, 1165, 2171, 1345, 12, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 2254, 5034, 1026, 13937, 16, 203, 3639, 2254, 5034, 1018, 2171, 6275, 203, 565, 262, 2713, 1476, 1135, 261, 11890, 5034, 6798, 10...
/** *Submitted for verification at Etherscan.io on 2021-03-09 */ // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, t...
* @dev See {IERC20-approve}. Requirements: - `spender` cannot be the zero address./
function approve(address spender, uint256 amount) public virtual override returns (bool) { require(!isBurnt(), "Everything burnt"); _approve(_msgSender(), spender, amount); return true; }
2,145,627
[ 1, 9704, 288, 45, 654, 39, 3462, 17, 12908, 537, 5496, 29076, 30, 300, 1375, 87, 1302, 264, 68, 2780, 506, 326, 3634, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 5034, 3844, 13, 1071, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 540, 203, 3639, 2583, 12, 5, 291, 38, 321, 88, 9334, 315, 21465, 4274, 18305, 88, 8863, 203, 540, 203, 3639, ...
// SPDX-License-Identifier: SimPL-2.0 pragma solidity 0.6.12; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(...
number of blocks containing staking;
uint256 stakeBlocks;
5,871,080
[ 1, 2696, 434, 4398, 4191, 384, 6159, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 384, 911, 6450, 31, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x64CdCA4a8ac998CD5A01Cb119836E0fbf754aAb9/sources/ripplepepesecbarbieproton20.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; address private _owner; string private _name; string private _symbol; } constructor(strin...
2,790,454
[ 1, 13621, 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, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
./partial_match/97/0xA898a8270fdc5a4fb43abB2e170Be2664a57F19b/sources/X2Money.sol
checking conditionsupdating variables
function buyLevel(uint256 _level) public returns(bool){ require(swapComplete, "swapping, please wait "); require(msg.sender == tx.origin, "contract cannot call"); require(userInfos[msg.sender].joined, 'User not exist'); uint256 fct=1; require(_level >= 1 && _level <= 10, 'Inc...
11,422,846
[ 1, 24609, 2269, 2859, 72, 1776, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30143, 2355, 12, 11890, 5034, 389, 2815, 13, 1071, 1135, 12, 6430, 15329, 203, 3639, 2583, 12, 22270, 6322, 16, 315, 22270, 1382, 16, 9582, 2529, 315, 1769, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 2229, 18, 10012, 16...
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) in...
* @title Basic token @dev Basic version of StandardToken, with no allowances./
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; mapping(address=>uint256) public indexes; mapping(uint256=>address) public addresses; uint256 public lastIndex = 0; function transfer(address _to, uint256 _value) public returns (bool) { requir...
15,238,750
[ 1, 8252, 1147, 225, 7651, 1177, 434, 8263, 1345, 16, 598, 1158, 1699, 6872, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7651, 1345, 353, 4232, 39, 3462, 8252, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 225, 2874, 12, 2867, 516, 2254, 5034, 13, 324, 26488, 31, 203, 203, 565, 2874, 12, 2867, 9207, 11890, 5034, 13, 1071,...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "../vendor/LinkToken/token/LinkERC20.sol"; import "../vendor/LinkToken/ERC677Token.sol"; /** * @notice Vault Token * @dev Contract has been copied from: * https://github.com/smartcontractkit/LinkToken/blob/master/contracts/v0.6/LinkToken.sol * with mo...
* @notice Vault Token @dev Contract has been copied from: with modification made to specify name and symbol, deploys with 0 total supply/ solhint-disable-next-line no-empty-blocks
contract VaultToken is LinkERC20, ERC677Token { constructor( string memory _name, string memory _symbol ) public ERC20(_name, _symbol) function _transfer(address sender, address recipient, uint256 amount) internal override virtual validAddres...
12,902,461
[ 1, 12003, 3155, 225, 13456, 711, 2118, 9268, 628, 30, 598, 11544, 7165, 358, 4800, 508, 471, 3273, 16, 5993, 383, 1900, 598, 374, 2078, 14467, 19, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 5531, 17, 7996, 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, 16351, 17329, 1345, 353, 4048, 654, 39, 3462, 16, 4232, 39, 26, 4700, 1345, 288, 203, 203, 565, 3885, 12, 203, 3639, 533, 3778, 389, 529, 16, 203, 3639, 533, 3778, 389, 7175, 203, 565, 262, 203, 3639, 1071, 203, 3639, 4232, 39,...
./full_match/888/0x44EBbe7f0a010B2bF54D877A327f7769bB8f84d5/sources/DimoStaking.sol
* @dev Initializes the contract setting the deployer as the initial owner./
constructor() { _transferOwnership(0x0AD07ebe2543Fa09C069f62Bda2BEe18F12954D2 ); }
13,223,491
[ 1, 9685, 326, 6835, 3637, 326, 7286, 264, 487, 326, 2172, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 1435, 288, 203, 3639, 389, 13866, 5460, 12565, 12, 20, 92, 20, 1880, 8642, 73, 2196, 2947, 8942, 29634, 5908, 39, 7677, 29, 74, 8898, 38, 2414, 22, 5948, 73, 2643, 42, 24886, 6564, 40, 22, 11272, 203, 565, 289, 203, ...
./full_match/1/0x3362229de7d2C1AF21BCa907626CE9ED84AE2928/sources/contracts/ERC721W.sol
* @dev Returns whether `spender` is allowed to manage `tokenId`. Requirements: - `tokenId` must exist./
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address _owner = ownerOf(tokenId); return (spe...
9,635,809
[ 1, 1356, 2856, 1375, 87, 1302, 264, 68, 353, 2935, 358, 10680, 1375, 2316, 548, 8338, 29076, 30, 300, 1375, 2316, 548, 68, 1297, 1005, 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, ...
[ 1, 1, 1, 1, 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, 389, 291, 31639, 1162, 5541, 12, 2867, 17571, 264, 16, 2254, 5034, 1147, 548, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 389, ...
/* https://powerpool.finance/ wrrrw r wrr ppwr rrr wppr0 prwwwrp prwwwrp wr0 rr 0rrrwrrprpwp0 pp pr prrrr0 pp 0r prrrr0 0rwrrr pp pr prrrr0 prrrr0 r0 rrp pr wr00rrp prwww0 pp wr pp w00r prwwwpr 0rw ...
* @notice Delegates an already claimed votes amount to the given address @param _to address to delegate votes/
function delegateVotes(address _to) external { Member memory member = members[msg.sender]; require(_to != address(0), "Vesting::delegateVotes: Can't delegate to 0 address"); require(member.active == true, "Vesting::delegateVotes: msg.sender not active"); address currentDelegate = getVoteUser(msg.send...
6,428,140
[ 1, 15608, 815, 392, 1818, 7516, 329, 19588, 3844, 358, 326, 864, 1758, 225, 389, 869, 1758, 358, 7152, 19588, 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, ...
[ 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, 225, 445, 7152, 29637, 12, 2867, 389, 869, 13, 3903, 288, 203, 565, 8596, 3778, 3140, 273, 4833, 63, 3576, 18, 15330, 15533, 203, 565, 2583, 24899, 869, 480, 1758, 12, 20, 3631, 315, 58, 10100, 2866, 22216, 29637, 30, 4480, 1404,...
./full_match/4/0x52Af063278C6489a9deF8b27615Fa813797cDed1/sources/browser/AsyncArt.sol
* @dev Approves another address to transfer the given token ID The zero address indicates there is no approved address. There can only be one approved address per token at a given time. Can only be called by the token owner or an approved operator. @param to address to be approved for the given token ID @param tokenId ...
function approve(address to, uint256 tokenId) public { address owner = ownerOf(tokenId); require(to != owner); require(msg.sender == owner || isApprovedForAll(owner, msg.sender)); _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); }
722,064
[ 1, 12053, 3324, 4042, 1758, 358, 7412, 326, 864, 1147, 1599, 1021, 3634, 1758, 8527, 1915, 353, 1158, 20412, 1758, 18, 6149, 848, 1338, 506, 1245, 20412, 1758, 1534, 1147, 622, 279, 864, 813, 18, 4480, 1338, 506, 2566, 635, 326, 1147,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 6617, 537, 12, 2867, 358, 16, 2254, 5034, 1147, 548, 13, 1071, 288, 203, 3639, 1758, 3410, 273, 3410, 951, 12, 2316, 548, 1769, 203, 3639, 2583, 12, 869, 480, 3410, 1769, 203, 203, 3639, 2583, 12, 3576, 18, 15330, 422...
pragma solidity 0.6.12; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./interfaces/IERC20Burnable.sol"; import {YearnVaultAdapterWithIndirectio...
___ __ __ _ ___ __ _ / _ | / / ____ / / ___ __ _ (_) __ __ / _ \ ____ ___ ___ ___ ___ / /_ ___ (_) / __ | / / / __/ / _ \/ -_) / ' \ / / \ \ / / ___/ / __ -_) (_-</ -_) / _ \/ __/ (_-< _ /_/ |_|/_/ \__/ /__/\...
contract TransmuterEth is Context { using SafeMath for uint256; using SafeERC20 for IERC20Burnable; using Address for address; using VaultWithIndirection for VaultWithIndirection.Data; using VaultWithIndirection for VaultWithIndirection.List; address public constant ZERO_ADDRESS = address(0); ...
11,932,810
[ 1, 31268, 565, 1001, 3639, 1001, 7734, 389, 9079, 19608, 17311, 1001, 540, 389, 282, 342, 389, 571, 225, 342, 342, 19608, 67, 225, 342, 342, 225, 19608, 282, 1001, 389, 282, 261, 67, 13, 1001, 1001, 4202, 342, 389, 521, 225, 19608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2604, 10735, 264, 41, 451, 353, 1772, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 38, 321, 429, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565...
./full_match/4/0x2DE40e251457758eA9EeAb3c8135d531D31CBbAb/sources/token.sol
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint2...
671,893
[ 1, 1358, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 11013, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 741...
pragma solidity 0.5.17; import "./MToken.sol"; import "./ErrorReporter.sol"; import "./PriceOracle.sol"; import "./MomaMasterInterface.sol"; import "./MomaMasterStorage.sol"; import "./MomaPool.sol"; /** * @title Moma's MomaMaster Contract * @author Moma */ contract MomaMaster is MomaMasterInterface, MomaMasterV1S...
* @notice Sets the collateralFactor for a market @dev Admin function to set per-market collateralFactor @param mToken The market to set the factor on @param newCollateralFactorMantissa The new collateral factor, scaled by 1e18 @return uint 0=success, otherwise a failure. (See ErrorReporter for details)/ Check caller is...
function _setCollateralFactor(MToken mToken, uint newCollateralFactorMantissa) external returns (uint) { if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_COLLATERAL_FACTOR_OWNER_CHECK); } Market storage market = markets[address(mToken)]; if (!ma...
12,663,194
[ 1, 2785, 326, 4508, 2045, 287, 6837, 364, 279, 13667, 225, 7807, 445, 358, 444, 1534, 17, 27151, 4508, 2045, 287, 6837, 225, 312, 1345, 1021, 13667, 358, 444, 326, 5578, 603, 225, 394, 13535, 2045, 287, 6837, 49, 970, 21269, 1021, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 542, 13535, 2045, 287, 6837, 12, 49, 1345, 312, 1345, 16, 2254, 394, 13535, 2045, 287, 6837, 49, 970, 21269, 13, 3903, 1135, 261, 11890, 13, 288, 203, 3639, 309, 261, 3576, 18, 15330, 480, 3981, 13, 288, 203, 541...
pragma solidity 0.5.16; pragma experimental ABIEncoderV2; contract CarefulMath { /** * @dev Possible error codes that we can return */ enum MathError { NO_ERROR, DIVISION_BY_ZERO, INTEGER_OVERFLOW, INTEGER_UNDERFLOW } /** * @dev Multiplies tw...
Bump drop index Update current drop start to now Compute next drop reward Update global for total dropped Init next drop state
function _startNewDrop() internal { currentDropIndex = currentDropIndex.add(1); currentDropStartBlock = block.number; uint nextReward = _nextReward(currentReward); totalDropped = totalDropped.add(nextReward); wantDropState[currentDropIndex] = WantDrop({ totalD...
7,343,792
[ 1, 38, 2801, 3640, 770, 2315, 783, 3640, 787, 358, 2037, 8155, 1024, 3640, 19890, 2315, 2552, 364, 2078, 14611, 4378, 1024, 3640, 919, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 1937, 1908, 7544, 1435, 2713, 288, 203, 203, 203, 565, 783, 7544, 1016, 273, 783, 7544, 1016, 18, 1289, 12, 21, 1769, 203, 203, 377, 203, 203, 203, 565, 783, 7544, 1685, 1768, 273, 1203, 18, 2696, 31, 203, 203, ...
pragma solidity ^0.4.18; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original ...
@title The facet of the Cryptodogs core contract that manages ownership, ERC-721 (draft) compliant. @author Axiom Zen (https://www.axiomzen.co) @dev Ref: https://github.com/ethereum/EIPs/issues/721 See the KittyCore contract documentation to understand how the various contract facets are arranged. The contract that w...
contract DogOwnership is DogBase, ERC721 { string public constant name = "HelloDog"; string public constant symbol = "HD"; bytes4 constant InterfaceSignature_ERC165 = bytes4(keccak256("supportsInterface(bytes4)")); bytes4 constant InterfaceSignature_ERC721 = bytes4(keccak256("name()")) ^ ...
2,460,291
[ 1, 1986, 11082, 434, 326, 22752, 7370, 564, 2922, 6835, 716, 20754, 281, 23178, 16, 4232, 39, 17, 27, 5340, 261, 17153, 13, 24820, 18, 225, 22516, 14642, 2285, 275, 261, 4528, 2207, 5591, 18, 651, 14642, 8396, 18, 2894, 13, 225, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 463, 717, 5460, 12565, 353, 463, 717, 2171, 16, 4232, 39, 27, 5340, 288, 203, 203, 565, 533, 1071, 5381, 508, 273, 315, 18601, 40, 717, 14432, 203, 565, 533, 1071, 5381, 3273, 273, 315, 44, 40, 14432, 203, 203, 203, 565,...
// SPDX-License-Identifier: MIT // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in ...
@notice view the curve token balance of a given account @param _account the account to view the balance of @return balance_ the curve token ballance of the given account
function balanceOf(address _account) public view returns (uint256 balance_) { balance_ = curve.balances[_account]; }
12,815,507
[ 1, 1945, 326, 8882, 1147, 11013, 434, 279, 864, 2236, 225, 389, 4631, 326, 2236, 358, 1476, 326, 11013, 434, 327, 11013, 67, 326, 8882, 1147, 26503, 1359, 434, 326, 864, 2236, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 11013, 951, 12, 2867, 389, 4631, 13, 1071, 1476, 1135, 261, 11890, 5034, 11013, 67, 13, 288, 203, 565, 11013, 67, 273, 8882, 18, 70, 26488, 63, 67, 4631, 15533, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* Library Imports */ import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol"; import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol"; import { Lib_MerkleTree } from "../../libraries/utils/Lib_MerkleTree.sol"; /* Int...
* Encodes the batch context for the extra data. @param _totalElements Total number of elements submitted. @param _lastSequencerTimestamp Timestamp of the last batch submitted by the sequencer. @return Encoded batch context./
function _makeBatchExtraData(uint40 _totalElements, uint40 _lastSequencerTimestamp) internal pure returns (bytes27) { bytes27 extraData; assembly { extraData := _totalElements extraData := or(extraData, shl(40, _lastSequencerTimestamp)) ...
1,221,446
[ 1, 19771, 326, 2581, 819, 364, 326, 2870, 501, 18, 225, 389, 4963, 3471, 10710, 1300, 434, 2186, 9638, 18, 225, 389, 2722, 1761, 372, 23568, 4921, 8159, 434, 326, 1142, 2581, 9638, 635, 326, 26401, 23568, 18, 327, 23306, 2581, 819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6540, 4497, 7800, 751, 12, 11890, 7132, 389, 4963, 3471, 16, 2254, 7132, 389, 2722, 1761, 372, 23568, 4921, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 3890, 5324, 13, 203, 565, 288, 203, 3639, 173...
./full_match/43113/0x8292f7Ab43eEDb0bAFd07702fFa2a7052C02666f/sources/project_/contracts/BaseContracts/BaseDistributor.sol
* @notice Distribute USDC to the holding address of each NFT @param collection Address of the ERC721 contract @param amount Amount of USDC to distribute in regular terms @dev Only callable by the ADMIN role/ Get the supply of NFTs Calculate the amount of USDC to send to each holding address, format decimals Send vig af...
function distribute(address collection, uint256 amount) external onlyRole(DISTRIBUTOR) { uint256 supply = IERC721(collection).totalSupply(); require(supply > 0, "No nfts in this collection"); uint256 vigorish = amount * (vig / 10000); uint256 amtInfo = amount - vigorish; uint256 sendAmount = (amtInfo * (1...
7,147,751
[ 1, 1669, 887, 11836, 5528, 358, 326, 19918, 1758, 434, 1517, 423, 4464, 225, 1849, 5267, 434, 326, 4232, 39, 27, 5340, 6835, 225, 3844, 16811, 434, 11836, 5528, 358, 25722, 316, 6736, 6548, 225, 5098, 4140, 635, 326, 25969, 2478, 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, 1, 1, 1, 1, 1...
[ 1, 202, 915, 25722, 12, 2867, 1849, 16, 2254, 5034, 3844, 13, 3903, 1338, 2996, 12, 2565, 27424, 1693, 916, 13, 288, 203, 202, 202, 11890, 5034, 14467, 273, 467, 654, 39, 27, 5340, 12, 5548, 2934, 4963, 3088, 1283, 5621, 203, 202, ...
./full_match/1/0xC4Fea32dE6B778166B28de9F65f0Cd543aC4cedc/sources/src/AION2.sol
if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!blacklisted[from],"Sender blackliste...
8,375,383
[ 1, 430, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, 1206, 326, 14036, 1338, 4862, 1656, 281, 603, 25666, 1900, 19, 87, 1165, 87, 16, 741, 486, 4862, 603, 9230, 29375, 603, 357, 80, 603, 30143, 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, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, ...
pragma solidity 0.6.12; /** * @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); /** * @dev Returns the amount of tokens owned by `account`. ...
Claim rewards from BoomYMaster.
function claim(uint256 _pid) public { require (_pid != 0, 'please claim staking rewards on stake page'); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require (block.timestamp >= user.lastHarvest.add(pool.harvestVestingPeriod), 'withdraw:...
7,889,000
[ 1, 9762, 283, 6397, 628, 605, 4252, 61, 7786, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 12, 11890, 5034, 389, 6610, 13, 1071, 288, 203, 3639, 2583, 261, 67, 6610, 480, 374, 16, 296, 1802, 448, 7516, 384, 6159, 283, 6397, 603, 384, 911, 1363, 8284, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 6...
./full_match/56/0xDa76eacd9fDe0f0E7893219Ec5898e26635A25e6/sources/pepek.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, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decim...
3,246,667
[ 1, 13621, 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, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 28...
./partial_match/1/0x3C9C88A7B9A625a6bcE57DE8c05d9dC9a5f9591c/sources/ERC721Batch.sol
* @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./_beforeTokenTransfer(from, to, tokenId); Clear approvals from the previous owne...
function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ownerOf(tokenId) == from, "ERC721: transfer of token that is not own" ); require(to != address(0), "ERC721: transfer to the zero address"); ...
2,838,727
[ 1, 1429, 18881, 1375, 2316, 548, 68, 628, 1375, 2080, 68, 358, 1375, 869, 8338, 225, 2970, 1061, 7423, 358, 288, 13866, 1265, 5779, 333, 709, 10522, 1158, 17499, 603, 1234, 18, 15330, 18, 29076, 30, 300, 1375, 869, 68, 2780, 506, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 5024, 288, 203, 3639, 2583, 12, 203, 5411, 3410, 951, 12, 2316, 548, 13, 422, 628, 16, 203, ...
./full_match/3/0x63f876cacF48C4325c213F93A281FC422e6C1e87/sources/contracts/starkeys.sol
* Set some Keys aside/
function reserveKeys() public onlyOwner { uint supply = _supplyByLevel[1]; uint i; for (i = 0; i < 30; i++) { _safeMint(msg.sender, supply + i); _supplyByLevel[1] = supply + i; } }
8,131,605
[ 1, 694, 2690, 11432, 487, 831, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 20501, 2396, 1435, 1071, 1338, 5541, 288, 540, 203, 3639, 2254, 14467, 273, 389, 2859, 1283, 858, 2355, 63, 21, 15533, 203, 3639, 2254, 277, 31, 203, 3639, 364, 261, 77, 273, 374, 31, 277, 411, 5196, 31, 277, 27245, 2...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { uint constant public MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) ...
toggle beingEdited status of this account
function setEditedTrue(address _subject) private { beingEdited[_subject] = true; }
12,171,827
[ 1, 14401, 3832, 4666, 329, 1267, 434, 333, 2236, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 4666, 329, 5510, 12, 2867, 389, 7857, 13, 3238, 288, 203, 565, 3832, 4666, 329, 63, 67, 7857, 65, 273, 638, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//Address: 0x1770be2455d7563ec0466a4b182a3fae5e62c7cf //Contract name: MiguToken //Balance: 0 Ether //Verification Date: 2/11/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.16; //Base class of token-owner contract Ownable { address public owner; //owner's address function Ownabl...
Decimals of your Token
uint8 public decimals = 18;
14,098,491
[ 1, 31809, 434, 3433, 3155, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 28, 1071, 15105, 273, 6549, 31, 6862, 6862, 6862, 1082, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/97/0x563024b8C444Fb63B42A3da4D704CC1057473D5e/sources/TRQB.sol
* @notice Update base URI @param _baseTokenURI the new base URI/
function setBaseURI(string memory _baseTokenURI) external onlyOwner { baseTokenURI = _baseTokenURI; }
3,294,810
[ 1, 1891, 1026, 3699, 225, 389, 1969, 1345, 3098, 326, 394, 1026, 3699, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26435, 3098, 12, 1080, 3778, 389, 1969, 1345, 3098, 13, 3903, 1338, 5541, 288, 203, 3639, 1026, 1345, 3098, 273, 389, 1969, 1345, 3098, 31, 377, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100...
// Copyright 2021 Cartesi Pte. Ltd. // SPDX-License-Identifier: Apache-2.0 // 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 ...
@notice get consensus goal mask @return current consensus goal mask
function getConsensusGoalMask() public view returns (uint32) { return consensusGoalMask; }
5,401,556
[ 1, 588, 18318, 17683, 3066, 327, 783, 18318, 17683, 3066, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9054, 9781, 27716, 5796, 1435, 1071, 1476, 1135, 261, 11890, 1578, 13, 288, 203, 3639, 327, 18318, 27716, 5796, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2020-03-13 */ pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg // WARNING - `executeActionWithAtomicBatchCalls` has a `bytes[]` argument that // requires ABIEncoderV2. Exercise caution when calling that specific function. pragma experimental...
First attempt to redeem all dDai if there is a balance. Then transfer all Dai to recipient if there is a balance. Attempt to withdraw specified Dai from Dharma Dai before proceeding. At this point Dai transfer should never fail - wrap it just in case.
function _withdrawDaiAtomic( uint256 amount, address recipient if (maxWithdraw) { _withdrawMaxFromDharmaToken(AssetType.DAI); require(_transferMax(_DAI, recipient, false)); success = true; if (_withdrawFromDharmaToken(AssetType.DAI, amount)) { require(_DAI.transfer(recipie...
985,221
[ 1, 3759, 4395, 358, 283, 24903, 777, 302, 40, 10658, 309, 1915, 353, 279, 11013, 18, 9697, 7412, 777, 463, 10658, 358, 8027, 309, 1915, 353, 279, 11013, 18, 12864, 358, 598, 9446, 1269, 463, 10658, 628, 463, 30250, 2540, 463, 10658, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 389, 1918, 9446, 40, 10658, 23102, 12, 203, 565, 2254, 5034, 3844, 16, 203, 565, 1758, 8027, 203, 565, 309, 261, 1896, 1190, 9446, 13, 288, 203, 1377, 389, 1918, 9446, 2747, 1265, 40, 30250, 2540, 1345, 12, 6672, 559, ...
pragma solidity ^0.4.24; // 22.07.18 //*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/ // // Ethertote token contract // // (parts of the token contract // are based on the 'MiniMeToken' - Jordi Baylina) // // Fully ERC20 Compliant token // // Name: Ethert...
---------------------------------------------------------------------------- fallback function: If the contract's controller has not been set to 0, then the `proxyPayment` method is called which relays the eth and creates tokens as described in the token controller contract --------------------------------------------...
function () public payable { require(isContract(controller)); require( TokenController(controller).proxyPayments.value(msg.value)(msg.sender) ); } event ClaimedTokens( address indexed _token, address indexed _controller, uint _amount );
7,216,119
[ 1, 5802, 7620, 5922, 445, 30, 971, 326, 6835, 1807, 2596, 711, 486, 2118, 444, 358, 374, 16, 1508, 326, 1375, 5656, 6032, 68, 707, 353, 2566, 1492, 1279, 8271, 326, 13750, 471, 3414, 2430, 487, 11893, 316, 326, 1147, 2596, 6835, 887...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1832, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 291, 8924, 12, 5723, 10019, 203, 3639, 2583, 12, 203, 5411, 3155, 2933, 12, 5723, 2934, 5656, 23725, 18, 1132, 12, 3576, 18, 1132, 21433, 3576, 18, 15330, 13, 203, 5411, ...
pragma solidity 0.5.16; ...
Copy msg.data. We take full control of memory in this inline assembly block because it will not return to Solidity code. We overwrite the Solidity scratch pad at memory position 0. Call the implementation. out and outsize are 0 because we don't know the size yet. Copy the returned data. delegatecall returns 0 on error...
assembly { calldatacopy(0, 0, calldatasize) let result := delegatecall(gas, implementation, 0, calldatasize, 0, 0) returndatacopy(0, 0, returndatasize) switch result }
6,436,003
[ 1, 2951, 1234, 18, 892, 18, 1660, 4862, 1983, 3325, 434, 3778, 316, 333, 6370, 19931, 1203, 2724, 518, 903, 486, 327, 358, 348, 7953, 560, 981, 18, 1660, 6156, 326, 348, 7953, 560, 15289, 4627, 622, 3778, 1754, 374, 18, 3049, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 19931, 288, 203, 1377, 745, 892, 3530, 12, 20, 16, 374, 16, 745, 13178, 554, 13, 203, 203, 1377, 2231, 563, 519, 7152, 1991, 12, 31604, 16, 4471, 16, 374, 16, 745, 13178, 554, 16, 374, 16, 374, 13, 203, 203, 1377, 327, ...
./partial_match/1/0x051729a2228649312749cB606Fba4dfef1CD6745/sources/Resurrection.sol
File: contracts/nft.sol
contract Resurrection is ERC721A, Ownable { uint256 public immutable mintPrice = 0.003 ether; uint32 public immutable maxSupply = 800; uint32 public immutable maxPerTx = 10; function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantit...
4,166,049
[ 1, 812, 30, 20092, 19, 82, 1222, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1124, 295, 9329, 353, 4232, 39, 27, 5340, 37, 16, 14223, 6914, 288, 203, 203, 203, 565, 2254, 5034, 1071, 11732, 312, 474, 5147, 273, 374, 18, 25425, 225, 2437, 31, 203, 565, 2254, 1578, 1071, 11732, 943, 3088, 1283, 273, ...
./partial_match/4/0xf4692808249aED810850c44CDbecB527413333Bb/sources/BondlyStaking.sol
* @notice calculate total stakes of staker @param _staker is the address of staker @return _total/
function totalStakeOf(address _staker) public view returns (uint256) { return stakingBalance[_staker].total; }
8,553,769
[ 1, 11162, 2078, 384, 3223, 434, 384, 6388, 225, 389, 334, 6388, 353, 326, 1758, 434, 384, 6388, 327, 389, 4963, 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...
[ 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, 2078, 510, 911, 951, 12, 2867, 389, 334, 6388, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 384, 6159, 13937, 63, 67, 334, 6388, 8009, 4963, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
pragma solidity 0.4.25; // File: contracts/wallet_trading_limiter/interfaces/IWalletsTradingLimiter.sol /** * @title Wallets Trading Limiter Interface. */ interface IWalletsTradingLimiter { /** * @dev Increment the limiter value of a wallet. * @param _wallet The address of the wallet. * @param _v...
* @dev Get the contract locator identifier that is permitted to perform update wallet. @return The contract locator identifier./* @dev Get the wallet override trade-limit and class. @return The wallet override trade-limit and class./* @dev Get the wallet trade-limit. @return The wallet trade-limit./* @dev Get the limit...
function getUpdateWalletPermittedContractLocatorIdentifier() public pure returns (bytes32); function getOverrideTradeLimitAndClass(address _wallet) public view returns (uint256, uint256); function getTradeLimit(uint256 _tradeClassId) public view returns (uint256); function getLimiterValue(uint256 _va...
2,399,792
[ 1, 967, 326, 6835, 8871, 2756, 716, 353, 15498, 358, 3073, 1089, 9230, 18, 327, 1021, 6835, 8871, 2756, 18, 19, 225, 968, 326, 9230, 3849, 18542, 17, 3595, 471, 667, 18, 327, 1021, 9230, 3849, 18542, 17, 3595, 471, 667, 18, 19, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 23866, 16936, 31465, 8924, 5786, 3004, 1435, 1071, 16618, 1135, 261, 3890, 1578, 1769, 203, 203, 565, 445, 336, 6618, 22583, 3039, 1876, 797, 12, 2867, 389, 19177, 13, 1071, 1476, 1135, 261, 11890, 5034, 16, 2254, 5034, 1...
pragma solidity ^0.4.24; // File: contracts/library/SafeMath.sol /** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to require...
make sure name fees paid TODO 已经通过 islevelrequire (msg.value >= registrationFee_, "umm..... you have to pay the name fee"); set up our tx event data and determine if player is new or not fetch player id manage affiliate residuals if no affiliate code was given or player tried to use their own, lolz get affiliate ID f...
function registerNameXnameFromDapp(address _addr, bytes32 _name, bytes32 _affCode, bool _all, uint8 _level) isRegisteredGame() isLevel(_level) external payable returns(bool, uint256) { bool _isNewPlayer = determinePID(_addr); uint256 _pID...
6,075,937
[ 1, 6540, 3071, 508, 1656, 281, 30591, 2660, 225, 166, 120, 115, 168, 124, 242, 170, 227, 253, 169, 128, 234, 353, 2815, 6528, 261, 3576, 18, 1132, 1545, 7914, 14667, 67, 16, 315, 379, 81, 838, 2777, 225, 1846, 1240, 358, 8843, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1744, 461, 60, 529, 1265, 40, 2910, 12, 2867, 389, 4793, 16, 1731, 1578, 389, 529, 16, 1731, 1578, 389, 7329, 1085, 16, 1426, 389, 454, 16, 2254, 28, 389, 2815, 13, 203, 3639, 353, 10868, 12496, 1435, 203, 3639, 353, ...
pragma solidity ^0.4.2; pragma experimental ABIEncoderV2; contract Certify { event OrgCreated(address _from, Org addr); event UserCreated(address _from, User addr); mapping(address => User) public allUsers; mapping(address => Org) public allOrgs; string public testWord; // Constructor function Certify() publ...
view the names of the certificates the user owns <param name=user> The address of the User object <param/>
function viewUsersCertificateNames(User user) public view returns (string[]) { string[] names; for(uint i = 0; i < user.getCertifications().length; i++) { names.push(user.getCertifications()[i].getName()); } return names; }
12,749,121
[ 1, 1945, 326, 1257, 434, 326, 12522, 326, 729, 29065, 411, 891, 508, 33, 1355, 34, 1021, 1758, 434, 326, 2177, 733, 411, 891, 21259, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1476, 6588, 4719, 1557, 12, 1299, 729, 13, 1071, 1476, 1135, 261, 1080, 63, 5717, 203, 565, 288, 203, 3639, 533, 8526, 1257, 31, 203, 3639, 364, 12, 11890, 277, 273, 374, 31, 277, 411, 729, 18, 588, 5461, 6640, 7675, ...
./full_match/1/0x038698e3BAe6b3e30D6b94202299192bfE69c692/sources/browser/LoanShifterTaker_flat.sol
@notice Finds the smallest rate between exchanges, needed for buy rate @param _expectedRateKyber Kyber rate @param _expectedRateUniswap Uniswap rate @param _expectedRateOasis Oasis rate
function getSmallestRate( uint _expectedRateKyber, uint _expectedRateUniswap, uint _expectedRateOasis ) internal pure returns (address, uint) { if ( (_expectedRateUniswap <= _expectedRateKyber) && (_expectedRateUniswap <= _expectedRateOasis) ) { re...
3,048,053
[ 1, 8947, 326, 13541, 4993, 3086, 431, 6329, 16, 3577, 364, 30143, 4993, 225, 389, 3825, 4727, 47, 93, 744, 1475, 93, 744, 4993, 225, 389, 3825, 4727, 984, 291, 91, 438, 1351, 291, 91, 438, 4993, 225, 389, 3825, 4727, 51, 17247, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1322, 81, 454, 395, 4727, 12, 203, 3639, 2254, 389, 3825, 4727, 47, 93, 744, 16, 203, 3639, 2254, 389, 3825, 4727, 984, 291, 91, 438, 16, 203, 3639, 2254, 389, 3825, 4727, 51, 17247, 203, 565, 262, 2713, 16618, 1135, ...
./full_match/137/0x183d266a5b891463C12Fdc182e6f8EBe11419E25/sources/contracts/NEGU.sol
Track how many tokens are owned by each address. Modify this section
contract SimpleERC20Token { mapping (address => uint256) public balanceOf; string public name = "Never, Ever, Give Up"; string public symbol = "NEGU"; uint8 public decimals = 18; uint256 public totalSupply = 100000000000 * (uint256(10) ** decimals); event Transfer(address indexed from, address...
4,681,356
[ 1, 4402, 3661, 4906, 2430, 854, 16199, 635, 1517, 1758, 18, 9518, 333, 2442, 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, 4477, 654, 39, 3462, 1345, 288, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 1071, 11013, 951, 31, 203, 203, 565, 533, 1071, 508, 273, 315, 50, 6084, 16, 512, 502, 16, 22374, 1948, 14432, 203, 565, 533, 1071, 3273, 27...
/** *Submitted for verification at Etherscan.io on 2021-12-18 */ // Sources flattened with hardhat v2.6.5 https://hardhat.org // File contracts/libs/TransferHelper.sol // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.6; // helper methods for interacting with ERC20 tokens and sending ETH that do n...
Calculate price, average price and volatility Load token price information Length of sheets The index of the sheet to be processed in the sheet array The latest block number for which the price has been calculated It's not necessary to load the price information in p0 Eth count variable used to calculate price Token c...
function _stat(Config memory config, PricePair storage pair) private { PriceSheet[] storage sheets = pair.sheets; PriceInfo memory p0 = pair.price; uint length = sheets.length; uint index = uint(p0.index); uint prev = uint(p0.height); uint totalEthNum = 0; ...
6,700,012
[ 1, 8695, 6205, 16, 8164, 6205, 471, 6626, 30139, 4444, 1147, 6205, 1779, 11311, 434, 25273, 1021, 770, 434, 326, 6202, 358, 506, 5204, 316, 326, 6202, 526, 1021, 4891, 1203, 1300, 364, 1492, 326, 6205, 711, 2118, 8894, 2597, 1807, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 5642, 12, 809, 3778, 642, 16, 20137, 4154, 2502, 3082, 13, 3238, 288, 203, 540, 203, 3639, 20137, 8229, 8526, 2502, 25273, 273, 3082, 18, 87, 10245, 31, 203, 3639, 20137, 966, 3778, 293, 20, 273, 3082, 18, 8694, ...
pragma solidity 0.5.16; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint...
Remove fee and refund eth in case final purchase needed to end sale without dust errors
function deposit(address payable referrer) public payable nonReentrant whenNotPaused { require(timer.isStarted(), "Presale not yet started."); require(now >= access.getAccessTime(msg.sender, timer.startTime()), "Time must be at least access time."); require(msg.sender != referrer, "Sender ca...
556,042
[ 1, 3288, 14036, 471, 16255, 13750, 316, 648, 727, 23701, 3577, 358, 679, 272, 5349, 2887, 302, 641, 1334, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 2867, 8843, 429, 14502, 13, 1071, 8843, 429, 1661, 426, 8230, 970, 1347, 1248, 28590, 288, 203, 3639, 2583, 12, 12542, 18, 291, 9217, 9334, 315, 12236, 5349, 486, 4671, 5746, 1199, 1769, 203, 3639, 2583, ...
pragma solidity ^0.4.0; import "./Bits.sol"; import "./ByteUtils.sol"; import "./ECRecovery.sol"; import "./Eip712StructHash.sol"; import "./Math.sol"; import "./Merkle.sol"; import "./PlasmaCore.sol"; import "./PriorityQueue.sol"; import "./PriorityQueueFactory.sol"; import "./RLP.sol"; import "./ERC20.sol"; /** ...
* @dev Checks that a given transaction was included in a block and created a specified output. @param _tx RLP encoded transaction to verify. @param _transactionPos Transaction position for the encoded transaction. @param _txInclusionProof Proof that the transaction was in a block. @return True if the transaction was in...
function _transactionIncluded(bytes _tx, uint256 _transactionPos, bytes _txInclusionProof) internal view returns (bool) { uint256 blknum = _transactionPos.getBlknum(); uint256 txindex = _transactionPos.getTxIndex(); bytes32 blockRoot = blocks[blknum].root; ...
6,432,328
[ 1, 4081, 716, 279, 864, 2492, 1703, 5849, 316, 279, 1203, 471, 2522, 279, 1269, 876, 18, 225, 389, 978, 534, 14461, 3749, 2492, 358, 3929, 18, 225, 389, 7958, 1616, 5947, 1754, 364, 326, 3749, 2492, 18, 225, 389, 978, 382, 15335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7958, 19323, 12, 3890, 389, 978, 16, 2254, 5034, 389, 7958, 1616, 16, 1731, 389, 978, 382, 15335, 20439, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2254, 5034, ...
./partial_match/3/0x3bF4788621B18eCE94B9C2F916b39FDB6d1dF8aa/sources/MineDAPP.sol
//Locking rewards for all NFTs
function lockRewardsForAllNFTs() public payable returns(bool) { uint256 timeStarted; uint256 minsPassed; uint256 miningRateFromStats; uint256 miningRewards; uint256 tokenID; for(uint256 i =0; i < numberOfHeroesOwned; i++) { if (timeS...
5,272,040
[ 1, 759, 2531, 310, 283, 6397, 364, 777, 423, 4464, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2176, 17631, 14727, 1290, 1595, 50, 4464, 87, 1435, 1071, 8843, 429, 1135, 12, 6430, 13, 288, 203, 540, 203, 3639, 2254, 5034, 813, 9217, 31, 203, 3639, 2254, 5034, 26381, 22530, 31, 203, 3639, 2254, 5034, 1131, 310, 47...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@uniswap/v3-periphery/co...
assign the earn contract to the owner;
earnContractToOwner[id] = migrated.owner;
13,436,021
[ 1, 6145, 326, 425, 1303, 6835, 358, 326, 3410, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 425, 1303, 8924, 774, 5541, 63, 350, 65, 273, 24741, 18, 8443, 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 2020-09-10 */ // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; // File: zeppelin-solidity/contracts/ownership/rbac/Roles.sol /** * @title Roles * @author Francisco Giordano (@frangio) * @dev Library for managing addresses assigned to a Role. * See ...
* @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/
function transferFrom(address _from, address _to, uint256 _value) public override returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); allowed[_from][msg.sender] = allowed[_f...
12,904,276
[ 1, 5912, 2430, 628, 1245, 1758, 358, 4042, 225, 389, 2080, 1758, 1021, 1758, 1492, 1846, 2545, 358, 1366, 2430, 628, 225, 389, 869, 1758, 1021, 1758, 1492, 1846, 2545, 358, 7412, 358, 225, 389, 1132, 2254, 5034, 326, 3844, 434, 2430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 3849, 1135, 261, 6430, 13, 288, 203, 565, 2583, 24899, 869, 480, 1758, 12, 20, 10019, 203, 565, 2583, 24899, 1132, 1648, 324, 2...
./full_match/1/0x924D3b979a2C91730561fBE559547225dc70497D/sources/contracts/v2/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 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string internal _name; string internal _symbol; uint8 internal _decimals; ...
3,867,728
[ 1, 13621, 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, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, 2867, 51...
pragma solidity >=0.5.0 <0.6.0; import {Utils} from "./utils.sol"; import {D} from "./data.sol"; /** MIT License Based on patricia-trie implementation of chriseth */ library PartialMerkleTree { using D for D.Edge; struct Tree { // Mapping of hash of key to value mapping(bytes32 => bytes) ...
require(e.hasNode()); Full match with the key, update operation Partial match, just follow the path Mismatch, so let us create a new branch node.
function _insertAtEdge(Tree storage tree, D.Edge memory e, D.Label memory key, bytes32 value) private returns (D.Edge memory) { require(key.length >= e.label.length); D.Label memory prefix; D.Label memory suffix; (prefix, suffix) = Utils.splitCommonPrefix(key, e.label); bytes...
12,737,349
[ 1, 6528, 12, 73, 18, 5332, 907, 10663, 11692, 845, 598, 326, 498, 16, 1089, 1674, 19060, 845, 16, 2537, 2805, 326, 589, 16584, 1916, 16, 1427, 2231, 584, 752, 279, 394, 3803, 756, 18, 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, 1, 0, 0, 0, 0, 0, 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, 6387, 861, 6098, 12, 2471, 2502, 2151, 16, 463, 18, 6098, 3778, 425, 16, 463, 18, 2224, 3778, 498, 16, 1731, 1578, 460, 13, 3238, 1135, 261, 40, 18, 6098, 3778, 13, 288, 203, 3639, 2583, 12, 856, 18, 2469, 1545...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.8.0; // pragma solidity ^0.5.2; interface ERC20Interface { function totalSupply() external view returns (uint); function balanceOf(address tokenOwner) external view returns (uint balance); function transfer(address to, uint tokens) external retur...
the no of Cryptos wanted by the founder
uint public supply;
12,691,806
[ 1, 5787, 1158, 434, 22752, 538, 15504, 635, 326, 284, 465, 765, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 14467, 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,...
//! The dutch-auction contract. //! //! Copyright 2017 Gavin Wood, Parity Technologies Ltd. //! //! 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/...
Total amount of ether received.
uint public totalReceived = 0;
951,149
[ 1, 5269, 3844, 434, 225, 2437, 5079, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 11890, 1071, 2078, 8872, 273, 374, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/44787/0x20654046D0c1865759011d114d86fEF6f1B18D6E/sources/src/SpiralsStaking.sol
@notice Main function for staking with Spirals protocol @dev all pending -> active for this group
function stake() external payable { require(msg.value != 0, "NO_VALUE_STAKED"); lock(msg.value); vote(msg.value); stakeByAccount[msg.sender].add(msg.value); emit VotesCast(msg.sender, validatorGroup, msg.value); }
13,249,871
[ 1, 6376, 445, 364, 384, 6159, 598, 5878, 481, 1031, 1771, 225, 777, 4634, 317, 2695, 364, 333, 1041, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 1435, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 480, 374, 16, 315, 3417, 67, 4051, 67, 882, 14607, 2056, 8863, 203, 3639, 2176, 12, 3576, 18, 1132, 1769, 203, 3639, 12501, 12, 3576, 18, 1132...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "../LPToken.sol"; import "../interfaces/ISwap.sol"; import "../MathUtils.sol"; import "../SwapUtils.sol"; /** * @title MetaSwapUtils library ...
* @notice Return the stored value of base Swap's virtual price. If value was updated past BASE_CACHE_EXPIRE_TIME, then read it directly from the base Swap contract. @param metaSwapStorage MetaSwap struct to read from @return base Swap's virtual price/
function _getBaseVirtualPrice(MetaSwap storage metaSwapStorage) internal view returns (uint256) { if ( block.timestamp > metaSwapStorage.baseCacheLastUpdated + BASE_CACHE_EXPIRE_TIME ) { return metaSwapStorage.baseSwap.getVirtualPrice()...
949,693
[ 1, 990, 326, 4041, 460, 434, 1026, 12738, 1807, 5024, 6205, 18, 971, 460, 1703, 3526, 8854, 10250, 67, 8495, 67, 18433, 862, 67, 4684, 16, 1508, 855, 518, 5122, 628, 326, 1026, 12738, 6835, 18, 225, 2191, 12521, 3245, 6565, 12521, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 588, 2171, 6466, 5147, 12, 2781, 12521, 2502, 2191, 12521, 3245, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 309, 261, 203, 5411, 1203, 18, 5508, 405, 203,...
//Address: 0x849d0bCa469BbB4BbCcC557Ef3252c164D960bAD //Contract name: NineetPresale //Balance: 0 Ether //Verification Date: 11/29/2017 //Transacion Count: 4 // CODE STARTS HERE pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { ...
asign all tokens to the contract creator
function NineetToken(address _initialWallet) public { require (_initialWallet != 0x0); initialWallet = _initialWallet; totalSupply = initialSupply; balances[initialWallet] = initialSupply; addOwner(initialWallet); } event Burn(address indexed burner, uint256 value);
1,834,568
[ 1, 345, 724, 777, 2430, 358, 326, 6835, 11784, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 423, 558, 278, 1345, 12, 2867, 389, 6769, 16936, 13, 1071, 288, 203, 565, 2583, 261, 67, 6769, 16936, 480, 374, 92, 20, 1769, 203, 203, 565, 2172, 16936, 273, 389, 6769, 16936, 31, 203, 203, 565, 2078, 3088, 1283, 273...
./partial_match/1/0xD3111A14E8df0Df749CF881AE414037D732D8d28/sources/ComboOracle_KyberSwapElasticV2.sol
Return token price in ETH, multiplied by 2**112 Get the ETH Price PRECISE_PRICE_PRECISION Get the decimals Scale to 2*112 Also divide by the token decimals (needed for the math. Nothing to do with missing decimals or anything)
function getETHPx112(address token_address) external view returns (uint256) { if (token_address == address(WETH) || token_address == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) return uint(2 ** 112); require(maxDelayTime != 0, 'Max delay time not set'); ( , , uint256 eth_price) = getTokenPr...
2,731,432
[ 1, 990, 1147, 6205, 316, 512, 2455, 16, 27789, 635, 9035, 2138, 968, 326, 512, 2455, 20137, 7071, 7266, 1090, 67, 7698, 1441, 67, 3670, 26913, 968, 326, 15105, 12591, 358, 9035, 2138, 8080, 12326, 635, 326, 1147, 15105, 261, 17471, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 1584, 2500, 92, 17666, 12, 2867, 1147, 67, 2867, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 2316, 67, 2867, 422, 1758, 12, 59, 1584, 44, 13, 747, 1147, 67, 2867, 422, 374, 17432, 1340, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.4; // Send an 0 value transaction with no data to mint 1,000 new tokens // // Symbol : DAI // Name : Dai Stablecoin System // Total supply: 1,000,000.000000000000000000 + faucet minting // Decimals : 18 // Version : 1 // Chain ID : 4 // ...
---------------------------------------------------------------------------- Safe maths ----------------------------------------------------------------------------
library SafeMath { pragma solidity ^0.6.4; function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; require(c >= a); } function sub(uint256 a, uint256 b) internal pure returns (uint256 c) { require(b <= a); c = a - b; } function mul(uint256 a, uint256 b) internal pu...
6,379,075
[ 1, 5802, 7620, 14060, 4233, 87, 8879, 13849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 14060, 10477, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 24, 31, 203, 203, 225, 445, 527, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 276, 13, 288, 203, 565, 276, 273, ...