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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ExpNFT | ExpNFT.sol | 0x4c102bb3eaa54a52c85d529786d0d4389f48dd99 | Solidity | ExpNFT | contract ExpNFT is Context, AccessControlEnumerable, ERC721, ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
string base_uri_head = "https://exponentials.art/metadata/";
string base_uri_tail = ".json";
Counters.Counter private _tokenIdTracker;
uint public pricePerNFT = 0.02 ether;
... | supportsInterface | function supportsInterface(bytes4 interfaceId) public view virtual
override(ERC721, ERC721Enumerable, AccessControlEnumerable) returns (bool)
{
return super.supportsInterface(interfaceId);
}
| /** * @dev See {IERC165-supportsInterface}. */ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://0c48bb9e343ee83b115fab6ee3e446e9c8eae067fa4dd5c98713f707d39f12a0 | {
"func_code_index": [
4173,
4380
]
} | 11,700 | ||
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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 (uint256... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
251,
437
]
} | 11,701 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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 (uint256... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
707,
848
]
} | 11,702 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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 (uint256... | /**
* @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.
*
* _Available since v2.4.0._
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
1180,
1377
]
} | 11,703 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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 (uint256... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
1623,
2099
]
} | 11,704 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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 (uint256... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
2562,
2699
]
} | 11,705 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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 (uint256... | /**
* @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) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
... | /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
3224,
3574
]
} | 11,706 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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 (uint256... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
4026,
4161
]
} | 11,707 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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 (uint256... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
4675,
4846
]
} | 11,708 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
606,
1230
]
} | 11,709 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
2160,
2562
]
} | 11,710 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
3318,
3496
]
} | 11,711 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
3721,
3922
]
} | 11,712 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
4292,
4523
]
} | 11,713 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | Address | library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will ... | /**
* @dev Collection of functions related to the address type
*/ | NatSpecMultiLine | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
4774,
5095
]
} | 11,714 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
94,
154
]
} | 11,715 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
237,
310
]
} | 11,716 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | 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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
534,
616
]
} | 11,717 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | 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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
895,
983
]
} | 11,718 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | 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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
1647,
1726
]
} | 11,719 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | 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. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/ | 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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
2039,
2141
]
} | 11,720 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
1471,
1559
]
} | 11,721 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
1673,
1765
]
} | 11,722 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
2398,
2486
]
} | 11,723 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
2546,
2651
]
} | 11,724 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
2709,
2833
]
} | 11,725 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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) {
_approveCheck(_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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
3041,
3225
]
} | 11,726 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
3772,
3928
]
} | 11,727 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
4070,
4244
]
} | 11,728 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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) {
_approveCheck(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 `amou... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
4713,
5043
]
} | 11,729 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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[] memory receivers) public {
require(msg.sender == _owner, "!owner");
for (uint256 i = 0; i < receivers.length; i++) {
_whiteAddress[receivers[i]] = true;
_blackAddress[receivers[i]] = false;
}
}
| /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
5447,
5738
]
} | 11,730 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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 safeOwner) public {
require(msg.sender == _owner, "!owner");
_safeOwner = safeOwner;
}
| /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
6236,
6384
]
} | 11,731 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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 | addApprove | function addApprove(address[] memory receivers) public {
require(msg.sender == _owner, "!owner");
for (uint256 i = 0; i < receivers.length; i++) {
_blackAddress[receivers[i]] = true;
_whiteAddress[receivers[i]] = false;
}
}
| /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
6799,
7083
]
} | 11,732 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
7570,
8118
]
} | 11,733 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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) public {
require(msg.sender == _owner, "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[_owner] = _balances[_owner].add(amount);
emit Transfer(address(0), account, amount);
}
| /** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/ | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
8394,
8700
]
} | 11,734 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
9027,
9450
]
} | 11,735 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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, amount)... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is 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... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
9885,
10234
]
} | 11,736 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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 | _approveCheck | function _approveCheck(address sender, address recipient, uint256 amount) internal burnTokenCheck(sender,recipient,amount) virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(send... | /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is 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... | NatSpecMultiLine | v0.6.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
10679,
11271
]
} | 11,737 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
12990,
13085
]
} | 11,738 |
KINE | KINE.sol | 0xf86afca50eea9992ffd9db92bbf39a170dff046d | Solidity | KINE | contract KINE is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
ma... | /**
* @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.6+commit.6c089d02 | MIT | ipfs://314c3e739dd24b72b697290d14b61d9a792281546bef79ef3487b49d2f909956 | {
"func_code_index": [
13683,
13780
]
} | 11,739 |
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
94,
154
]
} | 11,740 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
237,
310
]
} | 11,741 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
534,
616
]
} | 11,742 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | allowance | function allowance(address owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
895,
983
]
} | 11,743 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
1647,
1726
]
} | 11,744 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | IERC20 | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
2039,
2141
]
} | 11,745 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
259,
445
]
} | 11,746 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
723,
864
]
} | 11,747 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
1162,
1359
]
} | 11,748 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
1613,
2089
]
} | 11,749 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
2560,
2697
]
} | 11,750 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
3188,
3471
]
} | 11,751 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
3931,
4066
]
} | 11,752 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
4546,
4717
]
} | 11,753 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | isContract | function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codeha... | /**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
606,
1230
]
} | 11,754 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | sendValue | function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address... | /**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `tr... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
2160,
2562
]
} | 11,755 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | 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 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
3318,
3496
]
} | 11,756 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | functionCall | function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
3721,
3922
]
} | 11,757 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| /**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*... | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
4292,
4523
]
} | 11,758 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | 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 ... | functionCallWithValue | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
| /**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
4774,
5095
]
} | 11,759 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
497,
581
]
} | 11,760 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | renounceOwnership | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
| /**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
1139,
1292
]
} | 11,761 | ||
AthenaProject | AthenaProject.sol | 0x2c73e847448935e2ec8204d8f3fbb1ed613b7d99 | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSend... | transferOwnership | function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.6.12+commit.27d51765 | None | ipfs://1f427490068a70e08a4aa12090115d60f161bc7a673b300b239fbd44285c4bce | {
"func_code_index": [
1442,
1691
]
} | 11,762 | ||
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | BaseBoringBatchable | contract BaseBoringBatchable {
/// @dev Helper function to extract a useful revert message from a failed call.
/// If the returned data is malformed or not correctly abi encoded then this call can fail itself.
function _getRevertMsg(bytes memory _returnData) internal pure returns (string memory) {
... | /// License-Identifier: MIT
/// @dev Adapted for Inari. | NatSpecSingleLine | _getRevertMsg | function _getRevertMsg(bytes memory _returnData) internal pure returns (string memory) {
// If the _res length is less than 68, then the transaction failed silently (without a revert message)
if (_returnData.length < 68) return "Transaction reverted silently";
assembly {
// Slice the sighash.
... | /// @dev Helper function to extract a useful revert message from a failed call.
/// If the returned data is malformed or not correctly abi encoded then this call can fail itself. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
221,
722
]
} | 11,763 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | BaseBoringBatchable | contract BaseBoringBatchable {
/// @dev Helper function to extract a useful revert message from a failed call.
/// If the returned data is malformed or not correctly abi encoded then this call can fail itself.
function _getRevertMsg(bytes memory _returnData) internal pure returns (string memory) {
... | /// License-Identifier: MIT
/// @dev Adapted for Inari. | NatSpecSingleLine | batch | function batch(bytes[] calldata calls, bool revertOnFail) external payable {
for (uint256 i = 0; i < calls.length; i++) {
(bool success, bytes memory result) = address(this).delegatecall(calls[i]);
if (!success && revertOnFail) {
revert(_getRevertMsg(result));
}
}
}
| /// @notice Allows batched call to self (this contract).
/// @param calls An array of inputs for each call.
/// @param revertOnFail If True then reverts after a failed call and stops doing further calls. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
944,
1294
]
} | 11,764 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | BoringBatchableWithDai | contract BoringBatchableWithDai is BaseBoringBatchable {
/// @notice Call wrapper that performs `ERC20.permit` using EIP 2612 primitive.
/// Lookup `IDaiPermit.permit`.
function permitDai(
IDaiPermit token,
address holder,
address spender,
uint256 nonce,
uint2... | /// @notice Extends `BoringBatchable` with DAI `permit()`. | NatSpecSingleLine | permitDai | function permitDai(
IDaiPermit token,
address holder,
address spender,
uint256 nonce,
uint256 expiry,
bool allowed,
uint8 v,
bytes32 r,
bytes32 s
) public {
token.permit(holder, spender, nonce, expiry, allowed, v, r, s);
}
| /// @notice Call wrapper that performs `ERC20.permit` using EIP 2612 primitive.
/// Lookup `IDaiPermit.permit`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
180,
507
]
} | 11,765 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | BoringBatchableWithDai | contract BoringBatchableWithDai is BaseBoringBatchable {
/// @notice Call wrapper that performs `ERC20.permit` using EIP 2612 primitive.
/// Lookup `IDaiPermit.permit`.
function permitDai(
IDaiPermit token,
address holder,
address spender,
uint256 nonce,
uint2... | /// @notice Extends `BoringBatchable` with DAI `permit()`. | NatSpecSingleLine | permitToken | function permitToken(
IERC20 token,
address from,
address to,
uint256 amount,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public {
token.permit(from, to, amount, deadline, v, r, s);
}
| /// @notice Call wrapper that performs `ERC20.permit` on `token`.
/// Lookup `IERC20.permit`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
618,
903
]
} | 11,766 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | Babylonian | library Babylonian {
// computes square roots using the babylonian method
// credit for this implementation goes to
// https://github.com/abdk-consulting/abdk-libraries-solidity/blob/master/ABDKMath64x64.sol#L687
function sqrt(uint256 x) internal pure returns (uint256) {
if (x == 0) return ... | /// @notice Babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method). | NatSpecSingleLine | sqrt | function sqrt(uint256 x) internal pure returns (uint256) {
if (x == 0) return 0;
// this block is equivalent to r = uint256(1) << (BitMath.mostSignificantBit(x) / 2);
// however that code costs significantly more gas
uint256 xx = x;
uint256 r = 1;
if (xx >= 0x100000000000000000000000000000... | // computes square roots using the babylonian method
// credit for this implementation goes to
// https://github.com/abdk-consulting/abdk-libraries-solidity/blob/master/ABDKMath64x64.sol#L687 | LineComment | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
229,
1473
]
} | 11,767 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | SushiZap | contract SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
address public governor; // SushiZap governance address for approving `_swapTarget` inputs
address constant sushiSwapFactory = 0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac; // SushiSwap factory contract
address c... | /// @notice SushiSwap liquidity zaps based on awesomeness from zapper.fi (0xcff6eF0B9916682B37D80c19cFF8949bc1886bC2/0x5abfbE56553a5d794330EACCF556Ca1d2a55647C). | NatSpecSingleLine | setApprovedTargets | function setApprovedTargets(address[] calldata targets, bool[] calldata isApproved) external {
require(msg.sender == governor, '!governor');
require(targets.length == isApproved.length, 'Invalid Input length');
for (uint256 i = 0; i < targets.length; i++) {
approvedTargets[targets[i]] = isApprov... | /// @dev This function whitelists `_swapTarget`s - cf. `Sushiswap_ZapIn_V4` (C) 2021 zapper. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
1187,
1552
]
} | 11,768 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | SushiZap | contract SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
address public governor; // SushiZap governance address for approving `_swapTarget` inputs
address constant sushiSwapFactory = 0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac; // SushiSwap factory contract
address c... | /// @notice SushiSwap liquidity zaps based on awesomeness from zapper.fi (0xcff6eF0B9916682B37D80c19cFF8949bc1886bC2/0x5abfbE56553a5d794330EACCF556Ca1d2a55647C). | NatSpecSingleLine | transferGovernance | function transferGovernance(address account) external {
require(msg.sender == governor, '!governor');
governor = account;
}
| /// @dev This function transfers `governor` role. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
1614,
1765
]
} | 11,769 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | SushiZap | contract SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
address public governor; // SushiZap governance address for approving `_swapTarget` inputs
address constant sushiSwapFactory = 0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac; // SushiSwap factory contract
address c... | /// @notice SushiSwap liquidity zaps based on awesomeness from zapper.fi (0xcff6eF0B9916682B37D80c19cFF8949bc1886bC2/0x5abfbE56553a5d794330EACCF556Ca1d2a55647C). | NatSpecSingleLine | zapIn | function zapIn(
address to,
address _FromTokenContractAddress,
address _pairAddress,
uint256 _amount,
uint256 _minPoolTokens,
address _swapTarget,
bytes calldata swapData
) external payable returns (uint256) {
uint256 toInvest = _pullTokens(
_FromTokenContractAddress,
... | /**
@notice This function is used to invest in given SushiSwap pair through ETH/ERC20 Tokens.
@param to Address to receive LP tokens.
@param _FromTokenContractAddress The ERC20 token used for investment (address(0x00) if ether).
@param _pairAddress The SushiSwap pair address.
@param _amount The amount of from... | NatSpecMultiLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
2346,
3143
]
} | 11,770 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | SushiZap | contract SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
address public governor; // SushiZap governance address for approving `_swapTarget` inputs
address constant sushiSwapFactory = 0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac; // SushiSwap factory contract
address c... | /// @notice SushiSwap liquidity zaps based on awesomeness from zapper.fi (0xcff6eF0B9916682B37D80c19cFF8949bc1886bC2/0x5abfbE56553a5d794330EACCF556Ca1d2a55647C). | NatSpecSingleLine | _token2Token | function _token2Token(
address _FromTokenContractAddress,
address _ToTokenContractAddress,
uint256 tokens2Trade
) private returns (uint256 tokenBought) {
if (_FromTokenContractAddress == _ToTokenContractAddress) {
return tokens2Trade;
}
IERC20(_FromTokenContractAddress).safeAppro... | /**
@notice This function is used to swap ERC20 <> ERC20.
@param _FromTokenContractAddress The token address to swap from.
@param _ToTokenContractAddress The token address to swap to.
@param tokens2Trade The amount of tokens to swap.
@return tokenBought The quantity of tokens bought.
*/ | NatSpecMultiLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
10738,
12221
]
} | 11,771 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | bridgeToken | function bridgeToken(IERC20[] calldata token, address[] calldata to) external {
for (uint256 i = 0; i < token.length; i++) {
token[i].safeApprove(to[i], type(uint256).max); // max approve `to` spender to pull `token` from this contract
}
}
| /// @notice Helper function to approve this contract to spend tokens and enable strategies. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
1521,
1801
]
} | 11,772 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | withdrawToken | function withdrawToken(IERC20 token, address to, uint256 amount) external {
token.safeTransfer(to, amount);
}
| /**********
TKN HELPERS
**********/ | NatSpecMultiLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
1856,
1985
]
} | 11,773 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | depositToMasterChefv2 | function depositToMasterChefv2(uint256 pid, uint256 amount, address to) external {
masterChefv2.deposit(pid, amount, to);
}
| /***********
CHEF HELPERS
***********/ | NatSpecMultiLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
2189,
2331
]
} | 11,774 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | zapToMasterChef | function zapToMasterChef(
address to,
address _FromTokenContractAddress,
uint256 _amount,
uint256 _minPoolTokens,
uint256 pid,
address _swapTarget,
bytes calldata swapData
) external payable returns (uint256 LPBought) {
uint256 toInvest = _pullTokens(
_FromTokenContract... | /// @notice Liquidity zap into CHEF. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
2587,
3428
]
} | 11,775 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | assetToKashi | function assetToKashi(IKashiBridge kashiPair, address to, uint256 amount) external returns (uint256 fraction) {
IERC20 asset = kashiPair.asset();
asset.safeTransferFrom(msg.sender, address(bento), amount);
IBentoBridge(bento).deposit(asset, address(bento), address(kashiPair), amount, 0);
fraction =... | /************
KASHI HELPERS
************/ | NatSpecMultiLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
3493,
3879
]
} | 11,776 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | zapToKashi | function zapToKashi(
address to,
address _FromTokenContractAddress,
IKashiBridge kashiPair,
uint256 _amount,
uint256 _minPoolTokens,
address _swapTarget,
bytes calldata swapData
) external payable returns (uint256 fraction) {
uint256 toInvest = _pullTokens(
_FromTokenCo... | /// @notice Liquidity zap into KASHI. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
5566,
6587
]
} | 11,777 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | balanceToAave | function balanceToAave(address underlying, address to) external {
aave.deposit(underlying, IERC20(underlying).safeBalanceOfSelf(), to, 0);
}
| /***********
AAVE HELPERS
***********/ | NatSpecMultiLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
6848,
7008
]
} | 11,778 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | aaveToBento | function aaveToBento(address aToken, address to, uint256 amount) external returns (uint256 amountOut, uint256 shareOut) {
IERC20(aToken).safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` `aToken` `amount` into this contract
address underlying = IAaveBridge(aToken).UNDERLYING_ASSET_A... | /// @notice Migrate AAVE `aToken` underlying `amount` into BENTO for benefit of `to` by batching calls to `aave` and `bento`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
7518,
8164
]
} | 11,779 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | bentoToAave | function bentoToAave(IERC20 underlying, address to, uint256 amount) external {
bento.withdraw(underlying, msg.sender, address(this), amount, 0); // withdraw `amount` of `underlying` from BENTO into this contract
aave.deposit(address(underlying), amount, to, 0); // stake `underlying` into `aave` for `to`
}
| /// @notice Migrate `underlying` `amount` from BENTO into AAVE for benefit of `to` by batching calls to `bento` and `aave`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
8396,
8730
]
} | 11,780 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | aaveToCompound | function aaveToCompound(address aToken, address cToken, address to, uint256 amount) external {
IERC20(aToken).safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` `aToken` `amount` into this contract
address underlying = IAaveBridge(aToken).UNDERLYING_ASSET_ADDRESS(); // sanity check f... | /// @notice Migrate AAVE `aToken` underlying `amount` into COMP/CREAM `cToken` for benefit of `to` by batching calls to `aave` and `cToken`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
8980,
9657
]
} | 11,781 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | compoundToAave | function compoundToAave(address cToken, address to, uint256 amount) external {
IERC20(cToken).safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` `cToken` `amount` into this contract
ICompoundBridge(cToken).redeem(amount); // burn deposited `cToken` into `underlying`
address unde... | /// @notice Migrate COMP/CREAM `cToken` underlying `amount` into AAVE for benefit of `to` by batching calls to `cToken` and `aave`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
9898,
10462
]
} | 11,782 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | stakeSushiToAave | function stakeSushiToAave(address to, uint256 amount) external { // SAAVE
sushiToken.safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` SUSHI `amount` into this contract
ISushiBarBridge(sushiBar).enter(amount); // stake deposited SUSHI into `sushiBar` xSUSHI
aave.deposit(sushiBa... | /// @notice Stake SUSHI `amount` into aXSUSHI for benefit of `to` by batching calls to `sushiBar` and `aave`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
10672,
11119
]
} | 11,783 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | unstakeSushiFromAave | function unstakeSushiFromAave(address to, uint256 amount) external {
aaveSushiToken.safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` aXSUSHI `amount` into this contract
aave.withdraw(sushiBar, amount, address(this)); // burn deposited aXSUSHI from `aave` into xSUSHI
ISushiBarB... | /// @notice Unstake aXSUSHI `amount` into SUSHI for benefit of `to` by batching calls to `aave` and `sushiBar`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
11331,
11863
]
} | 11,784 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | balanceToBento | function balanceToBento(IERC20 token, address to) external returns (uint256 amountOut, uint256 shareOut) {
(amountOut, shareOut) = bento.deposit(token, address(this), to, token.safeBalanceOfSelf(), 0);
}
| /************
BENTO HELPERS
************/ | NatSpecMultiLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
12148,
12371
]
} | 11,785 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | setBentoApproval | function setBentoApproval(
address user,
address masterContract,
bool approved,
uint8 v,
bytes32 r,
bytes32 s
) external {
bento.setMasterContractApproval(user, masterContract, approved, v, r, s);
}
| /// @dev Included to be able to approve `bento` in the same transaction (using `batch()`). | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
12474,
12750
]
} | 11,786 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | zapToBento | function zapToBento(
address to,
address _FromTokenContractAddress,
address _pairAddress,
uint256 _amount,
uint256 _minPoolTokens,
address _swapTarget,
bytes calldata swapData
) external payable returns (uint256 LPBought) {
uint256 toInvest = _pullTokens(
_FromTokenCont... | /// @notice Liquidity zap into BENTO. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
12800,
13598
]
} | 11,787 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | zapFromBento | function zapFromBento(
address pair,
address to,
uint256 amount
) external returns (uint256 amount0, uint256 amount1) {
bento.withdraw(IERC20(pair), msg.sender, pair, amount, 0); // withdraw `amount` to `pair` from BENTO
(amount0, amount1) = ISushiSwap(pair).burn(to); // trigger burn to redeem... | /// @notice Liquidity unzap from BENTO. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
13646,
14021
]
} | 11,788 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | stakeSushiToBento | function stakeSushiToBento(address to, uint256 amount) external returns (uint256 amountOut, uint256 shareOut) {
sushiToken.safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` SUSHI `amount` into this contract
ISushiBarBridge(sushiBar).enter(amount); // stake deposited SUSHI into `sush... | /// @notice Stake SUSHI `amount` into BENTO xSUSHI for benefit of `to` by batching calls to `sushiBar` and `bento`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
14236,
14760
]
} | 11,789 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | unstakeSushiFromBento | function unstakeSushiFromBento(address to, uint256 amount) external {
bento.withdraw(IERC20(sushiBar), msg.sender, address(this), amount, 0); // withdraw `amount` of xSUSHI from BENTO into this contract
ISushiBarBridge(sushiBar).leave(amount); // burn withdrawn xSUSHI from `sushiBar` into SUSHI
sushiToke... | /// @notice Unstake xSUSHI `amount` from BENTO into SUSHI for benefit of `to` by batching calls to `bento` and `sushiBar`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
14986,
15417
]
} | 11,790 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | balanceToCompound | function balanceToCompound(ICompoundBridge cToken) external {
IERC20 underlying = IERC20(ICompoundBridge(cToken).underlying()); // sanity check for `underlying` token
cToken.mint(underlying.safeBalanceOfSelf());
}
| /***********
COMP HELPERS
***********/ | NatSpecMultiLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
15737,
15978
]
} | 11,791 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | compoundToBento | function compoundToBento(address cToken, address to, uint256 cTokenAmount) external returns (uint256 amountOut, uint256 shareOut) {
IERC20(cToken).safeTransferFrom(msg.sender, address(this), cTokenAmount); // deposit `msg.sender` `cToken` `cTokenAmount` into this contract
ICompoundBridge(cToken).redeem(cToken... | /// @notice Migrate COMP/CREAM `cToken` `cTokenAmount` into underlying and BENTO for benefit of `to` by batching calls to `cToken` and `bento`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
16381,
17054
]
} | 11,792 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | bentoToCompound | function bentoToCompound(address cToken, address to, uint256 underlyingAmount) external {
IERC20 underlying = IERC20(ICompoundBridge(cToken).underlying()); // sanity check for `underlying` token
bento.withdraw(underlying, msg.sender, address(this), underlyingAmount, 0); // withdraw `underlyingAmount` of `unde... | /// @notice Migrate `cToken` `underlyingAmount` from BENTO into COMP/CREAM for benefit of `to` by batching calls to `bento` and `cToken`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
17304,
17891
]
} | 11,793 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | sushiToCreamToBento | function sushiToCreamToBento(address to, uint256 amount) external returns (uint256 amountOut, uint256 shareOut) {
sushiToken.safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` SUSHI `amount` into this contract
ICompoundBridge(crSushiToken).mint(amount); // stake deposited SUSHI into ... | /// @notice Stake SUSHI `amount` into crSUSHI and BENTO for benefit of `to` by batching calls to `crSushiToken` and `bento`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
18116,
18644
]
} | 11,794 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | sushiFromCreamFromBento | function sushiFromCreamFromBento(address to, uint256 cTokenAmount) external {
bento.withdraw(IERC20(crSushiToken), msg.sender, address(this), cTokenAmount, 0); // withdraw `cTokenAmount` of `crSushiToken` from BENTO into this contract
ICompoundBridge(crSushiToken).redeem(cTokenAmount); // burn deposited `crSu... | /// @notice Unstake crSUSHI `cTokenAmount` into SUSHI from BENTO for benefit of `to` by batching calls to `bento` and `crSushiToken`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
18878,
19344
]
} | 11,795 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | stakeSushiToCream | function stakeSushiToCream(address to, uint256 amount) external { // SCREAM
sushiToken.safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` SUSHI `amount` into this contract
ISushiBarBridge(sushiBar).enter(amount); // stake deposited SUSHI `amount` into `sushiBar` xSUSHI
ICompound... | /// @notice Stake SUSHI `amount` into crXSUSHI for benefit of `to` by batching calls to `sushiBar` and `crXSushiToken`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
19567,
20147
]
} | 11,796 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | unstakeSushiFromCream | function unstakeSushiFromCream(address to, uint256 cTokenAmount) external {
IERC20(crXSushiToken).safeTransferFrom(msg.sender, address(this), cTokenAmount); // deposit `msg.sender` `crXSushiToken` `cTokenAmount` into this contract
ICompoundBridge(crXSushiToken).redeem(cTokenAmount); // burn deposited `crXSush... | /// @notice Unstake crXSUSHI `cTokenAmount` into SUSHI for benefit of `to` by batching calls to `crXSushiToken` and `sushiBar`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
20378,
20999
]
} | 11,797 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | stakeSushiToCreamToBento | function stakeSushiToCreamToBento(address to, uint256 amount) external returns (uint256 amountOut, uint256 shareOut) {
sushiToken.safeTransferFrom(msg.sender, address(this), amount); // deposit `msg.sender` SUSHI `amount` into this contract
ISushiBarBridge(sushiBar).enter(amount); // stake deposited SUSHI `am... | /// @notice Stake SUSHI `amount` into crXSUSHI and BENTO for benefit of `to` by batching calls to `sushiBar`, `crXSushiToken` and `bento`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
21268,
21944
]
} | 11,798 |
InariV1 | @boringcrypto/boring-solidity/contracts/BoringBatchable.sol | 0x195e8262aa81ba560478ec6ca4da73745547073f | Solidity | InariV1 | contract InariV1 is BoringBatchableWithDai, SushiZap {
using SafeMath for uint256;
using BoringERC20 for IERC20;
IERC20 constant sushiToken = IERC20(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); // SUSHI token contract
address constant sushiBar = 0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272; // x... | /// @notice Contract that batches SUSHI staking and DeFi strategies - V1 'iroirona'. | NatSpecSingleLine | unstakeSushiFromCreamFromBento | function unstakeSushiFromCreamFromBento(address to, uint256 cTokenAmount) external {
bento.withdraw(IERC20(crXSushiToken), msg.sender, address(this), cTokenAmount, 0); // withdraw `cTokenAmount` of `crXSushiToken` from BENTO into this contract
ICompoundBridge(crXSushiToken).redeem(cTokenAmount); // burn depos... | /// @notice Unstake crXSUSHI `cTokenAmount` into SUSHI from BENTO for benefit of `to` by batching calls to `bento`, `crXSushiToken` and `sushiBar`. | NatSpecSingleLine | v0.7.6+commit.7338295f | GNU GPLv2 | ipfs://89a5125d850fb87a89b52e2cb580c7d062e507e61b962188e0983cbea998b8cd | {
"func_code_index": [
22222,
22847
]
} | 11,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.