contract_name
stringlengths
1
61
file_path
stringlengths
5
50.4k
contract_address
stringlengths
42
42
language
stringclasses
1 value
class_name
stringlengths
1
61
class_code
stringlengths
4
330k
class_documentation
stringlengths
0
29.1k
class_documentation_type
stringclasses
6 values
func_name
stringlengths
0
62
func_code
stringlengths
1
303k
func_documentation
stringlengths
2
14.9k
func_documentation_type
stringclasses
4 values
compiler_version
stringlengths
15
42
license_type
stringclasses
14 values
swarm_source
stringlengths
0
71
meta
dict
__index_level_0__
int64
0
60.4k
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
set
function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint); poolInfo[_pid].allocPoint = _allocPoint; }
// Update the given pool's SUSHI allocation point. Can only be called by the owner.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 4006, 4315 ] }
19,000
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
setMigrator
function setMigrator(IMigratorChef _migrator) public onlyOwner { migrator = _migrator; }
// Set the migrator contract. Can only be called by the owner.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 4386, 4493 ] }
19,001
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
migrate
function migrate(uint256 _pid) public { require(address(migrator) != address(0), "migrate: no migrator"); PoolInfo storage pool = poolInfo[_pid]; IERC20 lpToken = pool.lpToken; uint256 bal = lpToken.balanceOf(address(this)); lpToken.safeApprove(address(migrator), bal); IERC20 newLpToken = ...
// Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 4611, 5107 ] }
19,002
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
getMultiplier
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if (_to <= bonusEndBlock) { return _to.sub(_from).mul(BONUS_MULTIPLIER); } else if (_from >= bonusEndBlock) { return _to.sub(_from); } else { return bonusEndBlock.sub(_from).mul(BONUS_MULTIPLIER)...
// Return reward multiplier over the given _from to _to block.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 5178, 5606 ] }
19,003
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
pendingSushi
function pendingSushi(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accSushiPerShare = pool.accSushiPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.numbe...
// View function to see pending SUSHIs on frontend.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 5666, 6439 ] }
19,004
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
massUpdatePools
function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } }
// Update reward variables for all pools. Be careful of gas spending!
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 6517, 6702 ] }
19,005
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
updatePool
function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardBlock = block.number; return; } ...
// Update reward variables of the given pool to be up-to-date.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 6773, 7568 ] }
19,006
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
deposit
function deposit(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accSushiPerShare).div(1e12).sub(user.rewardDebt); if(...
// Deposit LP tokens to MasterChef for SUSHI allocation.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 7633, 8439 ] }
19,007
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
withdraw
function withdraw(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accSushiPerShare).div(1e12).sub(u...
// Withdraw LP tokens from MasterChef.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 8486, 9412 ] }
19,008
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
emergencyWithdraw
function emergencyWithdraw(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; pool.lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt...
// Withdraw without caring about rewards. EMERGENCY ONLY.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 9478, 9839 ] }
19,009
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
safeSushiTransfer
function safeSushiTransfer(address _to, uint256 _amount) internal { uint256 sushiBal = sushi.balanceOf(address(this)); if (_amount > sushiBal) { sushi.transfer(_to, sushiBal); } else { sushi.transfer(_to, _amount); } }
// Safe sushi transfer function, just in case if rounding error causes pool to not have enough SUSHIs.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 9950, 10240 ] }
19,010
GigaFactory
@openzeppelin/contracts/token/ERC20/ERC20.sol
0x6656febb98ffffca51ad9f62df3b10ada8c18eeb
Solidity
GigaFactory
contract GigaFactory is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We...
// MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. // // Note that it's ownable and the owner wields tremendous power. The ownership // will be transferred to a governance smart contract once SUSHI is sufficiently // distributed and the community can show to govern itself. // // Have fun read...
LineComment
dev
function dev(address _devaddr) public { require(msg.sender == devaddr, "dev: wut?"); devaddr = _devaddr; }
// Update dev address by the previous dev.
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://e9c73e8abc83b5d3b17ff06e013da36d15726f9ea8c3f15733c5e01a702a253e
{ "func_code_index": [ 10291, 10425 ] }
19,011
CryptoWatchesToken
CryptoWatchesToken.sol
0x05ae2edfb986e3a8c3a5887dff69d46c665fec9d
Solidity
ERC165
interface ERC165 { /** * @notice Query if a contract implements an interface * @param _interfaceId The interface identifier, as specified in ERC-165 * @dev Interface identification is specified in ERC-165. This function * uses less than 30,000 gas. */ function supportsInterface(bytes4 _inter...
/** * @title ERC165 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 _interfaceId) external view returns (bool);
/** * @notice Query if a contract implements an interface * @param _interfaceId The interface identifier, as specified in ERC-165 * @dev Interface identification is specified in ERC-165. This function * uses less than 30,000 gas. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://3f81f84a475d04973bfe4f1d4d03f6cac94f88cdf837256e58c170fac9a4b908
{ "func_code_index": [ 278, 373 ] }
19,012
CryptoWatchesToken
CryptoWatchesToken.sol
0x05ae2edfb986e3a8c3a5887dff69d46c665fec9d
Solidity
AddressUtils
library AddressUtils { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the constructor finishes. * @param addr address to check * @return whether the ...
/** * Utility library of inline functions on addresses */
NatSpecMultiLine
isContract
function isContract(address addr) internal view returns (bool) { uint256 size; // XXX Currently there is no better way to check if there is a contract in an address // than to check the size of the code at that address. // See https://ethereum.stackexchange.com/a/14016/36603 // for more details about how...
/** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the constructor finishes. * @param addr address to check * @return whether the target address is a contract */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://3f81f84a475d04973bfe4f1d4d03f6cac94f88cdf837256e58c170fac9a4b908
{ "func_code_index": [ 357, 947 ] }
19,013
CryptoWatchesToken
CryptoWatchesToken.sol
0x05ae2edfb986e3a8c3a5887dff69d46c665fec9d
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://githu...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } c = a...
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://3f81f84a475d04973bfe4f1d4d03f6cac94f88cdf837256e58c170fac9a4b908
{ "func_code_index": [ 89, 476 ] }
19,014
CryptoWatchesToken
CryptoWatchesToken.sol
0x05ae2edfb986e3a8c3a5887dff69d46c665fec9d
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://githu...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://3f81f84a475d04973bfe4f1d4d03f6cac94f88cdf837256e58c170fac9a4b908
{ "func_code_index": [ 560, 840 ] }
19,015
CryptoWatchesToken
CryptoWatchesToken.sol
0x05ae2edfb986e3a8c3a5887dff69d46c665fec9d
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://githu...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://3f81f84a475d04973bfe4f1d4d03f6cac94f88cdf837256e58c170fac9a4b908
{ "func_code_index": [ 954, 1070 ] }
19,016
CryptoWatchesToken
CryptoWatchesToken.sol
0x05ae2edfb986e3a8c3a5887dff69d46c665fec9d
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://githu...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://3f81f84a475d04973bfe4f1d4d03f6cac94f88cdf837256e58c170fac9a4b908
{ "func_code_index": [ 1134, 1264 ] }
19,017
CryptoWatchesToken
CryptoWatchesToken.sol
0x05ae2edfb986e3a8c3a5887dff69d46c665fec9d
Solidity
ERC721Receiver
contract ERC721Receiver { /** * @dev Magic value to be returned upon successful reception of an NFT * Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`, * which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` */ bytes4 internal constant ERC721...
/** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */
NatSpecMultiLine
onERC721Received
function onERC721Received( address _operator, address _from, uint256 _tokenId, bytes _data ) public returns(bytes4);
/** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a `safetransfer`. This function MAY throw to revert and reject the * transfer. Return of other than the magic value MUST result in the * transaction being reverted. * Note: the contract ...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://3f81f84a475d04973bfe4f1d4d03f6cac94f88cdf837256e58c170fac9a4b908
{ "func_code_index": [ 1079, 1231 ] }
19,018
CryptoWatchesToken
CryptoWatchesToken.sol
0x05ae2edfb986e3a8c3a5887dff69d46c665fec9d
Solidity
CryptoWatchesToken
contract CryptoWatchesToken is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 { bytes4 private constant InterfaceId_ERC721Enumerable = 0x780e9d63; bytes4 private constant InterfaceId_ERC721Metadata = 0x5b5e139f; address private cryptodiamondAddress; event ChangeOwnership(address _oldAddress...
CO
function CO(address _address) public onlyCryptodiamond returns(bool){ require(_address != address(0)); require(_address!= cryptodiamondAddress); emit ChangeOwnership(cryptodiamondAddress,_address); cryptodiamondAddress = _address; return true; }
//cambio la proprietà di chi può gestire il token.
LineComment
v0.4.24+commit.e67f0147
bzzr://3f81f84a475d04973bfe4f1d4d03f6cac94f88cdf837256e58c170fac9a4b908
{ "func_code_index": [ 3775, 4061 ] }
19,019
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 165, 238 ] }
19,020
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 462, 544 ] }
19,021
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 823, 911 ] }
19,022
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 1575, 1654 ] }
19,023
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 1967, 2069 ] }
19,024
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 259, 445 ] }
19,025
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 723, 864 ] }
19,026
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 1162, 1359 ] }
19,027
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 1613, 2089 ] }
19,028
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 2560, 2697 ] }
19,029
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 3188, 3471 ] }
19,030
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 3931, 4066 ] }
19,031
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 4546, 4717 ] }
19,032
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Context
abstract contract Context { //function _msgSender() internal view virtual returns (address payable) { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mut...
_msgSender
function _msgSender() internal view virtual returns (address) { return msg.sender; }
//function _msgSender() internal view virtual returns (address payable) {
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 108, 211 ] }
19,033
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 606, 1230 ] }
19,034
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 2160, 2562 ] }
19,035
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 3318, 3496 ] }
19,036
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 3721, 3922 ] }
19,037
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 4292, 4523 ] }
19,038
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 4774, 5095 ] }
19,039
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 557, 641 ] }
19,040
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 1200, 1353 ] }
19,041
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 1503, 1752 ] }
19,042
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
lock
function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = address(0); _lockTime = block.timestamp + time; emit OwnershipTransferred(_owner, address(0)); }
//Locks the contract for owner for the amount of time provided
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 1920, 2151 ] }
19,043
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
unlock
function unlock() public virtual { require(_previousOwner == msg.sender, "You don't have permission to unlock"); require(block.timestamp > _lockTime , "Contract is locked until 7 days"); emit OwnershipTransferred(_owner, _previousOwner); _owner = _previousOwner; }
//Unlocks the contract for owner when _lockTime is exceeds
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 2222, 2532 ] }
19,044
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
HypeInu
contract HypeInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => b...
//to recieve ETH from uniswapV2Router when swaping
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 10226, 10260 ] }
19,045
HypeInu
HypeInu.sol
0x6e08748934fea72ad44a977fe467e4f79fd9014c
Solidity
HypeInu
contract HypeInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => b...
_tokenTransfer
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!canTrade){ require(sender == owner()); // only owner allowed to trade or add liquidity } if(botWallets[sender] || botWallets[recipient]){ require(botscantrade, "bots arent all...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://bbdfa1163571af4f6f2fc2dbe652da648b7e72d2d2a0ba80df1dba0fff83af1a
{ "func_code_index": [ 18148, 19267 ] }
19,046
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20
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`. */ function balanceOf(address account) external view returns (uint256); /**...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 94, 154 ] }
19,047
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20
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`. */ function balanceOf(address account) external view returns (uint256); /**...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 237, 310 ] }
19,048
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20
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`. */ function balanceOf(address account) external view returns (uint256); /**...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 534, 616 ] }
19,049
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20
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`. */ function balanceOf(address account) external view returns (uint256); /**...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 895, 983 ] }
19,050
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20
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`. */ function balanceOf(address account) external view returns (uint256); /**...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 1647, 1726 ] }
19,051
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20
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`. */ function balanceOf(address account) external view returns (uint256); /**...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 2039, 2141 ] }
19,052
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
tryAdd
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } }
/** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 161, 388 ] }
19,053
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
trySub
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } }
/** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 536, 735 ] }
19,054
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMul
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 ...
/** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 885, 1393 ] }
19,055
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
tryDiv
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } }
/** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 1544, 1744 ] }
19,056
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMod
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } }
/** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 1905, 2105 ] }
19,057
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 2347, 2450 ] }
19,058
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 2728, 2831 ] }
19,059
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; }
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 3085, 3188 ] }
19,060
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; }
/** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 3484, 3587 ] }
19,061
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consu...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 4049, 4152 ] }
19,062
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterp...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 4626, 4837 ] }
19,063
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } }
/** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 5330, 5540 ] }
19,064
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 6198, 6408 ] }
19,065
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly ...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 606, 1033 ] }
19,066
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 1963, 2365 ] }
19,067
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 3121, 3299 ] }
19,068
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 3524, 3724 ] }
19,069
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 4094, 4325 ] }
19,070
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disa...
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 4576, 5111 ] }
19,071
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 5291, 5495 ] }
19,072
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.stat...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 5682, 6109 ] }
19,073
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionDelegateCall
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 6291, 6496 ] }
19,074
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionDelegateCall
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.deleg...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 6685, 7113 ] }
19,075
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 100, 159 ] }
19,076
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 226, 287 ] }
19,077
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 363, 418 ] }
19,078
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 497, 589 ] }
19,079
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 1153, 1306 ] }
19,080
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 1456, 1705 ] }
19,081
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 946, 1051 ] }
19,082
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 1165, 1274 ] }
19,083
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 1908, 2006 ] }
19,084
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 2066, 2179 ] }
19,085
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 2237, 2369 ] }
19,086
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 2577, 2757 ] }
19,087
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 2815, 2971 ] }
19,088
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
approve
function approve(address spender, uint256 amount) public virtual override onlyOwner() returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 3113, 3299 ] }
19,089
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _ap...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 3776, 4203 ] }
19,090
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual onlyOwner returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 4607, 4837 ] }
19,091
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual onlyOwner returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllow...
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 5335, 5727 ] }
19,092
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
_transfer
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, recipient, amount); uint2...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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. *...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 6212, 6829 ] }
19,093
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
_createInitialSupply
function _createInitialSupply(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, am...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 7110, 7468 ] }
19,094
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 7901, 8252 ] }
19,095
USDT
USDT.sol
0x1538c7e3e264a663f57833135632aedb5b43ecb6
Solidity
USDT
contract USDT is Context, IERC20, IERC20Metadata, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private...
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://ce98e8acc35bcf4ab4247d174e6ea60545e17f0fdab9bb786f562b4146b87ba1
{ "func_code_index": [ 8853, 8950 ] }
19,096
OracleBitstamp
OracleBitstamp.sol
0x0479f22c80078e41390b7f6b491d8f771bdc15ef
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://095513bc8c3aff7b89607ea7f5fe4933aca78f863099e5e4ecbfacea0ea76ace
{ "func_code_index": [ 261, 321 ] }
19,097
OracleBitstamp
OracleBitstamp.sol
0x0479f22c80078e41390b7f6b491d8f771bdc15ef
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; }...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://095513bc8c3aff7b89607ea7f5fe4933aca78f863099e5e4ecbfacea0ea76ace
{ "func_code_index": [ 640, 816 ] }
19,098
OracleBitstamp
OracleBitstamp.sol
0x0479f22c80078e41390b7f6b491d8f771bdc15ef
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbe...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.23+commit.124ca40d
bzzr://095513bc8c3aff7b89607ea7f5fe4933aca78f863099e5e4ecbfacea0ea76ace
{ "func_code_index": [ 89, 272 ] }
19,099