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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OctusNetworkGoldenToken | contracts/OctusNetworkToken.sol | 0x3b3c6809e03244a5bbc3e76e13fb3923d7da9b62 | Solidity | OctusNetworkGoldenToken | contract OctusNetworkGoldenToken is StandardToken, Ownable {
string public constant name = "Octus Network Golden Token";
string public constant symbol = "OCTG";
uint8 public constant decimals = 18;
uint256 public constant INITIAL_SUPPLY = 10000000 * (10 ** uint256(decimals));
mapping (add... | /**
* @title OctusNetworkGoldenToken
* @dev DistributableToken contract is based on a simple initial supply token, with an API for the owner to perform bulk distributions.
* transactions to the distributeTokens function should be paginated to avoid gas limits or computational time restrictions.
*/ | NatSpecMultiLine | freezeAccount | function freezeAccount(address target, bool freeze) public onlyOwner{
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.25+commit.59dbf8f1 | bzzr://bcf3502a6f5ba3c6c427c5b7b3596defdd618535c0d0064abaee483836a3e54b | {
"func_code_index": [
1479,
1645
]
} | 10,600 | |
KickLottery | contracts/KickLottery.sol | 0xa00292d18e44f6ed864eb2e1865875e3b5c10290 | Solidity | KickLottery | contract KickLottery is Ownable, IERC1363Receiver {
struct LotteryRound {
uint256 endBlock;
address[] members;
mapping(address => uint256) balances;
address[] winners;
uint256 jackpot;
bytes32 hash;
}
LotteryRound[] public history;
uint256 public roundNumb... | createRound | function createRound() private isActive {
LotteryRound storage round = history.push();
round.endBlock = block.number + playPeriodBlocks;
}
| // create round logic -----------------------------------------------------
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
1825,
1987
]
} | 10,601 | ||||
KickLottery | contracts/KickLottery.sol | 0xa00292d18e44f6ed864eb2e1865875e3b5c10290 | Solidity | KickLottery | contract KickLottery is Ownable, IERC1363Receiver {
struct LotteryRound {
uint256 endBlock;
address[] members;
mapping(address => uint256) balances;
address[] winners;
uint256 jackpot;
bytes32 hash;
}
LotteryRound[] public history;
uint256 public roundNumb... | isRoundFinished | function isRoundFinished() public view returns (bool) {
LotteryRound storage round = history[roundNumber];
return block.number > round.endBlock;
}
| // join logic -------------------------------------------------------------
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
2150,
2320
]
} | 10,602 | ||||
KickLottery | contracts/KickLottery.sol | 0xa00292d18e44f6ed864eb2e1865875e3b5c10290 | Solidity | KickLottery | contract KickLottery is Ownable, IERC1363Receiver {
struct LotteryRound {
uint256 endBlock;
address[] members;
mapping(address => uint256) balances;
address[] winners;
uint256 jackpot;
bytes32 hash;
}
LotteryRound[] public history;
uint256 public roundNumb... | saveRoundHash | function saveRoundHash() external isActive {
LotteryRound storage round = history[roundNumber];
require(round.hash == bytes32(0), "Hash already saved");
require(block.number > round.endBlock, "Current round is not finished");
bytes32 bhash = blockhash(round.endBlock);
require(bhash != bytes32(0), "T... | // finish round logic -----------------------------------------------------
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
4342,
4795
]
} | 10,603 | ||||
KickLottery | contracts/KickLottery.sol | 0xa00292d18e44f6ed864eb2e1865875e3b5c10290 | Solidity | KickLottery | contract KickLottery is Ownable, IERC1363Receiver {
struct LotteryRound {
uint256 endBlock;
address[] members;
mapping(address => uint256) balances;
address[] winners;
uint256 jackpot;
bytes32 hash;
}
LotteryRound[] public history;
uint256 public roundNumb... | setPlayPeriodBlocks | function setPlayPeriodBlocks(uint256 value) external onlyOwner {
require(value > 0, "wrong playPeriodBlock");
playPeriodBlocks = value;
emit PlayPeriodBlocksChanged(value);
}
| // setters ----------------------------------------------------------------
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
10362,
10568
]
} | 10,604 | ||||
KickLottery | contracts/KickLottery.sol | 0xa00292d18e44f6ed864eb2e1865875e3b5c10290 | Solidity | KickLottery | contract KickLottery is Ownable, IERC1363Receiver {
struct LotteryRound {
uint256 endBlock;
address[] members;
mapping(address => uint256) balances;
address[] winners;
uint256 jackpot;
bytes32 hash;
}
LotteryRound[] public history;
uint256 public roundNumb... | roundWinners | function roundWinners(uint256 _roundNumber)
external
view
returns (address[] memory)
{
require(_roundNumber < history.length - 1, "Not valid round number");
return history[_roundNumber].winners;
}
| // getters ----------------------------------------------------------------
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
11520,
11768
]
} | 10,605 | ||||
KickLottery | contracts/KickLottery.sol | 0xa00292d18e44f6ed864eb2e1865875e3b5c10290 | Solidity | KickLottery | contract KickLottery is Ownable, IERC1363Receiver {
struct LotteryRound {
uint256 endBlock;
address[] members;
mapping(address => uint256) balances;
address[] winners;
uint256 jackpot;
bytes32 hash;
}
LotteryRound[] public history;
uint256 public roundNumb... | _kill | function _kill(address to) private {
active = false;
token.transfer(to, token.balanceOf(address(this)));
}
| // kill lottery logic -----------------------------------------------------
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
14344,
14474
]
} | 10,606 | ||||
KickLottery | contracts/KickLottery.sol | 0xa00292d18e44f6ed864eb2e1865875e3b5c10290 | Solidity | KickLottery | contract KickLottery is Ownable, IERC1363Receiver {
struct LotteryRound {
uint256 endBlock;
address[] members;
mapping(address => uint256) balances;
address[] winners;
uint256 jackpot;
bytes32 hash;
}
LotteryRound[] public history;
uint256 public roundNumb... | stuckFundsTransfer | function stuckFundsTransfer(
address _token,
address to,
uint256 amount
) external onlyOwner returns (bool) {
require(_token != address(token), "Can't withdraw lottery token");
return IERC20(_token).transfer(to, amount);
}
| // stuck funds ------------------------------------------------------------
// ------------------------------------------------------------------------ | LineComment | v0.8.7+commit.e28d00a7 | {
"func_code_index": [
14723,
14997
]
} | 10,607 | ||||
XPLL | contracts/token/ERC20/ERC20Mintable.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20Mintable | contract ERC20Mintable is ERC20, MinterRole {
/**
* @dev See {ERC20-_mint}.
*
* Requirements:
*
* - the caller must have the {MinterRole}.
*/
function mint(address account, uint256 amount) public onlyMinter returns (bool) {
_mint(account, amount);
return t... | /**
* @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole},
* which have permission to mint (create) new tokens as they see fit.
*
* At construction, the deployer of the contract is the only minter.
*/ | NatSpecMultiLine | mint | function mint(address account, uint256 amount) public onlyMinter returns (bool) {
_mint(account, amount);
return true;
}
| /**
* @dev See {ERC20-_mint}.
*
* Requirements:
*
* - the caller must have the {MinterRole}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
184,
332
]
} | 10,608 |
XPLL | contracts/token/ERC20/ERC20Burnable.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20Burnable | contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public {
_burn(_msgSender(), amount);
}
/**
* @dev See {ERC20-_burnFrom}.
*/
function burnFrom(a... | /**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/ | NatSpecMultiLine | burn | function burn(uint256 amount) public {
_burn(_msgSender(), amount);
}
| /**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
152,
240
]
} | 10,609 |
XPLL | contracts/token/ERC20/ERC20Burnable.sol | 0xb3b07030e19e6cef5b63d9d38da1acf2f3eb8036 | Solidity | ERC20Burnable | contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public {
_burn(_msgSender(), amount);
}
/**
* @dev See {ERC20-_burnFrom}.
*/
function burnFrom(a... | /**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/ | NatSpecMultiLine | burnFrom | function burnFrom(address account, uint256 amount) public {
_burnFrom(account, amount);
}
| /**
* @dev See {ERC20-_burnFrom}.
*/ | NatSpecMultiLine | v0.5.16+commit.9c3226ce | GNU GPLv2 | bzzr://dc623edd3ecf2ca4ac7af029486ad5e403eabd88f8f1bf03545feae89b655de4 | {
"func_code_index": [
297,
405
]
} | 10,610 |
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onl... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
169,
222
]
} | 10,611 | |
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onl... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) onlyOwner {
require(newOwner != address(0));
owner = newOwner;
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
545,
676
]
} | 10,612 | |
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
MintableToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
// address where funds are collected
address public wallet;
... | createTokenContract | function createTokenContract() internal returns (MintableToken) {
return new MintableToken();
}
| // creates the token to be sold.
// override this method to have crowdsale of a specific mintable token. | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
1282,
1388
]
} | 10,613 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
MintableToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
// address where funds are collected
address public wallet;
... | function () payable {
buyTokens(msg.sender);
}
| // fallback function can be used to buy tokens | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
1443,
1500
]
} | 10,614 | ||||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
MintableToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
// address where funds are collected
address public wallet;
... | buyTokens | function buyTokens(address beneficiary) payable {
require(beneficiary != 0x0);
require(validPurchase());
uint256 weiAmount = msg.value;
// calculate token amount to be created
uint256 tokens = weiAmount.mul(rate);
// update state
weiRaised = weiRaised.add(weiAmount);
token.mint(beneficia... | // low level token purchase function | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
1543,
1986
]
} | 10,615 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
MintableToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
// address where funds are collected
address public wallet;
... | forwardFunds | function forwardFunds() internal {
wallet.transfer(msg.value);
}
| // send ether to the fund collection wallet
// override to create custom fund forwarding mechanisms | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
2095,
2170
]
} | 10,616 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
MintableToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
// address where funds are collected
address public wallet;
... | validPurchase | function validPurchase() internal constant returns (bool) {
bool withinPeriod = now >= startTime && now <= endTime;
bool nonZeroPurchase = msg.value != 0;
return withinPeriod && nonZeroPurchase;
}
| // @return true if the transaction can buy tokens | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
2226,
2443
]
} | 10,617 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Crowdsale | contract Crowdsale {
using SafeMath for uint256;
// The token being sold
MintableToken public token;
// start and end timestamps where investments are allowed (both inclusive)
uint256 public startTime;
uint256 public endTime;
// address where funds are collected
address public wallet;
... | hasEnded | function hasEnded() public constant returns (bool) {
return now > endTime;
}
| // @return true if crowdsale event has ended | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
2494,
2581
]
} | 10,618 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | CappedCrowdsale | contract CappedCrowdsale is Crowdsale {
using SafeMath for uint256;
uint256 public cap;
function CappedCrowdsale(uint256 _cap) {
require(_cap > 0);
cap = _cap;
}
// overriding Crowdsale#validPurchase to add extra cap logic
// @return true if investors can buy at the moment
function ... | validPurchase | function validPurchase() internal constant returns (bool) {
bool withinCap = weiRaised.add(msg.value) <= cap;
return super.validPurchase() && withinCap;
}
| // overriding Crowdsale#validPurchase to add extra cap logic
// @return true if investors can buy at the moment | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
309,
479
]
} | 10,619 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | CappedCrowdsale | contract CappedCrowdsale is Crowdsale {
using SafeMath for uint256;
uint256 public cap;
function CappedCrowdsale(uint256 _cap) {
require(_cap > 0);
cap = _cap;
}
// overriding Crowdsale#validPurchase to add extra cap logic
// @return true if investors can buy at the moment
function ... | hasEnded | function hasEnded() public constant returns (bool) {
bool capReached = weiRaised >= cap;
return super.hasEnded() || capReached;
}
| // overriding Crowdsale#hasEnded to add cap logic
// @return true if crowdsale event has ended | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
583,
728
]
} | 10,620 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) ret... | transfer | function transfer(address _to, uint256 _value) returns (bool) {
require(_to != address(0));
// SafeMath.sub will throw if there is not enough balance.
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
268,
606
]
} | 10,621 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | BasicToken | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) ret... | balanceOf | function balanceOf(address _owner) constant returns (uint256 balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
813,
922
]
} | 10,622 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
require(_to != address(0));
var _allowance = allowed[_from][msg.sender];
// Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
// require (_value <= _allowance);
balan... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
392,
930
]
} | 10,623 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | approve | function approve(address _spender, uint256 _value) returns (bool) {
// To change the approve amount you first have to reduce the addresses`
// allowance to zero by calling `approve(_spender, 0)` if it is not
// already 0 to mitigate the race condition described here:
// https://github.com/ethereum/EIPs... | /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
1166,
1714
]
} | 10,624 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | allowance | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
2038,
2176
]
} | 10,625 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | StandardToken | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) allowed;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
... | increaseApproval | function increaseApproval (address _spender, uint _addedValue)
returns (bool success) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
| /**
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
2424,
2696
]
} | 10,626 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | BurnableToken | contract BurnableToken is StandardToken {
/**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/
function burn(uint _value)
public
{
require(_value > 0);
address burner = msg.sender;
balances[burner] = b... | burn | function burn(uint _value)
public
{
require(_value > 0);
address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(burner, _value);
}
| /**
* @dev Burns a specific amount of tokens.
* @param _value The amount of token to be burned.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
167,
435
]
} | 10,627 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | MintableToken | contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param _to The address that ... | mint | function mint(address _to, uint256 _amount) onlyOwner canMint returns (bool) {
totalSupply = totalSupply.add(_amount);
balances[_to] = balances[_to].add(_amount);
Mint(_to, _amount);
Transfer(0x0, _to, _amount);
return true;
}
| /**
* @dev Function to mint tokens
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
483,
740
]
} | 10,628 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | MintableToken | contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
modifier canMint() {
require(!mintingFinished);
_;
}
/**
* @dev Function to mint tokens
* @param _to The address that ... | finishMinting | function finishMinting() onlyOwner returns (bool) {
mintingFinished = true;
MintFinished();
return true;
}
| /**
* @dev Function to stop minting new tokens.
* @return True if the operation was successful.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
857,
984
]
} | 10,629 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | FinalizableCrowdsale | contract FinalizableCrowdsale is Crowdsale, Ownable {
using SafeMath for uint256;
bool public isFinalized = false;
event Finalized();
/**
* @dev Must be called after crowdsale ends, to do some extra finalization
* work. Calls the contract's finalization function.
*/
function finalize() ... | finalize | function finalize() onlyOwner {
require(!isFinalized);
require(hasEnded());
finalization();
Finalized();
isFinalized = true;
}
| /**
* @dev Must be called after crowdsale ends, to do some extra finalization
* work. Calls the contract's finalization function.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
298,
463
]
} | 10,630 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | FinalizableCrowdsale | contract FinalizableCrowdsale is Crowdsale, Ownable {
using SafeMath for uint256;
bool public isFinalized = false;
event Finalized();
/**
* @dev Must be called after crowdsale ends, to do some extra finalization
* work. Calls the contract's finalization function.
*/
function finalize() ... | finalization | function finalization() internal {
}
| /**
* @dev Can be overriden to add finalization logic. The overriding function
* should call super.finalization() to ensure the chain of finalization is
* executed entirely.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
662,
704
]
} | 10,631 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
513,
604
]
} | 10,632 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
688,
781
]
} | 10,633 | |||
liebescoin | liebescoin.sol | 0xbd26f662e928e283bfac4608a2380f20dfc5018e | Solidity | liebescoin | contract liebescoin is MintableToken, BurnableToken, PausableToken {
string public constant name = "liebescoin";
string public constant symbol = "LIEB";
uint8 public constant decimals =0;
function liebescoin() {
}
// --------------------------------------------------------
... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public whenNotPaused returns (bool) {
bool result = super.transferFrom(_from, _to, _value);
return result;
}
| // -------------------------------------------------------- | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://67c1d09e80e83ec751849eb65189c40c7b2264861b34ee51273bdd2f9e5daea1 | {
"func_code_index": [
319,
521
]
} | 10,634 | |||
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
924,
1043
]
} | 10,635 |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
1265,
1390
]
} | 10,636 |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
1736,
2008
]
} | 10,637 |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
2519,
2732
]
} | 10,638 |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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 transfer... | LineComment | v0.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
3270,
3618
]
} | 10,639 |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
3901,
4053
]
} | 10,640 |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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 memory data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, address(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.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
4416,
4754
]
} | 10,641 |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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 () external payable {
revert();
}
| // ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------ | LineComment | v0.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
4946,
5007
]
} | 10,642 | |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
5240,
5429
]
} | 10,643 |
Token | Token.sol | 0x4d6b9f281af31916a0f16d1cea2ec7384851eaab | Solidity | Token | contract 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 | _burn | function _burn(address account, uint256 amount) internal {
require(account != address(0), "ERC20: burn from the zero address");
balances[account] = balances[account].sub(amount);
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
| /**
* @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.5.12+commit.7709ece9 | None | bzzr://6dee583b7bb8a1554260607fb8a372e151bdefb598f43070e9b46c251b87b635 | {
"func_code_index": [
6074,
6387
]
} | 10,644 |
Sablier | @sablier/shared-contracts/lifecycle/PausableWithoutRenounce.sol | 0xac7811db4796613073856f98a22a89970319ee94 | Solidity | PausableWithoutRenounce | contract PausableWithoutRenounce is Initializable, Context, PauserRoleWithoutRenounce {
/**
* @dev Emitted when the pause is triggered by a pauser (`account`).
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by a pauser (`account`).
*/
event Un... | /**
* @title PausableWithoutRenounce
* @author Sablier
* @notice Fork of OpenZeppelin's Pausable, a contract module which allows children to implement an
* emergency stop mechanism that can be triggered by an authorized account, but with the `renouncePauser`
* function removed to avoid fat-finger errors.
... | NatSpecMultiLine | initialize | function initialize(address sender) public initializer {
PauserRoleWithoutRenounce.initialize(sender);
_paused = false;
}
| /**
* @dev Initializes the contract in unpaused state. Assigns the Pauser role
* to the deployer.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://ec3003824cf8df700b01a4ab2ad139bbf6652b6257d617042b4fd3f2b4a4954e | {
"func_code_index": [
501,
650
]
} | 10,645 |
Sablier | @sablier/shared-contracts/lifecycle/PausableWithoutRenounce.sol | 0xac7811db4796613073856f98a22a89970319ee94 | Solidity | PausableWithoutRenounce | contract PausableWithoutRenounce is Initializable, Context, PauserRoleWithoutRenounce {
/**
* @dev Emitted when the pause is triggered by a pauser (`account`).
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by a pauser (`account`).
*/
event Un... | /**
* @title PausableWithoutRenounce
* @author Sablier
* @notice Fork of OpenZeppelin's Pausable, a contract module which allows children to implement an
* emergency stop mechanism that can be triggered by an authorized account, but with the `renouncePauser`
* function removed to avoid fat-finger errors.
... | NatSpecMultiLine | paused | function paused() public view returns (bool) {
return _paused;
}
| /**
* @dev Returns true if the contract is paused, and false otherwise.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://ec3003824cf8df700b01a4ab2ad139bbf6652b6257d617042b4fd3f2b4a4954e | {
"func_code_index": [
745,
828
]
} | 10,646 |
Sablier | @sablier/shared-contracts/lifecycle/PausableWithoutRenounce.sol | 0xac7811db4796613073856f98a22a89970319ee94 | Solidity | PausableWithoutRenounce | contract PausableWithoutRenounce is Initializable, Context, PauserRoleWithoutRenounce {
/**
* @dev Emitted when the pause is triggered by a pauser (`account`).
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by a pauser (`account`).
*/
event Un... | /**
* @title PausableWithoutRenounce
* @author Sablier
* @notice Fork of OpenZeppelin's Pausable, a contract module which allows children to implement an
* emergency stop mechanism that can be triggered by an authorized account, but with the `renouncePauser`
* function removed to avoid fat-finger errors.
... | NatSpecMultiLine | pause | function pause() public onlyPauser whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
| /**
* @dev Called by a pauser to pause, triggers stopped state.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://ec3003824cf8df700b01a4ab2ad139bbf6652b6257d617042b4fd3f2b4a4954e | {
"func_code_index": [
1325,
1448
]
} | 10,647 |
Sablier | @sablier/shared-contracts/lifecycle/PausableWithoutRenounce.sol | 0xac7811db4796613073856f98a22a89970319ee94 | Solidity | PausableWithoutRenounce | contract PausableWithoutRenounce is Initializable, Context, PauserRoleWithoutRenounce {
/**
* @dev Emitted when the pause is triggered by a pauser (`account`).
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by a pauser (`account`).
*/
event Un... | /**
* @title PausableWithoutRenounce
* @author Sablier
* @notice Fork of OpenZeppelin's Pausable, a contract module which allows children to implement an
* emergency stop mechanism that can be triggered by an authorized account, but with the `renouncePauser`
* function removed to avoid fat-finger errors.
... | NatSpecMultiLine | unpause | function unpause() public onlyPauser whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
| /**
* @dev Called by a pauser to unpause, returns to normal state.
*/ | NatSpecMultiLine | v0.5.11+commit.c082d0b4 | GNU LGPLv3 | bzzr://ec3003824cf8df700b01a4ab2ad139bbf6652b6257d617042b4fd3f2b4a4954e | {
"func_code_index": [
1538,
1663
]
} | 10,648 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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);
/**... | /**
* @dev Interface of the ERC20 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
94,
154
]
} | 10,649 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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);
/**... | /**
* @dev Interface of the ERC20 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
237,
310
]
} | 10,650 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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);
/**... | /**
* @dev Interface of the ERC20 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
534,
616
]
} | 10,651 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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);
/**... | /**
* @dev Interface of the ERC20 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
895,
983
]
} | 10,652 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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);
/**... | /**
* @dev Interface of the ERC20 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1588,
1667
]
} | 10,653 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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);
/**... | /**
* @dev Interface of the ERC20 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1980,
2082
]
} | 10,654 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
259,
445
]
} | 10,655 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
723,
864
]
} | 10,656 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1162,
1359
]
} | 10,657 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
| /**
* @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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1613,
1898
]
} | 10,658 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2369,
2506
]
} | 10,659 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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;
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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2997,
3203
]
} | 10,660 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
3663,
3798
]
} | 10,661 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | 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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
4278,
4449
]
} | 10,662 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
874,
962
]
} | 10,663 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1076,
1168
]
} | 10,664 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1801,
1889
]
} | 10,665 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1949,
2054
]
} | 10,666 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2112,
2236
]
} | 10,667 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | 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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2444,
2624
]
} | 10,668 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2682,
2838
]
} | 10,669 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | 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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2980,
3154
]
} | 10,670 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
| /**
* @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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
3631,
3957
]
} | 10,671 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
4361,
4584
]
} | 10,672 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
| /**
* @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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
5082,
5356
]
} | 10,673 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _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);
_balances[sen... | /**
* @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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
5841,
6385
]
} | 10,674 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _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 = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfe... | /** @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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
6662,
7045
]
} | 10,675 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _to... | /**
* @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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
7373,
7796
]
} | 10,676 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
8229,
8580
]
} | 10,677 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _setupDecimals | function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
| /**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
8907,
9002
]
} | 10,678 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | ERC20 | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _dec... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | _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.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
9600,
9697
]
} | 10,679 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
uint256 size;
assembly { size := extcodesize(account) }
return size > 0;
}
| /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
606,
827
]
} | 10,680 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
| /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https:
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1458,
1792
]
} | 10,681 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
| /**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw ... | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2409,
2587
]
} | 10,682 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2812,
3012
]
} | 10,683 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
3382,
3613
]
} | 10,684 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool... | /**
* @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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
3864,
4349
]
} | 10,685 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
4529,
4733
]
} | 10,686 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionStaticCall | function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(su... | /**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
4920,
5297
]
} | 10,687 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, add... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | safeApprove | function safeApprove(IERC20 token, address spender, uint256 value) internal {
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelec... | /**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
747,
1140
]
} | 10,688 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | SafeERC20 | library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, add... | /**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `... | NatSpecMultiLine | _callOptionalReturn | function _callOptionalReturn(IERC20 token, bytes memory data) private {
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
require(abi.decode(returndata, (bool)), "SafeERC20: ERC2... | /**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
2159,
2544
]
} | 10,689 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender =... | /**
* @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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
506,
590
]
} | 10,690 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender =... | /**
* @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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1148,
1301
]
} | 10,691 |
VaultAdaptorYearnV2_032 | VaultAdaptorYearnV2_032.sol | 0x4f22c70d0b59b0ebaf44c864cc2419f0ff065295 | Solidity | Ownable | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender =... | /**
* @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 | Unknown | ipfs://24c103a501f40dff641fac1474b807231e9a929e8cdee31b383070cac449a44a | {
"func_code_index": [
1451,
1700
]
} | 10,692 |
IndexStaking | IndexStaking.sol | 0xa940e0541f8b8a40551b28d4c7e37bd85de426ff | 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);
/**... | /**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | MIT | bzzr://03fe324518d3cb1e7f9c96e627895b760bd3b4a3bdae8305c4509e3a81daac8c | {
"func_code_index": [
94,
154
]
} | 10,693 |
IndexStaking | IndexStaking.sol | 0xa940e0541f8b8a40551b28d4c7e37bd85de426ff | 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);
/**... | /**
* @dev Interface of the ERC20 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.5.15+commit.6a57276f | MIT | bzzr://03fe324518d3cb1e7f9c96e627895b760bd3b4a3bdae8305c4509e3a81daac8c | {
"func_code_index": [
237,
310
]
} | 10,694 |
IndexStaking | IndexStaking.sol | 0xa940e0541f8b8a40551b28d4c7e37bd85de426ff | 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);
/**... | /**
* @dev Interface of the ERC20 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.5.15+commit.6a57276f | MIT | bzzr://03fe324518d3cb1e7f9c96e627895b760bd3b4a3bdae8305c4509e3a81daac8c | {
"func_code_index": [
534,
616
]
} | 10,695 |
IndexStaking | IndexStaking.sol | 0xa940e0541f8b8a40551b28d4c7e37bd85de426ff | 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);
/**... | /**
* @dev Interface of the ERC20 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.5.15+commit.6a57276f | MIT | bzzr://03fe324518d3cb1e7f9c96e627895b760bd3b4a3bdae8305c4509e3a81daac8c | {
"func_code_index": [
895,
983
]
} | 10,696 |
IndexStaking | IndexStaking.sol | 0xa940e0541f8b8a40551b28d4c7e37bd85de426ff | 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);
/**... | /**
* @dev Interface of the ERC20 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.5.15+commit.6a57276f | MIT | bzzr://03fe324518d3cb1e7f9c96e627895b760bd3b4a3bdae8305c4509e3a81daac8c | {
"func_code_index": [
1647,
1726
]
} | 10,697 |
IndexStaking | IndexStaking.sol | 0xa940e0541f8b8a40551b28d4c7e37bd85de426ff | 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);
/**... | /**
* @dev Interface of the ERC20 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.5.15+commit.6a57276f | MIT | bzzr://03fe324518d3cb1e7f9c96e627895b760bd3b4a3bdae8305c4509e3a81daac8c | {
"func_code_index": [
2039,
2141
]
} | 10,698 |
IndexStaking | IndexStaking.sol | 0xa940e0541f8b8a40551b28d4c7e37bd85de426ff | 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.5.15+commit.6a57276f | MIT | bzzr://03fe324518d3cb1e7f9c96e627895b760bd3b4a3bdae8305c4509e3a81daac8c | {
"func_code_index": [
259,
445
]
} | 10,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.