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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | GundamCat | contract GundamCat is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmo... | disableTransferDelay | function disableTransferDelay() external onlyOwner returns (bool){
transferDelayEnabled = false;
return true;
}
| // disable Transfer delay - cannot be reenabled | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
5544,
5683
]
} | 9,507 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | GundamCat | contract GundamCat is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmo... | updateSwapTokensAtAmount | function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply.");
swapTo... | // change the minimum amount of tokens to sell from fees | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
5861,
6252
]
} | 9,508 | ||
GundamCat | GundamCat.sol | 0x1b220e231db2c92afdbd2878e14eef8e85572a8b | Solidity | GundamCat | contract GundamCat is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmo... | updateSwapEnabled | function updateSwapEnabled(bool enabled) external onlyOwner(){
swapEnabled = enabled;
}
| // only use to disable contract sales if absolutely necessary (emergency use only) | LineComment | v0.8.9+commit.e5eed63a | Unlicense | ipfs://58b317b261bdd20d5b7f9183b8bf5bd7aa9de599ae6ef6f856acd3c8347a84cf | {
"func_code_index": [
6964,
7070
]
} | 9,509 | ||
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | totalValue | function totalValue() external view override returns (uint256 _totalValue) {
_totalValue = _getCollateralBalance();
}
| /**
* @notice Calculate total value using underlying yToken
* @dev Report total value in collateral token
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
520,
653
]
} | 9,510 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _approveToken | function _approveToken(uint256 _amount) internal override {
collateralToken.safeApprove(pool, _amount);
collateralToken.safeApprove(address(yToken), _amount);
}
| /// @notice Approve all required tokens | NatSpecSingleLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
831,
1015
]
} | 9,511 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _beforeMigration | function _beforeMigration(address _newStrategy) internal override {}
| //solhint-disable-next-line no-empty-blocks | LineComment | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
1207,
1279
]
} | 9,512 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _liquidate | function _liquidate(uint256 _excessDebt) internal override returns (uint256 _payback) {
if (_excessDebt != 0) {
_payback = _safeWithdraw(_excessDebt);
}
}
| /// @notice Withdraw collateral to payback excess debt | NatSpecSingleLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
1340,
1530
]
} | 9,513 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _realizeProfit | function _realizeProfit(uint256 _totalDebt) internal override returns (uint256) {
uint256 _collateralBalance = _getCollateralBalance();
if (_collateralBalance > _totalDebt) {
_withdrawHere(_collateralBalance - _totalDebt);
}
return collateralToken.balanceOf(address(this));
}
| /**
* @notice Calculate earning and withdraw it from Yearn.
* @param _totalDebt Total collateral debt of this strategy
* @return profit in collateral token
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
1715,
2042
]
} | 9,514 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _realizeLoss | function _realizeLoss(uint256 _totalDebt) internal view override returns (uint256 _loss) {
uint256 _collateralBalance = _getCollateralBalance();
if (_collateralBalance < _totalDebt) {
_loss = _totalDebt - _collateralBalance;
}
}
| /**
* @notice Calculate realized loss.
* @return _loss Realized loss in collateral token
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
2155,
2428
]
} | 9,515 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _reinvest | function _reinvest() internal virtual override {
uint256 _collateralBalance = collateralToken.balanceOf(address(this));
if (_collateralBalance != 0) {
yToken.deposit(_collateralBalance);
}
}
| /// @notice Deposit collateral in Yearn vault | NatSpecSingleLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
2480,
2714
]
} | 9,516 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _withdraw | function _withdraw(uint256 _amount) internal override {
_safeWithdraw(_amount);
collateralToken.safeTransfer(pool, collateralToken.balanceOf(address(this)));
}
| /// @dev Withdraw collateral and transfer it to pool | NatSpecSingleLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
2773,
2956
]
} | 9,517 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _safeWithdraw | function _safeWithdraw(uint256 _amount) internal returns (uint256) {
uint256 _collateralBalance = _getCollateralBalance();
// Get minimum of _amount and _collateralBalance
return _withdrawHere(_amount < _collateralBalance ? _amount : _collateralBalance);
}
| /**
* @notice Safe withdraw will make sure to check asking amount against available amount.
* @param _amount Amount of collateral to withdraw.
* @return Actual collateral withdrawn
*/ | NatSpecMultiLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
3166,
3454
]
} | 9,518 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _withdrawHere | function _withdrawHere(uint256 _amount) internal returns (uint256) {
// Returns the exact collateral amount withdrawed from yVault
return yToken.withdraw(_convertToShares(_amount));
}
| /// @dev Withdraw collateral here. Do not transfer to pool | NatSpecSingleLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
3519,
3726
]
} | 9,519 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _getCollateralBalance | function _getCollateralBalance() internal view returns (uint256) {
return (yToken.balanceOf(address(this)) * yToken.pricePerShare()) / (10**yToken.decimals());
}
| /// @dev Gets collateral balance into yVault | NatSpecSingleLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
3777,
3954
]
} | 9,520 | |
YearnStrategyDAI | contracts/strategies/yearn/YearnStrategy.sol | 0xcc17e24559757eb161017626c2c85f884cdab267 | Solidity | YearnStrategy | abstract contract YearnStrategy is Strategy {
using SafeERC20 for IERC20;
IYToken internal immutable yToken;
constructor(
address _pool,
address _swapManager,
address _receiptToken
) Strategy(_pool, _swapManager, _receiptToken) {
require(_receiptToken != address(0), "yT... | /// @title This strategy will deposit collateral token in a Yearn vault and earn interest. | NatSpecSingleLine | _convertToShares | function _convertToShares(uint256 _collateralAmount) internal view returns (uint256) {
return (_collateralAmount * (10**yToken.decimals())) / yToken.pricePerShare();
}
| /// @dev Converts a collateral amount in its relative shares for yVault | NatSpecSingleLine | v0.8.3+commit.8d00100c | MIT | {
"func_code_index": [
4032,
4215
]
} | 9,521 | |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | totalSupply | function totalSupply() public view returns (uint) {
return _totalSupply.sub(balances[address(0)]);
}
| // ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
940,
1059
]
} | 9,522 |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | balanceOf | function balanceOf(address tokenOwner) public view returns (uint balance) {
return balances[tokenOwner];
}
| // ------------------------------------------------------------------------
// Get the token balance for account `tokenOwner`
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
1281,
1406
]
} | 9,523 |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | transfer | function transfer(address to, uint tokens) public returns (bool success) {
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Transfer the balance from token owner's account to `to` account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
1752,
2024
]
} | 9,524 |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | approve | function approve(address spender, uint tokens) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for `spender` to transferFrom(...) `tokens`
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval do... | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
2536,
2749
]
} | 9,525 |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | transferFrom | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = balances[from].sub(tokens);
allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(from, to, tokens);
return true;
}
... | // ------------------------------------------------------------------------
// Transfer `tokens` from the `from` account to the `to` account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the `from` account and
// - From account must have sufficient balance to transfe... | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
3288,
3636
]
} | 9,526 |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | allowance | function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| // ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
3919,
4071
]
} | 9,527 |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | approveAndCall | function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data);
return true;
}
| // ------------------------------------------------------------------------
// Token owner can approve for `spender` to transferFrom(...) `tokens`
// from the token owner's account. The `spender` contract function
// `receiveApproval(...)` is then executed
// ------------------------------------------------------------... | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
4434,
4756
]
} | 9,528 |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | function () public payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
4948,
5007
]
} | 9,529 | |
BIOPLUS_X_RAY_Token | BIOPLUS_X_RAY_Token.sol | 0xb1220840461979896c2a01b8ebddb9189c118f46 | Solidity | BIOPLUS_X_RAY_Token | contract BIOPLUS_X_RAY_Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// --------------... | // ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and a
// fixed supply
// ---------------------------------------------------------------------------- | LineComment | transferAnyERC20Token | function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
| // ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------ | LineComment | v0.4.24+commit.e67f0147 | None | bzzr://7672941c4899bd71f4fb8120c933560f2a4e79a4028611bcf0b8287b8f40bd87 | {
"func_code_index": [
5240,
5429
]
} | 9,530 |
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addres... | TokenERC20 | function TokenERC20(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public {
totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens
nam... | /**
* Constrctor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
839,
1384
]
} | 9,531 | |||
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addres... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value > balanceOf[_to])... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
1468,
2315
]
} | 9,532 | |||
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addres... | transfer | function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
2521,
2633
]
} | 9,533 | |||
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addres... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` in behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
2908,
3209
]
} | 9,534 | |||
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addres... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens in your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
3473,
3649
]
} | 9,535 | |||
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addres... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
| /**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to s... | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
4043,
4395
]
} | 9,536 | |||
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addres... | burn | function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
emit Burn(msg.sender,... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
4565,
4944
]
} | 9,537 | |||
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | TokenERC20 | contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 0;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (addres... | burnFrom | function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Sub... | /**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
5202,
5818
]
} | 9,538 | |||
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | ResidualValue | contract ResidualValue is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initial... | /******************************************/ | NatSpecMultiLine | ResidualValue | function ResidualValue(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) TokenERC20(initialSupply, tokenName, tokenSymbol) public {}
| /* Initializes contract with initial supply tokens to the creator of the contract */ | Comment | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
396,
578
]
} | 9,539 | |
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | ResidualValue | contract ResidualValue is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initial... | /******************************************/ | NatSpecMultiLine | _transfer | function _transfer(address _from, address _to, uint _value) internal {
require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead
require (balanceOf[_from] >= _value); // Check if the sender has enough
require (balanceOf[_to] + _value >= balan... | /* Internal transfer, only can be called by this contract */ | Comment | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
647,
1435
]
} | 9,540 | |
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | ResidualValue | contract ResidualValue is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initial... | /******************************************/ | NatSpecMultiLine | mintToken | function mintToken(address target, uint256 mintedAmount) onlyOwner public {
balanceOf[target] += mintedAmount;
totalSupply += mintedAmount;
emit Transfer(0, this, mintedAmount);
emit Transfer(this, target, mintedAmount);
}
| /// @notice Create `mintedAmount` tokens and send it to `target`
/// @param target Address to receive the tokens
/// @param mintedAmount the amount of tokens it will receive | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
1627,
1895
]
} | 9,541 | |
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | ResidualValue | contract ResidualValue is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initial... | /******************************************/ | NatSpecMultiLine | freezeAccount | function freezeAccount(address target, bool freeze) onlyOwner public {
frozenAccount[target] = freeze;
emit FrozenFunds(target, freeze);
}
| /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens
/// @param target Address to be frozen
/// @param freeze either to freeze it or not | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
2076,
2242
]
} | 9,542 | |
ResidualValue | ResidualValue.sol | 0x93eeadff48537ba1d07c493d1e9769948cd1f5ed | Solidity | ResidualValue | contract ResidualValue is owned, TokenERC20 {
uint256 public sellPrice;
uint256 public buyPrice;
mapping (address => bool) public frozenAccount;
/* This generates a public event on the blockchain that will notify clients */
event FrozenFunds(address target, bool frozen);
/* Initial... | /******************************************/ | NatSpecMultiLine | setPrices | function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public {
sellPrice = newSellPrice;
buyPrice = newBuyPrice;
}
| /// @notice Allow users to buy tokens for `newBuyPrice` eth and sell tokens for `newSellPrice` eth
/// @param newSellPrice Price the users can sell to the contract
/// @param newBuyPrice Price users can buy from the contract | NatSpecSingleLine | v0.4.24+commit.e67f0147 | bzzr://6753f1ad713d090f204c9d30a208057b87374bd5c040ffaa64da53037731ae4f | {
"func_code_index": [
2485,
2645
]
} | 9,543 | |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | Address | library Address {
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. ... | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
1456,
1657
]
} | 9,544 | ||
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | Address | library Address {
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. ... | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
2027,
2258
]
} | 9,545 | ||
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | Address | library Address {
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. ... | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
2509,
2830
]
} | 9,546 | ||
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | IBEP20 | interface IBEP20 {
/**
* @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);
/**... | /**
* @dev Interface of the BEP20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
94,
154
]
} | 9,547 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | IBEP20 | interface IBEP20 {
/**
* @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);
/**... | /**
* @dev Interface of the BEP20 standard as defined in the EIP.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
237,
310
]
} | 9,548 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | IBEP20 | interface IBEP20 {
/**
* @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);
/**... | /**
* @dev Interface of the BEP20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
534,
616
]
} | 9,549 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | IBEP20 | interface IBEP20 {
/**
* @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);
/**... | /**
* @dev Interface of the BEP20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
895,
983
]
} | 9,550 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | IBEP20 | interface IBEP20 {
/**
* @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);
/**... | /**
* @dev Interface of the BEP20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
1573,
1652
]
} | 9,551 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | IBEP20 | interface IBEP20 {
/**
* @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);
/**... | /**
* @dev Interface of the BEP20 standard as defined in the EIP.
*/ | NatSpecMultiLine | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
1965,
2067
]
} | 9,552 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | Ownable | 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 () internal {
address msgSender = _msgSend... | /**
* @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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
497,
581
]
} | 9,553 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | Ownable | 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 () internal {
address msgSender = _msgSend... | /**
* @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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
1139,
1292
]
} | 9,554 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | Solidity | Ownable | 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 () internal {
address msgSender = _msgSend... | /**
* @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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
1442,
1691
]
} | 9,555 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
259,
445
]
} | 9,556 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
723,
864
]
} | 9,557 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
1162,
1359
]
} | 9,558 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | 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.
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: mu... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
1613,
2018
]
} | 9,559 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
2489,
2626
]
} | 9,560 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
3117,
3400
]
} | 9,561 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
3860,
3995
]
} | 9,562 |
MatrixNFTs | MatrixNFTs.sol | 0xd64ae770258e236776262c596f91f0a1d7e45662 | 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.6.12+commit.27d51765 | None | ipfs://d87f154d4f5bd59a410aef820877c69765e27f22c1d1dbe6fbbde0182fe9f345 | {
"func_code_index": [
4475,
4646
]
} | 9,563 |
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
94,
154
]
} | 9,564 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
237,
310
]
} | 9,565 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
534,
616
]
} | 9,566 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
895,
983
]
} | 9,567 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
1647,
1726
]
} | 9,568 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
2039,
2141
]
} | 9,569 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
100,
159
]
} | 9,570 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
226,
287
]
} | 9,571 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
363,
418
]
} | 9,572 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
803,
908
]
} | 9,573 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
1022,
1131
]
} | 9,574 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | decimals | function decimals() public view virtual override returns (uint8) {
return 16;
}
| /**
* @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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
1765,
1863
]
} | 9,575 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | totalSupply | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
1923,
2036
]
} | 9,576 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | balanceOf | function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
2094,
2226
]
} | 9,577 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
2434,
2614
]
} | 9,578 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
2672,
2828
]
} | 9,579 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
2970,
3144
]
} | 9,580 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
3621,
4048
]
} | 9,581 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual 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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
4452,
4672
]
} | 9,582 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, currentAllowance - sub... | /**
* @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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
5170,
5552
]
} | 9,583 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | _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);
uint256 sende... | /**
* @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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
6037,
6646
]
} | 9,584 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | _mint | function _mint(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, amount);
}
| /** @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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
6923,
7266
]
} | 9,585 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds ba... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.8.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
7594,
8093
]
} | 9,586 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | _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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
8526,
8877
]
} | 9,587 | ||
ERC20 | ERC20.sol | 0x6375332a122ccacca1907d00bdbdc4310b3b8454 | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values fo... | _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.1+commit.df193b15 | MIT | ipfs://41f6192381f8ef5ec81ac8039eeaed57f89b4042075920a3eff8ad0c120f7ece | {
"func_code_index": [
9475,
9572
]
} | 9,588 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolImmutables | interface IUniswapV3PoolImmutables {
/// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
/// @return The contract address
function factory() external view returns (address);
/// @notice The first of the two tokens of the pool, sorted by address
/// ... | /// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values | NatSpecSingleLine | factory | function factory() external view returns (address);
| /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
/// @return The contract address | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
180,
235
]
} | 9,589 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolImmutables | interface IUniswapV3PoolImmutables {
/// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
/// @return The contract address
function factory() external view returns (address);
/// @notice The first of the two tokens of the pool, sorted by address
/// ... | /// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values | NatSpecSingleLine | token0 | function token0() external view returns (address);
| /// @notice The first of the two tokens of the pool, sorted by address
/// @return The token contract address | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
355,
409
]
} | 9,590 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolImmutables | interface IUniswapV3PoolImmutables {
/// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
/// @return The contract address
function factory() external view returns (address);
/// @notice The first of the two tokens of the pool, sorted by address
/// ... | /// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values | NatSpecSingleLine | token1 | function token1() external view returns (address);
| /// @notice The second of the two tokens of the pool, sorted by address
/// @return The token contract address | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
530,
584
]
} | 9,591 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolImmutables | interface IUniswapV3PoolImmutables {
/// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
/// @return The contract address
function factory() external view returns (address);
/// @notice The first of the two tokens of the pool, sorted by address
/// ... | /// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values | NatSpecSingleLine | fee | function fee() external view returns (uint24);
| /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
/// @return The fee | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
675,
725
]
} | 9,592 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolImmutables | interface IUniswapV3PoolImmutables {
/// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
/// @return The contract address
function factory() external view returns (address);
/// @notice The first of the two tokens of the pool, sorted by address
/// ... | /// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values | NatSpecSingleLine | tickSpacing | function tickSpacing() external view returns (int24);
| /// @notice The pool tick spacing
/// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
/// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
/// This value is an int24 to avoid casting even though it is always positive.
/// @r... | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
1090,
1147
]
} | 9,593 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolImmutables | interface IUniswapV3PoolImmutables {
/// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
/// @return The contract address
function factory() external view returns (address);
/// @notice The first of the two tokens of the pool, sorted by address
/// ... | /// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values | NatSpecSingleLine | maxLiquidityPerTick | function maxLiquidityPerTick() external view returns (uint128);
| /// @notice The maximum amount of position liquidity that can use any tick in the range
/// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and
/// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
/// @return The m... | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
1517,
1584
]
} | 9,594 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | slot0 | function slot0()
external
view
returns (
uint160 sqrtPriceX96,
int24 tick,
uint16 observationIndex,
uint16 observationCardinality,
uint16 observationCardinalityNext,
uint8 feeProtocol,
bool unlocked
);
| /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool, i.e. according to the last tick transition that... | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
1177,
1498
]
} | 9,595 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | feeGrowthGlobal0X128 | function feeGrowthGlobal0X128() external view returns (uint256);
| /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
/// @dev This value can overflow the uint256 | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
1673,
1741
]
} | 9,596 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | feeGrowthGlobal1X128 | function feeGrowthGlobal1X128() external view returns (uint256);
| /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
/// @dev This value can overflow the uint256 | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
1916,
1984
]
} | 9,597 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | protocolFees | function protocolFees() external view returns (uint128 token0, uint128 token1);
| /// @notice The amounts of token0 and token1 that are owed to the protocol
/// @dev Protocol fees will never exceed uint128 max in either token | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
2138,
2221
]
} | 9,598 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | liquidity | function liquidity() external view returns (uint128);
| /// @notice The currently in range liquidity available to the pool
/// @dev This value has no relationship to the total liquidity across all ticks | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
2378,
2435
]
} | 9,599 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | ticks | function ticks(int24 tick)
external
view
returns (
uint128 liquidityGross,
int128 liquidityNet,
uint256 feeGrowthOutside0X128,
uint256 feeGrowthOutside1X128
);
| /// @notice Look up information about a specific tick in the pool
/// @param tick The tick to look up
/// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or
/// tick upper,
/// liquidityNet how much liquidity changes when the pool price crosses the tick,
/// feeGrow... | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
3200,
3443
]
} | 9,600 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | tickBitmap | function tickBitmap(int16 wordPosition) external view returns (uint256);
| /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
3549,
3625
]
} | 9,601 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | secondsOutside | function secondsOutside(int24 wordPosition) external view returns (uint256);
| /// @notice Returns 8 packed tick seconds outside values. See SecondsOutside for more information | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
3729,
3809
]
} | 9,602 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | positions | function positions(bytes32 key)
external
view
returns (
uint128 _liquidity,
uint256 feeGrowthInside0LastX128,
uint256 feeGrowthInside1LastX128,
uint128 tokensOwed0,
uint128 tokensOwed1
);
| /// @notice Returns the information about a position by the position's key
/// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper
/// @return _liquidity The amount of liquidity in the position,
/// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick ra... | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
4516,
4799
]
} | 9,603 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolState | interface IUniswapV3PoolState {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
/// when accessed externally.
/// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
/// tick The current tick of the pool,... | /// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction | NatSpecSingleLine | observations | function observations(uint256 index)
external
view
returns (
uint32 blockTimestamp,
int56 tickCumulative,
uint160 liquidityCumulative,
bool initialized
);
| /// @notice Returns data about a specific observation index
/// @param index The element of the observations array to fetch
/// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time
/// ago, rather than at a specific index in the array.
/// @return blockTimes... | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
5562,
5800
]
} | 9,604 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolDerivedState | interface IUniswapV3PoolDerivedState {
/// @notice Returns a relative timestamp value representing how long, in seconds, the pool has spent between
/// tickLower and tickUpper
/// @dev This timestamp is strictly relative. To get a useful elapsed time (i.e., duration) value, the value returned
/// by thi... | /// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs. | NatSpecSingleLine | secondsInside | function secondsInside(int24 tickLower, int24 tickUpper) external view returns (uint32);
| /// @notice Returns a relative timestamp value representing how long, in seconds, the pool has spent between
/// tickLower and tickUpper
/// @dev This timestamp is strictly relative. To get a useful elapsed time (i.e., duration) value, the value returned
/// by this method should be checkpointed externally after a posi... | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
770,
862
]
} | 9,605 | ||
UniswapV3Product | contracts/interface/UniswapV3/IUniswapV3Pool.sol | 0x501ace6c657a9b53b320780068fd99894d5795cb | Solidity | IUniswapV3PoolDerivedState | interface IUniswapV3PoolDerivedState {
/// @notice Returns a relative timestamp value representing how long, in seconds, the pool has spent between
/// tickLower and tickUpper
/// @dev This timestamp is strictly relative. To get a useful elapsed time (i.e., duration) value, the value returned
/// by thi... | /// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs. | NatSpecSingleLine | observe | function observe(uint32[] calldata secondsAgos)
external
view
returns (int56[] memory tickCumulatives, uint160[] memory liquidityCumulatives);
| /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
/// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
/// the beginning of the period and another for the end of the period. E.g., t... | NatSpecSingleLine | v0.8.6+commit.11564f7e | {
"func_code_index": [
1888,
2058
]
} | 9,606 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.